emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thomas S. Dye <tsd@tsdye.com>
To: emacs-orgmode@gnu.org
Subject: ox-tufte-latex
Date: Mon, 01 Feb 2016 14:26:53 -1000	[thread overview]
Message-ID: <m2h9hsgdo2.fsf@tsdye.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2477 bytes --]

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.

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

                            ━━━━━━━━━━━━━━━━
                             OX-TUFTE-LATEX

                             Thomas S. Dye
                            ━━━━━━━━━━━━━━━━


The file `ox-tufte-latex.el' implements an Org mode export backend for
the Tufte LaTeX classes, which are designed to produce books and
handouts in the style developed by Edward Tufte.  The backend is derived
from `ox-latex.el'.

A characteristic of Tufte's style is a page layout with a wide margin on
one side (typically the right side) in which notes, references, small
tables, and small figures are placed.

The Tufte LaTeX classes implement several non-standard LaTeX commands to
achieve this page layout, including `marginfigure', `margintable', and
`sidenote'.  `Ox-tufte-latex.el' implements these commands.

The `marginfigure' command is controlled by a new LaTeX attribute
`:float margin'.  In addition, there are attributes to: set the offset,
e.g., `:offset 1in', which adjusts the position of the figure up or down
in the margin; the vertical alignment of figure captions, e.g.,
`:vertical-alignment t|b', so they align with either the top or bottom
of the float; and `:horizontal-alignment l|r' in case a figure and its
caption end up on different pages.

The `margintable' command is controlled by the LaTeX attribute `:float
margin' associated with a table.

The Org mode footnote mechanism has been hijacked to produce `sidenote'
commands, instead of `footnote' commands.  The `sidenote' command takes
an optional parameter for the offset, and this is implemented as a LaTeX
attribute associated with the Org mode footnote definition, e.g.,
┌────
│ #+attr_latex: :offset 36pt
│ [fn:1] Cook referred to Koa`a as Koah.
└────


[-- Attachment #2: Ox-tufte-latex.el --]
[-- Type: application/emacs-lisp, Size: 28018 bytes --]

[-- Attachment #3: Type: text/plain, Size: 41 bytes --]



-- 
Thomas S. Dye
http://www.tsdye.com

             reply	other threads:[~2016-02-02  0:27 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-02  0:26 Thomas S. Dye [this message]
2016-02-02  1:10 ` ox-tufte-latex Titus von der Malsburg
2016-02-02  1:49   ` ox-tufte-latex Thomas S. Dye
2016-02-03 21:57     ` ox-tufte-latex Spencer Boucher
2016-02-02  8:52 ` ox-tufte-latex Eric S Fraga
2016-02-03  0:28 ` ox-tufte-latex Rasmus
2016-02-03  1:35   ` ox-tufte-latex Thomas S. Dye
2016-02-03  2:29     ` ox-tufte-latex Lawrence Bottorff
2016-02-03 11:05     ` ox-tufte-latex Rasmus
2016-02-03 11:26       ` ox-tufte-latex Marcin Borkowski
2016-02-03 11:41         ` ox-tufte-latex Rasmus
2016-02-03 13:33           ` ox-tufte-latex Marcin Borkowski
2016-02-03 16:07             ` ox-tufte-latex Thomas S. Dye
2016-02-03 15:41       ` ox-tufte-latex Thomas S. Dye
2016-02-03 16:42         ` ox-tufte-latex Rasmus
2016-02-03 17:15           ` ox-tufte-latex Thomas S. Dye
2016-02-12 18:28 ` ox-tufte-latex Eduardo Mercovich
2016-02-12 19:02   ` ox-tufte-latex Thomas S. Dye
2016-02-18 18:43     ` ox-tufte-latex Eduardo Mercovich
2016-02-19  3:03       ` ox-tufte-latex Thomas S. Dye
2016-02-19  3:54       ` ox-tufte-latex Thomas S. Dye
2016-02-22 17:59         ` ox-tufte-latex Eduardo Mercovich
2016-02-22 18:52           ` ox-tufte-latex Thomas S. Dye
2016-02-22 19:35 ` ox-tufte-latex John Hendy
2016-02-23  0:00   ` ox-tufte-latex Thomas S. Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2h9hsgdo2.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).