summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tikz-trackschematic/tikz-trackschematic.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-06-03 21:16:12 +0000
committerKarl Berry <karl@freefriends.org>2022-06-03 21:16:12 +0000
commit47bca0418547a87cc4072c560360e8bb64f46240 (patch)
tree7272ba3834125b956e36bd15096c93691d3e4d8c /Master/texmf-dist/doc/latex/tikz-trackschematic/tikz-trackschematic.tex
parent2693efdcb67e6c420bbeeb3da95bb61c3a5645e3 (diff)
tikz-trackschematic (3jun22)
git-svn-id: svn://tug.org/texlive/trunk@63480 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tikz-trackschematic/tikz-trackschematic.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tikz-trackschematic/tikz-trackschematic.tex16
1 files changed, 9 insertions, 7 deletions
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);