Skip to content

how to get hugo-compatible inline equations #12272

Closed Answered by cderv
falkmielke asked this question in Q&A
Discussion options

You must be logged in to vote

First, when you write in a .qmd, you need to use Quarto Markdown syntax as we document. So inline needs to be $ .. $. This is so that the format is parsed correctly.

If you want to write hugo directly, then you need to use raw directly as you with the block

I am losing my \( \sigma \)!

```{=markdown}
But I would like to keep \( \sigma \)...
```

So to keep it you could do

Keeping it: `\( \sigma \)`{=markdown}

If you want \( in output, this is about the writer. As we document in webtex alternative section, format: hugo-md will output $ for math.

Through Pandoc, you can tweak the output by configure how the Pandoc writer behave. This is advanced (as not documented and requiring knowing how

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by falkmielke
Comment options

You must be logged in to vote
2 replies
@cderv
Comment options

@falkmielke
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
hugo math any issue related to math support in specific formats
2 participants