fix TeX column, upgrade dante-ev/latex-action
Some checks failed
Compile & Publish / Compile instruction PDF (push) Has been cancelled

This commit is contained in:
Soha Jin 2025-05-17 17:40:48 +08:00
parent 9b96558a9c
commit f3d7212575
No known key found for this signature in database
GPG Key ID: 8E9A62FE2DB350E4
3 changed files with 25 additions and 28 deletions

View File

@ -1,28 +1,26 @@
name: Compile and publish instruction pdf. name: Compile & Publish
on: on:
push: workflow_dispatch:
branches: [ master ] push:
pull_request: pull_request:
branches: [ master ] branches: [ master ]
workflow_dispatch:
jobs: jobs:
instruction-latex: instruction-latex:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Compile and publish instruction pdf. name: Compile instruction PDF
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v4
- name: Compilation - name: compile
uses: dante-ev/latex-action@2021-A uses: dante-ev/latex-action@2024-B
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
root_file: 'instruction.tex' root_file: 'instruction.tex'
compiler: xelatex compiler: xelatex
- name: Archive PDF - name: upload PDF
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: instruction.pdf name: instruction.pdf
path: instruction.pdf path: instruction.pdf

View File

@ -33,7 +33,7 @@
- Soha (包装盒与说明书的终稿) - Soha (包装盒与说明书的终稿)
- YukariChiba (说明书创意与文案, [#3](https://github.com/moesoha/debian-media-box/issues/3)) - YukariChiba (说明书创意与文案, [#3](https://github.com/moesoha/debian-media-box/issues/3))
- IcesandSora (包装盒创意) - IcesandSora (包装盒创意)
- 内容/样式优化david4958606 (#13), Guochengjie (#15) - 内容/样式优化david4958606 (#13), Guochengjie (#15), SolitaryDream-X (#30)
## LICENSE ## LICENSE

View File

@ -14,7 +14,6 @@
\usepackage{xeCJK} \usepackage{xeCJK}
\CJKfamily{zhsong} \CJKfamily{zhsong}
\usepackage[svgcolors]{xcolor}
\usepackage{longfbox} \usepackage{longfbox}
\usepackage{epstopdf} \usepackage{epstopdf}
\usepackage{float} \usepackage{float}
@ -48,7 +47,7 @@
\newcounter{column@count} \newcounter{column@count}
% %
\xpatchcmd{\multi@column@out}{ \xpatchcmd{\multi@column@out}{
\process@cols\mult@gfirstbox{% \process@cols\mult@firstbox{%
\setbox\count@ \setbox\count@
\vsplit\@cclv to\dimen@ \vsplit\@cclv to\dimen@
\set@keptmarks \set@keptmarks
@ -57,7 +56,7 @@
{\unvbox\count@ \ifshr@nking\vfilmaxdepth\fi}% {\unvbox\count@ \ifshr@nking\vfilmaxdepth\fi}%
}% }%
}{ }{
\process@cols\mult@gfirstbox{% \process@cols\mult@firstbox{%
\global\advance\c@column@count\@ne \global\advance\c@column@count\@ne
\resized@col\dimen@% \resized@col\dimen@%
\ifnum\c@column@count=\tw@ \ifnum\c@column@count=\tw@