Skip to content

Commit f3290b2

Browse files
Testing if the compiler on github works
1 parent ebf97e3 commit f3290b2

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

.github/workflows/latex.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build LaTeX document
2+
on: [push, pull_request]
3+
jobs:
4+
build_latex:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Set up Git repository
8+
uses: actions/checkout@v2
9+
10+
- name: Compile LaTeX document
11+
uses: xu-cheng/texlive-action/full@v1
12+
with:
13+
run: |
14+
cd src
15+
latexmk
16+
17+
- name: Upload document
18+
uses: actions/upload-artifact@v2
19+
with:
20+
name: PDF
21+
path: src/main.pdf

src/.latexmkrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$pdf_mode = 4;
2+
@default_files = ('main.tex');
3+
$clean_ext = "bbl nav out snm run.xml";

src/config.sty

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
\usepackage[T1]{fontenc}
2+
3+
\usepackage[backend=biber, style=numeric]{biblatex}
4+
\addbibresource{Bibliography.bib}
5+
6+
\usepackage{graphicx}
7+
\graphicspath{{Images/}}
8+
9+
\usepackage{amssymb, amsthm, mathtools}
10+
11+
\usepackage{epigraph}
12+
13+
\usepackage{minted}

src/main.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
\documentclass{scrbook}
2+
\usepackage{config}
3+
4+
\begin{document}
5+
Hello World
6+
\end{document}

0 commit comments

Comments
 (0)