Change cheatsheet color scheme to a light one

So that it's more printer-friendly.

Resolves issue: #1162

Other changes:

- README: Cheatsheet: Document how to generate PNGs
- README: Improve "LaTeX" typography
- prelude-cheatsheet.pdf: Repl. file copy w/ symlink
This commit is contained in:
Jakub Valenta 2018-04-06 17:21:25 +02:00 committed by Bozhidar Batsov
parent 26d923518c
commit 26d751a8af
5 changed files with 16 additions and 6 deletions

View file

@ -494,13 +494,22 @@ Use `C-h k <key>` (`<key>` are the ones listed on the left) or `C-h f <function>
#### PDF generation
Install [latex](https://www.latex-project.org/get/)
Install [LaTeX](https://www.latex-project.org/get/)
``` bash
cd modules/doc
pdflatex prelude-cheatsheet.tex
```
#### PNG generation
Install [Poppler](https://poppler.freedesktop.org/)
``` bash
cd modules/doc
pdftocairo -png -singlefile prelude-cheatsheet.pdf cheatsheet
```
## Automatic package installation
The default Prelude installation comes with a bare minimum of

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 476 KiB

Binary file not shown.

View file

@ -12,15 +12,16 @@
\usepackage{calc}
\usepackage{tcolorbox}
\pagecolor{black}
\definecolor{default}{HTML}{333333}
\definecolor{heading}{HTML}{000000}
\definecolor{command}{HTML}{666666}
\definecolor{key}{HTML}{268BD2}
\definecolor{heading}{HTML}{5DCACB}
\definecolor{command}{HTML}{D8DA78}
\renewcommand\section[1]{\bigskip\par\textbf{\color{heading}\large#1}\smallskip}
\renewcommand\subsection[1]{\smallskip\par\textbf{\color{heading}#1}}
\newcommand\humanreadable[1]{{\par\color{orange}\small\sffamily#1}}
\newcommand\humanreadable[1]{{\par\color{default}\small\sffamily#1}}
\newcommand\meta[1]{\textlangle\textit{#1}\textrangle}
\newcommand\keyify[1]{\color{pink}\ttfamily#1}
\newcommand\keyify[1]{\color{key}\ttfamily#1}
\newlist{keylist}{description}{1}
\setlist[keylist]{
topsep = 1pt,

Binary file not shown.

1
prelude-cheatsheet.pdf Symbolic link
View file

@ -0,0 +1 @@
modules/doc/prelude-cheatsheet.pdf