Merge branch 'dev'

This commit is contained in:
bursa-pastoris 2023-03-01 18:43:35 +01:00
commit 983035ec2b
2 changed files with 28 additions and 10 deletions

View File

@ -1,14 +1,19 @@
`uninotes` is a cleaned-up and reworked version of a LaTeX class I used in the `uninotes` is a cleaned-up and reworked version of a LaTeX class I used in the
past to write university notes. It's based on `scrbook`, `classicthesis` and past to write university lceture notes. Today I maintain it for some of them
`arsclassica` and does not do anything special: it just loads and configures that I distribute.
packages, plus some customization. I used it just to avoid rewriting the same
tens of rows whenever I started a new note book. It's based on `scrbook`, `classicthesis` and `arsclassica` and does not do
anything special: it just loads and configures packages, plus some
customization. I use it just to avoid rewriting the same tens of rows whenever
I started a new note book.
## Features ## Features
`uninotes` provides the following features. Most of them are just package `uninotes` provides the following features. Most of them are just package
loadings. loadings.
- some units of measurement that `siunitx` doesn't provide (cal, €, l, q)
- custom layout with `scrbook`, `classicthesis` and `arsclassica` - custom layout with `scrbook`, `classicthesis` and `arsclassica`
- encoding with `inputenc` (UTF8) and `fontenc` (T1) - encoding with `inputenc` (UTF8) and `fontenc` (T1)
- footnotes with custom symbols[^fn_symbols] - footnotes with custom symbols[^fn_symbols]
@ -39,6 +44,7 @@ passed.
Of course, any other needed package can be passed in the preamble. Of course, any other needed package can be passed in the preamble.
## License ## License
`uninotes` is released under the [Expat license](./LICENSE). `uninotes` is released under the [Expat license](./LICENSE).

View File

@ -1,4 +1,4 @@
% Copyright 2022 bursa-pastoris % Copyright 2022, 2023 bursa-pastoris
% %
% Permission is hereby granted, free of charge, to any person obtaining a copy of % Permission is hereby granted, free of charge, to any person obtaining a copy of
% this software and associated documentation files (the "Software"), to deal in % this software and associated documentation files (the "Software"), to deal in
@ -23,7 +23,7 @@
% This class' repository is available at https://git.disroot.org/bursa-pastoris/uninotes. % This class' repository is available at https://git.disroot.org/bursa-pastoris/uninotes.
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesClass{uninotes}[2022/06/01 University notes class] \ProvidesClass{uninotes}[2023/03/01 University notes class]
\LoadClass{scrbook} \LoadClass{scrbook}
\KOMAoptions{headinclude=true,footinclude=true} \KOMAoptions{headinclude=true,footinclude=true}
@ -42,15 +42,27 @@
{***}{$\dagger\dagger\dagger$}{$\ddagger\ddagger\ddagger$}{$\S\S\S$}} {***}{$\dagger\dagger\dagger$}{$\ddagger\ddagger\ddagger$}{$\S\S\S$}}
\setfnsymbol{uninotesfn} \setfnsymbol{uninotesfn}
% Tables and numbers % Tables, numbers, units of measurement
\RequirePackage{booktabs} \RequirePackage{booktabs}
\RequirePackage{tabularx} \RequirePackage{tabularx}
\RequirePackage{eurosym}
\RequirePackage{siunitx} \RequirePackage{siunitx}
\sisetup{output-decimal-marker={,}} \sisetup{output-decimal-marker={,},
range-phrase={-},
range-units=single,
uncertainty-mode=separate}
\DeclareSIUnit{\cal}{cal}
\DeclareSIUnit{\eur}{\geneuro{}}
\DeclareSIUnit{\litre}{l}
\DeclareSIUnit{\quintal}{q}
% Figures % Figures
\RequirePackage{graphicx} \RequirePackage{graphicx}
\RequirePackage{subfig} \RequirePackage{subfig}
\RequirePackage[inkscapelatex=no,
inkscapepath={.svg_export}]{svg}
% Floats % Floats
\RequirePackage{caption} \RequirePackage{caption}
@ -63,7 +75,7 @@
\makeindex[intoc,columns=2] \makeindex[intoc,columns=2]
% Table of contents % Table of contents
\setcounterpageref{tocdepth}{1} \setcounter{tocdepth}{2}
% Math % Math
\renewcommand{\epsilon}{\varepsilon} \renewcommand{\epsilon}{\varepsilon}
@ -101,5 +113,5 @@
% Other features % Other features
\DeclareRobustCommand{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} \DeclareRobustCommand{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
\providecommand{\sn}[1]{\emp{#1}} % Scientific names \providecommand{\sn}[1]{\emph{#1}} % Scientific names
\providecommand{\en}[1]{\emph{\foreignlanguage{english}{#1}}} \providecommand{\en}[1]{\emph{\foreignlanguage{english}{#1}}}