Can I exclude document sections in Quarto when generating PDF output? #9615
-
DescriptionBelow is my qmd code in the file index.qmd, there is a section "## Data Delivery, Help and FAQ " that I would like to omit, is there an easy way to exclude? Thanks in advance title: RMBS Product Tear Sheet subtitle: ICE Sustainable Financeauthor: "ICE Sustainable Finance" bibliography: references.bibnocite: | linkcolor: RSSblueurlcolor: RSSblue
editor: source
Mission/Overview
Disclaimer
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Could you properly format your post using code blocks for code and terminal outputs? Thanks. This being said you likely are interested in "conditional content" as described in https://quarto.org/docs/authoring/conditional.html. |
Beta Was this translation helpful? Give feedback.
-
Same question. This is exactly what I would like, how can I leave some markdown out for the PDF version, in this case, I dont want the hidden Click to expandExample This part should not be included in final PDFThanks |
Beta Was this translation helpful? Give feedback.
-
Use ::: {.content-visible unless-format="pdf"}
From: Mickaël Canouil ***@***.***>
Sent: Tuesday, April 8, 2025 6:12 PM
To: quarto-dev/quarto-cli ***@***.***>
Cc: Tom Meek ***@***.***>; Mention ***@***.***>
Subject: Re: [quarto-dev/quarto-cli] Can I exclude document sections in Quarto when generating PDF output? (Discussion #9615)
WARNING - External email from github.com
Use conditional content as documented on quarto.org.
—
Reply to this email directly, view it on GitHub<https://secure.ice/?https://github.com/quarto-dev/quarto-cli/discussions/9615#discussioncomment-12770628>, or unsubscribe<https://secure.ice/?https://github.com/notifications/unsubscribe-auth/A6ZZE4WETMJ62UE65CNHC7L2YRCTJAVCNFSM6AAAAAB2XNHN5GVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENZXGA3DEOA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
…________________________________
This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Intercontinental Exchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.
|
Beta Was this translation helpful? Give feedback.
Could you properly format your post using code blocks for code and terminal outputs? Thanks.
If your code contains code blocks, you need to enclose it using more backticks, i.e., usually four
````
.This being said you likely are interested in "conditional content" as described in https://quarto.org/docs/authoring/conditional.html.