From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Break a line in org-mode Date: Wed, 03 Jul 2013 11:01:13 +0200 Message-ID: <87vc4sggpy.fsf@pank.eu> References: 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]:35432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuIwQ-0001Zk-Do for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 05:01:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuIwP-0005r4-7h for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 05:01:34 -0400 Received: from plane.gmane.org ([80.91.229.3]:54507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuIwP-0005qv-21 for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 05:01:33 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UuIwN-0001sK-5Z for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 11:01:31 +0200 Received: from business-213-023-238-209.static.arcor-ip.net ([213.23.238.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jul 2013 11:01:31 +0200 Received: from rasmus by business-213-023-238-209.static.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jul 2013 11:01:31 +0200 In-Reply-To: (=?utf-8?Q?=22S=C3=B8ren?= Mikkelsen"'s message of "Wed, 03 Jul 2013 08:49:15 +0200") 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 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 -- This is the kind of tedious nonsense up with which I will not put