* Tweaking org-laxtex-export-classes
@ 2010-10-21 13:46 Marvin Doyley
2010-10-22 16:51 ` Chris Malone
0 siblings, 1 reply; 3+ messages in thread
From: Marvin Doyley @ 2010-10-21 13:46 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1384 bytes --]
Dear all,
I am planning to write an article using org - most of my notes are =
already in org so this seems logical. The journal that I plan to submit =
to provides latex class so it just a matter of customizing =
org-export-latex-classes, which I have done=20
(add-to-list 'org-export-latex-classes=20
'("pmb"
"\\documentclass[t]{iopart}
\\usepackage{graphicx}
\\usepackage{graphics}
\\usepackage{amssymb,amsmath}
\\usepackage{calc}
\\usepackage{harvard}
\\usepackage{apacite}
\\bibliographystyle{apacite}
[NO-DEFAULT-PACKAGES]
\\renewcommand{\\baselinestretch}{1.5}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
Although this work almost perfect, I can figure out how get the exporter =
to to produce (i.e., I want the title, author, address, and \maketilte =
after the begin{document} rather than before
\HEADERS
\begin{document}
\title{BLAH BLAH BLAY}
\author{ME}
\address{WWW}
\begin{abstract}
Testing one to
\end{abstract}
\maketitle
\section{Introduction}
\section{Materials and methods}
\section{Results}
\section{Discussion}
\end{document}
My short term fix is to simple cut and paste, but it would be nice to =
know if there is more elegant solution
Best Wishes,
M
[-- Attachment #1.2: Type: text/html, Size: 1691 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Tweaking org-laxtex-export-classes
2010-10-21 13:46 Tweaking org-laxtex-export-classes Marvin Doyley
@ 2010-10-22 16:51 ` Chris Malone
2010-10-23 17:09 ` Marvin Doyley
0 siblings, 1 reply; 3+ messages in thread
From: Chris Malone @ 2010-10-22 16:51 UTC (permalink / raw)
To: Marvin Doyley; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 2118 bytes --]
Hi Marvin,
One hackish work around is to set the title to an empty string
#+TITLE:
This sets \title{} in the preamble and omits the \maketitle command. Then
after including all of your #+LATEX_HEADER's you could add the following
LaTeX commands where you want to produce the title:
#+LATEX: \title{foo}
#+LATEX: \maketitle
HTH,
Chris
On Thu, Oct 21, 2010 at 9:46 AM, Marvin Doyley <marvinpas@gmail.com> wrote:
> Dear all,
>
> I am planning to write an article using org - most of my notes are =
> already in org so this seems logical. The journal that I plan to submit =
> to provides latex class so it just a matter of customizing =
> org-export-latex-classes, which I have done=20
>
> (add-to-list 'org-export-latex-classes=20
> '("pmb"
> "\\documentclass[t]{iopart}
> \\usepackage{graphicx}
> \\usepackage{graphics}
> \\usepackage{amssymb,amsmath}
> \\usepackage{calc}
> \\usepackage{harvard}
> \\usepackage{apacite}
> \\bibliographystyle{apacite}
> [NO-DEFAULT-PACKAGES]
> \\renewcommand{\\baselinestretch}{1.5}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
>
> Although this work almost perfect, I can figure out how get the exporter =
> to to produce (i.e., I want the title, author, address, and \maketilte =
> after the begin{document} rather than before
>
> \HEADERS
> \begin{document}
> \title{BLAH BLAH BLAY}
> \author{ME}
> \address{WWW}
>
> \begin{abstract}
> Testing one to
> \end{abstract}
> \maketitle
>
> \section{Introduction}
> \section{Materials and methods}
> \section{Results}
> \section{Discussion}
>
> \end{document}
>
> My short term fix is to simple cut and paste, but it would be nice to =
> know if there is more elegant solution
>
>
> Best Wishes,
>
> M
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
[-- Attachment #1.2: Type: text/html, Size: 2820 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Tweaking org-laxtex-export-classes
2010-10-22 16:51 ` Chris Malone
@ 2010-10-23 17:09 ` Marvin Doyley
0 siblings, 0 replies; 3+ messages in thread
From: Marvin Doyley @ 2010-10-23 17:09 UTC (permalink / raw)
To: Chris Malone; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 2345 bytes --]
Thanks Chris,
This worked like a charm.
Cheers
M
On Fri, Oct 22, 2010 at 12:51 PM, Chris Malone <chris.m.malone@gmail.com>wrote:
> Hi Marvin,
>
> One hackish work around is to set the title to an empty string
>
> #+TITLE:
>
> This sets \title{} in the preamble and omits the \maketitle command. Then
> after including all of your #+LATEX_HEADER's you could add the following
> LaTeX commands where you want to produce the title:
>
> #+LATEX: \title{foo}
> #+LATEX: \maketitle
>
> HTH,
>
> Chris
>
> On Thu, Oct 21, 2010 at 9:46 AM, Marvin Doyley <marvinpas@gmail.com>wrote:
>
>> Dear all,
>>
>> I am planning to write an article using org - most of my notes are =
>> already in org so this seems logical. The journal that I plan to submit =
>> to provides latex class so it just a matter of customizing =
>> org-export-latex-classes, which I have done=20
>>
>> (add-to-list 'org-export-latex-classes=20
>> '("pmb"
>> "\\documentclass[t]{iopart}
>> \\usepackage{graphicx}
>> \\usepackage{graphics}
>> \\usepackage{amssymb,amsmath}
>> \\usepackage{calc}
>> \\usepackage{harvard}
>> \\usepackage{apacite}
>> \\bibliographystyle{apacite}
>> [NO-DEFAULT-PACKAGES]
>> \\renewcommand{\\baselinestretch}{1.5}"
>> ("\\section{%s}" . "\\section*{%s}")
>> ("\\subsection{%s}" . "\\subsection*{%s}")
>> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>> ("\\paragraph{%s}" . "\\paragraph*{%s}")
>> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>>
>>
>> Although this work almost perfect, I can figure out how get the exporter =
>> to to produce (i.e., I want the title, author, address, and \maketilte =
>> after the begin{document} rather than before
>>
>> \HEADERS
>> \begin{document}
>> \title{BLAH BLAH BLAY}
>> \author{ME}
>> \address{WWW}
>>
>> \begin{abstract}
>> Testing one to
>> \end{abstract}
>> \maketitle
>>
>> \section{Introduction}
>> \section{Materials and methods}
>> \section{Results}
>> \section{Discussion}
>>
>> \end{document}
>>
>> My short term fix is to simple cut and paste, but it would be nice to =
>> know if there is more elegant solution
>>
>>
>> Best Wishes,
>>
>> M
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
>
[-- Attachment #1.2: Type: text/html, Size: 3371 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-23 17:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21 13:46 Tweaking org-laxtex-export-classes Marvin Doyley
2010-10-22 16:51 ` Chris Malone
2010-10-23 17:09 ` Marvin Doyley
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).