|
@@ -3,16 +3,16 @@
|
|
|
#+AUTHOR: Tom Dye
|
|
|
#+EMAIL: tsd@tsdye2.com
|
|
|
#+DATE: 2010-04-24 Sat
|
|
|
-#+DESCRIPTION:
|
|
|
-#+KEYWORDS:
|
|
|
+#+DESCRIPTION:
|
|
|
+#+KEYWORDS:
|
|
|
#+LANGUAGE: en
|
|
|
#+OPTIONS: H:3 num:t toc:t \n:nil ::t |:t ^:t -:t f:t *:t tex:t d:(HIDE) tags:not-in-toc
|
|
|
#+OPTIONS: <:t d:nil todo:t pri:nil tags:not-in-toc
|
|
|
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:https://orgmode.org/org-info.js
|
|
|
#+SELECT_TAGS: export
|
|
|
#+EXCLUDE_TAGS: noexport
|
|
|
-#+LINK_UP:
|
|
|
-#+LINK_HOME:
|
|
|
+#+LINK_UP:
|
|
|
+#+LINK_HOME:
|
|
|
|
|
|
* Start up
|
|
|
Org-mode LaTeX export is easy. Place the following code in your
|
|
@@ -25,7 +25,7 @@ Org-mode LaTeX export is easy. Place the following code in your
|
|
|
(add-to-list 'org-latex-classes
|
|
|
'("article"
|
|
|
"\\documentclass{article}"
|
|
|
- ("\\section{%s}" . "\\section*{%s}")))
|
|
|
+ ("\\section{%s}" . "\\section*{%s}")))
|
|
|
#+end_src
|
|
|
|
|
|
This tells the Org-mode LaTeX exporter to use the standard LaTeX
|
|
@@ -123,12 +123,12 @@ Here is a standard setup for export to a LaTeX book class:
|
|
|
Then, in the Org file with a book-full of notes, add this line:
|
|
|
|
|
|
#+begin_src org
|
|
|
- #+LaTeX_CLASS: book
|
|
|
+ #+LaTeX_CLASS: book
|
|
|
#+end_src
|
|
|
|
|
|
<<koma-script>>
|
|
|
A useful set of alternatives is the [[http://www.komascript.de/][KOMA script]] classes. These have a
|
|
|
-somewhat more modern design than the standard LaTeX classes.
|
|
|
+somewhat more modern design than the standard LaTeX classes.
|
|
|
|
|
|
For example, the KOMA script article class can be configured in =.emacs=:
|
|
|
|
|
@@ -161,7 +161,7 @@ You can pass options to the LaTeX =\documentclass= macro by putting a
|
|
|
line like this in your Org-mode file:
|
|
|
|
|
|
#+begin_src org :exports code
|
|
|
- #+LaTeX_CLASS_OPTIONS: [a4paper,twoside,twocolumn]
|
|
|
+ #+LaTeX_CLASS_OPTIONS: [a4paper,twoside,twocolumn]
|
|
|
#+end_src
|
|
|
|
|
|
A useful option with the [[koma-script][KOMA script]] classes typesets table captions
|
|
@@ -170,7 +170,7 @@ exported by Org-mode above the table. The following option to the
|
|
|
[[koma-script][KOMA script]] classes accomplishes this.
|
|
|
|
|
|
#+begin_src org
|
|
|
- #+LaTeX_CLASS_OPTIONS: [captions=tableheading]
|
|
|
+ #+LaTeX_CLASS_OPTIONS: [captions=tableheading]
|
|
|
#+end_src
|
|
|
|
|
|
* Using Custom Classes
|
|
@@ -178,12 +178,12 @@ If the user has custom LaTeX document classes that conflict with the
|
|
|
default packages or that only require a few of the default packages to
|
|
|
support all features of the LaTeX exporter, then this can be handled
|
|
|
in =.emacs= using [DEFAULT-PACKAGES], [NO-DEFAULT-PACKAGES],
|
|
|
-[PACKAGES], [NO-PACKAGES], [EXTRA], [NO-EXTRA].
|
|
|
+[PACKAGES], [NO-PACKAGES], [EXTRA], [NO-EXTRA].
|
|
|
|
|
|
Here is a simple example that uses an experimental [[https://orgmode.org/worg/org-contrib/babel/examples/article-class.html][LaTeX class]][fn:3] that
|
|
|
supports the Org-mode requirements and leaves open the possibility of
|
|
|
adding file specific packages:
|
|
|
-
|
|
|
+
|
|
|
#+begin_src emacs-lisp
|
|
|
(add-to-list 'org-latex-classes
|
|
|
'("org-article"
|
|
@@ -224,7 +224,7 @@ perhaps the most flexible way to set up LaTeX export. Since the
|
|
|
example only calls it if it would add a LaTeX class that isn't
|
|
|
already on the =org-latex-classes= list:
|
|
|
|
|
|
-#+begin_example
|
|
|
+#+begin_example
|
|
|
#+name: setup
|
|
|
#+begin_src emacs-lisp :results silent :exports none
|
|
|
(unless (find "per-file-class" org-latex-classes :key 'car
|
|
@@ -281,7 +281,7 @@ might look like this in =.emacs=:
|
|
|
(add-to-list 'org-latex-classes
|
|
|
'("per-file-class"
|
|
|
"\\documentclass{scrartcl}
|
|
|
- \\usepackage{graphicx}
|
|
|
+ \\usepackage{graphicx}
|
|
|
[NO-DEFAULT-PACKAGES]
|
|
|
[NO-PACKAGES]"
|
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
@@ -339,15 +339,15 @@ If you use a different TeX typesetting engine or would like to
|
|
|
customize how Org-mode produces the pdf file, then you will want to
|
|
|
modify the variable =org-latex-to-pdf-process=. This is a list of
|
|
|
strings, each of which contains a call to one of the TeX typesetting
|
|
|
-engines or to an auxiliary program, such as BibTeX, makeindex, etc.
|
|
|
+engines or to an auxiliary program, such as BibTeX, makeindex, etc.
|
|
|
|
|
|
For example, the shell script =texi2dvi= will run =pdflatex= as many
|
|
|
times as needed to build a pdf file successfully. The following code
|
|
|
in =.emacs= will instruct Org-mode to use =texi2dvi= when making a pdf
|
|
|
file. Note that you should check that =texi2dvi= is installed on your
|
|
|
system and that it works correctly before adding this code to your
|
|
|
-=.emacs=.
|
|
|
-
|
|
|
+=.emacs=.
|
|
|
+
|
|
|
#+name: texi2dvi
|
|
|
#+begin_src emacs-lisp :exports code
|
|
|
(setq org-latex-to-pdf-process '("texi2dvi --pdf --clean --verbose --batch %f"))
|
|
@@ -355,9 +355,9 @@ system and that it works correctly before adding this code to your
|
|
|
|
|
|
Note that =makeindex= and =bibtex= require a bit more effort to work
|
|
|
in this way because of path name issues. Nick Dokos suggested
|
|
|
-this fix, which specifies a path to one or more BibTeX =.bib= files:
|
|
|
+this fix, which specifies a path to one or more BibTeX =.bib= files:
|
|
|
|
|
|
-#+begin_example
|
|
|
+#+begin_example
|
|
|
,#+begin_src sh :exports none
|
|
|
BIBINPUTS=/path/to/bib/:$BIBINPUTS
|
|
|
export BIBINPUTS
|
|
@@ -382,7 +382,7 @@ material that shouldn't appear in the export; tags distinguish the
|
|
|
export parts from the non-export parts. This is the single
|
|
|
export case. It is also possible to use tags to specify multiple
|
|
|
export targets in a single Org-mode buffer. In the multiple export
|
|
|
-case, tags are resolved by a [[https://orgmode.org/org.html#Publishing][publishing management system]].
|
|
|
+case, tags are resolved by a [[https://orgmode.org/org.html#Publishing][publishing management system]].
|
|
|
|
|
|
** The Single Export Case
|
|
|
The tags used for the single export case are held in
|
|
@@ -417,7 +417,7 @@ entire buffer.
|
|
|
Once the scope of the tag's effect is grasped, the primary rule of using
|
|
|
select and exclude tags is obvious: only one type of tag may be used
|
|
|
for the trees of a buffer. If both types of tags are used for trees,
|
|
|
-how can Org-mode decide what to do with the unmarked trees?
|
|
|
+how can Org-mode decide what to do with the unmarked trees?
|
|
|
|
|
|
A corollary of this rule is that the other type of tag can only be
|
|
|
used in a subtree of the tagged tree in order to reverse the effect of
|
|
@@ -529,7 +529,7 @@ package [[file:../org-contrib/org-special-blocks.org][org-special-blocks]], whic
|
|
|
inside the block. For example, you can wrap an abstract in
|
|
|
|
|
|
: #+BEGIN_ABSTRACT
|
|
|
-: This is an *abstract* with ordinary =Org-mode= /markup/.
|
|
|
+: This is an *abstract* with ordinary =Org-mode= /markup/.
|
|
|
: #+END_ABSTRACT
|
|
|
|
|
|
For more complex cases, where you need to pass parameters or process
|
|
@@ -583,21 +583,21 @@ abbreviated versions, typically less than a line long, in the List of
|
|
|
Figures. In addition, many styles require that figure captions end
|
|
|
with a period; the caption passed to the List of Figures should not
|
|
|
end in a period.
|
|
|
-
|
|
|
+
|
|
|
The Org-mode =#+CAPTION:= macro handles an optional argument.
|
|
|
|
|
|
This construct:
|
|
|
|
|
|
: #+CAPTION[Short caption]: Long caption.
|
|
|
|
|
|
-exports:
|
|
|
+exports:
|
|
|
|
|
|
: \caption[Short caption]{Long caption.}
|
|
|
|
|
|
* Styling the Frontmatter
|
|
|
The Org-mode LaTeX exporter requires configuration to gain full access
|
|
|
to the LaTeX frontmatter formatting capacity.
|
|
|
-
|
|
|
+
|
|
|
** Abstract, contents, and lists of figures and tables
|
|
|
In the default configuration, the Org-mode LaTeX exporter includes a
|
|
|
function that sandwiches the LaTeX =\tableofcontents= command between
|
|
@@ -621,7 +621,7 @@ possible for the user to alter this behavior relatively easily.
|
|
|
|
|
|
#+name: format-no-toc
|
|
|
#+begin_src emacs-lisp :exports code
|
|
|
-(defun org-export-latex-no-toc (depth)
|
|
|
+(defun org-export-latex-no-toc (depth)
|
|
|
(when depth
|
|
|
(format "%% Org-mode is exporting headings to %s levels.\n"
|
|
|
depth)))
|
|
@@ -648,10 +648,10 @@ do this was posted to the Org-mode list by Nick Dokos:
|
|
|
|
|
|
#+begin_example
|
|
|
#+LATEX_HEADER: \input{mytitle}
|
|
|
-
|
|
|
+
|
|
|
* Foo
|
|
|
foo
|
|
|
-
|
|
|
+
|
|
|
* Bar
|
|
|
bar
|
|
|
#+end_example
|
|
@@ -673,7 +673,7 @@ FOO
|
|
|
mode, then one approach is to use =#+begin_latex ... #+end_latex=
|
|
|
and write the pseudo-code directly in LaTeX. This depends on the
|
|
|
LaTeX [[http://www.ctan.org/tex-archive/macros/latex/contrib/listings/][listings package]], which is one of the default packages used by
|
|
|
- Org-mode.
|
|
|
+ Org-mode.
|
|
|
|
|
|
Dan Davison provided this example on the Org-mode list:
|
|
|
|
|
@@ -699,7 +699,7 @@ fontify source code. This package appears to be actively maintained.
|
|
|
Both packages are included in the TeXLive and MacTeX LaTeX
|
|
|
distributions. If your distribution lacks one or the other, then
|
|
|
you'll need to check the documentation for instructions how to install
|
|
|
-them.
|
|
|
+them.
|
|
|
|
|
|
The two packages are structured somewhat differently, but it is
|
|
|
possible to configure Org-mode so that these differences are mostly
|
|
@@ -721,7 +721,7 @@ In this example, the minted package is specified in the
|
|
|
=#+LaTeX_HEADER:=. This is followed by a command to use the minted
|
|
|
style =emacs=, which colors source code in a way familiar to emacs
|
|
|
users. The final =#+LaTeX_HEADER:= line uses the =newminted= macro to
|
|
|
-set the font size for code blocks of =common-lisp=.
|
|
|
+set the font size for code blocks of =common-lisp=.
|
|
|
|
|
|
The source code block =setup-minted= includes emacs-lisp code that
|
|
|
might typically appear in .emacs, but can be useful in a source code
|
|
@@ -751,7 +751,7 @@ A Python source code block at the end illustrates how the default
|
|
|
emacs-style code differs from the specially formatted emacs-lisp
|
|
|
source code.
|
|
|
|
|
|
-#+begin_example
|
|
|
+#+begin_example
|
|
|
, #+LATEX_CLASS: article
|
|
|
, #+LaTeX_HEADER: \usepackage{minted}
|
|
|
, #+LaTeX_HEADER: \usemintedstyle{emacs}
|
|
@@ -779,7 +779,7 @@ source code.
|
|
|
x = str(y)
|
|
|
, #+end_src
|
|
|
#+end_example
|
|
|
-
|
|
|
+
|
|
|
When this example is exported (=C-c C-e d=) the resulting pdf file
|
|
|
contains two source code blocks nicely typeset and colored in a way
|
|
|
common to many emacs setups.
|
|
@@ -815,7 +815,7 @@ the options specified for =emacs-lisp= source code blocks. Finally,
|
|
|
the =latex= link type is used to call the new =python= command to
|
|
|
typeset an inline code snippet.
|
|
|
|
|
|
-#+begin_example
|
|
|
+#+begin_example
|
|
|
, #+LATEX_CLASS: article
|
|
|
, #+LaTeX_HEADER: \usepackage{listings}
|
|
|
, #+LaTeX_HEADER: \lstnewenvironment{common-lispcode}
|
|
@@ -868,7 +868,7 @@ caption and a label:
|
|
|
|
|
|
This has the great advantage of exporting cleanly to HTML, ASCII, and
|
|
|
other backends, but the amount of control over the results is somewhat
|
|
|
-limited.
|
|
|
+limited.
|
|
|
|
|
|
At the other extreme, you can create an arbitrarily complex LaTeX
|
|
|
table and wrap it in =#+BEGIN_LATEX:= ... =#+END_LATEX:=. This will
|
|
@@ -910,7 +910,7 @@ Note that the LaTeX environments responsible for handling the
|
|
|
information specified by =#+CAPTION:= and =#+LABEL:= are =table=,
|
|
|
=table*=, and =longtable=. If =tabular=, =tabularx=, and =tabulary=
|
|
|
are used by themselves, then they won't support captions and
|
|
|
-cross-references.
|
|
|
+cross-references.
|
|
|
|
|
|
** Table Rules
|
|
|
The tables in many high-quality publications use rules of different
|
|
@@ -948,7 +948,7 @@ Finally, create a LaTeX source block something like this:
|
|
|
: \footnotesize
|
|
|
: \caption{A table to test booktabs}
|
|
|
: \label{tab:test-table}
|
|
|
-: <<booktabs(table=test-table,align="lrX",env="tabularx",width="\\textwidth")>>
|
|
|
+: <<booktabs(table=test-table,align="lrX",env="tabularx",width="\\textwidth")>>
|
|
|
: \end{table}
|
|
|
: #+end_src
|
|
|
|
|
@@ -981,7 +981,7 @@ Library of Babel.
|
|
|
: \footnotesize
|
|
|
: \caption{The table caption without Org-mode markup}
|
|
|
: \label{tab:dates}
|
|
|
-: <<booktabs-notes(table=dates,notes=dates-fn,lspace=t,align="rcr",env="tabular")>>
|
|
|
+: <<booktabs-notes(table=dates,notes=dates-fn,lspace=t,align="rcr",env="tabular")>>
|
|
|
: \end{table}
|
|
|
: #+end_src
|
|
|
|
|
@@ -990,7 +990,7 @@ except it accepts a second Org-mode table that contains the table
|
|
|
notes. Remember that both of these Org-mode tables are sent to
|
|
|
=orgtbl-to-generic= so Org-mode markup within them won't give the
|
|
|
results you might expect. Instead, the table entries use LaTeX
|
|
|
-markup.
|
|
|
+markup.
|
|
|
|
|
|
: #+tblname: dates
|
|
|
: | One\fn{1} | Two\fn{2} | Three\fn{3} |
|
|
@@ -1064,7 +1064,7 @@ compact =paralist= equivalents:
|
|
|
|
|
|
: #+LaTeX_HEADER: \let\itemize\compactitem
|
|
|
: #+LaTeX_HEADER: \let\description\compactdesc
|
|
|
-: #+LaTeX_HEADER: \let\enumerate\compactenum
|
|
|
+: #+LaTeX_HEADER: \let\enumerate\compactenum
|
|
|
|
|
|
With these settings, all the lists in the Org-mode document will be
|
|
|
exported in compact form.
|
|
@@ -1127,40 +1127,40 @@ to match fonts in each set.
|
|
|
|
|
|
Bera is the LaTeX version of the Bitstream's Vera family of fonts.
|
|
|
The family includes serif, sans-serif, and monospace fonts designed to
|
|
|
-work well with one another.
|
|
|
+work well with one another.
|
|
|
|
|
|
-: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
+: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
: #+LaTeX_HEADER: \usepackage[scaled]{beraserif}
|
|
|
-: #+LaTeX_HEADER: \usepackage[scaled]{berasans}
|
|
|
+: #+LaTeX_HEADER: \usepackage[scaled]{berasans}
|
|
|
: #+LaTeX_HEADER: \usepackage[scaled]{beramono}
|
|
|
|
|
|
** Charter
|
|
|
<<charter-font>>
|
|
|
|
|
|
-[[http://en.wikipedia.org/wiki/Bitstream_Charter][Charter]] was designed to reproduce well on low-resolution 300 dpi
|
|
|
+[[https://en.wikipedia.org/wiki/Bitstream_Charter][Charter]] was designed to reproduce well on low-resolution 300 dpi
|
|
|
printers. It is paired here with Helvetica and Courier, like [[times-font][Times]],
|
|
|
for which it is an alternative. Helvetica is set a bit smaller to
|
|
|
match the shape of the Charter font. These fonts conflict with the
|
|
|
=amssymb== package.
|
|
|
|
|
|
-: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
+: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
: #+LaTeX_HEADER: \usepackage[bitstream-charter]{mathdesign}
|
|
|
-: #+LaTeX_HEADER: \usepackage[scaled=.9]{helvet}
|
|
|
+: #+LaTeX_HEADER: \usepackage[scaled=.9]{helvet}
|
|
|
: #+LaTeX_HEADER: \usepackage{courier} % tt
|
|
|
|
|
|
** Garamond
|
|
|
<<garamond-font>>
|
|
|
|
|
|
-[[http://en.wikipedia.org/wiki/Garamond][Garamond]] refers to a group of old-style serif typefaces and is named
|
|
|
+[[https://en.wikipedia.org/wiki/Garamond][Garamond]] refers to a group of old-style serif typefaces and is named
|
|
|
after the sixteenth-century type designer, Claude Garamond. It is an
|
|
|
elegant typeface. Garamond requires a bit more leading than normal.
|
|
|
The sans-serif font is Latin Modern and the typewriter font is
|
|
|
Courier. Both were chosen to match the shape and stroke weight of
|
|
|
Garamond.
|
|
|
|
|
|
-: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
+: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
: #+LaTeX_HEADER: \usepackage[urw-garamond]{mathdesign}
|
|
|
-: #+LaTeX_HEADER: \usepackage{lmodern}
|
|
|
+: #+LaTeX_HEADER: \usepackage{lmodern}
|
|
|
: #+LaTeX_HEADER: \usepackage{courier}
|
|
|
: #+LaTeX_HEADER: \linespread{1.0609}
|
|
|
|
|
@@ -1170,7 +1170,7 @@ Garamond.
|
|
|
The [[http://tug.ctan.org/pkg/kpfonts][KP font family]] is produced by Christophe Caignaert for the
|
|
|
Johannes Kepler project. The family supports math.
|
|
|
|
|
|
-: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
+: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
: #+LaTeX_HEADER: \usepackage{kpfonts}
|
|
|
|
|
|
** Libertine
|
|
@@ -1181,11 +1181,11 @@ replacement for Times New Roman and includes a companion sans-serif
|
|
|
font. It was used to typeset the Wikipedia logo. The monospace
|
|
|
typewriter font is Latin Modern.
|
|
|
|
|
|
-: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
+: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
: #+LaTeX_HEADER: \usepackage{libertine}
|
|
|
: #+LaTeX_HEADER: \renewcommand*\oldstylenums[1]{{\fontfamily{fxlj}\selectfont #1}}
|
|
|
: #+LaTeX_HEADER: \usepackage{lmodern}
|
|
|
-** Nimbus
|
|
|
+** Nimbus
|
|
|
<<nimbus-font>>
|
|
|
|
|
|
The Nimbus font set uses fonts from the [[http://www.gust.org.pl/projects/e-foundry/tex-gyre/][Tex-Gyre]] distribution, which
|
|
@@ -1203,7 +1203,7 @@ Cursor, which is a Courier replacement.
|
|
|
** Palatino
|
|
|
<<palatino-font>>
|
|
|
|
|
|
-The beautiful, old-style serif font, [[http://en.wikipedia.org/wiki/Palatino][Palatino]], was designed by [[http://en.wikipedia.org/wiki/Herman_Zapf][Herman
|
|
|
+The beautiful, old-style serif font, [[https://en.wikipedia.org/wiki/Palatino][Palatino]], was designed by [[https://en.wikipedia.org/wiki/Herman_Zapf][Herman
|
|
|
Zapf]]. It is somewhat heavier and easier to read than [[garamond-font][Garamond]].
|
|
|
Palatino gets a bit more leading than normal. It is paired here with
|
|
|
Helvetica and Courier, as is [[times-font][Times]], for which it is an alternative.
|
|
@@ -1222,31 +1222,31 @@ font, URW Nimbus Sans, a Helvetica clone, for the sans-serif font,
|
|
|
and URW Nimbus Mono, a Courier clone, for the typewriter font. This
|
|
|
is a standard set of common typefaces typically used in scientific
|
|
|
publications. All of the fonts should be included in a typical LaTeX
|
|
|
-distribution.
|
|
|
+distribution.
|
|
|
|
|
|
-[[http://en.wikipedia.org/wiki/Times_Roman][Times New Roman]] was designed by [[http://en.wikipedia.org/wiki/Stanley_Morison][Stanley Morison]] for /The Times/ of
|
|
|
+[[https://en.wikipedia.org/wiki/Times_Roman][Times New Roman]] was designed by [[https://en.wikipedia.org/wiki/Stanley_Morison][Stanley Morison]] for /The Times/ of
|
|
|
London during a redesign of the newspaper prompted, in part, by
|
|
|
-Morison's criticism of its typography in 1929. [[http://en.wikipedia.org/wiki/Helvetica][Helvetica]] was
|
|
|
-developed in 1957 by [[http://en.wikipedia.org/wiki/Max_Miedinger][Max Miedinger]]. Helvetica looks better with Times
|
|
|
-if it is set slightly smaller than the serif font. [[http://en.wikipedia.org/wiki/Courier_(typeface)][Courier]] was
|
|
|
+Morison's criticism of its typography in 1929. [[https://en.wikipedia.org/wiki/Helvetica][Helvetica]] was
|
|
|
+developed in 1957 by [[https://en.wikipedia.org/wiki/Max_Miedinger][Max Miedinger]]. Helvetica looks better with Times
|
|
|
+if it is set slightly smaller than the serif font. [[https://en.wikipedia.org/wiki/Courier_(typeface)][Courier]] was
|
|
|
designed by Howard Kettler in 1955 for use in IBM typewriters.
|
|
|
|
|
|
: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
-: #+LaTeX_HEADER: \usepackage{mathptmx}
|
|
|
-: #+LaTeX_HEADER: \usepackage[scaled=.90]{helvet}
|
|
|
+: #+LaTeX_HEADER: \usepackage{mathptmx}
|
|
|
+: #+LaTeX_HEADER: \usepackage[scaled=.90]{helvet}
|
|
|
: #+LaTeX_HEADER: \usepackage{courier}
|
|
|
|
|
|
** Utopia
|
|
|
<<utopia-font>>
|
|
|
|
|
|
-[[http://en.wikipedia.org/wiki/Utopia_(typeface)][Utopia]] is a transitional serif font designed by [[http://en.wikipedia.org/wiki/Robert_Slimbach][Robert Slimbach]] for
|
|
|
+[[https://en.wikipedia.org/wiki/Utopia_(typeface)][Utopia]] is a transitional serif font designed by [[https://en.wikipedia.org/wiki/Robert_Slimbach][Robert Slimbach]] for
|
|
|
Adobe in 1989. It became free software in 2006. It is paired here
|
|
|
with the Bera sans serif and monospaced fonts. Note that the Utopia
|
|
|
font clashes with the =amssymb= package.
|
|
|
|
|
|
-: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
+: #+LaTeX_HEADER: \usepackage[T1]{fontenc}
|
|
|
: #+LaTeX_HEADER: \usepackage[adobe-utopia]{mathdesign}
|
|
|
-: #+LaTeX_HEADER: \usepackage[scaled]{berasans}
|
|
|
+: #+LaTeX_HEADER: \usepackage[scaled]{berasans}
|
|
|
: #+LaTeX_HEADER: \usepackage[scaled]{beramono}
|
|
|
|
|
|
* Cross-references
|
|
@@ -1396,7 +1396,7 @@ includes a description.
|
|
|
|
|
|
#+name: define-citep-link
|
|
|
#+begin_src emacs-lisp :results silent
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"citep" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1409,7 +1409,7 @@ includes a description.
|
|
|
|
|
|
#+name: define-citet-link
|
|
|
#+begin_src emacs-lisp :results silent
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"citet" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1422,7 +1422,7 @@ includes a description.
|
|
|
|
|
|
#+name: define-citealt-link
|
|
|
#+begin_src emacs-lisp :results silent
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"citealt" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1434,8 +1434,8 @@ includes a description.
|
|
|
#+end_src
|
|
|
|
|
|
#+name: define-citealp-link
|
|
|
-#+begin_src emacs-lisp
|
|
|
- (org-add-link-type
|
|
|
+#+begin_src emacs-lisp
|
|
|
+ (org-add-link-type
|
|
|
"citealp" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1447,8 +1447,8 @@ includes a description.
|
|
|
#+end_src
|
|
|
|
|
|
#+name: define-citealtstar-link
|
|
|
-#+begin_src emacs-lisp
|
|
|
- (org-add-link-type
|
|
|
+#+begin_src emacs-lisp
|
|
|
+ (org-add-link-type
|
|
|
"citealt*" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1460,8 +1460,8 @@ includes a description.
|
|
|
#+end_src
|
|
|
|
|
|
#+name: define-citealpstar-link
|
|
|
-#+begin_src emacs-lisp
|
|
|
- (org-add-link-type
|
|
|
+#+begin_src emacs-lisp
|
|
|
+ (org-add-link-type
|
|
|
"citealp*" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1473,8 +1473,8 @@ includes a description.
|
|
|
#+end_src
|
|
|
|
|
|
#+name: define-citepstar-link
|
|
|
-#+begin_src emacs-lisp
|
|
|
- (org-add-link-type
|
|
|
+#+begin_src emacs-lisp
|
|
|
+ (org-add-link-type
|
|
|
"citep*" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1486,8 +1486,8 @@ includes a description.
|
|
|
#+end_src
|
|
|
|
|
|
#+name: define-citetstar-link
|
|
|
-#+begin_src emacs-lisp
|
|
|
- (org-add-link-type
|
|
|
+#+begin_src emacs-lisp
|
|
|
+ (org-add-link-type
|
|
|
"citet*" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1501,15 +1501,15 @@ includes a description.
|
|
|
|
|
|
*** Standard biblatex citation commands
|
|
|
|
|
|
-The standard biblatex citation commands have the following syntax:
|
|
|
+The standard biblatex citation commands have the following syntax:
|
|
|
\command[⟨prenote⟩][⟨postnote⟩]{⟨keys⟩}
|
|
|
|
|
|
They have been implemented by parsing the description part of the link
|
|
|
on a semicolon, so that, e.g.,
|
|
|
=[[cite:foo][postnote;prenote]]= becomes
|
|
|
=\cite[prenote][postnote]{foo}=. Note that =[[cite:foo]]= and
|
|
|
-=[[cite:foo][;]]= are functionally equivalent.
|
|
|
-
|
|
|
+=[[cite:foo][;]]= are functionally equivalent.
|
|
|
+
|
|
|
#+name: define-standard-biblatex-commands
|
|
|
#+begin_src emacs-lisp :noweb yes :results silent :exports code
|
|
|
<<define-biblatex-cite-link>>
|
|
@@ -1523,7 +1523,7 @@ on a semicolon, so that, e.g.,
|
|
|
|
|
|
#+name: define-biblatex-cite-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"cite" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1539,7 +1539,7 @@ on a semicolon, so that, e.g.,
|
|
|
|
|
|
#+name: define-biblatex-cap-cite-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"Cite" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1555,7 +1555,7 @@ on a semicolon, so that, e.g.,
|
|
|
|
|
|
#+name: define-biblatex-parencite-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"parencite" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1571,7 +1571,7 @@ on a semicolon, so that, e.g.,
|
|
|
|
|
|
#+name: define-biblatex-cap-parencite-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"Parencite" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1587,7 +1587,7 @@ on a semicolon, so that, e.g.,
|
|
|
|
|
|
#+name: define-biblatex-footcite-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"footcite" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1603,7 +1603,7 @@ on a semicolon, so that, e.g.,
|
|
|
|
|
|
#+name: define-biblatex-footcitetext-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"footcitetext" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1635,7 +1635,7 @@ ship with biblatex.
|
|
|
|
|
|
#+name: define-biblatex-textcite-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"textcite" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1651,7 +1651,7 @@ ship with biblatex.
|
|
|
|
|
|
#+name: define-biblatex-cap-textcite-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"Textcite" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1667,7 +1667,7 @@ ship with biblatex.
|
|
|
|
|
|
#+name: define-biblatex-smartcite-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"smartcite" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1683,7 +1683,7 @@ ship with biblatex.
|
|
|
|
|
|
#+name: define-biblatex-cap-smartcite-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"Smartcite" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1699,7 +1699,7 @@ ship with biblatex.
|
|
|
|
|
|
#+name: define-biblatex-citestar-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"cite*" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1715,7 +1715,7 @@ ship with biblatex.
|
|
|
|
|
|
#+name: define-biblatex-parencitestar-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"parencite*" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1731,7 +1731,7 @@ ship with biblatex.
|
|
|
|
|
|
#+name: define-biblatex-supercite-link
|
|
|
#+begin_src emacs-lisp :results silent :exports code
|
|
|
- (org-add-link-type
|
|
|
+ (org-add-link-type
|
|
|
"supercite" 'ebib
|
|
|
(lambda (path desc format)
|
|
|
(cond
|
|
@@ -1750,10 +1750,8 @@ problem implementing the publishing project.
|
|
|
Org-mode mailing list under the heading =text color + highlight= (!).
|
|
|
There was a lively discussion there, to which the ideas of
|
|
|
Samuel Wales, Christian Moe and Eric Schulte contributed directly to
|
|
|
-this implementation.
|
|
|
+this implementation.
|
|
|
[fn:3] The results of this experiment are now included in this
|
|
|
-document.
|
|
|
+document.
|
|
|
[fn:4] The =xcolor= manual is an education in color management and is
|
|
|
highly recommended reading.
|
|
|
-
|
|
|
-
|