From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Break a line in org-mode Date: Wed, 3 Jul 2013 17:00:21 +0000 (UTC) Message-ID: References: <87txkc9hq2.fsf@gmail.com> 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]:54559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuQQA-0004GI-Nf for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 13:00:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuQQ7-0007PB-Ou for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 13:00:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:58991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuQQ6-0007Ot-Rh for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 13:00:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UuQQ4-0001Fg-PF for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 19:00:40 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jul 2013 19:00:40 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jul 2013 19:00:40 +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 iha.dk> writes: > > On 2013-07-03 10:21, Nick Dokos wrote: > > Søren Mikkelsen 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)? > >> > > Wouldn't it be better to put the macros in a separate file (say > > mymacros.sty) and use > > > > #+LATEX_HEADER: \usepackage{mymacros} > > > > ? Less clutter in the org file and if the macros are more generally useful, > > you can make it available, say by moving it to your personal texmf > > directory (mine is at ~/.texmf-var/tex/latex but ymmv) and running texhash. > > > > Well, I would like it to be in one file. If I, for instance, want to > have long author list, it is not possible to do without having all the > names on one line. > > I through maybe that there was a newline symbol, like in python or matlab. > > -- > Søren > > In that case, you might want to use a template mechanism to enter the #+LATEX_HEADER with a minimum of pain. Org comes with an "easy template" system of its own: (info "(org) Easy templates") but I had some trouble with the customization as detailed in another posting. Note by the way that you can use a string as a key: you are not limited to a single character. There are other abbrev/template systems also if you find you don't like the org one. -- Nick