# Tag Info

### Force LaTeX to break a nonsensical line with a hyphen

Still another approach based on luatex, which allows \patterns in the document. A new language is declared and a set of hyphenation patterns are then assigned to it. \documentclass{article} \...
• 7,569

### Force LaTeX to break a nonsensical line with a hyphen

This adds \- between all characters, but care is taken not to do it too early (three leading characters and three trailing ones are not considered) and not to tamper with combining characters (from U+...
• 1.0m

### Force LaTeX to break a nonsensical line with a hyphen

If you're free to use LuaLaTeX, it's straightforward to set up a Lua function that modifies the string so that line breaks are possibly everywhere. The code can handle pretty much all utf8-encoded ...
• 443k
Accepted

### Force LaTeX to break a nonsensical line with a hyphen

It wasn't clear if you want a hyphen at the break, I show without and with - here, also it wasn't clear if the space between some ] [ was meaningful, I do nothing outside [...] here so ] [ allows a ...
• 673k
1 vote

### Soft hyphens with priority don't change style with their environment but should do so

This post isn’t an answer (at least directly) to the original question, but to a comment. It’s a full answer because the explanation is a bit large and, on the other hand, it provides an alternative ...
• 7,569
Accepted

### How can I insert a hyphen in LaTeX?

As a general TeX rule, explicit hyphens1 can be used as a line break point. The second argument to \href is suitably processed so it can participate to line breaking, which might be necessary if it ...
• 1.0m
Accepted

### Trying to assign priorities to different breaking points in a word. Discretionary broken?

This is an engine level bug in the luatex source (texlang.c) Hans is testing a fix which looks good so far: So this will be fixed at source in the next day or so, so in texlive 2023 (probably earlier ...
• 673k
Accepted

### Soft hyphens with priority don't change style with their environment but should do so

This looks like a bug at the engine level so not really fixable in babel it is losing the font if the fields in the discretionary are empty as shown by this plain TeX example. The workaround is to ...
• 673k
1 vote

### New language - hyphenation

Hyphenation patterns can be created in basically two ways. 1. With patgen for morphological, etymological, etc., rules. You will need to feed patgen with a large list of hyphenated words, and set a ...
• 7,569