test drone ci for latex

This commit is contained in:
otthorn 2021-02-12 23:33:54 +01:00
parent e2432e53bd
commit aeeb747ac3
2 changed files with 67 additions and 0 deletions

9
.drone.yml Normal file
View file

@ -0,0 +1,9 @@
kind: pipeline
type: docker
name: Compile LaTeX
steps:
- name: Check syntax
image: aergus/latex
command:
- pdflatex main.tex

58
main.tex Normal file
View file

@ -0,0 +1,58 @@
\documentclass[a4, 12pt]{article}
%\usepackage[utf8]{inputenc} % Not needed with XeLaTeX
\usepackage[T1]{fontenc}
% Maths
\usepackage{amsmath}
\usepackage{amssymb}
% SI unit
\usepackage{siunitx}
% Fancy headers and footers
\usepackage{fancyhdr}
\usepackage{lastpage}
\begin{document}
Hello world
{\centering \it
This page would be intentionally left blank\\
$\dots$\\
if I did not wish to inform you about that.\par}
\vspace{\fill}
% Table of contents
\newpage
\thispagestyle{empty}\addtocounter{page}{-1}
\tableofcontents
% List of figures
\newpage
\thispagestyle{empty}\addtocounter{page}{-1}
\listoffigures
% List of algorithms
\newpage
\thispagestyle{empty}\addtocounter{page}{-1}
\listofalgorithms
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}
\renewcommand{\headheight}{15pt}
\pagestyle{fancy}
\fancyhf{}
\rhead{\rightmark}
\lhead{\leftmark}
\lfoot{Solal Nathan - ARPE Report}
\rfoot{\thepage \hspace{2pt} / \pageref{LastPage}}
Plop test
\end{document}