emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Strey <mstrey@strey.biz>
To: emacs-orgmode@gnu.org
Subject: [BUG, LaTeX] LATEX_CLASS_OPTIONS don't always work
Date: Tue, 19 Feb 2013 23:14:20 +0100	[thread overview]
Message-ID: <20130219221420.GS846@strey.biz> (raw)

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

             reply	other threads:[~2013-02-19 22:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-19 22:14 Michael Strey [this message]
2013-02-20 19:27 ` [BUG, LaTeX] LATEX_CLASS_OPTIONS don't always work Nicolas Goaziou
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=20130219221420.GS846@strey.biz \
    --to=mstrey@strey.biz \
    --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).