From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?U8O4cmVuIE1pa2tlbHNlbg==?= Subject: Re: Break a line in org-mode Date: Wed, 03 Jul 2013 13:12:20 +0200 Message-ID: References: <87vc4sggpy.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuL1i-0002Ed-KV for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 07:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuL1f-00016q-IC for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 07:15:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:37166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuL1f-00016L-CO for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 07:15:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UuL1b-0007YL-HO for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 13:15:03 +0200 Received: from iha-nat.iha.dk ([130.225.184.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jul 2013 13:15:03 +0200 Received: from smik by iha-nat.iha.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jul 2013 13:15:03 +0200 In-Reply-To: <87vc4sggpy.fsf@pank.eu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 2013-07-03 11:01, Rasmus wrote: > Søren Mikkelsen 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