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
Yaml header option standalone: false
does not work
#7335
Comments
standalone
does not workstandalone: false
does not work
This comment was marked as off-topic.
This comment was marked as off-topic.
You seem to imply the option worked before, did you try in earlier version including 1.3 stable version? |
Both our PDF format and HTML formats can't emit standalone HTML since many features of Quarto depend upon the inclusion of code outside the body of the document. |
@dragonstyle , that's another way to resolve the issue. The option is mentioned in the docs here for html and there for pdf (and probably in other places; extensions perhaps?). Shoud I open another issue for the docs, or would you rather reopen this issue? |
I am reopening as documentation until my PR to remove the option is merged. |
Bug description
In 1.4.444, for formats
html
andlatex
, the yaml header optionstandalone: false
has no effect.The bug is not present in 'rtf' and 'tei' which also have the
standalone
option.It should be forwarded to pandoc and produce a document with only the body.
However, the output document is the same for both standalone: true, standalone: false
The issue is probably that the option is simply not forwarded to pandoc.
Steps to reproduce
Here is a MWE
Run with
quarto render test.qmd
Quarto render log on my machine:
examine output files:
Expected behavior
When
standalone: false
, test.html and test.tex should include only the body of the document.Actual behavior
When
standalone: false
, test.html and test.tex produce a standalone document.Your environment
Quarto check output
Quarto 1.4.444
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.1.8: OK
Dart Sass version 1.55.0: OK
Deno version 1.33.4: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.4.444
Path: C:\Users\Guillaume\AppData\Local\Programs\Quarto\bin
CodePage: 1252
[>] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[>] Checking LaTeX....................OK
Using: Installation From Path
Path: C:\texlive\2023\bin\windows
Version: 2023
[>] Checking basic markdown render....OK
ERROR: The file cannot be accessed by the system. (os error 1920): ...
The text was updated successfully, but these errors were encountered: