From b18234a068a3c1957992b76ce5c6786fd16f1aaf Mon Sep 17 00:00:00 2001 From: Wandmalfarbe Date: Tue, 12 Dec 2017 21:52:47 +0100 Subject: [PATCH] Added support for nice looking captions on tables and images. --- .gitignore | 35 +++++++++++++++++++++++++++++++++++ eisvogel.tex | 23 +++++++++++++---------- 2 files changed, 48 insertions(+), 10 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4dc8175 --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ + +# contains all sorts of unfinished changes +tests + +# +# macOS.gitignore +# + +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk diff --git a/eisvogel.tex b/eisvogel.tex index 23b26fd..3dbdf5d 100644 --- a/eisvogel.tex +++ b/eisvogel.tex @@ -44,7 +44,7 @@ $if(colorlinks)$ \PassOptionsToPackage{dvipsnames,svgnames*,x11names*,table}{xcolor} $endif$ % -\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$else$a4paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{scrartcl} +\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$else$a4paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$,tablecaptionabove]{scrartcl} $if(beamer)$ \setbeamertemplate{caption}[numbered] \setbeamertemplate{caption label separator}{: } @@ -469,8 +469,10 @@ $endif$ % % captions % -\usepackage[font={small,it}]{caption} -\newcommand{\imglabel}[1]{\textbf{\textit{(#1)}}} +\definecolor{caption-color}{HTML}{777777} +\usepackage[font={stretch=1.2}, textfont={color=caption-color}, position=top, skip=4mm, labelfont=bf, singlelinecheck=false]{caption} +\setcapindent{0em} +\captionsetup[longtable]{position=above} % % blockquote @@ -508,18 +510,19 @@ $endif$ \title{$title$} \author{$for(author)$$author$$sep$, $endfor$} -% -% environment for boxes -% -%\usepackage{framed} - % % tables % $if(tables)$ -\renewcommand{\arraystretch}{1.3} % table spacing + \definecolor{table-row-color}{HTML}{F5F5F5} -\rowcolors{3}{}{table-row-color!100} +\definecolor{table-rule-color}{HTML}{999999} + +%\arrayrulecolor{black!40} +\arrayrulecolor{table-rule-color} % color of \toprule, \midrule, \bottomrule +\setlength\heavyrulewidth{0.3ex} % thickness of \toprule, \bottomrule +\renewcommand{\arraystretch}{1.3} % spacing (padding) +\rowcolors{3}{}{table-row-color!100} % row color % Reset rownum counter so that each table % starts with the same row colors.