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

Captions not working in default configuration with Docker image ? #363

Open
rguyennot opened this issue Oct 10, 2023 · 0 comments
Open

Captions not working in default configuration with Docker image ? #363

rguyennot opened this issue Oct 10, 2023 · 0 comments

Comments

@rguyennot
Copy link

rguyennot commented Oct 10, 2023

Hi,

After multiple tries, captions seems to not working in my case.

My configuration :

---
title: "TITLE"
subtitle: "Subtitle"
lang: "en"
date: "2023-10-06 / Version 0.1.0"
book: true
keywords: [Markdown]
toc: true
toc-own-page: true
colorlinks: true
header-includes:
- |
  '''{=latex}
  \usepackage{tcolorbox}

  \newtcolorbox{info-box}{colback=cyan!5!white,arc=0pt,outer arc=0pt,colframe=cyan!60!black}
  \newtcolorbox{warning-box}{colback=orange!5!white,arc=0pt,outer arc=0pt,colframe=orange!80!black}
  \newtcolorbox{error-box}{colback=red!5!white,arc=0pt,outer arc=0pt,colframe=red!75!black}
  '''
pandoc-latex-environment:
  tcolorbox: [box]
  info-box: [info]
  warning-box: [warning]
  error-box: [error]
...

Testing

My Markdown test file using example from examples/images-and-tables

## Image with Caption - Issue

![Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.](images/tests/image.png)

In the final PDF rendering, the image caption does not appear...

The rendered PDF file : 2023-10-10_testing.pdf

Docker command

The Docker command I use to generate PDF files :

docker run \
    --rm \
    --volume "$(pwd):/data" \
    --user $(id -u):$(id -g) \
    pandoc/extra:latest-alpine 999_tests.md \
    -o pdf/"$(date +%F)"_testing.pdf \
    -f markdown-implicit_figures \
    --template "./eisvogel.tex" \
    --highlight-style breezedark \
    --toc \
    -N \
    -V classoption=oneside \
    -V caption-justification=centering \
    --filter pandoc-latex-environment

Workaround / incompatibility ?

The problem seems to appear when I use the Pandoc -f markdown-implicit_figures option in my Docker command !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant