Sometimes I see questions talking about using "=, others just use \hyp{}. Are they the same thing?
For example, on these questions you find both "= and \hyp use:
- Hyphenation of words containing slash
- LaTeX not hyphenating properly, text running off page
- How to hyphenate a reference that has a lastname with a hyphen?
I tried creating this minimal example, but "= is not working:
\documentclass[10pt,a5paper,twoside]{article}
\usepackage{hyphenat}
\usepackage[english]{babel}
\begin{document}
\section{Show font}
Tests.
Encoding-encoding-encoding-encoding-encoding-encoding-encoding-encoding-encoding-encoding.
Encoding"=encoding"=encoding"=encoding"=encoding"=encoding"=encoding"=encoding"=encoding"=encoding.
Encoding\hyp{}encoding\hyp{}encoding\hyp{}encoding\hyp{}encoding\hyp{}encoding\hyp{}encoding\hyp{}encoding\hyp{}encoding\hyp{}encoding.
\end{document}


=but-and\hypseem pretty much the same. Looking inhyphenat.sty, from the hyphenat package, the\hypcommand is a robust command that is defined to be\ifmmode-\else\BreakableHyphen\fi. So,\hypand-are the almost same except inside mathematics. – Apr 28 '19 at 03:04"=shorthand directive to work, you must replace\usepackage[english]{babel}with\usepackage[ngerman,english]{babel} \useshorthands{"} \addto\extrasenglish{\languageshorthands{ngerman}}. See babel: Adding ngerman' s language shorthands to english as the main document language for more information. – Mico Apr 28 '19 at 06:01