# Tag Info

## Hot answers tagged microtype

36

A number of answers: Firstly, microtypography is (in my book) the art of enhancing the appearance of a document while exhibiting the minimum degree of visual obtrubsion, that is, ideally, without even being recognisable: Characters with less optical weight should slightly protrude into the margin to make it appear more even, but they shouldn't stick in your ...

31

Interesting observation, really. The result you are seeing is indeed that microtype is stretching (most) lines and it isn't really surprising, but I don't think it could be called a fault of microtype that it isn't recognizing that it is in a ragged right context, because ragged2e is really working hard on hiding the fact. Standard LaTeX is using a brute ...

27

In XeLaTeX (or LuaLaTeX), if you are using an opentype/truetype font, you can just load it with the default ligature features (usually just liga) turned off. In standard LaTeX, the only safe solution that I know is to create special tfm files that do not contain ligatures. The new primitive, '\noligs' in pdftex 1.30 was created specifically so that you do ...

24

Always use it, it should improve full justification. If you want, you can tinker with the variables for expansion and protrusion. A good example where you can see what microtype does is here. Also the microtype documentation provides an interactive example of what each option does.

23

To avoid messing up anything else in a document, siunitx is set up to avoid loading font packages and the like. As such, it uses its 'own' version of the \textminus and \textmu, and sets up a minimal amount of support for that. However, that confuses microtype, as you've seen (it should be harmless). Loading textcomp 'fixes' this as siunitx then uses the ...

22

If you want to use kerning=french, then you need to disable the punctuation settings made by babel and leave no space before punctuation symbols. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,french]{babel} \frenchbsetup{AutoSpacePunctuation=false} \usepackage[babel=true, kerning=french]{microtype} ...

18

The following presents a solution for pdftex and Type 1 fonts. Since TeX does not offer any possibility to decompose a ligature into its constituent characters (this information is lost after they have been replaced by the ligature), we have to take the opposite approach: we loop over all glyph pairs in the fonts, typesetting them in a temporary box, and ...

18

If you are using XeTeX (or LuaTeX) then you are most likely using fontspec as well to load OpenType font, so the following should disable any ligatures in the loaded font: \setmainfont[Ligatures={NoRequired,NoCommon,NoContextual}]{Font Name} Else, see Taco's answer.

18

With version 2.5 of the microtype package, available on CTAN since 13 March 2013, the simple answer to my question is "use microtype". Thanks, Herbert and Joseph, for telling me that this can be done with the microtype package. I did know that microtype can do margin kerning, but I had always thought that this is only about punctuation. In reality, one ...

17

microtype has an optional argument that you can allow to shift the characters more to the right, e.g. [factor=1300] \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern,picture} \usepackage{microtype} \textwidth=3.85cm \begin{document} \itshape\noindent\makebox(0,0){\put(\textwidth,-2cm){\line(0,-1){80}}}% This is a small text. If jam is ...

16

Use the microtype package, loading it with [tracking=smallcaps] should take care of small caps For all-uppercase words you can use microtype's \textls, e.g. \newcommand{\versal}[1]{\textscale{0.9}{\textls*[80]{#1}}} (I came across this here, check the provided “Präambel”, the spacing/scaling might be font specific, so use with care and check your output, ...

16

How does one improve the typesetting of a document? There are no straightforward answers. Traditionally a number of craftsmen and professionals were involved in the publishing of a book. With what is now called "self-publishing" all these decisions now fall on the author's shoulder. The disappointing results can be viewed at Lulu.com Do you have to read ...

16

The following table from the documentation (microtype.pdf, p. 7) shows which of the micro-typographic features are available for the various engines: As can be seen in the last line, xetex only supports protrusion. Some time ago, it was rumoured that font expansion would be added to xetex, too, but it seems that there haven't been any developments in ...

15

The warning (now: info, see edit below) for missing font-specific settings is not a bug but a new feature in the latest microtype beta version. The fallback settings, which are used for fonts unknown to microtype, are by nature incomplete, quite conservative and in no way guaranteed to match all possible fonts; therefore, microtype now draws the user's ...

15

Your analysis is correct. A couple of years ago, the pdftex team has been discussing whether pdftex should indeed try harder. No clear conclusion transpired except that it would probably be too difficult to get it right in all cases, hence the issue was postponed for later consideration ... maybe too late for pdftex now, and to be passed on to luatex. ...

15

If you don't have access to document sources, some pdf viewers can show you what fonts are used. I've tested with AdobeReader and PDF-XChange-viewer and under Properties of the document you will find the list of fonts. Here you have the output from microtype manual under Xchange-viewer. Just a problem, then you need to find how to use them in your document. ...

15

Main microtype features can be enabled or disabled on the fly using the \microtypesetup command. In this case we need to locally disable character protrusion: \documentclass{article} \usepackage{microtype} \newenvironment{example}{\microtypesetup{protrusion=false}% \begin{quote}}{\end{quote}} \begin{document} text text text text text text text text text ...

14

With the current microtype from TeXlive 2011, you can do the following: \documentclass{article} \usepackage{fontspec,microtype} \defaultfontfeatures{Ligatures=TeX, Scale=MatchLowercase} \setmainfont[SmallCapsFeatures={LetterSpace=6}, Numbers={Proportional,OldStyle}]{Minion Pro} \setsansfont[LetterSpace=3, Numbers={Proportional,OldStyle}]{Myriad Pro} ...

14

Hm, I also use Minion Pro and Myriad Pro … this way: \documentclass[12pt]{scrbook} \usepackage[english]{babel} \usepackage{blindtext} \pdfprotrudechars=2 \pdfadjustspacing=2 \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \newfontfeature{Microtype}{protrusion=default;expansion=default;} \setmainfont[Microtype,Ligatures=TeX,Numbers=OldStyle]{Minion ...

14

The following quote from section 9 of the microtype manual suggests that the package author was aware of potential negative effects of font expansion and viewed the default behaviour stretch=20 as sensible: Expanding the fonts by more than 2%, i. e., setting a stretch limit of more than 20, should be justified by a typographically trained eye. If you are ...

14

Some time ago, I wanted to deactivate hyphenation completely (without switching to \raggedright). I found out that setting \pretolerance=10000 turns off the complete hyphenation mechanism: it tells TeX to not even look for hyphenation positions. In addition, there is the parameter \hyphenpenalty. For example, \hyphenpenalty=10000 will (probably) also ...

13

I'd regard this as a bug in csquotes. You can solve it by putting the following code into your preamble, but I can't say if this breaks other things. \makeatletter \def\csq@qclose@ii#1{% \ifdim\lastkern=\csq@omitmarker #1\csq@eqgroup \else \csq@addkern@close \ifodd\csq@qlevel \csq@thequote@oclose ...

12

It can depend on where you need to do this, but the standard methods for keeping text together should work for you: aaa bbb ccc ddd~eee~fff ... or aaa bbb ccc \mbox{ddd eee fff} ... Under no circumstances will ddd eee fff ever break, so you can write the entire organisation name with \mbox and it should do what you want.

12

You can change the default factor like this (5 is not a sensible value but shows the effect quite good: \documentclass[a4paper, 12pt, oneside, article]{memoir} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \newfontfeature{Microtype}{protrusion=default;expansion=default;} \directlua{fonts.protrusions.setups.default.factor=5} ...

11

It is my understanding that margin kerning does work but that font expansion doesn't. This is one of the reasons why I'm currently using pdflatex and not XeLaTeX: OpenType support in XeTeX is very good because of the fontspec package, but XeTeX is not fully compatible with microtype. You don't explain why you need XeTeX, so I'll explain some possible ...

11

I really have to apologise for the long delay on this answer. As you discovered this was an unintentional change made while a lot of the package was being re-implemented. I've spent some time today looking into how this could be resolved; I'm not really sure what the best option is, so I've reverted the package to the old behaviour (not the old code, though ...

11

In XeLaTeX with the fontspec package you can select a font with the LetterSpace feature: \newcommand\tracked[1]{% {\addfontfeature{LetterSpace=2}#1}} LetterSpace=s is an additional s/F space between letters where F is the font size. (I swear I once saw an example of letterspacing involving additional glue rather than just fixed space, but I can't see ...

11

kerning is not a "true-false" option. Its purpose is to add some kerning independently of the adjacent letters, for example to set the French semicolon that needs a space before it. However it's not working well: for example, the colon requires a normal interword space before and after it, and this space should stretch or shrink along with the other spaces ...

11

If you have a .tfm based font, so one of the classical fonts, you can examine the file. Say you want to know about pplr8t (Palatino Roman, T1 encoded). Then you can run this shell command tftopl pplr8t.tfm > pplr8t.pl In the pplr8t.pl file, look for LIGTABLE; this is a big chunk near the beginning of the file. If you run a grep search such as egrep ...

11

First of all, microtype will never issue an error message when it encounters a font that it doesn't know about, so it is always "compatible" in your sense. With regards to "effective": For protrusion of unknown fonts (Calibri being one of them), microtype will use fallback settings and write an info about this in the log file. These fallback settings (in ...

Only top voted, non community-wiki answers of a minimum length are eligible