From 82364bccff06f470fd7596c5479ab223f14cc284 Mon Sep 17 00:00:00 2001 From: acereca Date: Mon, 20 Jul 2020 22:19:51 +0200 Subject: [PATCH] update styling --- ltstyle-common.sty | 32 ++++++++++++++++++++++++-------- ltstyle-tikz.sty | 1 + ltstyle-tikzstandalone.cls | 25 +++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 ltstyle-tikzstandalone.cls diff --git a/ltstyle-common.sty b/ltstyle-common.sty index c766e3d..cdc3d66 100644 --- a/ltstyle-common.sty +++ b/ltstyle-common.sty @@ -12,12 +12,12 @@ \mypackage@sansseriftrue } -\ExecuteOptions{sansserif} % default is fullpage +%\ExecuteOptions{sansserif} % default is fullpage \ProcessOptions\relax \ifmypackage@sansserif - \usepackage[sfdefault, light]{FiraSans} + %\usepackage[]{droidserif} \fi % Font @@ -25,14 +25,34 @@ \usepackage{microtype} % links -\usepackage[hidelinks]{hyperref} +%\usepackage[hidelinks]{hyperref} +\usepackage[colorlinks, citecolor=cyan, linkcolor=cyan]{hyperref} +\newcommand*{\listingautorefname}{Listing} % images \usepackage{graphicx} -\usepackage{svg} + + +% subcaption workaround w/o caption package + +\setlength\abovecaptionskip{\f@size\p@} +\setlength\belowcaptionskip{0\p@} +\long\def\@makecaption#1#2{% + \vskip\abovecaptionskip + \sbox\@tempboxa{#1: #2}% + \ifdim \wd\@tempboxa >\hsize + #1: #2\par + \else + \global \@minipagefalse + \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% + \fi + \vskip\belowcaptionskip} + +\usepackage[font=footnotesize]{subcaption} % units \usepackage{siunitx} +\usepackage{amsmath} % Color defintions \usepackage{xcolor} @@ -102,14 +122,10 @@ \def\inlineverb#1{'#1'}% } - %\newcommand\Add[1]{%% %\bgroup %\lts@set@keys{#1}%% %\textit{\lts@get{colback}} `\lts@get{colframe}'%% %\egroup} - - - \makeatother diff --git a/ltstyle-tikz.sty b/ltstyle-tikz.sty index e103ec9..2edf793 100644 --- a/ltstyle-tikz.sty +++ b/ltstyle-tikz.sty @@ -1,3 +1,4 @@ +\ProvidesPackage{ltstyle-tikz} \usepackage[sfdefault,light]{FiraSans} \usepackage{tikz} diff --git a/ltstyle-tikzstandalone.cls b/ltstyle-tikzstandalone.cls new file mode 100644 index 0000000..3d906d0 --- /dev/null +++ b/ltstyle-tikzstandalone.cls @@ -0,0 +1,25 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{ltstyle-tikzstandalone}[2011/12/23 My Class] + +%% Article options +%\DeclareOption{10pt}{ + %\PassOptionsToClass{\CurrentOption}{article} +%} + +%% Custom package options +%\DeclareOption{sans}{ + %\PassOptionsToPackage{\CurrentOption}{custom} +%} +%\DeclareOption{neverindent}{ + %\PassOptionsToPackage{\CurrentOption}{custom} +%} + +%% Fallback +\DeclareOption*{ + \ClassWarning{myclass}{Unknown option '\CurrentOption'} +} + +\ProcessOptions\relax + +\LoadClass[]{standalone} +\endinput