From: Tim Steenvoorden <tim.steenvoorden@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Same counter for figures as theorems
Date: Fri, 14 Aug 2020 09:49:45 +0200 [thread overview]
Message-ID: <9a901450-5766-488a-a5e9-0c24434c46f1@Spark> (raw)
In-Reply-To: <39780BE5-1C13-44FA-B838-7C302CE53635@elvenkind.com>
[-- Attachment #1.1: Type: text/plain, Size: 1630 bytes --]
Hi Taco,
Thanks for your example and the pointer to make a MWE.
Sadly, it doesn’t work for me. It numbers the first enumeration 1.1.1 and the first figure _also_ 1.1.1, which I’d like to be 1.1.2.
This time, you’ll find the code and the output pdf in the attachment!
Cheers,
Tim
P.S. I’m on Context MacTeX/TeXLive 2020:
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: /usr/local/texlive/2020basic/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.03.10 14:44
mtx-context | main context file: /usr/local/texlive/2020basic/texmf-dist/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.03.10 14:44
On 13 Aug 2020, 13:12 +0200, Taco Hoekwater <taco@elvenkind.com>, wrote:
>
>
> > On 13 Aug 2020, at 10:06, Tim Steenvoorden <tim.steenvoorden@gmail.com> wrote:
> >
> > Hi all,
> >
> > Anybody some pointers?
>
> Next time, prepare a minimal (non)working example. Because the attachment works for me.
>
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 2344 bytes --]
[-- Attachment #2: test-counters.tex --]
[-- Type: application/octet-stream, Size: 593 bytes --]
\setupcaptions[
way=bysection,
prefixsegments=chapter:section,
]
\setupenumerations[
way=bysection,
prefix=yes,
prefixsegments=chapter:section,
]
\defineenumeration[enumeration][text=Enumeration]
\definecounter[object][
way=bysection,
prefix=yes,
prefixsegments=chapter:section,
]
\setupenumerations[
counter=object,
]
\setupcaptions[
counter=object,
]
\starttext
\dorecurse{4}{
\chapter{Hi}
\section{Knuth}
\input knuth
\dorecurse{3}{
\enumeration
\input zapf
\par
\placefigure{This is the caption}{This is some content}
}
}
\stoptext
[-- Attachment #3: test-counters.pdf --]
[-- Type: application/octet-stream, Size: 30432 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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-08-14 7:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1697c9e5-a649-4569-a35e-071bf1594300@Spark>
2020-08-11 9:41 ` Tim Steenvoorden
2020-08-13 8:06 ` Tim Steenvoorden
2020-08-13 11:11 ` Taco Hoekwater
2020-08-14 7:49 ` Tim Steenvoorden [this message]
2020-08-14 21:11 ` Taco Hoekwater
2020-08-18 8:30 ` Tim Steenvoorden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9a901450-5766-488a-a5e9-0c24434c46f1@Spark \
--to=tim.steenvoorden@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).