Merge branch 'dev'
This commit is contained in:
commit
983035ec2b
|
@ -1,14 +1,19 @@
|
|||
`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
|
||||
`arsclassica` and does not do anything special: it just loads and configures
|
||||
packages, plus some customization. I used it just to avoid rewriting the same
|
||||
tens of rows whenever I started a new note book.
|
||||
past to write university lceture notes. Today I maintain it for some of them
|
||||
that I distribute.
|
||||
|
||||
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
|
||||
|
||||
`uninotes` provides the following features. Most of them are just package
|
||||
loadings.
|
||||
|
||||
- some units of measurement that `siunitx` doesn't provide (cal, €, l, q)
|
||||
- custom layout with `scrbook`, `classicthesis` and `arsclassica`
|
||||
- encoding with `inputenc` (UTF8) and `fontenc` (T1)
|
||||
- footnotes with custom symbols[^fn_symbols]
|
||||
|
@ -39,6 +44,7 @@ passed.
|
|||
Of course, any other needed package can be passed in the preamble.
|
||||
|
||||
## License
|
||||
|
||||
`uninotes` is released under the [Expat license](./LICENSE).
|
||||
|
||||
|
||||
|
|
24
uninotes.cls
24
uninotes.cls
|
@ -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
|
||||
% 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.
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{uninotes}[2022/06/01 University notes class]
|
||||
\ProvidesClass{uninotes}[2023/03/01 University notes class]
|
||||
\LoadClass{scrbook}
|
||||
\KOMAoptions{headinclude=true,footinclude=true}
|
||||
|
||||
|
@ -42,15 +42,27 @@
|
|||
{***}{$\dagger\dagger\dagger$}{$\ddagger\ddagger\ddagger$}{$\S\S\S$}}
|
||||
\setfnsymbol{uninotesfn}
|
||||
|
||||
% Tables and numbers
|
||||
% Tables, numbers, units of measurement
|
||||
\RequirePackage{booktabs}
|
||||
\RequirePackage{tabularx}
|
||||
|
||||
\RequirePackage{eurosym}
|
||||
|
||||
\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
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage{subfig}
|
||||
\RequirePackage[inkscapelatex=no,
|
||||
inkscapepath={.svg_export}]{svg}
|
||||
|
||||
% Floats
|
||||
\RequirePackage{caption}
|
||||
|
@ -63,7 +75,7 @@
|
|||
\makeindex[intoc,columns=2]
|
||||
|
||||
% Table of contents
|
||||
\setcounterpageref{tocdepth}{1}
|
||||
\setcounter{tocdepth}{2}
|
||||
|
||||
% Math
|
||||
\renewcommand{\epsilon}{\varepsilon}
|
||||
|
@ -101,5 +113,5 @@
|
|||
|
||||
% Other features
|
||||
\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}}}
|
||||
|
|
Loading…
Reference in New Issue