[NTG-context] definereferencestructureprefix for floats

Aditya Mahajan adityam at umich.edu
Sat Jun 20 18:22:34 CEST 2015


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


More information about the ntg-context mailing list