prepared for lwarp package

master
Martin Scheidt 2022-02-23 10:35:52 +01:00
parent 71ae156dbb
commit 26533372a9
1 changed files with 55 additions and 47 deletions

View File

@ -6,51 +6,41 @@
\ProvidesPackage{tikz-trackschematic-documentation}[2020-12-30 Documentation Package for the tikz-trackschematic library] \ProvidesPackage{tikz-trackschematic-documentation}[2020-12-30 Documentation Package for the tikz-trackschematic library]
% ---[ HTML ]---
\usepackage{iftex}
\usepackage[
HomeHTMLFilename=index, % Filename of the homepage.
% IndexLanguage=english, % Language for xindy index, glossary.
latexmk % Use latexmk to compile.
]{lwarp}
% --------[ Coding and Language ]---------- % --------[ Coding and Language ]----------
\RequirePackage{scrhack,marginnote} \ifPDFTeX
\RequirePackage[utf8]{inputenc} \RequirePackage{scrhack,marginnote}
\RequirePackage[T1]{fontenc} \RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\fi
\RequirePackage[main=english]{babel} \RequirePackage[main=english]{babel}
% --------[ revision history ]---------- % --------[ revision history ]----------
\RequirePackage[tocentry]{vhistory} \RequirePackage[tocentry]{vhistory}
% --------[ Layout ]----------- % --------[ Layout ]-----------
\pretolerance=8000 \ifPDFTeX
\tolerance=9500 \pretolerance=8000
\hbadness=8000 \tolerance=9500
\vbadness=10000 \hbadness=8000
\displaywidowpenalty=10000 \vbadness=10000
\clubpenalty=10000 \displaywidowpenalty=10000
\widowpenalty=10000 \clubpenalty=10000
\RequirePackage{lmodern,microtype,mathptmx,courier} \widowpenalty=10000
\RequirePackage[scaled=0.92]{helvet} \RequirePackage{lmodern,microtype,mathptmx,courier}
\RequirePackage[% \RequirePackage[scaled=0.92]{helvet}
automark,% \RequirePackage[%
headsepline,% automark,%
draft=false,% headsepline,%
]{scrlayer-scrpage}% draft=false,%
\pagestyle{scrheadings} ]{scrlayer-scrpage}%
\pagestyle{scrheadings}
\fi
\RequirePackage{multicol} \RequirePackage{multicol}
% -----------[ PDF linking ]----------------
\RequirePackage{xr-hyper}
\RequirePackage[%
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
\RequirePackage{bookmark} % Adding package bookmark improves bookmarks handling.
\RequirePackage{url}
% ----------[ display ]----------- % ----------[ display ]-----------
\RequirePackage[prefix=]{xcolor-solarized} \RequirePackage[prefix=]{xcolor-solarized}
\RequirePackage[inline]{enumitem} \RequirePackage[inline]{enumitem}
@ -79,22 +69,40 @@
frame = single,% frame = single,%
}% }%
\RequirePackage{longtable,tikz,siunitx,adjustbox,rotating} \RequirePackage{longtable,tikz,adjustbox,rotating}
\sisetup{ \RequirePackage{siunitx}[=v2]
text-family-to-math = true, % \sisetup{
text-series-to-math = true % text-family-to-math = true,
} % text-series-to-math = true
% }
\IfFileExists{tikz-trackschematic-dev.sty}{% \IfFileExists{tikz-trackschematic-dev.sty}{%
\RequirePackage[dev]{tikz-trackschematic}% \RequirePackage[dev]{tikz-trackschematic}%
}{% }{%
\RequirePackage{tikz-trackschematic}% \RequirePackage{tikz-trackschematic}%
}% }%
% -----------[ linking ]----------------
\RequirePackage{xr-hyper}
\RequirePackage[%
% 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
\RequirePackage{url}
\usepackage[obeyDraft,textsize=footnotesize]{todonotes}
\newcommand{\TODO}{\todo[linecolor=orange,backgroundcolor=orange!20,bordercolor=orange,inline,]{\textcolor{orange}{Todo}}}
% \newcommand{\TODO}[1]{\todo[linecolor=orange,backgroundcolor=orange!20,bordercolor=orange,inline,]{\textcolor{orange}{Todo:~}#1}}
% -----------[ special commands ]----------------
\renewcommand{\symbol}[2][1.0]{% \renewcommand{\symbol}[2][1.0]{%
\adjustbox{valign=c}{\begin{tikzpicture}[scale=#1]% \adjustbox{valign=c}{\begin{tikzpicture}[scale=#1]%
\input{./snippets/#2}% \input{./snippets/#2}%