mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-20 06:47:51 +00:00
Added support for nice looking captions on tables and images.
This commit is contained in:
parent
7e493f4172
commit
b18234a068
35
.gitignore
vendored
Normal file
35
.gitignore
vendored
Normal file
@ -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
|
23
eisvogel.tex
23
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.
|
||||
|
Loading…
Reference in New Issue
Block a user