考虑这个例子:
\documentclass{report}
\usepackage{graphicx}
\usepackage{caption}
\begin{document}
\begin{itemize}
\item[efficiency] The ledenn and isolatiosdfsf sdfdsy is mead using the tag-and-probe method~\ref{fig:a}. This method uses owasdfn mass diasdf-sdfobjt redfnances Sadstudy electallk symme breallking and s\
edarch or he ggh. asfasdf ererer tyerher hhtyh eertyhrty gfbfghh erthgfha rwer wwerewr dfdsfdsgf tewrtert rdjty jejtyj rhrtrth ryreyrt jtythw. etewrt tert . weterte hHig in Fig. the Hig
\end{itemize}
\begin{figure}
\includegraphics[width=0.5\textwidth]{example-image-a}
\caption{A}
\label{fig:a}
\end{figure}
\end{document}
文本输出为:
为什么“效率”项中的第一行很突出?看来 Latex 有足够的自由来使右侧合理化。
答案1
单词的连字功能method
已通过在单词后添加硬空格来禁用。您有两个选择:手动重新插入连字点,或忍受与\sloppy
或相关的更宽的间隙sloppypar
。
\documentclass{report}
\usepackage{graphicx}
\usepackage{caption}
\begin{document}
\begin{itemize}
\item[efficiency] The ledenn and isolatiosdfsf sdfdsy is mead using the tag-and-probe me\-thod~\ref{fig:a}. This method uses owasdfn mass diasdf-sdfobjt redfnances Sadstudy electallk symme breallking and s\
edarch or he ggh. asfasdf ererer tyerher hhtyh eertyhrty gfbfghh erthgfha rwer wwerewr dfdsfdsgf tewrtert rdjty jejtyj rhrtrth ryreyrt jtythw. etewrt tert . weterte hHig in Fig. the Hig
\end{itemize}
\sloppy
\begin{itemize}
\item[efficiency] The ledenn and isolatiosdfsf sdfdsy is mead using the tag-and-probe method~\ref{fig:a}. This method uses owasdfn mass diasdf-sdfobjt redfnances Sadstudy electallk symme breallking and s\
edarch or he ggh. asfasdf ererer tyerher hhtyh eertyhrty gfbfghh erthgfha rwer wwerewr dfdsfdsgf tewrtert rdjty jejtyj rhrtrth ryreyrt jtythw. etewrt tert . weterte hHig in Fig. the Hig
\end{itemize}
\begin{figure}
\includegraphics[width=0.5\textwidth]{example-image-a}
\caption{A}
\label{fig:a}
\end{figure}
\end{document}