Skip to content

fix: enumerate and itemize format #103

fix: enumerate and itemize format

fix: enumerate and itemize format #103

Workflow file for this run

on:
push:
branches:
- master
- proposal
- fix-ci
pull_request:
branches:
- master
- proposal
name: test
env:
# gbt7714 natbib: gbt7714 needed
# chinese-jfm: lualatex needed
# catchfile fancyvrb framed fvextra ifplatform lineno minted pdftexcmds upquote xstring: minted needed
# biber biblatex bibtex: for executable bibtex
# txfonts: mathptmx is obsoleted; times: times is obsoleted but utmb8a.pfb is needed
# dvips: for 8r.enc, OS X needed; gsftopk: command needed when xdv -> pdf
TL_PACKAGES: adjustbox algorithmicx algorithms biber biblatex biblatex-gb7714-2015 bibtex booktabs caption carlisle cases catchfile chinese-jfm chngcntr circledsteps cleveref collectbox ctex dvips enumitem environ extarrows fancybox fancyhdr fancyvrb float framed fvextra gbt7714 gsftopk helvetic hologo ifplatform lastpage latexmk lineno minted multirow mwe natbib needspace newtx nth oberdiek pdftexcmds pgfkeys picture realscripts rsfs setspace siunitx subfig tcolorbox texcount texliveonfly threeparttable threeparttablex times titling tocloft trimspaces txfonts ucs upquote was xcolor xecjk xpatch xstring zhnumber
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [-xelatex, -lualatex]
steps:
- name: checkout
uses: actions/checkout@v2
- name: compile LaTeX document
uses: xu-cheng/texlive-action/full@v1
with:
run: |
make ENGINE=${{ matrix.compiler }} all
mv main.pdf linux${{ matrix.compiler }}.pdf
- name: check compile
if: ${{ failure() }}
run: |
cat main.log
- name: upload pdf
uses: actions/upload-artifact@v2
with:
name: document linux output
path: linux${{ matrix.compiler }}.pdf
build-macos:
runs-on: macos-latest
strategy:
matrix:
compiler: [-xelatex, -lualatex]
env:
SET_PATH: export PATH=/tmp/texlive/bin/universal-darwin:/usr/texbin:$PATH
steps:
- name: checkout
uses: actions/checkout@v2
- name: install Python for minted
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: pip install Pygments for minted
run: pip install Pygments
- name: install TeXLive
run: |
${{ env.SET_PATH }}
curl -O https://mirrors.rit.edu/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20* && ./install-tl --profile ../.github/ci/texlive.profile
tlmgr install ${{ env.TL_PACKAGES }}
tlmgr update --self --all --no-auto-install --repository=https://mirrors.rit.edu/CTAN/systems/texlive/tlnet/
tlmgr path add
- name: compile LaTeX document
run: |
make ENGINE=${{ matrix.compiler }} all
mv main.pdf macos${{ matrix.compiler }}.pdf
- name: check compile
if: ${{ failure() }}
run: |
cat main.log
- name: upload pdf
uses: actions/upload-artifact@v2
with:
name: document macos output
path: macos${{ matrix.compiler }}.pdf
build-windows:
runs-on: windows-latest
strategy:
matrix:
compiler: [-xelatex, -lualatex]
env:
SET_PATH: ${env:PATH} = "${{ github.workspace }}\tmp\texlive\bin\windows;" + ${env:PATH}
steps:
- name: checkout
uses: actions/checkout@v2
- name: install Python for minted
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: pip install Pygments for minted
run: pip install Pygments
- name: install TeXLive
run: |
${{ env.SET_PATH }}
Invoke-WebRequest -Uri https://mirrors.rit.edu/CTAN/systems/texlive/tlnet/install-tl.zip -OutFile install-tl.zip
Expand-Archive install-tl.zip -DestinationPath .
Set-Location install-tl-*
.\install-tl-windows --no-gui --profile ..\.github\ci\texlive-win.profile
tlmgr install ${{ env.TL_PACKAGES }}
tlmgr update --self --all --no-auto-install --repository=https://mirrors.rit.edu/CTAN/systems/texlive/tlnet/
- name: compile LaTeX document
run: |
${{ env.SET_PATH }}
.\make.bat thesis ${{ matrix.compiler }}
mv main.pdf windows${{ matrix.compiler }}.pdf
- name: upload pdf
uses: actions/upload-artifact@v2
with:
name: document windows output
path: windows${{ matrix.compiler }}.pdf