emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [BUG, LaTeX] LATEX_CLASS_OPTIONS don't always work


From: Nicolas Goaziou
Subject: Re: [O] [BUG, LaTeX] LATEX_CLASS_OPTIONS don't always work
Date: Wed, 20 Feb 2013 20:27:31 +0100

Hello,

Michael Strey <address@hidden> 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 via email to

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