commit 92753078b41a80288a8a57d76621c58c1e59d8c3 Author: Jannis Portmann Date: Thu Feb 2 17:07:34 2023 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d6fcb13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,301 @@ + +# Created by https://www.toptal.com/developers/gitignore/api/latex +# Edit at https://www.toptal.com/developers/gitignore?templates=latex + +### LaTeX ### +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +*.pdf + +## Generated if empty string is given at "Please type another file name for output:" +.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# comment +*.cut + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.*-glg +*.*-glo +*.*-gls +*.glsdefs +*.lzo +*.lzs + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Comment the next line if you want to keep your tikz graphics files +*.tikz +*-tikzDictionary + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices and outlines +*.xyc +*.xyd + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# gummi +.*.swp + +# KBibTeX +*~[0-9]* + +# TeXnicCenter +*.tps + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +# Makeindex log files +*.lpz + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# option is specified. Footnotes are the stored in a file with suffix Notes.bib. +# Uncomment the next line to have this generated file ignored. +#*Notes.bib + +### LaTeX Patch ### +# LIPIcs / OASIcs +*.vtc + +# glossaries +*.glstex + +# End of https://www.toptal.com/developers/gitignore/api/latex + +.DS_Store \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..46564cd --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,17 @@ +node { + stage('Pull git') { + checkout scm + } + + stage('Build PDF') { + sh 'latexmk -c -xelatex -jobname=${REPO_NAME} main.tex' + } + + stage('Archive PDF') { + archiveArtifacts artifacts: '${REPO_NAME}.pdf', followSymlinks: false + } + + stage('Publish PDF') { + sh 'scp -i /root/.ssh/id_rsa ${REPO_NAME}.pdf thisfro@192.168.178.45:/opt/containers/apache2/html/download/latex-previews/${REPO_NAME}.pdf' + } +} \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7a3094a --- /dev/null +++ b/LICENSE @@ -0,0 +1,11 @@ +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +Version 2, December 2004 + +Copyright (C) 2004 Sam Hocevar + +Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. + +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README.md b/README.md new file mode 100644 index 0000000..d852f56 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# lsd-zf +[![CC BY-SA 3.0][cc-by-sa-shield]][cc-by-sa] + +Zusammenfassung für die Vorlesung [*VL-NAME*](http://vvz.ethz.ch) bei DOZENTEN im FS21. + +## Kompiliertes `.pdf` +Findest du hier: https://n.ethz.ch/~jannisp/download/lsd-zf/ + +Vorschau-PDFs werden automatisch unter https://server.thisfro.ch/download/latex-previews/ veröffentlicht. +:warning: Achtung: Diese sind meist noch nicht fertig! + +## Änderungen +Falls du irgendwelche Fehler findest oder Sache ergänzen willst, darfst du die gerne selbst korrigieren/einfügen und einen Pull request öffnen. Ansonsten kontaktiere mich direkt ([jannisp](jannispmailto:jannisp@student.ethz.ch)). + +## Copyleft +Ausser den Grafiken unterliegte die Zusammenfassung der [Creative Commons Attribution-ShareAlike 3.0 International License][cc-by-sa]. + +[![CC BY-SA 3.0][cc-by-sa-image]][cc-by-sa] + +[cc-by-sa]: http://creativecommons.org/licenses/by-sa/3.0/ +[cc-by-sa-image]: https://licensebuttons.net/l/by-sa/3.0/88x31.png +[cc-by-sa-shield]: https://img.shields.io/badge/License-CC%20BY--SA%203.0-lightgrey.svg + diff --git a/img/.gitignore b/img/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..5ae19f4 --- /dev/null +++ b/main.tex @@ -0,0 +1,171 @@ +\documentclass[8pt,landscape]{article} +\usepackage{multicol} +\usepackage{calc} +\usepackage{bookmark} +\usepackage{ifthen} +\usepackage[a4paper, landscape]{geometry} +\usepackage{hyperref} +\usepackage{ccicons} +\usepackage{amsmath, amsfonts, amssymb, amsthm} +\usepackage{listings} +\usepackage{graphicx} +\usepackage{fontawesome5} +\usepackage{xcolor} +\usepackage{float} +\usepackage{apacite} +\usepackage[ + type={CC}, + modifier={by-sa}, + version={3.0} +]{doclicense} + +\graphicspath{{./img/}} + +\definecolor{codegreen}{rgb}{0,0.6,0} +\definecolor{codegray}{rgb}{0.5,0.5,0.5} +\definecolor{codepurple}{rgb}{0.58,0,0.82} +\definecolor{backcolour}{rgb}{0.95,0.95,0.92} + +\lstdefinestyle{mystyle}{ + backgroundcolor=\color{backcolour}, + commentstyle=\color{codegreen}, + keywordstyle=\color{magenta}, + numberstyle=\tiny\color{codegray}, + stringstyle=\color{codepurple}, + basicstyle=\ttfamily\footnotesize, + breakatwhitespace=false, + breaklines=true, + captionpos=b, + keepspaces=true, + numbers=left, + numbersep=5pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2 +} + +\lstset{style=mystyle} + +% To make this come out properly in landscape mode, do one of the following +% 1. +% pdflatex latexsheet.tex +% +% 2. +% latex latexsheet.tex +% dvips -P pdf -t landscape latexsheet.dvi +% ps2pdf latexsheet.ps + + +% If you're reading this, be prepared for confusion. Making this was +% a learning experience for me, and it shows. Much of the placement +% was hacked in; if you make it better, let me know... + + +% 2008-04 +% Changed page margin code to use the geometry package. Also added code for +% conditional page margins, depending on paper size. Thanks to Uwe Ziegenhagen +% for the suggestions. + +% 2006-08 +% Made changes based on suggestions from Gene Cooperman. + + +% To Do: +% \listoffigures \listoftables +% \setcounter{secnumdepth}{0} + + +% This sets page margins to .5 inch if using letter paper, and to 1cm +% if using A4 paper. (This probably isn't strictly necessary.) +% If using another size paper, use default 1cm margins. +\ifthenelse{\lengthtest { \paperwidth = 11in}} + { \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} } + {\ifthenelse{ \lengthtest{ \paperwidth = 297mm}} + {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + } + +% Turn off header and footer +\pagestyle{empty} + + +% Redefine section commands to use less space +\makeatletter +\renewcommand{\section}{\@startsection{section}{1}{0mm}% + {-1ex plus -.5ex minus -.2ex}% + {0.5ex plus .2ex}%x + {\normalfont\large\bfseries}} +\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}% + {-1explus -.5ex minus -.2ex}% + {0.5ex plus .2ex}% + {\normalfont\normalsize\bfseries}} +\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}% + {-1ex plus -.5ex minus -.2ex}% + {1ex plus .2ex}% + {\normalfont\small\bfseries}} + + +\makeatother + +% Define BibTeX command +\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em + T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} + +% Don't print section numbers +% \setcounter{secnumdepth}{0} + + +\setlength{\parindent}{0pt} +\setlength{\parskip}{0pt plus 0.5ex} + +% ----------------------------------------------------------------------- + +\begin{document} + +\raggedright +\footnotesize +\begin{multicols*}{3} + + +% multicol parameters +% These lengths are set only within the two main columns +%\setlength{\columnseprule}{0.25pt} +\setlength{\premulticols}{1pt} +\setlength{\postmulticols}{1pt} +\setlength{\multicolsep}{1pt} +\setlength{\columnsep}{2pt} + +\begin{center} + \Large{lsd-zf} \\ + \small{\href{http://www.vvz.ethz.ch/}{VL-NUMMER}} \\ + \small{Jannis Portmann \the\year} \\ + {\ccbysa} +\rule{\linewidth}{0.25pt} +\end{center} + +\section{First} + +\scriptsize + +\section*{Copyleft} + +\doclicenseImage \\ +Dieses Dokument ist unter (CC BY-SA 3.0) freigegeben \\ +\faGlobeEurope \kern 1em \url{https://n.ethz.ch/~jannisp/lsd-zf} \\ +\faGit \kern 0.88em \url{https://git.thisfro.ch/thisfro/lsd-zf} \\ +Jannis Portmann, FS21 + +\section*{Referenzen} +\begin{enumerate} + \item Skript +\end{enumerate} + +\section*{Bildquellen} +\begin{itemize} + \item Bild +\end{itemize} + +\end{multicols*} + +\end{document}