Open allefeld opened 2 years ago
It's tempting to make the default behavior using 25A1 and 22A0. But I don't think we can do that without sacrificing pdflatex-ability.. Your solution is elegant but has the drawback of making the TeX we produce less self-contained. Still, it's probably worth while on the whole.
Still, it's probably worth while on the whole.
I would think so. There are a lot of commands in the LaTeX output which rely on packages loaded or other preamble material.
Your solution is elegant but has the drawback of making the TeX we produce less self-contained.
Could you not make it conditional on -s
?
With TeX Gyre Pagella Math as mathfont, a task list looks like this:
The two symbols are fine on their own, but don't match exactly.
In that font, a better matching pair would be:
Here I used the symbols □ (U+25A1 WHITE SQUARE) and ⊠ (U+22A0 SQUARED TIMES).
Checking the generated LaTeX code
I don't see a way to replace the used symbols
$\square$
and$\boxtimes$
with my choice.I propose that Pandoc instead creates code like
combined with preamble code
This would reproduce the current behavior, but would be customizable, either by changing the template or via
\renewcommand
.