From 47bca0418547a87cc4072c560360e8bb64f46240 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 3 Jun 2022 21:16:12 +0000 Subject: tikz-trackschematic (3jun22) git-svn-id: svn://tug.org/texlive/trunk@63480 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/tikz-trackschematic/tikz-trackschematic.tex | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/doc/latex/tikz-trackschematic/tikz-trackschematic.tex') diff --git a/Master/texmf-dist/doc/latex/tikz-trackschematic/tikz-trackschematic.tex b/Master/texmf-dist/doc/latex/tikz-trackschematic/tikz-trackschematic.tex index dfea410fc8b..e83eba027f5 100644 --- a/Master/texmf-dist/doc/latex/tikz-trackschematic/tikz-trackschematic.tex +++ b/Master/texmf-dist/doc/latex/tikz-trackschematic/tikz-trackschematic.tex @@ -60,7 +60,7 @@ This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 826347. If you want to cite this project please use the follwoing informations:\\ - Scheidt, M. (2021). TikZ-trackschematics (Version \vhCurrentVersion) DOI: 10.5281/zenodo.5539845 + Scheidt, M. (2021). TikZ-trackschematics (Version \vhCurrentVersion) DOI: 10.5281/zenodo.5539844 \subsection{Requirements}\label{sec:require} @@ -262,8 +262,8 @@ \subsection{Colors: background and foreground}\label{sec:colors} - The two main colors \texttt{white} and \texttt{black} are set for the \texttt{background} and \texttt{foreground} keys by default. - If you want to change them, provide a new value for the keys. + The two main colors \texttt{background} and \texttt{foreground} are set as an alias to \texttt{white} and \texttt{black} by default. + If you want to change them, override them by defining a new alias. For example like this:\\ \begin{minipage}[c]{0.65\textwidth} \begin{lstlisting}[gobble=8] @@ -271,12 +271,13 @@ % load the library \usepackage{tikz-trackschematic} + + % set the colors + \colorlet{background}{lightgray} + \colorlet{foreground}{violet} \begin{document} \begin{tikzpicture} - % set the colors - \tikzset{background=lightgray,foreground=violet} - \maintrack (0,0) -- (6,0); \train[forward] at (5,0) label (grey train); \end{tikzpicture} @@ -286,7 +287,8 @@ \hfil \begin{minipage}[c]{0.34\textwidth} \begin{tikzpicture} - \tikzset{background=lightgray,foreground=violet} + \colorlet{background}{lightgray} + \colorlet{foreground}{violet} \path (-0.2,-1.6) rectangle (5.2,1.6); \coordinate (A) at (0 ,0); \coordinate (T) at (4.5,0); -- cgit v1.2.3