Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Why does \uchyph=0 not work for me? It is in my preamble, but Istill get names of people hyphenated.

Is it a font issue?

I typeset with XeLaTeX.


Minimal example: try with XeLaTeX with and without fontspec:

\documentclass{article}
\usepackage{fontspec}

\begin{document}
\noindent
Some Textual Material.
Some Textual Material.
Some Textual Material.
Some Textual Material.
Some Textual Material.
Some Textual Material.
Some Textual Material.

\uchyph=0 %
\noindent
Some Textual Material.
Some Textual Material.
Some Textual Material.
Some Textual Material.
Some Textual Material.
Some Textual Material.
Some Textual Material.
\end{document}
share|improve this question
    
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  tohecz Jan 2 '13 at 9:36
    
I have a feeling this is to do with loading fonts using the 'extended' (system font) interface. I put together a MWE, and it works 'correctly' (\uchyph has an effect) if I do not load fontpsec, but fails if I do. The fontspec package automatically loads the Latin Modern OTF font, and I have a feeling this is where the trouble starts: using XeTeX and the 'traditional' lmodern package does not cause a problem. –  Joseph Wright Jan 2 '13 at 9:41
    
@tohecz I've edited in my MWE, as the issue does not seem to be related to a specific font. –  Joseph Wright Jan 2 '13 at 9:44
    
I suspect this is a XeTeX bug: see tug.org/pipermail/xetex/2007-June/006601.html (from 2007!). –  Joseph Wright Jan 2 '13 at 9:48

1 Answer 1

up vote 1 down vote accepted

I solved my problem.

I use several documents as input to my article. It seems I need to include \uchyph=0 in each of these separate documents. I always assumed that having uchyph in the preamble would make it effective globally.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.