Skip to content

Commit 54273a3

Browse files
committed
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
1 parent 1352994 commit 54273a3

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
11
Scala Language Reference as Pandoc Markdown - Notes
22
===================================================
33

4-
General
4+
Prerequisites
5+
-------------
6+
7+
In order to build the scala reference, you will require the following
8+
software packages:
9+
10+
- Pandoc v1.10.1 or higher (http://johnmacfarlane.net/pandoc/)
11+
- TeX-Live (https://www.tug.org/texlive/)
12+
- The luximono font - this does not ship with TeX-Live by default due to
13+
license restrictions, but it can be easily installed using
14+
the ["getnonfreefonts" script](https://www.tug.org/fonts/getnonfreefonts/).
15+
A short guide on using this to get luximono can be found on the
16+
TeX Stackexchange [here](http://tex.stackexchange.com/questions/22157/how-to-use-the-luximono-font-with-tex-live).
17+
- The Heuristica font - this is an extension of the free version of the Adobe
18+
Utopia font. This must be installed as a system font for the PDF to
19+
build, and you can find the appropriate font package for your system
20+
here: https://code.google.com/p/evristika/
21+
22+
23+
General Advice for editors
524
-------
625

726
- All files must be saved as UTF-8: ensure your editors are configured
827
appropriately.
28+
- Leave two empty lines between each section, regardless of level of nesting.
29+
Leave two empty lines at the end of every markdown file that forms a part
30+
of the main specification when compiled.
931
- Use of the appropriate unicode characters instead of the latex modifiers
1032
for accents, etc. is necessary. For example, é instead of \'e. Make use of
1133
the fact that the content is unicode, google the necessary characters if
1234
you don't know how to type them directly.
13-
- Leave two empty lines between each section, regardless of level of nesting.
14-
Leave two empty lines at the end of every markdown file that forms a part
15-
of the main specification when compiled.
1635

1736
Conversion from LaTeX - Guidelines
1837
----------------------------------

resources/scala-ref-template.latex

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$]{$documentclass$}
2-
\usepackage[T1]{fontenc}
3-
\usepackage{lmodern}
2+
43
\usepackage{mathrsfs}
54
\usepackage{amssymb,amsmath}
65
\usepackage{ifxetex,ifluatex}
@@ -21,15 +20,11 @@ $endif$
2120
\fi
2221
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
2322
\newcommand{\euro}{€}
24-
$if(mainfont)$
25-
\setmainfont{$mainfont$}
26-
$endif$
23+
\setmainfont{Heuristica Regular}
24+
\setmonofont[Scale=0.8]{Luxi Mono}
2725
$if(sansfont)$
2826
\setsansfont{$sansfont$}
2927
$endif$
30-
$if(monofont)$
31-
\setmonofont{$monofont$}
32-
$endif$
3328
$if(mathfont)$
3429
\setmathfont{$mathfont$}
3530
$endif$

0 commit comments

Comments
 (0)