[NTG-context] [***SPAM***] Symbols for footnotes not working

2013-03-28 Thread hwitloc

From ConTeXt's Wiki Garden the below should work, but it isn't. 
How can this be accomlished.  I want to use just \dagger for the symbol, but 
any symbol would do.

\definesymbol[4]{\dagger]

\starttext
\defineconversion[dagger][{\dagger},{\dagger}]   % use a \dagger for the 
footnote.
\setupfootnotes[conversion=set dagger,location=text]
This is the dagger, \dagger{}I want to use for reference\footnote{Will the 
dagger appear}.

A second line here for robustness.\footnote{It's a number still.}
\stoptext

 end of example

Also I could find no explanations for what a set is, as in  conversion=set 1 or 
2 or 3 etc.  What is set 1 or 2 or 3?  

Regards.


___
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***] Symbols for footnotes not working

2013-03-28 Thread Wolfgang Schuster

Am 28.03.2013 um 07:07 schrieb hwit...@gmail.com:

 
 From ConTeXt's Wiki Garden the below should work, but it isn't. 
 How can this be accomlished.  I want to use just \dagger for the symbol, but 
 any symbol would do.
 
 \definesymbol[4]{\dagger]
 
 \starttext
 \defineconversion[dagger][{\dagger},{\dagger}]   % use a \dagger for the 
 footnote.
 \setupfootnotes[conversion=set dagger,location=text]
 This is the dagger, \dagger{}I want to use for reference\footnote{Will 
 the dagger appear}.
 
 A second line here for robustness.\footnote{It's a number still.}
 \stoptext

\setupnotation[footnote][numberconversion=dagger,alternative=text]

 Also I could find no explanations for what a set is, as in  conversion=set 1 
 or 2 or 3 etc.  What is set 1 or 2 or 3?  


A set is a list with symbols:

\starttext
\dorecurse {8}{\convertnumber{set 0}{\recurselevel}\quad}\par
\dorecurse {9}{\convertnumber{set 1}{\recurselevel}\quad}\par
\dorecurse{12}{\convertnumber{set 2}{\recurselevel}\quad}\par
\dorecurse{15}{\convertnumber{set 3}{\recurselevel}\quad}\par
\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
___


[NTG-context] Attach source to pdf

2013-03-28 Thread pol stra
Hello,

Is there a way to automatically attach the source file to the produced pdf?

Thanks
  ___
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] Attach source to pdf

2013-03-28 Thread Marco Patzer
On 2013–03–28 pol stra wrote:

 Is there a way to automatically attach the source file to the produced pdf?

\setupinteraction [state=start]
\starttext
  \attachment[file=attachfile.tex, title=Some file, author=Me]
\stoptext


signature.asc
Description: Digital signature
___
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] Attach source to pdf

2013-03-28 Thread pol stra


  Is there a way to automatically attach the source file to the produced pdf? 
\setupinteraction [state=start]
\starttext
  \attachment[file=attachfile.tex, title=Some file, author=Me]
\stoptext

Ok. It works, thank you.
  ___
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] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,


BTW: You can use \pagefigure[image] instead of 
\startpagefigure[image]\stoppagefigure.

Wolfgang


it seems \placefigure adds some extra space around, too.

Should this be corrected, too?

See my example...

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 244 062 238
Fax: +420 244 461 038

t.mkiv
Description: Binary data


t.pdf
Description: Adobe PDF document


t2.pdf
Description: Adobe PDF document
___
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] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-28 Thread Wolfgang Schuster

Am 28.03.2013 um 13:33 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

 Hello,
 
 BTW: You can use \pagefigure[image] instead of 
 \startpagefigure[image]\stoppagefigure.
 
 Wolfgang
 
 it seems \placefigure adds some extra space around, too.
 
 Should this be corrected, too?
 
 See my example…

I can’t reproduce this, do you use the current beta on your system?

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] \startpagefigure[]\stoppagefigure enlarges page by 1 mm

2013-03-28 Thread Procházka Lukáš Ing . - Pontex s . r . o .

it seems \placefigure adds some extra space around, too.

Should this be corrected, too?

See my example…


I can’t reproduce this, do you use the current beta on your system?

Wolfgang


Unfortunately no, I'm using:

ConTeXt  ver: 2012.11.26 13:31 MKIV  fmt: 2012.11.27  int: english/english

- I'm often using LuaXML.dll which exists only for Lua 5.1 so far (I contacted 
the author who doesn't maintain this lib any more).

I'm planning to bring it to Lua 5.2, too - but necessity to upgrade a .dll from Lua 5.1 
to 5.2 concerns more libs I'm using, too, and I'm collecting time to rebuild (upgrade) 
them all.

- So, that's the reason I'm still keeping ConTeXt  ver: 2012.11.26.

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 244 062 238
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
___

[NTG-context] mathcases look different in mathalign and formula

2013-03-28 Thread Tobias Columbus
Hi all,

While playing with \startmathcases, I discovered some strange (maybe
wanted?) behaviour of \startmathcases and
\stopmathcases:

- The interline spacing in mathcases is different depending on whether the
mathcases are used in a mathalignment or a formula
  environment.
- Lucida OpenType math has some nice curly brace that is also used in cases
environments. However, if \startmathcases,
  \stopmathcases is used in some mathalignment environment and the cases
contain subscripts, the curly brace disappears
  and some straight brace is used instead.
- When using superscripts instead of subscripts, the curly brace reappears
but the cases look like not vertically centered in both
  formula and mathalignment environments.

I produced an example demonstrating the above observations. In my opinion,
the disappearing curly brace is worst of all of them since one
frequently has formulas both with and without subscripts on the same page
and different braces are quite easily spotted.

Tobias


mathcases-2013.03.28.pdf
Description: Adobe PDF document


mathcases-2013.03.28.tex
Description: TeX document
___
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] error calling font.getfont() on certain fonts

2013-03-28 Thread Philipp Gesang
Hi all,

I get an error when I run this code:

\ctxlua{font.getfont( font.current() )}

(Complete example below.) Oddly, whether or not this fails
depends on the font. The issue does occur with both today’s beta
and Tex Live. The error message is

error: .../context/tex/texmf-context/tex/context/base/node-inj.lua:97: 
attempt to perform arithmetic on local 'factor' (a nil value)

At the same time, in Plain the equivalent code works fine for all
fonts. Bug or feature?

Best regards
Philipp


%% working fonts:
%\setupbodyfont[iwona]
%\setupbodyfont[computer-modern-unicode]
%\setupbodyfont[antykwa-poltawskiego]
%% ... ?

%% not working:
\setupbodyfont[modern]
%\setupbodyfont[antykwa]
%\setupbodyfont[termes]
%\setupbodyfont[pagella]
%\setupbodyfont[bonum]
%% ... ?

\starttext
  foo
  \ctxlua{font.getfont( font.current() )}
  bar
\stoptext



pgpRcL_tp4ym0.pgp
Description: PGP signature
___
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] new beta

2013-03-28 Thread Hans Hagen

Hi,

The uploaded beta has marco's ugs fixed (minus one) plus some (less 
important) pending issues in test files. The main change is that the 
root setup commands of enumerations, notes, formulas, floats, etc can 
now be used to set up the counters (was only possible by explicit setups 
e.g. per float).


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
___