LaTeX: Prevent line break in a span of text

后端 未结 5 1367
离开以前
离开以前 2021-01-30 06:07

How can I prevent LaTeX from inserting linebreaks in my \\texttt{...} or \\url{...} text regions? There\'s no spaces inside I can replace with ~

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-30 06:38

    Also, if you have two subsequent words in regular text and you want to avoid a line break between them, you can use the ~ character.

    For example:

    As we can see in Fig.~\ref{BlaBla}, there is nothing interesting to see. A~better place..
    

    This can ensure that you don't have a line starting with a figure number (without the Fig. part) or with an uppercase A.

提交回复
热议问题