On Mon, Feb 1, 2016 at 6:26 PM, Thomas S. Dye <t...@tsdye.com> wrote: > Aloha all, > > I've cobbled together an exporter for the Tufte LaTeX classes, which I'd > like to contribute to Org mode contrib/. A brief description of the > derived backend can be found below, and I've attached the > ox-tufte-latex.el file for the review described on > http://orgmode.org/worg/org-contribute.html.
Hi Tom, Just gave this a whirl and am not sure if I'm doing something wrong. I think I have all of the required LaTeX packages.[1] I may have missed it, but I didn't see instructions that explicitly stated how to export the file tufte-latex.org. I assumed I could just =C-c C-e l p= like a typical LaTeX/pdf export? I've attached the output of *Org PDF LaTeX Ouput* if that shows what might have happened. It's *pretty* close, but the helix doesn't appear in the margin and the commands \mainmatter, \backmatter, etc. aren't registering. I added the path ~/.elisp/tufte-org-mode to .emacs and also accepted the local variables with "y" when I started .emacs and opened the file. For another check, I looked at TexLive 2016's tufte-latex-book.cls: ``` $ head .texlive/2016/texmf-dist/tex/latex/tufte-latex/tufte-book.cls \NeedsTeXFormat{LaTeX2e}[1994/06/01] %% note; handout is the same at v3.5.2 \ProvidesClass{tufte-book}[2015/06/21 v3.5.2 Tufte-book class] ``` I think that should meet the > v3.2 requirement (also looks like the linked website is up to 3.5.2, so that seems to match with me being up to date). Anyway, hope that's a fair amount of information to help start the troubleshooting process! Thanks, John [1] note on that: xparse in TexLive appears to be provided by l3packages, as an FYI. I tried `tlmgr install xparse` and got a warning that it wasn't in the repository. Just a heads up potentially for the docs? > I've been using the derived backend for a while now and am happy with > how it is working. The Tufte LaTeX classes (especially the book class) > require quite a bit of set up to work optimally, and I'll be sharing > what I've learned along these lines in the next couple of weeks. Org > mode is a great tool for authoring Tufte LaTeX documents! > > All the best, > Tom
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (/home/jwhendy/.elisp/tufte-org-mode/tufte-latex.tex LaTeX2e <2016/02/01> Babel <3.9n> and hyphenation patterns for 4 languages loaded. (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/tufte-latex/tufte-handout.cls Document Class: tufte-handout 2015/06/21 v3.5.2 Tufte-handout class (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/tufte-latex/tufte-common.def (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/xkeyval/xkeyval.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/xkeyval/xkvutils.tex (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/xkeyval/keyval.tex)))) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/xifthen/xifthen.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/tools/calc.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/base/ifthen.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/ifmtarg/ifmtarg.sty)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/hardwrap/hardwrap.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/base/size10.clo)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/titlesec/titlesec.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/titlesec/titletoc.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/hyperref/hyperref.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.st y (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty )) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/hyperref/pd1enc.def) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/latexconfig/hyperref.cfg) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/hyperref/puenc.def) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/url/url.sty)) Package hyperref Message: Driver (autodetected): hpdftex. (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/hyperref/hpdftex.def (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/ms/ragged2e.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/ms/everysel.sty)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/geometry/geometry.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/changepage/changepage.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/paralist/paralist.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/textcase/textcase.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/microtype/letterspace.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/setspace/setspace.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/xcolor/xcolor.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/latexconfig/color.cfg) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/pdftex-def/pdftex.def) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/graphics/dvipsnam.def) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/xcolor/svgnam.def)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/sauerj/optparams.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/placeins/placeins.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/psnfss/mathpazo.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/psnfss/helvet.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/bera/beramono.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/base/fontenc.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/base/t1enc.def)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/base/textcomp.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/base/ts1enc.def)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/tools/multicol.sty))) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/biblatex/biblatex.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/biblatex/biblatex1.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/etoolbox/etoolbox.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/logreq/logreq.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/logreq/logreq.def)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/biblatex/blx-compat.def) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/biblatex/biblatex.def) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/biblatex/bbx/verbose-trad1.bb x (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/biblatex/bbx/authortitle.bbx (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/biblatex/cbx/verbose-trad1.cb x) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/biblatex/biblatex.cfg))) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/booktabs/booktabs.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/graphics/trig.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/latexconfig/graphics.cfg))) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/microtype/microtype.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/microtype/microtype-pdftex.de f) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/microtype/microtype.cfg)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/hyphenat/hyphenat.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/marginfix/marginfix.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty)) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/morefloats/morefloats.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/l3kernel/expl3.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/l3kernel/l3pdfmode.def))) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/xpatch/xpatch.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/biblatex/lbx/english.lbx) Package biblatex Warning: Patching footnotes failed. (biblatex) Footnote detection will not work. (.//tufte-latex.aux) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/psnfss/t1pplj.fd) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/hyperref/nameref.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/generic/oberdiek/gettitlestring.sty )) (.//tufte-latex.out) (.//tufte-latex.out) ABD: EverySelectfont initializing macros *geometry* driver: auto-detecting *geometry* detected driver: pdftex (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/microtype/mt-ppl.cfg) (/home/jwhendy/.texlive/2016/texmf-dist/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (.//tufte-latex.bbl) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/oberdiek/grfext.sty) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg) ) ! Undefined control sequence. l.54 \frontmatter \maketitle (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/psnfss/ts1pplj.fd) (.//tufte-latex.toc) (.//tufte-latex.lof) (.//tufte-latex.lot) ! Undefined control sequence. l.76 \mainmatter [1{/home/jwhendy/.texlive/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] ! Undefined control sequence. l.87 \backmatter [2] (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/psnfss/ot1pplx.fd) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/psnfss/omlzplm.fd) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/psnfss/omszplm.fd) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/psnfss/omxzplm.fd) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/psnfss/ot1zplm.fd) (/home/jwhendy/.texlive/2016/texmf-dist/tex/latex/bera/t1fvm.fd) Overfull \hbox (0.10027pt too wide) in paragraph at lines 155--162 \T1/pplj/m/n/10 (+18) means that its position is determined solely by the L[]T[ ]X engine. Note [3] <hilbertcurves.pdf, id=52, 308.47346pt x 76.72565pt> <use hilbertcurves.pdf> <sine.pdf, id=53, 505.89pt x 51.04068pt> <use sine.pdf> [4 <./hilbertcurves.pdf>] <helix.pdf, id=79, 221.8689pt x 201.71361pt> <use helix.pdf> [5 <./sine.pdf> <. /helix.pdf>] Overfull \hbox (1.07492pt too wide) in paragraph at lines 302--302 []\T1/fvm/m/n/10 #+attr_latex: :font \footnotesize :float margin :offset [72pt] [] [6] (.//tufte-latex.aux) ) (see the transcript file for additional information){/home/jwhendy/.texlive/201 6/texmf-dist/fonts/enc/dvips/base/8r.enc}</home/jwhendy/.texlive/2016/texmf-dis t/fonts/type1/public/amsfonts/cm/cmr10.pfb></home/jwhendy/.texlive/2016/texmf-d ist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></home/jwhendy/.texlive/2016/texm f-dist/fonts/type1/public/fpl/fplrc8a.pfb></home/jwhendy/.texlive/2016/texmf-di st/fonts/type1/public/fpl/fplrij8a.pfb></home/jwhendy/.texlive/2016/texmf-dist/ fonts/type1/public/bera/fvmr8a.pfb></home/jwhendy/.texlive/2016/texmf-dist/font s/type1/urw/palatino/uplr8a.pfb></home/jwhendy/.texlive/2016/texmf-dist/fonts/t ype1/urw/palatino/uplri8a.pfb> Output written on .//tufte-latex.pdf (6 pages, 96606 bytes). Transcript written on .//tufte-latex.log.