jartigag is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
jartigag @jartigag

does anyone know how to use to export a file to pdf? it includes lists like this:
- [x]
- [ ]
and maths like this:
$S=\frac{B\cdot l\cdot S_L}{\vert Z_T \vert}$
but i can't make it work together! ๐Ÿ˜ฉ

ยท Web ยท 5 ยท 1

@peanutbutter144 problem is lists with checkboxes look like this: mastodon.social/media/25GJs36r
i've tried with pandoc --from markdown_github f.md -o f.pdf but it's worse (it doesn't render LaTeX)

@jartigag does pandoc give you any error messages?

@peanutbutter144 no, it gives me the pdf file correctly, but it doesn't look the way i want

@jartigag hmm. Maybe LaTeX doesn't support checkboxes?

@peanutbutter144 sure, but maybe doesn't support gfm (github flavored markdown) checkboxes github.com/jgm/pandoc/issues/3
anyway, issues like this are kinda messy to understand for me ๐Ÿ˜…

@jartigag i was always able to just do

pandoc -s -o output.pdf input.md

and include $-fenced LaTeX in my markdown input

@er1n LaTex is working right, lists with checkboxes are the problem

@jartigag ahhhhhh, i see. what TeX code is it outputting for the list?

@er1n it's a gfm list of items with checkboxes, no TeX. as i read on its github issues, pandoc doesn't support these gfm checkboxes. long discuss here: github.com/jgm/pandoc/issues/3

@jartigag ....If you are writing stuff this crazy, why not just use LaTeX? It is super easy to make PDF

@Canageek i know, i used to use it ๐Ÿ˜„
i was just writing a short college test down, so i started with markdown and then i added a couple of math expressions

@jartigag Pandoc does not support the -[] syntax... that is only for github.

@jartigag You can use haroopad

pad.haroopress.com/

is little bugged (I taste it on 2016-2017) and like it. You can export to HTML and PDF

@Nuria i used it last year too and i liked it. it didn't ocurred to me this time ๐Ÿ˜…
finally i got it with a brand new lua-filter called task-list (it's in pandoc's repo)