* latex_class_options
@ 2016-09-15 12:29 Vikas Rawal
2016-09-15 13:10 ` latex_class_options Vikas Rawal
0 siblings, 1 reply; 3+ messages in thread
From: Vikas Rawal @ 2016-09-15 12:29 UTC (permalink / raw)
To: org-mode mailing list
I have a latex class defined as follows
(add-to-list 'org-latex-classes
'(("pulsememoir" "\\documentclass{memoir}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
In my org file, I have the following:
#+LATEX_CLASS: pulsememoir
#+LaTeX_CLASS_OPTIONS: [a4paper,11pt,twoside,openany,strict,extrafontsizes,twocolumn]
But when I export, I get:
\documentclass[8pt]{memoir}
Why is #+LATEX_CLASS_OPTIONS ignored? Has the syntax changed?
This is my org-version:
Org-mode version 8.3.5 (release_8.3.5-1026-g096f42 @ /Users/vikas/.emacs.d/src/org-mode/lisp/)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: latex_class_options
2016-09-15 12:29 latex_class_options Vikas Rawal
@ 2016-09-15 13:10 ` Vikas Rawal
0 siblings, 0 replies; 3+ messages in thread
From: Vikas Rawal @ 2016-09-15 13:10 UTC (permalink / raw)
To: org-mode mailing list
Sorry, please ignore. I did something dumb.
My apologies.
Vikas
> On 15-Sep-2016, at 5:59 pm, Vikas Rawal <vikaslists@agrarianresearch.org> wrote:
>
> I have a latex class defined as follows
>
> (add-to-list 'org-latex-classes
> '(("pulsememoir" "\\documentclass{memoir}"
> ("\\chapter{%s}" . "\\chapter*{%s}")
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
>
> In my org file, I have the following:
>
> #+LATEX_CLASS: pulsememoir
> #+LaTeX_CLASS_OPTIONS: [a4paper,11pt,twoside,openany,strict,extrafontsizes,twocolumn]
>
> But when I export, I get:
>
> \documentclass[8pt]{memoir}
>
> Why is #+LATEX_CLASS_OPTIONS ignored? Has the syntax changed?
>
> This is my org-version:
> Org-mode version 8.3.5 (release_8.3.5-1026-g096f42 @ /Users/vikas/.emacs.d/src/org-mode/lisp/)
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: latex_class_options
[not found] <366fcad2ebf941c284260734d6452ed9@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2016-09-15 13:31 ` Eric S Fraga
0 siblings, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2016-09-15 13:31 UTC (permalink / raw)
To: Vikas Rawal; +Cc: org-mode mailing list
On Thursday, 15 Sep 2016 at 12:29, Vikas Rawal wrote:
> I have a latex class defined as follows
>
> (add-to-list 'org-latex-classes
> '(("pulsememoir" "\\documentclass{memoir}"
> ("\\chapter{%s}" . "\\chapter*{%s}")
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
>
> In my org file, I have the following:
>
> #+LATEX_CLASS: pulsememoir
> #+LaTeX_CLASS_OPTIONS: [a4paper,11pt,twoside,openany,strict,extrafontsizes,twocolumn]
>
> But when I export, I get:
>
> \documentclass[8pt]{memoir}
Check your error messages. I think you have the above elisp wrong. It
should be
(add-to-list 'org-latex-classes
'("pulsememoir" "\\documentclass{memoir}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
One set of () removed from around the entry. You added a list with a
single entry instead of adding the entry to the list.
With this change, it works fine for me.
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-15 18:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-15 12:29 latex_class_options Vikas Rawal
2016-09-15 13:10 ` latex_class_options Vikas Rawal
[not found] <366fcad2ebf941c284260734d6452ed9@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-09-15 13:31 ` latex_class_options Eric S Fraga
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).