emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* A LaTeX class for Org-mode export
@ 2010-09-14 20:37 Thomas S. Dye
  2010-09-14 21:36 ` Scot Becker
  2010-10-16  5:57 ` Carsten Dominik
  0 siblings, 2 replies; 14+ 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] 14+ messages in thread
* Re: A LaTeX class for Org-mode export
@ 2010-11-26  4:32 Mike McLean
  0 siblings, 0 replies; 14+ 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] 14+ messages in thread

end of thread, other threads:[~2010-11-26  4:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-14 20:37 A LaTeX class for Org-mode export 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
2010-10-16  5:57 ` Carsten Dominik
2010-10-16 17:08   ` Thomas S. Dye
2010-10-17  5:58     ` Carsten Dominik
2010-10-17 19:25       ` Thomas S. Dye
2010-10-18 18:46         ` John Hendy
2010-10-18 18:48           ` John Hendy
  -- strict thread matches above, loose matches on Subject: below --
2010-11-26  4:32 Mike McLean

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).