emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alexander Baier <alexander.baier@mailbox.org>
To: Nick Dokos <ndokos@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [Latex Export] Influence placement of \maketitle command
Date: Fri, 16 May 2014 11:15:31 +0200	[thread overview]
Message-ID: <87wqdmytho.fsf@mailbox.org> (raw)
In-Reply-To: <87zjii42k9.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 16 May 2014 08:15:18 +0100")

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

      reply	other threads:[~2014-05-16  9:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14 18:26 [Latex Export] Influence placement of \maketitle command Alexander Baier
2014-05-14 19:01 ` Nick Dokos
2014-05-14 21:28   ` Alexander Baier
2014-05-15 19:02   ` Alexander Baier
2014-05-15 19:57     ` Eric S Fraga
2014-05-15 20:41       ` Alexander Baier
2014-05-16  4:19         ` Nick Dokos
2014-05-16  8:36           ` Alexander Baier
2014-05-16  7:15         ` Eric S Fraga
2014-05-16  9:15           ` Alexander Baier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqdmytho.fsf@mailbox.org \
    --to=alexander.baier@mailbox.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndokos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).