ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [BIB] Extra space before surname
@ 2005-09-13 12:37 Giuseppe Bilotta
  2005-09-13 13:30 ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Giuseppe Bilotta @ 2005-09-13 12:37 UTC (permalink / raw)


Hello,

I just noticed that there is an extra space before the
surname if there is no "von" part.

My setup:

\def\bracketed#1{[#1]}

\usemodule[bib]
\setupbibtex[database={mrabbrev,bezier}]
\setuppublications[numbering=yes,
                   sorttype=cite,
                   criterium=all,
                   numbercommand=\bracketed,
                   refcommand=num]
\setupcite[num][left={\start\bf[},right={]\stop}]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BIB] Extra space before surname
  2005-09-13 12:37 [BIB] Extra space before surname Giuseppe Bilotta
@ 2005-09-13 13:30 ` Taco Hoekwater
  2005-09-13 14:10   ` Re[2]: " Giuseppe Bilotta
  0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2005-09-13 13:30 UTC (permalink / raw)




Giuseppe Bilotta wrote:
> Hello,
> 
> I just noticed that there is an extra space before the
> surname if there is no "von" part.

Sounds like a familiar bug. Please try this (and let me
know if it works or not):

   \usemodule[bib]
   %
   % next 3 lines hopefully fix a bug
   %
   \let\bibdoif          \doifnotemptyvalue
   \let\bibdoifnot       \doifemptyvalue
   \def\bibdoifelse#1#2#3{\doifemptyvalueelse{#1}{#3}{#2}}

Taco

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re[2]: [BIB] Extra space before surname
  2005-09-13 13:30 ` Taco Hoekwater
@ 2005-09-13 14:10   ` Giuseppe Bilotta
  2005-09-13 15:51     ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Giuseppe Bilotta @ 2005-09-13 14:10 UTC (permalink / raw)


Tuesday, September 13, 2005 Taco Hoekwater wrote:



> Giuseppe Bilotta wrote:
>> Hello,
>> 
>> I just noticed that there is an extra space before the
>> surname if there is no "von" part.

> Sounds like a familiar bug. Please try this (and let me
> know if it works or not):

>    \usemodule[bib]
>    %
>    % next 3 lines hopefully fix a bug
>    %
>    \let\bibdoif          \doifnotemptyvalue
>    \let\bibdoifnot       \doifemptyvalue
>    \def\bibdoifelse#1#2#3{\doifemptyvalueelse{#1}{#3}{#2}}

Looks like something else is needed:

title           : - \headtext {pubs}
(./bez-art.tuo
! Missing \endcsname inserted.
<to be read again> 
                   \penalty 
\nonbreakablespace ->\penalty 
                              \!!tenthousand \ 
<argument> P.~
              E.
\bibdoif #1->\@EA \ifx \csname #1
                                 \endcsname \empty \expandafter \gobbleonear...

\invertedshortauthor ...c!juniorsep }\bibdoif {#4}
                                                  {#4\unskip }
\@@ar@@1 ...author\the \scratchcounter \endcsname 
                                                  \ifnum \etallimitcounter <...
...
l.105 ...ion {bezier93}}{2::0:0:9:0:0:0:0::20}{20}

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BIB] Extra space before surname
  2005-09-13 14:10   ` Re[2]: " Giuseppe Bilotta
@ 2005-09-13 15:51     ` Taco Hoekwater
  2005-09-13 18:07       ` Re[2]: " Giuseppe Bilotta
  0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2005-09-13 15:51 UTC (permalink / raw)




Giuseppe Bilotta wrote:
> Tuesday, September 13, 2005 Taco Hoekwater wrote:
> 
> 
> 
> 
>>Giuseppe Bilotta wrote:
>>
>>>Hello,
>>>
>>>I just noticed that there is an extra space before the
>>>surname if there is no "von" part.
> 
> 
>>Sounds like a familiar bug. Please try this (and let me
>>know if it works or not):
> 
> 
>>   \usemodule[bib]
>>   %
>>   % next 3 lines hopefully fix a bug
>>   %
>>   \let\bibdoif          \doifnotemptyvalue
>>   \let\bibdoifnot       \doifemptyvalue
>>   \def\bibdoifelse#1#2#3{\doifemptyvalueelse{#1}{#3}{#2}}
> 
> 
> Looks like something else is needed:

Yeah, that's wrong all right.  :-(

How is this?

  \def\invertedshortauthor#1#2#3#4#5%
   {\doifnotempty{#2}{#2\bibalternative\c!vonsep}%
    #3\bibalternative\c!surnamesep
    \doifnotempty{#5}{#5\bibalternative\c!juniorsep}%
    \doifnotempty{#4}{#4\unskip}}

(we slowly are getting to the point where it is easier on you to
  send me the actual document and a list of errors in t-bib :))

Taco

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re[2]: [BIB] Extra space before surname
  2005-09-13 15:51     ` Taco Hoekwater
@ 2005-09-13 18:07       ` Giuseppe Bilotta
  2005-09-13 18:13         ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Giuseppe Bilotta @ 2005-09-13 18:07 UTC (permalink / raw)


Tuesday, September 13, 2005 Taco Hoekwater wrote:

>   \def\invertedshortauthor#1#2#3#4#5%
>    {\doifnotempty{#2}{#2\bibalternative\c!vonsep}%
>     #3\bibalternative\c!surnamesep
>     \doifnotempty{#5}{#5\bibalternative\c!juniorsep}%
>     \doifnotempty{#4}{#4\unskip}}


No luck ...

subject         : - \headtext {pubs}
(./bez-art.tuo
! Missing \endcsname inserted.
<to be read again> 
                   \vtop 
\bottomaccent #1#2#3#4#5->\dontleavehmode \vtop 
                                                {\forgetall \baselineskip \z...

\dohandleaccent ...acterencoding #1\endcsname {#2}
                                                  \fi \fi \fi 
\invertedshortauthor ...nsep}#3\bibalternative \c 
                                                  !surnamesep \doifnotempty ...

\@@ar@@1 ...author\the \scratchcounter \endcsname 
                                                  \ifnum \etallimitcounter <...

\redoloop ->\expandrecursecontent 
                                  \endofloop 
...
l.159 ...ion {bezier93}}{2::0:0:7:1:0:0:0::25}{25}


> (we slowly are getting to the point where it is easier on you to
>   send me the actual document and a list of errors in t-bib :))

Can do that, if you want :)

-- 
Giuseppe "Oblomov" Bilotta

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BIB] Extra space before surname
  2005-09-13 18:07       ` Re[2]: " Giuseppe Bilotta
@ 2005-09-13 18:13         ` Taco Hoekwater
  2005-09-14  4:13           ` Re[2]: " Giuseppe Bilotta
  0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2005-09-13 18:13 UTC (permalink / raw)


Giuseppe Bilotta wrote:
> Tuesday, September 13, 2005 Taco Hoekwater wrote:
> 
> 
>>  \def\invertedshortauthor#1#2#3#4#5%
>>   {\doifnotempty{#2}{#2\bibalternative\c!vonsep}%
>>    #3\bibalternative\c!surnamesep
>>    \doifnotempty{#5}{#5\bibalternative\c!juniorsep}%
>>    \doifnotempty{#4}{#4\unskip}}
> 
> 
> 
> No luck ...

oh, I'm sorry. Wrap the definition in \unprotect ... \protect,
please.

>>(we slowly are getting to the point where it is easier on you to
>>  send me the actual document and a list of errors in t-bib :))
> 
> Can do that, if you want :)

If this doesn't work, ok?

Taco

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re[2]: [BIB] Extra space before surname
  2005-09-13 18:13         ` Taco Hoekwater
@ 2005-09-14  4:13           ` Giuseppe Bilotta
  0 siblings, 0 replies; 7+ messages in thread
From: Giuseppe Bilotta @ 2005-09-14  4:13 UTC (permalink / raw)


Tuesday, September 13, 2005 Taco Hoekwater wrote:

> oh, I'm sorry. Wrap the definition in \unprotect ... \protect,
> please.

Bingo.

Thank you very much.

-- 
Giuseppe "Oblomov" Bilotta

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-09-14  4:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-13 12:37 [BIB] Extra space before surname Giuseppe Bilotta
2005-09-13 13:30 ` Taco Hoekwater
2005-09-13 14:10   ` Re[2]: " Giuseppe Bilotta
2005-09-13 15:51     ` Taco Hoekwater
2005-09-13 18:07       ` Re[2]: " Giuseppe Bilotta
2005-09-13 18:13         ` Taco Hoekwater
2005-09-14  4:13           ` Re[2]: " Giuseppe Bilotta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).