🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #320

Summary: Help: Printing Two Chinese Characters On the Same Line

#320
From: Pinghua Young
Date: Wed, 22 Jul 1992 18:40
77 lines
4481 bytes
Yesterday I posted a question of how to keep two Chinese characters
on the same line and since then I have received a lot of wonderful
email pointing me out the obvious choices: \hbox{12}.  I would like
thank all of those who replied.  For completeness, here are all the
answers I receive up to this point.  Thanks again.

**************************************************************************
From: "Eric J. Olson" <ejo@kaja.gi.alaska.edu>

Try putting them in an hbox: \hbox{12} should not be split across a line.
**************************************************************************
**************************************************************************
From: 48ganelin@cuavax.dnet.cua.edu (Pavel Ganelin)

Try this 1{}2
(More elaborate way in Latex 1\nolinebreak[4]2, which means
1\penalty=10000\relax2 in Plane TeX). I an not pretty sure about penalty,
but you may chek in TeXBook: How tex break lines to paragraph.
**************************************************************************
**************************************************************************
From: bkph@ai.mit.edu (Berthold K.P. Horn)

\hbox{12}
**************************************************************************
**************************************************************************
From: Donald Arseneau <asnd@erich.triumf.ca>

\hbox{12} (or \mbox{12}).

But this may have other ill effects that I can't predict without 
knowing how you type 1 and 2 (They are probably not single characters,
but they could be).
**************************************************************************
**************************************************************************
From: "NAME \"Richard S. Palais\"" <PALAIS@BINAH.CC.BRANDEIS.EDU>

If I understand correctly, you are trying to inhibit TeX from choosing 
a line break between "1" and "2". Then \hbox'ing should do it, 
i.e., write \hbox{12}
**************************************************************************
**************************************************************************
From: ken@syd.dit.csiro.au

Try \hbox{12}.
**************************************************************************
**************************************************************************
From: ecsgrt@luxor.latrobe.edu.au

Try  "1\nobreak 2".  (The TeXbook, page 97, paragraph 2.)
(Do NOT try "1\nobreak\ 2", because that's the same as "1~2".)
**************************************************************************
**************************************************************************
From: Juergen Wagner <J_Wagner@iao.fhg.de>

When TeX breaks thinks I want to keep on the same line, I put them into an
\hbox{}. I suggest you try \hbox{12} in your example.
**************************************************************************
**************************************************************************
From: UFTANNER%NERVM.BITNET@cmsa.Berkeley.EDU

Try hbox{12}
**************************************************************************
**************************************************************************
From: Libor Skarvada <libor@adelard.dcs.muni.cs>

\hbox{12} should work when used in appropriate mode. In LaTeX, \mbox{12}
overcomes problems with vert/horiz mode.
**************************************************************************
**************************************************************************
From: barr@triples.Math.McGill.CA (Michael Barr)

Put them in an \hbox: \hbox{12}.
**************************************************************************
-----------------------------------------------------------------------
Pinghua Young, Department of Economics        pinghua@Econ.Berkeley.EDU 
University of California at Berkeley        pinghua%econ@ucbcmsa.BITNET 
Berkeley, California 94720, U.S.A.   ~{C@9z2.?K@{<SV]4sQ'>-<CO5QnF=;*~}
Technical Details
Message-ID: <14ka2bINNc9r@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!agate!emily5.Berkeley.EDU!pinghua
References: <21JUL92.12161453.0212@UNBVM1.CSD.UNB.CA> <BrrD7r.L5t@ecf.toronto.edu> <14i11jINN14u@agate.berkeley.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!agate!emily5.Berkeley.EDU!pinghua
From: pinghua@emily5.Berkeley.EDU (Pinghua Young)
Newsgroups: comp.text.tex
Subject: Summary: Help: Printing Two Chinese Characters On the Same Line
Date: 22 Jul 1992 18:40:11 GMT
Organization: University of California at Berkeley
Lines: 77
Message-ID: <14ka2bINNc9r@agate.berkeley.edu>
References: <21JUL92.12161453.0212@UNBVM1.CSD.UNB.CA> <BrrD7r.L5t@ecf.toronto.edu> <14i11jINN14u@agate.berkeley.edu>
NNTP-Posting-Host: emily5.berkeley.edu
Keywords: no line break, Chinese, question