Re: [NTG-context] Zapf Dingbats font

2012-06-03 Thread Alfredo Catalina
Ok, thanks Luigi.

This is how I sorted it out, hope it may help someone. It looks like I
should write a typescript and a symbol definition file, but I new to this
and don't know how to do it yet.

This is a workaround for the meantime:

- Download the free True Type font Zapf Dingbats BT from
http://www.ufonts.com/fonts/zapf-dingbats-bt.html
- You should have got the file ufonts.com_zapf-dingbats-bt-2.ttf or an EXE
file -an installer-
- In windows 7 it may be installed by clicking install -context menu,
right mouse click-
- Generate Context font database:

mtxrun --script fonts --reload

- Check it's been read:

mtxrun --script fonts --list --all --pattern=zapf*

- You should have several lines like zapfdingbatsbt
zapfdingbatsitcbybtregular
 c:/windows/fonts/ufonts.com_zapf-dingbats-bt-2.ttf
- Finally this is how I get the characters I need:

\definefont[zapfdingbats][ufonts.com_zapf-dingbats-bt-2.ttf at 10pt]

\starttext

Testing: {\zapfdingbats \char109}  %shadowed white circle

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

[NTG-context] Process stops

2012-06-03 Thread Alfredo Catalina
I am trying to process a document I wrote in 2009 using mkii. I am
modifying it to work with mkiv.

When I run

context mydoc.tex

the process starts and after some time it stops and shows an asterisk (*)
waiting for a command. I then type in \end, and it resumes. Finally it
ouputs mydoc.pdf. There are still some things to fix (ie section numbers)
but in general the document is ok.

I can't see any error message although I got a lot of Overfull \hbox...
and Underfull \hbox... messages.

What can be the reason?
___
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] Process stops

2012-06-03 Thread luigi scarso
On Sun, Jun 3, 2012 at 9:39 AM, Alfredo Catalina
alfredo.catal...@gmail.com wrote:
 I am trying to process a document I wrote in 2009 using mkii. I am modifying
 it to work with mkiv.

 When I run

 context mydoc.tex

 the process starts and after some time it stops and shows an asterisk (*)
 waiting for a command. I then type in \end, and it resumes. Finally it
 ouputs mydoc.pdf. There are still some things to fix (ie section numbers)
 but in general the document is ok.

 I can't see any error message although I got a lot of Overfull \hbox...
 and Underfull \hbox... messages.

 What can be the reason?
Something like a missed \stoptext , i.e.
\starttext
..
..
%\stoptext

A good strategy is to move \stoptext from bottom to up next to
\starttext  until  a correct compilation.

-- 
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-03 Thread Wolfgang Schuster

Am 03.06.2012 um 01:17 schrieb Pablo Rodríguez:

 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?

You foot now “paragraph=yes”.

\setupnote[footnote][paragraph=yes]
\setupnotation[footnote][display=no,alternative=serried]

\starttext \showframe
\dorecurse{5}{foot\footnote{note} }
\stoptext

 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.

No, that’s wrong. When you have to \blank one after another only the bigger
value is used and the other one is ignored. In the following example
the space between the two frames is 2 lines and not 3 lines because
the smaller value is ignored. It’s possible to add up both value or to
ignore the previous/next value but in this case you need an additional
keyword for \blank.

\defineframedtext[test][width=broad,align=middle]

\starttext \showgrid

\starttest[before={\blank[line]},after={\blank[2*line]}]
One
\stoptest

\starttest[before={\blank[line]},after={\blank[2*line]}]
One
\stoptest

\blank[4*line]

\starttest[before={\blank[2*line]},after={\blank[line]}]
One
\stoptest

\starttest[before={\blank[2*line]},after={\blank[line]}]
One
\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] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Wolfgang Schuster

Am 02.06.2012 um 20:13 schrieb 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?


Add \definebodyfontenvironment:

\definebodyfontenvironment[42pt]
\starttext
\setupbodyfont[42pt]
\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] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Philipp Gesang
Hi Wolfgang!

···date: 2012-06-03, Sunday···from: Wolfgang Schuster···

 Am 02.06.2012 um 20:13 schrieb 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?
 
 
 Add \definebodyfontenvironment:
 
 \definebodyfontenvironment[42pt]
 \starttext
 \setupbodyfont[42pt]
 \stoptext

This is getting interesting now. I already do as you say, but a
bit differently: I’m defining font sizes on the fly, however they
are created from dimensions, so my macros actually expand to
something like:


\definebodyfontenvironment[42.0pt] %% a dozen times
\starttext
\switchtobodyfont[42.0pt]  %% hundreds of times
%\switchtobodyfont[42pt]   %% - this works, though
foo
\stoptext


Which then results in this warning:

fontsbodyfont 42.0pt is defined (can better be done global)


Although the size has been „defined“. My problem appears to be
that I’m abusing dimensions as makeshift floats to calculate
relative font sizes, interlinespace etc. via \dimexpr. Hadn’t
thought about \switchtobodyfont expecting integers.

TeX number types can be confusing.

Thanks for the advice. Best regards
Philipp


 
 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
 ___

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


pgp6Ig6fndjnJ.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-03 Thread Alan Bowen
I have been following this with some interest, since I am having a similar
problem with the vertical spacing between notes in MKII.

In

\setupfootnotes[conversion=numbers,
way=bytext,location=page,rule=on,bodyfont=9.6pt,
style=normal,after={\blank[3pt]}]
\starttext

This is
\footnote{abcde.} a test
\footnote{ABCDE.} line with
\footnote{GHIJK.} footnotes.
\footnote{ghijk.}

\stoptext

I am finding that adjusting “before” and “after” affects the placement of
notes on a given page as a block, but leaves the spacing between the notes
on the list unchanged. So, is there a way to adjust the vertical spacing *
between* notes in MKII?

Alan

On Sun, Jun 3, 2012 at 4:26 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 03.06.2012 um 01:17 schrieb Pablo Rodríguez:

  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?

 You foot now “paragraph=yes”.

 \setupnote[footnote][paragraph=yes]
 \setupnotation[footnote][display=no,alternative=serried]

 \starttext \showframe
 \dorecurse{5}{foot\footnote{note} }
 \stoptext

  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.

 No, that’s wrong. When you have to \blank one after another only the bigger
 value is used and the other one is ignored. In the following example
 the space between the two frames is 2 lines and not 3 lines because
 the smaller value is ignored. It’s possible to add up both value or to
 ignore the previous/next value but in this case you need an additional
 keyword for \blank.

 \defineframedtext[test][width=broad,align=middle]

 \starttext \showgrid

 \starttest[before={\blank[line]},after={\blank[2*line]}]
 One
 \stoptest

 \starttest[before={\blank[line]},after={\blank[2*line]}]
 One
 \stoptest

 \blank[4*line]

 \starttest[before={\blank[2*line]},after={\blank[line]}]
 One
 \stoptest

 \starttest[before={\blank[2*line]},after={\blank[line]}]
 One
 \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

 ___

___
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-03 Thread Wolfgang Schuster

Am 03.06.2012 um 15:26 schrieb Alan Bowen:

 I have been following this with some interest, since I am having a similar 
 problem with the vertical spacing between notes in MKII.
 
 In
 
 \setupfootnotes[conversion=numbers, 
   way=bytext,location=page,rule=on,bodyfont=9.6pt,
   style=normal,after={\blank[3pt]}]
 \starttext 
 
 This is
 \footnote{abcde.} a test
 \footnote{ABCDE.} line with
 \footnote{GHIJK.} footnotes.
 \footnote{ghijk.}
 
 \stoptext
 
 I am finding that adjusting “before” and “after” affects the placement of 
 notes on a given page as a block, but leaves the spacing between the notes on 
 the list unchanged. So, is there a way to adjust the vertical spacing between 
 notes in MKII?

% engine=pdftex

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

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

2012-06-03 Thread Wolfgang Schuster

Am 03.06.2012 um 12:01 schrieb Philipp Gesang:

 Hi Wolfgang!
 
 ···date: 2012-06-03, Sunday···from: Wolfgang Schuster···
 
 Am 02.06.2012 um 20:13 schrieb 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?
 
 
 Add \definebodyfontenvironment:
 
 \definebodyfontenvironment[42pt]
 \starttext
 \setupbodyfont[42pt]
 \stoptext
 
 This is getting interesting now. I already do as you say, but a
 bit differently: I’m defining font sizes on the fly, however they
 are created from dimensions, so my macros actually expand to
 something like:
 
 
 \definebodyfontenvironment[42.0pt] %% a dozen times
 \starttext
 \switchtobodyfont[42.0pt]  %% hundreds of times
 %\switchtobodyfont[42pt]   %% - this works, though
 foo
 \stoptext
 
 
 Which then results in this warning:
 
 fontsbodyfont 42.0pt is defined (can better be done global)
 
 
 Although the size has been „defined“. My problem appears to be
 that I’m abusing dimensions as makeshift floats to calculate
 relative font sizes, interlinespace etc. via \dimexpr.

???

 Hadn’t thought about \switchtobodyfont expecting integers.


Don’t know what’s the problem but the message doesn’t appear
when you use for example 42.1pt.

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] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Philipp Gesang
Hi Wolfgang!

···date: 2012-06-03, Sunday···from: Wolfgang Schuster···
  
  \definebodyfontenvironment[42.0pt] %% a dozen times
  \starttext
  \switchtobodyfont[42.0pt]  %% hundreds of times
  %\switchtobodyfont[42pt]   %% - this works, though
  foo
  \stoptext
  
  
  Which then results in this warning:
  
  fontsbodyfont 42.0pt is defined (can better be done global)
  
  
  Although the size has been „defined“. My problem appears to be
  that I’m abusing dimensions as makeshift floats to calculate
  relative font sizes, interlinespace etc. via \dimexpr.
 
 ???

It’s about decrementing font size and interlinespace until the
content fits a predefined box.
https://bitbucket.org/phg/context-stellen/src/3568dc7470fa/tex/context/third/bstellen/t-bibelstellen.mkiv#cl-158

  Hadn’t thought about \switchtobodyfont expecting integers.
 
 Don’t know what’s the problem but the message doesn’t appear
 when you use for example 42.1pt.

That’s odd. But this way it seems to do the right thing as
performance improves drastically (as much as 30%).

Thanks
Philipp

 
 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
 ___

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


pgpG2TJd2MLGh.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] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Wolfgang Schuster

Am 03.06.2012 um 16:27 schrieb Philipp Gesang:

 Hi Wolfgang!
 
 ···date: 2012-06-03, Sunday···from: Wolfgang Schuster···
 
 \definebodyfontenvironment[42.0pt] %% a dozen times
 \starttext
 \switchtobodyfont[42.0pt]  %% hundreds of times
 %\switchtobodyfont[42pt]   %% - this works, though
 foo
 \stoptext
 
 
 Which then results in this warning:
 
 fontsbodyfont 42.0pt is defined (can better be done global)
 
 
 Although the size has been „defined“. My problem appears to be
 that I’m abusing dimensions as makeshift floats to calculate
 relative font sizes, interlinespace etc. via \dimexpr.
 
 ???
 
 It’s about decrementing font size and interlinespace until the
 content fits a predefined box.
 https://bitbucket.org/phg/context-stellen/src/3568dc7470fa/tex/context/third/bstellen/t-bibelstellen.mkiv#cl-158


Look at the definition for \FittingText in supp-fun.mkiv:

\starttext
\ruledvbox{\FittingText{\hsize}{100pt}{Serif}{16pt}{1pt}{1}{\raggedright\input 
knuth\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
___


Re: [NTG-context] Process stops

2012-06-03 Thread Alfredo Catalina
On Sun, Jun 3, 2012 at 10:19 AM, luigi scarso
luigi.scarso@??? wrote:

 Something like a missed \stoptext , i.e.
 \starttext
 ..
 ..
 %\stoptext

 A good strategy is to move \stoptext from bottom to up next to
 \starttext until a correct compilation


You are right. There was a \stoptext  missing. 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] space between footnotes

2012-06-03 Thread Alan Bowen
Perfect, Wolfgang. Many thanks again!

Alan


On Sun, Jun 3, 2012 at 9:54 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 03.06.2012 um 15:26 schrieb Alan Bowen:

 I have been following this with some interest, since I am having a similar
 problem with the vertical spacing between notes in MKII.

 In

 \setupfootnotes[conversion=numbers,
 way=bytext,location=page,rule=on,bodyfont=9.6pt,
  style=normal,after={\blank[3pt]}]
 \starttext

 This is
 \footnote{abcde.} a test
 \footnote{ABCDE.} line with
 \footnote{GHIJK.} footnotes.
 \footnote{ghijk.}

 \stoptext

 I am finding that adjusting “before” and “after” affects the placement of
 notes on a given page as a block, but leaves the spacing between the notes
 on the list unchanged. So, is there a way to adjust the vertical spacing *
 between* notes in MKII?


 % engine=pdftex

 \setupnotedefinition[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

 ___

___
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-03 Thread Hans Hagen

On 3-6-2012 16:27, Philipp Gesang wrote:


That’s odd. But this way it seems to do the right thing as
performance improves drastically (as much as 30%).


a bodyfont is a collection of related fonts / sizes and when such a set 
is defined first inside a group you potentially end up with many 
(redundant) definitions .. this is why a bodyfont environment has to be 
defined at the outer level (as wolfgang pointed out)


\tracefontdefinitions

sometimes gives some insight in efficiency

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
___


[NTG-context] Caption next to figure

2012-06-03 Thread Andy Thomas
Hello all,

I am trying to convert a document with a lot of small figures in the margin 
into a more kindle friendly format. In order to do that, I want to have a small 
figure in the text with an adjacent figure caption. How can I achieve that? I 
attached an example and a link how it is supposed to look like.

\useMPlibrary[dum]

\starttext
\input tufte

\startplacefigure[title={A rectangle with a caption.}]
  \externalfigure[dummy][width=0.5\textwidth]
\stopplacefigure

\input knuth
\stoptext

Andy


https://dl.dropbox.com/u/9089117/small_figure_context.png
___
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] Caption next to figure

2012-06-03 Thread Marco
On 2012-06-03 Andy Thomas andytho...@web.de wrote:

 I want to have a small figure in the text with an adjacent figure
 caption. How can I achieve that?

\setupcaptions [figure] [location=right]


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
___


Re: [NTG-context] Caption next to figure

2012-06-03 Thread Andy Thomas
Thank you. Can I have the bottom of the caption in line with the bottom of the 
figure instead of centered?

Andy

On Jun 3, 2012, at 7:48 PM, Marco wrote:

 On 2012-06-03 Andy Thomas andytho...@web.de wrote:
 
 I want to have a small figure in the text with an adjacent figure
 caption. How can I achieve that?
 
 \setupcaptions [figure] [location=right]
 
 
 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
 ___

___
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] Caption next to figure

2012-06-03 Thread Wolfgang Schuster

Am 03.06.2012 um 20:44 schrieb Andy Thomas:

 Thank you. Can I have the bottom of the caption in line with the bottom of 
 the figure instead of centered?

\setupcaption[figure][location={right,low}]

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] Caption next to figure

2012-06-03 Thread Andy Thomas
Thank you both, works great now.

Andy



Am 03.06.2012 um 20:56 schrieb Wolfgang Schuster 
schuster.wolfg...@googlemail.com:

 
 Am 03.06.2012 um 20:44 schrieb Andy Thomas:
 
 Thank you. Can I have the bottom of the caption in line with the bottom of 
 the figure instead of centered?
 
 \setupcaption[figure][location={right,low}]
 
 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
___


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

2012-06-03 Thread Philipp Gesang
Hi Hans!

···date: 2012-06-03, Sunday···from: Hans Hagen···

 On 3-6-2012 16:27, Philipp Gesang wrote:
 
 That’s odd. But this way it seems to do the right thing as
 performance improves drastically (as much as 30%).
 
 a bodyfont is a collection of related fonts / sizes and when such a
 set is defined first inside a group you potentially end up with many
 (redundant) definitions .. this is why a bodyfont environment has to
 be defined at the outer level (as wolfgang pointed out)
 
 \tracefontdefinitions

Nice forensics tool.

With this I can see plainly that, as reported by Wolfgang,
\definebodyfontenvironment[42.0pt] results in the dimension’s
decimal place to be stripped before font definition.

Which makes me wonder whether \switchtobodyfont should do a
\normalizebodyfontsize on the #specification before triggering
the switch? So that 42.0pt be interpreted as 42pt? Now that I’m
aware of it I can as well build that into my macros either ...

Regards
Philipp


 
 sometimes gives some insight in efficiency
 
 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
 ___

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


pgp5kiJ4slvZN.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] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Philipp Gesang
Hi Wolfgang!

···date: 2012-06-03, Sunday···from: Wolfgang Schuster···

 Am 03.06.2012 um 16:27 schrieb Philipp Gesang:
  It’s about decrementing font size and interlinespace until the
  content fits a predefined box.
  https://bitbucket.org/phg/context-stellen/src/3568dc7470fa/tex/context/third/bstellen/t-bibelstellen.mkiv#cl-158
 
 Look at the definition for \FittingText in supp-fun.mkiv:
 
 \starttext
 \ruledvbox{\FittingText{\hsize}{100pt}{Serif}{16pt}{1pt}{1}{\raggedright\input
  knuth\par}}
 \stoptext

That’s the only thing that bothers me about Context: whenever you
come across a neat problem you think you should go about
implementing, you can be dead sure there’s already a
full-fledged, highly optimized solution in the core somwhere.
(Unless, of course, it’s something related to bibliography ;-) .)

On a more serious note: thanks for the pointer, this is good
reading! All the camel casing makes it look oldish, though.

Philipp



 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
 ___

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


pgph5iPTc3ZGg.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-03 Thread Steve Peter

On Jun 3, 2012, at 3:04 AM, Alfredo Catalina wrote:

 This is a workaround for the meantime:
  
 - Download the free True Type font Zapf Dingbats BT from 
 http://www.com/fonts/zapf-dingbats-bt.html

Beware of sites like this. There are many commercial fonts there. 

Steve

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