Re: [NTG-context] Referencing fonts by path within ConTeXt

2021-08-07 Thread Wolfgang Schuster via ntg-context

Joey McCollum via ntg-context schrieb am 07.08.2021 um 22:29:

Hi,

I'm interested in packaging a ConTeXt project in a self-contained way, 
so that the environment/component/project .tex files, the bibliography 
.bib file(s), and fonts used for typesetting are all provided in one 
place. (The goal is that others can generate the PDFs themselves from 
the source files as long as they have a sufficiently recent version of 
ConTeXt installed.) The usual ConTeXt directory structure makes sense 
for most of this, but it doesn't address the possibility of accessing 
fonts locally. I think I could do this with a script that temporarily 
sets the OSFONTDIR variable to the local fonts directory and then 
invokes ConTeXt to typeset the project-level file, but I was wondering 
if there is an easier way to do this from within ConTeXt. 
Specifically, is there a way to specify a font via a local path with 
font setup commands in an environment file?


You can use

    \usefontpath[...]

to set a directory where ConTeXt searches for fonts but this works only 
when you use a typescript and not for \definefontfamily.


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing fonts by path within ConTeXt

2021-08-07 Thread Henning Hraban Ramm via ntg-context


> Am 07.08.2021 um 22:29 schrieb Joey McCollum via ntg-context 
> :
> 
> Hi,
> 
> I'm interested in packaging a ConTeXt project in a self-contained way, so 
> that the environment/component/project .tex files, the bibliography .bib 
> file(s), and fonts used for typesetting are all provided in one place. (The 
> goal is that others can generate the PDFs themselves from the source files as 
> long as they have a sufficiently recent version of ConTeXt installed.) The 
> usual ConTeXt directory structure makes sense for most of this, but it 
> doesn't address the possibility of accessing fonts locally. I think I could 
> do this with a script that temporarily sets the OSFONTDIR variable to the 
> local fonts directory and then invokes ConTeXt to typeset the project-level 
> file, but I was wondering if there is an easier way to do this from within 
> ConTeXt. Specifically, is there a way to specify a font via a local path with 
> font setup commands in an environment file?

You can just specify your fonts in the typescript as 
[file:relative_path/fontname.otf].

OSFONTDIR isn’t as reliable as you need "mtxrun --script fonts --reload" after 
changing it (and sometimes "mtxrun --generate" before).

Hraban
___
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
___


[NTG-context] Referencing fonts by path within ConTeXt

2021-08-07 Thread Joey McCollum via ntg-context
Hi,

I'm interested in packaging a ConTeXt project in a self-contained way, so
that the environment/component/project .tex files, the bibliography .bib
file(s), and fonts used for typesetting are all provided in one place. (The
goal is that others can generate the PDFs themselves from the source files
as long as they have a sufficiently recent version of ConTeXt installed.)
The usual ConTeXt directory structure makes sense for most of this, but it
doesn't address the possibility of accessing fonts locally. I think I could
do this with a script that temporarily sets the OSFONTDIR variable to the
local fonts directory and then invokes ConTeXt to typeset the project-level
file, but I was wondering if there is an easier way to do this from within
ConTeXt. Specifically, is there a way to specify a font via a local path
with font setup commands in an environment file?

Thank you!

Joey
___
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
___


Re: [NTG-context] referencing both real and user pagenumbers

2020-05-29 Thread Wolfgang Schuster

Alan Bowen schrieb am 29.05.2020 um 16:53:

Thank you, Wolfgang. That works nicely.

One small detail left: the reference is not interactive.

I have tried \setupreferencing [state=start, interaction=all] but that 
does not seem to be the way.


minimal file:
\setupinteraction[state=start]
\starttext
\chapter[title=My first,
reference=First]
\page
in chapter 1 on page \getreference[realpage][First]
\stoptext


Create a new reference command with

\definereferenceformat [getrealpage] [type=realpage]

and use it (e.g. \getrealpage[First]) to show the page number.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing both real and user pagenumbers

2020-05-29 Thread Wolfgang Schuster

Alan Bowen schrieb am 29.05.2020 um 00:13:
I have a collection of papers printed previously that are to go into a 
single volume so that, while the papers retain their original 
pagination and internal cross-referencing, they are also paginated 
continuously. I have managed to do this using userpagenumbers for the 
individual papers and realpagenumbers for the volume as a whole.


Re cross-referencing: \at and \in etc. return userpagenumbers (which I 
need). But I also need them (or something like them) to 
return realpagenumbers as well. Is there a way to do this?


\getreference [realpage] []

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] referencing both real and user pagenumbers

2020-05-28 Thread Alan Bowen
I have a collection of papers printed previously that are to go into a
single volume so that, while the papers retain their original pagination
and internal cross-referencing, they are also paginated continuously. I
have managed to do this using userpagenumbers for the individual papers and
realpagenumbers for the volume as a whole.

Re cross-referencing: \at and \in etc. return userpagenumbers (which I
need). But I also need them (or something like them) to
return realpagenumbers as well. Is there a way to do this?

Alan
___
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
___


Re: [NTG-context] Referencing formulas doesn't work?

2020-02-09 Thread Exp
Please allow me to ask in this thread something slightly off-topic:
why doesn't ConTeXt give a compilation error or alike when
encountering such kind of mistakes? Is it technically difficult, or
is it conventional for *TeX processors to be over tolerant?

On Sun, Feb 9, 2020 at 11:05 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> On Mon, 10 Feb 2020 05:58:50 +0800
> Jon Wong  wrote:
>
> > MWE:
> >
> > \starttext
> >
> > The famous result (and again) is given by
> > \placeformula[formulalabel]
> > \startformula
> > c^2 = a^2 + b^2.
> > \stopformula
> > And now we can refer to formula \ref[][formulalabel].
> >
> > \stoptext
> >
> > There is a blank where the formula label should be at “now we can refer
> to formula ---“.
>
> Use \ref[number][formulalabel] or \in[formulalabel].
>
> 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://context.aanhet.net
> archive  : 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
___


Re: [NTG-context] Referencing formulas doesn't work?

2020-02-09 Thread Wolfgang Schuster
On Mon, 10 Feb 2020 05:58:50 +0800
Jon Wong  wrote:

> MWE:
> 
> \starttext
> 
> The famous result (and again) is given by
> \placeformula[formulalabel]
> \startformula
> c^2 = a^2 + b^2.
> \stopformula
> And now we can refer to formula \ref[][formulalabel].
> 
> \stoptext
> 
> There is a blank where the formula label should be at “now we can refer to 
> formula ---“.

Use \ref[number][formulalabel] or \in[formulalabel].

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Referencing formulas doesn't work?

2020-02-09 Thread Jon Wong
MWE:

\starttext

The famous result (and again) is given by
\placeformula[formulalabel]
\startformula
c^2 = a^2 + b^2.
\stopformula
And now we can refer to formula \ref[][formulalabel].

\stoptext

There is a blank where the formula label should be at “now we can refer to 
formula ---“.

Regards
Jon
___
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
___


Re: [NTG-context] Referencing equation, missing dot

2019-11-14 Thread Hans Hagen

On 11/13/2019 9:20 PM, Mikael P. Sundqvist wrote:

Hi,

The following example used to work.

But with an LMTX updated today, the numbering \eqref produces is (11) 
instead of the expected (1.1). The numbering in the equation itself is fine.


Did something change on purpose?

/Mikael

%%% TEST FILE
\definereferenceformat[eqref][left=(,right=)]

\starttext
\chapter[title=Foo]

\placeformula[eq:bar]
\startformula
1+1=2
\stopformula
We see in \eqref[eq:bar].
\stoptext

fixed in next beta

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


[NTG-context] Referencing equation, missing dot

2019-11-13 Thread Mikael P. Sundqvist
Hi,

The following example used to work.

But with an LMTX updated today, the numbering \eqref produces is (11)
instead of the expected (1.1). The numbering in the equation itself is fine.

Did something change on purpose?

/Mikael

%%% TEST FILE
\definereferenceformat[eqref][left=(,right=)]

\starttext
\chapter[title=Foo]

\placeformula[eq:bar]
\startformula
1+1=2
\stopformula
We see in \eqref[eq:bar].
\stoptext
___
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
___


Re: [NTG-context] Referencing the page on which an endnote was generated

2019-04-10 Thread Huseyin Özoguz

Hi,

you can always set *\pagereference[bla] *into the text and reference to 
the pagenumber of the reference with *\at[bla]*.


Is that what you wanted?

Huseyin Özoguz

--
Huseyin Özoguz

E-Mail: h.oezo...@mmnetz.de

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


[NTG-context] Referencing the page on which an endnote was generated

2019-04-09 Thread Rik Kabel

List,

I would like to create headings for the endnotes appendix chapter of a 
book with headings like "Notes for pages x–y" but can find no way to 
capture x and y.


Is there a way to get those page numbers to insert into the header?

--
Rik


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


[NTG-context] referencing is broken in version: 2018.08.15 18:45

2018-08-15 Thread Rik Kabel

With this example code from the wiki (slightly modified for use here):

   \setuppapersize[A5]
   \starttext
   \placeformula[eq:pythagoras]
   \startformula
  a^2+b^2=c^2
   \stopformula
   This is explained in \in{Equation}{.}[eq:pythagoras]
   \stoptext

The following output is obtained:

A good excuse to stop for the night, thank you.

--
Rik

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

Re: [NTG-context] referencing a footnote (and getting the right number)

2018-08-13 Thread Pablo Rodriguez
On 08/12/2018 10:10 PM, Robert Zydenbos wrote:
> [...] 
> What does disturb me, however, is that I have this one chapter where
> the wrong note number is indicated (note 19 is referred to as note
> '18'), and I do not know why. Could it be that this is because earlier
> in the chapter I have also used

I wasn’t able to compile your source, but this works fine:

\starttext
\dorecurse{30}{a\footnote{Zapf.} }

\startlocalfootnotes[n=0,conversion=characters,location=none]
\bTABLE
\bTR \bTD 1 \footnote{\dorecurse{10}{abcd }} \eTD \bTD 2 \eTD \eTR
\bTR \bTD 3 4 5 6 7 8 9 \eTD \bTD 10 \eTD \eTR
\eTABLE
\placelocalfootnotes
\stoplocalfootnotes

\dorecurse{30}{e\footnote{Other.} }
\footnote[uvu-avu]{These two suffixes […]}
\dorecurse{30}{b\footnote{Knuth.} }
…
\footnote{See n.~\in[uvu-avu] on p.~\at[uvu-avu].}
\stoptext

> and that this somehow interferes with the referencing of other
> footnotes? That is the only difference I see between this chapter and
> the others.

Without the source, all I can say is that it shouldn’t interfere.

A simple way to check it would be to comment out the fragment with the
local footnotes, compile and see what happens with the referenced number.

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
___

Re: [NTG-context] referencing a footnote (and getting the right number)

2018-08-12 Thread Robert Zydenbos

> On 12. Aug 2018, at 17:38, Pablo Rodriguez  wrote:
> 
> Hi Robert,
> 
> the reference command in notes is \in (for both MkII and MkIV), such as in:
> 
>\starttext
>\dorecurse{30}{\footnote{Footnote}}
>\footnote[uvu-avu]{These two suffixes […]}
>\dorecurse{30}{\footnote{Footnote}}
>…
>\footnote{See n.~\in[uvu-avu].}
>\stoptext

Aha. I didn’t find that in contextref.pdf (2013 edition). But it works!

What does disturb me, however, is that I have this one chapter where the wrong 
note number is indicated (note 19 is referred to as note '18'), and I do not 
know why. Could it be that this is because earlier in the chapter I have also 
used

\setupnote [localnote] [location=none]
…
\startlocalfootnotes[conversion=characters,n=0]
…
\placenotes [localnote]
\stoplocalfootnotes

and that this somehow interferes with the referencing of other footnotes? That 
is the only difference I see between this chapter and the others.

Robert
___
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
___

Re: [NTG-context] referencing a footnote

2018-08-12 Thread Robert Zydenbos

> On 12. Aug 2018, at 17:52, Pablo Rodriguez  wrote:
> 
> Sorry, Robert, I almost forgot it.
> 
> If you reset the footnote numbers in each chapter, I’d rather suggest
> something similar to:
> 
>  \footnote{See n.~\in[uvu-avu] on p.~\at[uvu-avu].}
> 
> Since footnote numbers aren’t unique, consider providing the page or the
> chapter number.

Of course. :-)

Robert

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

Re: [NTG-context] referencing a footnote

2018-08-12 Thread Pablo Rodriguez
On 08/12/2018 05:38 PM, Pablo Rodriguez wrote:
>> On 08/12/2018 04:34 PM, Robert Zydenbos wrote:
>> [..]
>> …
>> \footnote[uvu-avu]{These two suffixes […]}
>> …
>> \footnote{See n.~\note[uvu-avu].}
>> …
> 
> Hi Robert,
> 
> the reference command in notes is \in (for both MkII and MkIV), such
> as in: [...]

Sorry, Robert, I almost forgot it.

If you reset the footnote numbers in each chapter, I’d rather suggest
something similar to:

  \footnote{See n.~\in[uvu-avu] on p.~\at[uvu-avu].}

Since footnote numbers aren’t unique, consider providing the page or the
chapter number.

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
___

Re: [NTG-context] referencing a footnote

2018-08-12 Thread Pablo Rodriguez
On 08/12/2018 04:34 PM, Robert Zydenbos wrote:
> Another footnote question for the experts. I want to refer to a note
> from within another, later note. I thought I could do this in
> the following way:
> 
> …
> \footnote[uvu-avu]{These two suffixes […]}
> …
> \footnote{See n.~\note[uvu-avu].}
> …

Hi Robert,

the reference command in notes is \in (for both MkII and MkIV), such as in:

\starttext
\dorecurse{30}{\footnote{Footnote}}
\footnote[uvu-avu]{These two suffixes […]}
\dorecurse{30}{\footnote{Footnote}}
…
\footnote{See n.~\in[uvu-avu].}
\stoptext

I hope it helps,

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
___

[NTG-context] referencing a footnote

2018-08-12 Thread Robert Zydenbos
Another footnote question for the experts. I want to refer to a note from 
within another, later note. I thought I could do this in the following way:

…
\footnote[uvu-avu]{These two suffixes […]
…
\footnote{See n.~\note[uvu-avu].}
…

But I get this result:



There are two things wrong:

(1) I want to get a result that looks like “See n. 18.”, with a number that is 
not superscript. (This happens when I try such referencing in other notes as 
well as in the main text.)
(2) The number is wrong: it is footnote #19, not 18.

I *could* work around this problem by totally different means – but I would 
much prefer to reference notes more or less in the manner I tried above. What 
could I improve in my code?

Robert___
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
___

Re: [NTG-context] referencing the equation

2018-08-09 Thread Henri Menke
I usually define my own reference formats, “ineq” for equations, “infig” 
for figures:


\definereferenceformat[ineq][left=(,right=)]
\definereferenceformat[infig][left=\labeltext{figure}]

\starttext

\starttext

\placeformula
\startformula \startalign
 \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
 \NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula

As seen from \ineq[eq:1] and \ineq[eq:2], referring equations is 
straight forward.


\stoptext

\stoptext

On 10/08/18 10:00, Jeong Dal wrote:

Dear Wolfgang,

Although there is an answer in the manual, I didn’t read it carefully.

Sometimes, I used “\in{word}[reference]” like “\in{equation}[eq:1]".
But I have to change it to “equation (\in[eq:1])”.

Thank you so much.

Best regards,

Dalyoung


2018. 8. 10. 오전 12:21, Wolfgang Schuster  작성:

When you look at the first example in section 4.1 you can see that the 
parentheses are inserted by hand.

%%
\starttext

\placeformula
\startformula \startalign
  \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
  \NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula

As seen from (\in[eq:1]) and (\in[eq:2]), referring equations is straight 
forward.

\stoptext
%%

Wolfgang



Jeong Dal schrieb am 09.08.18 um 17:12:

Dear,

The examples in mathalign.pdf(p4 - ) tells us the method of referencing the 
equation.
The numbers for the equation is written as (1.1), and in the text, it is 
written as (1.1).
That is the numbers are  always surrounded by ( , ).

In the output of the following code, the equations are numbered surrounded by 
().
But there is no (), when we referece it.

What is the difference between MWE and mathalign.pdf.

Thank you for reading.

Best regards,

Dalyoung

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




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


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

Re: [NTG-context] referencing the equation

2018-08-09 Thread Jeong Dal
Dear Wolfgang,

Although there is an answer in the manual, I didn’t read it carefully.

Sometimes, I used “\in{word}[reference]” like “\in{equation}[eq:1]". 
But I have to change it to “equation (\in[eq:1])”. 

Thank you so much.

Best regards,

Dalyoung

> 2018. 8. 10. 오전 12:21, Wolfgang Schuster  
> 작성:
> 
> When you look at the first example in section 4.1 you can see that the 
> parentheses are inserted by hand.
> 
> %%
> \starttext
> 
> \placeformula
> \startformula \startalign
>  \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
>  \NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
> \stopalign \stopformula
> 
> As seen from (\in[eq:1]) and (\in[eq:2]), referring equations is straight 
> forward.
> 
> \stoptext
> %%
> 
> Wolfgang
> 
> 
> 
> Jeong Dal schrieb am 09.08.18 um 17:12:
>> Dear,
>> 
>> The examples in mathalign.pdf(p4 - ) tells us the method of referencing the 
>> equation.
>> The numbers for the equation is written as (1.1), and in the text, it is 
>> written as (1.1).
>> That is the numbers are  always surrounded by ( , ).
>> 
>> In the output of the following code, the equations are numbered surrounded 
>> by ().
>> But there is no (), when we referece it.
>> 
>> What is the difference between MWE and mathalign.pdf.
>> 
>> Thank you for reading.
>> 
>> Best regards,
>> 
>> Dalyoung
>> 
>> ___
>> 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
>> ___
> 

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

Re: [NTG-context] referencing the equation

2018-08-09 Thread Wolfgang Schuster
When you look at the first example in section 4.1 you can see that the 
parentheses are inserted by hand.


%%
\starttext

\placeformula
\startformula \startalign
  \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
  \NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula

As seen from (\in[eq:1]) and (\in[eq:2]), referring equations is 
straight forward.


\stoptext
%%

Wolfgang



Jeong Dal schrieb am 09.08.18 um 17:12:

Dear,

The examples in mathalign.pdf(p4 - ) tells us the method of referencing the 
equation.
The numbers for the equation is written as (1.1), and in the text, it is 
written as (1.1).
That is the numbers are  always surrounded by ( , ).

In the output of the following code, the equations are numbered surrounded by 
().
But there is no (), when we referece it.

What is the difference between MWE and mathalign.pdf.

Thank you for reading.

Best regards,

Dalyoung

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


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

[NTG-context] referencing the equation

2018-08-09 Thread Jeong Dal
Dear,

The examples in mathalign.pdf(p4 - ) tells us the method of referencing the 
equation.
The numbers for the equation is written as (1.1), and in the text, it is 
written as (1.1). 
That is the numbers are  always surrounded by ( , ).

In the output of the following code, the equations are numbered surrounded by 
().
But there is no (), when we referece it.

What is the difference between MWE and mathalign.pdf.

Thank you for reading.

Best regards,

Dalyoung

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

Re: [NTG-context] Referencing footnotes by SECTION

2018-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 02 Jul 2018 07:21:19 -0600, Wolfgang Schuster  
 wrote:



Idris Samawi Hamid ادريس سماوي حامد 
2. Juli 2018 um 14:34
Hi Wolfgang,

On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster
 wrote:


Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
   [footnote]
   [prefix=yes,
   %prefixsegments=chapter,
way=bychapter]


Many thanks for this. There is an unwanted side-effect: Let

marker= main-text footnote marker
header= numeral for footnote header
reference = reference numeral

The prefix appears in three places, e.g.,

marker- II.1
header- II.1
reference - II.1

but we only want the prefix in the reference, not anywhere else, e.g.,

marker- 1
header- 1
reference - II.1

The prefix in the main-text marker and in the footnote header are
superfluous, e.g., the reader already knows which chapter one is
reading. But to reference a footnote from a later chapter, a prefix is
needed to let the reader know which chapter.

So the question is: Can the prefix be made to apply only to the
reference and not the marker or notation header?


You have to set different prefixsegments settings for the note entries
and the references.


\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead
   [sectionconversionset=OLIE]

\setupnotation
   [footnote]
   [prefix=yes,
prefixset=none]

\setupreferencestructureprefix
   [footnote]
   [default]
   [prefixsegments=chapter,
prefixset=all]

\starttext

\chapter{Chapter}

Hey\footnote[listen]{This is a footnote.}

See \in{footnote}[listen].

\stoptext


Excellent; this is a big help. Many thanks!


==
Observation:

For endnotes at the end of a book having the prefix in the header is
also useful, i.e.,

marker- 1
header- II.1
reference - II.1

So a general mechanism to set the prefix for each of the above three
would be useful.

If not currently supported, would like to make this a feature request.
==


I don’t think this is possible because marker and header share the same
counter setups.


Ok, that makes sense. As always, thank you for your pointers and  
explanations!


Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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
___

Re: [NTG-context] Referencing footnotes by SECTION

2018-07-02 Thread Wolfgang Schuster




Idris Samawi Hamid ادريس سماوي حامد 
2. Juli 2018 um 14:34
Hi Wolfgang,

On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster 
 wrote:



Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
   [footnote]
   [prefix=yes,
   %prefixsegments=chapter,
way=bychapter]


Many thanks for this. There is an unwanted side-effect: Let

marker= main-text footnote marker
header= numeral for footnote header
reference = reference numeral

The prefix appears in three places, e.g.,

marker- II.1
header- II.1
reference - II.1

but we only want the prefix in the reference, not anywhere else, e.g.,

marker- 1
header- 1
reference - II.1

The prefix in the main-text marker and in the footnote header are 
superfluous, e.g., the reader already knows which chapter one is 
reading. But to reference a footnote from a later chapter, a prefix is 
needed to let the reader know which chapter.


So the question is: Can the prefix be made to apply only to the 
reference and not the marker or notation header?


You have to set different prefixsegments settings for the note entries 
and the references.



\defineconversionset [OLIE] [n,R,n,n,n,n] [n]

\setuphead
  [sectionconversionset=OLIE]

\setupnotation
  [footnote]
  [prefix=yes,
   prefixset=none]

\setupreferencestructureprefix
  [footnote]
  [default]
  [prefixsegments=chapter,
   prefixset=all]

\starttext

\chapter{Chapter}

Hey\footnote[listen]{This is a footnote.}

See \in{footnote}[listen].

\stoptext



==
Observation:

For endnotes at the end of a book having the prefix in the header is 
also useful, i.e.,


marker- 1
header- II.1
reference - II.1

So a general mechanism to set the prefix for each of the above three 
would be useful.


If not currently supported, would like to make this a feature request.
==


I don’t think this is possible because marker and header share the same 
counter setups.


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Referencing footnotes by SECTION

2018-07-02 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Wolfgang,

On Mon, 02 Jul 2018 00:58:44 -0600, Wolfgang Schuster  
 wrote:



Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
   [footnote]
   [prefix=yes,
   %prefixsegments=chapter,
way=bychapter]


Many thanks for this. There is an unwanted side-effect: Let

marker= main-text footnote marker
header= numeral for footnote header
reference = reference numeral

The prefix appears in three places, e.g.,

marker- II.1
header- II.1
reference - II.1

but we only want the prefix in the reference, not anywhere else, e.g.,

marker- 1
header- 1
reference - II.1

The prefix in the main-text marker and in the footnote header are  
superfluous, e.g., the reader already knows which chapter one is reading.  
But to reference a footnote from a later chapter, a prefix is needed to  
let the reader know which chapter.


So the question is: Can the prefix be made to apply only to the reference  
and not the marker or notation header?


==
Observation:

For endnotes at the end of a book having the prefix in the header is also  
useful, i.e.,


marker- 1
header- II.1
reference - II.1

So a general mechanism to set the prefix for each of the above three would  
be useful.


If not currently supported, would like to make this a feature request.
==

Thank you again, Wolfgang.

Best wishes
Idris


Idris Samawi Hamid ادريس سماوي حامد 
30. Juni 2018 um 23:04
Dear gang,

When referencing footnotes that reset each chapter, is there a way to
include the chapter information? See attached and below:

===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
===

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an
ambiguity: Both references give back

 "Footnote 1"

Whereas what we would like is something like this:

 Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

 Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the
reference-numberconversionset issue of the other thread, where

\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris





--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

reference-footnotes.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] Referencing footnotes by SECTION

2018-07-02 Thread Wolfgang Schuster

Hi Idris,

you can enable the display of chapter numbers with the prefix-key:

\setupnotation
  [footnote]
  [prefix=yes,
  %prefixsegments=chapter,
   way=bychapter]

Wolfgang

Idris Samawi Hamid ادريس سماوي حامد 
30. Juni 2018 um 23:04
Dear gang,

When referencing footnotes that reset each chapter, is there a way to 
include the chapter information? See attached and below:


===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
===

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an 
ambiguity: Both references give back


 "Footnote 1"

Whereas what we would like is something like this:

 Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

 Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the 
reference-numberconversionset issue of the other thread, where


\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris


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

Re: [NTG-context] Referencing footnotes by SECTION

2018-06-30 Thread Idris Samawi Hamid ادريس سماوي حامد

Attached!

On Sat, 30 Jun 2018 15:04:02 -0600, Idris Samawi Hamid ادريس سماوي حامد  
 wrote:



Dear gang,

When referencing footnotes that reset each chapter, is there a way to  
include the chapter information? See attached and below:


===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
textdistance=0.7em,
sectionstopper=.,
criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
[prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
===

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an  
ambiguity: Both references give back


  "Footnote 1"

Whereas what we would like is something like this:

  Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

  Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the  
reference-numberconversionset issue of the other thread, where


\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
[prefixstopper=\zerowidthspace,
 numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris



--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

scratch.tex
Description: TeX document


scratch.pdf
Description: Adobe PDF document
___
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
___

[NTG-context] Referencing footnotes by SECTION

2018-06-30 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

When referencing footnotes that reset each chapter, is there a way to  
include the chapter information? See attached and below:


===
\setuphead[chapter]   [alternative=normal,conversion=R]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]

\setupnotation[footnote][way=bychapter]

\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace]

\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward
\startfootnote[footnote1]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote2].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference5}]
\input ward
\startfootnote[footnote2]
\input ward
\stopfootnote{}

See \in{Footnote}[footnote1].
\stopsubsection
\stopchapter
\stoptext
===

If line 8 is commented -
\setupnotation[footnote][way=bychapter]
- we get what we expect. But if line 8 is activated, we get an ambiguity:  
Both references give back


 "Footnote 1"

Whereas what we would like is something like this:

 Footnote  I.1

i.e., Chapter I, Footnote 1 - for the first footnote; and

 Footnote II.1

i.e., Chapter II, Footnote 1 - for the second footnote.

Is there a straightforward way to do this?

[[Of course, for the roman chapter numbering we also run into the  
reference-numberconversionset issue of the other thread, where


\definestructureconversionset[OLIE][n,R,n,n,n,n][n]
\setupreferencestructureprefix [section] [default]
   [prefixstopper=\zerowidthspace,
numberconversionset=OLIE]

doesn't seem to work.]]

Thank you in advance for any guidance or pointers you can provide!

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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
___

Re: [NTG-context] referencing and stoppers

2018-06-30 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 30 Jun 2018 04:20:57 -0600, Wolfgang Schuster  
 wrote:



You can use the \setupreferencestructureprefix command set a different
value for
the stopper but you have to ensure the key takes a value because a empty
argument is ignored. Instead of the argument I used in my example
(\symbol[none])
you can also use a unicode character without width, e.g. \zerowidthspace.


\setupreferencestructureprefix [section] [default]
[prefixstopper={\symbol[none]}]
%\setupreferencestructureprefix [section] [default]
[prefixstopper=\zerowidthspace]

   1. Argument: section name -> section == \section / \startsection
   2. Argument: reference type -> default == \in
   3. Argument: settings which differ from \setuphead


Many thanks, this is exactly what was needed!

Your replies and pointers are appreciated and not taken for granted.

Best wishes
Idris


Idris Samawi Hamid ادريس سماوي حامد 
29. Juni 2018 um 16:22
Dear gang,

For, e.g., \setuphead[...][alternative=text], one often wants the
stopper to appear in the main text sectioning but not in the
references to those sections. For example (attached and below):

===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]
\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference4}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

See Sections 2.1. and Section 2.2..
See Sections 1.1. and Section 1.2..

SHOULD BE

See Sections 2.1 and Section 2.2.
See Sections 1.1 and Section 1.2.

Is there a straightforward way to remove the stopper from the \in
reference while maintaining it in the main sectioning but removing it
in the referencing?

If there is no straightforward way, what is the best workaround?

As mentioned at the outset, this is not an uncommon scenario. If there
is no straightforward way, would like to make it a feature request.

Thank you in advance for your help.

Idris
___
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
___





--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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
___

Re: [NTG-context] referencing and stoppers

2018-06-30 Thread Wolfgang Schuster
You can use the \setupreferencestructureprefix command set a different 
value for

the stopper but you have to ensure the key takes a value because a empty
argument is ignored. Instead of the argument I used in my example 
(\symbol[none])

you can also use a unicode character without width, e.g. \zerowidthspace.


\setupreferencestructureprefix [section] [default] 
[prefixstopper={\symbol[none]}]
%\setupreferencestructureprefix [section] [default] 
[prefixstopper=\zerowidthspace]


  1. Argument: section name -> section == \section / \startsection
  2. Argument: reference type -> default == \in
  3. Argument: settings which differ from \setuphead


Wolfgang

Idris Samawi Hamid ادريس سماوي حامد 
29. Juni 2018 um 16:22
Dear gang,

For, e.g., \setuphead[...][alternative=text], one often wants the 
stopper to appear in the main text sectioning but not in the 
references to those sections. For example (attached and below):


===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]
\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference4}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

See Sections 2.1. and Section 2.2..
See Sections 1.1. and Section 1.2..

SHOULD BE

See Sections 2.1 and Section 2.2.
See Sections 1.1 and Section 1.2.

Is there a straightforward way to remove the stopper from the \in 
reference while maintaining it in the main sectioning but removing it 
in the referencing?


If there is no straightforward way, what is the best workaround?

As mentioned at the outset, this is not an uncommon scenario. If there 
is no straightforward way, would like to make it a feature request.


Thank you in advance for your help.

Idris
___
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
___


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

[NTG-context] referencing and stoppers

2018-06-29 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

For, e.g., \setuphead[...][alternative=text], one often wants the stopper  
to appear in the main text sectioning but not in the references to those  
sections. For example (attached and below):


===
\setuphead[chapter]   [alternative=normal]
\setuphead[subsection][alternative=text]
\setuphead[subsection][distance=0em,
   textdistance=0.7em,
   sectionstopper=.,
   criterium=local]
\setupwhitespace[big]
\starttext

\startchapter[title={First},reference={}]
\startsubsection[title={},reference={reference1}]
\input ward

See \in{Sections}[reference3] and \in{Section}[reference4].
\stopsubsection
\startsubsection[title={},reference={reference2}]
\input ward
\stopsubsection
\stopchapter

\startchapter[title={Second}]
\startsubsection[title={},reference={reference3}]
\input ward
\stopsubsection
\startsubsection[title={},reference={reference4}]
\input ward

See \in{Sections}[reference1] and \in{Section}[reference2].
\stopsubsection
\stopchapter
\stoptext
===

See Sections 2.1. and Section 2.2..
See Sections 1.1. and Section 1.2..

SHOULD BE

See Sections 2.1 and Section 2.2.
See Sections 1.1 and Section 1.2.

Is there a straightforward way to remove the stopper from the \in  
reference while maintaining it in the main sectioning but removing it in  
the referencing?


If there is no straightforward way, what is the best workaround?

As mentioned at the outset, this is not an uncommon scenario. If there is  
no straightforward way, would like to make it a feature request.


Thank you in advance for your help.

Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

section-space-text.pdf
Description: Adobe PDF document


section-space-text.tex
Description: TeX document
___
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
___

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen

On 1/12/2018 5:22 PM, Jeong Dal wrote:


Dear Hans,

Thank you for the quick answer.
Repalcing “p:=textext.rt();” and commenting out “headcommand=gobbleone…”  with 
your suggestion, the references are working.
However, there is a side effect.
“Theorem 1.1” appears twice, one in the frame which I expected and one at the 
beginning of the framed text which I don’t want.

One more thing, is there no way to show the number of  the Definition?

you can download a beta and try

\defineenumeration[Theorem]
  [alternative=empty,
   before=\startMyText,
   after=\stopMyText]

\defineframed
  [MyFramed]
  [frame=off,
   loffset=1ex,
   roffset=1ex,
   foregroundstyle=\ssbf]

\startuseMPgraphic{MyFrame}
picture p ; numeric o ; path a, b ; pair c ;
 %  p := textext.rt("\MyFramed{\currentconstructiontext}") ;
p := 
textext.rt("\wrappedconstruction{\MyFramed{\currentconstructiontext}}") ;
 %  p := 
textext.rt("\MyFramed{\wrappedconstruction{\currentconstructiontext}}") ;

 %  p := textext.rt("\MyFramed{\wrappedcurrentconstruction}") ;
o := BodyFontSize ;
a := OverlayBox ;
p := p shifted (2o,OverlayHeight-ypart center p) ;
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
b := a superellipsed .95 ;
draw b ;
b := (boundingbox p) superellipsed .95 ;
fill b withcolor .85white ;
draw b ;
draw p withcolor black ;
setbounds currentpicture to a ;
\stopuseMPgraphic

\defineoverlay[MyFrame][\useMPgraphic{MyFrame}]

\defineframedtext
  [MyText]
  [frame=off,
   background=MyFrame,
   offset=\bodyfontsize,
   width=\textwidth]

\starttext

\startTheorem[lem]
bla bla
\stopTheorem

Bla bla \in {Lemma} [lem] bla bla.

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Jeong Dal

Dear Hans,

Thank you for the quick answer.
Repalcing “p:=textext.rt();” and commenting out “headcommand=gobbleone…”  with 
your suggestion, the references are working.
However, there is a side effect.
“Theorem 1.1” appears twice, one in the frame which I expected and one at the 
beginning of the framed text which I don’t want.

One more thing, is there no way to show the number of  the Definition?

Thanks again.

Best regards,

Dalyoung

%%

\setupcolors[state=start]
\definecolor[dGreen] [r=0,g=.375,b=.0]
%%% define the background of Theorems:
\defineframed
  [FunnyFramed]
  [frame=off,
   loffset=1ex,
   roffset=1ex,
   foregroundstyle=\ssbf]

\startuseMPgraphic{FunnyFrame}
picture p ; numeric o ; path a, b ; pair c ;
%p := textext.rt(“\FunnyFramed{\enumerationparameter{text} 
\convertedcounter[Theorem]}”) ;
p := textext.rt("\FunnyFramed{\currentconstructiontext}") ;
o := BodyFontSize ;
a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
p := p shifted (2o,OverlayHeight-ypart center p) ;
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
b := a superellipsed .95 ;
draw b ;
b := (boundingbox p) superellipsed .95 ;
fill b withcolor .85white ;
draw b ;
draw p withcolor black ;
setbounds currentpicture to a ;
\stopuseMPgraphic 

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] 

\defineframedtext
  [FunnyText]
  [frame=off,
   background=FunnyFrame,
   before={\blank[line,halfline]},
   after={\blank[line]},
   offset=\bodyfontsize,
   width=\textwidth]

\defineenumeration[Theorem]
  [title=no,
  text={\translate[en=Theorem, kr=정리]},
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   alternative=command,
%% headcommand=\gobbleoneargument,
   before=\startFunnyText,  
   after=\stopFunnyText]

 Definition style
\definenumber[DefNumber][way=bychapter,sectionumber=yes]
\setuptextrules[rulecolor=dBlue]

\define\DefCommand{\incrementnumber[DefNumber]
\textrule[top]{\translate[en=Definition, kr=정 의] \getnumber[DefNumber]}
}   
\defineenumeration[Definition]
[width=fit,
alternative=serried,
text={}, 
number=no,
before={\DefCommand}, 
after=\vskip3pt\hrule\blank] 

%%% Examples with or without solutions
\defineenumeration[Exam]
   [text={\white\translate[en=Example, kr=예제]},
   numbercommand={\inframed[corner=round, 
framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, 
background=color,backgroundcolor=dGreen]},
%title=no,
alternataive=hanging,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
before={\blank[big]},
after=\blank]

 
\starttext

\chapter{Spaces}

\section{Space 1}

\startDefinition[def:first]
Let $X$ be a uncountable set. Let $\infty$ is a fixed point of $X$. Let 
$\mathcal T$ be the family of subsets $G$ such that either (i) $\infty \notin 
G$ or (ii) $\infty \in G \text{ and } G^c$ is finite. The space $(X, {\mathcal 
T} )$ is called {\bf Fort's space}.
\stopDefinition

\startTheorem[lem:first]
Fort's space is a compact and Hausdorff topological space.\par
\stopTheorem

\startTheorem[thm:second]
Fort's space is a compact and Hausdorff topological space.
\stopTheorem

\startExam[Ex:first]
Example Example Example Example Example Example Example Example Example 
Example Example Example Example Example Example Example Example Example 
Example Example Example Example Example Example Example Example Example 
\stopExam

In this example, we defined \in{Definition}[def:first]. After that, we proved 
\in{Lemma}[lem:first] and \in{정리}[thm:second]. Finally, \in{Example}[Ex:first], 
we saw an example of it.

\stoptext



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

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen

On 1/12/2018 3:54 AM, Jeong Dal wrote:

Hi,

Some time ago, I am able to use following code(the framed title for Theorems 
and etc.)
Thank Wolfgang and Otared again.

Since it uses the customized style of numbering, there is a problem to 
reference them.
As in the following code, \in{Definition}[] shows no number and \in{Theorem}[] 
shows ?? instead of numbers while \in{Exam}[] shows correctly.

Is there a way to show the numbers correctly?

% in cont-new.mkiv:

\unprotect

\defineconstructionalternative
  [\v!empty]
  [\c!renderingsetup=\??constructionrenderings:\v!empty]

\startsetups[\??constructionrenderings:\v!empty]
\noindent
\useconstructionstyleandcolor\c!style\c!color
\ignorespaces
\stopsetups

\protect

% till here

\defineenumeration[Theorem]
  [alternative=empty,
   before=\startMyText,
   after=\stopMyText]

\defineframed
  [MyFramed]
  [frame=off,
   loffset=1ex,
   roffset=1ex,
   foregroundstyle=\ssbf]

\startuseMPgraphic{MyFrame}
picture p ; numeric o ; path a, b ; pair c ;
p := textext.rt("\MyFramed{\currentconstructiontext}") ;
 %  p := 
textext.rt("\wrappedconstruction{\MyFramed{\currentconstructiontext}}") ;
 %  p := 
textext.rt("\MyFramed{\wrappedconstruction{\currentconstructiontext}}") ;

 %  p := textext.rt("\MyFramed{\wrappedcurrentconstruction}") ;
o := BodyFontSize ;
a := OverlayBox ;
p := p shifted (2o,OverlayHeight-ypart center p) ;
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
b := a superellipsed .95 ;
draw b ;
b := (boundingbox p) superellipsed .95 ;
fill b withcolor .85white ;
draw b ;
draw p withcolor black ;
setbounds currentpicture to a ;
\stopuseMPgraphic

\defineoverlay[MyFrame][\useMPgraphic{MyFrame}]

\defineframedtext
  [MyText]
  [frame=off,
   background=MyFrame,
   offset=\bodyfontsize,
   width=\textwidth]

\starttext

\startTheorem[lem]
bla bla
\stopTheorem

Bla bla \in {Lemma} [lem] bla bla.

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen

On 1/12/2018 3:54 AM, Jeong Dal wrote:

Hi,

Some time ago, I am able to use following code(the framed title for Theorems 
and etc.)
Thank Wolfgang and Otared again.

Since it uses the customized style of numbering, there is a problem to 
reference them.
As in the following code, \in{Definition}[] shows no number and \in{Theorem}[] 
shows ?? instead of numbers while \in{Exam}[] shows correctly.

Is there a way to show the numbers correctly?

Thank you for reading.

Best regards,

Dalyoung

%%%
\setupcolors[state=start]
\definecolor[dGreen] [r=0,g=.375,b=.0]
%%% define the background of Theorems:
\defineframed
   [FunnyFramed]
   [frame=off,
loffset=1ex,
roffset=1ex,
foregroundstyle=\ssbf]

\startuseMPgraphic{FunnyFrame}
 picture p ; numeric o ; path a, b ; pair c ;
 p := textext.rt("\FunnyFramed{\enumerationparameter{text} 
\convertedcounter[Theorem]}") ;


p := textext.rt("\FunnyFramed{\currentconstructiontext}") ;

in a next version:
% p := 
textext.rt("\wrappedconstruction{\FunnyFramed{\currentconstructiontext}}") ;
% p := 
textext.rt("\FunnyFramed{\wrappedconstruction{\currentconstructiontext}}") ;

% p := textext.rt("\FunnyFramed{\wrappedcurrentconstruction}") ;



 o := BodyFontSize ;
 a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
 p := p shifted (2o,OverlayHeight-ypart center p) ;
 drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
 b := a superellipsed .95 ;
 draw b ;
 b := (boundingbox p) superellipsed .95 ;
 fill b withcolor .85white ;
 draw b ;
 draw p withcolor black ;
 setbounds currentpicture to a ;
\stopuseMPgraphic

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]

\defineframedtext
   [FunnyText]
   [frame=off,
background=FunnyFrame,
before={\blank[line,halfline]},
%before={\blank[line]},
 after={\blank[line]},
offset=\bodyfontsize,
width=\textwidth]

\defineenumeration[Theorem]
   [title=yes,
   text={\translate[en=Theorem, kr=정리]},
prefix=yes,
prefixsegments=chapter,
way=bychapter,
alternative=command,
headcommand=\gobbleoneargument,


Don't do this ^^


before=\startFunnyText,
after=\stopFunnyText]

 Definition style
\definenumber[DefNumber][way=bychapter,sectionumber=yes]
\setuptextrules[rulecolor=dBlue]

\define\DefCommand{\incrementnumber[DefNumber]
\textrule[top]{\translate[en=Definition, kr=정 의] \getnumber[DefNumber]}
}   
\defineenumeration[Definition]
[alternative=hanging,
width=fit,
alternative=serried,
text={},
number=no,
before={\DefCommand},
after=\vskip3pt\hrule\blank]

%%% Examples with or without solutions
\defineenumeration[Exam]
[text={\white\translate[en=Example, kr=예제]},
numbercommand={\inframed[corner=round, 
framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, 
background=color,backgroundcolor=dGreen]},%height=1.3em,
%title=no,
 prefix=yes,
 prefixsegments=chapter,
 way=bychapter,
 before={\blank[big]},
 after=\blank]

\starttext

\chapter{Spaces}
 
\section{Space 1}


\startDefinition[def:first]
Let $X$ be a uncountable set. Let $\infty$ is a fixed point of $X$. Let 
$\mathcal T$ be the family of subsets $G$ such that either (i) $\infty \notin 
G$ or (ii) $\infty \in G \text{ and } G^c$ is finite. The space $(X, {\mathcal 
T} )$ is called {\bf Fort's space}.
\stopDefinition

\startTheorem[lem:first]
 Fort's space is a compact and Hausdorff topological space.\par
\stopTheorem

\startTheorem[thm:second]
 Fort's space is a compact and Hausdorff topological space.
\stopTheorem

\startExam[Ex:first]
Example Example Example Example Example Example Example Example Example
Example Example Example Example Example Example Example Example Example
Example Example Example Example Example Example Example Example Example
\stopExam

In this example, we defined \in{Definition}[def:first]. After that, we proved 
\in{Lemma}[lem:first] and \in{정리}[thm:second]. Finally, \in{Example}[Ex:first], 
we saw an example of it.

\stoptext
___
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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

[NTG-context] referencing the customized enumeration with framed title

2018-01-11 Thread Jeong Dal
Hi,

Some time ago, I am able to use following code(the framed title for Theorems 
and etc.)
Thank Wolfgang and Otared again.

Since it uses the customized style of numbering, there is a problem to 
reference them.
As in the following code, \in{Definition}[] shows no number and \in{Theorem}[] 
shows ?? instead of numbers while \in{Exam}[] shows correctly.

Is there a way to show the numbers correctly?

Thank you for reading.

Best regards,

Dalyoung

%%%
\setupcolors[state=start]
\definecolor[dGreen] [r=0,g=.375,b=.0]
%%% define the background of Theorems:
\defineframed
  [FunnyFramed]
  [frame=off,
   loffset=1ex,
   roffset=1ex,
   foregroundstyle=\ssbf]

\startuseMPgraphic{FunnyFrame}
picture p ; numeric o ; path a, b ; pair c ;
p := textext.rt("\FunnyFramed{\enumerationparameter{text} 
\convertedcounter[Theorem]}") ;
o := BodyFontSize ;
a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
p := p shifted (2o,OverlayHeight-ypart center p) ;
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
b := a superellipsed .95 ;
draw b ;
b := (boundingbox p) superellipsed .95 ;
fill b withcolor .85white ;
draw b ;
draw p withcolor black ;
setbounds currentpicture to a ;
\stopuseMPgraphic 

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] 

\defineframedtext
  [FunnyText]
  [frame=off,
   background=FunnyFrame,
   before={\blank[line,halfline]},
%before={\blank[line]},
after={\blank[line]},
   offset=\bodyfontsize,
   width=\textwidth]

\defineenumeration[Theorem]
  [title=yes,
  text={\translate[en=Theorem, kr=정리]},
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   alternative=command,
   headcommand=\gobbleoneargument,
   before=\startFunnyText,
   after=\stopFunnyText]

 Definition style
\definenumber[DefNumber][way=bychapter,sectionumber=yes]
\setuptextrules[rulecolor=dBlue]

\define\DefCommand{\incrementnumber[DefNumber]
\textrule[top]{\translate[en=Definition, kr=정 의] \getnumber[DefNumber]}
}   
\defineenumeration[Definition]
[alternative=hanging,
width=fit,
alternative=serried,
text={}, 
number=no,
before={\DefCommand}, 
after=\vskip3pt\hrule\blank] 

%%% Examples with or without solutions
\defineenumeration[Exam]
   [text={\white\translate[en=Example, kr=예제]},
   numbercommand={\inframed[corner=round, 
framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, 
background=color,backgroundcolor=dGreen]}, %height=1.3em,
%title=no,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
before={\blank[big]},
after=\blank]
 
\starttext

\chapter{Spaces}

\section{Space 1}

\startDefinition[def:first]
Let $X$ be a uncountable set. Let $\infty$ is a fixed point of $X$. Let 
$\mathcal T$ be the family of subsets $G$ such that either (i) $\infty \notin 
G$ or (ii) $\infty \in G \text{ and } G^c$ is finite. The space $(X, {\mathcal 
T} )$ is called {\bf Fort's space}.
\stopDefinition

\startTheorem[lem:first]
Fort's space is a compact and Hausdorff topological space.\par
\stopTheorem

\startTheorem[thm:second]
Fort's space is a compact and Hausdorff topological space.
\stopTheorem

\startExam[Ex:first]
Example Example Example Example Example Example Example Example Example 
Example Example Example Example Example Example Example Example Example 
Example Example Example Example Example Example Example Example Example 
\stopExam

In this example, we defined \in{Definition}[def:first]. After that, we proved 
\in{Lemma}[lem:first] and \in{정리}[thm:second]. Finally, \in{Example}[Ex:first], 
we saw an example of it.

\stoptext
___
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
___

[NTG-context] Referencing existing endnotes

2014-09-13 Thread Gerben Wierda
Suppose, in a footnote, I want to reference an existing endnote.

text text text text.\endnote{Bladibladibla ends up at end of document, numbered 
in an appendix} Text text text text

Text text\footnote{Foo bar bar bar\referencetoexistingendnotedefinedabove} text 
text

Can I do that in some way?

G
___
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
___


Re: [NTG-context] Referencing existing endnotes

2014-09-13 Thread Wolfgang Schuster

Am 13.09.2014 um 14:49 schrieb Gerben Wierda gerben.wie...@rna.nl:

 Suppose, in a footnote, I want to reference an existing endnote.
 
 text text text text.\endnote{Bladibladibla ends up at end of document, 
 numbered in an appendix} Text text text text
 
 Text text\footnote{Foo bar bar bar\referencetoexistingendnotedefinedabove} 
 text text
 
 Can I do that in some way?

\starttext

Text text text text.\endnote[myendnote]{Ends up at end of document, numbered in 
an appendix}

Text text\footnote{Foo bar bar bar\note[endnote][myendnote]} text text
Text text\footnote{Foo bar bar bar \in{endnote}[myendnote] at 
\at{page}[myendnote]} text text

\placenotes[endnote]

\stoptext

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
___


[NTG-context] Referencing problem

2013-06-19 Thread Robert Blackstone
Hi all,

To include in a text several graphics that for some reason must have the same 
figure number (with suffixes .a, .b etc.), I use
\\startplacefigure[location=here,reference=,title={},group=,groupsuffix=]
{\externalfigure[]}
\stopplacefigure
an experimental solution that Hans gave me in april (Ref. ntg-context Digest, 
Vol 106, Issue 4, Date:14 April 2013) and which works perfectly.

My problem is: how can I refer in my text to this set of figures (instead of to 
the separate figures). I have tried to use group as the label for 
referencing, as it is the only argument that all figures have in common, but my 
trials failed and I have no idea how to accomplish this. (The wiki is too vague 
for me on this point.)

Thanks in  advance for any help.

Regards, 
Robert Blackstone___
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
___

[NTG-context] Referencing problem (correction)

2013-06-19 Thread Robert Blackstone
Sorry for the mistake: I wrote one \ too many so that I unwittingly created an 
absurd link.
The message was supposed to be this:

Hi all,

To include in a text several graphics that for some reason must have the same 
figure number (with suffixes .a, .b etc.), I use
\startplacefigure[location=here,reference=,title={},group=,groupsuffix=]
{\externalfigure[]}
\stopplacefigure
an experimental solution that Hans gave me in april (Ref. ntg-context Digest, 
Vol 106, Issue 4, Date:14 April 2013) and which works perfectly.

My problem is: how can I refer in my text to this set of figures (instead of to 
the separate figures). I have tried to use group as the label for 
referencing, as it is the only argument that all figures have in common, but my 
trials failed and I have no idea how to accomplish this. (The wiki is too vague 
for me on this point.)

Thanks in  advance for any help.

Regards, 
Robert Blackstone___
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
___

[NTG-context] Referencing a figure

2013-01-22 Thread Devendra Ghate

I have written a macro to include figures. I pass the label name and
the caption as the two arguments. But when I try to refer to the figure,
it shows ??.

Surely, my macro does not define the figure label as intended by me.
What am I doing wrong? Also, while trying to debug this problem, I tried
using *\version[temporary]* to see the labels as suggested in the Context
manual (chapter on Cross References (page 207) of cont-ini.pdf). But it
didn't show many the label of the figure.

MWE:

\useMPlibrary[dum]
\unprotect
\define[2]\dincludefigure{%
   \placefigure[fig:#1]{#2}{\externalfigure[dummy][width=10cm]}%
 }%
\protect

\starttext
  \dincludefigure{one}{A figure}
  I am refering to \in{Figure}[fig:one].
\stoptext

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

Re: [NTG-context] Referencing a figure

2013-01-22 Thread Philipp Gesang
Hi!

···date: 2013-01-22, Tuesday···from: Devendra Ghate···

 I have written a macro to include figures. I pass the label name and
 the caption as the two arguments. But when I try to refer to the figure,
 it shows ??.
 
 Surely, my macro does not define the figure label as intended by me.
 What am I doing wrong?

If you specify only one optional argument of \placefloat, then
leftmost in the list is assumed, i.e. the location. To get around
this, either specify a location or add empty brackets if you’re
content with the default:

\define[2]\dincludefigure{%
  \placefigure[][fig:#1]{#2}{\externalfigure[dummy][width=10cm]}%
}%

Regards
Philipp


Also, while trying to debug this problem, I tried
 using *\version[temporary]* to see the labels as suggested in the Context
 manual (chapter on Cross References (page 207) of cont-ini.pdf). But it
 didn't show many the label of the figure.
 
 MWE:
 
 \useMPlibrary[dum]
 \unprotect
 \define[2]\dincludefigure{%
\placefigure[fig:#1]{#2}{\externalfigure[dummy][width=10cm]}%
  }%
 \protect
 
 \starttext
   \dincludefigure{one}{A figure}
   I am refering to \in{Figure}[fig:one].
 \stoptext
 

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


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpBNDpF7YmDK.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] Referencing a figure

2013-01-22 Thread Devendra Ghate


On 01/22/2013 03:48 PM, Philipp Gesang wrote:

Hi!

···date: 2013-01-22, Tuesday···from: Devendra Ghate···


I have written a macro to include figures. I pass the label name and
the caption as the two arguments. But when I try to refer to the figure,
it shows ??.

Surely, my macro does not define the figure label as intended by me.
What am I doing wrong?

If you specify only one optional argument of \placefloat, then
leftmost in the list is assumed, i.e. the location. To get around
this, either specify a location or add empty brackets if you're
content with the default:

 \define[2]\dincludefigure{%
   \placefigure[][fig:#1]{#2}{\externalfigure[dummy][width=10cm]}%
 }%

Regards
Philipp


Thank you Philipp.

Devendra





Also, while trying to debug this problem, I tried
using *\version[temporary]* to see the labels as suggested in the Context
manual (chapter on Cross References (page 207) of cont-ini.pdf). But it
didn't show many the label of the figure.

MWE:

\useMPlibrary[dum]
\unprotect
\define[2]\dincludefigure{%
\placefigure[fig:#1]{#2}{\externalfigure[dummy][width=10cm]}%
  }%
\protect

\starttext
   \dincludefigure{one}{A figure}
   I am refering to \in{Figure}[fig:one].
\stoptext

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




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


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

Re: [NTG-context] Referencing a Document within the same Project

2012-03-24 Thread Hans Hagen

On 21-3-2012 05:57, Malte Stien wrote:

Hi all,

I am designing a document suite consisting of two dozen or so documents that 
are all interrelated. I was wondering whether there is a way that I can define 
a reference point for an entire document within a project and then refer to 
that from another document, like

   \document{global-definitions-document} % This is fictitious syntax

in one document and then refer to that in another document:

   For global definitions, please see \about{global-definitions-document}.

or something along those lines.


the most simple way is:

\goto{Some Other Document}[someotherfile::]

otherwise go the \useexternaldocument route with symbolic names and such


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] Referencing a Document within the same Project

2012-03-20 Thread Malte Stien
Hi all,

I am designing a document suite consisting of two dozen or so documents that 
are all interrelated. I was wondering whether there is a way that I can define 
a reference point for an entire document within a project and then refer to 
that from another document, like

  \document{global-definitions-document} % This is fictitious syntax

...in one document and then refer to that in another document:

  For global definitions, please see \about{global-definitions-document}.

...or something along those lines.

Regards,
Malte.

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


Re: [NTG-context] Referencing a definition

2012-03-15 Thread Kip Warner
On Mon, 2012-03-05 at 18:04 +0100, Hans Hagen wrote:
 On 4-3-2012 23:52, Kip Warner wrote:
  Hey list,
 
  I have a definition, like so...
 
  \startdefinition[definition:Foo]{Foo}
  Definition of foo here...
  \stopdefinition
 
  I'd like to reference it in the same way I would a section like
  \in{section}[Node]. How can I do the same with a definition such that it
  will typeset a clickable section number or some such to get to the
  definition?
 
 \definedescription[test]
 
 \starttext
 
 \starttest[ward] {one} \input ward \stoptest
 
 bla bla \at{page}[ward] we define \about[ward]
 
 \stoptext

Hey Hans,

How could I have a reference that typesets any word or phrase I choose,
but when clicked jumps to the aforementioned description?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Referencing a definition

2012-03-05 Thread Hans Hagen

On 4-3-2012 23:52, Kip Warner wrote:

Hey list,

I have a definition, like so...

\startdefinition[definition:Foo]{Foo}
Definition of foo here...
\stopdefinition

I'd like to reference it in the same way I would a section like
\in{section}[Node]. How can I do the same with a definition such that it
will typeset a clickable section number or some such to get to the
definition?


\definedescription[test]

\starttext

\starttest[ward] {one} \input ward \stoptest

bla bla \at{page}[ward] we define \about[ward]

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Referencing a definition

2012-03-05 Thread Kip Warner
On Mon, 2012-03-05 at 18:04 +0100, Hans Hagen wrote:
 \definedescription[test]
 
 \starttext
 
 \starttest[ward] {one} \input ward \stoptest
 
 bla bla \at{page}[ward] we define \about[ward]
 
 \stoptext

Hey Hans. I think that might be a good workaround until I'm confident
that that's the best way to typeset the kind of reference I need.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

[NTG-context] Referencing a definition

2012-03-04 Thread Kip Warner
Hey list,

I have a definition, like so...

\startdefinition[definition:Foo]{Foo}
Definition of foo here...
\stopdefinition

I'd like to reference it in the same way I would a section like
\in{section}[Node]. How can I do the same with a definition such that it
will typeset a clickable section number or some such to get to the
definition?

Thanks.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Referencing a \startdefinition

2012-01-18 Thread Kip Warner
On Wed, 2012-01-18 at 08:36 +0100, Wolfgang Schuster wrote:
 \startdefinition[des:some]{Some Definition}
 
 \stopdefinition
 
 \in{Definition}[des:some]
 
 Wolfgang

Hey Wolfgang. That works, but in the text I would just see linkable text
Definition which is fine for online viewing, but for print, which is
what I need to, I'd like it to be something like some in section 10.2.
Can that be done? 

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

[NTG-context] Referencing a \startdefinition

2012-01-17 Thread Kip Warner
Hey list,

When I wish to reference some section, I can inline typeset with
\in{section}[Some Reference]. In the case of a definition defined with a
\startdefinition{Some Definition}, how can I reference it inline?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Referencing a \startdefinition

2012-01-17 Thread Vladimir Lomov
Hello,
** Kip Warner [2012-01-17 18:07:18 -0800]:

 Hey list,

 When I wish to reference some section, I can inline typeset with
 \in{section}[Some Reference]. In the case of a definition defined with a
 \startdefinition{Some Definition}, how can I reference it inline?
I could be wrong but from 'strc-des.mkiv'

%D TODO: commandhandler
%D TODO: \startxxx[reference=...]

So, answer could not yet implemented.

---
WBR, Vladimir Lomov

-- 
I distrust a man who says when.  If he's got to be careful not to drink
too much, it's because he's not to be trusted when he does.
-- Sidney Greenstreet, The Maltese Falcon
___
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
___


Re: [NTG-context] Referencing a \startdefinition

2012-01-17 Thread Wolfgang Schuster

Am 18.01.2012 um 03:07 schrieb Kip Warner:

 Hey list,
 
 When I wish to reference some section, I can inline typeset with
 \in{section}[Some Reference]. In the case of a definition defined with a
 \startdefinition{Some Definition}, how can I reference it inline?

\startdefinition[des:some]{Some Definition}
…
\stopdefinition

\in{Definition}[des:some]

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
___


Re: [NTG-context] Referencing a \startdefinition

2012-01-17 Thread Wolfgang Schuster

Am 18.01.2012 um 04:06 schrieb Vladimir Lomov:

 Hello,
 ** Kip Warner [2012-01-17 18:07:18 -0800]:
 
 Hey list,
 
 When I wish to reference some section, I can inline typeset with
 \in{section}[Some Reference]. In the case of a definition defined with a
 \startdefinition{Some Definition}, how can I reference it inline?
 I could be wrong but from 'strc-des.mkiv'
 
 %D TODO: commandhandler
 %D TODO: \startxxx[reference=...]
 
 So, answer could not yet implemented.

No, this is only a note to swith from

   \startxxx[reference]{title}

to

   \startxxx[reference=…,title=…]

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
___


[NTG-context] referencing

2011-11-20 Thread Hans van der Meer
I have the following question about references.

Using for example \at one can say somehting like see on \at{page}[ref] for the 
figure..
But when the figure is one the same page it seems a bit superfluous to 
reference to it. In the same manner it is a bit of an overkill to put a 
hyperlink to the page where this link resides itself.

It is clear that ConTeXt knows if it is on the same page as is referenced, 
because then a link is coloured with contrastcolor instead of color.

Now the question: how easy/difficult is it to either suppress such an 
\at-reference or switch between chosen alternate texts for links on or off the 
same page as the referenced item?

Hans van der Meer



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


Re: [NTG-context] referencing

2011-11-20 Thread Wolfgang Schuster

Am 20.11.2011 um 18:46 schrieb Hans van der Meer:

 I have the following question about references.
 
 Using for example \at one can say somehting like see on \at{page}[ref] for 
 the figure..
 But when the figure is one the same page it seems a bit superfluous to 
 reference to it. In the same manner it is a bit of an overkill to put a 
 hyperlink to the page where this link resides itself.
 
 It is clear that ConTeXt knows if it is on the same page as is referenced, 
 because then a link is coloured with contrastcolor instead of color.
 
 Now the question: how easy/difficult is it to either suppress such an 
 \at-reference or switch between chosen alternate texts for links on or off 
 the same page as the referenced item?

\def\SamePage[#1]%
  {\doifreferencefoundelse{#1}
 {\ifnum\referencepagestate=1
\unknown % reference is on the same page
   \else
 \at[#1]%
  \fi}
 {\donothing}}

\starttext

\pagereference[one]
\pagereference[two]

One: \SamePage[one]

\page

Two: \SamePage[one]

\stoptext

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
___


Re: [NTG-context] referencing

2011-11-20 Thread Meer, H. van der
Thanks Wolfgang for the code. 

Just in case it is of use I concocted my variation on this theme. Now this 
simply replaces the \in, \at and \about macro's with one that does not show on 
the page where the link originates, but behaves as of old everywhere else. I 
introduced the unskip in order to remove the space that ruins the end of a line 
when there is nothing to display. For example from \in{see there}[ref]. --this 
period would otherwise acquire a space before it.

\def\SamePageDo#1[#2]%
 {\doifreferencefoundelse{#2}
{\ifnum\referencepagestate=1
   \unskip%\unknown % reference is on the same page
  \else
#1[#2]%
 \fi}
{\unskip}} % reference not found
\let\oldin=\in
\let\oldat=\at
\let\oldabout=\about
\def\in{\SamePageDo\oldin}
\def\at{\SamePageDo\oldat}
\def\about{\SamePageDo\oldabout}

Hans van der Meer

On 20 nov. 2011, at 19:42, Wolfgang Schuster wrote:

 
 Am 20.11.2011 um 18:46 schrieb Hans van der Meer:
 
 I have the following question about references.
 
 Using for example \at one can say somehting like see on \at{page}[ref] for 
 the figure..
 But when the figure is one the same page it seems a bit superfluous to 
 reference to it. In the same manner it is a bit of an overkill to put a 
 hyperlink to the page where this link resides itself.
 
 It is clear that ConTeXt knows if it is on the same page as is referenced, 
 because then a link is coloured with contrastcolor instead of color.
 
 Now the question: how easy/difficult is it to either suppress such an 
 \at-reference or switch between chosen alternate texts for links on or off 
 the same page as the referenced item?
 
 \def\SamePage[#1]%
  {\doifreferencefoundelse{#1}
 {\ifnum\referencepagestate=1
\unknown % reference is on the same page
   \else
 \at[#1]%
  \fi}
 {\donothing}}
 
 \starttext
 
 \pagereference[one]
 \pagereference[two]
 
 One: \SamePage[one]
 
 \page
 
 Two: \SamePage[one]
 
 \stoptext
 
 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
___


Re: [NTG-context] referencing

2011-11-20 Thread Wolfgang Schuster

Am 20.11.2011 um 21:26 schrieb Meer, H. van der:

 Thanks Wolfgang for the code. 
 
 Just in case it is of use I concocted my variation on this theme. Now this 
 simply replaces the \in, \at and \about macro's with one that does not show 
 on the page where the link originates, but behaves as of old everywhere else. 
 I introduced the unskip in order to remove the space that ruins the end of a 
 line when there is nothing to display. For example from \in{see there}[ref]. 
 --this period would otherwise acquire a space before it.

Instead of \unskip you should use \removeunwantedspaces which does a check 
before it calls \unskip.

 \def\SamePageDo#1[#2]%
 {\doifreferencefoundelse{#2}
{\ifnum\referencepagestate=1
   \unskip%\unknown % reference is on the same page
  \else
#1[#2]%
 \fi}
{\unskip}} % reference not found
 \let\oldin=\in
 \let\oldat=\at
 \let\oldabout=\about
 \def\in{\SamePageDo\oldin}
 \def\at{\SamePageDo\oldat}
 \def\about{\SamePageDo\oldabout}

Don’t redefine \in, at and \about because all three commands can also be used 
in math mode where they have a different meaning but with your redefinition 
they can’t be used anymore for math.

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
___


[NTG-context] Referencing bug

2010-12-12 Thread Willi Egger
Hi Hans,

Today I tried to makeup some text, wherein I need the referencing mechanism. It 
looks likely that the whole referencing mechanism is out of service

Please refer to the attached test file.

Kind regards

Willi



test-reference.tex
Description: Binary data
 ___
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
___


[NTG-context] referencing position on page in index

2010-11-23 Thread Philipp Gesang

Hi all,


one of my favorite grammars contains rather elaborated indices:
to a given entry they not only list the page numbers, but also
the position on the respective page. To this end any page is
subdivided into four regions to which the entries may refer
separately.

For instance, these entries:

  Aspekte beim Verbum 509\high{2}
  Assibilation 154\high{2·4}

would refer to the second quarter of page 509 and to the second
and fourth quarter of page 154 respectively.

Is there a mechanism to achieve that or could the context’s
referencing be extended in that way?

Some page scans from the indices:

  http://bayimg.com/pAAhkAaDn
  http://bayimg.com/aAAiJAaDn

Thanks for your time,


Philipp


pgpJFMPiUyQ3m.pgp
Description: PGP signature
___
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
___


Re: [NTG-context] Referencing line numbers inside a typing

2010-10-27 Thread Stefan Müller
Am Dienstag 26 Oktober 2010, 21:12:01 schrieb Wolfgang Schuster:
 Am 26.10.2010 um 20:47 schrieb Stefan Müller:
  One more question before wikifying: Is there a way to prevent the prefix
  line? I want to say something like In lines 3 to 13.
 
 The texts „line“ and „lines“ are set with \setuplabeltext but you can see
 alternative texts with \inline{...}[ref].
 
 \setuptyping[numbering=line,escape=yes]
 
 \starttext
 
 See \inline[line:single] and also \inline[line:range].
 
 See \inline{typeline}[line:single] and also \inline{typelines}[line:range].
 
 See line~\inlinerange[line:single] and also lines~\inlinerange[line:range].
 
 \starttyping
 line 1
 line 2/BTEX\startline[line:range]/ETEX
 line 3/BTEX\someline[line:single]/ETEX
 line 4
 line 5/BTEX\stopline[line:range]/ETEX
 line 6
 \stoptyping
 
 \stoptext
 
 Wolfgang

Thanks Wolgang, this looks pretty nice. Unfortunately I get the following 
error when running your example (ConTeXt  ver: 2010.10.22 16:46 MKIV  fmt: 
2010.10.27  int: english/english):

references  : unknown reference [][lr:b:line:single]
references  : unknown reference [][lr:b:line:range]

Any ideas?

Stefan
___
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
___


Re: [NTG-context] Referencing line numbers inside a typing

2010-10-27 Thread Stefan Müller
Am Mittwoch 27 Oktober 2010, 16:52:07 schrieb Wolfgang Schuster:
 Am 27.10.2010 um 11:34 schrieb Stefan Müller:
  Thanks Wolgang, this looks pretty nice. Unfortunately I get the following
  error when running your example (ConTeXt  ver: 2010.10.22 16:46 MKIV 
  fmt: 2010.10.27  int: english/english):
  
  references  : unknown reference [][lr:b:line:single]
  references  : unknown reference [][lr:b:line:range]
  
  Any ideas?
 
 Works for me with the same context version.
 
 Do you use 'texexec' or 'context' to process the file?
 
 Wolfgang

My mistake. I forgot \stoptext. It seems kind of inconvenient that I get such 
a misleading error message.

I added some stuff regarding this thread to the wiki.

http://wiki.contextgarden.net/Verbatim_text#Referencing_line_numbers
http://wiki.contextgarden.net/Reference/en/inline
http://wiki.contextgarden.net/Reference/en/someline
http://wiki.contextgarden.net/Reference/en/startline
http://wiki.contextgarden.net/Reference/en/inlinerange

I hope that helps others.

Best wishes,
Stefan
___
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
___


[NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Stefan Müller

Hi list,

is there a (preferably easy) way to reference line numbers inside a 
typing? Minimal (not working) example:


\setuptyping[numbering=line]
\starttext
In the following typing, \in{line}{}[line:intyping] is really interesting.
\starttyping
This line is so interesting.
\stoptyping
\stoptext

Thanks,
Stefan
___
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
___


Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Wolfgang Schuster

Am 26.10.2010 um 10:30 schrieb Stefan Müller:

 Hi list,
 
 is there a (preferably easy) way to reference line numbers inside a typing? 
 Minimal (not working) example:
 
 \setuptyping[numbering=line]
 \starttext
 In the following typing, \in{line}{}[line:intyping] is really interesting.
 \starttyping
 This line is so interesting.
 \stoptyping
 \stoptext

MkIV:

\setuptyping[numbering=line,escape=yes]
\starttext
In the following typing, \inline[line:intyping] is really interesting.
\starttyping
line 1
line 2
line 3/BTEX\someline[line:intyping]/ETEX
line 4
\stoptyping
\stoptext

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
___


Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Stefan Müller



On 26.10.2010 15:31, Wolfgang Schuster wrote:


Am 26.10.2010 um 10:30 schrieb Stefan Müller:


Hi list,

is there a (preferably easy) way to reference line numbers inside a typing? 
Minimal (not working) example:

\setuptyping[numbering=line]
\starttext
In the following typing, \in{line}{}[line:intyping] is really interesting.
\starttyping
This line is so interesting.
\stoptyping
\stoptext


MkIV:

\setuptyping[numbering=line,escape=yes]
\starttext
In the following typing, \inline[line:intyping] is really interesting.
\starttyping
line 1
line 2
line 3/BTEX\someline[line:intyping]/ETEX
line 4
\stoptyping
\stoptext

Wolfgang


One more question before wikifying: Is there a way to prevent the prefix 
line? I want to say something like In lines 3 to 13.


Thanks,
Stefan
___
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
___


Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Wolfgang Schuster

Am 26.10.2010 um 20:47 schrieb Stefan Müller:

 One more question before wikifying: Is there a way to prevent the prefix 
 line? I want to say something like In lines 3 to 13.


The texts „line“ and „lines“ are set with \setuplabeltext but you can see 
alternative texts with \inline{...}[ref].

\setuptyping[numbering=line,escape=yes]

\starttext

See \inline[line:single] and also \inline[line:range].

See \inline{typeline}[line:single] and also \inline{typelines}[line:range].

See line~\inlinerange[line:single] and also lines~\inlinerange[line:range].

\starttyping
line 1
line 2/BTEX\startline[line:range]/ETEX
line 3/BTEX\someline[line:single]/ETEX
line 4
line 5/BTEX\stopline[line:range]/ETEX
line 6
\stoptyping

\stoptext

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
___


Re: [NTG-context] Referencing a Figure

2010-04-30 Thread Albrecht Kauffmann


On Thu, 29 Apr 2010, Troy Henderson wrote:

 I am trying to reference a figure, and the results are not as
 expected.  Here is my snippet.

 \placefigure[fig:myfigure]{A beautiful circle}{
\startMPcode
   draw fullcircle scaled 72;
\stopMPcode
 }
 Isn't Figure \in[fig:myfigure] beautiful?

Try \placefigure[here][fig:myfigure]{A beautiful circle}{
...


Greetings

Albrecht




 When this code renders, the text says Isn't Figure ?? beautiful?
 How can I get the correct figure number?

 Thanks,

 Troy
 ___
 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
 ___

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


[NTG-context] Referencing a Figure

2010-04-29 Thread Troy Henderson
I am trying to reference a figure, and the results are not as
expected.  Here is my snippet.

\placefigure[fig:myfigure]{A beautiful circle}{
   \startMPcode
  draw fullcircle scaled 72;
   \stopMPcode
}
Isn't Figure \in[fig:myfigure] beautiful?


When this code renders, the text says Isn't Figure ?? beautiful?
How can I get the correct figure number?

Thanks,

Troy
___
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
___


Re: [NTG-context] Referencing a Figure

2010-04-29 Thread Aditya Mahajan

On Thu, 29 Apr 2010, Troy Henderson wrote:


I am trying to reference a figure, and the results are not as
expected.  Here is my snippet.

\placefigure[fig:myfigure]{A beautiful circle}{


\placefigure[][fig:myfigure]{...}{...}


  \startMPcode
 draw fullcircle scaled 72;
  \stopMPcode
}
Isn't Figure \in[fig:myfigure] beautiful?


When this code renders, the text says Isn't Figure ?? beautiful?
How can I get the correct figure number?


When \placefigure is used with only one optional argument, the optional 
argument is interpreted as the placement specifier (here, left, right, 
top, bottom), rather than the label.


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing a Figure

2010-04-29 Thread Troy Henderson
Beautiful. Thanks.
___
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
___


[NTG-context] Referencing...

2010-01-05 Thread Willi Egger

Hi,

I have small tabulations which contain references to footnotes in the  
header line. - The footnotes are placed correctly, how ever if I  
refer to the references I get in 2 out of the three cases ?? i.e.  
ConTeXt does not know the reference. I am puzzled because it works  
for the third reference... When extending the list of footnotes again  
the referencing works only for the last reference.

Is there something changed in the approach in MKIV?

\starttext
\starttabulate[|l|c|r|r|r|]
\NC Issue \NC Time \NC Avg.\footnote[av]{Average log\low{10} values}  
\NC s\footnote[stdv]{Standard deviation} \NC se\footnote[se]{Standard  
error of the mean} \NC\NR

\NC A \EQ 1   \NC 3.85 \NC 1.06 \NC 0.31 \NC\NR
\stoptabulate

\starttabulate[|l|c|r|r|r|]
\NC Issue \NC Time \NC Avg.\note[av] \NC s\note[stdv] \NC se\note[se] 
\NC\NR

\NC B \EQ 1   \NC 1.18 \NC 0.8  \NC  0.23 \NC\NR
\stoptabulate

Look at s\note[av]
\stoptext

I am using:
This is LuaTeX, Version beta-0.50.0-2009122422
ConTeXt  ver: 2010.01.03 12:54 MKIV  fmt: 2010.1.4  int: english/english

Kind regards

Willi
___
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
___


Re: [NTG-context] Referencing...

2010-01-05 Thread Hans Hagen

On 5-1-2010 14:46, Willi Egger wrote:


Is there something changed in the approach in MKIV?


sure, no common note code in mkii and mkiv

fixed,

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] Referencing Broken in MKIV?

2009-06-28 Thread Tad Ashlock

From http://texshow.contextgarden.net/ (\reference):

\starttext
See page \ref[p][myref 1] and \ref[p][myref 2].
\page
\reference[myref 1]{} This is the first reference.
\page
\reference[myref 2]{} This is the second one.
\stoptext


Works in MKII (at least on ConTeXt online), but produces the following 
first page in MKIV:


-
See page and .
-

MTXrun | current version: 2009.06.14 21:01
This is LuaTeX, Version beta-0.40.6-2009062621 (Web2C 2009) luatex.web 
= v13958


Thanks,
Tad
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing Broken in MKIV?

2009-06-28 Thread Hans Hagen

Tad Ashlock wrote:


 From http://texshow.contextgarden.net/ (\reference):

\starttext
See page \ref[p][myref 1] and \ref[p][myref 2].
\page
\reference[myref 1]{} This is the first reference.
\page
\reference[myref 2]{} This is the second one.
\stoptext


Works in MKII (at least on ConTeXt online), but produces the following 
first page in MKIV:


use:

\starttext
See page \at[myref 1] and \at[myref 2].
\page \reference[myref 1]{} This is the first reference.
\page \reference[myref 2]{} This is the second one.
\stoptext

this mechanism is mostly for access to data packed into mkii references 
but in mkiv we will have arbitrary userdata; we can use the interface 
but i had no time yet to write that part (undelying code is there already).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing formulae

2009-06-26 Thread Aditya Mahajan

On Thu, 25 Jun 2009, Willi Egger wrote:


Hi,

Hm, it looks like that the referencing mechanism is broken:

in context beta 2009-06-14 Luatex 0.40.5

\starttext


\placeformula


\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula
As seen from (\in[eq:1]) and (\in[eq:2]), referring equations is straight
forward.
\stoptext


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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing formulae

2009-06-26 Thread Willi Egger

Hi,

Thanks Aditya for your reply, unfortunately I posted the wrong part  
of my example, where indeed the \placeformula  was absent. I have to  
tell you that it does not work wit the \placeformula in place.


Sorry. KR

Willi

On Jun 26, 2009, at 10:04 AM, Aditya Mahajan wrote:


On Thu, 25 Jun 2009, Willi Egger wrote:


Hi,

Hm, it looks like that the referencing mechanism is broken:

in context beta 2009-06-14 Luatex 0.40.5

\starttext


\placeformula


\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula
As seen from (\in[eq:1]) and (\in[eq:2]), referring equations is  
straight

forward.
\stoptext


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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Referencing formulae

2009-06-25 Thread Willi Egger

Hi,

Hm, it looks like that the referencing mechanism is broken:

in context beta 2009-06-14 Luatex 0.40.5

\starttext
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula
As seen from (\in[eq:1]) and (\in[eq:2]), referring equations is  
straight

forward.
\stoptext

Kind regards

Willi
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing Itemized Items?

2008-05-03 Thread Sanjoy Mahajan
Aditya Mahajan [EMAIL PROTECTED] wrote:

 I usually prefer
 
   Note that \in Step[fire] is optional for experienced chefs.
 
 This way, if you enable interaction, Step 3 will become a link, rather 
 than just 3.

An example showing a third alternative.  This alternative is useful 
if you use that kind of reference a lot:


\definereferenceformat[instep][text=Step]

\starttext
You must do the following steps:
\startitemize[n]
  \item Buy the ingredients
  \item Cook the food
  \item [abc] Put out the fire
\stopitemize

Note that Step \in[abc] is optional for experienced chefs.

Note that \in Step[abc] is optional for experienced chefs.

Note that \instep[abc] is optional for experienced chefs.
\stoptext
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing Itemized Items?

2008-05-01 Thread Michael P. Urban
Wow.  How embarrassing - I am usually the one who chides my users about
never actually trying simple experiments to see if something works.


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing Itemized Items?

2008-05-01 Thread jsandblom
2008/4/30, Michael P. Urban [EMAIL PROTECTED]:
 Wow.  How embarrassing - I am usually the one who chides my users about
 never actually trying simple experiments to see if something works.


 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___



-- 
Johan Sandblom, MD PhD
m +46735521477  Sweden
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Referencing Itemized Items?

2008-04-30 Thread Michael . Urban
Is there some way to set up a reference tag so that I can refer to a
particular item in a list, e.g., something vaguely like:

 You must do the following steps:
 \startitemize[n]
   \item Buy the ingredients
   \item Cook the food
   \item [??] Put out the fire
 \stopitemize
 Note that Step \in[?] is optional for experienced chefs.
   
It looks like there are mechanisms to support this in the tex code,
but I don't know how to use them.

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing Itemized Items?

2008-04-30 Thread Wolfgang Schuster
On Wed, Apr 30, 2008 at 4:15 PM,  [EMAIL PROTECTED] wrote:
 Is there some way to set up a reference tag so that I can refer to a
 particular item in a list, e.g., something vaguely like:

\starttext

  You must do the following steps:
  \startitemize[n]
   \item Buy the ingredients
   \item Cook the food
   \item [??] Put out the fire

\item [fire] Put out the fire

  \stopitemize
  Note that Step \in[?] is optional for experienced chefs.

Note that Step \in[fire] is optional for experienced chefs.

\stoptext

 It looks like there are mechanisms to support this in the tex code,
 but I don't know how to use them.

;-)

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Referencing Itemized Items?

2008-04-30 Thread Aditya Mahajan
On Wed, 30 Apr 2008, [EMAIL PROTECTED] wrote:

 Is there some way to set up a reference tag so that I can refer to a
 particular item in a list, e.g., something vaguely like:

 You must do the following steps:
 \startitemize[n]
   \item Buy the ingredients
   \item Cook the food
   \item [??] Put out the fire
 \stopitemize
 Note that Step \in[?] is optional for experienced chefs.

Wolfgang has already answered your question. A suggestion: I usually 
prefer

Note that \in Step[fire] is optional for experienced chefs.

This way, if you enable interaction, Step 3 will become a link, rather 
than just 3.

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing footnotes in another place

2007-11-22 Thread Andrea Valle

Hi,

just to know, are there other suggestions?

Best

-a-


On 16 Nov 2007, at 01:22, Andrea Valle wrote:


Hi to all,

the only thing I don't like in -TeX packages approach while writing  
is that I have to attach the footnotes to their indices.
ConTeXt is so clever. Isn't there a way to store the footnotes in  
another place of the file (or in another file, that's the same) and  
referring to the in the text.
When I have many footnotes in the source I get crazy to follow the  
body text.


I mean, with an exemplum fictum

This is my footnote\fn{myfn}, even if it's just my imagination

so that there's a way to a have

myfn = just a note

Maybe with buffers?
I'm an ignorant on the matter

Thanks

-a-

--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault.  
Who doesn't in university, right? I was in this strip club giving  
this guy a lap dance and all he wanted to do was to discuss  
Foucault with me. Well, I can stand naked and do my little dance,  
or I can discuss Foucault, but not at the same time; too much  
information.

(Annabel Chong)



--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault.  
Who doesn't in university, right? I was in this strip club giving  
this guy a lap dance and all he wanted to do was to discuss  
Foucault with me. Well, I can stand naked and do my little dance,  
or I can discuss Foucault, but not at the same time; too much  
information.

(Annabel Chong)




__ 
_
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing footnotes in another place

2007-11-22 Thread Aditya Mahajan
On Thu, 22 Nov 2007, Andrea Valle wrote:

 Hi,

 just to know, are there other suggestions?

There is a module by Guiseppe for epigrams. Maybe it is possible to adapt 
it for footnotes.

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing footnotes in another place

2007-11-22 Thread Andrea Valle

Ah, thanks, I'll take a look (Where?).
Now I'm tweaking with buffers

Best

-a-


On 22 Nov 2007, at 14:20, Aditya Mahajan wrote:


On Thu, 22 Nov 2007, Andrea Valle wrote:


Hi,

just to know, are there other suggestions?


There is a module by Guiseppe for epigrams. Maybe it is possible to  
adapt

it for footnotes.

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing footnotes in another place

2007-11-22 Thread Aditya Mahajan
On Thu, 22 Nov 2007, Andrea Valle wrote:

 Ah, thanks, I'll take a look (Where?).

http://modules.contextgarden.net/xdesc

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing footnotes in another place

2007-11-15 Thread Andrea Valle

(Ah well, I'm a recordman for typos...:-))

I was thinking too about the database approach, but a system of  
replacements would be enough for my needs.

It would allow me to organize better the source files.

OTOH for large projects this could get a bit unwieldy and  
unmanageable.


Yes, that's true. But I was thinking about e.g. an article with long  
footnotes



Better in my view is to use an editor that supports folding, use a
\start-stopfootnote macro, and fold them out of site when not  
needed (I

have this in the Notepad++ setup).


This is a possibility, indeed

Another idea is a lua script that texexec could use to label and/or  
move

all the notes to a separate database for analyses or other processing.


Of course it would be interesting for critical editions.
My main concern was not so advanced. The separation between body text  
and footnotes is

the only thing I miss from wysisyg.

Best

-a-





It all needs thought...

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
__ 
_
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing footnotes in another place

2007-11-15 Thread Idris Samawi Hamid
Hi Andrea,

On Thu, 15 Nov 2007 17:22:09 -0700, Andrea Valle [EMAIL PROTECTED] wrote:

 Hi to all,

 the only thing I don't like in -TeX packages approach while writing
 is that I have to attach the footnotes to their indices.
 ConTeXt is so clever. Isn't there a way to store the footnotes in
 another place of the file (or in another file, that's the same) and
 referring to the in the text.
 When I have many footnotes in the source I get crazy to follow the
 body text.

 I mean, with an exemplum fictum

 This is my footnote\fn{myfn}, even if it's just my imagination

 so that there's a way to a have

 myfn = just a note

 Maybe with buffers?
 I'm an ignorant on the matter

Hmm, this is interesting. Basically this would involve something like the  
bibliography module {tag + database}. Could be useful for organizing  
things like critical-edition apparati.

OTOH for large projects this could get a bit unwieldy and unmanageable.

Better in my view is to use an editor that supports folding, use a  
\start-stopfootnote macro, and fold them out of site when not needed (I  
have this in the Notepad++ setup).

Another idea is a lua script that texexec could use to label and/or move  
all the notes to a separate database for analyses or other processing.

It all needs thought...

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] referencing footnotes in another place

2007-11-15 Thread Andrea Valle

Hi to all,

the only thing I don't like in -TeX packages approach while writing  
is that I have to attach the footnotes to their indices.
ConTeXt is so clever. Isn't there a way to store the footnotes in  
another place of the file (or in another file, that's the same) and  
referring to the in the text.
When I have many footnotes in the source I get crazy to follow the  
body text.


I mean, with an exemplum fictum

This is my footnote\fn{myfn}, even if it's just my imagination

so that there's a way to a have

myfn = just a note

Maybe with buffers?
I'm an ignorant on the matter

Thanks

-a-

--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)



--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing footnotes in another place

2007-11-15 Thread Idris Samawi Hamid
On Thu, 15 Nov 2007 17:46:49 -0700, Idris Samawi Hamid  
[EMAIL PROTECTED] wrote:

 Better in my view is to use an editor that supports folding, use a
 \start-stopfootnote macro, and fold them out of site when not needed

UGH ...and fold them out of sight when not needed...

Embarrassed,
I
-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing figures with \in

2007-06-26 Thread Hans van der Meer
Thanks, this completely satisfies my curiosity.


On Jun 26, 2007, at 7:39, Wolfgang Schuster wrote:

 2007/6/25, Hans van der Meer [EMAIL PROTECTED]:

 On Jun 25, 2007, at 9:24, Taco Hoekwater wrote:

 Hans van der Meer wrote:
 Taco and Wolfgang,

 Here is your counterexample:

 \setupcaptions[number=no] %  the culprit
 \starttext

 Since you are referencing a non-existing number, I cannot say I am
 very surprised get weird output.

 You are right and I should not expect something sensible from
 number=no, but for my curiosity one question remains: why does \at
 gives a number that should not exist?

 Anyway, it is not a problem anymore!

 \in [key] gives the running number of float, this means 1 for the
 first figure,
 2 for the second ... This did only work with numbered figures, you  
 disabled
 the number in your figure and got only the dummy sign (the bullet)  
 because
 there was no number to be shown.

 \at [key] give you the pagenumber, where your figure was placed  
 and this
 was in your example the first page.

Hans van der Meer


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing figures with \in

2007-06-25 Thread Taco Hoekwater
Hans van der Meer wrote:
 Taco and Wolfgang,
 
 Here is your counterexample:
 
 \setupcaptions[number=no] %  the culprit
 \starttext

Since you are referencing a non-existing number, I cannot say I am
very surprised get weird output.

The problem is that the reference is actually resolved, but it has
no content (thanks to number=no), and that triggers the special
handling for anonymous references. If the figure appears on a
different page, context will print a triangle pointing to the
left or right instead of the dot. In short: it is a feature.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing figures with \in

2007-06-25 Thread Hans van der Meer

On Jun 25, 2007, at 9:24, Taco Hoekwater wrote:

 Hans van der Meer wrote:
 Taco and Wolfgang,

 Here is your counterexample:

 \setupcaptions[number=no] %  the culprit
 \starttext

 Since you are referencing a non-existing number, I cannot say I am
 very surprised get weird output.

You are right and I should not expect something sensible from  
number=no, but for my curiosity one question remains: why does \at  
gives a number that should not exist?

Anyway, it is not a problem anymore!


 The problem is that the reference is actually resolved, but it has
 no content (thanks to number=no), and that triggers the special
 handling for anonymous references. If the figure appears on a
 different page, context will print a triangle pointing to the
 left or right instead of the dot. In short: it is a feature.


 Best wishes,
 Taco

Hans van der Meer


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing figures with \in

2007-06-25 Thread Wolfgang Schuster
2007/6/25, Hans van der Meer [EMAIL PROTECTED]:

 On Jun 25, 2007, at 9:24, Taco Hoekwater wrote:

  Hans van der Meer wrote:
  Taco and Wolfgang,
 
  Here is your counterexample:
 
  \setupcaptions[number=no] %  the culprit
  \starttext
 
  Since you are referencing a non-existing number, I cannot say I am
  very surprised get weird output.

 You are right and I should not expect something sensible from
 number=no, but for my curiosity one question remains: why does \at
 gives a number that should not exist?

 Anyway, it is not a problem anymore!

\in [key] gives the running number of float, this means 1 for the
first figure,
2 for the second ... This did only work with numbered figures, you disabled
the number in your figure and got only the dummy sign (the bullet) because
there was no number to be shown.

\at [key] give you the pagenumber, where your figure was placed and this
was in your example the first page.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] referencing figures with \in

2007-06-24 Thread Hans van der Meer

I used to place references to figures and tables in the following way:

\placefigure[][fig:myfig]{Title}{\useMPgraphic{myfig}{parameters}}
\in{figure}[fig:myfig]

This however printed a dot instead of the expected figure #.
Changing to
\at{figure}[fig:myfig]
again printed the correct reference.

Looking further into this I found:
\meaning\in -- \protected macro:-\dohandlemathtoken {in}
\meaning\at  -- macro:-\dohandlecommand {at}

Still, the ConText manual tells me that
\in{.1}{.2.}[ref] (with {.2.} optional)
should work.

In file core-ref.tex at line 2118 (2007-04-17 version) I find:
%\def\in%
%  {\ifmmode
% \expandafter\donormalin
%   \else
% \expandafter\doinatreference\expandafter\currenttextreference
%   \fi}
But I am definitely not in math mode when calling \in.
I did some further experimentation but nothing helped.

Has something changed here or is there something I do obviously wrong?

Hans van der Meer


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing figures with \in

2007-06-24 Thread Taco Hoekwater
Hoi Hans,

Hans van der Meer wrote:
 I used to place references to figures and tables in the following way:
 
 \placefigure[][fig:myfig]{Title}{\useMPgraphic{myfig}{parameters}}
 \in{figure}[fig:myfig]
 
 This however printed a dot instead of the expected figure #.

This needs an example file from you. I just ran:

% hans-prob.tex
\starttext

I used to place references to figures and tables in the following way:

\placefigure[][fig:myfig]{Title}{Content}

\in{figure}[fig:myfig]

This however printed a dot instead of the expected figure .
Changing to \at{figure}[fig:myfig] again printed the correct reference.

\stoptext


And it worked fine.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] referencing figures with \in

2007-06-24 Thread Wolfgang Schuster
On Sun, 24 Jun 2007 14:38:34 +0200
Hans van der Meer [EMAIL PROTECTED] wrote:

 I used to place references to figures and tables in the following way:
 
 \placefigure[][fig:myfig]{Title}{\useMPgraphic{myfig}{parameters}}
  \in{figure}[fig:myfig]
 
 This however printed a dot instead of the expected figure #.
 Changing to
  \at{figure}[fig:myfig]
 again printed the correct reference.
 
 Looking further into this I found:
  \meaning\in -- \protected macro:-\dohandlemathtoken {in}
  \meaning\at  -- macro:-\dohandlecommand {at}
 
 Still, the ConText manual tells me that
  \in{.1}{.2.}[ref] (with {.2.} optional)
 should work.
 
 In file core-ref.tex at line 2118 (2007-04-17 version) I find:
 %\def\in%
 %  {\ifmmode
 % \expandafter\donormalin
 %   \else
 % \expandafter\doinatreference\expandafter\currenttextreference
 %   \fi}
 But I am definitely not in math mode when calling \in.
 I did some further experimentation but nothing helped.
 
 Has something changed here or is there something I do obviously wrong?
 
 Hans van der Meer

Hi Hans,

please post a example, the following works for me:

\starttext

\startuseMPgraphic{circle}
draw fullcircle scaled 1cm;
\stopuseMPgraphic

\placefigure
  []
  [fig:ref]
  {Text}
  {\useMPgraphic{circle}}

\in{figure}[fig:ref]

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   >