Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • cloustile/njuthesis
  • GGbond/njuthesis
  • caomeng/njuthesis
  • yilye/njuthesis
  • kopanswer/njuthesis
  • Dansen/njuthesis
  • junjimy/njuthesis
  • wuqizuo123/njuthesis
  • zxlll-/njuthesis
  • Michael/njuthesis
  • bcbhfz/njuthesis
  • LingDu/njuthesis
  • jiejiangwu/njuthesis
  • Tilnel/njuthesisundergraduate
  • nju-lug/nju-latex-templates/njuthesis
15 results
Show changes
Commits on Source (1)
name: Build LaTeX document name: Build LaTeX document
on: on:
push: push:
branches: branches:
...@@ -11,117 +12,98 @@ on: ...@@ -11,117 +12,98 @@ on:
branches: branches:
- master - master
env:
CTAN_URL: https://mirrors.rit.edu/CTAN
TL_PACKAGES: alphalph auxhook background biber biblatex biblatex-gb7714-2015 bibtex blindtext booktabs caption cleveref cm-unicode colortbl csquotes ctex dashundergaps diagbox emptypage enumitem everypage fancyhdr fancyvrb fandol floatrow footmisc gbt7714 hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lm-math lua-ul lualatex-math luatex85 makecell makeindex mathtools mhchem microtype multirow natbib ninecolors njuvisual ntheorem pict2e preview psnfss setspace siunitx standalone symbol tabularray tex-gyre tex-gyre-math thmtools threeparttable tocloft translator underscore unicode-math url wrapfig xits xstring zhlipsum zref
jobs: jobs:
build_test: build-on-ubuntu:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "!startsWith(github.ref, 'refs/tags/v')" if: "!startsWith(github.ref, 'refs/tags/v')"
strategy: env:
matrix: SET_PATH: |
latex: [xelatex, lualatex] export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
steps: steps:
- name: Set up Git repository - name: Set up Git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Download njuvisual package (1/2) - name: Install TeX Live
uses: wei/curl@master run: |
with: ${{ env.SET_PATH }}
args: -s -o "njuvisual.dtx" "https://mirrors.rit.edu/CTAN/macros/latex/contrib/njuvisual/njuvisual.dtx" wget ${{ env.CTAN_URL }}/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
- name: Download njuvisual package (2/2) cd install-tl-20* && ./install-tl --profile ../.github/workflows/texlive.profile
uses: wei/curl@master tlmgr install ${{ env.TL_PACKAGES }}
with: tlmgr update --self --all --no-auto-install --repository=${{ env.CTAN_URL }}/systems/texlive/tlnet/
args: -s -o "njuvisual-curves.dtx" "https://mirrors.rit.edu/CTAN/macros/latex/contrib/njuvisual/njuvisual-curves.dtx"
- name: Install latest njuthesis
- name: Extract cls from njuthesis run: |
uses: FengChendian/latex-dtx2cls-action@4.0.1 ${{ env.SET_PATH }}
with: l3build install
root_file: njuthesis.dtx
working_directory: ./source/ - name: Compile test file
run: |
- name: Extract sty from njuvisual ${{ env.SET_PATH }}
uses: FengChendian/latex-dtx2cls-action@4.0.1 cd test
with: latexmk -halt-on-error -time -pdfxe -jobname=test-xetex test.tex
root_file: njuvisual.dtx latexmk -halt-on-error -time -pdflua -jobname=test-luatex test.tex
working_directory: ./
- name: Copy files to test folder
run:
cp ./njuvisual.sty source/njuthesis.cls test/
- name: Compile to PDF
uses: HermitSun/latex-action@v3
with:
root_file: test.tex
working_directory: ./test/
latexmk_use_${{ matrix.latex }}: true
args: "-bibtex"
- name: Upload PDF - name: Upload PDF
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: PDF_${{ matrix.latex }} name: generated-pdf
path: path:
test/test.pdf test/*.pdf
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
env:
SET_PATH: |
export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
steps: steps:
- name: Set up Git repository - name: Set up Git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set Version - name: Set Version
run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Download njuvisual package (1/2)
uses: wei/curl@master
with:
args: -s -o "njuvisual.dtx" "https://mirrors.rit.edu/CTAN/macros/latex/contrib/njuvisual/njuvisual.dtx"
- name: Download njuvisual package (2/2)
uses: wei/curl@master
with:
args: -s -o "njuvisual-curves.dtx" "https://mirrors.rit.edu/CTAN/macros/latex/contrib/njuvisual/njuvisual-curves.dtx"
- name: Extract cls from njuthesis
uses: FengChendian/latex-dtx2cls-action@4.0.1
with:
root_file: njuthesis.dtx
working_directory: ./source/
- name: Extract sty from njuvisual
uses: FengChendian/latex-dtx2cls-action@4.0.1
with:
root_file: njuvisual.dtx
working_directory: ./
- name: Compile class documentation - name: Install TeX Live
uses: HermitSun/latex-action@v3 run: |
with: ${{ env.SET_PATH }}
root_file: njuthesis.dtx wget ${{ env.CTAN_URL }}/systems/texlive/tlnet/install-tl-unx.tar.gz
working_directory: ./source/ tar -xzf install-tl-unx.tar.gz
latexmk_use_xelatex: true cd install-tl-20* && ./install-tl --profile ../.github/workflows/texlive.profile
args: "-bibtex" tlmgr install ${{ env.TL_PACKAGES }}
pre_compile: "xetex njuthesis.dtx" tlmgr update --self --all --no-auto-install --repository=${{ env.CTAN_URL }}/systems/texlive/tlnet/
post_compile: "mv njuthesis.pdf njuthesis-$VERSION.pdf"
- name: Download njuvisual package
run: |
wget ${{ env.CTAN_URL }}/macros/latex/contrib/njuvisual/njuvisual.dtx
wget ${{ env.CTAN_URL }}/macros/latex/contrib/njuvisual/njuvisual-curves.dtx
- name: Zip RELEASE package - name: Zip RELEASE package
run: run: |
zip -r njuthesis-$VERSION.zip .vscode docs/njuthesis-sample.bib docs/njuthesis-sample.tex source/njuthesis.cls njuvisual.sty conf.txsprofile LICENSE README.md ${{ env.SET_PATH }}
l3build ctan
- name: Zip CTAN package mv njuthesis-ctan.zip njuthesis-ctan-$VERSION.zip
run: cp build/doc/njuthesis.pdf njuthesis-$VERSION.pdf
mkdir -p njuthesis/
cp source/njuthesis-$VERSION.pdf njuthesis/njuthesis.pdf - name: Zip RELEASE package
cp source/README-CTAN.md njuthesis/README.md run: |
cp source/njuthesis.dtx source/njuthesis.ins njuthesis/ ${{ env.SET_PATH }}
zip -r njuthesis-ctan-$VERSION.zip njuthesis/ xetex njuvisual.dtx
mv build/unpacked/njuthesis.cls njuthesis.cls
mv docs/njuthesis-sample.bib njuthesis-sample.bib
mv docs/njuthesis-sample.tex njuthesis-sample.tex
zip -r njuthesis-$VERSION.zip .vscode njuthesis-sample.tex njuthesis-sample.bib njuthesis.cls njuvisual.sty conf.txsprofile LICENSE README.md
- uses: "marvinpinto/action-automatic-releases@latest" - uses: "marvinpinto/action-automatic-releases@latest"
with: with:
repo_token: "${{ secrets.GITHUB_TOKEN }}" repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false prerelease: false
files: files: |
source/njuthesis-v*.pdf njuthesis-v*.pdf
njuthesis-v*.zip njuthesis-v*.zip
njuthesis-ctan-v*.zip njuthesis-ctan-v*.zip
# From latex3
# https://github.com/latex3/latex3/blob/main/support/texlive.profile
selected_scheme scheme-infraonly
TEXDIR /tmp/texlive
TEXMFSYSCONFIG /tmp/texlive/texmf-config
TEXMFSYSVAR /tmp/texlive/texmf-var
TEXMFLOCAL /tmp/texlive/texmf-local
TEXMFHOME ~/texmf
TEXMFCONFIG ~/.texlive/texmf-config
TEXMFVAR ~/.texlive/texmf-var
option_doc 0
option_src 0
tlpdbopt_autobackup 0
...@@ -1454,7 +1454,6 @@ keywords* .clist_set:N = \l_@@_info_keywords_en_clist, ...@@ -1454,7 +1454,6 @@ keywords* .clist_set:N = \l_@@_info_keywords_en_clist,
caption, caption,
floatrow, floatrow,
setspace, setspace,
lastpage,
emptypage, emptypage,
fancyhdr, fancyhdr,
} }
......