unwanted space after \in
Unlike \goto and \at, \in seems to insert an unwanted space before any text that follows. MWE— starttext Text\reference[abc]{} \page Text , \in{Text}[abc], \at{Text, p.}[abc], \goto{Text}[abc], \stoptext Alan
On 08/18/2017 09:33 PM, Alan Bowen wrote:
Unlike \goto and \at, \in seems to insert an unwanted space before any text that follows.
Alan, I’m not sure I get what is the issue: \starttext \chapter[abc]{Chapter} \reference[bca]{} \page \in{in reference}[abc], \in{in reference}[bca], \at{at reference, p.}[abc], \goto{goto reference}[abc], \stoptext \in behaves as \at in terms of blank spaces in the first case. I guess that the problem there is that there is no reference to solve in the second case. But I may be missing your point. Pablo -- http://www.ousia.tk
Hi, Pablo—I should have been clearer. The issue is the space that \in
inserts before the final comma. At that’s what I get using the latest
standalone beta. (Do you see it?)
Alan
On Fri, Aug 18, 2017 at 4:47 PM, Pablo Rodriguez
On 08/18/2017 09:33 PM, Alan Bowen wrote:
Unlike \goto and \at, \in seems to insert an unwanted space before any text that follows.
Alan,
I’m not sure I get what is the issue:
\starttext \chapter[abc]{Chapter}
\reference[bca]{}
\page \in{in reference}[abc],
\in{in reference}[bca],
\at{at reference, p.}[abc],
\goto{goto reference}[abc],
\stoptext
\in behaves as \at in terms of blank spaces in the first case.
I guess that the problem there is that there is no reference to solve in the second case.
But I may be missing your point.
Pablo -- http://www.ousia.tk ____________________________________________________________ _______________________ 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 ____________________________________________________________ _______________________
Confirmed, see attached JPG. Cheers, Sebastian On 8/18/2017 11:03 PM, Alan Bowen wrote:
Hi, Pablo—I should have been clearer. The issue is the space that \in inserts before the final comma. At that’s what I get using the latest standalone beta. (Do you see it?)
Alan
On Fri, Aug 18, 2017 at 4:47 PM, Pablo Rodriguez
mailto:oinos@gmx.es> wrote: On 08/18/2017 09:33 PM, Alan Bowen wrote: > Unlike \goto and \at, \in seems to insert an unwanted space before any > text that follows.
Alan,
I’m not sure I get what is the issue:
\starttext \chapter[abc]{Chapter}
\reference[bca]{}
\page \in{in reference}[abc],
\in{in reference}[bca],
\at{at reference, p.}[abc],
\goto{goto reference}[abc],
\stoptext
\in behaves as \at in terms of blank spaces in the first case.
I guess that the problem there is that there is no reference to solve in the second case.
But I may be missing your point.
Pablo -- http://www.ousia.tk ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context 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/ https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
On Fri, 18 Aug 2017, Alan Bowen wrote:
Unlike \goto and \at, \in seems to insert an unwanted space before any text that follows.
MWE—
starttext Text\reference[abc]{}
\page Text ,
\in{Text}[abc],
\at{Text, p.}[abc],
\goto{Text}[abc], \stoptext
I am not sure if I consider this a bug. In a typical use case, \reference will have a value, e.g., \reference[abc]{whatever}. In that case, if you use \in{Text}[abc], there should be a non-breakable space between "Text" and "whatever". You appear to be abusing the reference system by giving an empty reference. I think that usin \goto is better in this case rather than adding a check to \in for an atypical use case. Aditya
Thanks, Aditya. Using \goto works better.
I have been abusing \reference for some time now, mainly to mark the end of
a file in order to generate page numbers: E.g., \reference[EOF]{} just
before \stoptext or \stopcomponent with \at[EOF]. This has worked for
getting the page range of a chapter or paper. Is there a better way to do
this?
Alan
On Fri, Aug 18, 2017 at 10:26 PM, Aditya Mahajan
On Fri, 18 Aug 2017, Alan Bowen wrote:
Unlike \goto and \at, \in seems to insert an unwanted space before any text
that follows.
MWE—
starttext Text\reference[abc]{}
\page Text ,
\in{Text}[abc],
\at{Text, p.}[abc],
\goto{Text}[abc], \stoptext
I am not sure if I consider this a bug. In a typical use case, \reference will have a value, e.g., \reference[abc]{whatever}. In that case, if you use \in{Text}[abc], there should be a non-breakable space between "Text" and "whatever". You appear to be abusing the reference system by giving an empty reference.
I think that usin \goto is better in this case rather than adding a check to \in for an atypical use case.
Aditya ____________________________________________________________ _______________________ 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 ____________________________________________________________ _______________________
participants (4)
-
Aditya Mahajan
-
Alan Bowen
-
Pablo Rodriguez
-
Sebastian L.