Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Use a real monospace font #2

Closed
Kwpolska opened this issue May 27, 2017 · 8 comments
Closed

Use a real monospace font #2

Kwpolska opened this issue May 27, 2017 · 8 comments

Comments

@Kwpolska
Copy link

Computer Modern is a really good font, but code listings are meant to be written in a monospace font. This thing looks bad with uneven tracking, and no way to tell some characters apart.

Also, the .pdf file is hard to discover.

@Dvlv
Copy link
Owner

Dvlv commented May 28, 2017

Font is corrected, let me know if you prefer it now.

The pdf is in the root of the repo, it's the only file besdies the readme. How would you suggest I make it more obvious?

@Kwpolska
Copy link
Author

Link to it from the README.

That’s not what I expected. Computer Modern Roman is fine for body text. But code should be typeset in a monospace font. Not a sans font, not a serif font. See PR.

@nivaca
Copy link

nivaca commented May 28, 2017

Simply do this:

Change line 30 from:

basicstyle=\footnotesize

to:

basicstyle=\ttfamily\footnotesize

I would also comment line 4:

% \usepackage{helvet}

or replace it with a nicer font.

(Anyways, thanks for the book!)

@Kwpolska
Copy link
Author

(PR #3 is concerned with that, and using DejaVu Sans Mono for mono text)

@Dvlv
Copy link
Owner

Dvlv commented May 29, 2017

Thanks both of you for the help. You can likely tell this is my first Latex project!

The fonts should be all sorted now, and I've added a link in the README.

@Kwpolska
Copy link
Author

One more TeX hint, by the way: don’t use \vspace{5mm} all over the document, just set up the parskip package.

@Dvlv
Copy link
Owner

Dvlv commented May 29, 2017

Thanks Kwpolska

@nivaca
Copy link

nivaca commented May 29, 2017

@Kwpolska I would prefer to use \bigskip rather, if really needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants