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

Idea #1

Open
sergiocorreia opened this issue Sep 22, 2016 · 2 comments
Open

Idea #1

sergiocorreia opened this issue Sep 22, 2016 · 2 comments

Comments

@sergiocorreia
Copy link

I've been thinking a bit about this issue and found two other possible alternatives:

  1. Wrap the environments with divs instead, and then apply a filter to the divs (which is cleaner/easier than with codeblocks). There is at least one filter that does this (with the older pandocfilters package): https://github.com/chdemko/pandoc-latex-environment
  2. Create a new tex command \Begin and \End that get ignored by Pandoc, as discussed here:

Ideally, I would go with option 1 if there was a neat way to create divs, but there is yet no agreement on that in the Pandoc project: jgm/pandoc#168

Cheers,
S

@mathematicalcoffee
Copy link
Owner

Thanks much.

I also think div is the natural way to go, but it's just a pain to write due to there being no nice shorthand for divs as you say. I wish there was. (I'm lazy, <div class="columns"> takes longer than \begin{columns} and given that I'm essentially writing a mostly-latex document anyway [beamerposter] just using markdown for things like bold/italic/links/lists rather than headings/structure, \begin{} and \end{} makes more sense).

Had not seen the trick you mention for 2., I'll check it out. Thanks!

@ickc
Copy link

ickc commented Oct 1, 2016

You could take a look into 2 filters I wrote (modified from others) that uses div as LaTeX environment too:

The first one is very simple syntax, the second one is bigger and more specialized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants