Edgar Lux <edgar...@mailfence.com> writes: > Hello. How to preserve indentation of title inside a latex src block when > exporting to LaTeX? > > For (annoying) reasons, I need a frontmatter block which is able to indent > its contents. I am almost there, but the title line is not. I can edit this > manually after export, but I would like to know if there is a way to do > this... wait... there are filters. Is a filter the only solution? Thanks. > > #+begin_frontmatter > #+begin_src latex -i :exports results :eval yes :results replace > \title{Determine in-situ matrix properties} > \nothing{a} > #+end_src > #+end_frontmatter
I think that you may post-process the result (see :post header arg), adding indentation. -i only affects the code block itself, not its results. And may you please elaborate why you need to preserve indentation? We generally assume that common indentation is not significant. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>