From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG, LaTeX] LATEX_CLASS_OPTIONS don't always work Date: Wed, 20 Feb 2013 20:27:31 +0100 Message-ID: <87liai3hwc.fsf@gmail.com> References: <20130219221420.GS846@strey.biz> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8FKY-0001KJ-VZ for emacs-orgmode@gnu.org; Wed, 20 Feb 2013 14:27:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8FKU-0005Wc-GW for emacs-orgmode@gnu.org; Wed, 20 Feb 2013 14:27:50 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:63860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8FKU-0005WM-9r for emacs-orgmode@gnu.org; Wed, 20 Feb 2013 14:27:46 -0500 Received: by mail-wi0-f181.google.com with SMTP id hm6so6683306wib.8 for ; Wed, 20 Feb 2013 11:27:45 -0800 (PST) In-Reply-To: <20130219221420.GS846@strey.biz> (Michael Strey's message of "Tue, 19 Feb 2013 23:14:20 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, Michael Strey 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