Skip to content

Commit

Permalink
Change cheatsheet color scheme to a light one
Browse files Browse the repository at this point in the history
So that it's more printer-friendly.

Resolves issue: bbatsov#1162

Other changes:

- README: Cheatsheet: Document how to generate PNGs
- README: Improve "LaTeX" typography
- prelude-cheatsheet.pdf: Repl. file copy w/ symlink
  • Loading branch information
jakubvalenta authored and bbatsov committed Apr 11, 2018
1 parent 26d9235 commit 26d751a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified modules/doc/cheatsheet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/doc/prelude-cheatsheet.pdf
Binary file not shown.
11 changes: 6 additions & 5 deletions modules/doc/prelude-cheatsheet.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Binary file removed prelude-cheatsheet.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions prelude-cheatsheet.pdf

0 comments on commit 26d751a

Please sign in to comment.