ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bib Module: \cite can kill spaces
@ 2010-08-15 17:14 Andreas Schneider
  2010-08-15 17:35 ` Thomas Schmitz
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schneider @ 2010-08-15 17:14 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

Hi,

I don't know how exactly it happens, but in the attached example the last
footnote is missing a space before the inserted \cite. In my real document
that happens a lot and kills the layout. Anything I can do to fix that?

Best Regards,
Andreas.

[-- Attachment #2: ctxbib.tex --]
[-- Type: text/plain, Size: 664 bytes --]

\mainlanguage[de]

\usemodule[bib]
\setuppublications[alternative=apa-de]

\startpublication[k=Bellinger2004,t=article,
a={{Bellinger},{}},y=2004,
n=3,s=BCM04]
\artauthor[]{G.}[G.]{}{Bellinger}
\artauthor[]{D.}[D.]{}{Castro}
\artauthor[]{A.}[A.]{}{Mills}
\pubyear{2004}
\arttitle{Data, information, knowledge, and wisdom}
\journal{Retrieved August}
\volume{31}
\pages{2004}
\stoppublication

\def\prefix{Vgl. }

\starttext
\footnote{\prefix\cite[alternative=data][Bellinger2004]}
\footnote{\prefix{}other text}
\footnote{\prefix\cite[alternative=authorkey][Bellinger2004]}
\footnote{\prefix\cite[alternative=data][Bellinger2004]}
\stoptext

[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

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

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

* Re: Bib Module: \cite can kill spaces
  2010-08-15 17:14 Bib Module: \cite can kill spaces Andreas Schneider
@ 2010-08-15 17:35 ` Thomas Schmitz
  2010-08-15 18:09   ` taco
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Schmitz @ 2010-08-15 17:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, 15 Aug 2010 19:14:53 +0200
  Andreas Schneider <aksdb@gmx.de> wrote:
> Hi,
> 
> I don't know how exactly it happens, but in the attached 
>example the last
> footnote is missing a space before the inserted \cite. 
>In my real document
> that happens a lot and kills the layout. Anything I can 
>do to fix that?
> 
> Best Regards,
> Andreas.

Ugly workaround:

\def\prefix{Vgl. \strut} % or \null

But I have no idea what's happening here, maybe Hans or 
Taco can come up with a real solution. 
\cite[alternative=data] seems to eat any horizontal space 
before it; I don't know if this is a bug or a feature.

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


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

* Re: Bib Module: \cite can kill spaces
  2010-08-15 17:35 ` Thomas Schmitz
@ 2010-08-15 18:09   ` taco
  2010-08-15 18:39     ` Andreas Schneider
  0 siblings, 1 reply; 4+ messages in thread
From: taco @ 2010-08-15 18:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thomas Schmitz wrote:
> On Sun, 15 Aug 2010 19:14:53 +0200
>  Andreas Schneider <aksdb@gmx.de> wrote:
>> Hi,
>>
>> I don't know how exactly it happens, but in the attached example the last
>> footnote is missing a space before the inserted \cite. In my real 
>> document
>> that happens a lot and kills the layout. Anything I can do to fix that?
>>
>> Best Regards,
>> Andreas.
> 
> Ugly workaround:
> 
> \def\prefix{Vgl. \strut} % or \null
> 
> But I have no idea what's happening here, maybe Hans or Taco can come up 
> with a real solution. \cite[alternative=data] seems to eat any 
> horizontal space before it; I don't know if this is a bug or a feature.

It probably does an \unskip to get rid of bad vertical space in
the publication list. Use the workaround Thomas offered, as it
is not safe to change that.

Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Bib Module: \cite can kill spaces
  2010-08-15 18:09   ` taco
@ 2010-08-15 18:39     ` Andreas Schneider
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Schneider @ 2010-08-15 18:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Sun, 15 Aug 2010 20:09:07 +0200, taco <taco@elvenkind.com> wrote:
> Thomas Schmitz wrote:
>> Ugly workaround:
>> 
>> \def\prefix{Vgl. \strut} % or \null
>> 
>> But I have no idea what's happening here, maybe Hans or Taco can come
up 
>> with a real solution. \cite[alternative=data] seems to eat any 
>> horizontal space before it; I don't know if this is a bug or a feature.
> 
> It probably does an \unskip to get rid of bad vertical space in
> the publication list. Use the workaround Thomas offered, as it
> is not safe to change that.
> 
> Best wishes,
> Taco

I always learn something new here. And by the way: you guys are really
damn fast :-)

Thank you very much! (once again :-))

Best Regards,
Andreas.
___________________________________________________________________________________
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
___________________________________________________________________________________


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

end of thread, other threads:[~2010-08-15 18:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-15 17:14 Bib Module: \cite can kill spaces Andreas Schneider
2010-08-15 17:35 ` Thomas Schmitz
2010-08-15 18:09   ` taco
2010-08-15 18:39     ` Andreas Schneider

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