In _quarto.yml I have defined a custom crossref type
crossref:
custom:
- key: axm
kind: float
reference-prefix: Axioms
Now within my quarto doc files I define the axiom environment
::: {#axm-real}
text of axioms listed here
:::
but the rendered output is auto-centering the text. Changing #axm- to #def- to instead utilize quarto's built-in definition environment, the text appears left-aligned as desired but of course the section is labeled as a definition.
How do I left-align the text in the custom axm environment? I don't see an alignment option specified here in the yml file options, and inserting an html p-tag for alignment completely changes the font appearance. Otherwise I have tried
::: {#axm-real}
::: {.left}
text of axioms listed here
:::
:::
or
::: {.left}
::: {#axm-real}
text of axioms listed here
:::
:::
which both result in still centered text. What am I doing wrong?
It seems like a hacky solution as there should be an R Markdown fix, but here is what I landed on that worked to solve this issue. Note that Source Sans Pro and 16px are simply the defaults in quarto, so the html tag is matching those quarto defaults.
::: {#axm-real}
<p align="left" style="font-family: 'Source Sans Pro', sans-serif; font-size: 16px;">
text of axioms listed here
</p>
:::