From 43b0715cf8a5d65e1eb3eb2a9edcc59aa95e5373 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Wed, 29 Apr 2026 07:01:55 -0500 Subject: [PATCH 1/5] Add a new counter for captionless tables (closes #32) --- ChangeLog | 9 +++++++++ .../templates/metropolis/resources/template.tex | 2 ++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index d903ee0..ca5bb11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2026-04-29 Dirk Eddelbuettel + + * inst/rmarkdown/templates/metropolis/resources/template.tex: Add a + new counter variable as needed by newer pandoc + +2026-04-06 Rob J Hyndman + + * DESCRIPTION: Correct typo in two of the three 'aut' tags + 2025-11-27 Dirk Eddelbuettel * .github/workflows/ci.yaml: Switch to actions/checkout@v6 diff --git a/inst/rmarkdown/templates/metropolis/resources/template.tex b/inst/rmarkdown/templates/metropolis/resources/template.tex index 0f7f672..a640ef2 100644 --- a/inst/rmarkdown/templates/metropolis/resources/template.tex +++ b/inst/rmarkdown/templates/metropolis/resources/template.tex @@ -168,6 +168,8 @@ \makeatletter \def\fnum@table{\tablename~\thetable} \makeatother + % Borrowed from beamer_presentation for newer pandoc per issue #32 + \newcounter{none} % for unnumbered tables $endif$ $if(graphics)$ From e7a9b4bec92353da4c613adb1d6caef462fbcbb3 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Wed, 29 Apr 2026 07:53:31 -0500 Subject: [PATCH 2/5] Add new counter to expand iqss, monash, presento as well --- inst/rmarkdown/templates/iqss/resources/template.tex | 2 ++ inst/rmarkdown/templates/monash/resources/template.tex | 2 ++ inst/rmarkdown/templates/presento/resources/template.tex | 2 ++ 3 files changed, 6 insertions(+) diff --git a/inst/rmarkdown/templates/iqss/resources/template.tex b/inst/rmarkdown/templates/iqss/resources/template.tex index bcbc693..ed8b951 100644 --- a/inst/rmarkdown/templates/iqss/resources/template.tex +++ b/inst/rmarkdown/templates/iqss/resources/template.tex @@ -169,6 +169,8 @@ \makeatletter \def\fnum@table{\tablename~\thetable} \makeatother + % Borrowed from beamer_presentation for newer pandoc per issue #32 + \newcounter{none} % for unnumbered tables $endif$ $if(graphics)$ diff --git a/inst/rmarkdown/templates/monash/resources/template.tex b/inst/rmarkdown/templates/monash/resources/template.tex index 130163d..e4dd937 100644 --- a/inst/rmarkdown/templates/monash/resources/template.tex +++ b/inst/rmarkdown/templates/monash/resources/template.tex @@ -184,6 +184,8 @@ \makeatletter \def\fnum@table{\tablename~\thetable} \makeatother + % Borrowed from beamer_presentation for newer pandoc per issue #32 + \newcounter{none} % for unnumbered tables $endif$ $if(graphics)$ diff --git a/inst/rmarkdown/templates/presento/resources/template.tex b/inst/rmarkdown/templates/presento/resources/template.tex index 26aabe7..a013913 100644 --- a/inst/rmarkdown/templates/presento/resources/template.tex +++ b/inst/rmarkdown/templates/presento/resources/template.tex @@ -129,6 +129,8 @@ $endif$ $if(tables)$ \usepackage{longtable,booktabs} +% Borrowed from beamer_presentation for newer pandoc per issue #32 +\newcounter{none} % for unnumbered tables % Fix footnotes in tables (requires footnote package) \IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{long table}}{} $endif$ From c39435ee106cfaf72f4e53aa3a303c8a50320f3f Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Wed, 29 Apr 2026 08:43:56 -0500 Subject: [PATCH 3/5] Revert the change for presento, leaving it at three of four --- inst/rmarkdown/templates/presento/resources/template.tex | 2 -- 1 file changed, 2 deletions(-) diff --git a/inst/rmarkdown/templates/presento/resources/template.tex b/inst/rmarkdown/templates/presento/resources/template.tex index a013913..26aabe7 100644 --- a/inst/rmarkdown/templates/presento/resources/template.tex +++ b/inst/rmarkdown/templates/presento/resources/template.tex @@ -129,8 +129,6 @@ $endif$ $if(tables)$ \usepackage{longtable,booktabs} -% Borrowed from beamer_presentation for newer pandoc per issue #32 -\newcounter{none} % for unnumbered tables % Fix footnotes in tables (requires footnote package) \IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{long table}}{} $endif$ From 0fb2a503977ccafcd5bc5b77af6c1a2a50f278d6 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Wed, 29 Apr 2026 09:12:34 -0500 Subject: [PATCH 4/5] Reactivating for presento and also defining \pandocbounded Thanks to @gk-crop for catching that we had the same issue before in tint --- inst/rmarkdown/templates/presento/resources/template.tex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inst/rmarkdown/templates/presento/resources/template.tex b/inst/rmarkdown/templates/presento/resources/template.tex index 26aabe7..b39cab5 100644 --- a/inst/rmarkdown/templates/presento/resources/template.tex +++ b/inst/rmarkdown/templates/presento/resources/template.tex @@ -129,6 +129,8 @@ $endif$ $if(tables)$ \usepackage{longtable,booktabs} +% Borrowed from beamer_presentation for newer pandoc per issue #32 +\newcounter{none} % for unnumbered tables % Fix footnotes in tables (requires footnote package) \IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{long table}}{} $endif$ @@ -268,6 +270,8 @@ %% presento end +\providecommand{\pandocbounded}[1]{#1} + \begin{document} %% DEdd Commented-out for presento %$if(title)$ From 009d3a66052534ed87aa1f0d8abd597347a59ff9 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Wed, 29 Apr 2026 09:15:47 -0500 Subject: [PATCH 5/5] Comment-out footnote fix for table in presento --- inst/rmarkdown/templates/presento/resources/template.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/rmarkdown/templates/presento/resources/template.tex b/inst/rmarkdown/templates/presento/resources/template.tex index b39cab5..d0e3bf3 100644 --- a/inst/rmarkdown/templates/presento/resources/template.tex +++ b/inst/rmarkdown/templates/presento/resources/template.tex @@ -132,7 +132,7 @@ % Borrowed from beamer_presentation for newer pandoc per issue #32 \newcounter{none} % for unnumbered tables % Fix footnotes in tables (requires footnote package) -\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{long table}}{} +%\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{long table}}{} $endif$ $if(graphics)$ \usepackage{graphicx,grffile}