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

Export to beamer fails with document containing graphviz-dot-blocks #11960

Open
michelk opened this issue Jan 27, 2025 · 2 comments
Open

Export to beamer fails with document containing graphviz-dot-blocks #11960

michelk opened this issue Jan 27, 2025 · 2 comments
Labels
beamer bug Something isn't working needs-repro Issues that are blocked until reporter provides an adequate reproduction

Comments

@michelk
Copy link

michelk commented Jan 27, 2025

Bug description

This is a follow-up of #10532 (comment)

There is an error, when exporting to beamer, when the document contains a dot-code-block.

Steps to reproduce

# Test

## Test

```{dot}
digraph {
  A [label="A"];
  B [label="B"];
  A -> B;
}
```
quarto render tt.qmd --to beamer

Expected behavior

Document generated with integrated dot-diagram.

Actual behavior

Error message:

pandoc 
  to: beamer
  output-file: tt.tex
  standalone: true
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf
  
metadata
  block-headings: true
  

Rendering PDF
running xelatex - 1
  This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023/Debian) (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 'undefined.pdf'.
<to be read again> 
                   }
l.170 \end{frame}
                  

see tt.log for more information.

default-image-extension: png doesn't help. Export to html works although.

Your environment

  • OS: Ubuntu 24.0

Quarto check output

Quarto 1.7.13                                                                                                          
[✓] Checking environment information... 
      Quarto cache location: /home/kum/.cache/quarto                                                                                     
[✓] Checking versions of quarto binary dependencies...                                         
      Pandoc version 3.4.0: OK                 
      Dart Sass version 1.70.0: OK      
      Deno version 1.46.3: OK 
      Typst version 0.11.0: OK                             
[✓] Checking versions of quarto dependencies......OK                                                                                     
[✓] Checking Quarto installation......OK                   
      Version: 1.7.13                   
      Path: /opt/quarto/bin                                   
[✓] Checking tools....................OK       
      TinyTeX: (not installed)                                                                 
      Chromium: (not installed)                            
                                               
[✓] Checking LaTeX....................OK                   
      Using: Installation From Path                                                            
      Path: /usr/bin                    
      Version: 2023                            
                                               
[✓] Checking Chrome Headless....................OK                                                                                       
      Using: Chrome found on system    
      Path: /usr/bin/chromium-browser
      Source: PATH                                                                                                     
                                               
[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK                                                                               
      Version: 3.12.3                                      
      Path: /usr/bin/python3                                                                   
      Jupyter: 5.3.2  
      Kernels: julia-1.11, rust, mojo-jupyter-kernel, python3                                                                            
                                                           
[✓] Checking Jupyter engine render....OK                   
                                                           
No 'renv' directory found; renv won't be activated.                                                                                      
[✓] Checking R installation...........OK                   
      Version: 4.4.1                                                
      Path: /usr/lib/R                                     
      LibPaths:                                                     
        - /usr/local/lib/R/site-library                                                                                
        - /usr/lib/R/site-library                          
        - /usr/lib/R/library                                        
      knitr: 1.49                                                   
      rmarkdown: 2.29                                               

[✓] Checking Knitr engine render......OK  

@michelk michelk added the bug Something isn't working label Jan 27, 2025
@cscheid
Copy link
Collaborator

cscheid commented Jan 27, 2025

Ignoring for now that the width and height are clearly wrong, I cannot repro this:

Image

@cscheid cscheid added needs-repro Issues that are blocked until reporter provides an adequate reproduction beamer labels Jan 27, 2025
@cderv
Copy link
Collaborator

cderv commented Jan 27, 2025

[✓] Checking LaTeX....................OK                   
      Using: Installation From Path                                                            
      Path: /usr/bin                    
      Version: 2023 

You should try checking for update in your LaTeX dependencies as it seems you are using system installed LaTeX and 2023 version.

TeX Live is now 2024 and there can be some important update.

I cannot reproduce either on Windows.

[✓] Checking Chrome Headless....................OK                                                                                       
      Using: Chrome found on system    
      Path: /usr/bin/chromium-browser
      Source: PATH

Check your chrome version also in case this is an old version having difficulties to produce the pdf file. Though error happens at the LaTeX stage 🤔

Anyhow, you could activate verbose mode and see if there is more information useful in logging
https://quarto.org/docs/troubleshooting/#verbose-mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beamer bug Something isn't working needs-repro Issues that are blocked until reporter provides an adequate reproduction
Projects
None yet
Development

No branches or pull requests

3 participants