emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG, LaTeX] LATEX_CLASS_OPTIONS don't always work
Date: Wed, 20 Feb 2013 20:27:31 +0100	[thread overview]
Message-ID: <87liai3hwc.fsf@gmail.com> (raw)
In-Reply-To: <20130219221420.GS846@strey.biz> (Michael Strey's message of "Tue, 19 Feb 2013 23:14:20 +0100")

Hello,

Michael Strey <mstrey@strey.biz> writes:

> This is a minor issue.
>
> The replacement of LaTeX class options by
>
> #+LATEX_CLASS_OPTIONS: [ngerman]
>
> doesn't work if the documentclass definition in org-latex-classes
> consists of more than one line.
>
> I used such a definition in my Koma-script letters:
>
> \documentclass[%
> fontsize=11pt,%
> strey_consult,%
> c4envelope,  % optional
> ]{scrlttr2}
>
> For such a definition the replacement doesn't work.
>
> If I reduce the LaTeX expression to one line, everything is fine.
>
> I tracked down the issue to the regular expression in 
>
> (if class-options
>     (replace-regexp-in-string
>      "^[ \t]*\\\\documentclass\\(\\[.*?\\]\\)"
>      class-options header t nil 1)
>  header)
>
> Here I gave up for today.

Thank you for the detailed report. It should be fixed.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2013-02-20 19:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-19 22:14 [BUG, LaTeX] LATEX_CLASS_OPTIONS don't always work Michael Strey
2013-02-20 19:27 ` Nicolas Goaziou [this message]
2013-02-25  9:25   ` Michael Strey

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=87liai3hwc.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).