Consider the code:
\documentclass[12pt]{book}
\usepackage{enumitem,xcolor}
\usepackage[T1]{polski}
\usepackage[tracking=true]{microtype} %This line must be commented out when using Xelatex to compile the Index
\usepackage[margin=.5in,paperwidth=4in,paperheight=6in]{geometry}
\textheight=4.95in \textwidth 3.00in
\newcommand{\longemdash}{{\fontfamily{cmss}\selectfont---}}
\usepackage[sfdefault]{cabin} % Sets cabin as the main font.
\usepackage{xparse} % NEEDED TO USE \NewDocumentCommand instead of \newcommand.
\definecolor{granite}{RGB}{103,103,103}
\newcommand{\fancyquote}[2]{%
\par{#1}\\[2pt]\hspace*{\fill}\longemdash{\fontfamily{qtm}\selectfont\textit{\textbf{#2}}}%
}
\newcommand{\funnyquote}[2]{%
\par{#1}\\[-10.5pt]\hspace*{\fill}\longemdash{\fontfamily{qtm}\selectfont\textit{\textbf{#2}}}%
}
\newlist{advice}{enumerate}{1}
\setlist[advice]{
label=\formatadvicenumber{\textbf{\color{granite}\arabic*}},
ref=\arabic*,
leftmargin=1.25em,
labelsep=.55em,
itemsep=1em,
wide=0pt, % Prevents numbers from entering the left-hand margin.
resume,
}
\NewDocumentCommand{\formatadvicenumber}{m}{%
\raisebox{\dimexpr1.35\ht\strutbox-\height}[0pt][0pt]{\LARGE #1}%
}
\begin{document}
\thispagestyle{empty}
\begin{advice}
\item \funnyquote{The more I think about language, the more it amazes me that people ever understand each other at all.}{Kurt G{\"{o}}del}
\end{advice}
\end{document}
which produces
However, when I comment out \usepackage[T1]{polski}
, I get
QUESTION: Can anyone suggest what may be causing the conflict in my code by invoking the Polski
package---which I have used occasionally for correctly typesetting certain Polish names---and the incorrect hyphenation?
Thank you.
\usepackage[T1]{polski}
with\usepackage[T1]{fontenc}
and\usepackage[polish]{babel}
. With this change, the word "more" will no longer get hyphenated.\usepackage{xparse} % NEEDED TO USE \NewDocumentCommand instead of \newcommand.
is false unless you have an old latex