* Re: A LaTeX class for Org-mode export
@ 2010-11-26 4:32 Mike McLean
2010-11-26 6:58 ` Thomas S. Dye
0 siblings, 1 reply; 7+ messages in thread
From: Mike McLean @ 2010-11-26 4:32 UTC (permalink / raw)
To: sp_us, emacs-orgmode
FWIW, I got past the same error by NOT including the line to add to
latex-packages-alist in my .emacs.
;; (add-to-list 'org-export-latex-packages-alist '(("AUTO" "inputenc" t)))
My configuration is completely different that Srinivs, too: MacOSX -
Emacs 24.0.50.2 from source - Org mode from git (pre-release) to
25-November (88bd7bb).
> Tom,
>
> I tried to run and produce PDF using Miktex 2.8 on Windows (Emacs
> 23.1). I get
> an error:
>
> (C:\bin\miktex-2.8\tex\latex\inconsolata\inconsolata.sty))
>
> ! LaTeX Error: File `nil.sty' not found.
>
> and the PDF is not produced. I am a newbie at trying LaTeX so don't
> know quite
> where to begin solving the problem. Any help is much appreciated.
>
> Any tips to solve this problem?
>
> - Srinivas
>
> PS. Attached is the log:
>
> This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
> entering extended mode
>
> ("c:/Documents and Settings/srinivas/my documents/org-files/src/article-
> class.te
> x"
> LaTeX2e <2009/09/24>
> Babel <v3.8l> and hyphenation patterns for english, dumylang,
> nohyphenation, ge
> rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.
> ("c:\Documents and Settings\srinivas\my documents\org-files\src\org-
> article.cls"
> Document Class: org-article 2010/09/19 0.2 (TSD)
> (C:\bin\miktex-2.8\tex\latex\base\ifthen.sty)
> (C:\bin\miktex-2.8\tex\latex\tools\calc.sty)
> (C:\bin\miktex-2.8\tex\generic\oberdiek\ifpdf.sty)
> (C:\bin\miktex-2.8\tex\latex\koma-script\scrartcl.cls
> Document Class: scrartcl 2010/06/17 v3.06 KOMA-Script document class
> (article)
> (C:\bin\miktex-2.8\tex\latex\koma-script\scrkbase.sty
> (C:\bin\miktex-2.8\tex\latex\koma-script\scrbase.sty
> (C:\bin\miktex-2.8\tex\latex\graphics\keyval.sty)
> (C:\bin\miktex-2.8\tex\latex\koma-script\scrlfile.sty
> Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading files)
> Copyright (C) Markus Kohm
>
> ))) (C:\bin\miktex-2.8\tex\latex\koma-script\tocbasic.sty)
> (C:\bin\miktex-2.8\tex\latex\koma-script\scrsize11pt.clo)
> (C:\bin\miktex-2.8\tex\latex\koma-script\typearea.sty
> Package typearea, 2010/06/17 v3.06 KOMA-Script package (type area)
> Copyright (C) Frank Neukam, 1992-1994
> Copyright (C) Markus Kohm, 1994-
>
>
> Package typearea Warning: Maybe no optimal type area settings!
> (typearea) The maximum limit of line width is about 17%
> (typearea) larger than the heuristically detected line
> width.
> (typearea) You may e.g. increase DIV, decrease fontsize
> (typearea) or change the papersize.
>
> )) (C:\bin\miktex-2.8\tex\latex\base\fixltx2e.sty)
> (C:\bin\miktex-2.8\tex\latex\graphics\graphicx.sty
> (C:\bin\miktex-2.8\tex\latex\graphics\graphics.sty
> (C:\bin\miktex-2.8\tex\latex\graphics\trig.sty)
> (C:\bin\miktex-2.8\tex\latex\00miktex\graphics.cfg)
> (C:\bin\miktex-2.8\tex\latex\pdftex-def\pdftex.def)))
> (C:\bin\miktex-2.8\tex\latex\tools\longtable.sty)
> (C:\bin\miktex-2.8\tex\latex\float\float.sty)
> (C:\bin\miktex-2.8\tex\latex\wrapfig\wrapfig.sty)
> (C:\bin\miktex-2.8\tex\latex\soul\soul.sty)
> (C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
> (C:\bin\miktex-2.8\tex\latex\base\t1enc.def))
> (C:\bin\miktex-2.8\tex\latex\base\textcomp.sty
> (C:\bin\miktex-2.8\tex\latex\base\ts1enc.def))
> (C:\bin\miktex-2.8\tex\latex\marvosym\marvosym.sty)
> (C:\bin\miktex-2.8\tex\latex\wasysym\wasysym.sty)
> (C:\bin\miktex-2.8\tex\latex\base\latexsym.sty)
> (C:\bin\miktex-2.8\tex\latex\hyperref\hyperref.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\ltxcmds.sty)
> (C:\bin\miktex-2.8\tex\generic\oberdiek\kvsetkeys.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\infwarerr.sty)
> (C:\bin\miktex-2.8\tex\generic\oberdiek\etexcmds.sty))
> (C:\bin\miktex-2.8\tex\generic\oberdiek\pdfescape.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\pdftexcmds.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\ifluatex.sty)))
> (C:\bin\miktex-2.8\tex\generic\oberdiek\ifvtex.sty)
> (C:\bin\miktex-2.8\tex\latex\ifxetex\ifxetex.sty)
> (C:\bin\miktex-2.8\tex\latex\oberdiek\hycolor.sty
> (C:\bin\miktex-2.8\tex\latex\oberdiek\xcolor-patch.sty))
> (C:\bin\miktex-2.8\tex\latex\oberdiek\letltxmacro.sty)
> (C:\bin\miktex-2.8\tex\latex\hyperref\pd1enc.def)
> (C:\bin\miktex-2.8\tex\generic\oberdiek\intcalc.sty)
> (C:\bin\miktex-2.8\tex\latex\00miktex\hyperref.cfg)
> (C:\bin\miktex-2.8\tex\latex\oberdiek\kvoptions.sty)
> Implicit mode ON; LaTeX internals redefined
> (C:\bin\miktex-2.8\tex\latex\ltxmisc\url.sty)
> (C:\bin\miktex-2.8\tex\generic\oberdiek\bitset.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\bigintcalc.sty))
> (C:\bin\miktex-2.8\tex\generic\oberdiek\atbegshi.sty))
> * hyperref using default driver hpdftex *
> (C:\bin\miktex-2.8\tex\latex\hyperref\hpdftex.def
> (C:\bin\miktex-2.8\tex\latex\oberdiek\atveryend.sty)
> (C:\bin\miktex-2.8\tex\latex\oberdiek\rerunfilecheck.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\uniquecounter.sty)))
> (C:\bin\miktex-2.8\tex\latex\paralist\paralist.sty)
> (C:\bin\miktex-2.8\tex\latex\microtype\microtype.sty
> (C:\bin\miktex-2.8\tex\latex\microtype\microtype.cfg))
> (C:\bin\miktex-2.8\tex\latex\listings\listings.sty
> (C:\bin\miktex-2.8\tex\latex\listings\lstmisc.sty)
> (C:\bin\miktex-2.8\tex\latex\listings\listings.cfg))
> (C:\bin\miktex-2.8\tex\latex\graphics\color.sty
> (C:\bin\miktex-2.8\tex\latex\00miktex\color.cfg))
> (C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
> (C:\bin\miktex-2.8\tex\latex\base\t1enc.def))
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mathdesign.sty
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\mdput.cfg)
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\mdput.sty
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdfont.def)
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdsffont.def)
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdttfont.def)
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\t1mdput.fd))
> (C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
> (C:\bin\miktex-2.8\tex\latex\base\t1enc.def)))
> (C:\bin\miktex-2.8\tex\latex\bera\berasans.sty)
> (C:\bin\miktex-2.8\tex\latex\inconsolata\inconsolata.sty))
>
> ! LaTeX Error: File `nil.sty' not found.
>
> Type X to quit or <RETURN> to proceed,
> or enter new name. (Default extension: sty)
>
> Enter file name:
> ! Emergency stop.
> <read *>
>
> l.6 \providecommand
> {\alert}[1]{\textbf{#1}}
>
> ! ==> Fatal error occurred, no output PDF file produced!
> Transcript written on article-class.log.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: A LaTeX class for Org-mode export
2010-11-26 4:32 A LaTeX class for Org-mode export Mike McLean
@ 2010-11-26 6:58 ` Thomas S. Dye
0 siblings, 0 replies; 7+ messages in thread
From: Thomas S. Dye @ 2010-11-26 6:58 UTC (permalink / raw)
To: mike.mclean; +Cc: emacs-orgmode, sp_us
Aloha Mike,
Inconsolata is a pretty monospace font, but it appears it isn't widely
distributed yet. Another drawback is that it doesn't have a bold face
or an italics face. Many syntax highlighting schemes use these faces
to distinguish comments, reserved words, etc., so Inconsolata is
probably not a good choice for org-article. I'll replace it in the
future, but until then a font set like Times that uses Courier as its
monospace font is probably a better way to go.
Tom
On Nov 25, 2010, at 6:32 PM, Mike McLean wrote:
> FWIW, I got past the same error by NOT including the line to add to
> latex-packages-alist in my .emacs.
>
> ;; (add-to-list 'org-export-latex-packages-alist '(("AUTO"
> "inputenc" t)))
>
> My configuration is completely different that Srinivs, too: MacOSX -
> Emacs 24.0.50.2 from source - Org mode from git (pre-release) to
> 25-November (88bd7bb).
>
>
>
>
>> Tom,
>>
>> I tried to run and produce PDF using Miktex 2.8 on Windows (Emacs
>> 23.1). I get
>> an error:
>>
>> (C:\bin\miktex-2.8\tex\latex\inconsolata\inconsolata.sty))
>>
>> ! LaTeX Error: File `nil.sty' not found.
>>
>> and the PDF is not produced. I am a newbie at trying LaTeX so don't
>> know quite
>> where to begin solving the problem. Any help is much appreciated.
>>
>> Any tips to solve this problem?
>>
>> - Srinivas
>>
>> PS. Attached is the log:
>>
>> This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
>> entering extended mode
>>
>> ("c:/Documents and Settings/srinivas/my documents/org-files/src/
>> article-
>> class.te
>> x"
>> LaTeX2e <2009/09/24>
>> Babel <v3.8l> and hyphenation patterns for english, dumylang,
>> nohyphenation, ge
>> rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french,
>> loaded.
>> ("c:\Documents and Settings\srinivas\my documents\org-files\src\org-
>> article.cls"
>> Document Class: org-article 2010/09/19 0.2 (TSD)
>> (C:\bin\miktex-2.8\tex\latex\base\ifthen.sty)
>> (C:\bin\miktex-2.8\tex\latex\tools\calc.sty)
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\ifpdf.sty)
>> (C:\bin\miktex-2.8\tex\latex\koma-script\scrartcl.cls
>> Document Class: scrartcl 2010/06/17 v3.06 KOMA-Script document class
>> (article)
>> (C:\bin\miktex-2.8\tex\latex\koma-script\scrkbase.sty
>> (C:\bin\miktex-2.8\tex\latex\koma-script\scrbase.sty
>> (C:\bin\miktex-2.8\tex\latex\graphics\keyval.sty)
>> (C:\bin\miktex-2.8\tex\latex\koma-script\scrlfile.sty
>> Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading
>> files)
>> Copyright (C) Markus Kohm
>>
>> ))) (C:\bin\miktex-2.8\tex\latex\koma-script\tocbasic.sty)
>> (C:\bin\miktex-2.8\tex\latex\koma-script\scrsize11pt.clo)
>> (C:\bin\miktex-2.8\tex\latex\koma-script\typearea.sty
>> Package typearea, 2010/06/17 v3.06 KOMA-Script package (type area)
>> Copyright (C) Frank Neukam, 1992-1994
>> Copyright (C) Markus Kohm, 1994-
>>
>>
>> Package typearea Warning: Maybe no optimal type area settings!
>> (typearea) The maximum limit of line width is about
>> 17%
>> (typearea) larger than the heuristically detected line
>> width.
>> (typearea) You may e.g. increase DIV, decrease
>> fontsize
>> (typearea) or change the papersize.
>>
>> )) (C:\bin\miktex-2.8\tex\latex\base\fixltx2e.sty)
>> (C:\bin\miktex-2.8\tex\latex\graphics\graphicx.sty
>> (C:\bin\miktex-2.8\tex\latex\graphics\graphics.sty
>> (C:\bin\miktex-2.8\tex\latex\graphics\trig.sty)
>> (C:\bin\miktex-2.8\tex\latex\00miktex\graphics.cfg)
>> (C:\bin\miktex-2.8\tex\latex\pdftex-def\pdftex.def)))
>> (C:\bin\miktex-2.8\tex\latex\tools\longtable.sty)
>> (C:\bin\miktex-2.8\tex\latex\float\float.sty)
>> (C:\bin\miktex-2.8\tex\latex\wrapfig\wrapfig.sty)
>> (C:\bin\miktex-2.8\tex\latex\soul\soul.sty)
>> (C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
>> (C:\bin\miktex-2.8\tex\latex\base\t1enc.def))
>> (C:\bin\miktex-2.8\tex\latex\base\textcomp.sty
>> (C:\bin\miktex-2.8\tex\latex\base\ts1enc.def))
>> (C:\bin\miktex-2.8\tex\latex\marvosym\marvosym.sty)
>> (C:\bin\miktex-2.8\tex\latex\wasysym\wasysym.sty)
>> (C:\bin\miktex-2.8\tex\latex\base\latexsym.sty)
>> (C:\bin\miktex-2.8\tex\latex\hyperref\hyperref.sty
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\ltxcmds.sty)
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\kvsetkeys.sty
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\infwarerr.sty)
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\etexcmds.sty))
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\pdfescape.sty
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\pdftexcmds.sty
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\ifluatex.sty)))
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\ifvtex.sty)
>> (C:\bin\miktex-2.8\tex\latex\ifxetex\ifxetex.sty)
>> (C:\bin\miktex-2.8\tex\latex\oberdiek\hycolor.sty
>> (C:\bin\miktex-2.8\tex\latex\oberdiek\xcolor-patch.sty))
>> (C:\bin\miktex-2.8\tex\latex\oberdiek\letltxmacro.sty)
>> (C:\bin\miktex-2.8\tex\latex\hyperref\pd1enc.def)
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\intcalc.sty)
>> (C:\bin\miktex-2.8\tex\latex\00miktex\hyperref.cfg)
>> (C:\bin\miktex-2.8\tex\latex\oberdiek\kvoptions.sty)
>> Implicit mode ON; LaTeX internals redefined
>> (C:\bin\miktex-2.8\tex\latex\ltxmisc\url.sty)
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\bitset.sty
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\bigintcalc.sty))
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\atbegshi.sty))
>> * hyperref using default driver hpdftex *
>> (C:\bin\miktex-2.8\tex\latex\hyperref\hpdftex.def
>> (C:\bin\miktex-2.8\tex\latex\oberdiek\atveryend.sty)
>> (C:\bin\miktex-2.8\tex\latex\oberdiek\rerunfilecheck.sty
>> (C:\bin\miktex-2.8\tex\generic\oberdiek\uniquecounter.sty)))
>> (C:\bin\miktex-2.8\tex\latex\paralist\paralist.sty)
>> (C:\bin\miktex-2.8\tex\latex\microtype\microtype.sty
>> (C:\bin\miktex-2.8\tex\latex\microtype\microtype.cfg))
>> (C:\bin\miktex-2.8\tex\latex\listings\listings.sty
>> (C:\bin\miktex-2.8\tex\latex\listings\lstmisc.sty)
>> (C:\bin\miktex-2.8\tex\latex\listings\listings.cfg))
>> (C:\bin\miktex-2.8\tex\latex\graphics\color.sty
>> (C:\bin\miktex-2.8\tex\latex\00miktex\color.cfg))
>> (C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
>> (C:\bin\miktex-2.8\tex\latex\base\t1enc.def))
>> (C:\bin\miktex-2.8\tex\latex\mathdesign\mathdesign.sty
>> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\mdput.cfg)
>> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\mdput.sty
>> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdfont.def)
>> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdsffont.def)
>> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdttfont.def)
>> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\t1mdput.fd))
>> (C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
>> (C:\bin\miktex-2.8\tex\latex\base\t1enc.def)))
>> (C:\bin\miktex-2.8\tex\latex\bera\berasans.sty)
>> (C:\bin\miktex-2.8\tex\latex\inconsolata\inconsolata.sty))
>>
>> ! LaTeX Error: File `nil.sty' not found.
>>
>> Type X to quit or <RETURN> to proceed,
>> or enter new name. (Default extension: sty)
>>
>> Enter file name:
>> ! Emergency stop.
>> <read *>
>>
>> l.6 \providecommand
>> {\alert}[1]{\textbf{#1}}
>>
>> ! ==> Fatal error occurred, no output PDF file produced!
>> Transcript written on article-class.log.
>
>
> _______________________________________________
> 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] 7+ messages in thread
* Re: Re: A LaTeX class for Org-mode export
@ 2010-09-22 23:26 Srinivas Pavani
2010-09-23 14:52 ` Thomas S. Dye
0 siblings, 1 reply; 7+ messages in thread
From: Srinivas Pavani @ 2010-09-22 23:26 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]
Tom,
For some reason, the color background for listings is not showing up.
Attached are the output pdf and the org-article.cls.
I modified the headings in your article-class.org as follows:
#+LaTeX_CLASS: org-article-subsubsection
#+LaTeX_CLASS_OPTIONS: [koma,letterpaper,utopia,10pt,listings-sv,microtype,paralist]
#+LATEX_HEADER: \usepackage[AUTO]{inputenc}
I have also modified the org-article.cls to give me helvet as the sans-serif font for utopia setting.
Also, the value of org-latex-to-pdf-process is given below:
Its value is
("pdflatex -interaction nonstopmode %s" "pdflatex -interaction nonstopmode %s")
- Srinivas
--- On Wed, 9/22/10, Thomas S. Dye <tsd@tsdye.com> wrote:
> From: Thomas S. Dye <tsd@tsdye.com>
> Subject: Re: [Orgmode] Re: A LaTeX class for Org-mode export
> To: "Srinivas Pavani" <sp_us@yahoo.com>
> Cc: emacs-orgmode@gnu.org
> Date: Wednesday, September 22, 2010, 12:31 AM
> Aloha Srinivas,
>
> Good news.
>
> I'm not sure what you mean by "close," though. In the
> LaTeX world, a
> document is supposed produce the same output regardless of
> the
> platform or the output device. "Close" is typically
> not good enough.
>
> Feel free to ask questions when they arise.
>
> All the best,
> Tom
>
> On Sep 21, 2010, at 6:44 PM, Srinivas Pavani wrote:
>
> > Tom,
> >
> > Thanks for your quick reply.
> >
> > Looks like something went wrong so I reinstalled
> MikTex 2.8 and
> > tried again. I started off with simple PDFs and slowly
> built up.
> >
> > I am finally able to get a pdf version that is close
> to yours.
> >
> > - Srinivas
> >
> >
> >
> >
>
>
[-- Attachment #2: article-class.pdf --]
[-- Type: application/pdf, Size: 140375 bytes --]
[-- Attachment #3: org-article.cls --]
[-- Type: application/octet-stream, Size: 16172 bytes --]
% Identification part
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{org-article}[2010/09/19 0.2 (TSD)]
% End of the identification part
%
% Initial code part
\RequirePackage{ifthen}
\RequirePackage{calc}
\RequirePackage{ifpdf}
% End of initial code part
% Declaration of options part
% Org-mode default packages
\newboolean{nofontenc}
\DeclareOption{nofontenc}{\setboolean{nofontenc}{true}}
\newboolean{nofixltx2e}
\DeclareOption{nofixltx2e}{\setboolean{nofixltx2e}{true}}
\newboolean{nographicx}
\DeclareOption{nographicx}{\setboolean{nographicx}{true}}
\newboolean{nolongtable}
\DeclareOption{nolongtable}{\setboolean{nolongtable}{true}}
\newboolean{nofloat}
\DeclareOption{nofloat}{\setboolean{nofloat}{true}}
\newboolean{nowrapfig}
\DeclareOption{nowrapfig}{\setboolean{nowrapfig}{true}}
\newboolean{nosoul}
\DeclareOption{nosoul}{\setboolean{nosoul}{true}}
\newboolean{notextcomp}
\DeclareOption{notextcomp}{\setboolean{notextcomp}{true}}
\newboolean{nomarvosym}
\DeclareOption{nomarvosym}{\setboolean{nomarvosym}{true}}
\newboolean{nowasysym}
\DeclareOption{nowasysym}{\setboolean{nowasysym}{true}}
\newboolean{integrals}
\DeclareOption{integrals}{\setboolean{integrals}{true}}
\newboolean{nointegrals}
\DeclareOption{nointegrals}{\setboolean{nointegrals}{true}}
\newboolean{nolatexsym}
\DeclareOption{nolatexsym}{\setboolean{nolatexsym}{true}}
\newboolean{noamssymb}
\DeclareOption{noamssymb}{\setboolean{noamssymb}{true}}
\newboolean{nohyperref}
\DeclareOption{nohyperref}{\setboolean{nohyperref}{true}}
% Font options
\newboolean{times}
\DeclareOption{times}{\setboolean{times}{true}}
\newboolean{garamond}
\DeclareOption{garamond}{\setboolean{garamond}{true}}
\newboolean{palatino}
\DeclareOption{palatino}{\setboolean{palatino}{true}}
\newboolean{utopia}
\DeclareOption{utopia}{\setboolean{utopia}{true}}
\newboolean{charter}
\DeclareOption{charter}{\setboolean{charter}{true}}
% Base class option
\newboolean{koma}
\DeclareOption{koma}{\setboolean{koma}{true}}
\newboolean{article}
\DeclareOption{article}{\setboolean{article}{true}}
% Other package options
\newboolean{microtype}
\DeclareOption{microtype}{\setboolean{microtype}{true}}
\newboolean{paralist}
\DeclareOption{paralist}{\setboolean{paralist}{true}}
\newboolean{setspace}
\newboolean{doublespace}
\DeclareOption{setspace}{\setboolean{setspace}{true}}
\DeclareOption{doublespace}{\setboolean{doublespace}{true}}
% \newboolean{topcapt}
% \DeclareOption{topcapt}{\setboolean{topcapt}{true}}
\newboolean{listings}
\newboolean{color}
\DeclareOption{listings}{\setboolean{listings}{true}}
\DeclareOption{listings-bw}{%
\setboolean{listings}{true}%
\AtBeginDocument{%
\lstset{
basicstyle=\ttfamily\footnotesize,%
frame=lines,%
breaklines=true,%
showstringspaces=false}%
}%
}
\DeclareOption{listings-color}{%
\setboolean{listings}{true}%
\setboolean{color}{true}%
\AtBeginDocument{%
\definecolor{keywords}{RGB}{255,0,90}%
\definecolor{comments}{RGB}{60,179,113}%
\definecolor{back}{RGB}{231,231,231}%
\lstset{%
keywordstyle=\color{keywords},%
commentstyle=\color{comments},%
backgroundcolor=\color{back},%
basicstyle=\ttfamily\footnotesize,%
showstringspaces=false,%
frame=lines,%
breaklines=true%
}%
}%
}
\DeclareOption{listings-sv}{%
\setboolean{listings}{true}%
\setboolean{color}{true}%
\AtBeginDocument{%
\definecolor{...@lstbackground}{RGB}{255,255,204} % light yellow
\definecolor{...@lstkeyword}{RGB}{0,0,255} % blue
\definecolor{...@lstidentifier}{RGB}{0,0,0} % black
\definecolor{...@lstcomment}{RGB}{255,0,0} % red
\definecolor{...@lststring}{RGB}{0,128,0} % dark green
\lstset{%
basicstyle=\ttfamily\scriptsize, % the font that is used for the code
tabsize=4, % sets default tabsize to 4 spaces
numbers=left, % where to put the line numbers
numberstyle=\tiny, % line number font size
stepnumber=0, % step between two line numbers
breaklines=true, %!! do break long lines of code
showtabs=false, % show tabs within strings adding particular underscores
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings
keywordstyle=\color{...@lstkeyword},
identifierstyle=\color{...@lstidentifier},
stringstyle=\color{...@lststring},
commentstyle=\color{...@lstcomment},
backgroundcolor=\color{...@lstbackground}, % sets the background color
captionpos=b, % sets the caption position to `bottom'
extendedchars=false %!?? workaround for when the listed file is in UTF-8
}%
}%
}
% \newboolean{color}
% \DeclareOption{color}{\setboolean{color}{true}}
% Base class
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
% Pass options to packages
\DeclareOption{anchorcolor}{%
\PassOptionsToPackage{anchorcolor}{hyperref}}
\DeclareOption{backref}{%
\PassOptionsToPackage{backref}{hyperref}}
\DeclareOption{baseurl}{%
\PassOptionsToPackage{baseurl}{hyperref}}
\DeclareOption{bookmarks}{%
\PassOptionsToPackage{bookmarks}{hyperref}}
\DeclareOption{bookmarksnumbered}{%
\PassOptionsToPackage{bookmarksnumbered}{hyperref}}
\DeclareOption{bookmarksopen}{%
\PassOptionsToPackage{bookmarksopen}{hyperref}}
\DeclareOption{bookmarksopenlevel}{%
\PassOptionsToPackage{bookmarksopenlevel}{hyperref}}
\DeclareOption{bookmarkstype}{%
\PassOptionsToPackage{bookmarkstype}{hyperref}}
\DeclareOption{breaklinks}{%
\PassOptionsToPackage{breaklinks}{hyperref}}
\DeclareOption{CJKbookmarks}{%
\PassOptionsToPackage{CJKbookmarks}{hyperref}}
\DeclareOption{citebordercolor}{%
\PassOptionsToPackage{citebordercolor}{hyperref}}
\DeclareOption{citecolor}{%
\PassOptionsToPackage{citecolor}{hyperref}}
\DeclareOption{colorlinks}{%
\PassOptionsToPackage{colorlinks}{hyperref}}
\DeclareOption{draft}{%
\PassOptionsToPackage{draft}{hyperref}}
\DeclareOption{dvipdfm}{%
\PassOptionsToPackage{dvipdfm}{hyperref}}
\DeclareOption{dvipdfmx}{%
\PassOptionsToPackage{dvipdfmx}{hyperref}}
\DeclareOption{dvips}{%
\PassOptionsToPackage{dvips}{hyperref}}
\DeclareOption{dvipsone}{%
\PassOptionsToPackage{dvipsone}{hyperref}}
\DeclareOption{dviwindo}{%
\PassOptionsToPackage{dviwindo}{hyperref}}
\DeclareOption{encap}{%
\PassOptionsToPackage{encap}{hyperref}}
\DeclareOption{extension}{%
\PassOptionsToPackage{extension}{hyperref}}
\DeclareOption{filebordercolor}{%
\PassOptionsToPackage{filebordercolor}{hyperref}}
\DeclareOption{filecolor}{%
\PassOptionsToPackage{filecolor}{hyperref}}
\DeclareOption{final}{%
\PassOptionsToPackage{final}{hyperref}}
\DeclareOption{frenchlinks}{%
\PassOptionsToPackage{frenchlinks}{hyperref}}
\DeclareOption{hyperfigures}{%
\PassOptionsToPackage{hyperfigures}{hyperref}}
\DeclareOption{hyperfootnotes}{%
\PassOptionsToPackage{hyperfootnotes}{hyperref}}
\DeclareOption{hyperindex}{%
\PassOptionsToPackage{hyperindex}{hyperref}}
\DeclareOption{hypertex}{%
\PassOptionsToPackage{hypertex}{hyperref}}
\DeclareOption{hypertexnames}{%
\PassOptionsToPackage{hypertexnames}{hyperref}}
\DeclareOption{implicit}{%
\PassOptionsToPackage{implicit}{hyperref}}
\DeclareOption{latex2html}{%
\PassOptionsToPackage{latex2html}{hyperref}}
\DeclareOption{legalpaper}{%
\PassOptionsToPackage{legalpaper}{hyperref}}
\DeclareOption{letterpaper}{%
\PassOptionsToPackage{letterpaper}{hyperref}}
\DeclareOption{linkbordercolor}{%
\PassOptionsToPackage{linkbordercolor}{hyperref}}
\DeclareOption{linkcolor}{%
\PassOptionsToPackage{linkcolor}{hyperref}}
\DeclareOption{linktocpage}{%
\PassOptionsToPackage{linktocpage}{hyperref}}
\DeclareOption{menubordercolor}{%
\PassOptionsToPackage{menubordercolor}{hyperref}}
\DeclareOption{menucolor}{%
\PassOptionsToPackage{menucolor}{hyperref}}
\DeclareOption{nativepdf}{%
\PassOptionsToPackage{nativepdf}{hyperref}}
\DeclareOption{naturalnames}{%
\PassOptionsToPackage{naturalnames}{hyperref}}
\DeclareOption{nesting}{%
\PassOptionsToPackage{nesting}{hyperref}}
\DeclareOption{pageanchor}{%
\PassOptionsToPackage{pageanchor}{hyperref}}
\DeclareOption{pagebackref}{%
\PassOptionsToPackage{pagebackref}{hyperref}}
\DeclareOption{pdfauthor}{%
\PassOptionsToPackage{pdfauthor}{hyperref}}
\DeclareOption{pdfborder}{%
\PassOptionsToPackage{pdfborder}{hyperref}}
\DeclareOption{pdfcenterwindow}{%
\PassOptionsToPackage{pdfcenterwindow}{hyperref}}
\DeclareOption{pdfcreator}{%
\PassOptionsToPackage{pdfcreator}{hyperref}}
\DeclareOption{pdfdirection}{%
\PassOptionsToPackage{pdfdirection}{hyperref}}
\DeclareOption{pdfdisplaydoctitle}{%
\PassOptionsToPackage{pdfdisplaydoctitle}{hyperref}}
\DeclareOption{pdfduplex}{%
\PassOptionsToPackage{pdfduplex}{hyperref}}
\DeclareOption{pdffitwindow}{%
\PassOptionsToPackage{pdffitwindow}{hyperref}}
\DeclareOption{pdfhighlight}{%
\PassOptionsToPackage{pdfhighlight}{hyperref}}
\DeclareOption{pdfinfo}{%
\PassOptionsToPackage{pdfinfo}{hyperref}}
\DeclareOption{pdfkeywords}{%
\PassOptionsToPackage{pdfkeywords}{hyperref}}
\DeclareOption{pdflang}{%
\PassOptionsToPackage{pdflang}{hyperref}}
\DeclareOption{pdfmark}{%
\PassOptionsToPackage{pdfmark}{hyperref}}
\DeclareOption{pdfmenubar}{%
\PassOptionsToPackage{pdfmenubar}{hyperref}}
\DeclareOption{pdfnewwindow}{%
\PassOptionsToPackage{pdfnewwindow}{hyperref}}
\DeclareOption{pdfnonfullscreenpagemode}{%
\PassOptionsToPackage{pdfnonfullscreenpagemode}{hyperref}}
\DeclareOption{pdfnumcopies}{%
\PassOptionsToPackage{pdfnumcopies}{hyperref}}
\DeclareOption{pdfpagelayout}{%
\PassOptionsToPackage{pdfpagelayout}{hyperref}}
\DeclareOption{pdfpagemode}{%
\PassOptionsToPackage{pdfpagemode}{hyperref}}
\DeclareOption{pdfpagelabels}{%
\PassOptionsToPackage{pdfpagelabels}{hyperref}}
\DeclareOption{pdfpagescrop}{%
\PassOptionsToPackage{pdfpagescrop}{hyperref}}
\DeclareOption{pdfpagetransition}{%
\PassOptionsToPackage{pdfpagetransition}{hyperref}}
\DeclareOption{pdfpicktraybypdfsize}{%
\PassOptionsToPackage{pdfpicktraybypdfsize}{hyperref}}
\DeclareOption{pdfprintarea}{%
\PassOptionsToPackage{pdfprintarea}{hyperref}}
\DeclareOption{pdfprintclip}{%
\PassOptionsToPackage{pdfprintclip}{hyperref}}
\DeclareOption{pdfprintpagerange}{%
\PassOptionsToPackage{pdfprintpagerange}{hyperref}}
\DeclareOption{pdfprintscaling}{%
\PassOptionsToPackage{pdfprintscaling}{hyperref}}
\DeclareOption{pdfproducer}{%
\PassOptionsToPackage{pdfproducer}{hyperref}}
\DeclareOption{pdfstartpage}{%
\PassOptionsToPackage{pdfstartview}{hyperref}}
\DeclareOption{pdfsubject}{%
\PassOptionsToPackage{pdfsubject}{hyperref}}
\DeclareOption{pdftex}{%
\PassOptionsToPackage{pdftex}{hyperref}}
\DeclareOption{pdftitle}{%
\PassOptionsToPackage{pdftitle}{hyperref}}
\DeclareOption{pdftoolbar}{%
\PassOptionsToPackage{pdftoolbar}{hyperref}}
\DeclareOption{pdftrapped}{%
\PassOptionsToPackage{pdftrapped}{hyperref}}
\DeclareOption{pdfview}{%
\PassOptionsToPackage{pdfview}{hyperref}}
\DeclareOption{pdfviewarea}{%
\PassOptionsToPackage{pdfviewarea}{hyperref}}
\DeclareOption{pdfviewclip}{%
\PassOptionsToPackage{pdfviewclip}{hyperref}}
\DeclareOption{pdfwindowui}{%
\PassOptionsToPackage{pdfwindowui}{hyperref}}
\DeclareOption{plainpages}{%
\PassOptionsToPackage{plainpages}{hyperref}}
\DeclareOption{ps2pdf}{%
\PassOptionsToPackage{ps2pdf}{hyperref}}
\DeclareOption{raiselinks}{%
\PassOptionsToPackage{raiselinks}{hyperref}}
\DeclareOption{runbordercolor}{%
\PassOptionsToPackage{runbordercolor}{hyperref}}
\DeclareOption{runcolor}{%
\PassOptionsToPackage{runcolor}{hyperref}}
\DeclareOption{setpagesize}{%
\PassOptionsToPackage{setpagesize}{hyperref}}
\DeclareOption{tex4ht}{%
\PassOptionsToPackage{tex4ht}{hyperref}}
\DeclareOption{textures}{%
\PassOptionsToPackage{textures}{hyperref}}
\DeclareOption{unicode}{%
\PassOptionsToPackage{unicode}{hyperref}}
\DeclareOption{urlbordercolor}{%
\PassOptionsToPackage{urlbordercolor}{hyperref}}
\DeclareOption{urlcolor}{%
\PassOptionsToPackage{urlcolor}{hyperref}}
\DeclareOption{verbose}{%
\PassOptionsToPackage{verbose}{hyperref}}
\DeclareOption{vtex}{%
\PassOptionsToPackage{vtex}{hyperref}}
\DeclareOption{xetex}{%
\PassOptionsToPackage{xetex}{hyperref}}
% End of declaration of options part
% Execution of options part
\ProcessOptions\relax
% End of execution of options part
% Package loading part
% Base class
\ifthenelse{\boolean{koma}}
{%
\LoadClass{scrartcl}%
}%
{%
\LoadClass{article}%
}
% Org-mode default
\ifthenelse{\boolean{nofixltx2e}}
{}
{\RequirePackage{fixltx2e}}
\ifthenelse{\boolean{nographicx}}
{}
{\RequirePackage{graphicx}}
\ifthenelse{\boolean{nolongtable}}
{}
{\RequirePackage{longtable}}
\ifthenelse{\boolean{nofloat}}
{}
{\RequirePackage{float}}
\ifthenelse{\boolean{nowrapfig}}
{}
{\RequirePackage{wrapfig}}
\ifthenelse{\boolean{nosoul}}
{}
{\RequirePackage{soul}}
\ifthenelse{\boolean{nofontenc}}
{}
{\RequirePackage[T1]{fontenc}} % with T1 option for symbol packages
\ifthenelse{\boolean{notextcomp}}
{}
{\RequirePackage{textcomp}}
\ifthenelse{\boolean{nomarvosym}}
{}
{\RequirePackage{marvosym}}
\ifthenelse{\boolean{nowasysym}}
{}
{%
\ifthenelse{\boolean{integrals}}%
{\RequirePackage[integrals]{wasysym}}%
{\RequirePackage[nointegrals]{wasysym}}%
}
\ifthenelse{\boolean{nolatexsym}}
{}
{\RequirePackage{latexsym}}
\ifthenelse{\boolean{noamssymb}\or\boolean{utopia}\or\boolean{charter}\or\boolean{garamond}\or\boolean{times}}
{}
{\RequirePackage{amssymb}}
\ifthenelse{\boolean{nohyperref}}
{}
{\RequirePackage{hyperref}}
% Other packages
% Set the standard LaTeX list environments to their compact counterparts
\ifthenelse{\boolean{paralist}}
{%
\RequirePackage{paralist}
\let\itemize\compactitem%
\let\description\compactdesc%
\let\enumerate\compactenum%
}
{}
\ifthenelse{\boolean{microtype}}
{%
\ifpdf
\RequirePackage{microtype}
\fi}%
{}
\ifthenelse{\boolean{setspace}}
{\RequirePackage{setspace}}
{}
% \ifthenelse{\boolean{topcapt}}
% {\RequirePackage{topcapt}}
% {}
\ifthenelse{\boolean{listings}}
{\RequirePackage{listings}}
{}
\ifthenelse{\boolean{color}}
{\RequirePackage{color}}
{}
% Font packages
\ifthenelse{\boolean{times}}
{%
\ifpdf
\RequirePackage[T1]{fontenc}
\RequirePackage{mathptmx}
\RequirePackage[scaled=.90]{helvet}
\RequirePackage{inconsolata}
\fi}%
{}
\ifthenelse{\boolean{garamond}}
{%
\ifpdf
\RequirePackage[T1]{fontenc}
\RequirePackage[urw-garamond]{mathdesign}
\RequirePackage[scaled]{berasans}
\RequirePackage{inconsolata} % tt
\linespread{1.0609}
\fi}%
{}
\ifthenelse{\boolean{palatino}}
{%
\ifpdf
\RequirePackage[T1]{fontenc}
\RequirePackage{mathpazo}%
\linespread{1.05}%
\RequirePackage[scaled]{helvet}%
\RequirePackage{courier} % tt
\fi}%
{}
\ifthenelse{\boolean{charter}}
{%
\ifpdf
\RequirePackage[T1]{fontenc}
\RequirePackage[bitstream-charter]{mathdesign}
\RequirePackage[scaled=.90]{helvet}
\RequirePackage{courier} % tt
\fi}%
{}
\ifthenelse{\boolean{utopia}}
{%
\ifpdf
\RequirePackage[T1]{fontenc}
\RequirePackage[adobe-utopia]{mathdesign}
\RequirePackage[scaled]{helvet}
\RequirePackage{inconsolata} % tt
\fi}%
{}
% End of package loading part
%
% Class code part
\ifthenelse{\boolean{setspace}}%
{\ifthenelse{\boolean{doublespace}}%
{\doublespacing}%
{\singlespacing}}%
{}%
\ifthenelse{\boolean{listings}}%
{\lstdefinelanguage{org}
{morecomment=[l]\#}%
}
{}%
% End of class code part
[-- Attachment #4: 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] 7+ messages in thread
* Re: Re: A LaTeX class for Org-mode export
2010-09-22 23:26 Srinivas Pavani
@ 2010-09-23 14:52 ` Thomas S. Dye
0 siblings, 0 replies; 7+ messages in thread
From: Thomas S. Dye @ 2010-09-23 14:52 UTC (permalink / raw)
To: Srinivas Pavani; +Cc: emacs-orgmode
Aloha Srinivas,
Your settings work fine here, though I haven't installed your modified
org-article.cls so can't say for certain whether or not your changes
to an older version of that file have introduced the problem.
It looks to me as if the listings package is not doing its work for
you. Not only is color missing from the source code listings (though
it is present elsewhere in the document), but the font size change to
\tiny is not working either. These are both things that the listings
package should handle. Is the listings package installed in your
LaTeX setup?
All the best,
Tom
On Sep 22, 2010, at 1:26 PM, Srinivas Pavani wrote:
> Tom,
>
> For some reason, the color background for listings is not showing up.
>
> Attached are the output pdf and the org-article.cls.
>
> I modified the headings in your article-class.org as follows:
>
> #+LaTeX_CLASS: org-article-subsubsection
> #+LaTeX_CLASS_OPTIONS: [koma,letterpaper,utopia,10pt,listings-
> sv,microtype,paralist]
> #+LATEX_HEADER: \usepackage[AUTO]{inputenc}
>
> I have also modified the org-article.cls to give me helvet as the
> sans-serif font for utopia setting.
>
> Also, the value of org-latex-to-pdf-process is given below:
> Its value is
> ("pdflatex -interaction nonstopmode %s" "pdflatex -interaction
> nonstopmode %s")
>
>
> - Srinivas
>
>
>
> --- On Wed, 9/22/10, Thomas S. Dye <tsd@tsdye.com> wrote:
>
>> From: Thomas S. Dye <tsd@tsdye.com>
>> Subject: Re: [Orgmode] Re: A LaTeX class for Org-mode export
>> To: "Srinivas Pavani" <sp_us@yahoo.com>
>> Cc: emacs-orgmode@gnu.org
>> Date: Wednesday, September 22, 2010, 12:31 AM
>> Aloha Srinivas,
>>
>> Good news.
>>
>> I'm not sure what you mean by "close," though. In the
>> LaTeX world, a
>> document is supposed produce the same output regardless of
>> the
>> platform or the output device. "Close" is typically
>> not good enough.
>>
>> Feel free to ask questions when they arise.
>>
>> All the best,
>> Tom
>>
>> On Sep 21, 2010, at 6:44 PM, Srinivas Pavani wrote:
>>
>>> Tom,
>>>
>>> Thanks for your quick reply.
>>>
>>> Looks like something went wrong so I reinstalled
>> MikTex 2.8 and
>>> tried again. I started off with simple PDFs and slowly
>> built up.
>>>
>>> I am finally able to get a pdf version that is close
>> to yours.
>>>
>>> - Srinivas
>>>
>>>
>>>
>>>
>>
>>
>
>
> <article-class.pdf><org-article.cls>
^ permalink raw reply [flat|nested] 7+ messages in thread
* A LaTeX class for Org-mode export
@ 2010-09-14 20:37 Thomas S. Dye
2010-09-14 21:36 ` Scot Becker
0 siblings, 1 reply; 7+ messages in thread
From: Thomas S. Dye @ 2010-09-14 20:37 UTC (permalink / raw)
To: emacs-orgmode Mailinglist
[-- Attachment #1.1: Type: text/plain, Size: 1723 bytes --]
Aloha all,
I'd like to draw your attention to a LaTeX class that I put together
in response to posts here about configuring the output of the LaTeX
exporter. The class supports all of the Org-mode LaTeX default
packages. It supports the standard LaTeX article class and the KOMA-
script scrartcl class and provides several choices of fonts. In
addition, it includes facilities to apply microtypographic
adjustments to suitable fonts, set the line spacing of the document to
double space, set lists more compactly than the standard LaTeX
article.cls, and typeset source code listings, optionally with color.
The documentation that should appear shortly in the Babel/Uses section
of Worg includes two examples that illustrate use of the class. The
first uses the standard LaTeX article class and Times, Helvetica, and
Courier fonts with a 12 point base size to typeset the literate
program on 8.5 x 11 in. paper, with colored source code listings and
microtypographic adjustments.
> #+LaTeX_CLASS: org-article-subsubsection
> #+LaTeX_CLASS_OPTIONS: [article,letterpaper,times,
> 12pt,listings,color,microtype]
The second uses the KOMA-script scrartcl class and Utopia, Bera, and
Inconsolata fonts with a 10 point base size to typeset the literate
program on 5.8 x 8.3 in. paper in landscape mode, also with colored
source code listings and microtypographic adjustments. In addition,
lists are set tighter than with the standard LaTeX article class.
> #+LaTeX_CLASS: org-article-subsubsection
> #+LaTeX_CLASS_OPTIONS: [koma,a5paper,landscape,utopia,
> 10pt,listings,color,microtype,paralist]
The project is hosted at GitHub:
http://github.com/tsdye/org-article
All the best,
Tom
[-- Attachment #1.2: Type: text/html, Size: 2594 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] 7+ messages in thread
* Re: A LaTeX class for Org-mode export
2010-09-14 20:37 Thomas S. Dye
@ 2010-09-14 21:36 ` Scot Becker
2010-09-14 23:28 ` Thomas S. Dye
0 siblings, 1 reply; 7+ messages in thread
From: Scot Becker @ 2010-09-14 21:36 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode Mailinglist
Well this is very cool. A whole new paradigm for org-LaTeX
integration. Well done. I was especially glad for the introduction
to the 'paralist' package.
Could it be that the line to clone the git repo should be this:
git clone git://github.com/tsdye/org-article.git
instead of what I find in the document:
git clone git@github.com:tsdye/org-article.git
(which didn't work for me)?
And I think 'org-export-packages-alist' should be
org-export-latex-packages-alist
in the section entitled: Org-Mode LaTeX Export Setup (1.4).
Also the code windows of the resulting PDFs dont' work that well for
pasting the the code blocks to the command line or into Emacs, but
don't know how to fix that. (Is 'microtype' meddling too much in the
code blocks?)
Anyway, many thanks for this. I look forward to experimenting in the
days to come.
Scot
(resent to the whole list, whoops!)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A LaTeX class for Org-mode export
2010-09-14 21:36 ` Scot Becker
@ 2010-09-14 23:28 ` Thomas S. Dye
2010-09-22 2:44 ` Srinivas
0 siblings, 1 reply; 7+ messages in thread
From: Thomas S. Dye @ 2010-09-14 23:28 UTC (permalink / raw)
To: Scot Becker; +Cc: emacs-orgmode Mailinglist
Aloha Scot,
Thanks for catching my errors. I've made the changes you indicated.
If microtype is messing with cut and paste, you can remove it from the
#+LaTeX_CLASS_OPTIONS: line and generate new pdf's (at least you can
after everything is straight in .emacs). Alternatively, you can cut
and paste from the Org file, or (if you're looking to cut and paste
from one of the sections full of noweb references) you can tangle the
file to create the class file and cut and paste from it.
All the best,
Tom
On Sep 14, 2010, at 11:36 AM, Scot Becker wrote:
> Well this is very cool. A whole new paradigm for org-LaTeX
> integration. Well done. I was especially glad for the introduction
> to the 'paralist' package.
>
> Could it be that the line to clone the git repo should be this:
>
> git clone git://github.com/tsdye/org-article.git
>
> instead of what I find in the document:
>
> git clone git@github.com:tsdye/org-article.git
>
> (which didn't work for me)?
>
>
> And I think 'org-export-packages-alist' should be
> org-export-latex-packages-alist
> in the section entitled: Org-Mode LaTeX Export Setup (1.4).
>
> Also the code windows of the resulting PDFs dont' work that well for
> pasting the the code blocks to the command line or into Emacs, but
> don't know how to fix that. (Is 'microtype' meddling too much in the
> code blocks?)
>
> Anyway, many thanks for this. I look forward to experimenting in the
> days to come.
>
> Scot
> (resent to the whole list, whoops!)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A LaTeX class for Org-mode export
2010-09-14 23:28 ` Thomas S. Dye
@ 2010-09-22 2:44 ` Srinivas
2010-09-22 3:35 ` Thomas S. Dye
0 siblings, 1 reply; 7+ messages in thread
From: Srinivas @ 2010-09-22 2:44 UTC (permalink / raw)
To: emacs-orgmode
Thomas S. Dye <tsd <at> tsdye.com> writes:
Tom,
I tried to run and produce PDF using Miktex 2.8 on Windows (Emacs 23.1). I get
an error:
(C:\bin\miktex-2.8\tex\latex\inconsolata\inconsolata.sty))
! LaTeX Error: File `nil.sty' not found.
and the PDF is not produced. I am a newbie at trying LaTeX so don't know quite
where to begin solving the problem. Any help is much appreciated.
Any tips to solve this problem?
- Srinivas
PS. Attached is the log:
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
entering extended mode
("c:/Documents and Settings/srinivas/my documents/org-files/src/article-
class.te
x"
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.
("c:\Documents and Settings\srinivas\my documents\org-files\src\org-
article.cls"
Document Class: org-article 2010/09/19 0.2 (TSD)
(C:\bin\miktex-2.8\tex\latex\base\ifthen.sty)
(C:\bin\miktex-2.8\tex\latex\tools\calc.sty)
(C:\bin\miktex-2.8\tex\generic\oberdiek\ifpdf.sty)
(C:\bin\miktex-2.8\tex\latex\koma-script\scrartcl.cls
Document Class: scrartcl 2010/06/17 v3.06 KOMA-Script document class (article)
(C:\bin\miktex-2.8\tex\latex\koma-script\scrkbase.sty
(C:\bin\miktex-2.8\tex\latex\koma-script\scrbase.sty
(C:\bin\miktex-2.8\tex\latex\graphics\keyval.sty)
(C:\bin\miktex-2.8\tex\latex\koma-script\scrlfile.sty
Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading files)
Copyright (C) Markus Kohm
))) (C:\bin\miktex-2.8\tex\latex\koma-script\tocbasic.sty)
(C:\bin\miktex-2.8\tex\latex\koma-script\scrsize11pt.clo)
(C:\bin\miktex-2.8\tex\latex\koma-script\typearea.sty
Package typearea, 2010/06/17 v3.06 KOMA-Script package (type area)
Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-
Package typearea Warning: Maybe no optimal type area settings!
(typearea) The maximum limit of line width is about 17%
(typearea) larger than the heuristically detected line width.
(typearea) You may e.g. increase DIV, decrease fontsize
(typearea) or change the papersize.
)) (C:\bin\miktex-2.8\tex\latex\base\fixltx2e.sty)
(C:\bin\miktex-2.8\tex\latex\graphics\graphicx.sty
(C:\bin\miktex-2.8\tex\latex\graphics\graphics.sty
(C:\bin\miktex-2.8\tex\latex\graphics\trig.sty)
(C:\bin\miktex-2.8\tex\latex\00miktex\graphics.cfg)
(C:\bin\miktex-2.8\tex\latex\pdftex-def\pdftex.def)))
(C:\bin\miktex-2.8\tex\latex\tools\longtable.sty)
(C:\bin\miktex-2.8\tex\latex\float\float.sty)
(C:\bin\miktex-2.8\tex\latex\wrapfig\wrapfig.sty)
(C:\bin\miktex-2.8\tex\latex\soul\soul.sty)
(C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
(C:\bin\miktex-2.8\tex\latex\base\t1enc.def))
(C:\bin\miktex-2.8\tex\latex\base\textcomp.sty
(C:\bin\miktex-2.8\tex\latex\base\ts1enc.def))
(C:\bin\miktex-2.8\tex\latex\marvosym\marvosym.sty)
(C:\bin\miktex-2.8\tex\latex\wasysym\wasysym.sty)
(C:\bin\miktex-2.8\tex\latex\base\latexsym.sty)
(C:\bin\miktex-2.8\tex\latex\hyperref\hyperref.sty
(C:\bin\miktex-2.8\tex\generic\oberdiek\ltxcmds.sty)
(C:\bin\miktex-2.8\tex\generic\oberdiek\kvsetkeys.sty
(C:\bin\miktex-2.8\tex\generic\oberdiek\infwarerr.sty)
(C:\bin\miktex-2.8\tex\generic\oberdiek\etexcmds.sty))
(C:\bin\miktex-2.8\tex\generic\oberdiek\pdfescape.sty
(C:\bin\miktex-2.8\tex\generic\oberdiek\pdftexcmds.sty
(C:\bin\miktex-2.8\tex\generic\oberdiek\ifluatex.sty)))
(C:\bin\miktex-2.8\tex\generic\oberdiek\ifvtex.sty)
(C:\bin\miktex-2.8\tex\latex\ifxetex\ifxetex.sty)
(C:\bin\miktex-2.8\tex\latex\oberdiek\hycolor.sty
(C:\bin\miktex-2.8\tex\latex\oberdiek\xcolor-patch.sty))
(C:\bin\miktex-2.8\tex\latex\oberdiek\letltxmacro.sty)
(C:\bin\miktex-2.8\tex\latex\hyperref\pd1enc.def)
(C:\bin\miktex-2.8\tex\generic\oberdiek\intcalc.sty)
(C:\bin\miktex-2.8\tex\latex\00miktex\hyperref.cfg)
(C:\bin\miktex-2.8\tex\latex\oberdiek\kvoptions.sty)
Implicit mode ON; LaTeX internals redefined
(C:\bin\miktex-2.8\tex\latex\ltxmisc\url.sty)
(C:\bin\miktex-2.8\tex\generic\oberdiek\bitset.sty
(C:\bin\miktex-2.8\tex\generic\oberdiek\bigintcalc.sty))
(C:\bin\miktex-2.8\tex\generic\oberdiek\atbegshi.sty))
* hyperref using default driver hpdftex *
(C:\bin\miktex-2.8\tex\latex\hyperref\hpdftex.def
(C:\bin\miktex-2.8\tex\latex\oberdiek\atveryend.sty)
(C:\bin\miktex-2.8\tex\latex\oberdiek\rerunfilecheck.sty
(C:\bin\miktex-2.8\tex\generic\oberdiek\uniquecounter.sty)))
(C:\bin\miktex-2.8\tex\latex\paralist\paralist.sty)
(C:\bin\miktex-2.8\tex\latex\microtype\microtype.sty
(C:\bin\miktex-2.8\tex\latex\microtype\microtype.cfg))
(C:\bin\miktex-2.8\tex\latex\listings\listings.sty
(C:\bin\miktex-2.8\tex\latex\listings\lstmisc.sty)
(C:\bin\miktex-2.8\tex\latex\listings\listings.cfg))
(C:\bin\miktex-2.8\tex\latex\graphics\color.sty
(C:\bin\miktex-2.8\tex\latex\00miktex\color.cfg))
(C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
(C:\bin\miktex-2.8\tex\latex\base\t1enc.def))
(C:\bin\miktex-2.8\tex\latex\mathdesign\mathdesign.sty
(C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\mdput.cfg)
(C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\mdput.sty
(C:\bin\miktex-2.8\tex\latex\mathdesign\mdfont.def)
(C:\bin\miktex-2.8\tex\latex\mathdesign\mdsffont.def)
(C:\bin\miktex-2.8\tex\latex\mathdesign\mdttfont.def)
(C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\t1mdput.fd))
(C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
(C:\bin\miktex-2.8\tex\latex\base\t1enc.def)))
(C:\bin\miktex-2.8\tex\latex\bera\berasans.sty)
(C:\bin\miktex-2.8\tex\latex\inconsolata\inconsolata.sty))
! LaTeX Error: File `nil.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
l.6 \providecommand
{\alert}[1]{\textbf{#1}}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on article-class.log.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: A LaTeX class for Org-mode export
2010-09-22 2:44 ` Srinivas
@ 2010-09-22 3:35 ` Thomas S. Dye
2010-09-22 4:44 ` Srinivas Pavani
0 siblings, 1 reply; 7+ messages in thread
From: Thomas S. Dye @ 2010-09-22 3:35 UTC (permalink / raw)
To: Srinivas; +Cc: emacs-orgmode
Srinivas,
I don't know what is causing that. I've never seen it before.
Are you able to compile successfully with the times option (which
doesn't use the inconsolata font?)
All the best,
Tom
On Sep 21, 2010, at 4:44 PM, Srinivas wrote:
> Thomas S. Dye <tsd <at> tsdye.com> writes:
>
> Tom,
>
> I tried to run and produce PDF using Miktex 2.8 on Windows (Emacs
> 23.1). I get
> an error:
>
> (C:\bin\miktex-2.8\tex\latex\inconsolata\inconsolata.sty))
>
> ! LaTeX Error: File `nil.sty' not found.
>
> and the PDF is not produced. I am a newbie at trying LaTeX so don't
> know quite
> where to begin solving the problem. Any help is much appreciated.
>
> Any tips to solve this problem?
>
> - Srinivas
>
> PS. Attached is the log:
>
> This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
> entering extended mode
>
> ("c:/Documents and Settings/srinivas/my documents/org-files/src/
> article-
> class.te
> x"
> LaTeX2e <2009/09/24>
> Babel <v3.8l> and hyphenation patterns for english, dumylang,
> nohyphenation, ge
> rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french,
> loaded.
> ("c:\Documents and Settings\srinivas\my documents\org-files\src\org-
> article.cls"
> Document Class: org-article 2010/09/19 0.2 (TSD)
> (C:\bin\miktex-2.8\tex\latex\base\ifthen.sty)
> (C:\bin\miktex-2.8\tex\latex\tools\calc.sty)
> (C:\bin\miktex-2.8\tex\generic\oberdiek\ifpdf.sty)
> (C:\bin\miktex-2.8\tex\latex\koma-script\scrartcl.cls
> Document Class: scrartcl 2010/06/17 v3.06 KOMA-Script document class
> (article)
> (C:\bin\miktex-2.8\tex\latex\koma-script\scrkbase.sty
> (C:\bin\miktex-2.8\tex\latex\koma-script\scrbase.sty
> (C:\bin\miktex-2.8\tex\latex\graphics\keyval.sty)
> (C:\bin\miktex-2.8\tex\latex\koma-script\scrlfile.sty
> Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading files)
> Copyright (C) Markus Kohm
>
> ))) (C:\bin\miktex-2.8\tex\latex\koma-script\tocbasic.sty)
> (C:\bin\miktex-2.8\tex\latex\koma-script\scrsize11pt.clo)
> (C:\bin\miktex-2.8\tex\latex\koma-script\typearea.sty
> Package typearea, 2010/06/17 v3.06 KOMA-Script package (type area)
> Copyright (C) Frank Neukam, 1992-1994
> Copyright (C) Markus Kohm, 1994-
>
>
> Package typearea Warning: Maybe no optimal type area settings!
> (typearea) The maximum limit of line width is about 17%
> (typearea) larger than the heuristically detected
> line width.
> (typearea) You may e.g. increase DIV, decrease fontsize
> (typearea) or change the papersize.
>
> )) (C:\bin\miktex-2.8\tex\latex\base\fixltx2e.sty)
> (C:\bin\miktex-2.8\tex\latex\graphics\graphicx.sty
> (C:\bin\miktex-2.8\tex\latex\graphics\graphics.sty
> (C:\bin\miktex-2.8\tex\latex\graphics\trig.sty)
> (C:\bin\miktex-2.8\tex\latex\00miktex\graphics.cfg)
> (C:\bin\miktex-2.8\tex\latex\pdftex-def\pdftex.def)))
> (C:\bin\miktex-2.8\tex\latex\tools\longtable.sty)
> (C:\bin\miktex-2.8\tex\latex\float\float.sty)
> (C:\bin\miktex-2.8\tex\latex\wrapfig\wrapfig.sty)
> (C:\bin\miktex-2.8\tex\latex\soul\soul.sty)
> (C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
> (C:\bin\miktex-2.8\tex\latex\base\t1enc.def))
> (C:\bin\miktex-2.8\tex\latex\base\textcomp.sty
> (C:\bin\miktex-2.8\tex\latex\base\ts1enc.def))
> (C:\bin\miktex-2.8\tex\latex\marvosym\marvosym.sty)
> (C:\bin\miktex-2.8\tex\latex\wasysym\wasysym.sty)
> (C:\bin\miktex-2.8\tex\latex\base\latexsym.sty)
> (C:\bin\miktex-2.8\tex\latex\hyperref\hyperref.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\ltxcmds.sty)
> (C:\bin\miktex-2.8\tex\generic\oberdiek\kvsetkeys.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\infwarerr.sty)
> (C:\bin\miktex-2.8\tex\generic\oberdiek\etexcmds.sty))
> (C:\bin\miktex-2.8\tex\generic\oberdiek\pdfescape.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\pdftexcmds.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\ifluatex.sty)))
> (C:\bin\miktex-2.8\tex\generic\oberdiek\ifvtex.sty)
> (C:\bin\miktex-2.8\tex\latex\ifxetex\ifxetex.sty)
> (C:\bin\miktex-2.8\tex\latex\oberdiek\hycolor.sty
> (C:\bin\miktex-2.8\tex\latex\oberdiek\xcolor-patch.sty))
> (C:\bin\miktex-2.8\tex\latex\oberdiek\letltxmacro.sty)
> (C:\bin\miktex-2.8\tex\latex\hyperref\pd1enc.def)
> (C:\bin\miktex-2.8\tex\generic\oberdiek\intcalc.sty)
> (C:\bin\miktex-2.8\tex\latex\00miktex\hyperref.cfg)
> (C:\bin\miktex-2.8\tex\latex\oberdiek\kvoptions.sty)
> Implicit mode ON; LaTeX internals redefined
> (C:\bin\miktex-2.8\tex\latex\ltxmisc\url.sty)
> (C:\bin\miktex-2.8\tex\generic\oberdiek\bitset.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\bigintcalc.sty))
> (C:\bin\miktex-2.8\tex\generic\oberdiek\atbegshi.sty))
> * hyperref using default driver hpdftex *
> (C:\bin\miktex-2.8\tex\latex\hyperref\hpdftex.def
> (C:\bin\miktex-2.8\tex\latex\oberdiek\atveryend.sty)
> (C:\bin\miktex-2.8\tex\latex\oberdiek\rerunfilecheck.sty
> (C:\bin\miktex-2.8\tex\generic\oberdiek\uniquecounter.sty)))
> (C:\bin\miktex-2.8\tex\latex\paralist\paralist.sty)
> (C:\bin\miktex-2.8\tex\latex\microtype\microtype.sty
> (C:\bin\miktex-2.8\tex\latex\microtype\microtype.cfg))
> (C:\bin\miktex-2.8\tex\latex\listings\listings.sty
> (C:\bin\miktex-2.8\tex\latex\listings\lstmisc.sty)
> (C:\bin\miktex-2.8\tex\latex\listings\listings.cfg))
> (C:\bin\miktex-2.8\tex\latex\graphics\color.sty
> (C:\bin\miktex-2.8\tex\latex\00miktex\color.cfg))
> (C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
> (C:\bin\miktex-2.8\tex\latex\base\t1enc.def))
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mathdesign.sty
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\mdput.cfg)
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\mdput.sty
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdfont.def)
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdsffont.def)
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdttfont.def)
> (C:\bin\miktex-2.8\tex\latex\mathdesign\mdput\t1mdput.fd))
> (C:\bin\miktex-2.8\tex\latex\base\fontenc.sty
> (C:\bin\miktex-2.8\tex\latex\base\t1enc.def)))
> (C:\bin\miktex-2.8\tex\latex\bera\berasans.sty)
> (C:\bin\miktex-2.8\tex\latex\inconsolata\inconsolata.sty))
>
> ! LaTeX Error: File `nil.sty' not found.
>
> Type X to quit or <RETURN> to proceed,
> or enter new name. (Default extension: sty)
>
> Enter file name:
> ! Emergency stop.
> <read *>
>
> l.6 \providecommand
> {\alert}[1]{\textbf{#1}}
>
> ! ==> Fatal error occurred, no output PDF file produced!
> Transcript written on article-class.log.
>
>
>
> _______________________________________________
> 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] 7+ messages in thread
* Re: Re: A LaTeX class for Org-mode export
2010-09-22 3:35 ` Thomas S. Dye
@ 2010-09-22 4:44 ` Srinivas Pavani
2010-09-22 5:31 ` Thomas S. Dye
0 siblings, 1 reply; 7+ messages in thread
From: Srinivas Pavani @ 2010-09-22 4:44 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode
Tom,
Thanks for your quick reply.
Looks like something went wrong so I reinstalled MikTex 2.8 and tried again. I started off with simple PDFs and slowly built up.
I am finally able to get a pdf version that is close to yours.
- Srinivas
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Re: A LaTeX class for Org-mode export
2010-09-22 4:44 ` Srinivas Pavani
@ 2010-09-22 5:31 ` Thomas S. Dye
0 siblings, 0 replies; 7+ messages in thread
From: Thomas S. Dye @ 2010-09-22 5:31 UTC (permalink / raw)
To: Srinivas Pavani; +Cc: emacs-orgmode
Aloha Srinivas,
Good news.
I'm not sure what you mean by "close," though. In the LaTeX world, a
document is supposed produce the same output regardless of the
platform or the output device. "Close" is typically not good enough.
Feel free to ask questions when they arise.
All the best,
Tom
On Sep 21, 2010, at 6:44 PM, Srinivas Pavani wrote:
> Tom,
>
> Thanks for your quick reply.
>
> Looks like something went wrong so I reinstalled MikTex 2.8 and
> tried again. I started off with simple PDFs and slowly built up.
>
> I am finally able to get a pdf version that is close to yours.
>
> - Srinivas
>
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-26 6:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-26 4:32 A LaTeX class for Org-mode export Mike McLean
2010-11-26 6:58 ` Thomas S. Dye
-- strict thread matches above, loose matches on Subject: below --
2010-09-22 23:26 Srinivas Pavani
2010-09-23 14:52 ` Thomas S. Dye
2010-09-14 20:37 Thomas S. Dye
2010-09-14 21:36 ` Scot Becker
2010-09-14 23:28 ` Thomas S. Dye
2010-09-22 2:44 ` Srinivas
2010-09-22 3:35 ` Thomas S. Dye
2010-09-22 4:44 ` Srinivas Pavani
2010-09-22 5:31 ` Thomas S. Dye
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.