summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-01-27 22:00:15 +0000
committerKarl Berry <karl@freefriends.org>2023-01-27 22:00:15 +0000
commitd5425523a3a381c8bd16a0a1da0fc5ac4685b32f (patch)
tree85441da4ec969da1722edc2daa203ee6551be79f /Master/texmf-dist/tex
parentf38adb3bc282f60dbb321e661fa59c7244854282 (diff)
codeanatomy (26jan23)
git-svn-id: svn://tug.org/texlive/trunk@65648 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/codeanatomy/codeanatomy.sty18
1 files changed, 12 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/codeanatomy/codeanatomy.sty b/Master/texmf-dist/tex/latex/codeanatomy/codeanatomy.sty
index 8c4903fc38e..9d950f7621e 100644
--- a/Master/texmf-dist/tex/latex/codeanatomy/codeanatomy.sty
+++ b/Master/texmf-dist/tex/latex/codeanatomy/codeanatomy.sty
@@ -7,7 +7,7 @@
%% codeanatomy.dtx (with options: `package')
%%
\NeedsTeXFormat{LaTeX2e}[2018/12/01]
-\ProvidesPackage{codeanatomy}[2019/07/12 v0.4-Alpha draw Code Anatomy]
+\ProvidesPackage{codeanatomy}[2023/01/24 v0.4-Beta draw Code Anatomy]
\RequirePackage{expl3}
\RequirePackage{xparse}
@@ -45,6 +45,12 @@
font=\ttfamily
}
}
+\tikzset{ignored code part/.style={%
+ code part,%
+ draw=none,color=bgcmdcolor,%
+ inner sep=0.75pt
+ }
+}
\tikzset{fit extrem/.style={%
rectangle,%
draw=annotationcolor,%
@@ -86,11 +92,11 @@
}
}
\NewDocumentCommand{\codeBlock}{m}%
- {\node(code) [anatomy] at (0,0) {#1};}
-\NewDocumentCommand{\cPart}{mm} %
- {\tikzmarknode[code part]{#1}{#2}}
-\NewDocumentCommand{\iPart}{mm} %
- {\tikzmarknode[code part,draw=none,inner sep=0.75pt]{#1}{#2}}
+ {\node(code) [anatomy] at (0,0) {#1};}%
+\NewDocumentCommand\cPart{O{code part}mm}
+ {\tikzmarknode[#1]{#2}{#3}}
+\NewDocumentCommand{\iPart}{O{ignored code part}mm} %
+ {\tikzmarknode[#1]{#2}{#3}}
\NewDocumentCommand{\mtPoint}{m}
{\tikzmarknode{#1}{\phantom{\rule[1.8ex]{0.1ex}{0.1ex}}}}
\NewDocumentCommand{\hmtPoint}{m}