Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/randombenj/modern-latex-theme
A simple and modern LaTeX theme which can be used with pandoc
https://github.com/randombenj/modern-latex-theme
hacktoberfest latex latex-template modern modern-latex-theme pandoc pdf pdf-theme
Last synced: 2 months ago
JSON representation
A simple and modern LaTeX theme which can be used with pandoc
- Host: GitHub
- URL: https://github.com/randombenj/modern-latex-theme
- Owner: randombenj
- Created: 2020-02-18T12:22:37.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-30T08:35:28.000Z (about 4 years ago)
- Last Synced: 2024-11-01T05:42:38.373Z (2 months ago)
- Topics: hacktoberfest, latex, latex-template, modern, modern-latex-theme, pandoc, pdf, pdf-theme
- Language: TeX
- Homepage:
- Size: 940 KB
- Stars: 34
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **Modern** *LaTeX* pdf theme
[![build](https://github.com/randombenj/modern-latex-theme/workflows/CI/badge.svg)](https://github.com/randombenj/modern-latex-theme/actions)
An opinionated modern latex pdf theme for university notes/papers:
| Title page | Typographic elements | Images |
| :------------------: | :------------------: | :------------------: |
| ![title](example/img/title-page.png) | ![typographics](example/img/typographics.png) | ![images](example/img/images.png) |Examples of the theme are built and published as releases.
Have a look at the **[example builds](https://github.com/randombenj/modern-latex-theme/releases)**.## Installation
You can simply install the latex theme like this:
```sh
# install required dependencies
sudo apt install --yes texlive-base \
texlive-bibtex-extra \
texlive-binaries \
texlive-extra-utils \
texlive-font-utils \
texlive-fonts-recommended \
texlive-formats-extra \
texlive-lang-english \
texlive-lang-european \
texlive-lang-german \
texlive-latex-base \
texlive-latex-extra \
texlive-latex-recommended \
texlive-luatex \
texlive-pictures \
texlive-generic-extra \
texlive-fonts-extra \
python-pygments
# install the template
git clone [email protected]:randombenj/modern-latex-theme.git
sudo cp modern-latex-theme/modern.cls /usr/local/share/texmf/tex/latex/
mktexlsr
```If you want to use this theme with pandoc install it like this:
```sh
mkdir -p ~/.pandoc/templates
cp modern-latex-theme/latex.template ~/.pandoc/templates
```## Use from Source
If you don't want to install the theme you need to set the `TEXINPUTS` environment variable to the location
the `modern.cls` file is in:```sh
git clone [email protected]:randombenj/modern-latex-theme.git
export TEXINPUTS="$(pwd)/modern-latex-theme/:$TEXINPUTS"
```## Use with selfhosted [overleaf](https://github.com/overleaf/overleaf)
Have a look here: https://github.com/randombenj/modern-latex-theme-overleaf
## Write docs
You can use the template in your *LaTeX* document and build like this:
```tex
\documentclass{modern}\begin{document}
...
\end{document}
```
```sh
lualatex -interaction=nonstopmode -halt-on-error -shell-escape [FILE.tex]
```To generate a pdf with pandoc, for example from a markdown
file simply run the following command:```sh
pandoc \
--template=latex.template \
--pdf-engine=lualatex \
--pdf-engine-opt="-shell-escape" \
-o [OUTPUT.pdf] [INPUT.md]
```