diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2d41f50..b52a923 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -89,3 +89,15 @@ jobs: with: name: CTAN-${{ matrix.engine }} path: '*.tar.gz' + changelog: + name: CHANGELOG.md + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + show-progress: '' + - uses: jbangdev/jbang-action@v0.110.1 + with: + script: com.github.nbbrd.heylogs:heylogs-cli:0.7.2:bin + scriptargs: "check CHANGELOG.md" diff --git a/.gitignore b/.gitignore index e365d6b..cd09f45 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ lni.pdf -lni-author-template.pdf -lni-paper-example-de.pdf +lni-author-template*.pdf +lni-paper-example-*.pdf mybibfile.bib diff --git a/CHANGELOG.md b/CHANGELOG.md index e7f1634..1388fe2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,14 @@ # Changelog All notable changes to this project will be documented in this file. -The format is based on [Keep a Changelog](http://keepachangelog.com/). +The format is based on [Keep a Changelog](https://keepachangelog.com/). ## [1.8] - 2023-07-10 ### Added - Added option `anonymous` for anonymizing an article. [#100](https://github.com/gi-ev/LNI/pull/100) +- Added `\pdfoutput=1` to fix compatibility with [arXiv](https://arxiv.org/). [#81](https://github.com/gi-ev/LNI/issues/81) ### Changed @@ -97,7 +98,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ### Added -- New option `nofonts` to use the class file on older systems ([#53](https://github.com/gi-ev/LNI/issues/52)) +- New option `nofonts` to use the class file on older systems ([#53](https://github.com/gi-ev/LNI/issues/53)) ### Changed diff --git a/lni-author-template.tex b/lni-author-template.tex index 3e9bb4a..0d9269a 100644 --- a/lni-author-template.tex +++ b/lni-author-template.tex @@ -2,14 +2,18 @@ % !TeX program = pdflatex % !BIB program = bibtex -%%% Um einen Artikel auf deutsch zu schreiben, genügt es die Klasse ohne -%%% Parameter zu laden. -%%% Zur Anonymisierung kann die ``anonymous'' Option genutzt werden. -\documentclass[]{lni} +\RequirePackage{iftex}\ifluatex\else +\pdfoutput=1 +\fi %%% To write an article in English, please use the option ``english'' in order %%% to get the correct hyphenation patterns and terms. %%% \documentclass[english]{class} %%% for anonymizing an article you can use the ``anonymous'' option. +%%% +%%% Um einen Artikel auf deutsch zu schreiben, genügt es die Klasse ohne +%%% Parameter zu laden. +%%% Zur Anonymisierung kann die ``anonymous'' Option genutzt werden. +\documentclass[]{lni} %% \begin{document} %%% Mehrere Autoren werden durch \and voneinander getrennt. diff --git a/lni-paper-example-de.tex b/lni-paper-example-de.tex index 6e3452d..fb7118a 100644 --- a/lni-paper-example-de.tex +++ b/lni-paper-example-de.tex @@ -1,6 +1,9 @@ % !TeX encoding = UTF-8 % !TeX spellcheck = de_DE +\RequirePackage{iftex}\ifluatex\else +\pdfoutput=1 +\fi %% Dies gibt Warnungen aus, sollten veraltete LaTeX-Befehle verwendet werden \RequirePackage[l2tabu, orthodox]{nag} diff --git a/lni.cls b/lni.cls index f07b44a..84e2a05 100644 --- a/lni.cls +++ b/lni.cls @@ -561,7 +561,7 @@ \g@addto@macro{\UrlBreaks}{\UrlOrds} \RequirePackage{xspace} \ifusehyperref - \AtEndPreamble{% + \AddToHook{env/document/begin}[cid/loadhyp]{ \RequirePackage[bookmarks=false]{hyperref} \hypersetup{% pdfdisplaydoctitle,% @@ -569,11 +569,8 @@ allcolors=black,% pdfstartview=Fit,% }% -%%% \pdfstringdefDisableCommands{% -%%% \def\unskip{}% -%%% \renewcommand{\footnote}[1]{}% -%%% }% }% + \DeclareHookRule{env/document/begin}{cid/loadhyp}{before}{biblatex} \else \providecommand{\texorpdfstring}[2]{#2}% \fi% diff --git a/lni.dtx b/lni.dtx index 0ebb76e..387d4cc 100644 --- a/lni.dtx +++ b/lni.dtx @@ -1472,7 +1472,7 @@ This work consists of the file lni.dtx % \end{macrocode} % \begin{macrocode} \ifusehyperref - \AtEndPreamble{% + \AddToHook{env/document/begin}[cid/loadhyp]{ \RequirePackage[bookmarks=false]{hyperref} \hypersetup{% pdfdisplaydoctitle,% @@ -1480,11 +1480,8 @@ This work consists of the file lni.dtx allcolors=black,% pdfstartview=Fit,% }% -%%% \pdfstringdefDisableCommands{% -%%% \def\unskip{}% -%%% \renewcommand{\footnote}[1]{}% -%%% }% }% + \DeclareHookRule{env/document/begin}{cid/loadhyp}{before}{biblatex} \else \providecommand{\texorpdfstring}[2]{#2}% \fi% @@ -3001,14 +2998,19 @@ EXECUTE {end.bib} % % !TeX program = pdflatex % % !BIB program = biber % % !TeX spellcheck = de-DE -%%% Um einen Artikel auf deutsch zu schreiben, genügt es die Klasse ohne -%%% Parameter zu laden. -%%% Zur Anonymisierung kann die ``anonymous'' Option genutzt werden. -\documentclass[]{lni} +% Needs to be written in the first 5 lines, because of arXiv's requirements +\RequirePackage{iftex}\ifluatex\else +\pdfoutput=1 +\fi %%% To write an article in English, please use the option ``english'' in order %%% to get the correct hyphenation patterns and terms. %%% \documentclass[english]{class} %%% for anonymizing an article you can use the ``anonymous'' option. +%%% +%%% Um einen Artikel auf deutsch zu schreiben, genügt es die Klasse ohne +%%% Parameter zu laden. +%%% Zur Anonymisierung kann die ``anonymous'' Option genutzt werden. +\documentclass[]{lni} %% \begin{document} %%% Mehrere Autoren werden durch \and voneinander getrennt. @@ -3145,6 +3147,10 @@ Schlagwort1 \and Schlagwort2 %Keyword1 \and Keyword2 % % !TeX program = pdflatex % % !BIB program = biber % % !TeX spellcheck = de-DE +% Needs to be written in the first 5 lines, because of arXiv's requirements +\RequirePackage{iftex}\ifluatex\else +\pdfoutput=1 +\fi %% Dies gibt Warnungen aus, sollten veraltete LaTeX-Befehle verwendet werden \RequirePackage[l2tabu, orthodox]{nag}