Re: [NTG-context] definereferencestructureprefix for floats

2015-06-21 Thread Aditya Mahajan

On Sat, 20 Jun 2015, Wolfgang Schuster wrote:




Aditya Mahajan mailto:adit...@umich.edu
20. Juni 2015 18:22
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.

There is a typo in strc-ref.lua which can by fixed by the following changes.


Thank you. But even after make the appropriate change in strc-ref.lua (and 
regenerating the format), the previous example does not give Fig 1, etc.


Am I missing something in the sttings?

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
___

Re: [NTG-context] definereferencestructureprefix for floats

2015-06-21 Thread Aditya Mahajan

On Sun, 21 Jun 2015, Aditya Mahajan wrote:


On Sat, 20 Jun 2015, Wolfgang Schuster wrote:




Aditya Mahajan mailto:adit...@umich.edu
20. Juni 2015 18:22
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.
There is a typo in strc-ref.lua which can by fixed by the following 

changes.

Thank you. But even after make the appropriate change in strc-ref.lua (and 
regenerating the format), the previous example does not give Fig 1, etc.


Am I missing something in the sttings?


Even the second example in strc-ref.mkvi does not work correctly.

\starttext
\chapter{test}
\placefigure[here][xx:1]{}{\framed{one}} 
\placefigure[here][xx:2]{}{\framed{three}}
\placetable [here][xx:3]{}{\framed{two}} \placetable 
[here][xx:4]{}{\framed{four}}
\start
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and \in{tab}[xx:4]
\stop \blank \start
\setupreferencestructureprefix[default][prefix=no]
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and \in{tab}[xx:4]
\stop \blank \start
\setupreferencestructureprefix[float][default][prefix=no]
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and \in{tab}[xx:4]
\stop \blank \start
\setupreferencestructureprefix[figure][default][prefix=no]
\in{fig}[xx:1] and \in{fig}[xx:2] \in{tab}[xx:3] and \in{tab}[xx:4]
\stop \blank
\stoptext

The second case, (\setup...[default][prefix=no]) works correctly, but the 
last two cases (\setup...[float][default][prefix=no], etc) do not get rid 
of the prefix.


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
___

[NTG-context] issue with font sizes

2015-06-21 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\definefontfamily
[anothersans]
[ss]
[DejaVu Sans]

\starttext
\tfxx smaller text with \anothersans\ss second sans.
\stoptext

I need to add an alternative ss and tt font. The problem is that when
changing the typeface, I get the normal font size.

Is this a bug or a feature? How could I avoid it?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___