0

I need a little bit of help troubleshooting this. I'm also not too sure on what I can provide and how to provide it, but here's what I have:

LyX 2.1.2, with options in "Preferences>Language>Language package>Always Babel" and "Document Settings>Language>Language package>Always Babel"

I open up a new document of class "Article (Standard Class)". Preamble is empty. I just start typing "Maybe communication communication communication..." and when I render, I notice that the last "communication" of the first line is hanging over the paragraph.

I thought I remembered my documents ever being automatically hyphenated before accordingly, so I probably did something unknowingly and broke that functionality.

Adding \usepackage[british]{babel} or \usepackage[american]{babel} to the preamble has not helped regardless of whether I have the package in the options (mentioned earlier) turned on or off.

I have also tried adding \hyphenpenalty=-1000 and \exhyphenpenalty=-1000 to try to get it to break, but without success.

Please let me know if I need to provide more information and how.

Update: When I render using LuaTeX instead of XeTeX, the hyphenation works properly. I unfortunately don't know what does this indicate.

Update2: Here's the source as it appears in LyX View Source > Complete Source:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\begin{document}
maybe communication communication communication communication communication
communication communication communication communication communication
communication communication communication communication communication
communication communication communication
\end{document}

Update3: (refer to comments) The problem has been traced to having Babel <3.9m> and hyphenation patterns for -1 languages loaded. for XeTeX vs Babel <3.9m> and hyphenation patterns for 69 languages loaded. for LuaTeX. As advised, I exported the source to a .tex file and used TexWorks to open it. Rendering with pdflatex or XeLaTeX (in the dropdown menu) causes the same problem, while selecting LuaLaTeX doesn't.

Since LuaTeX works, and visually appears the same (I'm using only English with the default Computer Modern font) I'll probably not try to troubleshoot this any further till I finish the assignment I'm on.

  • welcome to tex.sx. the "default" english hyphenation is "com-mu-ni-ca-tion" so indeed it appears that somehow hyphenation is not turned on. the only other likely possibility is that you are somehow in a "boxed" environment that won't even break a line, but that doesn't seem to agree with your description. can't help, really, only confirm what you already suspected. – barbara beeton May 12 '16 at 2:15
  • Maybe if you export the .tex source, you'll be able to find the problem? – cfr May 12 '16 at 2:24
  • This hyphenates the fifth communication word as com-munication for me (copying LaTeX source from LyX): \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \begin{document} Maybe communication communication communication communication communication communication \end{document} – PhilipPirrip May 12 '16 at 2:26
  • Check what's in your View>Source and Document>LaTeX log. Does babel report Babel <3.9m> and hyphenation patterns for N languages loaded.? – PhilipPirrip May 12 '16 at 2:30
  • 2
    Must be something wrong with the installation. Can't help any further, you'll have to wait for an expert in LaTeX distributions for Windows. Might help if you do a complete update, reinstallation... I never liked how things work on Windows. – PhilipPirrip May 12 '16 at 3:06
2

Just uninstall the whole MiKTeX package itself (don't touch LyX), download from MiKTeX then do a whole reconfigure from within LyX. It worked. Things are back to normal now.

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.