Re: org-->latex add local variables after \end{document}

2020-10-06 Thread Eric S Fraga
On Tuesday, 6 Oct 2020 at 13:22, Uwe Brauer wrote: > On problem of this approach is now: if I open this org file emacs uses > LaTeX mode not org mode :-( What if you remove the mode: line and let Emacs choose the mode according to file name? -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4-

Re: org-->latex add local variables after \end{document}

2020-10-06 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga writes: > On Monday, 5 Oct 2020 at 10:11, Uwe Brauer wrote: >> Right this is correct and this is what I tried, however I hoped for a >> more, hm, elegant solution. But on the other hand, what the heck... > This is pretty much my view: elegance is a bonus but anything t

Re: org-->latex add local variables after \end{document}

2020-10-05 Thread Eric S Fraga
On Monday, 5 Oct 2020 at 10:11, Uwe Brauer wrote: > Right this is correct and this is what I tried, however I hoped for a > more, hm, elegant solution. But on the other hand, what the heck... This is pretty much my view: elegance is a bonus but anything that works is enough! But if somebody does

Re: org-->latex add local variables after \end{document}

2020-10-05 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga writes: > On Monday, 5 Oct 2020 at 09:27, Uwe Brauer wrote: >> I have a org file that I want to export to latex but would like to add > [...] >> It is added before \end{document} >> >> Any idea how to do that? > You could always add the '\end{document}' line as the

Re: org-->latex add local variables after \end{document}

2020-10-05 Thread Eric S Fraga
On Monday, 5 Oct 2020 at 09:27, Uwe Brauer wrote: > I have a org file that I want to export to latex but would like to add [...] > It is added before \end{document} > > Any idea how to do that? You could always add the '\end{document}' line as the first line of your LaTeX src block? Untested

org-->latex add local variables after \end{document}

2020-10-05 Thread Uwe Brauer
Hi I have a org file that I want to export to latex but would like to add %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% TeX-output-dir: "/home/oub/ALLES/HGs/TFG-2020/build" %%% End: *after* \end{document} If I do #+begin_src latex :results latex replace :exports results :eval