Skip to content
Discussion options

You must be logged in to vote

You need to limit the figure width. Depending on the the chart, you also might need to distinguish between html and pdf.

If you want to change the font size (default is 16), you can use Mermaid configuration:

---
title: "long flow chart"

format:
  html:
    toc: true 
  pdf:
    documentclass: article
    number-sections: true
    code-fold: true
    classoption: "margin=1in"
    header-includes:
      - \setlength{\oddsidemargin}{0in}
      - \setlength{\evensidemargin}{0in}
      - \setlength{\textwidth}{6.5in}
      - \setlength{\topmargin}{0in}
      - \setlength{\textheight}{9in}
    page-size: a4
    margin: 1in

---

@fig-newwgtadj is within the pagewidth of html output, but goes
…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Steinthal
Comment options

Answer selected by tony-an-phd
@tony-an-phd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
diagrams-mermaid Mermaid diagrams
3 participants