From: "Procházka Lukáš Ing. - Pontex s. r. o." <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Numbering subformulas
Date: Thu, 06 Aug 2015 17:41:30 +0200 [thread overview]
Message-ID: <op.x2ydvglvtpjj8f@lpr> (raw)
In-Reply-To: <3A231347-02C2-474A-816D-C3F48AC3287A@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1972 bytes --]
Hello Otared,
thanks for the hint. However, I'm still not able to tune the numbering setup fully.
Now I have (with resulting numbers | desired number):
----
\setuphead[part,chapter][placehead=yes,page=no]
\setupformulas
[prefix=yes,
%prefix=no,
%prefixsegments=chapter:section,
prefixsegments=part,
way=bysection,
%way=bytext,
%location=right,
]
\def\fakeformula{a^2 + b^2 = c^2}
\starttext
\part{P1}
\chapter{Cha1}
\section{A}
\placeformula\startformula\fakeformula\stopformula % 1.1 | 1.1 be "part 1, formula #1 in the part"
\section{B}
\placeformula\startformula\fakeformula\stopformula % 1.1 | 1.2 be "part 1, formula #2 in the part"
\subsection{Ba}
\placeformula\startformula\fakeformula\stopformula % 1.2 | 1.3 be "part 1, formula #3 in the part"
\chapter{Cha2}
\section{A}
\placeformula\startformula\fakeformula\stopformula % 1.1 | 1.4 be "part 1, formula #4 in the part"
\part{P2}
\chapter{Cha1}
\section{A}
\placeformula\startformula\fakeformula\stopformula % 2.1 | 2.1 be "part 2, formula #1 in the part"
\stoptext
----
So the problem here is that EVERY SECTION resets the formula counter, whilst I would need only \part to reset the counter, something like "[way=bypart]".
I played somehow with \setupformulas keys but without the wanted output...
Is there a way?
Best regards,
Lukas
On Thu, 06 Aug 2015 16:38:35 +0200, Otared Kavian <otared@gmail.com> wrote:
> Hi Lukás,
>
> You configure the way the equations are numbered by sayng (for example)
>
> \setupformulas[prefix=yes, prefixsegments=chapter:section, way=bysection, location=right]
--
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4
Tel: +420 241 096 751
Fax: +420 244 461 038
[-- Attachment #2: SubForm4.mkiv --]
[-- Type: application/octet-stream, Size: 782 bytes --]
\setuphead[part,chapter][placehead=yes,page=no]
\setupformulas
[prefix=yes,
%prefix=no,
%prefixsegments=chapter:section,
prefixsegments=part,
way=bysection,
%way=bytext,
%location=right,
]
\def\fakeformula{a^2 + b^2 = c^2}
\starttext
\part{P1}
\chapter{Cha1}
\section{A}
\placeformula\startformula\fakeformula\stopformula
\section{B}
\placeformula\startformula\fakeformula\stopformula
\subsection{Ba}
\placeformula\startformula\fakeformula\stopformula
\chapter{Cha2}
\section{A}
\placeformula\startformula\fakeformula\stopformula
\part{P2}
\chapter{Cha1}
\section{A}
\placeformula\startformula\fakeformula\stopformula
\stoptext
[-- Attachment #3: SubForm4.pdf --]
[-- Type: application/pdf, Size: 10616 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2015-08-06 15:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 10:20 Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-03 15:47 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-04 0:08 ` Aditya Mahajan
2015-08-05 23:25 ` Wolfgang Schuster
2015-08-06 9:32 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-06 10:07 ` Wolfgang Schuster
2015-08-06 11:18 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-06 11:42 ` Otared Kavian
2015-08-06 14:03 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-06 14:38 ` Otared Kavian
2015-08-06 15:41 ` Procházka Lukáš Ing. - Pontex s. r. o. [this message]
2015-08-06 21:03 ` Wolfgang Schuster
-- strict thread matches above, loose matches on Subject: below --
2012-10-14 16:19 Otared Kavian
2012-10-14 19:07 ` Aditya Mahajan
2012-10-14 20:25 ` Andreas Mang
2012-10-14 21:22 ` Wolfgang Schuster
2012-10-15 10:44 ` Andreas Mang
2012-10-15 11:45 ` Otared Kavian
2012-10-15 14:57 ` Hans Hagen
2012-10-15 14:58 ` Wolfgang Schuster
2012-10-15 17:47 ` Hans Hagen
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=op.x2ydvglvtpjj8f@lpr \
--to=lpr@pontex.cz \
--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).