ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jean Magnan de Bornier <jm.bornier@free.fr>
To: ntg-context@ntg.nl
Subject: Re: A couple of setupcaptions questions
Date: Thu, 04 Aug 2011 17:10:58 +0200	[thread overview]
Message-ID: <87d3gl6wl9.fsf@boldair.bornier.net> (raw)
In-Reply-To: <06B713E9-0B91-41E9-82FE-9EB025C49A23@googlemail.com> (Wolfgang Schuster's message of "Thu, 4 Aug 2011 15:38:11 +0200")

Le 04 août à 15:38:11 Wolfgang Schuster <schuster.wolfgang@googlemail.com> écrit notamment:

| Provide a *minimal working*, otherwise there is no way to tell what’s wrong.

sure
Here are 4 files:

TEst.tex:
.........................
\startproduct Test
 \environment env_test
 \startfrontmatter
 \component bla   
 \stopfrontmatter

 \startbodymatter

 \component test1
 \component test2
\stopbodymatter


\stopproduct
..........................

env_test.tex:
.........................
\startenvironment env_test
\setupcolors
[state=start]
\setupcaptions[way=bysection,prefixsegments=chapter]
\setupformulae[way=bysection,prefixsegments=section] 
\setupinteraction[state=start] 
\definereferenceformat[ineq] [left=(,right=),text=équation]
\definereferenceformat[graph][left={graphique },right=]
\stopenvironment
..........................

test1.tex:
..........................
\startcomponent

\chapter{ch 1}
 This file has been typeset
 on \currentdate{}
 at \currenttime,

 with
 \doifmodeelse{mkiv}{mkiv, LuaTeX revision \luatexrevision, (LuaTeX
 date stamp \luatexdatestamp)}{mkii},
 ConTeXt version \contextversion,
 using the command:

 \starttyping
 context test.tex
 \stoptyping

\stopcomponent
..........................

test2.tex:
..........................

\startcomponent
\chapter{ch 2}
\section{un}
\startuseMPgraphic{kdj}
  pickup pencircle scaled 1.5mm ;
draw (origin -- dir(45) -- dir(0) -- cycle)
  scaled sqrt(2) scaled 3cm                   withcolor .625red ;
draw (origin -- dir(angle(1,1)) -- dir(angle(1,0)) -- cycle)
  scaled sqrt(2) scaled 3cm shifted (4.5cm,0) withcolor .625yellow ;
draw (origin -- (1,1) -- (1,0) -- cycle)
  scaled         3cm shifted (9cm,0)          withcolor .625white ;
label.lft(btex quid? $\alpha$ etex, (1,3));
\stopuseMPgraphic

\placefigure[][fig:un]{Un}{\useMPgraphic{kdj}}

\section{deux}
\placeformula[eq:pythagoras]
\startformula
  a^2+b^2=c^2
\stopformula

This is explained in \ineq[eq:pythagoras].

Et dans le \graph[fig:un]
\stopcomponent
............................

"context TEst" produces a different result in the caption with these files
and when replacing (start-stop)component by (start-stop)text (files test1
and test2).

-- 
Jean
___________________________________________________________________________________
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:[~2011-08-04 15:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-02 14:10 Jean Magnan de Bornier
2011-08-02 14:19 ` Wolfgang Schuster
2011-08-03  6:29   ` Jean Magnan de Bornier
2011-08-03  7:13     ` Jean Magnan de Bornier
2011-08-04  6:16     ` Jean Magnan de Bornier
2011-08-04 13:38       ` Wolfgang Schuster
2011-08-04 15:10         ` Jean Magnan de Bornier [this message]
2011-08-04 16:14           ` Wolfgang Schuster
2011-08-04 17:17             ` Jean Magnan de Bornier
2011-08-04 17:24               ` Wolfgang Schuster
2011-08-04 17:52                 ` Jean Magnan de Bornier
2011-08-05  8:00               ` Jean Magnan de Bornier
2011-08-05 12:30                 ` Wolfgang Schuster
2011-08-05 13:51                   ` Jean Magnan de Bornier
2011-08-05 15:36                     ` Wolfgang Schuster
2011-08-05 16:51                       ` Jean Magnan de Bornier
2011-08-05 18:16                         ` Wolfgang Schuster

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=87d3gl6wl9.fsf@boldair.bornier.net \
    --to=jm.bornier@free.fr \
    --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).