[NTG-context] [***SPAM***] Strategies to control moving footnotes

2013-06-04 Thread H. Özoguz
I have often the problem of moving footnotes (with activated grid 
setting). That means, the footnote is not on the same page as the 
footnotenumber, but moved on the next page. That apperas often if you 
have a book with many not-so-short footnotes. Maybe one has to accept 
that, but in some cases it is really ugly. How do you manish these 
cases, how to control in general this problem? It appears, if the 
footnote is not very short and the footnotenumber is at the bottom of 
the page (in the text). So the footnote on the same text would shift the 
footnotenumber on the next. Are there some automated strategies and keys 
in context, or is there no other way than manipulating the text itself?


Regards,
Huseyin
___
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] Picture before chapter-title, but on same page

2013-06-04 Thread Hans Hagen

On 6/4/2013 7:56 AM, H. Özoguz wrote:

Hello there,

I want to place a picture at the top on a page, and directly after that
a chapter-title (without a page break). I tried it with the key
continue, but that does not work.
Here my try:

\setuphead
   [chapter]
   [continue=yes]
\starttext
\chapter{Chapter-title}
\startplacefigure [title={Some picture.}, reference=fig:demo, number=no]
  \externalfigure[picture][width=5cm]
\stopplacefigure
\stoptext

How to correct it?


add location=top

-
  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] [***SPAM***] Strategies to control moving footnotes

2013-06-04 Thread Hans Hagen

On 6/4/2013 9:10 AM, H. Özoguz wrote:

I have often the problem of moving footnotes (with activated grid
setting). That means, the footnote is not on the same page as the
footnotenumber, but moved on the next page. That apperas often if you
have a book with many not-so-short footnotes. Maybe one has to accept
that, but in some cases it is really ugly. How do you manish these
cases, how to control in general this problem? It appears, if the
footnote is not very short and the footnotenumber is at the bottom of
the page (in the text). So the footnote on the same text would shift the
footnotenumber on the next. Are there some automated strategies and keys
in context, or is there no other way than manipulating the text itself?


\setupnotes[split=tolerant|strict|verystrict]

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


[NTG-context] Multiple footnote-numbers referring only to one footnote

2013-06-04 Thread H. Özoguz

Hello,

how to achieve this: I want more than one footenote-number, which refer 
to the very same footnote. The footnote should than enumerate the 
numbers like:


Text (Footnote 1) Text (Footnote 2)
-
1,2 Very explenating information.

Thanks for help.
Huseyin
___
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] \at and \in woes with \startcomponent….\stopcomponent

2013-06-04 Thread Alan Bowen
In my component files, the tools for cross-references work except for \at
and \in. These commands produce links that display properly but go to a
null page, i.e., nowhere.

Sample file: Test.tex

\setupinteraction[state=start,color=blue,%
contrastcolor=darkred,
style=rm,
click=yes,
display=new,
]
\startcomponent Test.tex
%\starttext
reference on \at[myref1]

reference in note\in[myref1]

reference: \at[myref1]n\in[myref1]

\page

text\footnote[myref1]{a footnote}

more text\footnote[myref2]{another footnote}

\stopcomponent
%\stoptext

If I run the file with \starttext…\stoptext, all is well.

I am using the latest beta (ConTeXt  ver: 2013.05.31 21:57 MKIV beta  fmt)

Alan
___
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] Fraction with a fraction in the denominator

2013-06-04 Thread Sietse Brouwer
Hoi Sander,

Sander wrote:
 This gives basically three equally long division lines

The fraction line of a nested fractions is in fact shorter than that
of its parent fraction, but by a very small amout. This seems to be
the standard behaviour -- I tried the formula in LaTeX, and the
difference is just as small.

I agree with you that it would be nice if the difference were a bit
bigger in the case of continued fractions, but I suspect that would be
hard to automate. Anyway: below is a quick hack for manual adjustment.

(I've simplified your formula somewhat -- the one in your mail threw
some syntax errors to do with {} nesting, and the square roots made it
harder to make out the fraction line.)

Cheers,
Sietse

% Declare a new dimension variable
\newdimen\padwidth

% Set dimen
\padwidth=1em
% Define a command that adds a padwidth-sized kern
\define[0]\pad{\kern \padwidth}

% Needed for the formula
\def\VAR#1{\text{VAR}(#1)}

\startformula
\frac{
\mu_{Z}
}{
\pad\frac{
\VAR{Z}
}{
N_{\text{segments}}
}\pad
}
\stopformula
___
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] Database module and command key

2013-06-04 Thread Wolfgang Schuster
Hi Hans,

why has the meaning of the command key changed in MkIV?


In MkII you can define a command which has as many argument as entries in the 
list.

% engine=pdftex

\usemodule[database]

\starttext

\define[3]\TestCommand{\ruledhbox{#1:#2:#3}}

\defineseparatedlist[test][command=\TestCommand]

\starttest
1,2,3
\stoptest

\stoptext


In MkIV the argument of the command key is applied to each entry in the list
and you can’t grab all entries with a single command.

\usemodule[database]

\starttext

\define[1]\TestCommand{\ruledhbox{#1}}

\defineseparatedlist[test][command=\TestCommand]

\starttest
1,2,3
4,5,6
\stoptest

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


Re: [NTG-context] Database module and command key

2013-06-04 Thread Hans Hagen

On 6/4/2013 6:07 PM, Wolfgang Schuster wrote:

Hi Hans,

why has the meaning of the command key changed in MkIV?


Probably because it went unnoticed (I'm not using it myself). You can 
patch this:


if j == 1 then
context(command)
end




In MkII you can define a command which has as many argument as entries in the 
list.

% engine=pdftex

\usemodule[database]

\starttext

\define[3]\TestCommand{\ruledhbox{#1:#2:#3}}

\defineseparatedlist[test][command=\TestCommand]

\starttest
1,2,3
\stoptest

\stoptext


In MkIV the argument of the command key is applied to each entry in the list
and you can’t grab all entries with a single command.

\usemodule[database]

\starttext

\define[1]\TestCommand{\ruledhbox{#1}}

\defineseparatedlist[test][command=\TestCommand]

\starttest
1,2,3
4,5,6
\stoptest

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




--

-
  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] \processcommalist and load values into macros.

2013-06-04 Thread Wolfgang Schuster

Am 03.06.2013 um 23:47 schrieb Jaroslav Hajtmar hajt...@gyza.cz:

 Hello ConTeXist.
 Obviously I have a problem with expansion. My question is:
 How can I place the elements of the list into macros for later use?
 Basically, my point is that I want assign individual values into macros 
 within the cycle of ​​and those subsequently used in a buffer to creating my 
 own report.
 Perhaps is can be understood what I want from my minimal example.


I suggest to use a different method to store and load the data. The first method
is to use the database module (you can also use a external file for the data),
the other method is the \setvariables command where you can use keys for
the entries.


Method 1:

\usemodule[database]

\define[5]\TestCommand
  {\starttabulate
   \NC FIRSTNAME \EQ #1 \NC\NR
   \NC SURNAME   \EQ #2 \NC\NR
   \NC CITY  \EQ #3 \NC\NR
   \NC STREET\EQ #4 \NC\NR
   \NC POSTCODE  \EQ #5 \NC\NR
   \stoptabulate
   \page}

\defineseparatedlist[test][command=\TestCommand]

\starttext

\starttest
John, Smith, Prague, Václavské náměstí 20, 11500
Peter, Paul, Brno, Nad struhou 232/12, 234 20
Annie, Walter, Ostrava, Pod lipami 7, 321 54
\stoptest

\stoptext


Method 2:

\startsetups[test]

  \starttabulate
  \NC FIRSTNAME \EQ \getvariable{test}{firstname} \NC\NR
  \NC SURNAME   \EQ \getvariable{test}{surname}   \NC\NR
  \NC CITY  \EQ \getvariable{test}{city}  \NC\NR
  \NC STREET\EQ \getvariable{test}{street}\NC\NR
  \NC POSTCODE  \EQ \getvariable{test}{postcode}  \NC\NR
  \stoptabulate

  \page

\stopsetups

\setvariable{test}{set}{\setups{test}}

\starttext

\setvariables
  [test]
  [firstname=John,
   surname=Smith,
   city=Prague,
   street=Václavské náměstí 20,
   postcode=11500]

\setvariables
  [test]
  [firstname=Peter,
   surname=Paul,
   city=Brno,
   street=Nad struhou 232/12,
   postcode=234 20]

\setvariables
  [test]
  [firstname=Annie,
   surname=Walter,
   city=Ostrava,
   street=Pod lipami 7,
   postcode=321 54]

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

Re: [NTG-context] Including a large SVG image

2013-06-04 Thread Sander Maijers
The inkscape command works okay from the command line. Should I upload 
the SVG and manual PDF output somewhere?



On 03-06-13 18:53, honyk wrote:

Sander Maijers wrote:

I have a few SVG graphics of multiple megabytes. They contain a lot
of objects (text/shapes). All graphics except for one gets properly
included in my ConTeXt document.


Marco Patzer wrote:

Maybe inkscape failed to convert the file. Is a corresponding
m_k_i_v_filename.svg.pdf file generated?


It might be informative to try running the Inkscape conversion
manually. This is the command line ConTeXT uses:

 inkscape %oldname% --export-dpi=600 -A %newname%

(The quotation marks are literal: they are there in case the filename
has spaces, e.g.)


If processing in Inkscape fails, you can try another tool: 
http://xmlgraphics.apache.org/batik/tools/rasterizer.html

It can (despite its name) transcode SVG to vector PDF:

java -Xmx2G -jar batik-rasterizer.jar -m application/pdf image.svg

In that case you have to transcode your files first and reference PDF variants 
in your input.

Jan

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


Re: [NTG-context] \at and \in woes with \startcomponent….\stopcomponent

2013-06-04 Thread Hans Hagen

On 6/4/2013 2:06 PM, Alan Bowen wrote:

In my component files, the tools for cross-references work except for
\at and \in. These commands produce links that display properly but go
to a null page, i.e., nowhere.


it's more an side effect of duplicate flushing notes .. i fixed 
something, hopefully it didn't break something else (notes is one of the 
more complex mechanisms)


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] \at and \in woes with \startcomponent….\stopcomponent

2013-06-04 Thread Marco Patzer
On 2013–06–04 Hans Hagen wrote:

 On 6/4/2013 2:06 PM, Alan Bowen wrote:
 In my component files, the tools for cross-references work except for
 \at and \in. These commands produce links that display properly but go
 to a null page, i.e., nowhere.
 
 it's more an side effect of duplicate flushing notes .. i fixed
 something, hopefully it didn't break something else

! I can't find file `scrp-ini.mkiv'.
to be read again 
\relax 
l.392 \loadmarkfile{scrp-ini}


Marco

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

2013-06-04 Thread Erik Neves
help
___
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] \processcommalist and load values into macros.

2013-06-04 Thread Jaroslav Hajtmar

Hello Wolfgang.
There is any problem in first method.
I get  message Nested tabulate is not (yet) supported.
Thanx Jaroslav Hajtmar

Here is problematic example:


\usemodule[database]



\define[5]\TestCommand
  {\starttabulate
   \NC FIRSTNAME \EQ #1 \NC\NR
   \NC SURNAME   \EQ #2 \NC\NR
   \NC CITY  \EQ #3 \NC\NR
   \NC STREET\EQ #4 \NC\NR
   \NC POSTCODE  \EQ #5 \NC\NR
   \stoptabulate
   \page}

\define[5]\TestOtherCommand{#1, #2, #3, #4, #5\par}


\defineseparatedlist[test][command=\TestCommand]

\defineseparatedlist[othertest][command=\TestOtherCommand]

\starttext

Method 1:

\starttest
John, Smith, Prague, Václavské náměstí 20, 115 00
Peter, Paul, Brno, Nad struhou 232/12, 234 20
Annie, Walter, Ostrava, Pod lipami 7, 321 54
\stoptest

\startothertest
John, Smith, Prague, Václavské náměstí 20, 115 00
Peter, Paul, Brno, Nad struhou 232/12, 234 20
Annie, Walter, Ostrava, Pod lipami 7, 321 54
\stopothertest


\stoptext



Dne 4.6.2013 19:34, Wolfgang Schuster napsal(a):

Am 03.06.2013 um 23:47 schrieb Jaroslav Hajtmar hajt...@gyza.cz:


Hello ConTeXist.
Obviously I have a problem with expansion. My question is:
How can I place the elements of the list into macros for later use?
Basically, my point is that I want assign individual values into macros within 
the cycle of ​​and those subsequently used in a buffer to creating my own 
report.
Perhaps is can be understood what I want from my minimal example.


I suggest to use a different method to store and load the data. The first method
is to use the database module (you can also use a external file for the data),
the other method is the \setvariables command where you can use keys for
the entries.


Method 1:

\usemodule[database]

\define[5]\TestCommand
   {\starttabulate
\NC FIRSTNAME \EQ #1 \NC\NR
\NC SURNAME   \EQ #2 \NC\NR
\NC CITY  \EQ #3 \NC\NR
\NC STREET\EQ #4 \NC\NR
\NC POSTCODE  \EQ #5 \NC\NR
\stoptabulate
\page}

\defineseparatedlist[test][command=\TestCommand]

\starttext

\starttest
John, Smith, Prague, Václavské náměstí 20, 11500
Peter, Paul, Brno, Nad struhou 232/12, 234 20
Annie, Walter, Ostrava, Pod lipami 7, 321 54
\stoptest

\stoptext


Method 2:

\startsetups[test]

   \starttabulate
   \NC FIRSTNAME \EQ \getvariable{test}{firstname} \NC\NR
   \NC SURNAME   \EQ \getvariable{test}{surname}   \NC\NR
   \NC CITY  \EQ \getvariable{test}{city}  \NC\NR
   \NC STREET\EQ \getvariable{test}{street}\NC\NR
   \NC POSTCODE  \EQ \getvariable{test}{postcode}  \NC\NR
   \stoptabulate

   \page

\stopsetups

\setvariable{test}{set}{\setups{test}}

\starttext

\setvariables
   [test]
   [firstname=John,
surname=Smith,
city=Prague,
street=Václavské náměstí 20,
postcode=11500]

\setvariables
   [test]
   [firstname=Peter,
surname=Paul,
city=Brno,
street=Nad struhou 232/12,
postcode=234 20]

\setvariables
   [test]
   [firstname=Annie,
surname=Walter,
city=Ostrava,
street=Pod lipami 7,
postcode=321 54]

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

Re: [NTG-context] help

2013-06-04 Thread luigi scarso
On Tue, Jun 4, 2013 at 8:15 PM, Erik Neves erikne...@gmail.com wrote:

 help

about  what ?


--
luigi
___
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] \at and \in woes with \startcomponent….\stopcomponent

2013-06-04 Thread Hans Hagen

On 6/4/2013 8:03 PM, Marco Patzer wrote:

On 2013–06–04 Hans Hagen wrote:


On 6/4/2013 2:06 PM, Alan Bowen wrote:

In my component files, the tools for cross-references work except for
\at and \in. These commands produce links that display properly but go
to a null page, i.e., nowhere.


it's more an side effect of duplicate flushing notes .. i fixed
something, hopefully it didn't break something else


! I can't find file `scrp-ini.mkiv'.
to be read again
\relax
l.392 \loadmarkfile{scrp-ini}


weird ... i'll make a new zip

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] \processcommalist and load values into macros.

2013-06-04 Thread Wolfgang Schuster

Am 04.06.2013 um 20:26 schrieb Jaroslav Hajtmar hajt...@gyza.cz:

 Hello Wolfgang.
 There is any problem in first method.
 I get  message Nested tabulate is not (yet) supported.

There was a bug in the database module regarding the command key,
update your installation and it will work.

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
___


Re: [NTG-context] Fraction with a fraction in the denominator

2013-06-04 Thread Hans Hagen

On 6/4/2013 3:04 PM, Sietse Brouwer wrote:

Hoi Sander,

Sander wrote:

This gives basically three equally long division lines


The fraction line of a nested fractions is in fact shorter than that
of its parent fraction, but by a very small amout. This seems to be
the standard behaviour -- I tried the formula in LaTeX, and the
difference is just as small.

I agree with you that it would be nice if the difference were a bit
bigger in the case of continued fractions, but I suspect that would be
hard to automate. Anyway: below is a quick hack for manual adjustment.

(I've simplified your formula somewhat -- the one in your mail threw
some syntax errors to do with {} nesting, and the square roots made it
harder to make out the fraction line.)

Cheers,
Sietse

% Declare a new dimension variable
\newdimen\padwidth

% Set dimen
\padwidth=1em
% Define a command that adds a padwidth-sized kern
\define[0]\pad{\kern \padwidth}

% Needed for the formula
\def\VAR#1{\text{VAR}(#1)}

\startformula
 \frac{
 \mu_{Z}
 }{
 \pad\frac{
 \VAR{Z}
 }{
 N_{\text{segments}}
 }\pad
 }
\stopformula


ok, a new feature for SB:

\definemathfraction
  [wfrac]
  [margin=.25em]

\starttext

\startformula
\wfrac {
a
} {
\frac {
b
} {
c
}
}
\stopformula

\stoptext



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


[NTG-context] Exporting labels from a ConTeXt document

2013-06-04 Thread Lance Larsen
I have a document with several equations included. I need to reference these
in an external document. To automate the process, I need a mapping between
the equation label (i.e.,  eq:my_eq_name) to an equation number such as
(4.22). Is there a way to export this mapping possibly as a command line
input? Or is there a log file I can parse to get this information (the *.tuc
file did list equation reference names, but I did not see a mapping to
equation numbers).

 

If there is not a command line option to dump this information, what is the
best way to extract it. Can I embed lua code in the document that reads the
equation number as the document in processed? If I could read the number
from lua, I could write this to a file. Any help is appreciated.

 

-Lance Larsen

___
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] \processcommalist and load values into macros.

2013-06-04 Thread Jaroslav Hajtmar

Thanx Wolfgang very much.
After update standalone version of ConTeXt is first database method 
working OK.


You proposed methods are acceptable and comfortable for me. Moreover, it 
is systemic solutions.


Thanks very much for the reply and for the inspiration.
Jaroslav Hajtmar



Dne 4.6.2013 20:40, Wolfgang Schuster napsal(a):

Am 04.06.2013 um 20:26 schrieb Jaroslav Hajtmar hajt...@gyza.cz:


Hello Wolfgang.
There is any problem in first method.
I get  message Nested tabulate is not (yet) supported.

There was a bug in the database module regarding the command key,
update your installation and it will work.

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
___


[NTG-context] [***SPAM***] Source files for ConTeXt manuals

2013-06-04 Thread honyk
Dear All,

as a newbie I am investigating various ConTeXt (MkIV) concepts and I feel
that any direct comparison of the source and the final output would help me
a lot.

While in the ConTeXt reference manual I can see e.g. nice side-by-side
framed text blocks, I am lost in various text box, framing or columns
switches and unable to create something similar. 

While in this guide http://www.pragma-ade.com/general/manuals/style.pdf I
can see many options for font expansion, something like this is not
applicable to MkIV: 
\setupfonthandling [hz] [min=30,max=30,step=5] 

I've search for doc source in the source browser
http://source.contextgarden.net/ but I still haven't found anything
promising.

Any idea?

I just try to avoid spamming the list with most likely obvious and silly
questions :-)

Regards, Jan

___
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] [***SPAM***] Source files for ConTeXt manuals

2013-06-04 Thread Hans Hagen

On 6/4/2013 11:31 PM, honyk wrote:

Dear All,

as a newbie I am investigating various ConTeXt (MkIV) concepts and I feel
that any direct comparison of the source and the final output would help me
a lot.

While in the ConTeXt reference manual I can see e.g. nice side-by-side
framed text blocks, I am lost in various text box, framing or columns
switches and unable to create something similar.


you need to be more explicit in what you want to achieve


While in this guide http://www.pragma-ade.com/general/manuals/style.pdf I
can see many options for font expansion, something like this is not
applicable to MkIV:
\setupfonthandling [hz] [min=30,max=30,step=5]


it's implemented differently in mkiv (vectors are defined in lua) ... 
font-mkiv.pdf has some info about that


as luatex is a bit more efficient min/max/step are less needed and 
future versions might even be more granular.



I've search for doc source in the source browser
http://source.contextgarden.net/ but I still haven't found anything
promising.


all protrusion and expansion is dealt with via features so the 
implementation is mostly in lua code


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
___