From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Start Appendix in LaTeX - better way than \appendix? Date: Wed, 26 Aug 2015 13:05:59 +0200 Message-ID: References: <87twrmjqkg.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUYWy-0007oi-6A for emacs-orgmode@gnu.org; Wed, 26 Aug 2015 07:06:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUYWv-0002qU-05 for emacs-orgmode@gnu.org; Wed, 26 Aug 2015 07:06:12 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:32858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUYWu-0002qA-Pw for emacs-orgmode@gnu.org; Wed, 26 Aug 2015 07:06:08 -0400 Received: by wijn1 with SMTP id n1so20497408wij.0 for ; Wed, 26 Aug 2015 04:06:08 -0700 (PDT) Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by smtp.gmail.com with ESMTPSA id d17sm3281823wjs.32.2015.08.26.04.06.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Aug 2015 04:06:06 -0700 (PDT) In-Reply-To: <87twrmjqkg.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 26 Aug 2015 11:23:59 +0100") 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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eric S Fraga writes: > On Wednesday, 26 Aug 2015 at 11:47, Rainer M Krug wrote: > > [...] > >> Is there a better / more org way of doing this, or do I have to live >> with this? > > I tend to do something like this: > > #+begin_src org > ,* (new page) :ignoreheading: > ,#+latex: \newpage > #+end_src > > in conjunction with this export hook: > > #+begin_src emacs-lisp > (defun esf/remove-lines-with-ignore-heading-tag (backend) > (message "Deleting lines with ignore heading tag") > (while (search-forward-regexp "^\\*+.*[ \t]+[a-ZA-Z0-9:]*:ignoreheadi= ng:[a-ZA-Z0-9:]*$" (point-max) t) > (cond > ((eq backend 'latex) (replace-match "#+latex: % \\&" )) > ((eq backend 'html) (replace-match "#+html: " )) > (t (replace-match ""))))) > (add-hook 'org-export-before-processing-hook 'esf/remove-lines-with-ign= ore-heading-tag) > #+end_src > > I use the ignoreheading kludge a lot for structuring documents that will = be exported. > > Obviously change "newpage" for "appendix" in the above example... This is brilliant - thanks. I think this should be included directly i org as may questions were related to exactly this - entries without headings. Thanks, Rainer =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQEcBAEBCAAGBQJV3Z2dAAoJENvXNx4PUvmCDtYIAM6HUNj3GxPuL0qWaTGSAR9a eGHQKZprUh9Dm9yNSyqF7u5eYsZ1WjF/fBhpXY29usBKM+GAlQFPEEJqpwXwGhxu zzKftKerWn2hpQAz9O8cVov8P0d7tYmS6OxtUQicNOUusW2QTCKiK3eHg1KzYf+n EhT8Wopz2Cg3XWXOrLh1eAmJEPCztQt+M0UwvZq6wcogMUMuZZDNF/nuwj9ym9SL dLfBrUjs7CQASNaGUHspZPb8qBro5fDZJlnsA+Dfed2xfcO/Y7tKeDYDYAL2S4Du cbO5CiJBA1GrSzMNfVvz9gnrMaSQtAo6nyLzLKB9VtdX5mDDSeYWs/sBtO4igdE= =rSc2 -----END PGP SIGNATURE----- --=-=-=--