Hello,

Flareriderdash <flareriderd...@gmail.com> writes:

> When exporting to latex from within an org subtree with properties like
> EXPORT_AUTHOR set in a way to extend latex title capabilities
> (i.e. adding instructor and institutional affiliation, ref
> [[https://en.wikibooks.org/wiki/LaTeX/Title_Creation]]) the "\\" string
> within the org property gets escaped to "$\backslash$\" during
> export. Latex then doesn't treat this as a newline, deviating from
> expected behaviour
>
> This is the org property that is used during latex export
>
> #+BEGIN_EXAMPLE
>
> :EXPORT_AUTHOR: Gabriel S. X. Smith\\ CMST220\\ Professor Voso
>
> #+END_EXAMPLE
>
>
> This is the expected org to latex conversion
>
> #+BEGIN_EXAMPLE
>
> \author{Gabriel S. X. Smith\\ CMST220\\ Professor Voso}
>
> #+END_EXAMPLE

No, this is not the expected conversion. AUTHOR, like TITLE, expects Org
syntax, not LaTeX.

You could write, e.g.,

  :EXPORT_AUTHOR: Gabriel S. X. Smith@@latex:\\@@ CMST220@@latex:\\@@ Professor 
Voso

Regards,

-- 
Nicolas Goaziou

Reply via email to