[Top][All Lists]

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

Re: Question about string-match and match-string

From: Julien Cubizolles
Subject: Re: Question about string-match and match-string
Date: Sun, 21 Jul 2013 10:15:41 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Rasmus <> writes:

> This one is better.

It's working fine, thanks a lot. There is still the strange
_\textsc{ignoreheading} added to the default title. It's not really
important since I always set the title.

>   (defun rasmus/org-latex-ignore-heading (headline backend info)
>     "Strip headline from HEADLINE if it has tag ignoreheading."
>     (when (org-export-derived-backend-p backend 'latex)
>       (let ((tags (org-element-property :tags
>                                         (plist-get
>                                          (text-properties-at
>                                           (or (string-match 
> ".?\\(\\\\hfill\\|}\n\\)" headline) 0) headline)
>                                          :parent))))
>         (when (and tags (member-ignore-case "ignoreheading" tags))
>           (string-match "\\`.*\n.*\n" headline)
>           (replace-match "" nil nil headline)))))


reply via email to

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