[NTG-context] Last names in citations

2020-02-28 Thread Fulvio Satta
Hi, probably my question is not a very hard one but I don't find a way
to do what I'm trying to do.

If I use \cite[authoryears] ConTeXt uses last names in the citation.
That's what I want, but I want to use another style for my task, that
I defined this way:

\definebtx[aps:cite:margin][authorconversion=normalshort]
\startsetups btx:aps:cite:margin
  \texdefinition{btx:aps:title}
  \texdefinition{btx:aps:author}
  \doiftextelse\currentbtxrighttext{
\currentbtxrighttext
  } {
\removeunwantedspaces
\removepunctuation
  }

this works and is perfect for my style, but I obtain the full names,
and not just the last names. How can I obtain something similar to the
citation I'm using, but with just last names?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Last names

2011-05-20 Thread Flavien Lambert
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.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Last names

2011-05-20 Thread Flavien Lambert
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.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Last names

2011-05-20 Thread Mojca Miklavec
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Last names

2011-05-20 Thread 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



-
  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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Last names

2011-05-20 Thread Steffen Wolfrum

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.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Last names

2011-05-20 Thread 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]

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Last names

2011-05-20 Thread 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??

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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Last names

2011-05-20 Thread luigi scarso
On Fri, May 20, 2011 at 12:57 PM, Steffen Wolfrum
cont...@st.estfiles.de wrote:

 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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Last names

2011-05-20 Thread Peter Münster
Steffen Wolfrum cont...@st.estfiles.de 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.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Last names

2011-05-20 Thread luigi scarso
On Fri, May 20, 2011 at 12:03 PM, Hans Hagen pra...@wxs.nl 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

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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Last names

2011-05-20 Thread 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.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Last names

2011-05-20 Thread Steffen Wolfrum

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
---


notwrap.pdf
Description: Adobe PDF document


notwrap.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Last names

2011-05-20 Thread Steffen Wolfrum

Am 20.05.2011 um 13:26 schrieb Peter Münster:

 Steffen Wolfrum cont...@st.estfiles.de 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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Last names

2011-05-20 Thread Peter Münster
Steffen Wolfrum cont...@st.estfiles.de writes:

 \setupTABLE[column][1][width=2.7cm,align={nothyphenated,right}]

Please don't use align=right, it's so horrible !  ;))
(the big bug, that'll never be fixed...)

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Last names

2011-05-20 Thread Steffen Wolfrum

Am 20.05.2011 um 15:15 schrieb Peter Münster:

 Steffen Wolfrum cont...@st.estfiles.de writes:
 
 \setupTABLE[column][1][width=2.7cm,align={nothyphenated,right}]
 
 Please don't use align=right, it's so horrible !  ;))
 (the big bug, that'll never be fixed...)

... I love it :o)

Steffen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Last names

2011-05-20 Thread Mojca Miklavec
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Last names

2011-05-20 Thread yoraxe
 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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___