enable a development branch of the library in the $texmf tree.

master
martin 2020-02-10 16:21:48 +01:00
parent bcb7f484d8
commit 0264c722a2
3 changed files with 32 additions and 2 deletions

18
dev-install.sh Executable file
View File

@ -0,0 +1,18 @@
#! /bin/sh
echo "specify path for installation!"
echo "( e.g. /usr/local/texlive/2019/texmf-dist/tex/latex ):"
read INSTALLPATH
DIR=$(pwd -P)
DEVDIR="tikz-trackschematic-dev"
mkdir $INSTALLPATH/$DEVDIR
ln -s $DIR/src/tikzlibrarytrackschematic.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.code.tex
ln -s $DIR/src/tikzlibrarytrackschematic.constructions.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.constructions.code.tex
ln -s $DIR/src/tikzlibrarytrackschematic.messures.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.messures.code.tex
ln -s $DIR/src/tikzlibrarytrackschematic.topology.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.topology.code.tex
ln -s $DIR/src/tikzlibrarytrackschematic.trafficcontrol.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.trafficcontrol.code.tex
ln -s $DIR/src/tikzlibrarytrackschematic.vehicles.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.vehicles.code.tex

View File

@ -81,7 +81,15 @@
\RequirePackage{longtable,tikz,siunitx,adjustbox,rotating}
\sisetup{math-rm=\mathsf}
\usetikzlibrary{trackschematic}
\IfFileExists{tikzlibrarytrackschematic-dev.code.tex}{%
\usetikzlibrary{trackschematic-dev.topology}%
\usetikzlibrary{trackschematic-dev.trafficcontrol}%
\usetikzlibrary{trackschematic-dev.vehicles}%
\usetikzlibrary{trackschematic-dev.constructions}%
\usetikzlibrary{trackschematic-dev.messures}%
}{%
\usetikzlibrary{trackschematic}%
}%
\def\rootTrackschematic{.}

View File

@ -8,7 +8,11 @@
\usepackage{siunitx}
\usepackage[prefix=]{xcolor-solarized}
\usetikzlibrary{trackschematic}
\usetikzlibrary{trackschematic-dev.topology}%
\usetikzlibrary{trackschematic-dev.trafficcontrol}%
\usetikzlibrary{trackschematic-dev.vehicles}%
\usetikzlibrary{trackschematic-dev.constructions}%
\usetikzlibrary{trackschematic-dev.messures}%
\begin{document}
\begin{tikzpicture}[font=\sffamily]