Skip to content

Commit

Permalink
fix: minted on overleaf
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinzauti committed Jun 26, 2024
1 parent 76cef03 commit 9f31246
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
uses: actions/checkout@v2

- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
uses: xu-cheng/texlive-action/full@v1
with:
args: "-g -pdf -file-line-error -halt-on-error -interaction=nonstopmode"
working_directory: src/
root_file: main.tex
run: |
cd src
latexmk
- name: Upload document
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ authors:
- family-names: "Pinzauti"
given-names: "Francesco"
title: "LaTeX thesis template"
version: 1.1.0
version: 1.2.0
date-released: 2022-03-12
url: "https://github.com/Pinzauti/LaTeX-thesis-template"
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Francesco Pinzauti
Copyright (c) 2024 Francesco Pinzauti

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
![MIT](https://img.shields.io/badge/license-MIT-brightgreen)
[![Latest release](https://badgen.net/github/release/Pinzauti/LaTeX-thesis-template)](https://github.com/Pinzauti/LaTeX-thesis-template/releases/tag/v1.1)
# LaTeX Thesis Template
Clean LaTeX template for a thesis or a large writeup. You can see [here](https://github.com/Pinzauti/LaTeX-thesis-template/releases/download/v1.1/template.pdf) the generated PDF.
Clean LaTeX template for a thesis or a large writeup. You can see [here](https://github.com/Pinzauti/LaTeX-thesis-template/releases/download/v1.2/template.pdf) the generated PDF.

## Requirements
You need a working LaTeX enviroment installed in your system.
Expand Down
6 changes: 3 additions & 3 deletions src/Bibliography.bib
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
% Encoding: UTF-8
@misc{2022,
@misc{pinzauti,
author = {Francesco Pinzauti},
title = {LaTeX template for thesis or large writeups.},
howpublished = {\url{https://github.com/Pinzauti/LaTeX-thesis-template}},
month = {03},
year = {2022}
month = {06},
year = {2024}
}

% Add your entries here.
Expand Down
2 changes: 1 addition & 1 deletion src/Chapters/Chapter1/Section1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ \section{Lorem ipsum}
\end{equation*}
\end{proof}

This is an element of the bibliography~\cite{2022}.
This is an element of the bibliography~\cite{pinzauti}.
11 changes: 10 additions & 1 deletion src/config.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@

\usepackage{epigraph} % If you don't want to add quotes at the beginning of the chapters, just remove this line.

\usepackage{minted} % If you don't need to write any code, just remove this line.
% Conditional to check if on Overleaf.
\newif\ifoverleaf
\IfFileExists{output.log}{\overleaftrue}{\overleaffalse}

% If you don't need to write any code, just remove these lines.
\ifoverleaf
\usepackage[outputdir=../]{minted}
\else
\usepackage{minted}
\fi

\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}

Expand Down

0 comments on commit 9f31246

Please sign in to comment.