ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* placenamedformula in placelist (MKII vs MKIV/LMTX)
@ 2021-03-16  5:28 Adam Reviczky
  2021-03-17 22:05 ` Adam Reviczky
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Reviczky @ 2021-03-16  5:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,

I want to use placenamedformula to list a formula in the placelist with
both the formula name and the formula number (alongside the pagenumber).

The example in the wiki (https://wiki.contextgarden.net/Math/Display) and
the test suite (cont-tst/doc/context/tests/mkiv/math/formulas-003.tex)
shows what I would like to have.

Using MKII I get the desired output (1 formulaname ... and 3b formulaname
...) but with MKIV and LMTX I only get the reference from the placeformula
(as 1 and correctly not listed in the placelist) and none of the
placenamedformula numbers. The placeformula number is then carried onto the
second placenamedformula as 1 (resulting in formulaname ... and 1
formulaname ...).

I have attached the test suite file output with both MKII and MKIV.

Is there a way to get the MKII output with MKIV/LMTX somehow?

Adam

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

[-- Attachment #2: formulas-003-mkii.pdf --]
[-- Type: application/pdf, Size: 28286 bytes --]

[-- Attachment #3: formulas-003.mkiv.pdf --]
[-- Type: application/pdf, Size: 11473 bytes --]

[-- Attachment #4: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: placenamedformula in placelist (MKII vs MKIV/LMTX)
  2021-03-16  5:28 placenamedformula in placelist (MKII vs MKIV/LMTX) Adam Reviczky
@ 2021-03-17 22:05 ` Adam Reviczky
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Reviczky @ 2021-03-17 22:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,

Or would it be possible to just add a "list=" option to placeformula
similar to placefigure? (although that might conflict with the combination
of "title=")

All I am really after is to label or name numbered formulas in the
placelist.

---
\starttext

% 1   This is a picture of a cow  . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .  1
\startplacefigure[title={My cow},list={This is a picture of a cow}]
\externalfigure[cow] \stopplacefigure

% Mass-energy equivalence . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . 1
\startplaceformula[reference=eq:one,title={Mass-energy equivalence}]
\startformula e=mc^2 \stopformula \stopplaceformula

% 1   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .  1
% list option could give: 1   Mass-energy equivalence . . . . . . . . . . .
. . . . . . . . . . . .  1
\startplaceformula[reference=eq:one,list={Mass-energy equivalence}]
\startformula e=mc^2 \stopformula \stopplaceformula

\placelistoffigures[criterium=all,alternative=c]
\placelist[formula][criterium=all,alternative=c]

\stoptext
--

Adam

On Tue, Mar 16, 2021 at 5:28 AM Adam Reviczky <reviczky@gmail.com> wrote:

> Hi,
>
> I want to use placenamedformula to list a formula in the placelist with
> both the formula name and the formula number (alongside the pagenumber).
>
> The example in the wiki (https://wiki.contextgarden.net/Math/Display) and
> the test suite (cont-tst/doc/context/tests/mkiv/math/formulas-003.tex)
> shows what I would like to have.
>
> Using MKII I get the desired output (1 formulaname ... and 3b formulaname
> ...) but with MKIV and LMTX I only get the reference from the placeformula
> (as 1 and correctly not listed in the placelist) and none of the
> placenamedformula numbers. The placeformula number is then carried onto the
> second placenamedformula as 1 (resulting in formulaname ... and 1
> formulaname ...).
>
> I have attached the test suite file output with both MKII and MKIV.
>
> Is there a way to get the MKII output with MKIV/LMTX somehow?
>
> Adam
>

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

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2021-03-17 22:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16  5:28 placenamedformula in placelist (MKII vs MKIV/LMTX) Adam Reviczky
2021-03-17 22:05 ` Adam Reviczky

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