emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to preserve indentation of title inside a latex src block when e


From: Ihor Radchenko
Subject: Re: How to preserve indentation of title inside a latex src block when exporting to LaTeX?
Date: Wed, 16 Aug 2023 10:05:21 +0000

Edgar Lux <edgarlux@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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]