diff options
author | Karl Berry <karl@freefriends.org> | 2021-01-02 22:20:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-01-02 22:20:07 +0000 |
commit | 8108f8772a3191c3087e5989a5b5277c27270ef0 (patch) | |
tree | d345894efa980b417d97a88142e1ef23d38eb953 /Master/texmf-dist/tex/latex/tikz-trackschematic/tikzlibrarytrackschematic.code.tex | |
parent | 942a4033ca0e15d273818446de9c7cd56a228698 (diff) |
tikz-trackschematic (2jan21)
git-svn-id: svn://tug.org/texlive/trunk@57300 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikz-trackschematic/tikzlibrarytrackschematic.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/tikz-trackschematic/tikzlibrarytrackschematic.code.tex | 57 |
1 files changed, 48 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/tikz-trackschematic/tikzlibrarytrackschematic.code.tex b/Master/texmf-dist/tex/latex/tikz-trackschematic/tikzlibrarytrackschematic.code.tex index 41e831304bb..b26089fc759 100644 --- a/Master/texmf-dist/tex/latex/tikz-trackschematic/tikzlibrarytrackschematic.code.tex +++ b/Master/texmf-dist/tex/latex/tikz-trackschematic/tikzlibrarytrackschematic.code.tex @@ -1,6 +1,6 @@ %% symbol library for TikZ track schematics % -% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license) +% Copyright (c) 2018 - 2021, Martin Scheidt (ISC license) % % Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. % @@ -9,15 +9,54 @@ \RequirePackage{tikz,etoolbox,lmodern}% % %%%%%%%%%%%%%%% -% symbol definitions +% loading sublibraries %%%%%%%%%%%%%%% -\usetikzlibrary{trackschematic.topology}% -\usetikzlibrary{trackschematic.trafficcontrol}% -\usetikzlibrary{trackschematic.vehicles}% -\usetikzlibrary{trackschematic.constructions}% -\usetikzlibrary{trackschematic.messures}% -% \usetikzlibrary{trackschematic.i18n}% -% +% \usetikzlibrary{trackschematic.topology}% +% \usetikzlibrary{trackschematic.trafficcontrol}% +% \usetikzlibrary{trackschematic.vehicles}% +% \usetikzlibrary{trackschematic.constructions}% +% \usetikzlibrary{trackschematic.electrics}% +% \usetikzlibrary{trackschematic.measures}% +%%%%%%%%%%%%%%% +%% template for new symbol definitions +%%%%%%%%%%%%%%% +% % +% \newcommand\XXXX{}% just for safety +% \def\XXXX[#1]#2(#3)#4(#5){% \XXXX[options] at (coord) label (name); +% \pic[#1] at (#3) {XXXX={#2/#4/#5}}% symbol +% }% +% % tikz keys +% \pgfkeys{% +% /tikz/trackschematic/.is family,% +% /tikz/trackschematic//.cd,% +% }% +% % symbol definition +% \tikzset{% +% pics/XXXX/.default=,% +% pics/XXXX/.style args={#1/#2/#3}{code={% +% %% settings +% \def\coordcommand{#1}% beware of leading and tailing spaces! +% \def\labelcommand{#2}% beware of leading and tailing spaces! +% \def\labelcontent{#3}% +% %% symbol marker +% % +% %% label +% \ifdefstring{\labelcontent}{}{}{% label NOT empty +% \coordinate (label-coord) at (coord);% +% \ifdefstring{\labelcoord}{(none)}{}{% initialize if NOT default +% \gettikzxy{\labelcoord}{\labelcoordX}{\labelcoordY}% +% \coordinate (label-coord) at ($(label-coord)+(\labelcoordX,\labelcoordY)$);% +% }% +% \node at (label-coord) {\footnotesize \labelcontent};% +% }% +% }},% END of pics/XXXX/.style args={#1/#2/#3} +% % symbology entry +% symbology_XXXX/.pic = {% +% \maintrack (0,0) -- (6,0);% +% \XXXX at (3,0);% +% },% +% }% +% % %%%%%%%%%%%%%%% \endinput% %
\ No newline at end of file |