Can I use a cell option (e.g. echo: false) with a cell magic (e.g. %%latex)? #11791
Replies: 2 comments 1 reply
-
You can set default cell options which do apply to these cells. But these cells are typically exceptional; in this case, I don't want to display the raw latex code but I do want to show the code of regular code cells. |
Beta Was this translation helpful? Give feedback.
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks. A screenshot without alternative text is unfortunately not usable to reproduce your issue nor allow users using assistive technology to be able to read your post. You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
-
Description
Can I use a cell option (e.g.
echo: false
) with a cell magic (e.g.%%latex
)?It seems that both of these must appear on the first line the cell, making them incompatible, but it seems like a pretty standard use case.
If this isn't possible, what's the best alternative (especially to support latex)?
Beta Was this translation helpful? Give feedback.
All reactions