Re: [NTG-context] how to set figure label ?

2015-04-17 Thread Harald Koenig
On Apr 16, Alan BRASLAU wrote:

 I much prefer the syntax
 
 \startplacefigure [reference=fig:,location={here,force},title={}]
\externalfigure[]...
 \stopplacefigure
 
 Depending on the strange macros that you want to use,
 this should generally work. I find that this gives one many more
 options.

ACK!  works even for my strange macros ;-)


thanks a lot,

Harald
-- 
I hope to die  ___   _
before I *have* to use Microsoft Word.,   0--,|/OOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen._/  /  /OOO\
\  \/OOO\
  \ O|//
   \/\/\/\/\/\/\/\/\/
Harald Koenig   //  / \\  \
koe...@tat.physik.uni-tuebingen.de ^   ^
___
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] \setuphead for all existing sections

2015-04-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is there a way to affect (setup) all sections that have been defined, like:


\setuphead[*][distance=1.5em]


instead of:


\setuphead[part,chapter,section,subsection,subsubsection][distance=1.5em]


The latter way needs to know all section names;
the former way allows to modify them all, without knowledge of their individual 
names.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] How to exclude certain figures from list of figures in ConTeXt?

2015-04-17 Thread Geert Verhaag

Hi Wolfgang,

Thank you very much for your clarification!

It just does the job very well, and this list completes my book (written 
in Dutch!) entirely typeset using ConTeXt!


And this is of course mentioned in the colophon of the book.

Regards,
Gerard

On 16-04-15 22:33, Wolfgang Schuster wrote:

Am 15.04.2015 um 22:12 schrieb Geert Verhaag verhaagg...@ziggo.nl:

Hi Wolfgang,

Thank you very much for your suggestion!

Can you explain a bit the trick behind this mechanism?

I created only a new float environment which copies all values from the figure 
environment
but it saves all caption entries in its own nofigure list and when you show 
only the figure
entries in the list the others are hidden.

\setupexternalfigures[location=default]

\definefloat[nofigure][nofigures][figure]

\starttext

\subject{Figure entries}

\placelist[figure]

\subject{Figure and nofigure entries}

\placelist[figure,nofigure]

\blank[4*line]

\startplacefloat[figure][title=A dutch cow]
\externalfigure[cow][width=6cm]
\stopplacefloat

\startplacefloat[nofigure][title=A dutch mill]
\externalfigure[mill][width=6cm]
\stopplacefloat

\stoptext

Wolfgang
___
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
___

[NTG-context] Howto typeset physical half-life

2015-04-17 Thread Christian Prim
Hi

a year or so before one could simply typeset the physical half-life as
shown in MWE:

\usetypescript[palatino]
\setupbodyfont[palatino]
\starttext
½ α
\m{T_α}
\m{T_½}
\stoptext

The greek letter is just to show, that utf-8 works as expected. In actual
beta (and probably longer before) this doesn't work anymore. What have I
missed?

Thanks
Christian
___
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] Howto typeset physical half-life

2015-04-17 Thread Hans Hagen

On 4/17/2015 9:41 PM, Christian Prim wrote:

Hi

a year or so before one could simply typeset the physical half-life as
shown in MWE:

\usetypescript[palatino]
\setupbodyfont[palatino]
\starttext
 ½ α
 \m{T_α}
 \m{T_½}
\stoptext

The greek letter is just to show, that utf-8 works as expected. In
actual beta (and probably longer before) this doesn't work anymore. What
have I missed?


Are you sure? palatino doesn't have that character in its math 
repertoire (it might have been present in the alternative that uses px 
fonts combined with a pagella text font in which case they're coming 
from text). The math subsystem of context does to some extend accept 
super and subscript characters but not (at least not now) these 
fractions. Is this really needed? It can be done but quite some extra 
overhead for bad practice.


Anyway, I've added a checker so that at least it gets reported (assuming 
the use of one math collection):


mkiv lua stats   unknown math characters: ½ (U+000BD) (n=3)

Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] \setuphead for all existing sections

2015-04-17 Thread Pablo Rodriguez
On 04/17/2015 12:00 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
 Hello,
 
 is there a way to affect (setup) all sections that have been defined, like:
 
 
 \setuphead[*][distance=1.5em]
 
 
 instead of:
 
 
 \setuphead[part,chapter,section,subsection,subsubsection][distance=1.5em]
 

Hi Lukáš,

\setupheads[distance=1.5em] should do the work.

I hope it helps,


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
___

[NTG-context] Hidden chapter header? ... was: Change counter of chapters

2015-04-17 Thread Jaroslav Hajtmar
Hello ConTeXist
My last Subject contribution maybe  so misleading that it nobody react. I'll 
try therefore to bring different view:
Exist any possibility of creating some kind of hidden chapters (sections, 
subsections)?  
The command would increase the counter of chapters (sections, subsections). 
Maybe it seems as rape of ConTeXt, but in certain moments this option would 
help me. 
In my case it is the integration of practical part of project (worked in 
ConTeXt) into Word project:-(...


For example I need to start writing any text from 53 page and such from the 5th 
chapter (or section). 
It is possible in a similar way as I set the start page number set also the 
counter of chapters (sections)?


Thanx for help.


Jaroslav Hajtmar


Here is my minimal example:


\starttext
%\hiddenchapter{Fictive chapter}
%\hiddenchapter{Fictive chapter}
%\hiddenchapter{Fictive chapter}
%\hiddenchapter{Fictive chapter}


\page


\setcounter[userpage][53]


\chapter{Fifth (actually first) nonfictive chapter}


blablabla


\stoptext



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