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

PDF diagram get a weird header #4

Open
PierreSolomon opened this issue Jan 22, 2024 · 2 comments
Open

PDF diagram get a weird header #4

PierreSolomon opened this issue Jan 22, 2024 · 2 comments

Comments

@PierreSolomon
Copy link

Hello,

I'm using the extension with a pdf output, the diagram once writen to a pdf file get a header with the word "root". Is there a way to remove it?

I'm using the latest version of quarto (pre-release) and the latest version of the extension on windows 11.

diagram-1.pdf

Thank you in advance for the help!

@rcannood
Copy link
Member

Hi @PierreSolomon !

Could you provide the full source qmd you used to generate the PDF?

Kind regards,
Robrecht

@PierreSolomon
Copy link
Author

Hello,
I can't provide the full source as it concern the thesis I'm redacting actually. But I have the same problem with a qmd document containing:

---
title: "Untitled"
format: pdf
filters:
  - d2
---

```{.d2}
x -> y
```

It give the document next: test.pdf

Also, I am not sure why but the pdf refused to render at first because the d2 svg/pdf was not created. I needed to first compile to the docx format and then to pdf:

==> quarto preview test.qmd --to pdf --no-watch-inputs --no-browse

pandoc 
  to: latex
  output-file: test.tex
  standalone: true
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf
  
metadata
  documentclass: scrartcl
  classoption:
    - DIV=11
    - numbers=noendperiod
  papersize: letter
  header-includes:
    - '\KOMAoption{captions}{tableheading}'
  block-headings: true
  title: Untitled
  
La syntaxe de la commande n'est pas correcte.
err: failed to compile ..\..\AppData\Local\Temp\svg-convert-97090f7710e56e36\temp_1.txt: open C:\Users\E142543N\Downloads\Nouveau dossier\images\diagram-1.pdf: The system cannot find the path specified.

Rendering PDF
running xelatex - 1
  This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  
updating tlmgr

updating existing packages
ERROR: 
compilation failed- error
Unable to load picture or PDF file './images/diagram-1.pdf'.
<to be read again> 
                   }
l.146 \includegraphics{./images/diagram-1.pdf}
                                               

see test.log for more information.

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

2 participants