emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Edgar Lux <edgarlux@mailfence.com>
Cc: Emacs Orgmode <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <87sf8jnvz2.fsf@localhost> (raw)
In-Reply-To: <530944580.355360.1692095755367@fidget.co-bxl>

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>


  parent reply	other threads:[~2023-08-16 10:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-15 10:35 How to preserve indentation of title inside a latex src block when exporting to LaTeX? Edgar Lux
2023-08-15 10:53 ` Edgar Lux
2023-08-16 10:05 ` Ihor Radchenko [this message]
     [not found]   ` <1821743348.485583.1692187548513@fidget.co-bxl>
2023-08-16 12:14     ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sf8jnvz2.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=edgarlux@mailfence.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).