all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Exporting LaTeX
@ 2008-08-21  5:17 Charles Howard
  2008-08-21  6:35 ` Russell Adams
  2008-08-22 10:24 ` Charles Howard
  0 siblings, 2 replies; 3+ messages in thread
From: Charles Howard @ 2008-08-21  5:17 UTC (permalink / raw)
  To: emacs-orgmode


I am trying to implement a variation on what Russell Adams describes in

http://lists.gnu.org/archive/html/emacs-orgmode/2008-08/msg00044.html 

but I get the message 

>>>

An error has occurred while loading `/home/ogham/.emacs':

Symbol's value as variable is void: org-export-latex-classes

<<<

on starting emacs. The only way I could get C^c C^e l to write my preamble commands to file.tex
was by inserting my block of code

>>>
    ("myarticle"
     "\\documentclass[11pt]{article}
\\usepackage[utf8]{inputenc}
\\usepackage[T1]{fontenc}
\\usepackage{hyperref}
\\setlength{\\textwidth}{16cm}
\\setlength{\\textheight}{23cm}
\\setlength{\\voffset}{-1cm}
\\setlength{\\hoffset}{-1.5cm}
\\setlength{\\parindent}{0cm}
\\addtolength{\\parskip}{2mm}
\\usepackage{titlesec}
\\titleformat{\\section}[block]{\\bfseries}{\\S\\,\\thesection\\enspace}{.5em}{}
\\titleformat{\\subsection}[block]{\\mdseries}{\\thesubsection\\enspace}{.3em}{}
\\titleformat{\\subsubsection}[block]{\\mdseries}{{\\footnotesize\\thesubsubsection\\enspace}}{.1em}{\\footnotesize}"
     ("\\section{%s}" . "\\section*{%s}")
     ("\\subsection{%s}" . "\\subsection*{%s}")
     ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
     ("\\paragraph{%s}" . "\\paragraph*{%s}")
     ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                                                                      
<<<

directly into /usr/local/share/emacs/site-lisp/org-export-latex.el 

Although this works for me, I'd still like to understand why the corresponding code into ~/.emacs did not work. 
Can someone tell me why this was so?

I'm using Orgmode 6.06b and emacs 22.1.1 on Ubuntu 7.10. 

Many thanks, Chas
_________________________________________________________________
Win a voice over part with Kung Fu Panda & Live Search   and   100’s of Kung Fu Panda prizes to win with Live Search
http://clk.atdmt.com/UKM/go/107571439/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Exporting LaTeX
  2008-08-21  5:17 Exporting LaTeX Charles Howard
@ 2008-08-21  6:35 ` Russell Adams
  2008-08-22 10:24 ` Charles Howard
  1 sibling, 0 replies; 3+ messages in thread
From: Russell Adams @ 2008-08-21  6:35 UTC (permalink / raw)
  To: emacs-orgmode

On Thu, Aug 21, 2008 at 05:17:07AM +0000, Charles Howard wrote:
> 
> I am trying to implement a variation on what Russell Adams describes in
> 

I've heard of that guy! He's nothing but trouble!

> http://lists.gnu.org/archive/html/emacs-orgmode/2008-08/msg00044.html 
> 
> on starting emacs. The only way I could get C^c C^e l to write my preamble commands to file.tex
> was by inserting my block of code
> 
> 
> directly into /usr/local/share/emacs/site-lisp/org-export-latex.el 
> 
> Although this works for me, I'd still like to understand why the corresponding code into ~/.emacs did not work. 
> Can someone tell me why this was so?
> 
> I'm using Orgmode 6.06b and emacs 22.1.1 on Ubuntu 7.10. 
> 
> Many thanks, Chas

Did you have the setq and cons around it? That appends the custom
values to the existing variable.

(setq org-export-latex-classes (cons '("aisarticle"
     "% BEGIN latex
	  % END latex
"
     ("\\section{%s}" . "\\section*{%s}")
     ("\\subsection{%s}" . "\\subsection*{%s}")
     ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
     ("\\paragraph{%s}" . "\\paragraph*{%s}")
     ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 org-export-latex-classes))

Glad to see my experiments are coming in handy!

------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Exporting LaTeX
  2008-08-21  5:17 Exporting LaTeX Charles Howard
  2008-08-21  6:35 ` Russell Adams
@ 2008-08-22 10:24 ` Charles Howard
  1 sibling, 0 replies; 3+ messages in thread
From: Charles Howard @ 2008-08-22 10:24 UTC (permalink / raw)
  To: emacs-orgmode


This problem seems to have been caused by a badly written .emacs file and by having the lisp files in two dirs. 

My thanks for the individual replies !

Chas

----------------------------------------
> From: incubando@hotmail.co.uk
> To: emacs-orgmode@gnu.org
> Date: Thu, 21 Aug 2008 05:17:07 +0000
> Subject: [Orgmode] Exporting LaTeX
> 
> 
> I am trying to implement a variation on what Russell Adams describes in
> 
> http://lists.gnu.org/archive/html/emacs-orgmode/2008-08/msg00044.html 
> 
> but I get the message 
> 
>>>>
> 
> An error has occurred while loading `/home/ogham/.emacs':
> 
> Symbol's value as variable is void: org-export-latex-classes
> 
> <<<
> 
> on starting emacs. The only way I could get C^c C^e l to write my preamble commands to file.tex
> was by inserting my block of code
> 
>>>>
>     ("myarticle"
>      "\\documentclass[11pt]{article}
> \\usepackage[utf8]{inputenc}
> \\usepackage[T1]{fontenc}
> \\usepackage{hyperref}
> \\setlength{\\textwidth}{16cm}
> \\setlength{\\textheight}{23cm}
> \\setlength{\\voffset}{-1cm}
> \\setlength{\\hoffset}{-1.5cm}
> \\setlength{\\parindent}{0cm}
> \\addtolength{\\parskip}{2mm}
> \\usepackage{titlesec}
> \\titleformat{\\section}[block]{\\bfseries}{\\S\\,\\thesection\\enspace}{.5em}{}
> \\titleformat{\\subsection}[block]{\\mdseries}{\\thesubsection\\enspace}{.3em}{}
> \\titleformat{\\subsubsection}[block]{\\mdseries}{{\\footnotesize\\thesubsubsection\\enspace}}{.1em}{\\footnotesize}"
>      ("\\section{%s}" . "\\section*{%s}")
>      ("\\subsection{%s}" . "\\subsection*{%s}")
>      ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>      ("\\paragraph{%s}" . "\\paragraph*{%s}")
>      ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
>                                                                       
> <<<
> 
> directly into /usr/local/share/emacs/site-lisp/org-export-latex.el 
> 
> Although this works for me, I'd still like to understand why the corresponding code into ~/.emacs did not work. 
> Can someone tell me why this was so?
> 
> I'm using Orgmode 6.06b and emacs 22.1.1 on Ubuntu 7.10. 
> 
> Many thanks, Chas
> _________________________________________________________________
> Win a voice over part with Kung Fu Panda & Live Search   and   100’s of Kung Fu Panda prizes to win with Live Search
> http://clk.atdmt.com/UKM/go/107571439/direct/01/
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

_________________________________________________________________
Win New York holidays with Kellogg’s & Live Search 
http://clk.atdmt.com/UKM/go/107571440/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-22 10:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21  5:17 Exporting LaTeX Charles Howard
2008-08-21  6:35 ` Russell Adams
2008-08-22 10:24 ` Charles Howard

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.