Dear all, could you tell me how to prevent a name from being splitted in two pieces if it is at the end of a line? Thanks, -- Flavien. ---------------------------- "Quantum objects are completely crazy but, at least, they are all crazy in the same way." R.P. Feynman.
Dear all, could you tell me how to prevent a name from being splitted in two pieces if it is at the end of a line? Thanks, -- Flavien. ---------------------------- "Quantum objects are completely crazy but, at least, they are all crazy in the same way." R.P. Feynman.
Dear all, could you tell me how to prevent a name from being splitted in two pieces if it is at the end of a line?
Just try the non-braking space. http://en.wikipedia.org/wiki/Non-breaking_space
On Fri, May 20, 2011 at 11:47, Flavien Lambert wrote:
Dear all, could you tell me how to prevent a name from being splitted in two pieces if it is at the end of a line?
\hbox{Some Very Very Very Very Very Long Name} The other question is how to make the rest of text look acceptable. Mojca
On 20-5-2011 11:53, Mojca Miklavec wrote:
On Fri, May 20, 2011 at 11:47, Flavien Lambert wrote:
Dear all, could you tell me how to prevent a name from being splitted in two pieces if it is at the end of a line?
\hbox{Some Very Very Very Very Very Long Name}
A bad suggestion by the hyphenation lady ... how about: \setupalign[verytolerant] \starttext \starttabulate[|p(8cm)|p(8cm)|] \NC \hyphenation{Mi-kla-vec} \dorecurse{100}{Mojca Miklavec turns \recurselevel\space} \NC \hyphenation{Mikla-vec} \dorecurse{100}{Mojca Miklavec turns \recurselevel\space} \NC \NR \stoptabulate \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 20.05.2011 um 12:03 schrieb Hans Hagen:
On 20-5-2011 11:53, Mojca Miklavec wrote:
On Fri, May 20, 2011 at 11:47, Flavien Lambert wrote:
Dear all, could you tell me how to prevent a name from being splitted in two pieces if it is at the end of a line?
\hbox{Some Very Very Very Very Very Long Name}
A bad suggestion by the hyphenation lady ... how about:
\setupalign[verytolerant]
\starttext \starttabulate[|p(8cm)|p(8cm)|] \NC \hyphenation{Mi-kla-vec} \dorecurse{100}{Mojca Miklavec turns \recurselevel\space} \NC \hyphenation{Mikla-vec} \dorecurse{100}{Mojca Miklavec turns \recurselevel\space} \NC \NR \stoptabulate \stoptext
btw: is it possible to define eg. one column of a (natural) table to be set *not* hyphenated? st.
Am 20.05.2011 um 12:43 schrieb Wolfgang Schuster:
Am 20.05.2011 um 12:39 schrieb Steffen Wolfrum:
btw:
is it possible to define eg. one column of a (natural) table to be set *not* hyphenated?
\setupTABLE[…][…][align=nothyphenated]
I thought the same, but why does this end in lines that are not only nothyphenated but also "not-wrapped"?? See example bellow, please. Steffen ------- \starttext { \bTABLE[offset=2pt,align={flushleft,high},option=stretch] \setupTABLE[column][1][align=right,width=2.7cm,align=nothyphenated] \setupTABLE[column][each][align=left] \bTR \bTD[nr=2] Lehre mit Abschluss\eTD \bTD Anzahl\eTD \bTD 1\eTD \bTD 23\eTD \bTD 53\eTD \bTD 28\eTD \bTD 27\eTD \bTD 132\eTD \eTR \bTR[background=color,backgroundcolor=gray] \bTD{\,\%}\eTD \bTD 9,1{\kern0.1em}{\%}\eTD \bTD 24,2{\kern0.1em}{\%}\eTD \bTD 53,0{\kern0.1em}{\%}\eTD \bTD 46,7{\kern0.1em}{\%}\eTD \bTD 77,1{\kern0.1em}{\%}\eTD \bTD 43,9{\kern0.1em}{\%}\eTD \eTR \bTR \bTD[nr=2] Fachschule (Meister)/höherer Abschluss\eTD \bTD Anzahl\eTD \bTD 0\eTD \bTD 1\eTD \bTD 2\eTD \bTD 3\eTD \bTD 0\eTD \bTD 6\eTD \eTR \bTR[background=color,backgroundcolor=gray] \bTD{\,\%}\eTD \bTD ,0{\kern0.1em}{\%}\eTD \bTD 1,1{\kern0.1em}{\%}\eTD \bTD 2,0{\kern0.1em}{\%}\eTD \bTD 5,0{\kern0.1em}{\%}\eTD \bTD ,0{\kern0.1em}{\%}\eTD \bTD 2,0{\kern0.1em}{\%}\eTD \eTR \eTABLE } \stoptext
On Fri, May 20, 2011 at 12:57 PM, Steffen Wolfrum
Am 20.05.2011 um 12:43 schrieb Wolfgang Schuster:
Am 20.05.2011 um 12:39 schrieb Steffen Wolfrum:
btw:
is it possible to define eg. one column of a (natural) table to be set *not* hyphenated?
\setupTABLE[…][…][align=nothyphenated]
I thought the same, but why does this end in lines that are not only nothyphenated but also "not-wrapped"??
Perhaps because it's a long word ?
\bTD[nr=2] Fachschule (Meister)/höherer Abschluss\eTD
\bTD[nr=2] Fachschule (Meister)\hskip0sp/\hskip0sp höherer Abschluss\eTD -- luigi
Am 20.05.2011 um 13:21 schrieb luigi scarso:
\bTD[nr=2] Fachschule (Meister)/höherer Abschluss\eTD
\bTD[nr=2] Fachschule (Meister)\hskip0sp/\hskip0sp höherer Abschluss\eTD
\bTD[nr=2] Fachschule (Meister)|/|höherer Abschluss\eTD or “\setbreakpoints[compound]” at the begin of the document. Wolfgang
Am 20.05.2011 um 13:35 schrieb Wolfgang Schuster:
Am 20.05.2011 um 13:21 schrieb luigi scarso:
\bTD[nr=2] Fachschule (Meister)/höherer Abschluss\eTD
\bTD[nr=2] Fachschule (Meister)\hskip0sp/\hskip0sp höherer Abschluss\eTD
\bTD[nr=2] Fachschule (Meister)|/|höherer Abschluss\eTD
or
“\setbreakpoints[compound]” at the begin of the document.
No, this has no effect ... see attached, please: The three words in the first row "Lehre mit Abschluss" are quite uncomplicated (no componds etc.) I can see no reason why this line does not wrap after "mit"? Steffen -------
Am 20.05.2011 um 13:26 schrieb Peter Münster:
Steffen Wolfrum
writes: \setupTABLE[…][…][align=nothyphenated]
I thought the same, but why does this end in lines that are not only nothyphenated but also "not-wrapped"??
align={nothyphenated, stretch} or align={nothyphenated, flushleft} can help here.
\setupTABLE[column][1][align=right,width=2.7cm,align=nothyphenated] vs. \setupTABLE[column][1][width=2.7cm,align={nothyphenated,right}] ;o) Steffen
On Fri, May 20, 2011 at 12:03 PM, Hans Hagen
On 20-5-2011 11:53, Mojca Miklavec wrote:
On Fri, May 20, 2011 at 11:47, Flavien Lambert wrote:
Dear all, could you tell me how to prevent a name from being splitted in two pieces if it is at the end of a line?
\hbox{Some Very Very Very Very Very Long Name}
A bad suggestion by the hyphenation lady ... how about:
\setupalign[verytolerant]
\starttext \starttabulate[|p(8cm)|p(8cm)|] \NC \hyphenation{Mi-kla-vec} \dorecurse{100}{Mojca Miklavec turns \recurselevel\space} \NC \hyphenation{Mikla-vec} \dorecurse{100}{Mojca Miklavec turns \recurselevel\space} \NC \NR \stoptabulate \stoptext
There is also \hyphenchar\font=-1 (which is global) \setupbodyfont[lmroman,10pt] \starttext \vbox{\hsize10cm\hyphenchar\font=-1 \input knuth\relax} \vbox{\hsize10cm\hyphenchar\font="17\input knuth\relax} \stoptext I haven't found it in base/*: maybe it's use is discouraged. -- luigi
On Fri, May 20, 2011 at 12:03, Hans Hagen wrote:
On 20-5-2011 11:53, Mojca Miklavec wrote:
On Fri, May 20, 2011 at 11:47, Flavien Lambert wrote:
Dear all, could you tell me how to prevent a name from being splitted in two pieces if it is at the end of a line?
\hbox{Some Very Very Very Very Very Long Name}
A bad suggestion by the hyphenation lady ... how about:
\setupalign[verytolerant]
\starttext \starttabulate[|p(8cm)|p(8cm)|] \NC \hyphenation{Mi-kla-vec} \dorecurse{100}{Mojca Miklavec turns \recurselevel\space} \NC \hyphenation{Mikla-vec} \dorecurse{100}{Mojca Miklavec turns \recurselevel\space} \NC \NR \stoptabulate \stoptext
I'm not sure if he wanted to prevent hyphenation or to prevent to break between two words. Is the following solution: Some~Very~Very~Very~Very~Very~Long~Name combined with \hyphenation{some}\hyphenation{very}\hyphenation{long}\hyphenation{name} also unacceptable? Mojca
participants (8)
-
Flavien Lambert
-
Hans Hagen
-
luigi scarso
-
Mojca Miklavec
-
pmlists@free.fr
-
Steffen Wolfrum
-
Wolfgang Schuster
-
yoraxe