-
Notifications
You must be signed in to change notification settings - Fork 5
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
algpseudocode \Return #25
Comments
Thanks, We will update asap the pseudocode extension, hoping it will solve the problem. |
I updated the extension, is the problem still there? |
To test and compare the pdf output with the html output, I will have to also correct the tikz sections of my code (because of #24) before running it again |
Hello @fradav, yes the problem is still there |
In the meantime, what is the policy of Computo? Should I favor the HTML output (no blank line in HTML, no new line in PDF) or the reverse? |
Sorry for the late answer. I’ll let the editor in chief @jchiquet answer on the policy question. https://quarto.org/docs/authoring/conditional.html ::: {.content-visible when-format="html"}
Will only appear in HTML.
:::
::: {.content-hidden when-format="html"}
Will not appear in HTML.
::: (as a separate issue, we should have this documented) |
Like this?
and
with If so, I am happy that there is a workaround, but this will create a lot of duplicate code in my .qmd submission. |
The workaround worked for algorithms. I discovered that my figures (generated with
Strangely enough, I was also labelling my algorithms with the same syntax so I don't get it. |
In LaTeX when using algpseudocode, \Return has to be preceded by a \State command, or it won't appear on a new line. Problem is, this insert a blank line in html rendering.
So either I get the html render proper, without a blank line, but the \Return statement does not appear on a newline in pdf render:
either I get it right in pdf but with a blank line in html :
The text was updated successfully, but these errors were encountered: