From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Break a line in org-mode
Date: Wed, 3 Jul 2013 17:00:21 +0000 (UTC) [thread overview]
Message-ID: <loom.20130703T185452-147@post.gmane.org> (raw)
In-Reply-To: kr10n2$aku$1@ger.gmane.org
Søren Mikkelsen <smik <at> iha.dk> writes:
>
> On 2013-07-03 10:21, Nick Dokos wrote:
> > Søren Mikkelsen <smik <at> iha.dk> writes:
> >
> >> I usually have some #+LaTeX_HEADER: entries in my org-mode files where
> >> some of them are macros. These lines can be rather long so I have to
> >> type in #+LaTeX_HEADER: multiple times for breaking the line to a
decent
> >> level.
> >>
> >> Is there a way of breaking a line when it is export options (or a
> >> regular comment in org-mode)?
> >>
> > Wouldn't it be better to put the macros in a separate file (say
> > mymacros.sty) and use
> >
> > #+LATEX_HEADER: \usepackage{mymacros}
> >
> > ? Less clutter in the org file and if the macros are more generally
useful,
> > you can make it available, say by moving it to your personal texmf
> > directory (mine is at ~/.texmf-var/tex/latex but ymmv) and running
texhash.
> >
>
> Well, I would like it to be in one file. If I, for instance, want to
> have long author list, it is not possible to do without having all the
> names on one line.
>
> I through maybe that there was a newline symbol, like in python or matlab.
>
> --
> Søren
>
>
In that case, you might want to use a template mechanism to enter the
#+LATEX_HEADER with a minimum of pain. Org comes with an "easy template"
system of its own:
(info "(org) Easy templates")
but I had some trouble with the customization as detailed in another
posting. Note by the way that you can use a string as a key: you are not
limited to a single character. There are other abbrev/template systems also
if you find you don't like the org one.
--
Nick
next prev parent reply other threads:[~2013-07-03 17:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-03 6:49 Break a line in org-mode Søren Mikkelsen
2013-07-03 8:21 ` Nick Dokos
2013-07-03 11:08 ` Søren Mikkelsen
2013-07-03 17:00 ` Nick Dokos [this message]
2013-07-03 9:01 ` Rasmus
2013-07-03 11:12 ` Søren Mikkelsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20130703T185452-147@post.gmane.org \
--to=ndokos@gmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.