emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Juan Manuel Macías" <maciaschain@posteo.net>
To: "Berry, Charles" <ccberry@health.ucsd.edu>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: [question] lisp code in :results header arg.?
Date: Tue, 16 Feb 2021 19:25:01 +0100	[thread overview]
Message-ID: <87wnv7lvk2.fsf@posteo.net> (raw)
In-Reply-To: <225A3D45-0F47-4FFE-8BBA-F023CB8C9A6C@health.ucsd.edu> (Charles Berry's message of "Tue, 16 Feb 2021 17:58:03 +0000")

"Berry, Charles" <ccberry@health.ucsd.edu> writes:

> I think you might do better to use noweb chunks, viz.
> #+name: pre-amble
> #+begin_src latex :exports none
>   \usepackage{luacode}
>   \usepackage{fontspec}
>   \directlua
>   {
>   [...]
>   }
>   }
>   \setmainfont{Linux Libertine O}
>   [RawFeature={+ktest}]
> #+end_src
> #+begin_src latex :noweb yes :results drawer
> ,#+LaTeX_HEADER: <<pre-amble>>
> #+end_src
> Evaluating the latter chunk (assuming `org-babel-load-languages' has (latex . t)) gives what I suspect you want.

wow, it works great! Many thanks. I did not know this use of noweb ...

Best regards,

Juan Manuel 

      reply	other threads:[~2021-02-16 18:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 16:30 [question] lisp code in :results header arg.? Juan Manuel Macías
2021-02-16 17:58 ` Berry, Charles via General discussions about Org-mode.
2021-02-16 18:25   ` Juan Manuel Macías [this message]

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:

  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=87wnv7lvk2.fsf@posteo.net \
    --to=maciaschain@posteo.net \
    --cc=ccberry@health.ucsd.edu \
    --cc=emacs-orgmode@gnu.org \


* 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


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).