From: Marcin Borkowski <mbork@mbork.pl>
To: emacs-orgmode@gnu.org
Subject: Re: How to export an Org file to LaTeX's book class, but without parts?
Date: Fri, 24 Apr 2015 00:50:00 +0200 [thread overview]
Message-ID: <87d22uo3xp.fsf@mbork.pl> (raw)
In-Reply-To: <87vbgp54nm.fsf@alphaville.usersys.redhat.com>
On 2015-04-22, at 03:32, Nick Dokos <ndokos@gmail.com> wrote:
> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> Hi all,
>>
>> this is an actual question, but it can be viewed as a continuation of
>> the "why use LaTeX directly and not Org" thread (disclaimer: from the
>> POV of an experienced LaTeX user and much less experienced Org-exporter
>> user).
>>
>> So, I tried to do the opposite, just to learn something/unlock the "Org
>> Exporter" skill;-). I want to export my Org file to the book class
>> (actually, a class similar to it, but never mind), but I want my
>> first-level headings to be chapters, not parts. OTOH, I don't want to
>> modify org-latex-classes. Is that possible, and if yes, how to achieve
>> that?
>
> AFAIK, no, not without modifying org-latex-classes - why don't you want
> to modify it?
Because I want this setup for only one file, and not necessarily globally.
BTW, I'll probably settle with this:
,----
| #+LATEX_CLASS: mwbk
| # Local Variables:
| # org-latex-classes: (("mwbk" "\\documentclass[11pt]{mwbk}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}")))
| # End:
`----
Seems to do the trick (mwbk is a Polish-localized - or rather, European
- version of the book class). The drawback is that it keeps asking for
confirmation that it is safe. It seems that there is no option to mark
a /variable/ and not a /variable-value pair/ as "safe" as file local
variables - I guess I'll file an Emacs feature request for that.
> Nick
Thanks to all, and best regards!
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
next prev parent reply other threads:[~2015-04-23 22:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-21 22:33 How to export an Org file to LaTeX's book class, but without parts? Marcin Borkowski
2015-04-22 1:32 ` Nick Dokos
2015-04-23 22:50 ` Marcin Borkowski [this message]
2015-04-22 6:15 ` Eric S Fraga
2015-04-22 6:27 ` Miguel Ruiz
2015-04-23 22:34 ` Marcin Borkowski
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=87d22uo3xp.fsf@mbork.pl \
--to=mbork@mbork.pl \
--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).