* LaTeX export with documentclass ltugboat
@ 2013-11-28 12:02 Jason Lewis
2013-11-28 12:32 ` Suvayu Ali
2013-11-28 12:37 ` Charles Millar
0 siblings, 2 replies; 7+ messages in thread
From: Jason Lewis @ 2013-11-28 12:02 UTC (permalink / raw)
To: org-mode
[-- Attachment #1: Type: text/plain, Size: 416 bytes --]
Hi,
How can I export an org file to LaTeX with a document class of ltugboat?
I've seen the example linked below but it doesn't appear to work in
8.2.1 and in fact states its for org < 8.0.
http://orgmode.org/worg/org-tutorials/org-latex-export.html
Is this documented somewhere for versions > 8.0?
Any pointers would be appreciated.
Thanks,
Jason
--
Jason Lewis
http://emacstragic.net
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 898 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: LaTeX export with documentclass ltugboat
2013-11-28 12:02 LaTeX export with documentclass ltugboat Jason Lewis
@ 2013-11-28 12:32 ` Suvayu Ali
2013-11-28 12:37 ` Charles Millar
1 sibling, 0 replies; 7+ messages in thread
From: Suvayu Ali @ 2013-11-28 12:32 UTC (permalink / raw)
To: emacs-orgmode
Hello Jason,
On Thu, Nov 28, 2013 at 11:02:31PM +1100, Jason Lewis wrote:
> Hi,
>
> How can I export an org file to LaTeX with a document class of ltugboat?
>
> I've seen the example linked below but it doesn't appear to work in
> 8.2.1 and in fact states its for org < 8.0.
> http://orgmode.org/worg/org-tutorials/org-latex-export.html
>
> Is this documented somewhere for versions > 8.0?
All exporter related community documentation for > 8.0 can be found
here: <http://orgmode.org/worg/exporters/>. Also the manual is upto
date.
Cheers,
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: LaTeX export with documentclass ltugboat
2013-11-28 12:02 LaTeX export with documentclass ltugboat Jason Lewis
2013-11-28 12:32 ` Suvayu Ali
@ 2013-11-28 12:37 ` Charles Millar
2013-11-29 5:21 ` Jason Lewis
1 sibling, 1 reply; 7+ messages in thread
From: Charles Millar @ 2013-11-28 12:37 UTC (permalink / raw)
To: emacs-orgmode
Jason,
On 11/28/2013 7:02 AM, Jason Lewis wrote:
> Hi,
>
> How can I export an org file to LaTeX with a document class of ltugboat?
>
> I've seen the example linked below but it doesn't appear to work in
> 8.2.1 and in fact states its for org < 8.0.
> http://orgmode.org/worg/org-tutorials/org-latex-export.html
>
> Is this documented somewhere for versions > 8.0?
>
> Any pointers would be appreciated.
>
> Thanks,
>
> Jason
>
I just started LaTeX export recently and referred to that page.
I added (require 'ox-latex) to my .emacs and the custom classes example
(as modified for my purposes) worked fine.
Charlie Millar
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: LaTeX export with documentclass ltugboat
2013-11-28 12:37 ` Charles Millar
@ 2013-11-29 5:21 ` Jason Lewis
2013-11-29 6:53 ` Thomas S. Dye
2013-11-29 12:41 ` Charles Millar
0 siblings, 2 replies; 7+ messages in thread
From: Jason Lewis @ 2013-11-29 5:21 UTC (permalink / raw)
To: org mode
[-- Attachment #1: Type: text/plain, Size: 1705 bytes --]
Hi Charles,
Thanks for your suggestion. I've tried it out it doesn't work for me.
I ran this elisp to add the export class
(require 'org-latex)
(unless (boundp 'org-export-latex-classes)
(add-to-list 'org-export-latex-classes
'("ltugboat"
"\\documentclass{ltugboat}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
made an org file:
#+LaTeX_CLASS: ltugboat
TEST
but when I export it gives an error:
user-error: Unknown LaTeX class `ltugboat'
Thanks,
Jason
Charles Millar wrote, On 28/11/2013 11:37 PM:
> Jason,
>
> On 11/28/2013 7:02 AM, Jason Lewis wrote:
>> Hi,
>>
>> How can I export an org file to LaTeX with a document class of ltugboat?
>>
>> I've seen the example linked below but it doesn't appear to work in
>> 8.2.1 and in fact states its for org < 8.0.
>> http://orgmode.org/worg/org-tutorials/org-latex-export.html
>>
>> Is this documented somewhere for versions > 8.0?
>>
>> Any pointers would be appreciated.
>>
>> Thanks,
>>
>> Jason
>>
>
> I just started LaTeX export recently and referred to that page.
>
> I added (require 'ox-latex) to my .emacs and the custom classes example
> (as modified for my purposes) worked fine.
>
> Charlie Millar
>
> ---
> This email is free from viruses and malware because avast! Antivirus
> protection is active.
> http://www.avast.com
>
>
--
Jason Lewis
http://emacstragic.net
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 834 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: LaTeX export with documentclass ltugboat
2013-11-29 5:21 ` Jason Lewis
@ 2013-11-29 6:53 ` Thomas S. Dye
2013-11-29 11:59 ` Jason Lewis
2013-11-29 12:41 ` Charles Millar
1 sibling, 1 reply; 7+ messages in thread
From: Thomas S. Dye @ 2013-11-29 6:53 UTC (permalink / raw)
To: Jason Lewis; +Cc: org mode
Jason Lewis <jason@dickson.st> writes:
> (require 'org-latex)
> (unless (boundp 'org-export-latex-classes)
> (add-to-list 'org-export-latex-classes
> '("ltugboat"
> "\\documentclass{ltugboat}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
It looks like you are using < 8.0 functions.
Try something like this:
(require 'ox-latex)
(add-to-list 'org-latex-classes
'("ltugboat"
"\\documentclass{ltugboat}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
Note: org-latex -> ox-latex
org-export-latex-classes -> org-latex-classes
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: LaTeX export with documentclass ltugboat
2013-11-29 6:53 ` Thomas S. Dye
@ 2013-11-29 11:59 ` Jason Lewis
0 siblings, 0 replies; 7+ messages in thread
From: Jason Lewis @ 2013-11-29 11:59 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1329 bytes --]
On 29/11/2013 5:53 pm, Thomas S. Dye wrote:
> Jason Lewis <jason@dickson.st> writes:
>
>> (require 'org-latex)
>> (unless (boundp 'org-export-latex-classes)
>> (add-to-list 'org-export-latex-classes
>> '("ltugboat"
>> "\\documentclass{ltugboat}"
>> ("\\section{%s}" . "\\section*{%s}")
>> ("\\subsection{%s}" . "\\subsection*{%s}")
>> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>> ("\\paragraph{%s}" . "\\paragraph*{%s}")
>> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
> It looks like you are using < 8.0 functions.
>
> Try something like this:
>
> (require 'ox-latex)
> (add-to-list 'org-latex-classes
> '("ltugboat"
> "\\documentclass{ltugboat}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> Note: org-latex -> ox-latex
> org-export-latex-classes -> org-latex-classes
>
> hth,
> Tom
>
Thanks Tom, that works perfectly.
Jason
--
Jason Lewis
http://emacstragic.net
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 898 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: LaTeX export with documentclass ltugboat
2013-11-29 5:21 ` Jason Lewis
2013-11-29 6:53 ` Thomas S. Dye
@ 2013-11-29 12:41 ` Charles Millar
1 sibling, 0 replies; 7+ messages in thread
From: Charles Millar @ 2013-11-29 12:41 UTC (permalink / raw)
To: emacs-orgmode
On 11/29/2013 12:21 AM, Jason Lewis wrote:
> Hi Charles,
>
> Thanks for your suggestion. I've tried it out it doesn't work for me.
>
>
> I ran this elisp to add the export class
>
> (require 'org-latex)
> (unless (boundp 'org-export-latex-classes)
> (add-to-list 'org-export-latex-classes
> '("ltugboat"
> "\\documentclass{ltugboat}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> made an org file:
>
> #+LaTeX_CLASS: ltugboat
> TEST
>
>
> but when I export it gives an error:
>
> user-error: Unknown LaTeX class `ltugboat'
>
> Thanks,
>
> Jason
>
>
>
> Charles Millar wrote, On 28/11/2013 11:37 PM:
>> Jason,
>>
>> On 11/28/2013 7:02 AM, Jason Lewis wrote:
>>> Hi,
>>>
>>> How can I export an org file to LaTeX with a document class of ltugboat?
>>>
>>> I've seen the example linked below but it doesn't appear to work in
>>> 8.2.1 and in fact states its for org < 8.0.
>>> http://orgmode.org/worg/org-tutorials/org-latex-export.html
>>>
>>> Is this documented somewhere for versions > 8.0?
>>>
>>> Any pointers would be appreciated.
>>>
>>> Thanks,
>>>
>>> Jason
>>>
>> I just started LaTeX export recently and referred to that page.
>>
>> I added (require 'ox-latex) to my .emacs and the custom classes example
>> (as modified for my purposes) worked fine.
>>
>> Charlie Millar
>>
>> ---
>> This email is free from viruses and malware because avast! Antivirus
>> protection is active.
>> http://www.avast.com
>>
>>
>
I have read of your success using Tom Dye's suggestion.
I realize that my original reply was not complete, so just to be sure
- did you put (require 'ox-letex) before your customized LaTeX class?
Charlie
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-11-29 12:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-28 12:02 LaTeX export with documentclass ltugboat Jason Lewis
2013-11-28 12:32 ` Suvayu Ali
2013-11-28 12:37 ` Charles Millar
2013-11-29 5:21 ` Jason Lewis
2013-11-29 6:53 ` Thomas S. Dye
2013-11-29 11:59 ` Jason Lewis
2013-11-29 12:41 ` Charles Millar
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).