| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 2018 - 2021 by ChairX |
| 4 |
% |
| 5 |
% This file may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either |
| 7 |
% version 1.3 of this license or (at your option) any later |
| 8 |
% version. The latest version of this license is in: |
| 9 |
% |
| 10 |
% http://www.latex-project.org/lppl.txt |
| 11 |
% |
| 12 |
% and version 1.3 or later is part of all distributions of |
| 13 |
% LaTeX version 2005/12/01 or later. |
| 14 |
% |
| 15 |
% This file contains the implementation of the default settings. |
| 16 |
% |
| 17 |
% Macros have to be described by (delete the first %) |
| 18 |
% %\begin{macro}{\macro} |
| 19 |
% % Description of the implementation. |
| 20 |
% % \begin{macrocode} |
| 21 |
%\newcommand{\macro}[] {} |
| 22 |
% % \end{macrocode} |
| 23 |
% %\end{macro} |
| 24 |
% |
| 25 |
% The implementation and description will appear in the implementation |
| 26 |
% part of the documentation. Use \subsubsection{} etc. for |
| 27 |
% structuring. |
| 28 |
% |
| 29 |
% The documentation of the macros defined here has to be written in |
| 30 |
% chairxDefaultsDoc.dtx |
| 31 |
% \fi |
| 32 |
% |
| 33 |
% Equations with section numbers. |
| 34 |
% |
| 35 |
% \begin{macrocode} |
| 36 |
\numberwithin{equation}{section} |
| 37 |
\renewcommand{\theequation}{\thesection.\arabic{equation}} |
| 38 |
% \end{macrocode} |
| 39 |
% |
| 40 |
% |
| 41 |
% Page breaks allowed in long formulas by default. |
| 42 |
% |
| 43 |
% \begin{macrocode} |
| 44 |
\allowdisplaybreaks |
| 45 |
% \end{macrocode} |
| 46 |
% |
| 47 |
% |
| 48 |
% More space in arrays. |
| 49 |
% |
| 50 |
% \begin{macrocode} |
| 51 |
\renewcommand{\arraystretch}{1.2} |
| 52 |
% \end{macrocode} |
| 53 |
% |
| 54 |
% |
| 55 |
% Better spacing with |\left| and |\right| commands. Hack from |
| 56 |
% TeXExchange |https://tex.stackexchange.com/questions/2607/| |
| 57 |
% |
| 58 |
% \begin{macrocode} |
| 59 |
\let\originalleft\left |
| 60 |
\let\originalright\right |
| 61 |
\renewcommand{\left}{\mathopen{}\mathclose\bgroup\originalleft} |
| 62 |
\renewcommand{\right}{\aftergroup\egroup\originalright} |
| 63 |
% \end{macrocode} |
| 64 |
% |
| 65 |
% |
| 66 |
% Empty left pages before new chapter. If not explicitly set to empty |
| 67 |
% the headers might be non-empty with empty content pages. This |
| 68 |
% typically looks rather weird. So the easiest way is to make the page |
| 69 |
% completely blank. |
| 70 |
% |
| 71 |
% \begin{macrocode} |
| 72 |
\renewcommand{\cleardoublepage}{\clearpage\ifodd\c@page\else\vspace*{\fill}\thispagestyle{empty}\newpage\fi} |
| 73 |
% \end{macrocode} |
| 74 |
% |