Compare commits

...

3 Commits

Author SHA1 Message Date
Taha Ahmed facfcdadf7 Make the author contributions outro visually smaller
Smaller font size and more preceding vspace
7 months ago
Taha Ahmed ef2daad757 Moved caption package to document (what was it doing here in the
first place?).

+ simply removed the \@makecaption low-level definitions as they
  were interfering with our ability to use \captionsetup{...}
  inside the mdframed environment (the low-level definitions
  always ended up overriding any local captionsetup).
  I don't see much point to these low-level definitions, they
  can be fairly well replicated with captionsetup anyway.
7 months ago
Taha Ahmed bc9cbb76ef These custom lists are pointless in my opinion. Plus they don't
allow the writer to add optional args to the custom environments
(the definitions would need to be rewritten from scratch to support
that, probably with xparse notation). Anyway, the default behaviour
of the itemize environment produces just the same results as
bulletlist-indent (as far as I can tell).
8 months ago

@ -161,9 +161,6 @@
\DeclareOption{openright}{ \@UU@openrighttrue }
\PassOptionsToPackage{figuresright}{rotating}
% added compatibility=false to make it work together with subcaption
% https://tex.stackexchange.com/questions/31906/subcaption-package-compatibility-issue#31927
\PassOptionsToPackage{font=small,labelfont=bf,nooneline,textfont=it,compatibility=false}{caption}
\ProcessOptions
@ -614,48 +611,6 @@
\setlength{\abovecaptionskip}{3pt plus 2pt}
\setlength{\belowcaptionskip}{0pt plus 42pt}
\AtBeginDocument{
\def\@caption#1[#2]#3{%
\par %
\addcontentsline {\csname ext@#1\endcsname }{#1}{\protect \numberline {\csname the#1\endcsname }{\ignorespaces #2}}%
\begingroup %
\@parboxrestore %
\if@minipage %
\@setminipage %
\fi %
\normalsize %
\@makecaption{\csname fnum@#1\endcsname }{\ignorespaces #3}%
\par %
\endgroup
}
\def\@makecaption@table#1#2{%
\addvspace{\belowcaptionskip}%
%\sbox\@tempboxa{{\bf #1.} #2}%
\small{\bf #1.} {\it #2}\par%
\addvspace{\abovecaptionskip}%
}
\def\@makecaption@default#1#2{%
\addvspace{\abovecaptionskip}%
\sbox\@tempboxa{{\it #1.} #2}%
\ifdim \wd\@tempboxa>\hsize%
\small{\it #1.} #2\par%
\else %
\global \@minipagefalse \hb@xt@ \hsize {\hfil \box \@tempboxa \hfil }%
\fi %
\addvspace{\belowcaptionskip}%
}
\renewcommand{\@makecaption}[2]{%
\expandafter\let\expandafter\hej\csname @makecaption@\@captype\endcsname%
\expandafter\ifx\hej\relax%
\let\hej\@makecaption@default%
\fi%
\hej{#1}{#2}%
}
}
% ============================================
% Package fixes
@ -751,6 +706,7 @@
}{\providecommand{\phantomsection}{}}
}
% ============================================
% Table of contents
% ============================================
@ -1135,7 +1091,7 @@
\setlength{\topsep}{0mm}}%
}{%
\end{description}\nopagebreak%
\vspace{1\baselineskip}\noindent {\@authorscontributionsoutro}%
\vspace{3\baselineskip}\noindent {\footnotesize\@authorscontributionsoutro}%
}
@ -1299,73 +1255,6 @@
% Compability and short-hands
% ============================================
\newenvironment{numberedlist}{
\begin{enumerate}
\setlistmargin[5]
}{\end{enumerate}}
\newenvironment{numberedlist-indent}{
\setlength{\UU@listindent}{1cm}
\addtolength{\leftmargini}{\UU@listindent}
\begin{enumerate}
\setlistmargin[5]
}{\end{enumerate}}
\newenvironment{enumerate-indent}{
\setlength{\UU@listindent}{1cm}
\addtolength{\leftmargini}{\UU@listindent}
\begin{enumerate}
\setlistmargin[5]
}{\end{enumerate}}
\newenvironment{bulletlist}{
\begin{itemize}
\setlistmargin
}{\end{itemize}}
\newenvironment{bulletlist-indent}{
\setlength{\UU@listindent}{1cm}
\addtolength{\leftmargini}{\UU@listindent}
\begin{itemize}
\setlistmargin
}{\end{itemize}}
\newenvironment{itemize-indent}{
\setlength{\UU@listindent}{1cm}
\addtolength{\leftmargini}{\UU@listindent}
\begin{itemize}
\setlistmargin
}{\end{itemize}}
\newenvironment{romanlist}{
\renewcommand{\labelenumi}{\Roman{enumi}.}
\renewcommand{\labelenumii}{\roman{enumii}.}
\begin{enumerate}
\setlistmargin[8]
}{\end{enumerate}}
\newenvironment{romanlist-indent}{
\setlength{\UU@listindent}{1cm}
\addtolength{\leftmargini}{\UU@listindent}
\begin{romanlist}
}{\end{romanlist}}
\newenvironment{simplelist}{
\begin{list}{}{
\setlength{\leftmargin}{0mm}
\setlength{\itemsep}{0mm}
\setlength{\parsep}{0mm}
\setlength{\topsep}{0mm}
}}{\end{list}}
\newenvironment{simplelist-indent}{
\begin{list}{}{
\setlength{\leftmargin}{1cm}
\setlength{\itemsep}{0mm}
\setlength{\parsep}{0mm}
\setlength{\topsep}{0mm}
}}{\end{list}}
\newenvironment{definitionlist}[1][]{
\@afterindenttrue\par\parindent -1em\advance\leftskip-\parindent\renewcommand{\item}[1]{\par{\it #1 ##1} -- \ignorespaces}
}{\par}
@ -1385,4 +1274,3 @@
\fi%
\noindent\textit{#1}%
}

Loading…
Cancel
Save