2

I'm using this programme

\let\\\showhyphens
\documentclass{article}
\usepackage[british]{babel}
\begin{document}

to check default hyphenations interactively by typing

*\\{necessarily}

&c. Is there a way to do this without having to type \\{}?
(Something similar perhaps to expr.mf.)

(And what would be the most correct place to put this under the local ~/texmf/?)

3

You could set up the main vertical list to use the same settings as the box that \showhyphens uses but here I just loop and apply \\ each time, and empty entry returns you to the * prompt

\let\\\showhyphens
\documentclass{article}
\usepackage[british]{babel}
\begin{document}
\loop
\typein[\tmp]{Word:}
\\{\tmp}
\ifx\tmp\empty\else
\repeat
  • +1, but maybe you could remove the \let\\\showhyphens, use \showhyphens directly and finish with \end{document} for good measure? Yes, I know, I am so conventional. :-) – frougon Aug 1 at 12:54
  • @frougon I wondered about doing that (and putting \stop after the loop) but I decided to return to the * prompt so the \\ shorthand might still be needed if the OP thinks of another word to check. – David Carlisle Aug 1 at 13:09
  • Ah, okay... thanks for the explanation, then. :-) – frougon Aug 1 at 13:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.