emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Break a line in org-mode


From: Rasmus
Subject: Re: [O] Break a line in org-mode
Date: Wed, 03 Jul 2013 11:01:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Søren Mikkelsen <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]