Latex Automation Template
This commit is contained in:
34
.gitea/workflows/latex.yaml
Normal file
34
.gitea/workflows/latex.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: "Build PDF"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Base requirements
|
||||
run: |
|
||||
# packages
|
||||
apt-get --assume-yes update && apt-get --assume-yes install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra texlive-lang-german texlive-bibtex-extra biber texlive-science
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Build PDF
|
||||
run: pdflatex ./main.tex
|
||||
- name: Upload PDF
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: main.pdf
|
||||
path: ./main.pdf
|
||||
- name: Commit
|
||||
run: |
|
||||
git config --global user.name 'Cedric'
|
||||
git config --global user.email 'cedric.hoelper@mail.de'
|
||||
git add main.pdf
|
||||
git commit -am "Automated report"
|
||||
git push
|
||||
46
edv_pakete.sty
Normal file
46
edv_pakete.sty
Normal file
@@ -0,0 +1,46 @@
|
||||
\KOMAoptions{fontsize=11pt, paper=a4}
|
||||
%Schriftgröße und Papiergräße Festlegen
|
||||
|
||||
\KOMAoptions{DIV=10}
|
||||
%Rand
|
||||
|
||||
\KOMAoptions{listof=totoc}
|
||||
%Tabellen und Bildverzeichnis im Inhaltsverzeichnis
|
||||
|
||||
\RequirePackage[T1]{fontenc}
|
||||
%Schrifrtart
|
||||
|
||||
\RequirePackage[ngerman]{babel}
|
||||
%Silbentrennung und Überschriften
|
||||
|
||||
\RequirePackage{amssymb}
|
||||
%Mathe Symbole
|
||||
|
||||
\RequirePackage[autostyle=true]{csquotes}
|
||||
%Anführungszeichen und Style der Standardsprache wird übernommen
|
||||
|
||||
\RequirePackage{newtxtext}
|
||||
%macht den Text schöner
|
||||
|
||||
\RequirePackage{newtxmath}
|
||||
%Macht Mathe schöner
|
||||
|
||||
\RequirePackage{graphicx}
|
||||
%braucht man um Bilder und Grafiken einzubinden
|
||||
|
||||
\RequirePackage[backend=biber, style=numeric]{biblatex}
|
||||
%wird benötigt um Verweise auf Bücher durchzuführen
|
||||
|
||||
\graphicspath{{figs/}}
|
||||
%Wo die Bilder und Grafiken liegen.
|
||||
|
||||
\RequirePackage{ hyperref}
|
||||
%erstellt klickbare Verweise.
|
||||
|
||||
\RequirePackage[all]{hypcap}
|
||||
%verbessert die Verlinkung der Bilder
|
||||
|
||||
\RequirePackage{ siunitx}
|
||||
%Messeinheiten schön darstellen.
|
||||
|
||||
|
||||
26
main.tex
Normal file
26
main.tex
Normal file
@@ -0,0 +1,26 @@
|
||||
\documentclass[notitlepage,ngerman]{scrreprt}
|
||||
\usepackage{edv_pakete}
|
||||
\usepackage{amssymb}
|
||||
%styles
|
||||
\addbibresource{refs.bib}
|
||||
%Datei mit den Büchern, die Referenziert werden. Die Datei wird im PDF noch falsch als bericht_main.tex geführt.
|
||||
\begin{document}
|
||||
|
||||
|
||||
\title{Generelles Template für Latex Dokument}
|
||||
\subtitle{InformaTIK}
|
||||
\date{\today}
|
||||
|
||||
\author{Cedric Hölper\\
|
||||
Matrikelnummer: 50033881}
|
||||
%Der Titel wird Erstellt
|
||||
\maketitle
|
||||
\pagenumbering{roman}
|
||||
%Seiten vor dem dem Inhaltsverzeichnis werden mit Römischen Ziffern Nummeriert
|
||||
\tableofcontents
|
||||
\clearpage
|
||||
\pagenumbering{arabic}
|
||||
%Alle anderen mit Arabischen (normalen) Ziffern
|
||||
\part {Luds Vorlesungen}
|
||||
%\include{DATEINAME}
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user