New answers tagged

0

There’s a great answer by @wewa (Welcome to the site!). Two other tips to reduce the need for hyphenation are to \usepackage{microtype} (in LuaLaTeX or PDFLaTeX, which support font expansion) and increasing the allowed interword spacing for really ugly paragraphs with \emergencystretch 3em.


2

bingung already posted the answer to question here: https://tex.stackexchange.com/a/218118/231568. The above mentioned word is a IUPAC nomenclature and the package chemmacros is providing the necessary functionality for hyphenation of those words. Therefore simply \usepackage{chemmacros} to include the package and use \iupac{\textit{tert}-butyl-(S)-(2-oxo-1-...


7

Both of the answers so far, by Skillmon and egreg, are excellent advice. There is one more important tip to make the line-breaking algorithm produce fewer hyphens. \emergencystretch 3em In LaTeX3, this will try to set troublesome paragraphs, such as the one you’re trying to avoid, with much longer spaces instead of bad hyphenation. Unlike the older \...


18

Set \doublehyphendemerits to a higher value. The default is 10000. \documentclass{book} \usepackage{luacode} \begin{document} \doublehyphendemerits=1000000 \frenchspacing%%Ignore Double Spaces \begin{luacode*} local domobject = require "luaxml-domobject" sample = [[ <datas> <p>The investigations of cylindrically symmetric spacetimes ...


17

Using microtype I get the following: \documentclass{book} \usepackage{microtype} \usepackage{luacode} \begin{document} \frenchspacing%%Ignore Double Spaces \begin{luacode*} local domobject = require "luaxml-domobject" sample = [[ <datas> <p>The investigations of cylindrically symmetric spacetimes can be traced back as far as to 1919 ...


1

The package hyphenat enables hyphenation in words that contain underscores. For example, the following TeX: \documentclass{article} \usepackage{hyphenat} \begin{document} Lorem\_ipsum\_dolor\_sit\_amet,\_consetetur\_sadipscing\_elitr,\_sed\_diam\_nonumy\_eirmod\_tempor\_invidunt\_ut\_labore\_et\_dolore\_magna\_aliquyam\_erat,\_sed\_diam\_voluptua.\_At\_vero\...


Top 50 recent answers are included