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

Improper spacing of QED symbol in PDF output #6077

Closed
sun123zxy opened this issue Jun 30, 2023 · 1 comment · Fixed by #7139
Closed

Improper spacing of QED symbol in PDF output #6077

sun123zxy opened this issue Jun 30, 2023 · 1 comment · Fixed by #7139
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sun123zxy
Copy link
Contributor

sun123zxy commented Jun 30, 2023

Bug description

A reminder for a left-behind problem mentioned in #3776.

Steps to reproduce

---
title: "QED symbol test"
format:
    pdf:
        keep-tex: true
---

:::{.proof}
This is a proof.
:::

Expected behavior

Should produce LaTeX code like this:

\begin{proof}
This is a proof.
\end{proof}

which handle the spacing of QED symbol properly.

Actual behavior

However, Quarto actually produces this

\begin{proof}

This is a proof.

\end{proof}

The empty line inserted before \end{proof} causes the QED symbol lies in a new line, instead of the end of the last line of the proof.

Probably helpful

Your environment

  • IDE: vscode
  • OS: Windows 11

Quarto check output

[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.3.340
      Path: C:\Program Files\Quarto\bin
      CodePage: 936

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
@sun123zxy sun123zxy added the bug Something isn't working label Jun 30, 2023
@cscheid cscheid self-assigned this Jun 30, 2023
@cscheid cscheid added this to the v1.4 milestone Jun 30, 2023
@cscheid
Copy link
Collaborator

cscheid commented Jun 30, 2023

(note to self: I think the problem here comes from pandoc latex RawBlocks forcing line spaces around them. We have a design for a filter-based partial solution in a branch, but this argues for a more comprehensive fix.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants