Permalink
Browse files

set Luxi Mono and Heuristica (Utopia) as the default fonts for

monospace and main text respectively for PDF output.

Added notes on required packages to README
  • Loading branch information...
1 parent 1352994 commit 54273a3e97145841eb3f745888dbdc689bd59d1c @iainmcgin iainmcgin committed Feb 20, 2013
Showing with 26 additions and 12 deletions.
  1. +23 −4 README.md
  2. +3 −8 resources/scala-ref-template.latex
View
@@ -1,18 +1,37 @@
Scala Language Reference as Pandoc Markdown - Notes
===================================================
-General
+Prerequisites
+-------------
+
+In order to build the scala reference, you will require the following
+software packages:
+
+- Pandoc v1.10.1 or higher (http://johnmacfarlane.net/pandoc/)
+- TeX-Live (https://www.tug.org/texlive/)
+- The luximono font - this does not ship with TeX-Live by default due to
+ license restrictions, but it can be easily installed using
+ the ["getnonfreefonts" script](https://www.tug.org/fonts/getnonfreefonts/).
+ A short guide on using this to get luximono can be found on the
+ TeX Stackexchange [here](http://tex.stackexchange.com/questions/22157/how-to-use-the-luximono-font-with-tex-live).
+- The Heuristica font - this is an extension of the free version of the Adobe
+ Utopia font. This must be installed as a system font for the PDF to
+ build, and you can find the appropriate font package for your system
+ here: https://code.google.com/p/evristika/
+
+
+General Advice for editors
-------
- All files must be saved as UTF-8: ensure your editors are configured
appropriately.
+- Leave two empty lines between each section, regardless of level of nesting.
+ Leave two empty lines at the end of every markdown file that forms a part
+ of the main specification when compiled.
- Use of the appropriate unicode characters instead of the latex modifiers
for accents, etc. is necessary. For example, é instead of \'e. Make use of
the fact that the content is unicode, google the necessary characters if
you don't know how to type them directly.
-- Leave two empty lines between each section, regardless of level of nesting.
- Leave two empty lines at the end of every markdown file that forms a part
- of the main specification when compiled.
Conversion from LaTeX - Guidelines
----------------------------------
@@ -1,6 +1,5 @@
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$]{$documentclass$}
-\usepackage[T1]{fontenc}
-\usepackage{lmodern}
+
\usepackage{mathrsfs}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
@@ -21,15 +20,11 @@ $endif$
\fi
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{€}
-$if(mainfont)$
- \setmainfont{$mainfont$}
-$endif$
+ \setmainfont{Heuristica Regular}
+ \setmonofont[Scale=0.8]{Luxi Mono}
$if(sansfont)$
\setsansfont{$sansfont$}
$endif$
-$if(monofont)$
- \setmonofont{$monofont$}
-$endif$
$if(mathfont)$
\setmathfont{$mathfont$}
$endif$

0 comments on commit 54273a3

Please sign in to comment.