Subject: mailing-list for TeXmacs Users
List archive
From : Martial Tarizzo <address@hidden>- To: marc lalaude-labayle <address@hidden>
- Cc: texmacs-users <address@hidden>
- Subject: Re: [TeXmacs] chapter, section numbering
- Date: Fri, 27 Nov 2015 00:58:05 +0100
I can't see the problem, as the default numbering scheme is the same as
the book style. (see attached file)
If you want to customize, you can re-define the macros (example for
section tag, you can do the same for the others tags) :
section-nr is the counter for sections
<the-section> is a macro which displays the section header.
<display-section> is a macro used to compute the full header
You can even modify the macros in the middle of a doc (but, who wants to
do that ? Example in parts.tm)
HTH
MT
Le jeudi 26 novembre 2015 à 14:10 +0100, marc lalaude-labayle a écrit :
> Hi,
>
>
> one asks me to write in a book style with the chapters numbered,
> section too but in this way :
>
>
> Part I
> Chapter 1
> 1 Section 1
> 1.1 Subsection 1
>
>
> and not
>
>
> Part I
> Chapter 1
> 1.1 Section 1
> 1.1.1 Subsection
>
>
>
>
> Does anyone know how i can make this ?
>
>
> Thanks in advance.
>
>
> Marc
<TeXmacs|1.99.2>
<style|<tuple|generic|french>>
<\body>
<part*|Part>
<chapter*|Chapter>
<section|Section>
<subsection|sub-section>
<subsubsection|sub-sub-section>
**** see source for macros redefining headers for section, subsection and
subsubsection ***
<assign|the-section|<macro|<number|<value|section-nr>|Alpha>>>
<assign|display-subsection|<macro|x|<with|color|blue|subsection
<value|subsection-nr>> of section <the-section> : >>
<assign|display-subsubsection|<macro|x|<with|color|red|subsubsection
<value|subsubsection-nr>> of <the-subsection>>>
**** end of macros ****
<section|Section>
<subsection|another sub-section>
<subsubsection|sub-sub-section>
<subsubsection|sub-sub-section>
<subsubsection|sub-sub-section>
<subsection|another sub-section>
<subsubsection|sub-sub-section>
<subsubsection|sub-sub-section>
<subsubsection|sub-sub-section>
<subsubsection|sub-sub-section>
<section|Section>
<subsection|another sub-section>
<subsection|another sub-section>
<subsubsection|sub-sub-section>
\;
\;
\;
</body>
<\initial>
<\collection>
<associate|page-type|user>
<associate|preamble|false>
</collection>
</initial>
<\references>
<\collection>
<associate|auto-1|<tuple|?|?>>
<associate|auto-10|<tuple|<with|color|<quote|red>|subsubsection 3> of
<with|color|<quote|blue>|subsection 1> of section B : |?>>
<associate|auto-11|<tuple|<with|color|<quote|blue>|subsection 2> of
section B : |?>>
<associate|auto-12|<tuple|<with|color|<quote|red>|subsubsection 1> of
<with|color|<quote|blue>|subsection 2> of section B : |?>>
<associate|auto-13|<tuple|<with|color|<quote|red>|subsubsection 2> of
<with|color|<quote|blue>|subsection 2> of section B : |?>>
<associate|auto-14|<tuple|<with|color|<quote|red>|subsubsection 3> of
<with|color|<quote|blue>|subsection 2> of section B : |?>>
<associate|auto-15|<tuple|<with|color|<quote|red>|subsubsection 4> of
<with|color|<quote|blue>|subsection 2> of section B : |?>>
<associate|auto-16|<tuple|C|?>>
<associate|auto-17|<tuple|<with|color|<quote|blue>|subsection 1> of
section C : |?>>
<associate|auto-18|<tuple|<with|color|<quote|blue>|subsection 2> of
section C : |?>>
<associate|auto-19|<tuple|<with|color|<quote|red>|subsubsection 1> of
<with|color|<quote|blue>|subsection 2> of section C : |?>>
<associate|auto-2|<tuple|?|?>>
<associate|auto-3|<tuple|1|?>>
<associate|auto-4|<tuple|1.1|?>>
<associate|auto-5|<tuple|1.1.1|?>>
<associate|auto-6|<tuple|B|?>>
<associate|auto-7|<tuple|<with|color|<quote|blue>|subsection 1> of
section B : |?>>
<associate|auto-8|<tuple|<with|color|<quote|red>|subsubsection 1> of
<with|color|<quote|blue>|subsection 1> of section B : |?>>
<associate|auto-9|<tuple|<with|color|<quote|red>|subsubsection 2> of
<with|color|<quote|blue>|subsection 1> of section B : |?>>
</collection>
</references>
<\auxiliary>
<\collection>
<\associate|toc>
<vspace*|2fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|font-size|<quote|1.19>|Part>
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-1><vspace|1fn>
<vspace*|2fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|font-size|<quote|1.19>|Chapter>
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-2><vspace|1fn>
<vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|1<space|2spc>Section>
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-3><vspace|0.5fn>
<with|par-left|<quote|1tab>|1.1<space|2spc>sub-section
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-4>>
<with|par-left|<quote|2tab>|1.1.1<space|2spc>sub-sub-section
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-5>>
<vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|B<space|2spc>Section>
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-6><vspace|0.5fn>
<with|par-left|<quote|1tab>|<with|color|<quote|blue>|subsection 1> of
section B : <space|2spc>another sub-section
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-7>>
<with|par-left|<quote|1tab>|<with|color|<quote|blue>|subsection 2> of
section B : <space|2spc>another sub-section
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-8>>
<with|par-left|<quote|2tab>|<with|color|<quote|red>|subsubsection 1> of
<with|color|<quote|blue>|subsection 2> of section B :
<space|2spc>sub-sub-section <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-9>>
<with|par-left|<quote|2tab>|<with|color|<quote|red>|subsubsection 2> of
<with|color|<quote|blue>|subsection 2> of section B :
<space|2spc>sub-sub-section <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-10>>
<with|par-left|<quote|2tab>|<with|color|<quote|red>|subsubsection 3> of
<with|color|<quote|blue>|subsection 2> of section B :
<space|2spc>sub-sub-section <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-11>>
<with|par-left|<quote|2tab>|<with|color|<quote|red>|subsubsection 4> of
<with|color|<quote|blue>|subsection 2> of section B :
<space|2spc>sub-sub-section <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-12>>
<vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|C<space|2spc>Section>
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-13><vspace|0.5fn>
<with|par-left|<quote|1tab>|<with|color|<quote|blue>|subsection 1> of
section C : <space|2spc>another sub-section
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-14>>
<with|par-left|<quote|2tab>|<with|color|<quote|red>|subsubsection 1> of
<with|color|<quote|blue>|subsection 1> of section C :
<space|2spc>sub-sub-section <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-15>>
</associate>
</collection>
</auxiliary>
- [TeXmacs] chapter, section numbering, marc lalaude-labayle, 11/26/2015
- Re: [TeXmacs] chapter, section numbering, Martial Tarizzo, 11/27/2015
- Re: [TeXmacs] chapter, section numbering, marc lalaude-labayle, 11/27/2015
- Re: [TeXmacs] chapter, section numbering, Martial Tarizzo, 11/27/2015
Archive powered by MHonArc 2.6.19.