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

Org reader ignores LaTex blocks #2915

Closed
ag91 opened this issue May 12, 2016 · 4 comments
Closed

Org reader ignores LaTex blocks #2915

ag91 opened this issue May 12, 2016 · 4 comments

Comments

@ag91
Copy link

ag91 commented May 12, 2016

Hello,

I am using pandoc 1.17.0.3
Compiled with texmath 0.8.6.2, highlighting-kate 0.6.2.

Emacs org mode allows to declare explicitly blocks of latex:

* Hello
#+BEGIN_LaTeX
hi I am LaTex
#+END_LaTeX

but pandoc translation omits them:

...
\begin{document}
\maketitle



\end{document}
...

Is a reason for that? I think that a previous version of pandoc (likely <1.16) considered them.
Many thanks for your work!

@tarleb
Copy link
Collaborator

tarleb commented May 12, 2016

Weird, I could not reproduce this. I tested with all of the following: 1.16.0.2, 1.17.0.3, and the current master. Running pandoc -f org -t latex test.org always gives me

\section{Hello}\label{hello}

hi I am LaTex

Can you give some more details on how you are involving pandoc?

@ag91
Copy link
Author

ag91 commented May 12, 2016

Oh sorry! I tried using directly pandoc, and you are right: it works.
I use pandoc from Emacs itself through ox-pandoc
https://github.com/kawabata/ox-pandoc

I assumed that the buffer was passed as-is to pandoc!
I am closing this.

Albert Krewinkel notifications@github.com writes:

Weird, I could not reproduce this. I tested with all of the following: 1.16.0.2, 1.17.0.3, and the current master. They all give me

\section{Hello}\label{hello}

hi I am LaTex

Can you give some more details on how you are involving pandoc?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#2915 (comment)

@ag91
Copy link
Author

ag91 commented May 12, 2016

For documentation purposes:

It is a new feature of org mode:
instead of the syntax
#+BEGIN_LaTex
org now uses
#+BEGIN_export latex

Pandoc already allows this.

@tarleb
Copy link
Collaborator

tarleb commented May 12, 2016

ag91 notifications@github.com writes:

For documentation purposes:

It is a new feature of org mode:
instead of the syntax
#+BEGIN_LaTex
org now uses
#+BEGIN_export latex

Pandoc already allows this.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#2915 (comment)

Thanks, I wasn't aware of this change. It was apparently announced last
December: http://permalink.gmane.org/gmane.emacs.orgmode/103736

The reader doesn't handle the new syntax properly, this will require
some changes.

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

2 participants