From 3988de4b3b4690533688779ff8b707f231a1331c Mon Sep 17 00:00:00 2001 From: Florian Sihler Date: Sun, 6 Oct 2024 13:00:45 +0200 Subject: [PATCH 1/2] doc: differnt font for doc --- doc/tikzpingus-doc.tex | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/doc/tikzpingus-doc.tex b/doc/tikzpingus-doc.tex index 8e24115..643f435 100644 --- a/doc/tikzpingus-doc.tex +++ b/doc/tikzpingus-doc.tex @@ -2,7 +2,8 @@ % Licensed under GNU General Public License version 3 % https://opensource.org/licenses/gpl-3.0.html \errorcontextlines9999 -\documentclass[parskip=half,english,numbers=noenddot,footnotes=nomultiple,oneside]{scrartcl} +\documentclass[parskip=half,english,numbers=noenddot,footnotes=nomultiple,oneside,fontsize?10pt,DIV=14]{scrartcl} +% \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} @@ -24,8 +25,9 @@ \usepackage[hyper]{listings} \usepackage[skins,breakable,hooks,xparse,listingsutf8,external]{tcolorbox} -\usepackage{lmodern} -\usepackage{CrimsonPro} +\usepackage[sfdefault,scale=.9]{FiraSans} +% fitting math font +\usepackage{newtxsf} \usepackage{imakeidx} \usepackage{tikz} @@ -216,8 +218,8 @@ \def\@toggle@showcase{\ifx\@showcase@cur\@showcase@pre\global\let\@showcase@cur\@empty\else \global\let\@showcase@cur\@showcase@pre\fi} \newcommand\ShowcaseThis[2][]{\ifx\@showcase@cur\@showcase@pre \global\let\@showcase@cur\@empty\expandafter\gpreto\else \global\let\@showcase@cur\@showcase@pre\expandafter\gappto\fi\pengu@all@showcases{{#2=#1},}} -\RedeclareSectionCommand[runin=false,afterskip=-2mm]{section} -\RedeclareSectionCommand[runin=false,afterskip=-2mm]{subsection} +\RedeclareSectionCommand[runin=false,beforeskip=3mm,afterskip=-2mm]{section} +\RedeclareSectionCommand[runin=false,beforeskip=3mm,afterskip=-2mm]{subsection} \RedeclareSectionCommand[runin=false,beforeskip=2mm,afterskip=-2mm]{subsubsection} \tcbset{% @@ -439,7 +441,7 @@ \node[above=3mm,font=\bfseries\sffamily\Large] at(current bounding box.north) {Motivation}; \end{tikzpicture}\vspace*{-\baselineskip} \end{center} -\footnotetext{Why \say{pingu} and not \say{pengu}? Well, this is the third try on achieving cute penguins without using any templates or vector formats as a basis. As a German, the short form \say{pingu} was merely a typo that originated from the German word \say{pinguin} for \say{penguin}. It somewhat stuck\ldots} +\footnotetext{Why \say{pingu} and not \say{pengu}? Well, this is the third try on achieving cute penguins without using any templates or vector formats as a basis. As a German, the short form \say{pingu} was merely a typo that originated from the German word \say{pinguin} for \say{penguin}. It somewhat stuck\ldots{}} \endgroup\vfill \begin{center} @@ -539,6 +541,7 @@ \section{Usage}\label{Usage} \begin{commandexplain}{pingu}{\opt{penguin keys}} The command to draw the penguin! + If you want to use |\pengu| instead, you can use |\let\pengu\pingu| in your preamble to create an alias. \end{commandexplain} \clearpage Besides the keys defined by this package, you can use the keys of \TikZ\ and |pgf| as well (the duck was generated by the lovely \href{https://github.com/samcarter/tikzducks}{tikzducks} package): @@ -623,8 +626,8 @@ \subsection{Using the Coordinates} This view excluded a lot of special data collected on the wings! While there is more information stored for each wing, the following five coordinates are the most important to place items into penguins hand:\vspace*{-1.5em} \begin{center} - \null\hfill\parbox[c]{2.5\wd\pinguwingright}{\scalebox{2.5}{\usebox\pinguwingright}}\hfill\parbox[c]{4cm}{\centering\small\@declaredcolor{gray}\sffamily And yes, the wings are deliberately placed asymmetrical.\endgraf}\hfill - \parbox[c]{2.5\wd\pinguwingleft}{\scalebox{2.5}{\usebox\pinguwingleft}}\hfill\null + \null\hfill\parbox[c]{2.6\wd\pinguwingright}{\scalebox{2.5}{\usebox\pinguwingright}}\hfill\parbox[c]{3.5cm}{\centering\small\@declaredcolor{gray}\sffamily And yes, the wings are deliberately placed asymmetrical.\endgraf}\hfill + \parbox[c]{2.6\wd\pinguwingleft}{\scalebox{2.5}{\usebox\pinguwingleft}}\hfill\null \end{center} \paragraph{The Body} Similarly to the wing position, different From e7d050eda1dd5f7ae95c6aa309ecb813f39aae70 Mon Sep 17 00:00:00 2001 From: Florian Sihler Date: Tue, 8 Oct 2024 08:43:24 +0200 Subject: [PATCH 2/2] Update doc/tikzpingus-doc.tex --- doc/tikzpingus-doc.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tikzpingus-doc.tex b/doc/tikzpingus-doc.tex index d03e0bb..2fe40b8 100644 --- a/doc/tikzpingus-doc.tex +++ b/doc/tikzpingus-doc.tex @@ -2,7 +2,7 @@ % Licensed under GNU General Public License version 3 % https://opensource.org/licenses/gpl-3.0.html \errorcontextlines9999 -\documentclass[parskip=half,english,numbers=noenddot,footnotes=nomultiple,oneside,fontsize?10pt,DIV=14]{scrartcl} +\documentclass[parskip=half,english,numbers=noenddot,footnotes=nomultiple,oneside,fontsize=10pt,DIV=14]{scrartcl} % \usepackage[T1]{fontenc}