I want to break a long word to the next line in a 2-columns acmart
template. The word is Sample_Super.Very.Uber.Long.Word
. I have tried with \hyphenation{Sample_Super-.Very-.Uber-.Long-.Word}
but it does not break the word.
Below is the sample on Overleaf:
\documentclass[sigconf]{acmart}
\usepackage[utf8]{inputenc}
\usepackage{hyphenat}
\hyphenation{Sample_Super-.Very-.Uber-.Long-.Word}
\title{test}
\begin{document}
\maketitle
\section{Introduction}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sample_Super.Very.Uber.Long.Word 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. 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.
\end{document}
I also got an error notification on Overleaf that says Improper \hyphenation will be flushed. Not a letter. even though the document still compiles. How do I set this rule? the same word can appear at many places so I'd like to set a global rule on this.
\hyphenation
entry?\hyphenation
pattern. What you can do is create a macro equivalent with explicitly defined hyphenation points, then always enter it using the macro. (This is not a limitation of Overleaf; it's built into TeX.).
It's actually some variable names.