emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [Latex Export] Influence placement of \maketitle command


From: Eric S Fraga
Subject: Re: [O] [Latex Export] Influence placement of \maketitle command
Date: Fri, 16 May 2014 08:15:18 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux)

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.

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

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.6-937-g60502a



reply via email to

[Prev in Thread] Current Thread [Next in Thread]