Debian Codegraph @

texmf-dist/doc/latex/afperpack/afperpack.tex

raw
1 %%%==============================================================================
2 % WinEdt pragmas
3 % !Mode:: "TeX:EN"
4 % Default Compile engines:
5 % !TEX program = pdflatex
6 % !PDFTeXify ext = --enable-etex --restrict-write18
7 % !PDFLaTeX ext = --enable-etex --restrict-write18
8 % !BIB program = none
9 %%%==============================================================================
10 %% Copyright 2025-present by Alceu Frigeri
11 %%
12 %% This work may be distributed and/or modified under the conditions of
13 %%
14 %% * The [LaTeX Project Public License](http://www.latex-project.org/lppl.txt),
15 %% version 1.3c (or later), and/or
16 %% * The [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.html),
17 %% version 3 (or later)
18 %%
19 %% This work has the LPPL maintenance status *maintained*.
20 %%
21 %% The Current Maintainer of this work is Alceu Frigeri
22 %%
23 %% This is version {1.0b} {2025/11/15}
24 %%
25 %% The list of files that compose this work can be found in the README.md file at
26 %% https://ctan.org/pkg/afperpack
27 %%
28 %%%==============================================================================
29 \documentclass[10pt]{article}
30 \RequirePackage[verbose,a4paper,marginparwidth=27.5mm,top=2.5cm,bottom=1.5cm,hmargin={40mm,20mm},marginparsep=2.5mm,columnsep=10mm,asymmetric]{geometry}
31 \usepackage[infograb]{codedescribe}
32 \RequirePackage[inline]{enumitem}
33 \SetEnumitemKey{miditemsep}{parsep=0ex,itemsep=0.4ex}
34
35 \usepackage[math,tikz,listings,graphicx,english]{afperpack}
36
37 \RequirePackage[hidelinks,hypertexnames=false]{hyperref}
38
39 \begin{document}
40 \tstitle{
41 author={Alceu Frigeri\footnote{\tsverb{https://github.com/alceu-frigeri/afperpack}}},
42 date={\tsdate},
43 title={The afperpack Package\break Personal settings and preferences \break Version \PkgInfo{afperpack}{version}}
44 }
45
46
47 \begin{typesetabstract}
48 This bundle includes a personal pre-configuration package, which (selectively) loads package sets with the author pre-defined package options.
49
50 \end{typesetabstract}
51
52 \tableofcontents
53
54 \section{Introduction}
55
56 This is what is left from ``my personal packages''. I started, a few years ago (2022), to untangle the many personal packs/hacks that I was using, documenting them and publishing them at CTAN, and, finally, after almost 3 years (2025), this is what is left: Just an auxiliary package that pre-loads the packages I use the most, and define one single (well two) command(s). So, now, when I share a \LaTeX\ file with a colleague, he/she won't come back asking me how to compile it (because they lack ``my hacks'').
57
58 \section{Package Options}
59
60 \begin{describelist}{key}
61 \describe{showframe}{For geometry/format ``proofing''. This will just load the \tsobj[pkg]{showframe} package.}
62 \describe{showlabels}{For labels placement/location ``proofing''. This will just load the \tsobj[pkg]{showlabels} package.}
63 \describe{english}{Babel will be loaded with \tsobj[option]{english} option. Otherwise \tsobj[option]{brazilian}. }
64 \describe{beamer}{This will suppress the loading of the \tsobj[pkg]{geometry,titlesec,listings} packages. It doesn't loads \tsobj[pkg]{beamer}.}
65 \describe{xpacks}{The packages \tsobj[pkg]{longtable,xpacks,csquotes,caption,supcaption,url,multirow,bigdelim} will be loaded.}
66 \describe{times}{This will load the \tsobj[pkg]{mathptmx} package (times roman) instead of (default) \tsobj[pkg]{lmodern}.}
67 \describe{noquests}{This will suppress the loading of the \tsobj[pkg]{tikzquests} package.}
68 \describe{tikz}{This will load \tsobj[pkg]{tikz,circuitikz,tikzquads,tikzdotncross,pgfplots,tikzfxgraph} packages (and \tsobj[pkg]{tikzquests}, if not suppressed).}
69 \describe{graphicx}{This will load the \tsobj[pkg]{graphicx} package.}
70 \describe{math}{This will load the \tsobj[pkg]{
71 amsmath , amsfonts , amssymb , amsthm , mathrsfs , mathtools, empheq , extarrows, steinmetz, mathfixs , siunitx , cases } packages.}
72 \describe{listings}{This will load the \tsobj[pkg]{listings} package. (if \tsobj[option]{beamer} is false)}
73 \describe{landscape}{Sets geometry for a landscape document}
74 \describe{fxgraph}{(defaults to nothing) Options passed along to \tsobj[pkg]{tikzfxgraph} package, e.g. \tsobj[option]{fxgraph=\{use file\}}.}
75 \describe{quests}{(defaults to nothing) Options passed along to \tsobj[pkg]{tikzquests} package, e.g. \tsobj[option]{quests=\{xtrakeys=\{D\}\}}.}
76 \describe{dotncross}{(defaults to nothing) Options passed along to \tsobj[pkg]{tikzdotncross} package, e.g. \tsobj[option]{dotncross=\{coordcolor=\{blue\}\}}.}
77 \end{describelist}
78
79 Note that \tsobj[pkg]{etoolbox,fontenc,inputenc,xcolors,enumitem} will always be loaded. Besides those \tsobj[pkg]{geometry} will (if not already) as well \tsobj[pkg]{titlesec,listings} if \tsobj[option]{beamer} is false.
80
81 \section{Commands}
82
83
84 \begin{codedescribe}{\cab}
85 \begin{codesyntax}%
86 \tsmacro{\cab}{options}\tsargs[oarg]{extra}
87 \end{codesyntax}
88 This will typesets, in a new page, a typical exam header. \tsobj[oarg]{extra} will be (if present) typeset as is, in a box below the main cab. \tsobj[marg]{options} is a key=val list of:
89 \begin{describelist*}{key}
90 \describe{uni}{University's name. (default: Universidade Federal do Rio Grande do Sul)}
91 \describe{dept}{Department's name. (default: Escola de Engenharia / DELAE)}
92 \describe{class}{Class' name. (default: disciplina)}
93 \describe{classcode}{Class' code. (default: ENGcode)}
94 \describe{exam}{Exam text. (default: Verificação de Aproveitamento)}
95 \describe{sem}{Semester. (default: 202x/Y)}
96 \describe{semester}{alias to \tsobj[key]{sem}.}
97 \describe{name label}{Student`s label. (default: Nome)}
98 \describe{id label}{Student`s ID label. (default: Cartão)}
99 \describe{duo label}{Duo labe. (default: Dupla)}
100 \describe{duo}{If true, a duo label will be added to the identification lines (default: false)}
101 \describe{nonames}{If true, the identification lines will be suppressed.}
102 \describe{simplegrad}{If true, the grad option box will be used, with a preset text. (default: false)}
103 \describe{simplegrad text}{Changes the default text of a simplegrad box.}
104 \end{describelist*}
105 \end{codedescribe}
106
107 For example:
108 \begin{codestore}[af-01]
109 \cab{
110 class={Eletrônica I} , classcode=ENG10044 ,
111 exam = {$1^a$ Verificação} , sem = {2025/1} , simplegrad
112 }
113 \end{codestore}
114 \tscode*[emph={class,classcode,exam,sem,simplegrad,uni,dept,name,id,duo,label,nonames}]{af-01}
115
116 \begin{codedescribe}{\pgfmathparseFPU}
117 \begin{codesyntax}
118 \tsmacro{\pgfmathparseFPU}{math-expr}
119 \end{codesyntax}
120 This command is defined if, and only if, the \tsobj[option]{tikz} option is used. It will process \tsobj[marg]{math-expr} with \tsobj{\pgfmathparse} whilst the \tsobj[key]{/pgf/fpu} key is active, which greatly extends the \TeX\ number's range. See the \tsobj[pkg]{fpu} library from \tsobj[pkg]{tikz} for more details.
121 \end{codedescribe}
122
123 %
124 %\newpage
125 %\PkgInfoMapOver
126 % {
127 % \PkgInfoDescription{#1}
128 % }
129
130 \end{document}