emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Break a line in org-mode
Date: Wed, 03 Jul 2013 11:01:13 +0200	[thread overview]
Message-ID: <87vc4sggpy.fsf@pank.eu> (raw)
In-Reply-To: <kr0hh4$bnb$1@ger.gmane.org> ("Søren Mikkelsen"'s message of "Wed, 03 Jul 2013 08:49:15 +0200")

Søren Mikkelsen <smik@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)?

No.  But maybe you could do 

#+LATEX_HEADER: \input{pre}
#+BEGIN_SRC LATEX :tangle pre.tex
\usepackage{mypackage}
#+END_SRC

Or you could make a new Org-Latex, see the variable org-latex-classes
if you have the same problem often.  

Some people entertained the idea of writing sty and/or cls files
recently on this list.  If you use the same macros all over perhaps
you should pack them as a sty or the very least as an external tex
file, I guess.

Alternatively, use the function string-rectangle.  In the following
example, place your mark at the first `|', click C-Space, move to the
second `|' click C-x r t LATEX_HEADER RET.

|\usepackage{pac1}
 \usepackage{pac1}
|\usepackage{pac1}.

Hope it helps. 

–Rasmus

-- 
This is the kind of tedious nonsense up with which I will not put

  parent reply	other threads:[~2013-07-03  9:01 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
2013-07-03  9:01 ` Rasmus [this message]
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

  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=87vc4sggpy.fsf@pank.eu \
    --to=rasmus@gmx.us \
    --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).