LaTeX template for GitHub including general CI/CD actions and Mathematica templates.
- https://github.com/actions/checkout
- https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/index.md
- https://github.com/xu-cheng/latex-action
- https://github.com/actions/upload-artifact
- Install
MikTeX
: https://miktex.org/download - Update
MikTeX
- Install
SumatraPDF
viewer: https://www.sumatrapdfreader.org/download-free-pdf-viewer Rename-Tex-Files.ps1
renames main LaTeX and BibTeX files to match the repository root directory nameBuild-Latex.ps1
- Install
MikTeX
: https://miktex.org/download - Update
MikTeX
- Install
SumatraPDF
viewer: https://www.sumatrapdfreader.org/download-free-pdf-viewer - Path to SumatraPDF:
C:\Program Files\SumatraPDF
- Install
Intellij IDEA Ultimate
: https://www.jetbrains.com/idea/download/#section=windows - Activate
Intellij IDEA Ultimate
- Install
TeXiFy IDEA
plugin: https://plugins.jetbrains.com/plugin/9473-texify-idea - Clone this repository locally:
https://github.com/kolosovpetro/github-latex-template.git
- Open
github-latex-template
folder inIntellij IDEA Ultimate
and configure as follows - Configure Inverse Search in
Intellij IDEA
for SumatraPDF:Tools -> LaTeX -> Configure Inverse Search
- Compile document using
Shift + F10
- Open the package file
GithubLatexTemplateMathematicaPackage.m
in Wolfram Mathematica, I use version 13.0 - Execute the package using
Shift+Enter
- Open the notebook file
GithubLatexTemplateMathematicaNotebook.nb
- Execute the line:
Needs["GithubLatexTemplateMathematicaPackage"]
- Continue your work as desired
- Update root file name in
build-pdf.yml
andbuild-and-deploy-pdf.yml
- Set repository secrets
GH_ACCESS_TOKEN
: Generate GitHub Personal access token atSettings -> Developer Settings -> Personal access tokens -> Generate mew token
build-pdf.yml
builds project usingTeXLive
. Triggered onpull_request
,push
todevelop
branchbuild-and-deploy-pdf.yml
builds project usingTeXLive
and deploys toGitHub Pages
. Triggered onpush
tomain
branch
Compiled document looks like as follows