Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pandoc docker image from 3.2 to 3.6.3 #100

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/example-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:

- name: Build draft PDF
run: >-
docker run \
cd example && docker run \
--volume "$(pwd):/data" \
--user "$(id -u):$(id -g)" \
inara:edgiest \
-o "jats,contextpdf,crossref,preprint,tex,pdf" example/paper.md
-o "jats,contextpdf,crossref,preprint,tex,pdf" paper.md

- name: Upload draft PDF
uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Released 2024-05-11
FROM pandoc/latex:3.2.0-alpine
# Released 2025-02-10
FROM pandoc/latex:3.6.3-alpine

RUN apk add --no-cache ttf-hack

Expand Down
22 changes: 11 additions & 11 deletions test/expected-draft/paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@ \subsection{Inline markup}\label{inline-markup}
below gives a small example.

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

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

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

\begin{longtable}[]{@{}
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1493}}
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2537}}
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2836}}
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1791}}
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1343}}@{}}
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1493}}
>{\centering\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.2537}}
>{\centering\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.2836}}
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1791}}
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1343}}@{}}
\caption{Comparison of programming languages used in the publishing
tool. {}}\tabularnewline
\toprule\noalign{}
Expand Down
22 changes: 11 additions & 11 deletions test/expected-pub/paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,9 @@ \subsection{Inline markup}\label{inline-markup}
below gives a small example.

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

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

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

\begin{longtable}[]{@{}
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1493}}
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2537}}
>{\centering\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.2836}}
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1791}}
>{\raggedright\arraybackslash}p{(\columnwidth - 8\tabcolsep) * \real{0.1343}}@{}}
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1493}}
>{\centering\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.2537}}
>{\centering\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.2836}}
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1791}}
>{\raggedright\arraybackslash}p{(\linewidth - 8\tabcolsep) * \real{0.1343}}@{}}
\caption{Comparison of programming languages used in the publishing
tool. {}}\tabularnewline
\toprule\noalign{}
Expand Down
Loading