LaTeX notes

1 Org-mode + LaTeX outlines class

spwoutline is a LaTeX class for use with Org-mode that I wrote because I wanted to be able to export my reading and lecture notes into a indented outline. It’s not perfect with some of it’s spacing, but it’s certainly good enough for most purposes.

Here’s the class, released under the GNU GPL 3.

Here’s the Org-mode config:

(add-to-list 'org-export-latex-classes
             '("spwoutline"
               "\\documentclass{spwoutline}"
               ("\\section{%s}" . "\\section*{%s}")
               ("\\subsection{%s}" . "\\subsection*{%s}")
               ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
(setq org-export-latex-low-levels '("\\begin{lowitemize}\\setlength{\\parindent}{2em}" "\\end{lowitemize}" "\\item \\textbf{%s}\\indent %s")) ; four slashes used to be a \\par

; used after things like e.g. to prevent a double space
(setq org-entities-user '(("space" "\\ " nil " " " " " " " ")))

Here’s an example of how I use it:

* DONE Mill’s utilitarianism
CLOSED: [2011-05-28 Sat 10:30]
:LOGBOOK:
- State "DONE"       from "TODO"       [2011-05-28 Sat 10:30]
:END:
:PROPERTIES:
:EXPORT_TITLE: Ethics essay #4: Mill’s utilitarianism
:EXPORT_DATE: May 2011
:EXPORT_OPTIONS: toc:nil todo:nil <:nil
:LaTeX_CLASS: spwoutline
:END:
What’s really wrong with utilitarianism?

Reading list
** DONE Fourth ethics essay                                     :NOEXPORT:
CLOSED: [2011-05-24 Tue 22:06]
:LOGBOOK:
- State "DONE"       from "TODO"       [2011-05-24 Tue 22:06]
:END:
:PROPERTIES:
:EXPORT_FILE_NAME: ethics-essay-utilitarianism
:EXPORT_AUTHOR: Sean Whitton
:EXPORT_DATE: May 2011
:EXPORT_TITLE: What’s really wrong with utilitarianism?
:EXPORT_OPTIONS: todo:nil toc:nil skip:t <:nil
:LaTeX_CLASS: spwessay
:END:
DEADLINE: <2011-05-25 Wed 10:00> SCHEDULED: <2011-05-24 Tue>
*** 
Utilitarianism is the combination of consequentialism and a eudaimonic
[…]
** DONE Mill: Utilitarianism, esp. chs. 2 & 4
CLOSED: [2011-05-23 Mon 14:24]
:LOGBOOK:
- State "DONE"       from "NEXT"       [2011-05-23 Mon 14:24]
:END:
*** Chapter 2—What utilitarianism is
**** Pleasure and pain
[…]

Here’s a yasnippet snippet which I use to set this up each time.

I also have a BiBTeX for philosophy using jurabib setup.

2 Useful links

2.2 Other people’s LaTeX notes pages

2.4 HTML

  • latexmath2png—python script and Python library to convert bits of LaTeX into images for use on the web etc.

2.5 Graphics

This page is part of Sean Whitton's website. Return to the homepage, visit his blog, or choose from the static content below.
Page last updated: 2011-12-11.

E-mail author/webmaster: spam-protected e-mail
        address

XHTML generated by Org version 7.8.02 with Emacs version 23.

Valid XHTML 1.0
        StrictAny Browser Campaign

© 2005–2012 Sean Whitton, Some Rights Reserved (dual-licensed GNU FDL & CC-BY-SA 2.0 UK).