updated latexmkrc, moved page geometry to own file

This commit is contained in:
Sven Vogel 2023-09-27 15:38:55 +02:00
parent 911370409b
commit a1cc9562a9
5 changed files with 23 additions and 14 deletions

4
.gitignore vendored
View File

@ -318,5 +318,5 @@ main.pdf
# ignore build directories
# these hold all the clutter we do not want to have
tmp
build
.tmp
.build

View File

@ -16,10 +16,10 @@
# Move all axuiliary files to a separate directory, so they do not clutter up the project directory
$emulate_aux = 1;
$aux_dir = "tmp";
$aux_dir = ".tmp";
# Move the compiled files (and synctex) to a separate directory
$out_dir = 'build';
$out_dir = '.build';
# command to compile and run
$pdflatex = 'pdflatex %O -interaction=nonstopmode -shell-escape %S';

15
config/geomerty.tex Normal file
View File

@ -0,0 +1,15 @@
% Set page geometry such as: margin, aspect ratio, ...
% Documentation see: https://texdoc.org/serve/geometry.pdf/0
\geometry {
papername=a4paper, % size of paper
portrait, % aspect ratio format
% margins
left=3cm,
right=2cm,
top=2cm,
bottom=2cm,
% includes the head of the page, \headheight and \headsep, into total body.
includehead,
% show a frame around text (for debuging)
showframe=false,
}

View File

@ -1,12 +1,3 @@
% set page margins
\newgeometry {
left=3cm,
right=2cm,
top=2cm,
bottom=2cm,
includehead
}
% configure hyper links
\hypersetup{
bookmarksopen=false,
@ -18,6 +9,7 @@
pdfborder={0 0 0} % disable border
}
% translate caption title to german
\captionsetup*[figure]{name=Bild}
\captionsetup*[table]{name=Tabelle}
\captionsetup*[listing]{name=Quelltext}

View File

@ -1,4 +1,4 @@
\documentclass[a4paper, 12pt]{article}
\documentclass[12pt]{article}
% =====================================================================
% latex packages to use
@ -36,6 +36,8 @@
% include file with fixes and workaround
% as well as special settings
\input{extra/fixes}
% article page geometry configuration
\input{config/geomerty}
\begin{document}