summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-06-03 03:00:46 +0000
committerNorbert Preining <norbert@preining.info>2022-06-03 03:00:46 +0000
commit653524750adc9c9bfae3fb8a7f1dacd63859bed8 (patch)
treefd4e9fa0efd639716ba02ec4554a075b234c1714 /graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic.tex
parentd04e1ae659e8517e73bdabbd147386187d88fcb4 (diff)
CTAN sync 202206030300
Diffstat (limited to 'graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic.tex')
-rw-r--r--graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic.tex16
1 files changed, 9 insertions, 7 deletions
diff --git a/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic.tex b/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic.tex
index dfea410fc8..e83eba027f 100644
--- a/graphics/pgf/contrib/tikz-trackschematic/tikz-trackschematic.tex
+++ b/graphics/pgf/contrib/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);