# Tag Info

4

Most likely this is caused by a package (babel language shorthand?) defining - to be active and then trying it to act "as normal" by defining it to be \leavevmode\char`\- I get almost the same error (slightly different context, but the same time\unhbox \voidb@x \char `\discretionary {-}{}{}step from the following: \documentclass{article} ...

4

Here's a LuaLaTeX-based solution. It consists of (i) a Lua function that encases each word in its argument in an \mbox{...} "wrapper" to make it un-hyphenatable, while still allowing line breaks between words, and (ii) a LaTeX macro named \nohyph that invokes the Lua function. The argument of the LaTeX macro should be the string of consecutive words that ...

3

With initexmf --dump you are building user formats which are stored in your user profile. With miktex settings (admin) (or initexmf --admin --dump) you are changing and building admin formats. As user formats are found first they win. So use the user version of miktex settings to change and build them through a GUI. See also How should one maintain and ...

3

Using the test release of luatex 0.85 I get from \tracingoutput1 \tracingonline1 \showboxdepth1000 \showboxbreadth1000 abc\begingroup\hyphenpenalty -10001\discretionary{d}{e}{f}\endgroup ghi\begingroup\hyphenpenalty 10001\discretionary{d}{e}{f}\endgroup \bye and a log Completed box being shipped out [1] \vbox(667.20255+0.0)x469.75499, direction TLT ...

3

You could enclose every entity separated by a space in an \mbox in an automated fashion. I defined the macro \nohyphen which does exactly that. \nohyphen{list of words} -> \mbox{list} \mbox{of} \mbox{words} This also means, that to protect spaces you have to wrap the relevant entry in braces, as in {\$a = b\$}. Otherwise this would also be split at the ...

2

I assume you're currently compiling your document with pdfLaTeX. If that's the case, I suggest you switch to LuaLaTeX. LuaLaTeX is able to hyphenate the first word of every paragraph without the user having to specify anything special.

1

The solution might be as follows. First we export our pdf into txt with all information about coordinates: pdftotext -bbox myTeX.pdf myTeX.txt Then we write a Perl program to find the words that end up with hyphen, and after that word either the page breaks, or the next word is not so close (not on the next line — we have some separation from footnotes ...

Only top voted, non community-wiki answers of a minimum length are eligible