ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [bug?] no space before \cite[data][] and after \abbreviation
@ 2014-05-22 12:35 pol stra
  2014-05-22 14:15 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: pol stra @ 2014-05-22 12:35 UTC (permalink / raw)
  To: conteXt mail


[-- Attachment #1.1: Type: text/plain, Size: 895 bytes --]

Hello,

I used "see \cite[data]" in a document and I obtained "seeAuthor" without space between "see" and "Author". I think it is a bug.

I also had troubles with abbreviations (although it might be a bad use from myself):
setting "\abbreviation{AB}{Abbreviation}"

"an \AB some text" will give "an ABsome text" => missing space after abbreviation
"an {\AB} some text" will give "an AB some text" => OK
"an \infull{AB} some text" will give "an  some text" => missing expanded abbreviation

setting:
"\definesynonyms[abbrev][abbrevs][\infull]
\setupsynonyms[style=normal]
\abbrev{AB}{Abbreviation}"

"an \AB some text" will give "an ABsome text" => missing space after abbreviation
"an {\AB} some text" will give "an AB some text" => OK
"an \infull{AB} some text" will give "an Abbreviation some text" => OK

Is it bugs or I do something wrong ?

Best regards,
 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 1181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 6+ messages in thread

* Re: [bug?] no space before \cite[data][] and after \abbreviation
  2014-05-22 12:35 [bug?] no space before \cite[data][] and after \abbreviation pol stra
@ 2014-05-22 14:15 ` Wolfgang Schuster
  2014-05-25  7:27   ` Pol Stra
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2014-05-22 14:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1104 bytes --]


Am 22.05.2014 um 14:35 schrieb pol stra <ryzz@hotmail.fr>:

> Hello,
> 
> I used "see \cite[data]" in a document and I obtained "seeAuthor" without space between "see" and "Author". I think it is a bug.
> 
> I also had troubles with abbreviations (although it might be a bad use from myself):
> setting "\abbreviation{AB}{Abbreviation}"
> 
> "an \AB some text" will give "an ABsome text" => missing space after abbreviation
> "an {\AB} some text" will give "an AB some text" => OK
> "an \infull{AB} some text" will give "an  some text" => missing expanded abbreviation

Spaces after commands (e.g. \TeX) are ignored, to keep the space you have to add “\ ” or “{} ” after the command.

\abbreviation{AB}{Abbreviation}

\starttext
text \AB\ text \AB{} \infull{AB} text
\stoptext


There is also a automatic way for this where you don’t have add any thing after the command but there are a few exceptions where this doesn’t work.

\abbreviation{AB}{Abbreviation}

\setupsynonyms
  [abbreviation]
  [next=\autoinsertnextspace]

\starttext
text \AB text
\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2095 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 6+ messages in thread

* Re: [bug?] no space before \cite[data][] and after \abbreviation
  2014-05-22 14:15 ` Wolfgang Schuster
@ 2014-05-25  7:27   ` Pol Stra
  2014-05-27 14:38     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Pol Stra @ 2014-05-25  7:27 UTC (permalink / raw)
  To: ntg-context

Le jeudi 22 mai 2014, 16:15:22 Wolfgang Schuster a écrit :
> Am 22.05.2014 um 14:35 schrieb pol stra <ryzz@hotmail.fr>:
> > Hello,
> > 
> > I used "see \cite[data]" in a document and I obtained "seeAuthor" without
> > space between "see" and "Author". I think it is a bug.
> > 
> > I also had troubles with abbreviations (although it might be a bad use
> > from myself): setting "\abbreviation{AB}{Abbreviation}"
> > 
> > "an \AB some text" will give "an ABsome text" => missing space after
> > abbreviation "an {\AB} some text" will give "an AB some text" => OK
> > "an \infull{AB} some text" will give "an  some text" => missing expanded
> > abbreviation
> Spaces after commands (e.g. \TeX) are ignored, to keep the space you have to
> add “\ ” or “{} ” after the command.
> 
> \abbreviation{AB}{Abbreviation}
> 
> \starttext
> text \AB\ text \AB{} \infull{AB} text
> \stoptext
> 
> 
> There is also a automatic way for this where you don’t have add any thing
> after the command but there are a few exceptions where this doesn’t work.
> 
> \abbreviation{AB}{Abbreviation}
> 
> \setupsynonyms
>   [abbreviation]
>   [next=\autoinsertnextspace]
> 
> \starttext
> text \AB text
> \stoptext
> 
> Wolfgang

Thank you Wolfgang,
It is good to be aware about this behaviour.

What about the cite command and the space _before_?

Best regards 
___________________________________________________________________________________
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] 6+ messages in thread

* Re: [bug?] no space before \cite[data][] and after \abbreviation
  2014-05-25  7:27   ` Pol Stra
@ 2014-05-27 14:38     ` Wolfgang Schuster
  2014-05-28  9:37       ` pol stra
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2014-05-27 14:38 UTC (permalink / raw)
  To: Pol Stra; +Cc: mailing list for ConTeXt users


Am 25.05.2014 um 09:27 schrieb Pol Stra <ryzz@hotmail.fr>:

> What about the cite command and the space _before_?

Do you have a minimal example for this?

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
___________________________________________________________________________________


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

* Re: [bug?] no space before \cite[data][] and after \abbreviation
  2014-05-27 14:38     ` Wolfgang Schuster
@ 2014-05-28  9:37       ` pol stra
  2014-06-05  9:10         ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: pol stra @ 2014-05-28  9:37 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: conteXt mail


[-- Attachment #1.1: Type: text/plain, Size: 615 bytes --]



> Subject: Re: [NTG-context] [bug?] no space before \cite[data][] and after \abbreviation
> From: schuster.wolfgang@gmail.com
> Date: Tue, 27 May 2014 16:38:28 +0200
> CC: ntg-context@ntg.nl
> To: ryzz@hotmail.fr
> 
> 
> Am 25.05.2014 um 09:27 schrieb Pol Stra <ryzz@hotmail.fr>:
> 
> > What about the cite command and the space _before_?
> 
> Do you have a minimal example for this?
> 
> Wolfgang

Sorry, it seems the issue appears only when used in footnote.
I joined a minimal example. You can see in the output that there is a space in the text, but not in the footnote.

Pol
 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 936 bytes --]

[-- Attachment #2: test_bib.bib --]
[-- Type: application/octet-stream, Size: 282 bytes --]

@book{ashcroft_physique_2002,
	address = {Les Ulis},
	title = {Physique des solides},
	isbn = {2868835775  9782868835772},
	language = {French},
	publisher = {{EDP} sciences},
	author = {Ashcroft, Neil W and Mermin, N. David and Biet, Franck and Kachkachi, Hamid},
	year = {2002}
}

[-- Attachment #3: test_cite.tex --]
[-- Type: application/x-tex, Size: 150 bytes --]

[-- Attachment #4: test_cite.pdf --]
[-- Type: application/pdf, Size: 19500 bytes --]

[-- Attachment #5: Type: text/plain, Size: 485 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] 6+ messages in thread

* Re: [bug?] no space before \cite[data][] and after \abbreviation
  2014-05-28  9:37       ` pol stra
@ 2014-06-05  9:10         ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2014-06-05  9:10 UTC (permalink / raw)
  To: pol stra; +Cc: conteXt mail


[-- Attachment #1.1: Type: text/plain, Size: 832 bytes --]


Am 28.05.2014 um 11:37 schrieb pol stra <ryzz@hotmail.fr>:

> 
> 
> > Subject: Re: [NTG-context] [bug?] no space before \cite[data][] and after \abbreviation
> > From: schuster.wolfgang@gmail.com
> > Date: Tue, 27 May 2014 16:38:28 +0200
> > CC: ntg-context@ntg.nl
> > To: ryzz@hotmail.fr
> > 
> > 
> > Am 25.05.2014 um 09:27 schrieb Pol Stra <ryzz@hotmail.fr>:
> > 
> > > What about the cite command and the space _before_?
> > 
> > Do you have a minimal example for this?
> > 
> > Wolfgang
> 
> Sorry, it seems the issue appears only when used in footnote.
> I joined a minimal example. You can see in the output that there is a space in the text, but not in the footnote.


I don’t know why the space is removed in the footnote but when you use a nonbreakable space with ~ it won’t disappear.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2196 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 6+ messages in thread

end of thread, other threads:[~2014-06-05  9:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-22 12:35 [bug?] no space before \cite[data][] and after \abbreviation pol stra
2014-05-22 14:15 ` Wolfgang Schuster
2014-05-25  7:27   ` Pol Stra
2014-05-27 14:38     ` Wolfgang Schuster
2014-05-28  9:37       ` pol stra
2014-06-05  9:10         ` Wolfgang Schuster

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