* [PATCH] Add example demonstrating LaTeX_CLASS_OPTIONS
@ 2012-03-08 0:41 suvayu ali
2012-03-08 12:18 ` suvayu ali
0 siblings, 1 reply; 3+ messages in thread
From: suvayu ali @ 2012-03-08 0:41 UTC (permalink / raw)
To: org-mode mailing list
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
Hi,
This is adds a small example to better illustrate the use of
LaTeX_CLASS_OPTIONS. Thanks to Nick for encouraging me to submit this.
Thanks,
--
Suvayu
Open source is the future. It sets us free.
[-- Attachment #2: 0001-Add-example-demonstrating-LaTeX_CLASS_OPTIONS.patch --]
[-- Type: text/x-patch, Size: 1877 bytes --]
From 1e8dc6e253ba72a1574dc7fb5f91028f68f01241 Mon Sep 17 00:00:00 2001
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Date: Thu, 8 Mar 2012 01:31:05 +0100
Subject: [PATCH] Add example demonstrating LaTeX_CLASS_OPTIONS
* org.texi (Header and sectioning): Add example demonstrating how to use
"LaTeX_CLASS_OPTIONS".
TINY CHANGE
---
doc/org.texi | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/doc/org.texi b/doc/org.texi
index 33ffe28..84d3102 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -10361,11 +10361,22 @@ @subsection Header and sectioning structure
@code{org-export-latex-default-packages-alist} and
@code{org-export-latex-packages-alist} are spliced.}, and allows you to
define the sectioning structure for each class. You can also define your own
-classes there. @code{#+LaTeX_CLASS_OPTIONS} or a @code{LaTeX_CLASS_OPTIONS}
-property can specify the options for the @code{\documentclass} macro. You
-can also use @code{#+LaTeX_HEADER: \usepackage@{xyz@}} to add lines to the
-header. See the docstring of @code{org-export-latex-classes} for more
-information.
+classes there. @code{#+LaTeX_CLASS_OPTIONS} or a @code{:LaTeX_CLASS_OPTIONS:}
+property can specify the options for the @code{\documentclass} macro. The
+options to documentclass have to be provided, as expected by @LaTeX{}, within
+square brackets. You can also use @code{#+LaTeX_HEADER: \usepackage@{xyz@}}
+to add lines to the header. See the docstring of
+@code{org-export-latex-classes} for more information. An example is shown
+below.
+
+@example
+#+LaTeX_CLASS: article
+#+LaTeX_CLASS_OPTIONS: [a4paper]
+#+LaTeX_HEADER: \usepackage{xyz}
+
+* Headline 1
+ some text
+@end example
@node Quoting @LaTeX{} code, Tables in @LaTeX{} export, Header and sectioning, @LaTeX{} and PDF export
@subsection Quoting @LaTeX{} code
--
1.7.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Add example demonstrating LaTeX_CLASS_OPTIONS
2012-03-08 0:41 [PATCH] Add example demonstrating LaTeX_CLASS_OPTIONS suvayu ali
@ 2012-03-08 12:18 ` suvayu ali
2012-03-08 12:45 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: suvayu ali @ 2012-03-08 12:18 UTC (permalink / raw)
To: org-mode mailing list
[-- Attachment #1: Type: text/plain, Size: 473 bytes --]
Hi,
Sorry the previous patch was buggy. I forgot to escape a brace. This
patch supersedes the last one.
Thanks,
On Thu, Mar 8, 2012 at 01:41, suvayu ali <fatkasuvayu+linux@gmail.com> wrote:
> Hi,
>
> This is adds a small example to better illustrate the use of
> LaTeX_CLASS_OPTIONS. Thanks to Nick for encouraging me to submit this.
>
> Thanks,
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
--
Suvayu
Open source is the future. It sets us free.
[-- Attachment #2: 0001-Add-example-demonstrating-LaTeX_CLASS_OPTIONS.patch --]
[-- Type: text/x-patch, Size: 1879 bytes --]
From 6d7719bdb3d190ff0b2854bc781ddfec7b1382d1 Mon Sep 17 00:00:00 2001
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Date: Thu, 8 Mar 2012 01:31:05 +0100
Subject: [PATCH] Add example demonstrating LaTeX_CLASS_OPTIONS
* org.texi (Header and sectioning): Add example demonstrating how to use
"LaTeX_CLASS_OPTIONS".
TINY CHANGE
---
doc/org.texi | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/doc/org.texi b/doc/org.texi
index 33ffe28..68836e0 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -10361,11 +10361,22 @@ @subsection Header and sectioning structure
@code{org-export-latex-default-packages-alist} and
@code{org-export-latex-packages-alist} are spliced.}, and allows you to
define the sectioning structure for each class. You can also define your own
-classes there. @code{#+LaTeX_CLASS_OPTIONS} or a @code{LaTeX_CLASS_OPTIONS}
-property can specify the options for the @code{\documentclass} macro. You
-can also use @code{#+LaTeX_HEADER: \usepackage@{xyz@}} to add lines to the
-header. See the docstring of @code{org-export-latex-classes} for more
-information.
+classes there. @code{#+LaTeX_CLASS_OPTIONS} or a @code{:LaTeX_CLASS_OPTIONS:}
+property can specify the options for the @code{\documentclass} macro. The
+options to documentclass have to be provided, as expected by @LaTeX{}, within
+square brackets. You can also use @code{#+LaTeX_HEADER: \usepackage@{xyz@}}
+to add lines to the header. See the docstring of
+@code{org-export-latex-classes} for more information. An example is shown
+below.
+
+@example
+#+LaTeX_CLASS: article
+#+LaTeX_CLASS_OPTIONS: [a4paper]
+#+LaTeX_HEADER: \usepackage@{xyz@}
+
+* Headline 1
+ some text
+@end example
@node Quoting @LaTeX{} code, Tables in @LaTeX{} export, Header and sectioning, @LaTeX{} and PDF export
@subsection Quoting @LaTeX{} code
--
1.7.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Add example demonstrating LaTeX_CLASS_OPTIONS
2012-03-08 12:18 ` suvayu ali
@ 2012-03-08 12:45 ` Bastien
0 siblings, 0 replies; 3+ messages in thread
From: Bastien @ 2012-03-08 12:45 UTC (permalink / raw)
To: suvayu ali; +Cc: org-mode mailing list
suvayu ali <fatkasuvayu+linux@gmail.com> writes:
> Sorry the previous patch was buggy. I forgot to escape a brace. This
> patch supersedes the last one.
Applied, thanks!
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-08 12:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 0:41 [PATCH] Add example demonstrating LaTeX_CLASS_OPTIONS suvayu ali
2012-03-08 12:18 ` suvayu ali
2012-03-08 12:45 ` Bastien
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).