ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bernhard Rosensteiner <brosensteiner@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: A few questions
Date: Fri, 13 Nov 2009 09:51:01 +0100	[thread overview]
Message-ID: <22653826-D367-4A6D-8C17-2882B4A29C07@gmail.com> (raw)
In-Reply-To: <4AFCA3F3.6080004@gmail.com>

Hello,

following the new structure code the answer for your second question is:

\definestructureprefixset[figureprefix][section-3]
\definestructureseparatorset [septest][--,--,--,---][?]
\setupstructurecountering[way=bysection, prefixset=figureprefix, prefixseparatorset=septest, prefixconnector=--]

explanation: with definestructureprefixset you declare a new prefix which is always inserted when it is invoked with the prefixset key (in this case section-3 is the section while section-2 is for example the chapter and so on... look in the source code for more) you can have \definestructureprefixset[figureprefix][section-2,section-3,section-4] for example and the prefix gets inserted at the right place in your figure number. \definestructureseparatorset [septest][--,--,--,---][?] works similar (the [?] is in this case the fallback when no specific separator is defined for that position). the prefixconnector is the character which gets inserted between the figure number and the rest of the prefixes. All that prefixthings you can also do with pagenumbers and section numbers...

i don´t know if this code will see some changes in newer context mkiv versions because i think it is still experimental but at the moment it works.

third question: you could define a new head with \definehead then it gets a new counter. When you only want that a specific sectionnumber is different from the others than do: \startsection [title=dritte section, ownnumber=243]

first question: i don´t know because i don´t needed it.

hope this helps

best regards
Bernhard


Am 13.11.2009 um 01:10 schrieb Vyatcheslav Yatskovsky:

> Hello,
> 
> I have a few (I suppose easy) questions:
> 
> 1) asking about this again and again... how to setup itemization so that the first line were indented too?
> 
> 2) how to setup figure captions so that  they include section number, like
> <sectionNumber>.<figureNumber>
> (no sub-sub-subsections)?
> 
> 3) How to start section numbering from, say, second section?
> 
> Regards,
> Vyatcheslav
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2009-11-13  8:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.407.1258061400.22155.ntg-context@ntg.nl>
2009-11-12 23:40 ` Math setup with Times (Termes) Vyatcheslav Yatskovsky
2009-11-13  0:10 ` A few questions Vyatcheslav Yatskovsky
2009-11-13  8:51   ` Bernhard Rosensteiner [this message]
     [not found] <mailman.412.1258102152.22155.ntg-context@ntg.nl>
2009-11-13 14:13 ` a " Vyatcheslav Yatskovsky
2009-11-13 14:18   ` Taco Hoekwater
2009-11-13 14:29   ` luigi scarso

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=22653826-D367-4A6D-8C17-2882B4A29C07@gmail.com \
    --to=brosensteiner@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).