Skip to content

Commit

Permalink
Adjust header spacing, table colors and caption justification (Truste…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner authored Sep 17, 2022
1 parent 93227cb commit 9060233
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ RUN tlmgr update --self && \
pagecolor \
adjustbox \
collectbox \
titlesec \
fvextra \
pdftexcmds \
footnotebackref \
Expand Down
38 changes: 31 additions & 7 deletions template/eisvogel.latex
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,6 @@ $if(logo)$
$endif$
$endif$



%%
%% added
%%
Expand Down Expand Up @@ -602,7 +600,7 @@ $endif$
\definecolor{caption-color}{HTML}{777777}
$if(beamer)$
$else$
\usepackage[font={stretch=1.2}, textfont={color=caption-color}, position=top, skip=4mm, labelfont=bf, singlelinecheck=false, justification=$if(caption-justification)$$caption-justification$$else$raggedright$endif$]{caption}
\usepackage[font={stretch=1.2}, textfont={color=caption-color}, position=top, skip=4mm, labelfont=bf, singlelinecheck=false, justification=centering]{caption}
\setcapindent{0em}
$endif$

Expand Down Expand Up @@ -684,17 +682,17 @@ $endif$
%
$if(tables)$

\definecolor{table-row-color}{HTML}{F5F5F5}
\definecolor{table-alt-color}{HTML}{D1E3A0}
\definecolor{table-row-color}{HTML}{C0C0C0}
\definecolor{table-alt-color}{HTML}{DADADA}
\definecolor{table-rule-color}{HTML}{FFFFFF}

\arrayrulecolor{table-rule-color} % color of \toprule, \midrule, \bottomrule
\setlength\heavyrulewidth{0.3ex} % thickness of \toprule, \bottomrule
\setlength\heavyrulewidth{0.3ex} % thickness of \toprule, \bottomrule
\renewcommand{\arraystretch}{1.3} % spacing (padding)

$if(table-use-row-colors)$
\usepackage{etoolbox}
\AtBeginEnvironment{longtable}{\rowcolors{2}{table-row-color!50}{table-alt-color!50}}
\AtBeginEnvironment{longtable}{\rowcolors{2}{table-row-color}{table-alt-color}}
\preto{\toprule}{\hiderowcolors}{}{}
\appto{\endhead}{\showrowcolors}{}{}
\appto{\endfirsthead}{\showrowcolors}{}{}
Expand Down Expand Up @@ -949,6 +947,32 @@ $endif$

\ExplSyntaxOff

\RedeclareSectionCommand[
runin=false,
afterindent=false,
beforeskip=\baselineskip,
afterskip=0em]{section}
\RedeclareSectionCommand[
runin=false,
afterindent=false,
beforeskip=.75\baselineskip,
afterskip=0em]{subsection}
\RedeclareSectionCommand[
runin=false,
afterindent=false,
beforeskip=.5\baselineskip,
afterskip=0em]{subsubsection}
\RedeclareSectionCommand[
runin=false,
%afterindent=false,
beforeskip=.5\baselineskip,
afterskip=0em]{paragraph}
\RedeclareSectionCommand[
runin=false,
%afterindent=false,
beforeskip=.5\baselineskip,
afterskip=0em]{subparagraph}

\begin{document}

%%
Expand Down

0 comments on commit 9060233

Please sign in to comment.