ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* definereferencestructureprefix for floats
@ 2015-06-20 16:22 Aditya Mahajan
  2015-06-20 16:48 ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2015-06-20 16:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

How does one control the referenceprefix for floats. I want to refer to 
the figures as only Fig 1, Fig 2, etc, even when they are numbered 1.1, 
1.2, etc.

The example from strc-ref.mkvi does not work (I get 1.I-A.1 and 1.I-A.2)

\defineconversionset[default][Character,number,Romannumerals,Character][number]
\defineseparatorset [default][.,.,--][.]
\setuphead[subsection][sectionstopper=),sectionsegments=4:4]
\setupreferencestructureprefix[default][prefixsegments=2:4]
\setupreferencestructureprefix[figure][default][prefixsegments=3:4]

\starttext
\chapter {One}
\section {One}
\subsection[sec:test]{Two}
See \in[sec:test] and \in[fig:xx] and \in[fig:yy]
\placefigure[here][fig:xx]{}{}
\placefigure[here][fig:yy]{}{}

\stoptext

Thanks,
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-06-22 16:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-20 16:22 definereferencestructureprefix for floats Aditya Mahajan
2015-06-20 16:48 ` Wolfgang Schuster
2015-06-22  3:30   ` Aditya Mahajan
2015-06-22  3:35     ` Aditya Mahajan
2015-06-22  7:41       ` Wolfgang Schuster
2015-06-22 15:34         ` Aditya Mahajan
2015-06-22 15:44           ` Wolfgang Schuster
2015-06-22 16:01             ` Aditya Mahajan
2015-06-22 16:09             ` Otared Kavian

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).