* 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-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-10-16 5:57 ` Carsten Dominik
1 sibling, 1 reply; 14+ 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] 14+ 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; 14+ 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] 14+ 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; 14+ 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] 14+ 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; 14+ 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] 14+ 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; 14+ 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] 14+ 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; 14+ 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] 14+ messages in thread
* Re: A LaTeX class for Org-mode export
2010-09-14 20:37 A LaTeX class for Org-mode export Thomas S. Dye
2010-09-14 21:36 ` Scot Becker
@ 2010-10-16 5:57 ` Carsten Dominik
2010-10-16 17:08 ` Thomas S. Dye
1 sibling, 1 reply; 14+ messages in thread
From: Carsten Dominik @ 2010-10-16 5:57 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode Mailinglist
Hi Thomas,
Dan just made me look again at this thread, which I had not yet
studied closely.
I think you have created something very useful indeed. I love
the compact lists, and I am sure there is a lot more I would use.
So I am wondering: What can Org do to support and integrate this
class? I can think of a couple of things:
- distribute it in contrib
- advertise it in the manual
- have it as one of the default classes in org-export-latex-classes
But maybe you have other ideas?
Cheers
- Carsten
On Sep 14, 2010, at 10:37 PM, Thomas S. Dye wrote:
> 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
> _______________________________________________
> 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-10-16 5:57 ` Carsten Dominik
@ 2010-10-16 17:08 ` Thomas S. Dye
2010-10-17 5:58 ` Carsten Dominik
0 siblings, 1 reply; 14+ messages in thread
From: Thomas S. Dye @ 2010-10-16 17:08 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode Mailinglist
Aloha Carsten,
Thanks for your kind words. I'm having fun with org-article.cls and
am happy to have Org support in the ways that you mention.
Right now I think the class's main contribution is that it eases
configuration of LaTeX export.
For the future (perhaps distant), I'm hoping org-article.cls will make
the case that Org should identify other semantic elements in LaTeX
export, leaving the details of their representation to the LaTeX class.
For example:
paths: Paths are frequently quite long and when they don't include
spaces LaTeX can have a difficult time breaking them at the end of a
line. There is a LaTeX package, url.sty, that handles this. I
believe that the hyperref package loads url.sty for this
functionality, so it is available to the LaTeX exporter with the
current defaults. If paths were identified in the export,
e.g., \org-path{/long/path/to/my/file/deep/in/the/directory/tree},
then the LaTeX class could typeset this with either the \url{} command
(if hyperref wasn't being used), with \nolinkurl{} (if hyperref was
being used), or some other way appropriate to the class.
lists: In addition to compact lists (I agree with you that they are an
improvement over the standard LaTeX lists), it should be possible to
typeset lists inside paragraphs. I'm not certain how this might be
handled in Org-mode, perhaps an #+property or other entity that could
be set on a list-specific basis. The LaTeX paralist package that is
responsible for the compact lists does a good job typesetting lists in
paragraphs, as well.
#+results: I'm integrating Eric Fraga's GANTT chart code, which
generates the LaTeX code to create a high quality graphic using an Org-
mode table as input. Currently, the #+results: of Eric's code aren't
exported unless I add a blank line between the #+results: and #
+BEGIN_LaTeX lines. If, instead, the results block were exported
inside a LaTeX environment, say \begin{org-results} \end{org-results},
then org-article.cls (or any other LaTeX class) could define an
environment to typeset the results appropriately. With the blank line
inserted, LaTeX export yields a listing of the LaTeX code, which is
all well and good, but it doesn't get set off *as a result*, which
might be useful to distinguish it from regular source code blocks in
the Org-mode file.
I'm not advocating for any specific changes here. I'm just trying to
indicate a possibly useful development path for Org-mode LaTeX export
in tandem with custom LaTeX classes.
All the best,
Tom
On Oct 15, 2010, at 7:57 PM, Carsten Dominik wrote:
>
> Hi Thomas,
>
> Dan just made me look again at this thread, which I had not yet
> studied closely.
>
> I think you have created something very useful indeed. I love
> the compact lists, and I am sure there is a lot more I would use.
> So I am wondering: What can Org do to support and integrate this
> class? I can think of a couple of things:
>
> - distribute it in contrib
> - advertise it in the manual
> - have it as one of the default classes in org-export-latex-classes
>
> But maybe you have other ideas?
>
> Cheers
>
> - Carsten
>
>
> On Sep 14, 2010, at 10:37 PM, Thomas S. Dye wrote:
>
>> 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
>> _______________________________________________
>> 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-10-16 17:08 ` Thomas S. Dye
@ 2010-10-17 5:58 ` Carsten Dominik
2010-10-17 19:25 ` Thomas S. Dye
0 siblings, 1 reply; 14+ messages in thread
From: Carsten Dominik @ 2010-10-17 5:58 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode Mailinglist
Hi Tom,
On Oct 16, 2010, at 7:08 PM, Thomas S. Dye wrote:
> Aloha Carsten,
>
> Thanks for your kind words. I'm having fun with org-article.cls and
> am happy to have Org support in the ways that you mention.
Great. Would you like to make me a patch which does all this?
If you want, you can also create a new directory in contrib.
You can also have write permission for the git repo in order
to install updates for this.
>
> Right now I think the class's main contribution is that it eases
> configuration of LaTeX export.
>
> For the future (perhaps distant), I'm hoping org-article.cls will
> make the case that Org should identify other semantic elements in
> LaTeX export, leaving the details of their representation to the
> LaTeX class.
>
> For example:
>
> paths: Paths are frequently quite long and when they don't include
> spaces LaTeX can have a difficult time breaking them at the end of a
> line. There is a LaTeX package, url.sty, that handles this. I
> believe that the hyperref package loads url.sty for this
> functionality, so it is available to the LaTeX exporter with the
> current defaults. If paths were identified in the export,
> e.g., \org-path{/long/path/to/my/file/deep/in/the/directory/tree},
> then the LaTeX class could typeset this with either the \url{}
> command (if hyperref wasn't being used), with \nolinkurl{} (if
> hyperref was being used), or some other way appropriate to the class.
>
> lists: In addition to compact lists (I agree with you that they are
> an improvement over the standard LaTeX lists), it should be possible
> to typeset lists inside paragraphs. I'm not certain how this might
> be handled in Org-mode, perhaps an #+property or other entity that
> could be set on a list-specific basis. The LaTeX paralist package
> that is responsible for the compact lists does a good job
> typesetting lists in paragraphs, as well.
>
> #+results: I'm integrating Eric Fraga's GANTT chart code, which
> generates the LaTeX code to create a high quality graphic using an
> Org-mode table as input. Currently, the #+results: of Eric's code
> aren't exported unless I add a blank line between the #+results: and
> #+BEGIN_LaTeX lines. If, instead, the results block were exported
> inside a LaTeX environment, say \begin{org-results} \end{org-
> results}, then org-article.cls (or any other LaTeX class) could
> define an environment to typeset the results appropriately. With
> the blank line inserted, LaTeX export yields a listing of the LaTeX
> code, which is all well and good, but it doesn't get set off *as a
> result*, which might be useful to distinguish it from regular source
> code blocks in the Org-mode file.
>
> I'm not advocating for any specific changes here. I'm just trying
> to indicate a possibly useful development path for Org-mode LaTeX
> export in tandem with custom LaTeX classes.
I will be very interested to see what else you come up with.
Cheers
- Carsten
>
> All the best,
> Tom
>
>
> On Oct 15, 2010, at 7:57 PM, Carsten Dominik wrote:
>
>>
>> Hi Thomas,
>>
>> Dan just made me look again at this thread, which I had not yet
>> studied closely.
>>
>> I think you have created something very useful indeed. I love
>> the compact lists, and I am sure there is a lot more I would use.
>> So I am wondering: What can Org do to support and integrate this
>> class? I can think of a couple of things:
>>
>> - distribute it in contrib
>> - advertise it in the manual
>> - have it as one of the default classes in org-export-latex-classes
>>
>> But maybe you have other ideas?
>>
>> Cheers
>>
>> - Carsten
>>
>>
>> On Sep 14, 2010, at 10:37 PM, Thomas S. Dye wrote:
>>
>>> 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
>>> _______________________________________________
>>> 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-10-17 5:58 ` Carsten Dominik
@ 2010-10-17 19:25 ` Thomas S. Dye
2010-10-18 18:46 ` John Hendy
0 siblings, 1 reply; 14+ messages in thread
From: Thomas S. Dye @ 2010-10-17 19:25 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode Mailinglist
Aloha Carsten,
Much appreciated. I hope the idea of custom LaTeX classes for Org-
mode export proves useful to the community.
I have the patch on my list of things to do. I don't work at the
speeds you folks attain so the patch will probably seem slow in coming.
All the best,
Tom
On Oct 16, 2010, at 7:58 PM, Carsten Dominik wrote:
> Hi Tom,
>
> On Oct 16, 2010, at 7:08 PM, Thomas S. Dye wrote:
>
>> Aloha Carsten,
>>
>> Thanks for your kind words. I'm having fun with org-article.cls
>> and am happy to have Org support in the ways that you mention.
>
> Great. Would you like to make me a patch which does all this?
> If you want, you can also create a new directory in contrib.
> You can also have write permission for the git repo in order
> to install updates for this.
>
>>
>> Right now I think the class's main contribution is that it eases
>> configuration of LaTeX export.
>>
>> For the future (perhaps distant), I'm hoping org-article.cls will
>> make the case that Org should identify other semantic elements in
>> LaTeX export, leaving the details of their representation to the
>> LaTeX class.
>>
>> For example:
>>
>> paths: Paths are frequently quite long and when they don't include
>> spaces LaTeX can have a difficult time breaking them at the end of
>> a line. There is a LaTeX package, url.sty, that handles this. I
>> believe that the hyperref package loads url.sty for this
>> functionality, so it is available to the LaTeX exporter with the
>> current defaults. If paths were identified in the export,
>> e.g., \org-path{/long/path/to/my/file/deep/in/the/directory/tree},
>> then the LaTeX class could typeset this with either the \url{}
>> command (if hyperref wasn't being used), with \nolinkurl{} (if
>> hyperref was being used), or some other way appropriate to the class.
>>
>> lists: In addition to compact lists (I agree with you that they are
>> an improvement over the standard LaTeX lists), it should be
>> possible to typeset lists inside paragraphs. I'm not certain how
>> this might be handled in Org-mode, perhaps an #+property or other
>> entity that could be set on a list-specific basis. The LaTeX
>> paralist package that is responsible for the compact lists does a
>> good job typesetting lists in paragraphs, as well.
>>
>> #+results: I'm integrating Eric Fraga's GANTT chart code, which
>> generates the LaTeX code to create a high quality graphic using an
>> Org-mode table as input. Currently, the #+results: of Eric's code
>> aren't exported unless I add a blank line between the #+results:
>> and #+BEGIN_LaTeX lines. If, instead, the results block were
>> exported inside a LaTeX environment, say \begin{org-results}
>> \end{org-results}, then org-article.cls (or any other LaTeX class)
>> could define an environment to typeset the results appropriately.
>> With the blank line inserted, LaTeX export yields a listing of the
>> LaTeX code, which is all well and good, but it doesn't get set off
>> *as a result*, which might be useful to distinguish it from regular
>> source code blocks in the Org-mode file.
>>
>> I'm not advocating for any specific changes here. I'm just trying
>> to indicate a possibly useful development path for Org-mode LaTeX
>> export in tandem with custom LaTeX classes.
>
> I will be very interested to see what else you come up with.
>
> Cheers
>
> - Carsten
>
>>
>> All the best,
>> Tom
>>
>>
>> On Oct 15, 2010, at 7:57 PM, Carsten Dominik wrote:
>>
>>>
>>> Hi Thomas,
>>>
>>> Dan just made me look again at this thread, which I had not yet
>>> studied closely.
>>>
>>> I think you have created something very useful indeed. I love
>>> the compact lists, and I am sure there is a lot more I would use.
>>> So I am wondering: What can Org do to support and integrate this
>>> class? I can think of a couple of things:
>>>
>>> - distribute it in contrib
>>> - advertise it in the manual
>>> - have it as one of the default classes in org-export-latex-classes
>>>
>>> But maybe you have other ideas?
>>>
>>> Cheers
>>>
>>> - Carsten
>>>
>>>
>>> On Sep 14, 2010, at 10:37 PM, Thomas S. Dye wrote:
>>>
>>>> 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
>>>> _______________________________________________
>>>> 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-10-17 19:25 ` Thomas S. Dye
@ 2010-10-18 18:46 ` John Hendy
2010-10-18 18:48 ` John Hendy
0 siblings, 1 reply; 14+ messages in thread
From: John Hendy @ 2010-10-18 18:46 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode Mailinglist, Carsten Dominik
[-- Attachment #1.1: Type: text/plain, Size: 7049 bytes --]
Thomas,
Forgive my density... how does one use this? Or is it not available for
public consumption yet? I downloaded your git repo but org-mode complains
that it doesn't know about org-article. Where do I obtain the actual class
file?
I tried searching around on worg for the page you hinted at (mainly checking
the org-contrib page) but didn't see anything there.
Thanks,
John
On Sun, Oct 17, 2010 at 2:25 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
> Aloha Carsten,
>
> Much appreciated. I hope the idea of custom LaTeX classes for Org-mode
> export proves useful to the community.
>
> I have the patch on my list of things to do. I don't work at the speeds
> you folks attain so the patch will probably seem slow in coming.
>
> All the best,
> Tom
>
>
>
> On Oct 16, 2010, at 7:58 PM, Carsten Dominik wrote:
>
> Hi Tom,
>>
>> On Oct 16, 2010, at 7:08 PM, Thomas S. Dye wrote:
>>
>> Aloha Carsten,
>>>
>>> Thanks for your kind words. I'm having fun with org-article.cls and am
>>> happy to have Org support in the ways that you mention.
>>>
>>
>> Great. Would you like to make me a patch which does all this?
>> If you want, you can also create a new directory in contrib.
>> You can also have write permission for the git repo in order
>> to install updates for this.
>>
>>
>>> Right now I think the class's main contribution is that it eases
>>> configuration of LaTeX export.
>>>
>>> For the future (perhaps distant), I'm hoping org-article.cls will make
>>> the case that Org should identify other semantic elements in LaTeX export,
>>> leaving the details of their representation to the LaTeX class.
>>>
>>> For example:
>>>
>>> paths: Paths are frequently quite long and when they don't include spaces
>>> LaTeX can have a difficult time breaking them at the end of a line. There
>>> is a LaTeX package, url.sty, that handles this. I believe that the hyperref
>>> package loads url.sty for this functionality, so it is available to the
>>> LaTeX exporter with the current defaults. If paths were identified in the
>>> export,
>>> e.g., \org-path{/long/path/to/my/file/deep/in/the/directory/tree},
>>> then the LaTeX class could typeset this with either the \url{} command
>>> (if hyperref wasn't being used), with \nolinkurl{} (if hyperref was being
>>> used), or some other way appropriate to the class.
>>>
>>> lists: In addition to compact lists (I agree with you that they are an
>>> improvement over the standard LaTeX lists), it should be possible to typeset
>>> lists inside paragraphs. I'm not certain how this might be handled in
>>> Org-mode, perhaps an #+property or other entity that could be set on a
>>> list-specific basis. The LaTeX paralist package that is responsible for the
>>> compact lists does a good job typesetting lists in paragraphs, as well.
>>>
>>> #+results: I'm integrating Eric Fraga's GANTT chart code, which
>>> generates the LaTeX code to create a high quality graphic using an Org-mode
>>> table as input. Currently, the #+results: of Eric's code aren't exported
>>> unless I add a blank line between the #+results: and #+BEGIN_LaTeX lines.
>>> If, instead, the results block were exported inside a LaTeX environment,
>>> say \begin{org-results} \end{org-results}, then org-article.cls (or any
>>> other LaTeX class) could define an environment to typeset the results
>>> appropriately. With the blank line inserted, LaTeX export yields a listing
>>> of the LaTeX code, which is all well and good, but it doesn't get set off
>>> *as a result*, which might be useful to distinguish it from regular source
>>> code blocks in the Org-mode file.
>>>
>>> I'm not advocating for any specific changes here. I'm just trying to
>>> indicate a possibly useful development path for Org-mode LaTeX export in
>>> tandem with custom LaTeX classes.
>>>
>>
>> I will be very interested to see what else you come up with.
>>
>> Cheers
>>
>> - Carsten
>>
>>
>>> All the best,
>>> Tom
>>>
>>>
>>> On Oct 15, 2010, at 7:57 PM, Carsten Dominik wrote:
>>>
>>>
>>>> Hi Thomas,
>>>>
>>>> Dan just made me look again at this thread, which I had not yet
>>>> studied closely.
>>>>
>>>> I think you have created something very useful indeed. I love
>>>> the compact lists, and I am sure there is a lot more I would use.
>>>> So I am wondering: What can Org do to support and integrate this
>>>> class? I can think of a couple of things:
>>>>
>>>> - distribute it in contrib
>>>> - advertise it in the manual
>>>> - have it as one of the default classes in org-export-latex-classes
>>>>
>>>> But maybe you have other ideas?
>>>>
>>>> Cheers
>>>>
>>>> - Carsten
>>>>
>>>>
>>>> On Sep 14, 2010, at 10:37 PM, Thomas S. Dye wrote:
>>>>
>>>> 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
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>
>>>>
>>>
>>
>
> _______________________________________________
> 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: 8704 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-10-18 18:46 ` John Hendy
@ 2010-10-18 18:48 ` John Hendy
0 siblings, 0 replies; 14+ messages in thread
From: John Hendy @ 2010-10-18 18:48 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode Mailinglist, Carsten Dominik
[-- Attachment #1.1: Type: text/plain, Size: 7439 bytes --]
Nevermind. Wow, I'm a doof. I see the git files *are* the instructions...
I continue to surprise myself...
On Mon, Oct 18, 2010 at 1:46 PM, John Hendy <jw.hendy@gmail.com> wrote:
> Thomas,
>
>
> Forgive my density... how does one use this? Or is it not available for
> public consumption yet? I downloaded your git repo but org-mode complains
> that it doesn't know about org-article. Where do I obtain the actual class
> file?
>
> I tried searching around on worg for the page you hinted at (mainly
> checking the org-contrib page) but didn't see anything there.
>
>
> Thanks,
> John
>
>
> On Sun, Oct 17, 2010 at 2:25 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
>
>> Aloha Carsten,
>>
>> Much appreciated. I hope the idea of custom LaTeX classes for Org-mode
>> export proves useful to the community.
>>
>> I have the patch on my list of things to do. I don't work at the speeds
>> you folks attain so the patch will probably seem slow in coming.
>>
>> All the best,
>> Tom
>>
>>
>>
>> On Oct 16, 2010, at 7:58 PM, Carsten Dominik wrote:
>>
>> Hi Tom,
>>>
>>> On Oct 16, 2010, at 7:08 PM, Thomas S. Dye wrote:
>>>
>>> Aloha Carsten,
>>>>
>>>> Thanks for your kind words. I'm having fun with org-article.cls and am
>>>> happy to have Org support in the ways that you mention.
>>>>
>>>
>>> Great. Would you like to make me a patch which does all this?
>>> If you want, you can also create a new directory in contrib.
>>> You can also have write permission for the git repo in order
>>> to install updates for this.
>>>
>>>
>>>> Right now I think the class's main contribution is that it eases
>>>> configuration of LaTeX export.
>>>>
>>>> For the future (perhaps distant), I'm hoping org-article.cls will make
>>>> the case that Org should identify other semantic elements in LaTeX export,
>>>> leaving the details of their representation to the LaTeX class.
>>>>
>>>> For example:
>>>>
>>>> paths: Paths are frequently quite long and when they don't include
>>>> spaces LaTeX can have a difficult time breaking them at the end of a line.
>>>> There is a LaTeX package, url.sty, that handles this. I believe that the
>>>> hyperref package loads url.sty for this functionality, so it is available to
>>>> the LaTeX exporter with the current defaults. If paths were identified in
>>>> the export,
>>>> e.g., \org-path{/long/path/to/my/file/deep/in/the/directory/tree},
>>>> then the LaTeX class could typeset this with either the \url{} command
>>>> (if hyperref wasn't being used), with \nolinkurl{} (if hyperref was being
>>>> used), or some other way appropriate to the class.
>>>>
>>>> lists: In addition to compact lists (I agree with you that they are an
>>>> improvement over the standard LaTeX lists), it should be possible to typeset
>>>> lists inside paragraphs. I'm not certain how this might be handled in
>>>> Org-mode, perhaps an #+property or other entity that could be set on a
>>>> list-specific basis. The LaTeX paralist package that is responsible for the
>>>> compact lists does a good job typesetting lists in paragraphs, as well.
>>>>
>>>> #+results: I'm integrating Eric Fraga's GANTT chart code, which
>>>> generates the LaTeX code to create a high quality graphic using an Org-mode
>>>> table as input. Currently, the #+results: of Eric's code aren't exported
>>>> unless I add a blank line between the #+results: and #+BEGIN_LaTeX lines.
>>>> If, instead, the results block were exported inside a LaTeX environment,
>>>> say \begin{org-results} \end{org-results}, then org-article.cls (or any
>>>> other LaTeX class) could define an environment to typeset the results
>>>> appropriately. With the blank line inserted, LaTeX export yields a listing
>>>> of the LaTeX code, which is all well and good, but it doesn't get set off
>>>> *as a result*, which might be useful to distinguish it from regular source
>>>> code blocks in the Org-mode file.
>>>>
>>>> I'm not advocating for any specific changes here. I'm just trying to
>>>> indicate a possibly useful development path for Org-mode LaTeX export in
>>>> tandem with custom LaTeX classes.
>>>>
>>>
>>> I will be very interested to see what else you come up with.
>>>
>>> Cheers
>>>
>>> - Carsten
>>>
>>>
>>>> All the best,
>>>> Tom
>>>>
>>>>
>>>> On Oct 15, 2010, at 7:57 PM, Carsten Dominik wrote:
>>>>
>>>>
>>>>> Hi Thomas,
>>>>>
>>>>> Dan just made me look again at this thread, which I had not yet
>>>>> studied closely.
>>>>>
>>>>> I think you have created something very useful indeed. I love
>>>>> the compact lists, and I am sure there is a lot more I would use.
>>>>> So I am wondering: What can Org do to support and integrate this
>>>>> class? I can think of a couple of things:
>>>>>
>>>>> - distribute it in contrib
>>>>> - advertise it in the manual
>>>>> - have it as one of the default classes in org-export-latex-classes
>>>>>
>>>>> But maybe you have other ideas?
>>>>>
>>>>> Cheers
>>>>>
>>>>> - Carsten
>>>>>
>>>>>
>>>>> On Sep 14, 2010, at 10:37 PM, Thomas S. Dye wrote:
>>>>>
>>>>> 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
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>> _______________________________________________
>> 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: 9235 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).