* unwanted space after \in
@ 2017-08-18 19:33 Alan Bowen
2017-08-18 20:47 ` Pablo Rodriguez
2017-08-19 2:26 ` Aditya Mahajan
0 siblings, 2 replies; 6+ messages in thread
From: Alan Bowen @ 2017-08-18 19:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 238 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1174 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unwanted space after \in
2017-08-18 19:33 unwanted space after \in Alan Bowen
@ 2017-08-18 20:47 ` Pablo Rodriguez
2017-08-18 21:03 ` Alan Bowen
2017-08-19 2:26 ` Aditya Mahajan
1 sibling, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2017-08-18 20:47 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unwanted space after \in
2017-08-18 20:47 ` Pablo Rodriguez
@ 2017-08-18 21:03 ` Alan Bowen
2017-08-19 2:21 ` Sebastian L.
0 siblings, 1 reply; 6+ messages in thread
From: Alan Bowen @ 2017-08-18 21:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1503 bytes --]
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 <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 / 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
> ____________________________________________________________
> _______________________
[-- Attachment #1.2: Type: text/html, Size: 2745 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unwanted space after \in
2017-08-18 21:03 ` Alan Bowen
@ 2017-08-19 2:21 ` Sebastian L.
0 siblings, 0 replies; 6+ messages in thread
From: Sebastian L. @ 2017-08-19 2:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2386 bytes --]
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 <oinos@gmx.es
> <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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 5491 bytes --]
[-- Attachment #2: in-test.jpg --]
[-- Type: image/jpeg, Size: 58590 bytes --]
[-- Attachment #3: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unwanted space after \in
2017-08-18 19:33 unwanted space after \in Alan Bowen
2017-08-18 20:47 ` Pablo Rodriguez
@ 2017-08-19 2:26 ` Aditya Mahajan
2017-08-19 11:36 ` Alan Bowen
1 sibling, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2017-08-19 2:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 742 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: unwanted space after \in
2017-08-19 2:26 ` Aditya Mahajan
@ 2017-08-19 11:36 ` Alan Bowen
0 siblings, 0 replies; 6+ messages in thread
From: Alan Bowen @ 2017-08-19 11:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1751 bytes --]
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 <adityam@umich.edu> wrote:
> 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
> ____________________________________________________________
> _______________________
>
[-- Attachment #1.2: Type: text/html, Size: 3141 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-08-19 11:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-18 19:33 unwanted space after \in Alan Bowen
2017-08-18 20:47 ` Pablo Rodriguez
2017-08-18 21:03 ` Alan Bowen
2017-08-19 2:21 ` Sebastian L.
2017-08-19 2:26 ` Aditya Mahajan
2017-08-19 11:36 ` Alan Bowen
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).