Text Formattingrevtex4-1 | Hyphenation Problem

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
kingchang
Posts: 3
Joined: Wed May 11, 2011 5:42 am

revtex4-1 | Hyphenation Problem

Post by kingchang »

Hi,

I wrote something with MikTeX + WinEdt, and found the hyphenation is very strange. For example, "Eqs." is printed as "E-qs.", the name "Eberly" becomes "E-berly". Are these hyphenation correct? Could anyone help me fix them? Thank you.

Below are the texts.

\documentclass[pra,twocolumn]{revtex4-1}

\begin{document}

The goal now is to find a feature to discern the second excited state once the system reaches it. From Eqs.\ (\ref{eq1}) and (\ref{eq2}), we find that the second-order correlation function of photons $a+b$ for the second doublet is much larger than that for the first doublet, i.e.\ $a+b+c+d+e+f+g+h+i+j+k$ \cite{PhysRevLett.51.550}.

\bibliography{references}
\end{document}

The BibTeX file "references":

@Article{PhysRevLett.51.550,
title = {Theory of Spontaneous-Emission Line Shape in an Ideal Cavity},
author = {Sanchez-Mondragon, J. J. and Narozhny, N. B. and Eberly, J. H.},
journal = {Phys. Rev. Lett.},
volume = {51},
number = {7},
pages = {550--553},
numpages = {3},
year = {1983},
month = {Aug},
doi = {10.1103/PhysRevLett.51.550},
publisher = {American Physical Society}
}


Thank you again.

Chang

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: revtex4-1 | Hyphenation Problem

Post by localghost »

Regardless of some warnings concerning missing references to equations I can't comprehend the problem because your example doesn't reproduce the described behaviour for me.

And by the way, for posting code please use the »Code« button to tag it as such. It would be very kind if you use it accordingly to keep your posts clear and legible.


Best regards and welcome to the board
Thorsten
kingchang
Posts: 3
Joined: Wed May 11, 2011 5:42 am

Re: revtex4-1 | Hyphenation Problem

Post by kingchang »

Thank you very much. Maybe we got different outputs. I am surprised at it. I attached the generated pdf file. The "Eqs." is separated into two lines, and so is "Eberly". It is really strange.
Attachments
test.pdf
(14.7 KiB) Downloaded 219 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

revtex4-1 | Hyphenation Problem

Post by localghost »

kingchang wrote:[…] Maybe we got different outputs. […]
For sure we've got different outputs. Otherwise I wouldn't have said that in my first reply.

Perhaps it's a matter of outdated class and package versions. Add the \listfiles command as very first line to your example and check the log file for the list of used files. Mine looks like this.

Code: Select all

 *File List*
revtex4-1.cls   2010/02/25/18:00:00 4.1p (http://publish.aps.org/revtex4/ for documentation)
  aps4-1.rtx
aps10pt4-1.rtx
textcase.sty    2004/10/07 v0.07 Text only upper/lower case changing (DPC)
     url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
  natbib.sty    2009/11/07 8.31a (PWD, AO)
revsymb4-1.sty  2010/02/25/18:00:00 4.1p (http://publish.aps.org/revtex4/ for documentation)
     tmp.bbl
 ***********
You will need at least these versions to get a proper output.
Post Reply