ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: reference problem
       [not found] <Pine.GSO.4.30.0302090310210.29721-100000@persius.rz.uni-po tsdam.de>
@ 2003-02-09 19:00 ` Hans Hagen
  2003-02-10  5:20   ` \placeformula Albrecht Kauffmann
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Hans Hagen @ 2003-02-09 19:00 UTC (permalink / raw)


At 03:23 AM 2/9/2003 +0100, Albrecht Kauffmann wrote:
>Hi all,
>
>I have a problem with references to equationnumbers.
>
>Let \the\equationnumber be 1. If I type
>
>\reference[a]{(\the\equationnumber)}$$ (a formula) $$
>\advance\equationnumber by 1
>\reference[b]{(\the\equationnumber)}$$ (another formula) $$
>... \in[a],\in[b] ...
>
>I expect to get "... (1),(2) ...". With an older version of Context
>(2000.12.14) this works fine. But with the new version (2002.10.23), I get
>for both equation a and b the same number (namely the last, 2):
>"... (2),(2) ...".

looks pretty low level to me -)

\startformula[for:a]
a formula
\stopformula

as we see in \in {formula} [for:a] ...

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* \placeformula
  2003-02-09 19:00 ` reference problem Hans Hagen
@ 2003-02-10  5:20   ` Albrecht Kauffmann
       [not found]   ` <Pine.GSO.4.30.0302100617410.18455-100000@persius.rz.uni-po tsdam.de>
       [not found]   ` <87n0l3seee.fsf@uga.edu>
  2 siblings, 0 replies; 8+ messages in thread
From: Albrecht Kauffmann @ 2003-02-10  5:20 UTC (permalink / raw)


Hi all,

is there any documentation of the commands \placeformula,
\startformula, and so on?

With many thanks for any hint

Albrecht

On Sun, 9 Feb 2003, Hans Hagen wrote:

> At 03:23 AM 2/9/2003 +0100, Albrecht Kauffmann wrote:
> >Hi all,
> >
> >I have a problem with references to equationnumbers.
> >
> >Let \the\equationnumber be 1. If I type
> >
> >\reference[a]{(\the\equationnumber)}$$ (a formula) $$
> >\advance\equationnumber by 1
> >\reference[b]{(\the\equationnumber)}$$ (another formula) $$
> >... \in[a],\in[b] ...
> >
> >I expect to get "... (1),(2) ...". With an older version of Context
> >(2000.12.14) this works fine. But with the new version (2002.10.23), I get
> >for both equation a and b the same number (namely the last, 2):
> >"... (2),(2) ...".
>
> looks pretty low level to me -)
>
> \startformula[for:a]
> a formula
> \stopformula
>
> as we see in \in {formula} [for:a] ...
>
> Hans
> -------------------------------------------------------------------------
>                                    Hans Hagen | PRAGMA ADE | pragma@wxs.nl
>                        Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
> -------------------------------------------------------------------------
>                         information: http://www.pragma-ade.com/roadmap.pdf
>                      documentation: http://www.pragma-ade.com/showcase.pdf
> -------------------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

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

* Re: \placeformula
       [not found]   ` <Pine.GSO.4.30.0302100617410.18455-100000@persius.rz.uni-po tsdam.de>
@ 2003-02-10  8:53     ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2003-02-10  8:53 UTC (permalink / raw)


At 06:20 AM 2/10/2003 +0100, you wrote:
>Hi all,
>
>is there any documentation of the commands \placeformula,
>\startformula, and so on?
>
>With many thanks for any hint

you can find details in core-mat.tex

(reminds me to finish updating the main manual -)

also, if you don't tell the others, you may peek into

   www.pragma-ade.com/temp/details.pdf

(unfinished, incompleet, unchecked, un*, in*)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: \placeformula
       [not found]   ` <87n0l3seee.fsf@uga.edu>
@ 2003-02-11  9:46     ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2003-02-11  9:46 UTC (permalink / raw)
  Cc: ntg-context

At 10:08 PM 2/10/2003 -0500, Ed L Cashin wrote:

>Did you mean for that to be a private email to Albrecht Kauffmann?  I
>hope not, because I peeked at details.pdf, and I noticed pseudo
>columns.  I was going to ask about them on the mailing list, but then
>I realized that you might not have been joking about not wanting
>everyone to see details.pdf.

no problem, i'll upload a newer one later (more examples of the extended 
side float support)

>Anyway, the first thing that occurred to me when seeing pseudocolumns
>is that this might solve the column balancing problem, where context
>could not balance columns that contained vboxes with lots of very
>stretchy glue.  That is, although the glue could stretch all you want,
>the column bottoms would still be uneven.  Like this:
>
>
>
>          +----------------------------------+
>          |                                  |
>          |  +-----------+    +-----------+  |
>          |  |           |    |           |  |
>          |  |           |    |           |  |
>          |  |           |    |           |  |
>          |  +-----------+    +-----------+  |
>          |                                  |
>          |  +------------+                  |
>          |  |            |                  |
>          |  |            |   +-----------+  |
>          |  +------------+   |           |  |
>          |                   |           |  |
>          |  +------------+   +-----------+  |
>          |  |            |                  |
>          |  |            |                  |
>          |  +------------+                  |
>          |                   +-----------+  |
>          |  +------------+   |           |  |
>          |  |            |   |           |  |
>          |  |            |   |           |  |
>          |  |            |   |           |  |
>          |  |            |   |           |  |
>          |  +------------+   +-----------+  |
>          +----------------------------------+
>
>
>Could the pseudocolumns feature solve that problem?  I'm thinking that
>maybe they could, because the problem before was that it was too
>difficult to get the otr to do it.  But I'm also thinking maybe
>pseudocolumns won't solve it, since the above example could not be
>achieved with the grid feature.

i can probably build that into columnsets one day; on the other hand, 
columnsets provide you a means to position graphics directly

\definecolumnset[mine][n=3]
\setuppapersize[A3][A3]
\setuptolerance[verytolerant]
\setuplayout[backspace=1cm,topspace=1cm,width=middle,height=middle]
\setuplayout[grid=on] \showgrid \tracecolumnsettrue

\starttext

\startcolumnset[mine]

\placefigure[rltb]{}{}

\placefigure[fxtb:2*13]{}{}

\dorecurse{10}{\input tufte \par}

\stopcolumnset

\stoptext

this works ok with the beta i just uploaded

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: reference problem
  2004-06-20 19:45 ` Hans Hagen Outside
@ 2004-06-22  9:38   ` dr. Hans van der Meer
  0 siblings, 0 replies; 8+ messages in thread
From: dr. Hans van der Meer @ 2004-06-22  9:38 UTC (permalink / raw)



On 20-jun-04, at 21:45, Hans Hagen Outside wrote:

> dr. Hans van der Meer wrote:
>
>> In the ConTeXt manual (cont-eni.pdf) it says in the chapter on 
>> references by way of example:
>
> can you try the version i uploaded yesterday?
>
> (i introduced a feature and therefore bug but don't know yet why it 
> fails on those cases)
>

I tried and now it works.

By the way, I found the typo in type-buy.tex (I just reported) has been 
corrected also. thanks.

Hans van der Meer

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

* Re: reference problem
  2004-06-19 20:48 reference problem dr. Hans van der Meer
@ 2004-06-20 19:45 ` Hans Hagen Outside
  2004-06-22  9:38   ` dr. Hans van der Meer
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen Outside @ 2004-06-20 19:45 UTC (permalink / raw)


dr. Hans van der Meer wrote:

> In the ConTeXt manual (cont-eni.pdf) it says in the chapter on 
> references by way of example:

can you try the version i uploaded yesterday?

(i introduced a feature and therefore bug but don't know yet why it 
fails on those cases)

Hans

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

* reference problem
@ 2004-06-19 20:48 dr. Hans van der Meer
  2004-06-20 19:45 ` Hans Hagen Outside
  0 siblings, 1 reply; 8+ messages in thread
From: dr. Hans van der Meer @ 2004-06-19 20:48 UTC (permalink / raw)


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

In the ConTeXt manual (cont-eni.pdf) it says in the chapter on 
references by way of example:

> In this chapter, we can safely use references, without the danger of 
> clashing with references in other chapters. If we have a figure:
>
> \placefigure[here][fig:worldmap]{A map of the \TeX\ world}{...}
>
> In the chapter itself we can refer to this figure with:
>
> \in {figure} [fig:worldmap]

However, if I use this scheme on the following input:

> \placefigure[here][fig:exceptionhierarchy]{Sample~exception~hierarchy}%
> 	{\externalfigure[ExceptionHierarchy][scale=800]}
>
> By way of example, \in{figure}[fig:exceptionhierarchy] shows the
> hierarchy for ...

The following error trace occurs (TeXShop):

> floatblocks    : 1 placed
> ! Undefined control sequence.
> \doloop ...ndcsname \recurselevel \let \endofloop
>                                                   \dodoloop \dodoloop 1
> \removeunwantedspaces ...kip \else \exitloop \fi }
>                                                   \fi
> <argument> ...\ignorespaces \removeunwantedspaces
>                                                   \rightofreference
> \doifelsenothing #1->\edef \!!stringa {#1
>                                          }\ifx \!!stringa \empty 
> \expandafte...
> <argument> ...veunwantedspaces \rightofreference }
>                                                   {\egroup 
> \dosymbolreferenc...
>
> \doifreferencefoundelse ...ce \ifreferencefound #2
>                                        \rightofreference
> ...
> l.121 ...mple, \in{figure}[fig:exceptionhierarchy]
>                                                    shows the
> ?

What I am doing wrong? Or has some change in macros taken place?
I am using  the following version:
ConTeXt  ver: 2004.6.14  fmt: 2004.6.15  int: english  mes: english

I would be happy if someone can provide the answer.

Hans van der Meer

[-- Attachment #2: Type: text/enriched, Size: 1977 bytes --]

<fontfamily><param>Courier</param><smaller>In the ConTeXt manual
(cont-eni.pdf) it says in the chapter on references by way of example:


<excerpt>In this chapter, we can safely use references, without the
danger of clashing with references in other chapters. If we have a
figure:


\placefigure[here][fig:worldmap]{A map of the \TeX\ world}{...}


In the chapter itself we can refer to this figure with:


\in {figure} [fig:worldmap]

</excerpt>

However, if I use this scheme on the following input:


<excerpt>\placefigure[here][fig:exceptionhierarchy]{Sample~exception~hierarchy}%

	{\externalfigure[ExceptionHierarchy][scale=800]}


By way of example, \in{figure}[fig:exceptionhierarchy] shows the

hierarchy for ...

</excerpt>

The following error trace occurs (TeXShop):


<excerpt>floatblocks    : 1 placed

! Undefined control sequence.

\doloop ...ndcsname \recurselevel \let \endofloop 

                                                  \dodoloop \dodoloop 1

\removeunwantedspaces ...kip \else \exitloop \fi }

                                                  \fi 

<<argument> ...\ignorespaces \removeunwantedspaces 

                                                  \rightofreference 

\doifelsenothing #1->\edef \!!stringa {#1

                                         }\ifx \!!stringa \empty
\expandafte...

<<argument> ...veunwantedspaces \rightofreference }

                                                  {\egroup
\dosymbolreferenc...


\doifreferencefoundelse ...ce \ifreferencefound #2

                                       \rightofreference 

...

l.121 ...mple, \in{figure}[fig:exceptionhierarchy]

                                                   shows the

? 

</excerpt>

What I am doing wrong? Or has some change in macros taken place?

I am using  the following version:

ConTeXt  ver: 2004.6.14  fmt: 2004.6.15  int: english  mes: english


I would be happy if someone can provide the answer.


Hans van der Meer

</smaller></fontfamily>

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

* reference problem
@ 2003-02-09  2:23 Albrecht Kauffmann
  0 siblings, 0 replies; 8+ messages in thread
From: Albrecht Kauffmann @ 2003-02-09  2:23 UTC (permalink / raw)


Hi all,

I have a problem with references to equationnumbers.

Let \the\equationnumber be 1. If I type

\reference[a]{(\the\equationnumber)}$$ (a formula) $$
\advance\equationnumber by 1
\reference[b]{(\the\equationnumber)}$$ (another formula) $$
... \in[a],\in[b] ...

I expect to get "... (1),(2) ...". With an older version of Context
(2000.12.14) this works fine. But with the new version (2002.10.23), I get
for both equation a and b the same number (namely the last, 2):
"... (2),(2) ...".

Is this a bug, or has somewhat changed?

With many thanks in advance
Albrecht

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

end of thread, other threads:[~2004-06-22  9:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Pine.GSO.4.30.0302090310210.29721-100000@persius.rz.uni-po tsdam.de>
2003-02-09 19:00 ` reference problem Hans Hagen
2003-02-10  5:20   ` \placeformula Albrecht Kauffmann
     [not found]   ` <Pine.GSO.4.30.0302100617410.18455-100000@persius.rz.uni-po tsdam.de>
2003-02-10  8:53     ` \placeformula Hans Hagen
     [not found]   ` <87n0l3seee.fsf@uga.edu>
2003-02-11  9:46     ` \placeformula Hans Hagen
2004-06-19 20:48 reference problem dr. Hans van der Meer
2004-06-20 19:45 ` Hans Hagen Outside
2004-06-22  9:38   ` dr. Hans van der Meer
  -- strict thread matches above, loose matches on Subject: below --
2003-02-09  2:23 Albrecht Kauffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).