Skip to content
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

Outer par mode error with Quarto 1.4 #36

Open
cderv opened this issue Jan 10, 2024 · 2 comments
Open

Outer par mode error with Quarto 1.4 #36

cderv opened this issue Jan 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@cderv
Copy link
Contributor

cderv commented Jan 10, 2024

Rendering the template now throws

ERROR: 
compilation failed- error
LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.728 {
       \centering \includegraphics{sample-franklin.png}}

see template.log for more information.
ERROR: Error
    at renderFiles (file:///C:/Users/chris/Documents/DEV_R/quarto-cli/src/command/render/render-files.ts:346:23)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async render (file:///C:/Users/chris/Documents/DEV_R/quarto-cli/src/command/render/render-shared.ts:99:18)
    at async Command.fn (file:///C:/Users/chris/Documents/DEV_R/quarto-cli/src/command/render/cmd.ts:248:26)
    at async Command.execute (file:///C:/Users/chris/Documents/DEV_R/quarto-cli/src/vendor/deno.land/x/[email protected]/command/command.ts:1790:7)
    at async quarto (file:///C:/Users/chris/Documents/DEV_R/quarto-cli/src/quarto.ts:155:3)
    at async file:///C:/Users/chris/Documents/DEV_R/quarto-cli/src/quarto.ts:186:5

This is reported initially in

Problem with the extension filter

return {
{
Image = function(image)
local description = attribute(image, "fig-alt", nil)
if description == nil then
return image
end
description = pandoc.write(pandoc.Pandoc({description}), "latex")
if quarto.doc.is_format("latex") then
local caption = pandoc.write(pandoc.Pandoc({image.caption}), "latex")
local blockStr = "\\begin{figure}\n" ..
"{\\centering \\includegraphics{" .. image.src .. "}}\n" ..
"\\caption{" .. caption .. "}\n\\Description{"
.. description .. "}\n\\end{figure}\n"
return {pandoc.RawInline("latex", blockStr)}
else
image.attr.attributes["alt"] = description
image.attr.attributes["fig-alt"] = nil
return image
end
end
}

@cscheid
Copy link
Collaborator

cscheid commented Jan 10, 2024

Yes, I'm aware. (The long, long story is that all of the FloatRefTarget work was inspired by this long-standing ACM figure bug!) I'll fix once we have 1.4 properly out.

@prashantnag93
Copy link

@cscheid any update on this???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants