Skip to content

d2 always renders as pdf for latex beamer output #12

@kusnezoff-alexander

Description

@kusnezoff-alexander

Even when setting the YAML header to:

d2:
  format: svg
  layout: elk
  theme: "GrapeSoda"

Commenting out this line doesnt work (an error is thrown):

  -- Set the default format to pdf since svg is not supported in PDF output
  if options.format == D2Format.svg and quarto.doc.is_format("latex") then
    options.format = D2Format.pdf
  end

So I dont know how to fix it, maybe someone can help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions