query LaTeX’s word division (hyphenation) dictionary
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
worddiv/latex-hyphenation-template.tex

30 lines
1010 B

% TeX template for use with worddiv.fish
% for a different approach, see https://tex.stackexchange.com/a/693030, also quoted at the bottom of this file
% we can set the language as a global option by passing it as an option to \documentclass
\documentclass[language]{article}
% according to the babel user guide (babel.pdf), if we've set the language globally (above), setting it here again is actually redundant, but if it ain't broke...
\usepackage[language]{babel}
% include exceptions for US English from /usr/share/texlive/texmf-dist/tex/generic/hyphenex/ushyphex.tex
% my fish script uncomments this line just in those cases where it has also set the language to `american`
% \input ushyphex
\begin{document}
\showhyphens{expression}
\end{document}
% here's a lualatex alternative, suggested by koppor ( https://tex.stackexchange.com/a/693030 )
% % !TeX program = lualatex
% \documentclass{article}
% \usepackage{showhyphens}
% \begin{document}
% \input{ushyphex}
% antinuclear
% \end{document}