I am using a document with Helvetica from the helvet package. I would like dashes not to protrude into the left margin. However, when I use SetProtrusion protrusion is disabled entirely:
\documentclass{article}
\usepackage{showframe}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[scaled]{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{microtype}
% \LoadMicrotypeFile{helvet}
\usepackage{lipsum}
\begin{document}
Quisque ullamcorper placerat ipsum. Cras nibh. Morbi a vel justo x --- test --- a --- ullamcorper placerat ipsum. Cras nibh. Morbi vel justo vitae
\lipsum
\end{document}
Edit: that is, if I add
\SetProtrusion{encoding = T1}{\textendash = {0,}, \textemdash = {0,}}
below \usepackage{microtype}
From the answer under Modifying (i.e., partially overriding) microtype's character protrusion settings for specific characters and looking at section 5.7 of the manual I figure I need to create a file mt-helvet.cfg file. I tried saving the microtype.cfg file as mt-helvet.cfg in my working directory, changing all protrusion settings on dashes to be 0 for the left margin; however, when I compile the document with \LoadMicrotypeFile{helvet} I get a document with no protrusion at all (i.e. identical to not loading microtype).
mt-helvet.cfgand the portions of the resulting.logfile that deal withmicrotypegenerally. – jon Apr 10 '16 at 04:44mt-helvet.cfgfile. The.logfiles contains numerous warnings likePackage microtype Warning: Redefining protrusion setall' on input line 51.` – Hugh Apr 10 '16 at 04:51