From 1d299b232b4eaf1709c80b3c337972c21e3ee8b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler=20=28via=20gitlab=20runner=29?= Date: Mon, 27 Jun 2022 14:01:58 +0000 Subject: [PATCH] add fix for equal arrows in tikz-cd Build branch master (b7ba678) from kesslermaximilian/LatexPackages --- build_info.json | 12 ++++++------ math/mathfig/mkessler-mathfig.sty | 30 ++++++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/build_info.json b/build_info.json index 19dc50d..10ddd9e 100644 --- a/build_info.json +++ b/build_info.json @@ -1,8 +1,8 @@ { "build_time": "", "source files": { - "version": "v2.9-14-gc939483", - "commit": "c939483b4283dd03bf86429cc23b66b6084ea090", + "version": "v2.9-15-gb7ba678", + "commit": "b7ba678943aae7a865556f4295a4509fb3f9bd7f", "dirty": false }, "pytex": { @@ -80,12 +80,12 @@ { "name": "math/mathfig/mkessler-mathfig.sty", "source file": "math/mathfig/mathfig.pysty", - "build time": "2022/01/30 23:48", - "source version": "v2.8.1-9-g4bda829", - "source commit hash": "4bda829518c07d985656547cf897712db361160e", + "build time": "2022/06/27 14:01", + "source version": "v2.9-15-gb7ba678", + "source commit hash": "b7ba678943aae7a865556f4295a4509fb3f9bd7f", "pytex version": "v1.2.0-31-gc9bb0e8", "pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51", - "md5sum": "54a8900c6123889fa1823424c074a9ea", + "md5sum": "ff0be1fc2a4563885533c7be16a7dab1", "dirty": false }, { diff --git a/math/mathfig/mkessler-mathfig.sty b/math/mathfig/mkessler-mathfig.sty index b2d7196..a6a735a 100644 --- a/math/mathfig/mkessler-mathfig.sty +++ b/math/mathfig/mkessler-mathfig.sty @@ -31,7 +31,7 @@ % % Build details: % PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8) -% Source code version: v2.8.1-9-g4bda829 (commit 4bda829) +% Source code version: v2.9-15-gb7ba678 (commit b7ba678) % % This LaTeX package is free software and is dual-licensed % under the LPPLv1.3c and the GPLv3 licenses. @@ -47,7 +47,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{mkessler-mathfig}[2022/01/30 - Math figures with TikZ / pgfplots / xy] +\ProvidesPackage{mkessler-mathfig}[2022/06/27 - Math figures with TikZ / pgfplots / xy] % This is just a collection of the packages I use to typeset mathematical figures @@ -93,3 +93,29 @@ \NewDocumentCommand\pullback{ O{dr} }{ \arrow[phantom, pos=0.45]{#1}{\pullbacksymbol} } + + +%% Fix for equal arrows in tikz, see +% https://tex.stackexchange.com/questions/443017/equal-arrows-without-transparent-ends-possible-in-tikzcd + +\usetikzlibrary{decorations.markings} +\tikzset { + double line with arrow/.style args= + { #1, #2 } + { decorate, decoration = + { + markings, + mark = at position 0 with + { + \coordinate (ta-base-1) at (0,1pt); + \coordinate (ta-base-2) at (0,-1pt); + }, + mark = at position 1 with + { + \draw[#1] (ta-base-1) -- (0,1pt); + \draw[#2] (ta-base-2) -- (0,-1pt); + } + } + } +} +\tikzset{Equal/.style={-,double line with arrow={-,-}}}