Skip to content

Commit

Permalink
set Luxi Mono and Heuristica (Utopia) as the default fonts for
Browse files Browse the repository at this point in the history
monospace and main text respectively for PDF output.

Added notes on required packages to README
  • Loading branch information
iainmcgin committed Feb 20, 2013
1 parent 1352994 commit 54273a3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
27 changes: 23 additions & 4 deletions README.md
Original file line number Original file line Diff line number Diff line change
@@ -1,18 +1,37 @@
Scala Language Reference as Pandoc Markdown - Notes 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 - All files must be saved as UTF-8: ensure your editors are configured
appropriately. 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 - Use of the appropriate unicode characters instead of the latex modifiers
for accents, etc. is necessary. For example, é instead of \'e. Make use of 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 the fact that the content is unicode, google the necessary characters if
you don't know how to type them directly. 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 Conversion from LaTeX - Guidelines
---------------------------------- ----------------------------------
Expand Down
11 changes: 3 additions & 8 deletions resources/scala-ref-template.latex
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,5 @@
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$]{$documentclass$} \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$]{$documentclass$}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{mathrsfs} \usepackage{mathrsfs}
\usepackage{amssymb,amsmath} \usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex} \usepackage{ifxetex,ifluatex}
Expand All @@ -21,15 +20,11 @@ $endif$
\fi \fi
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{€} \newcommand{\euro}{€}
$if(mainfont)$ \setmainfont{Heuristica Regular}
\setmainfont{$mainfont$} \setmonofont[Scale=0.8]{Luxi Mono}
$endif$
$if(sansfont)$ $if(sansfont)$
\setsansfont{$sansfont$} \setsansfont{$sansfont$}
$endif$ $endif$
$if(monofont)$
\setmonofont{$monofont$}
$endif$
$if(mathfont)$ $if(mathfont)$
\setmathfont{$mathfont$} \setmathfont{$mathfont$}
$endif$ $endif$
Expand Down

0 comments on commit 54273a3

Please sign in to comment.