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

csquotes:true should wrap block quotes in displayquote environments #10456

Open
putzwasser opened this issue Dec 13, 2024 · 2 comments
Open

csquotes:true should wrap block quotes in displayquote environments #10456

putzwasser opened this issue Dec 13, 2024 · 2 comments
Labels

Comments

@putzwasser
Copy link

Explain the problem.

Pandoc has support for csquotes: true to make use of the csquotes package. The latex package provides the displayquote environment.

---
title: "Your Document"
format:
  pdf:
    keep-tex: true
csquotes: true
---

> This is a block quote.

Running

pandoc -f markdown -t latex test.md

Yields this result

\begin{quote}
This is a block quote.
\end{quote}

I would have expected that pandoc would use csquote's displayquote environment for block quotes.

Pandoc version?
pandoc -v
pandoc 3.1.11.1
Features: +server +lua
Scripting engine: Lua 5.4

@putzwasser putzwasser added the bug label Dec 13, 2024
@jgm
Copy link
Owner

jgm commented Dec 13, 2024

Is it the case that by default (without further customizations in the preamble), displayquote will behave just like quote? If so, we could consider this.

@putzwasser
Copy link
Author

From my understanding this is true. displayquote will behave just like quote if you won't modify anything:

\documentclass{article}

\usepackage{csquotes}

\begin{document}

\section*{Using the \texttt{quote} Environment}
This is an example of the standard \texttt{quote} environment in LaTeX:
\begin{quote}
  The only limit to our realization of tomorrow is our doubts of today.
  --- Franklin D. Roosevelt
\end{quote}

\section*{Using the \texttt{displayquote} Environment}
This is an example of the \texttt{displayquote} environment provided by the \texttt{csquotes} package:
\begin{displayquote}
  The only limit to our realization of tomorrow is our doubts of today.
  --- Franklin D. Roosevelt
\end{displayquote}

\end{document}

image

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

No branches or pull requests

2 participants