LaTeX notes
Table of Contents
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.1 Beamer
- How to make a presentation with Latex – Introduction to Beamer—useful Beamer reference
2.2 Other people’s LaTeX notes pages
- Iain Murray—in particular, how to do spacing properly around sentences.
- How do I do X in LaTeX?
2.3 Advocacy
2.4 HTML
- latexmath2png—python script and Python library to convert bits of LaTeX into images for use on the web etc.
