Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

microtype problem in LaTeX #1549

Closed
lemzwerg opened this issue Aug 18, 2014 · 2 comments
Closed

microtype problem in LaTeX #1549

lemzwerg opened this issue Aug 18, 2014 · 2 comments

Comments

@lemzwerg
Copy link

Pandoc uses the 'microtype' package for LaTeX output, if available. It also uses \texttt instead of a \verbatim-like command since the latter is fragile. However, microtype settings are applied to typewriter fonts, too, which is a bad idea for pandoc's usage. In particular, if you have something like

`--foo`

at the beginning of a line within a paragraph, the first dash protrudes into the left margin, which is ugly.

Consequently, I suggest to disable microtype protrusion settings for typewriter fonts. This can be done most easily by selecting a more restrictive microtype font set, right after loading the microtype package:

\UseMicrotypeSet[protrusion]{basicmath}
@jgm
Copy link
Owner

jgm commented Aug 19, 2014

Thanks! I was just wondering about basicmath -- that includes regular text, right? I see there's also a basictext, but I couldn't figure out if it's different from basicmath.

@lemzwerg
Copy link
Author

basicmath is essentially the second-least restrictive font set. basictext is a subset of basicmath.

All pre-defined font sets are described in the microtype manual – you might define your own if you think that basicmath is too restrictive.

@jgm jgm closed this as completed in 27ea344 Aug 20, 2014
jgm added a commit that referenced this issue Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants