Re: [NTG-context] space between footnotes

2012-06-02 Thread Philipp Gesang
Hi Pablo!

···date: 2012-06-01, Friday···from: Pablo Rodríguez···

 Hi there,
 
 I'm trying to add some space between footnotes, such as:
 
 \setupnotation[footnote][numbercommand=,inbetween=\hskip.25em]
^^
Assuming instead that you intend to put some vertical distance
between the notes, you can try the “after” key:

\setupnotation[footnote][
  numbercommand=,
  after=\blank, %% hook you spacing macro in here
]

Else if you meant the space that separates the footnote number
from the note inserts, that would be the “distance” key:

\setupnotation[footnote][
  numbercommand=,
  distance=5em, %% expects dimension
]

Regards
Philipp



 \starttext
 \dorecurse{5}{foot\footnote{note}}
 \stoptext
 
 But neither inbetween or before work here, only after seems to work
 (with beta from 2012.05.30).
 
 Am I missing something or have I hit a bug?
 
 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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


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

Re: [NTG-context] Zapf Dingbats font

2012-06-02 Thread luigi scarso
On Sat, Jun 2, 2012 at 12:36 AM, Alfredo Catalina
alfredo.catal...@gmail.com wrote:
 Can the Zapf Dingbats font be used in MKIV? I can't do it work

 I have downloaded the symb-uni-zapf.zip file from
 http://dl.contextgarden.net/websitesarchive/atl/tex/. Then I unpacked it and
 copied the .tfm, .enc and .map files in texmf-context/fonts as well as
 symb-uzd.tex in texmf-context/tex/context/third
You  need the font --- the type1 file
IIRC, the font was included with the Reader5 --- see
ftp://ftp.adobe.com/pub/adobe/acrobatreader/win/5.x/
BTW, the files are for mkii.

-- 
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] space between footnotes

2012-06-02 Thread Pablo Rodríguez
On 02/06/12 09:27, Philipp Gesang wrote:
 Hi Pablo!
 
 ···date: 2012-06-01, Friday···from: Pablo Rodríguez···
 
 Hi there,

 I'm trying to add some space between footnotes, such as:

 \setupnotation[footnote][numbercommand=,inbetween=\hskip.25em]
 ^^
 Assuming instead that you intend to put some vertical distance
 between the notes, you can try the “after” key:
 
 \setupnotation[footnote][
   numbercommand=,
   after=\blank, %% hook you spacing macro in here
 ]

Hi Philipp,

many thanks for your reply and your help.

This is what I intended, but it has an undesired effect, it adds some
space after the last note in page (which, I'd like to avoid).

Here is a sample:

\definenote[showafter]
\definenote[showbefore]
\definenote[showbetween]
\definenote[shownt]
\setupnotation[footnote][numbercommand=]
\setupnotation[showafter][numbercommand=,after={\blank[5*big]}]
\setupnotation[showbefore][numbercommand=,before={\blank[5*big]}]
\setupnotation[showbetween][numbercommand=,inbetween={\blank[5*big]}]
\showframe
\starttext
\dorecurse{5}{foot\footnote{note}}
\page
\dorecurse{5}{foot\showafter{note}}
\page
\dorecurse{5}{foot\showbefore{note}}
\page
\dorecurse{5}{foot\showbetween{note}}
\stoptext


I need to add some space between the notes, but neither before the first
one nor after the last.

I thought inbetween was the right option for this. According to the
sample above, it doesn't seem to work (I don't see what changes with and
without inbetween=\blank[5*big]).

I have two questions:

Is inbetween the right option to add space only between notes?

If the answer is yes, I'm afraid I have hit a bug.

If the answer is no, what is inbetween supposed to do?

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
___


Re: [NTG-context] space between footnotes

2012-06-02 Thread Wolfgang Schuster

Am 02.06.2012 um 15:25 schrieb Pablo Rodríguez:

 On 02/06/12 09:27, Philipp Gesang wrote:
 Hi Pablo!
 
 ···date: 2012-06-01, Friday···from: Pablo Rodríguez···
 
 Hi there,
 
 I'm trying to add some space between footnotes, such as:
 
 \setupnotation[footnote][numbercommand=,inbetween=\hskip.25em]
^^
 Assuming instead that you intend to put some vertical distance
 between the notes, you can try the “after” key:
 
 \setupnotation[footnote][
  numbercommand=,
  after=\blank, %% hook you spacing macro in here
 ]
 
 Hi Philipp,
 
 many thanks for your reply and your help.
 
 This is what I intended, but it has an undesired effect, it adds some
 space after the last note in page (which, I'd like to avoid).
 
 Here is a sample:
 
 \definenote[showafter]
 \definenote[showbefore]
 \definenote[showbetween]
 \definenote[shownt]
 \setupnotation[footnote][numbercommand=]
 \setupnotation[showafter][numbercommand=,after={\blank[5*big]}]
 \setupnotation[showbefore][numbercommand=,before={\blank[5*big]}]
 \setupnotation[showbetween][numbercommand=,inbetween={\blank[5*big]}]
 \showframe
 \starttext
 \dorecurse{5}{foot\footnote{note}}
 \page
 \dorecurse{5}{foot\showafter{note}}
 \page
 \dorecurse{5}{foot\showbefore{note}}
 \page
 \dorecurse{5}{foot\showbetween{note}}
 \stoptext
 
 
 I need to add some space between the notes, but neither before the first
 one nor after the last.
 
 I thought inbetween was the right option for this. According to the
 sample above, it doesn't seem to work (I don't see what changes with and
 without inbetween=\blank[5*big]).
 
 I have two questions:
 
 Is inbetween the right option to add space only between notes?
 
 If the answer is yes, I'm afraid I have hit a bug.
 
 If the answer is no, what is inbetween supposed to do?

Inbetween is the space between a description/enumeration title and content when 
you have the setup “alternative=top”.

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] space between footnotes

2012-06-02 Thread Philipp Gesang
Hi Pablo!

···date: 2012-06-02, Saturday···from: Pablo Rodríguez···

 I have two questions:
 
 Is inbetween the right option to add space only between notes?

Afaict *\setupnotation* has no “inbetween” key, but “\setupnote”
has. In the latter case it is only meaningful for paragraph-style
(serried) footnotes:


\setupnote[footnote][
  paragraph=yes,
  inbetween=\hskip 5em,
]
\starttext
\dorecurse{5}{foot\footnote{note}}
\stoptext


Unfortunately with ordinary settings it is ignored altogether.
The alternative you are looking for might be to locally set a
different parskip for the footnote inserts:


\setupnotation[footnote][
  before={\setupwhitespace[big]},
  numbercommand=,
]
\starttext
\dorecurse{5}{foot\footnote{note}}
\stoptext


Hth,
Philipp


 If the answer is yes, I'm afraid I have hit a bug.
 
 If the answer is no, what is inbetween supposed to do?
 
 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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


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

Re: [NTG-context] space between footnotes

2012-06-02 Thread Pablo Rodríguez
On 02/06/12 15:38, Wolfgang Schuster wrote:
 
 Am 02.06.2012 um 15:25 schrieb Pablo Rodríguez:
 [...]
 Is inbetween the right option to add space only between
 notes?
 [...]
 If the answer is no, what is inbetween supposed to do?
 
 Inbetween is the space between a description/enumeration title and
 content when you have the setup “alternative=top”.

Many thanks for your reply, Wolfgang.

Now I understand that there is no way to avoid some extra space either
before the first note or after the last one.


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
___


Re: [NTG-context] space between footnotes

2012-06-02 Thread Pablo Rodríguez
On 02/06/12 15:42, Philipp Gesang wrote:
 Hi Pablo!
 
 ···date: 2012-06-02, Saturday···from: Pablo Rodríguez···
 
 I have two questions:

 Is inbetween the right option to add space only between notes?
 
 Afaict *\setupnotation* has no “inbetween” key, but “\setupnote”
 has.

Many thanks for your reply and your explanation, Philipp.

At strc-not.mkvi both \setuptnotation and \setupnote have an
inbetween option.

 In the latter case it is only meaningful for paragraph-style
 (serried) footnotes:
 
 
 \setupnote[footnote][
   paragraph=yes,
   inbetween=\hskip 5em,
 ]
 \starttext
 \dorecurse{5}{foot\footnote{note}}
 \stoptext
 
 
 Unfortunately with ordinary settings it is ignored altogether.

If this isn't a bug, I wonder whether this shouldn't be implemented. It
makes sense.

 The alternative you are looking for might be to locally set a
 different parskip for the footnote inserts:

It adds the space also before or after the first or last one (I guess
this is the way these options should work).

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
___


Re: [NTG-context] space between footnotes

2012-06-02 Thread Wolfgang Schuster

Am 02.06.2012 um 16:17 schrieb Pablo Rodríguez:

 On 02/06/12 15:42, Philipp Gesang wrote:
 Hi Pablo!
 
 ···date: 2012-06-02, Saturday···from: Pablo Rodríguez···
 
 I have two questions:
 
 Is inbetween the right option to add space only between notes?
 
 Afaict *\setupnotation* has no “inbetween” key, but “\setupnote”
 has.
 
 Many thanks for your reply and your explanation, Philipp.
 
 At strc-not.mkvi both \setuptnotation and \setupnote have an
 inbetween option.

When you print all footnotes entries in a single paragraph the inbetween 
parameter from \setupnote
is used to add something (can be a horizontal space or a symbol etc.) between 
the individual notes.

The inbetween parameter from \setupnotation is used when you have the setup 
\setupnotation[alternative=top].

 In the latter case it is only meaningful for paragraph-style
 (serried) footnotes:
 
 
 \setupnote[footnote][
  paragraph=yes,
  inbetween=\hskip 5em,
 ]
 \starttext
 \dorecurse{5}{foot\footnote{note}}
 \stoptext
 
 
 Unfortunately with ordinary settings it is ignored altogether.
 
 If this isn't a bug, I wonder whether this shouldn't be implemented. It
 makes sense.

Add \setupnotation[footnote][display=no] and the example will work.

 The alternative you are looking for might be to locally set a
 different parskip for the footnote inserts:
 
 It adds the space also before or after the first or last one (I guess
 this is the way these options should work).

It’s a bug because in the following example even the space between the notes is 
too big,
it should be 5mm but actually it’s 10mm.

\setupnotation[footnote][before={\blank[5mm]},after={\blank[5mm]}]

\starttext \showframe
\dorecurse{5}{foot\footnote{note} }
\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] “bodyfont %s is defined (can better be done global)”

2012-06-02 Thread Philipp Gesang
Dear listmates,

with \switchtobodyfont I get the interface message “fonts:14”
from mult-mes.lua (“bodyfont %s is defined (can better be done
global)”) which is kinda hard to grep for :( Example:

  \definebodyfont[42pt][rm][default]
  \starttext
  \switchtobodyfont [42pt]
  \setupbodyfont [42pt]
  \stoptext

Which results in:


... /
fontsbodyfont 42pt is defined (can better be done global)
fontsbodyfont 50.4pt is defined (can better be done global)
fontsbodyfont 40.32pt is defined (can better be done global)
... /


(\setupbodyfont doesn’t cause it.) It seems harmless but (a) I
have a conditional font change that may repeat hundreds of times
over the course of a document and it clutters my terminal, and
(b) it’s a warning after all, so everything is not as it is
supposed to be.  What’s it telling me, and why?

Philipp


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpl7QEti3tFe.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] Broken chem module?

2012-06-02 Thread Kip Warner
Hey list,

The following minimal does not appear to typeset the reaction properly
in 2012.05.30.

\starttext
\placeformula[reaction:Sabatier Reaction]
\startformula
\inlinechemical{CO_2,+,4H_2,-,CH_4,+,2H_2O,+,heat}
\stopformula
\stoptext

But maybe I am not doing something right.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] space between footnotes

2012-06-02 Thread Pablo Rodríguez
On 02/06/12 17:03, Wolfgang Schuster wrote:
 Am 02.06.2012 um 16:17 schrieb Pablo Rodríguez:
 On 02/06/12 15:42, Philipp Gesang wrote:
 [...]
 In the latter case it is only meaningful for paragraph-style
 (serried) footnotes:
 
 \setupnote[footnote][
  paragraph=yes,
  inbetween=\hskip 5em,
 ]
 \starttext
 \dorecurse{5}{foot\footnote{note}}
 \stoptext
 
 Unfortunately with ordinary settings it is ignored altogether.

 If this isn't a bug, I wonder whether this shouldn't be implemented. It
 makes sense.
 
 Add \setupnotation[footnote][display=no] and the example will work.

Many thanks for your reply, Wolfgang.

If I didn't get your explanation wrong, this example should work:

\setupnote[footnote][inbetween=\blank]
\setupnotation[footnote][display=no]
\starttext
\dorecurse{5}{foot\footnote{note}}
\stoptext

I'm afraid it doesn't. What is wrong here?

 The alternative you are looking for might be to locally set a
 different parskip for the footnote inserts:

 It adds the space also before or after the first or last one (I guess
 this is the way these options should work).
 
 It’s a bug because in the following example even the space between the notes 
 is too big,
 it should be 5mm but actually it’s 10mm.
 
 \setupnotation[footnote][before={\blank[5mm]},after={\blank[5mm]}]

Are you sure that this is buggy? If each note should have 5mm before and
after it, I think the right space between notes should be 10mm (5mm
after the previous note plus 5mm before the next note). Maybe I'm being
too simplistic, but I think it's right.

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
___


Re: [NTG-context] “bodyfont %s is defined (can better be done global)”

2012-06-02 Thread S Barmeier
 
 ... /
 fontsbodyfont 42pt is defined (can better be done global)
 fontsbodyfont 50.4pt is defined (can better be done global)
 fontsbodyfont 40.32pt is defined (can better be done global)
 ... /
 
 
 (\setupbodyfont doesn’t cause it.) It seems harmless but (a) I
 have a conditional font change that may repeat hundreds of times
 over the course of a document and it clutters my terminal, and
 (b) it’s a warning after all, so everything is not as it is
 supposed to be.  What’s it telling me, and why?
 
 Philipp

I'd be interested as well. Maybe my document just grew too large, but I
am having quite major memory issues it seems. Trying to compile my
document takes almost 10min and half-ẁay through Thunderbird is telling
me that its scripts are timing out and asking whether I want to stop
them. (A few pages less and the document compiles in 15 secs.) I have
two 2GHz processors and 1GB ram. The only frequent error I get from
context is that the bodyfont can better be defined globally. Will this
help with memory issues? Is there anything else I should do differently?

Thanks,
Severin

mkiv lua stats   used config file  -
selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   -
/home/user/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats   resource resolver - loadtime 0.320 seconds, 0
scans with scantime 0.000 seconds, 0 shared scans, 26 found files,
scanned paths:
mkiv lua stats   stored bytecode data  - 303 modules, 65 tables,
368 chunks
mkiv lua stats   cleaned up reserved nodes - 58 nodes, 9 lists of 633
mkiv lua stats   node memory usage - 3 glue, 11 penalty, 17
attribute, 398 glue_spec, 4 attribute_list
mkiv lua stats   node list callback tasks  - 6 unique task lists, 30
instances (re)created, 10605 calls
mkiv lua stats   h-node processing time- 0.156 seconds including kernel
mkiv lua stats   attribute processing time - 0.186 seconds front- and
backend
mkiv lua stats   used backend  - pdf (backend for directly
generating pdf output)
mkiv lua stats   loaded tex modules- 1 requested, 1 found
(*-ruby), 0 missing
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   jobdata time  - 0.074 seconds saving,
0.012 seconds loading
mkiv lua stats   callbacks - 20135 direct, 3123
indirect, 23258 total
mkiv lua stats   randomizer- resumed with value
0.98300544032036
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 15
lpath calls, 0 cached calls
mkiv lua stats   interactive elements  - 0 references, 70 destinations
mkiv lua stats   v-node processing time- 1.227 seconds
mkiv lua stats   positions - 691 collected, 687
regulars, 0 regions, 4 unresolved regions
mkiv lua stats   result saved in file  - jfti.pdf
mkiv lua stats   margin data   - 86 entries, 0 pending
mkiv lua stats   loaded fonts  - 11 files:
lmmath-regular.otf genbasb.ttf genbasbi.ttf geni102.ttf genr102.ttf
adobesongstd-light.otf andika-r.ttf ipaexg.ttf ipaexm.ttf
kanjistrokeorders_v2.016.ttf unbatang.ttf
mkiv lua stats   fonts load time   - 13.121 seconds
mkiv lua stats   graphics processing time  - 0.017 seconds including
tex, 1 processed images
mkiv lua stats   luatex banner - this is luatex, version
beta-0.70.1-2011051918 (rev 4277)
mkiv lua stats   control sequences - 35261 of 65536 + 10
mkiv lua stats   current memory usage  - 529 MB (ctx: 542 MB)
mkiv lua stats   runtime   - 168.172 seconds, 59
processed pages, 60 shipped pages, 0.357 pages/second

system  | total runtime: 514.036
___
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
___