new syntax for library topology,

new folder structure,
draft documentation
master
martin 2019-09-30 15:16:20 +02:00
parent 317c4affb6
commit 21026040a1
140 changed files with 983 additions and 226 deletions

View File

@ -10,13 +10,14 @@ todo
\begin{document}
\begin{tikzpicture}
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (T) at (5,0);
\draw[MainTrack] (A) -- (B);
\pic at (T) {train_moving_forward};
\maintrack (A) -- (B);
\train[moving,forward] at (T) label (train);
\end{tikzpicture}
\end{document}
@ -25,6 +26,10 @@ todo
------------
# History
## Version 0.5
* new improved syntax
## Version 0.4
* added document for symbology
@ -53,7 +58,5 @@ todo
------------
# Roadmap
* encapsulation of symbols in package for tex infrastructure
* provide option for internationalziation (i18n)
* write usefull documentation
* re-think syntax
* write usefull documentation

8
doc/authors.tex Normal file
View File

@ -0,0 +1,8 @@
%!TEX TS-program = pdflatexmk
%!TEX root = doc.tex
% Copyright 2018,2019 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.
\newcommand{\MS}{Martin Scheidt}

BIN
doc/doc.pdf Normal file

Binary file not shown.

130
doc/doc.tex Normal file
View File

@ -0,0 +1,130 @@
%% symbol library for TikZ track schematics
%
% Copyright 2018,2019 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.
\documentclass[
draft,
paper=a4,
version=3.25,
pagesize=pdftex,
twoside=false,
toc=listof,
]{scrartcl}
% --------[ Coding and Language ]----------
\usepackage{scrhack}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[main=english]{babel}
% --------[ revision history ]----------
\usepackage[tocentry]{vhistory}
\input{authors.tex}
% --------[ Layout ]-----------
\pretolerance=8000
\tolerance=9500
\hbadness=8000
\vbadness=10000
\displaywidowpenalty=10000
\clubpenalty=10000
\widowpenalty=10000
\usepackage{lmodern,microtype,mathptmx,courier}
\usepackage[scaled=0.92]{helvet}
\usepackage[
automark,
headsepline,
draft=false
]{scrlayer-scrpage}
\pagestyle{scrheadings}
% -----------[ PDF linking ]----------------
\usepackage[
pdftex,
pdfpagelabels, % modify PDF page labels
hyperindex,
hyperfigures,
bookmarksopen,
bookmarksnumbered,
draft=false,
pageanchor=true, % Determines whether every page is given an implicit anchor at the top left corner
%pagebackref, % Adds ‘backlink’ text to the end of each item in the bibliography, as a list of page numbers
%linktocpage, % make page number, not text, be link on TOC, LOF and LOT
breaklinks=true, % allow links to break over lines by making links over multiple lines into PDF links to the same target
colorlinks=true, % Colors the text of links and anchors
linkcolor=base01, % Color for normal internal links
urlcolor=blue, % Color for web links
]{hyperref} % PDF with a linked TableOfContent
\usepackage{bookmark} % Adding package bookmark improves bookmarks handling.
\usepackage{url}
% -------[ PDF Informations ]---------
\hypersetup{%
pdftitle={tikz/trackschematic},
pdfsubject={A tikz toolbox for track schematics},
pdfauthor={Martin Scheidt},
pdfkeywords={latex, tikz, library, railway, track, layout}
}
\usepackage[inline]{enumitem}
\usepackage{tikz}
\usepackage[prefix=]{xcolor-solarized}
\def\rootTrackschematic{../../tikz-trackschematic}
\def\srcTrackschematic{\rootTrackschematic/src/tikzlibrarytrackschematic}
\input{\srcTrackschematic.topology.code.tex}
\input{\srcTrackschematic.trafficcontrol.code.tex}
\input{\srcTrackschematic.vehicles.code.tex}
\input{\srcTrackschematic.constructions.code.tex}
\begin{document}
\title{\tikz\node[scale=1.2]{\color{gray}\Huge\sffamily \{\textcolor{black}{Ti\textcolor{orange}{\emph{k}}Z}/\textcolor{blue}{trackschematic}\}};}
\subtitle{A Ti\emph{k}Z library for track schematics}
\author{\vhListAllAuthorsLong}
\date{Version \vhCurrentVersion~ from \vhCurrentDate}
\maketitle
\tableofcontents
\section{Introduction}\label{sec:intro}
\subsection[About]{About tikz/trackschematic}
The Ti\emph{k}Z \emph{trackschematic} library is a toolbox of symbols geared primarily towards creating track schematic for either research or educational purposes.
It provides a tikz frontends to some of the symbols which maybe needed to describe situations and layouts in railway operation.
The library is divided into four sublibraries:
\begin{itemize*}[label={}]
\item topology,
\item traffic control,
\item vehicles, and
\item constructions.
\end{itemize*}
\subsection{Requirements}\label{sec:require}
The library uses Ti\emph{k}Z and it is based the following packages:
\begin{itemize*}[label={}]
\item tikz,
\item xcolor, and
\item etoolbox.
\end{itemize*}
Further more it uses the following Ti\emph{k}Z libraries:
\begin{itemize*}[label={}]
\item calc,
\item patterns, and
\item arrows.meta.
\end{itemize*}
\subsection{License}
Copyright 2018, 2019 \MS. 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 (\href{https://www.tldrlegal.com/l/isc}{ISC license}).
\section{Usage}\label{sec:use}
loading ther library
% \appendix
\input{versionhistory.tex}
\vhListAllAuthorsLongWithAbbrev
\end{document}

Some files were not shown because too many files have changed in this diff Show More