emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Søren Mikkelsen" <smik@iha.dk>
To: emacs-orgmode@gnu.org
Subject: Re: Break a line in org-mode
Date: Wed, 03 Jul 2013 13:12:20 +0200	[thread overview]
Message-ID: <kr10ue$d4h$1@ger.gmane.org> (raw)
In-Reply-To: <87vc4sggpy.fsf@pank.eu>

On 2013-07-03 11:01, Rasmus wrote:
> 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
> 

Okay, just thought that there might be a symbol for that. That could
have been nice.

But thanks for the suggestions.

--
Søren

      reply	other threads:[~2013-07-03 11:15 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
2013-07-03 11:12   ` Søren Mikkelsen [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:
  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='kr10ue$d4h$1@ger.gmane.org' \
    --to=smik@iha.dk \
    --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).