From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Re: [Latex Export] Influence placement of \maketitle command Date: Fri, 16 May 2014 11:15:31 +0200 Message-ID: <87wqdmytho.fsf@mailbox.org> References: <87tx8sw72f.fsf@mailbox.org> <874n0snq0p.fsf@alphaville.bos.redhat.com> <87iop627df.fsf@mailbox.org> <87sioastlt.fsf@ucl.ac.uk> <87egzu22rd.fsf@mailbox.org> <87zjii42k9.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlEGA-0007zy-DP for emacs-orgmode@gnu.org; Fri, 16 May 2014 05:17:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlEG1-0002wI-EG for emacs-orgmode@gnu.org; Fri, 16 May 2014 05:16:58 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:35219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlEG0-0002v2-Uy for emacs-orgmode@gnu.org; Fri, 16 May 2014 05:16:49 -0400 In-Reply-To: <87zjii42k9.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 16 May 2014 08:15:18 +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: Nick Dokos Cc: emacs-orgmode@gnu.org On 2014-05-16 09:15 Eric S Fraga wrote: > On Thursday, 15 May 2014 at 22:41, Alexander Baier wrote: >> On 2014-05-15 21:57 Eric S Fraga wrote: >>> I put it under its own heading with an :ignoreheading: tag and use the >>> filter that was posted on this list (today in fact): >> >> I can't find the filter you are referring to. I guess it is in the >> org-ref thread? I did not follow that thread as org-ref seems to be >> a somewhat full-fledged solution including a lot of things I do not >> need. I looked through the thread but wasn't lucky to find said >> filter. Could you kindly post a link? (if that's not to much to ask) >> >> Thanks, > > It was not in that thread and the email was tangentially about ignored > headlines. I think it had to with beamer columns and generating > articles. I'm offline currently so cannot check. Ah, well, neither did I follow that one. > In any case, this is what I use: > > (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:]*:ignoreheading:[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-ignore-heading-tag) > > HTH, > eric Thank you for digging this up! I, however, already applied Suvayu's solution suggested by Nick that uses a headline filter. I see that your filter inserts the original headline in comments into the source document, which might be very helpful, in case you are using this for more than just two latex commands. Regards, -- Alexander Baier