Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
LaTeX: \reviewbreakall のようなナニカ
\makeatletter %!!!!!!!!!!!!!!!!!!!!!!!!! TeX code BEGIN
\hskip0pt plus 0.02em\relax
\makeatother %!!!!!!!!!!!!!!!!!!!!!!!!! TeX code END
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.

This comment has been minimized.

Copy link
Owner Author

commented Mar 15, 2019

  • 各文字の間に \hskip0pt plus 0.02em\relaxを挿入して出力する
  • ただし空白トークンを読んだ場合は\spaceを実行
    • だから空白は行分割可能になり、行分割すると空白は消える
  • グループ{...}はそのまま一かたまりで出力する
  • ~を読んだ場合も空白を出力し、この空白は行分割可能で、かつ行末行頭にあっても消えない


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.