Re: [NTG-context] geen beeld (no image)

2011-11-16 Thread Floris van Manen
From the mactex list i get the suggestion to use the MKIV engine for 
typesetting ConTeXt.

When i switch the engine in Texshop i get a complain:


mtxrun  | forcing cache reload
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texlive/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texlive/share/texmf-local/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texlive/share/texmf/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texlive/texmf-local/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texlive/texmf/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/share/texmf-local/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/share/texmf/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texmf-local/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texmf/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texlive/share/texmf-local/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texlive/share/texmf/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texlive/texmf-local/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texlive/texmf/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/share/texmf-local/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/share/texmf/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texmf-local/web2c/texmfcnf.lua'
resolvers   | resolving | unknown configuration file 
'/opt/local/libexec/texmf/web2c/texmfcnf.lua'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | using suffix based filetype 'lua'
resolvers   | resolving | remembered file 'mtx-context.lua'
resolvers   | resolving | using suffix based filetype 'lua'
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'


Any hints as how to solve this ?
Thanks !

.F




On 15 Nov 2011, at 11:27, Floris van Manen wrote:

 After updating my livetex distribution from 2008 to 2011 on my OSX machine, i 
 lost the metapost images in my context document.
 I also tried the live.contextgarden.net but that does not provide any image 
 either ...
 
 \starttext
 \startMPcode
  draw fullcircle scaled 3cm;
 \stopMPcode
 \stoptext
 
 
 Any hints ?
 Thanks!
 
 Floris
 
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \in: incorrect space in example in reference

2011-11-16 Thread Paul Menzel
Dear ConTeXt folks,


in the example for `\in` in the reference [1] there is a space after the
»(«.

\placeformula[eq:pythagoras]
\startformula
  a^2+b^2=c^2
\stopformula

This is explained in \in{Equation (}{)}[eq:pythagoras].

Normally this space is useful since the suffix is something like Table
or Figure.

Can `\in` be used with brackets or does another command have to be
defined/used for that?


Thanks,

Paul


[1] http://wiki.contextgarden.net/Reference/en/in


in.pdf
Description: Adobe PDF document
\starttext
\placeformula[eq:pythagoras]
\startformula
  a^2+b^2=c^2
\stopformula

This is explained in \in{Equation (}{)}[eq:pythagoras].
\stoptext


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] \in: incorrect space in example in reference

2011-11-16 Thread Wolfgang Schuster

Am 16.11.2011 um 10:44 schrieb Paul Menzel:

 Dear ConTeXt folks,
 
 
 in the example for `\in` in the reference [1] there is a space after the
 »(«.
 
\placeformula[eq:pythagoras]
\startformula
  a^2+b^2=c^2
\stopformula
 
This is explained in \in{Equation (}{)}[eq:pythagoras].
 
 Normally this space is useful since the suffix is something like Table
 or Figure.
 
 Can `\in` be used with brackets or does another command have to be
 defined/used for that?

Use \definereferenceformat to create your own command.

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] \in: incorrect space in example in reference

2011-11-16 Thread Mikael P. Sundqvist
Dear Paul,

this used to work:

%%% Start example
\definereferenceformat[eqref][left={(},right={)}]

\starttext
\placeformula[eq:gamma]
\startformula
\Gamma(n+1)=n!
\stopformula
The fundamental formula~\eqref[eq:gamma]\ldots.
\stoptext
%%% Stop example

But with the latest minimals it does not. It gives empty () where
there is supposed to be (1). I hope someone will look into this, since
it would be convenient to get it to work again.

Best regards, Mikael

On Wed, Nov 16, 2011 at 10:44 AM, Paul Menzel
paulepan...@users.sourceforge.net wrote:
 Dear ConTeXt folks,


 in the example for `\in` in the reference [1] there is a space after the
 »(«.

        \placeformula[eq:pythagoras]
        \startformula
          a^2+b^2=c^2
        \stopformula

        This is explained in \in{Equation (}{)}[eq:pythagoras].

 Normally this space is useful since the suffix is something like Table
 or Figure.

 Can `\in` be used with brackets or does another command have to be
 defined/used for that?


 Thanks,

 Paul


 [1] http://wiki.contextgarden.net/Reference/en/in

 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Document with only figures

2011-11-16 Thread Charles

Hi,

I would like to have a document with only figures, something like that:

\starttext
\placefigure[page]{\externalfigure[figure1]}
\placefigure[page]{\externalfigure[figure1]}
\placefloats
\stoptext

The problem is if I don't add some text, no PDF is created. (and this 
text will have its own page).


I was expecting \placefloats to do what I want, but it's not working. 
And \placefigure doesn't have a 'center' option.


Any ideas?

Thanks

Charles
___
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] geen beeld (no image)

2011-11-16 Thread Willi Egger
Hi Floris,

The most intriguing message is the first in the lines hereunder. This 
indicates, that there is no database on which context MKIV depends.

The key to solve this is in  running 'context --generate' (database), followed 
by 'context --make' (formats) from a terminal. - But there might be yet another 
hurdle, I do not know whether the TeXlive installer exports the required 
variables. So first in  the terminal you might try echo $TEXROOT, which should 
return a path.

Kind regards
Willi
On 16 Nov 2011, at 09:02, Floris van Manen wrote:

 mtxrun  | the resolver databases are not present or outdated
 resolvers   | resolving | using suffix based filetype 'lua'
 resolvers   | resolving | using suffix based filetype 'lua'
 resolvers   | resolving | remembered file 'mtx-context.lua'
 resolvers   | resolving | using suffix based filetype 'lua'
 mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

___
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] Document with only figures

2011-11-16 Thread Wolfgang Schuster

Am 16.11.2011 um 12:20 schrieb Charles:

 Hi,
 
 I would like to have a document with only figures, something like that:
 
 \starttext
 \placefigure[page]{\externalfigure[figure1]}
 \placefigure[page]{\externalfigure[figure1]}
 \placefloats
 \stoptext
 
 The problem is if I don't add some text, no PDF is created. (and this text 
 will have its own page).
 
 I was expecting \placefloats to do what I want, but it's not working. And 
 \placefigure doesn't have a 'center' option.
 
 Any ideas?

\starttext
\centerednextbox{\externalfigure[figure1]}
\centerednextbox{\externalfigure[figure2]}
\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] Document with only figures

2011-11-16 Thread Willi Egger
Hi Charles,

If I use your example I get an error. The \placefigure command needs the 
structure \placefigure[page][]{}{\externalfigure[cow]}, where the second pair 
of brackets is optional (here you would place the reference). Default is 
centered

Here the command \placefloats is not necessary to get the floats placed.

Willi
On 16 Nov 2011, at 12:20, Charles wrote:

 Hi,
 
 I would like to have a document with only figures, something like that:
 
 \starttext
 \placefigure[page]{\externalfigure[figure1]}
 \placefigure[page]{\externalfigure[figure1]}
 \placefloats
 \stoptext
 
 The problem is if I don't add some text, no PDF is created. (and this text 
 will have its own page).
 
 I was expecting \placefloats to do what I want, but it's not working. And 
 \placefigure doesn't have a 'center' option.
 
 Any ideas?
 
 Thanks
 
 Charles
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] textbackground broken?

2011-11-16 Thread Hans van der Meer
Is textbackground broken in mkiv? I need its usage (it seems the recommended 
way to do backgrounds).
The following minimal example fails.
Who is wrong? Is it me or is it ConTeXt?

ConTeXt  ver: 2011.11.04 14:15 MKIV  fmt: 2011.11.13  int: english/english

% Testing textbackground
\setuppapersize[A6]A6]
\definetextbackground[testbg][%
background=color,backgroundcolor=yellow,%
leftoffset=0pt,rightoffset=0pt,topoffset=0pt,bottomoffset=0pt,frame=on]
\starttext
\input tufte

\starttestbg
\input tufte
\stoptestbg

\input tufte
\stoptext

The error messages are:

metapost initializing instance 'metafun' using format 'metafun'
metapost loading 'metafun': 
/Users/hans/TeX/context/tex/texmf-context/metapost/context/base/metafun.mpiv
! terminal: ! Enormous number has been reduced.
* ...6.0pt ;  ;   ; prepare_multi_pars(2,2330878
  ,22629721,0,683329,265737,...

! Enormous number has been reduced.
* ...;   ; prepare_multi_pars(2,2330878,22629721
  ,0,683329,265737,2,5629963...

..
..


inserted text ...ainTextArea; ]===], false)}
  
\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
  \egroup \placeMPgraphic \d...
\useMPpositiongraphic ...tartMPcode #3\stopMPcode 
  \egroup 
\doMPpositiongraphic ...riables \getvalue {MPG:#1}
  }
\doMPpositiongraphic ...fined {MPG:#1}\donothing }
  \removelastspace }\smashbo...
\dohandleMPpositiongraphicrange ...raphic {#3}{#4}
  \fi \fi 
...
l.14 \stoptext

Hans van der Meer



___
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] geen beeld (no image)

2011-11-16 Thread Floris van Manen
W.


On 16 Nov 2011, at 12:25, Willi Egger wrote:

 
 The key to solve this is in  running 'context --generate' (database), 
 followed by 'context --make' (formats) from a terminal.

What would be the full command line on OSX Lion ?
e.g. where do (database) and (formats) stand for ?



 - But there might be yet another hurdle, I do not know whether the TeXlive 
 installer exports the required variables. So first in  the terminal you might 
 try echo $TEXROOT, which should return a path.

the echo $TEXROOT is empty


.F

___
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] Document with only figures

2011-11-16 Thread Charles

Hi Willi,

Sorry for the mistakes. But the default in centered horizontally but not 
vertically on the page, and I would like to have this.


Charles

Le 16/11/2011 12:40, Willi Egger a écrit :

Hi Charles,

If I use your example I get an error. The \placefigure command needs the 
structure \placefigure[page][]{}{\externalfigure[cow]}, where the second pair 
of brackets is optional (here you would place the reference). Default is 
centered

Here the command \placefloats is not necessary to get the floats placed.

Willi
On 16 Nov 2011, at 12:20, Charles wrote:


Hi,

I would like to have a document with only figures, something like that:

\starttext
\placefigure[page]{\externalfigure[figure1]}
\placefigure[page]{\externalfigure[figure1]}
\placefloats
\stoptext

The problem is if I don't add some text, no PDF is created. (and this text will 
have its own page).

I was expecting \placefloats to do what I want, but it's not working. And 
\placefigure doesn't have a 'center' option.

Any ideas?

Thanks

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



___
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] Document with only figures

2011-11-16 Thread Charles

Hi Wolfgang,

Thanks for your reply. But I would like to have a figure (with 
placefigure) and the centerednextbox doesn't center vertically.


Charles

Le 16/11/2011 12:26, Wolfgang Schuster a écrit :


Am 16.11.2011 um 12:20 schrieb Charles:


Hi,

I would like to have a document with only figures, something like that:

\starttext
\placefigure[page]{\externalfigure[figure1]}
\placefigure[page]{\externalfigure[figure1]}
\placefloats
\stoptext

The problem is if I don't add some text, no PDF is created. (and this text will 
have its own page).

I was expecting \placefloats to do what I want, but it's not working. And 
\placefigure doesn't have a 'center' option.

Any ideas?


\starttext
\centerednextbox{\externalfigure[figure1]}
\centerednextbox{\externalfigure[figure2]}
\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Edid of reference in Wiki (was: \in: incorrect space in example in reference)

2011-11-16 Thread Paul Menzel
Dear ConTeXt folks,


Am Mittwoch, den 16.11.2011, 11:20 +0100 schrieb Wolfgang Schuster:
 Am 16.11.2011 um 10:44 schrieb Paul Menzel:

  in the example for `\in` in the reference [1] there is a space after the
  »(«.
  
 \placeformula[eq:pythagoras]
 \startformula
   a^2+b^2=c^2
 \stopformula
  
 This is explained in \in{Equation (}{)}[eq:pythagoras].
  
  Normally this space is useful since the suffix is something like Table
  or Figure.
  
  Can `\in` be used with brackets or does another command have to be
  defined/used for that?
 
 Use \definereferenceformat to create your own command.

to correct this in the reference do I just edit the Wiki article or is
the reference automatically created?


Thanks,

Paul


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] Document with only figures

2011-11-16 Thread Wolfgang Schuster

Am 16.11.2011 um 13:26 schrieb Charles:

 Hi Wolfgang,
 
 Thanks for your reply. But I would like to have a figure (with placefigure) 
 and the centerednextbox doesn't center vertically.


Sorry but I used the wrong command, this works:

\starttext
\centerbox{\externalfigure[cow]}
\centerbox{\externalfigure[mill]}
\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] Document with only figures

2011-11-16 Thread Charles
I put the \placefigure (w/o the page option) of the first figure inside 
a \centerbox and it's working.


Thank you very much for your help.

Charles

Le 16/11/2011 13:37, Wolfgang Schuster a écrit :


Am 16.11.2011 um 13:26 schrieb Charles:


Hi Wolfgang,

Thanks for your reply. But I would like to have a figure (with placefigure) and 
the centerednextbox doesn't center vertically.



Sorry but I used the wrong command, this works:

\starttext
\centerbox{\externalfigure[cow]}
\centerbox{\externalfigure[mill]}
\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] Arabic

2011-11-16 Thread Khaled Hosny
On Tue, Nov 15, 2011 at 10:13:24PM +0100, dont.spam.no.d...@gmail.com wrote:
 Dear all,
 
 I'm having a hard time to get context typeset arabic words with ligatures,
 or say, to some order1 according to page 7 of:
 http://luatex.org/talks/print-orientaltex-eurotex-2009.pdf.
 
 I'm using:
 ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.8.15  int: english/english
 
 I've put up this minimal example where the font used is amiri from:
 http://sourceforge.net/projects/amiri/files/
 and more precisely amiri-regular.ttf therein.
 
 Any hint as to what I should do to get (at least the lam-alef ligature)?

Works here, I get both ligatures (though they are implemented in this
particular font as contextual forms not ligatures in the technical
sense).

If you are running recent enough version of ConTeXt (e.g. minimals) this
can be simplified to:

\mainlanguage[arabic]

\definefont[ArabicFont][name:amiri*arabic at 24pt] % or 
file:amiri-regular.ttf*...

\starttext
\setupalign[r2l]
\ArabicFont
لا في 
\stoptext

Regards,
 Khaled
___
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] Floating picture in margin with no interference with text/sections

2011-11-16 Thread Mikael P. Sundqvist
Dear list,

I use mkiv which was installed today. Two questions.

1) Is it possible to put floating pictures in the margin without
locking them in the current section? See the following example:

%%% Start example
\setuplayout[
rightmargin=5cm,
width=fit,
]

%\setuphead[section][
%aligntitle=float,
%]

\starttext
\showframe
\section{This is a short section}
It contains one figure.
\placefigure[inright,top][none]{A caption.}{\externalfigure[cow][width=4cm]}
\section{This is another short section}
It contains the same figure.
\placefigure[inright,top][none]{A
caption.}{\externalfigure[cow][width=4cm,height=6cm]}

\section{This is a third section}
\input knuth
\stoptext
%%% Stop example

The result is given by
http://tmp.oblandat.se/fig1.pdf
If I uncomment (what I thought was the solution) the \setuphead part I get
http://tmp.oblandat.se/fig2.pdf
which looks better, but not as I want it. I want the sections and the
text to look just as if there were no figures at all, and I want the
figures to be stacked in the margin, the first one at the top of the
margin, and the second one just below the first one. Is this possible?

2) If I really must not want a new page right after a section head
(this happens in my long document, but no minimal example is given),
is there any penalty or something i can set? This happens fairly often
with the standard setup, it seems.

Best regards, Mikael
___
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] geen beeld (no image)

2011-11-16 Thread Willi Egger
Floris,

On 16 Nov 2011, at 13:12, Floris van Manen wrote:

 W.
 
 
 On 16 Nov 2011, at 12:25, Willi Egger wrote:
 
 
 The key to solve this is in  running 'context --generate' (database), 
 followed by 'context --make' (formats) from a terminal.
 
 What would be the full command line on OSX Lion ?
 e.g. where do (database) and (formats) stand for ?

context --generate

then

context --make


 
 
 
 - But there might be yet another hurdle, I do not know whether the TeXlive 
 installer exports the required variables. So first in  the terminal you 
 might try echo $TEXROOT, which should return a path.
 
 the echo $TEXROOT is empty

This is very bad in the sense, that a terminal does not have the required 
environmental variables set. - Here my knowledge ends, due to the fact that I 
do not use TeXlive. I exclusively use the ConTeXt suite a.k.a. the minimals.

May be the TeXlive installer provides an option to run the above mentioned 
commands?
May be that Mojca knows more about this?

Kind regards

Willi

 
 
 .F
 
 ___
 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] geen beeld (no image)

2011-11-16 Thread Floris van Manen
W.

After installing the standalone context version, i managed to link the texshop 
to that installation and things are drawing again.
Maybe i can remove the livetex2011 now as i'm using context + metapost only ...
Thanks!

.F



On 16 Nov 2011, at 16:43, Willi Egger wrote:

 Floris,
 
 On 16 Nov 2011, at 13:12, Floris van Manen wrote:
 
 W.
 
 
 On 16 Nov 2011, at 12:25, Willi Egger wrote:
 
 
 The key to solve this is in  running 'context --generate' (database), 
 followed by 'context --make' (formats) from a terminal.
 
 What would be the full command line on OSX Lion ?
 e.g. where do (database) and (formats) stand for ?
 
 context --generate
 
 then
 
 context --make
 
 
 
 
 
 - But there might be yet another hurdle, I do not know whether the TeXlive 
 installer exports the required variables. So first in  the terminal you 
 might try echo $TEXROOT, which should return a path.
 
 the echo $TEXROOT is empty
 
 This is very bad in the sense, that a terminal does not have the required 
 environmental variables set. - Here my knowledge ends, due to the fact that I 
 do not use TeXlive. I exclusively use the ConTeXt suite a.k.a. the minimals.
 
 May be the TeXlive installer provides an option to run the above mentioned 
 commands?
 May be that Mojca knows more about this?
 
 Kind regards
 
 Willi
 
 
 
 .F
 
 ___
 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
 ___

___
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 with citation layout.

2011-11-16 Thread Christian
Dear list,

I need the help of a BibTeX/citation module expert. I want to modify the 
appearance of @INBOOK entries.
Currently they look like this (apa-de style):

author (year) _booktitle_, Chapter chaptertitle, pages, publisher, edition.

What I'm aming for is this:

author (year) _chaptertitle_, In editor (Edt.): _booktitle_, pages, publisher, 
edition.

Where chaptertitle refers to the title of the chapter (usually some sort of 
article or essay), very similar to arttitle.

Is there a way to accomplish this? Or is the INBOOK entry not meant to do this?
I'm especially having trouble to get the editor to show up (let alone having 
In  in front of it). Does editor and author conflict here?

Thank you for you 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] Arabic

2011-11-16 Thread dont . spam . no . dont
Dear Khaled,

following your advice, I installed the latest minimals (2011.11.14)
instead of the Debian
packaged version (2011.05.18, including unstable) and it indeed now
works perfectly.

شكرا جزيلا
Olivier
___
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 with citation layout.

2011-11-16 Thread Pontus Lurcock
On Wed 16 Nov 2011, Christian wrote:

 I need the help of a BibTeX/citation module expert. I want to modify the 
 appearance of @INBOOK entries.
 Currently they look like this (apa-de style):
 
 author (year) _booktitle_, Chapter chaptertitle, pages, publisher, edition.
 
 What I'm aming for is this:
 
 author (year) _chaptertitle_, In editor (Edt.): _booktitle_, pages, 
 publisher, edition.
 
 Where chaptertitle refers to the title of the chapter (usually some sort of 
 article or essay), very similar to arttitle.

I encountered the same problem a while ago and discovered that using
@incollection solves it. (The documentation at
http://www.kfunigraz.ac.at/~binder/texhelp/bibtx-12.html implies that
@inbook only supports a chapter number or page range, rather than a
titled section.) Example:

@incollection{ernst1989anisotropy,
  title = {Averaging of anisotropy of magnetic susceptibility data},
  author = {Ernst, R. E. and Pearce, G. W.},
  booktitle = {Statistical Applications in the Earth Sciences},
  editor = {Agterberg, F. P. and Bonham-Carter, G. F.},
  note = {Paper 89-9},
  pages = {297--305},
  year = {1989},
  publisher = {Geological Survey of Canada}
}

With the default bibliography style this typesets to:

Ernst, R. E. and Pearce, G. W. (1989). Averaging of anisotropy of magnetic
susceptibility data. In Agterberg, F. P. and Bonham-Carter, G. F., editors,
_Statistical Applications in the Earth Sciences_, pages 297–305. Geological
Survey of Canada. Paper 89-9.

Pont
___
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 with citation layout.

2011-11-16 Thread Christian
  I need the help of a BibTeX/citation module expert. I want to modify the
 appearance of @INBOOK entries.
  Currently they look like this (apa-de style):
 
  author (year) _booktitle_, Chapter chaptertitle, pages, publisher, edition.
 
  What I'm aming for is this:
 
  author (year) _chaptertitle_, In editor (Edt.): _booktitle_, pages, 
  publisher,
 edition.
 
  Where chaptertitle refers to the title of the chapter (usually some sort of
 article or essay), very similar to arttitle.
 
 I encountered the same problem a while ago and discovered that using
 @incollection solves it. (The documentation at
 http://www.kfunigraz.ac.at/~binder/texhelp/bibtx-12.html implies that
 @inbook only supports a chapter number or page range, rather than a titled
 section.) Example:
 
 @incollection{ernst1989anisotropy,
   title = {Averaging of anisotropy of magnetic susceptibility data},
   author = {Ernst, R. E. and Pearce, G. W.},
   booktitle = {Statistical Applications in the Earth Sciences},
   editor = {Agterberg, F. P. and Bonham-Carter, G. F.},
   note = {Paper 89-9},
   pages = {297--305},
   year = {1989},
   publisher = {Geological Survey of Canada} }
 
 With the default bibliography style this typesets to:
 
 Ernst, R. E. and Pearce, G. W. (1989). Averaging of anisotropy of magnetic
 susceptibility data. In Agterberg, F. P. and Bonham-Carter, G. F., editors,
 _Statistical Applications in the Earth Sciences_, pages 297–305. Geological
 Survey of Canada. Paper 89-9.

Thanks Pont, that is already helpful to know that others encountered this 
problem, too.

However, @inbook supports a chapter title that is placed with \insertchapter.
So I thought I could put the arttitle in the chapter field and the book title 
in the title field of bibtex.
But I did not manage to get the author and the editor in my layout.

Example:
% Bibtex:
@INBOOK{naunin07,
author ={Dietrich Naunin},
editor = {Dietrich Naunin},
title = {Hybrid-, Batterie- und Brennstoffzellen-Elektrofahrzeuge: 
Technik, Strukturen und Entwicklungen},
chapter = {Elektrische Antriebssysteme},
editor = {Dietrich Naunin},
pages = {20-33},
address = {Renningen},
publisher = {expert-Verlag},
year = {2007},
edition = {4.},
ISBN = {3-8169-2625-8},
}
% Context:
\setuppublicationlayout[inbook]{%
\insertauthors{}{ }{}%
\insertpubyear{(}{). }{\unskip.}%
\insertchapter{\bgroup \it}{\egroup. }{\unskip}%
\inserteditors{In\ }{, editors: }{}%
\inserttitle{\bgroup \it}{\egroup. }{\unskip}%
\insertpages{}{}{}%}

With this I get:

Naunin, Dietrich (2007). _Elektrische Antriebssysteme_. _Hybrid-, Batterie- und 
Brennstoff-
zellen-Elektrofahrzeuge: Technik, Strukturen und Entwicklungen_. 20-33

The editor is not inserted, but the pages are :( This may be a bad example 
since the author of the chapter is the editor, but it's also not working 
anywhere else.



___
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 with citation layout.

2011-11-16 Thread Christian
   I need the help of a BibTeX/citation module expert. I want to modify
   the
  appearance of @INBOOK entries.
   Currently they look like this (apa-de style):
  
   author (year) _booktitle_, Chapter chaptertitle, pages, publisher, 
   edition.
  
   What I'm aming for is this:
  
   author (year) _chaptertitle_, In editor (Edt.): _booktitle_, pages,
   publisher,
  edition.
  
   Where chaptertitle refers to the title of the chapter (usually some
   sort of
  article or essay), very similar to arttitle.
 
  I encountered the same problem a while ago and discovered that using
  @incollection solves it. (The documentation at
  http://www.kfunigraz.ac.at/~binder/texhelp/bibtx-12.html implies that
  @inbook only supports a chapter number or page range, rather than a
  titled
  section.) Example:
 
  @incollection{ernst1989anisotropy,
title = {Averaging of anisotropy of magnetic susceptibility data},
author = {Ernst, R. E. and Pearce, G. W.},
booktitle = {Statistical Applications in the Earth Sciences},
editor = {Agterberg, F. P. and Bonham-Carter, G. F.},
note = {Paper 89-9},
pages = {297--305},
year = {1989},
publisher = {Geological Survey of Canada} }
 
  With the default bibliography style this typesets to:
 
  Ernst, R. E. and Pearce, G. W. (1989). Averaging of anisotropy of
  magnetic susceptibility data. In Agterberg, F. P. and Bonham-Carter,
  G. F., editors, _Statistical Applications in the Earth Sciences_,
  pages 297–305. Geological Survey of Canada. Paper 89-9.
 
 Thanks Pont, that is already helpful to know that others encountered this
 problem, too.
 
 However, @inbook supports a chapter title that is placed with \insertchapter.
 So I thought I could put the arttitle in the chapter field and the book 
 title in
 the title field of bibtex.
 But I did not manage to get the author and the editor in my layout.
 
 Example:
 % Bibtex:
 @INBOOK{naunin07,
   author ={Dietrich Naunin},
   editor = {Dietrich Naunin},
   title = {Hybrid-, Batterie- und Brennstoffzellen-Elektrofahrzeuge:
 Technik, Strukturen und Entwicklungen},
   chapter = {Elektrische Antriebssysteme},
   editor = {Dietrich Naunin},
   pages = {20-33},
   address = {Renningen},
   publisher = {expert-Verlag},
   year = {2007},
   edition = {4.},
   ISBN = {3-8169-2625-8},
 }
 % Context:
 \setuppublicationlayout[inbook]{%
 \insertauthors{}{ }{}%
 \insertpubyear{(}{). }{\unskip.}%
 \insertchapter{\bgroup \it}{\egroup. }{\unskip}% \inserteditors{In\ }{,
 editors: }{}% \inserttitle{\bgroup \it}{\egroup. }{\unskip}%
 \insertpages{}{}{}%}
 
 With this I get:
 
 Naunin, Dietrich (2007). _Elektrische Antriebssysteme_. _Hybrid-, Batterie-
 und Brennstoff-
 zellen-Elektrofahrzeuge: Technik, Strukturen und Entwicklungen_. 20-33
 
 The editor is not inserted, but the pages are :( This may be a bad example
 since the author of the chapter is the editor, but it's also not working
 anywhere else.

OK, I just checked, the editor doesn't even make it into the bbl-file :P

I guess that’s why Wikipedia says author or editor (not both, I guess).
So I guess theres only a non-clean way to do this.
Using incollection (probably better), like you suggested, Pont, or inserting 
the editor in another field an customizing  the inbook appearance.

___
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] Document with only figures

2011-11-16 Thread Wolfgang Schuster

Am 16.11.2011 um 13:42 schrieb Charles:

 I put the \placefigure (w/o the page option) of the first figure inside a 
 \centerbox and it's working.


There are simpler ways to place a caption below the figure:

\setuppairedbox[legend][align=middle]
\starttext
\centerbox{\placelegend{\externalfigure[cow]}{A dutch cow}}
\centerbox{\placelegend{\externalfigure[mill]}{A mill}}
\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] regression? 620 pages limit? (SOLVED)?

2011-11-16 Thread Jon Crump
Dear all

I appear to have run up against a bug discussed last March. I'm newly running:

mtx-context | main context file:
/Users/jjc/context11-11/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2011.11.14 16:17

with a short test file I run:

context --environment=arabtestI.tex --result=tmp arab-testII.xml

and the log concludes thus:

mtx-context | main context file:
/Users/jjc/context11-11/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2011.11.14 16:17

but when I try to do the same thing on my full marked up text:

context --environment=svo-tei.tex --result=tmp svoboda_diary.xml

the log concludes like this:

mtx-context | fatal error: return code: 1

I didn't notice this until I tried to use the --result flag because,
in spite of the 'fatal error', a new pdf (that actually reflected
changes I had made in the environment file) was in fact created using
the name of the xml input: svoboda_diary.pdf. But when I used
--result, a new pdf was created for the short file but not for the
long one. Wondering why, I inspected the log and only then noticed:
mtx-context | fatal error: return code: 1

In the error case the lua stats in the log shows:

mkiv lua stats   result saved in file  - tmp.pdf

but no tmp.pdf file is produced. Instead, svoboda_diary.pdf is
updated; weird huh?

In the discussion on the list Steffan said Taco found the bug
(thanks!): There is a fix luatex rev. 4093. So am I seeing a
regression error here or, as is perfectly possible since I'm out there
beyond the limits of my understanding, am I just doing something wrong
or using the wrong tool?

baffled as usual,
Jon
___
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] regression? 620 pages limit? (SOLVED)?

2011-11-16 Thread Jon Crump
Damn and blast, pasted the wrong copy. for the successful run on the
short file I mentioned, the log reads:

mtx-context | result renamed to: tmp
system  | total runtime: 2.839

apologies,
Jon
___
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
___