Skip to content

Commit

Permalink
[Doc]: font and sizing update (#277)
Browse files Browse the repository at this point in the history
* doc: differnt font for doc

* Update doc/tikzpingus-doc.tex
  • Loading branch information
EagleoutIce authored Oct 9, 2024
1 parent e21fa30 commit 05c48d7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions doc/tikzpingus-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand Down Expand Up @@ -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{%
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 05c48d7

Please sign in to comment.