So I know that a common technique in typography to avoid hyphens at a line break is to adjust the spacing of words and letters slightly. I was not aware of LaTeX doing this until today, but now it is causing me a problem.
EDIT: After adding tags, I see that this phenomenon of letter spacing is called "tracking".
I am writing up a homework, where the parts look like this:
\textbf{a.} \hspace{5 pt} {\color{NavyBlue} Does the above tweak work? If yes, then
prove it, if not, then provide a counter example.}
\textbf{b.} \hspace{5 pt} {\color{NavyBlue} Implement the above version of the Bakery
algorithm in Java, and dependent on your answer to part (a) either show a set of
(say 4) threads reciting the declaration of independence cohesively, or else not.}
The problem is that the "Does" and the "Implement" are not aligned with each other, because it appears that the spacing thing I mentioned above is pushing the position of "Implement" farther forward. Here's a screenshot:
Is there a command I can use to allow hyphenation instead of the adjusted spacing, so that the beginnings line up properly?
Here's a MWE:
\documentclass[a4 paper,11pt]{article}
\usepackage{amsmath, amsfonts, amssymb, parskip, dsfont, amsthm, wasysym, mathrsfs}
\usepackage{graphicx}
\usepackage[usenames, dvipsnames]{xcolor}
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{mathrsfs}
\usepackage[normalem]{ulem}
\usepackage[breaklinks=true]{hyperref}
\usepackage{soul, color} % for highlighting
\usepackage{pifont} % for cool symbols in text mode
\usepackage{changepage} % for block quotes -- \begin{addmargin}[left][right]
\begin{document}
\textbf{a.} \hspace{5 pt} {\color{NavyBlue} Does the above tweak work? If yes, then
prove it, if not, then provide a counter example.}
\textbf{b.} \hspace{5 pt} {\color{NavyBlue} Implement the above version of the Bakery
algorithm in Java, and dependent on your answer to part (a) either show a set of
(say 4) threads reciting the declaration of independence cohesively, or else not.}
\end{document}