summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-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}