Skip to content

Commit 2093b0d

Browse files
committed
Update to pandoc 3.6.3
1 parent f20d7d1 commit 2093b0d

File tree

4 files changed

+27
-25
lines changed

4 files changed

+27
-25
lines changed

.github/workflows/example-doc.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
paths:
77
- 'example/*'
88
- 'data/templates/*'
9+
- "Dockerfile"
910
pull_request:
1011
paths:
1112
- 'example/*'
1213
- 'data/templates/*'
14+
- "Dockerfile"
1315
# Build, but don't push on pull requests
1416

1517
jobs:
@@ -38,7 +40,7 @@ jobs:
3840
-o "jats,contextpdf,crossref,preprint,tex,pdf" example/paper.md
3941
4042
- name: Upload draft PDF
41-
uses: actions/upload-artifact@v3
43+
uses: actions/upload-artifact@v4
4244
with:
4345
name: draft
4446
path: |
@@ -58,7 +60,7 @@ jobs:
5860
-o "jats,contextpdf,crossref,preprint,tex,pdf" -p example/paper.md
5961
6062
- name: Upload production PDF
61-
uses: actions/upload-artifact@v3
63+
uses: actions/upload-artifact@v4
6264
with:
6365
name: production
6466
path: |

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM pandoc/latex:3.2.0-alpine
1+
FROM pandoc/latex:3.6.3-alpine
22

33
RUN apk add --no-cache ttf-hack
44

test/expected-draft/paper.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,9 @@ \subsection{Inline markup}\label{inline-markup}
484484
below gives a small example.
485485

486486
\begin{longtable}[]{@{}
487-
>{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3014}}
488-
>{\centering\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3562}}
489-
>{\centering\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3288}}@{}}
487+
>{\raggedright\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.3014}}
488+
>{\centering\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.3562}}
489+
>{\centering\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.3288}}@{}}
490490
\caption{Basic inline markup and examples.}\tabularnewline
491491
\toprule\noalign{}
492492
\begin{minipage}[b]{\linewidth}\raggedright
@@ -567,12 +567,12 @@ \subsubsection{Images}\label{images}
567567
e.g.~when adding an image as part of a paragraph. The Markdown
568568
\texttt{!{[}Nyan\ cat{]}(nyan-cat.png)\{height="9pt"\}} includes the
569569
image ``nyan-cat.png''
570-
\includegraphics[width=\textwidth,height=0.125in]{images/nyan-cat.png}
570+
\includegraphics[width=\linewidth,height=0.125in,keepaspectratio]{images/nyan-cat.png}
571571
while scaling it to a height of 9\,pt.
572572

573573
\begin{figure}
574574
\centering
575-
\includegraphics{images/mandrill.jpg}
575+
\pandocbounded{\includegraphics[keepaspectratio]{images/mandrill.jpg}}
576576
\caption{The ``Mandrill'' standard test image, sometimes erroneously
577577
called ``Baboon'', is a popular sample photo and used in image
578578
processing research.}\label{fig:mandrill}
@@ -885,7 +885,7 @@ \section{Internal references}\label{internal-references}
885885

886886
\begin{figure}
887887
\centering
888-
\includegraphics[width=1\textwidth,height=\textheight]{images/sylt.jpg}
888+
\includegraphics[width=1\linewidth,height=\textheight,keepaspectratio]{images/sylt.jpg}
889889
\caption{View of coastal dunes in a nature reserve on Sylt, an island in
890890
the North Sea. Sylt (Danish: \emph{Slid}) is Germany's northernmost
891891
island.}\label{sylt}
@@ -909,11 +909,11 @@ \subsection{Tables and figures}\label{tables-and-figures}
909909
gives ``\ref{proglangs}''.
910910

911911
\begin{longtable}[]{@{}
912-
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1493}}
913-
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2537}}
914-
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2836}}
915-
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1791}}
916-
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1343}}@{}}
912+
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1493}}
913+
>{\centering\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.2537}}
914+
>{\centering\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.2836}}
915+
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1791}}
916+
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1343}}@{}}
917917
\caption{Comparison of programming languages used in the publishing
918918
tool. {}}\tabularnewline
919919
\toprule\noalign{}

test/expected-pub/paper.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ \subsection{Inline markup}\label{inline-markup}
482482
below gives a small example.
483483

484484
\begin{longtable}[]{@{}
485-
>{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3014}}
486-
>{\centering\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3562}}
487-
>{\centering\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.3288}}@{}}
485+
>{\raggedright\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.3014}}
486+
>{\centering\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.3562}}
487+
>{\centering\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.3288}}@{}}
488488
\caption{Basic inline markup and examples.}\tabularnewline
489489
\toprule\noalign{}
490490
\begin{minipage}[b]{\linewidth}\raggedright
@@ -565,12 +565,12 @@ \subsubsection{Images}\label{images}
565565
e.g.~when adding an image as part of a paragraph. The Markdown
566566
\texttt{!{[}Nyan\ cat{]}(nyan-cat.png)\{height="9pt"\}} includes the
567567
image ``nyan-cat.png''
568-
\includegraphics[width=\textwidth,height=0.125in]{images/nyan-cat.png}
568+
\includegraphics[width=\linewidth,height=0.125in,keepaspectratio]{images/nyan-cat.png}
569569
while scaling it to a height of 9\,pt.
570570

571571
\begin{figure}
572572
\centering
573-
\includegraphics{images/mandrill.jpg}
573+
\pandocbounded{\includegraphics[keepaspectratio]{images/mandrill.jpg}}
574574
\caption{The ``Mandrill'' standard test image, sometimes erroneously
575575
called ``Baboon'', is a popular sample photo and used in image
576576
processing research.}\label{fig:mandrill}
@@ -883,7 +883,7 @@ \section{Internal references}\label{internal-references}
883883

884884
\begin{figure}
885885
\centering
886-
\includegraphics[width=1\textwidth,height=\textheight]{images/sylt.jpg}
886+
\includegraphics[width=1\linewidth,height=\textheight,keepaspectratio]{images/sylt.jpg}
887887
\caption{View of coastal dunes in a nature reserve on Sylt, an island in
888888
the North Sea. Sylt (Danish: \emph{Slid}) is Germany's northernmost
889889
island.}\label{sylt}
@@ -907,11 +907,11 @@ \subsection{Tables and figures}\label{tables-and-figures}
907907
gives ``\ref{proglangs}''.
908908

909909
\begin{longtable}[]{@{}
910-
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1493}}
911-
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2537}}
912-
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2836}}
913-
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1791}}
914-
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1343}}@{}}
910+
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1493}}
911+
>{\centering\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.2537}}
912+
>{\centering\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.2836}}
913+
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1791}}
914+
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1343}}@{}}
915915
\caption{Comparison of programming languages used in the publishing
916916
tool. {}}\tabularnewline
917917
\toprule\noalign{}

0 commit comments

Comments
 (0)