From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Strey Subject: [BUG, LaTeX] LATEX_CLASS_OPTIONS don't always work Date: Tue, 19 Feb 2013 23:14:20 +0100 Message-ID: <20130219221420.GS846@strey.biz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7vSE-0003AA-VE for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 17:14:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7vSC-0000M5-TD for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 17:14:26 -0500 Received: from mx1.supremebox.com ([198.23.53.39]:37431 helo=mx10.supremebox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7vSC-0000Lx-PI for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 17:14:24 -0500 Received: from [77.179.137.196] (helo=localhost) by mx10.supremebox.com with esmtpa (Exim 4.80) (envelope-from ) id 1U7vSB-00071B-2n for emacs-orgmode@gnu.org; Tue, 19 Feb 2013 22:14:23 +0000 Content-Disposition: inline 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 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. Regards -- Michael Strey www.strey.biz