Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build templates
on:
push:
branches:
- master
- main
pull_request:
types: [opened, synchronize, reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
build_templates:
runs-on: ubuntu-latest
strategy:
matrix:
template:
["amspaper", "siampaper", "springerpaper", "acmpaper", "llncspaper"]
steps:
- name: Set up Git repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up ${{ matrix.template }} template
run: |
git config set advice.defaultBranchName false
git config --global user.email "chuck.norris@kungfu.com"
git config --global user.name "Chuck Norris"
$LATEX_STYLES/bin/new-paper ${{ matrix.template }} mypaper
env:
LATEX_STYLES: ${{ github.workspace }}
- name: Compile ${{ matrix.template }} template
uses: xu-cheng/latex-action@v4
with:
texlive_version: latest
root_file: |
mypaper.tex
mypaper-response-to-referees.tex
working_directory: ${{ github.workspace }}/mypaper/paper
extra_system_packages: "git patch"
latexmk_shell_escape: true
pre_compile: git config --global --add safe.directory /github/workspace
env:
TEXINPUTS: ".:$GITHUB_WORKSPACE/styles//:"
BSTINPUTS: ".:$GITHUB_WORKSPACE/styles/common"
BIBINPUTS: ".:$GITHUB_WORKSPACE/share"
- name: Upload PDF artifacts
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.template }}-PDFs
path: |
${{ github.workspace }}/mypaper/paper/mypaper.pdf
${{ github.workspace }}/mypaper/paper/mypaper-response-to-referees.pdf
1 change: 1 addition & 0 deletions styles/amspaper/amspaper.sty
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
%
% Import definitions common to all styles.
%
\newlength{\bibindent}
\usepackage{latex_styles_common1}
\usepackage{latex_styles_common0}
\usepackage{latex_styles_common}
Expand Down
2 changes: 1 addition & 1 deletion styles/springerpaper/springerpaper.sty
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
% Environments.
%
\usepackage{latex_styles_common}
\usepackage{latex_styles_common0}
\usepackage{latex_styles_common1}
\usepackage{latex_styles_common0}
\crefname{lemma}{Lemma}{Lemmas}
\crefname{theorem}{Theorem}{Theorems}
\crefname{corollary}{Corollary}{Corollaries}
Expand Down