Re: [NTG-context] Columns and figures in MKIV

2011-06-30 Thread Willi Egger
Columnsets provide you the possibility to place column spanning pictures:

Willi

\definecolumnset[Doublecoltext][n=2,balance=no]
\setupcolumnset[Doublecoltext][2][distance=5mm]
\starttext
\startcolumnset[Doublecoltext]
\chapter[chap:testing]{Testing}


\input knuth

%\startpostponing
 \placefigure
   [btlr][fig:foo]
   {none}
   {\externalfigure[mill][width=1.5\textwidth,height=5cm]}
%\stoppostponing

\input tufte

\input knuth

\input tufte

\input knuth

\input tufte

\stopcolumnset
\stoptext



On 30 Jun 2011, at 01:24, Jason Earl wrote:

> \starttext
> \startcolumns
> \chapter[chap:testing]{Testing}
> 
> \startcolumns[n=2, tolerant=verytolerant]
> \input knuth
> 
> %\startpostponing
>  \placefigure
>[center][fig:foo]
>{none}
>{\externalfigure[foo][]
>  [width=1.5\textwidth]}
> %\stoppostponing
> 
> \input tufte
> 
> \input knuth
> 
> \input tufte
> 
> \input knuth
> 
> \input tufte
> 
> \stopcolumns
> \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] [OT] PDF/A-2 formalized ?

2011-06-30 Thread luigi scarso
It seems so:
http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=50655

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


[NTG-context] Missing space between digit and unit with the new unit-command

2011-06-30 Thread yoraxe
Hey,

I was happy to have a new (and easier) unit-command, but now I miss the
space that was between the digits and the unit in the unit-module.

I attach the old (unit1) and new variant (unit2) with tex- and pdf-files.

Do I type it in a wrong way or is it possible to fix this?

Thanks,

Yoraxe


unit1.pdf
Description: Adobe PDF document
\usemodule[units]

\starttext
$35\Kilo\Gram\Cubic\Meter$
\stoptext


unit2.pdf
Description: Adobe PDF document
\starttext
$35\unit{kilo gram cubic meter}$
\blank
$35\unit{kgm^3}$
\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] ConTeXt Command Differences between Tex Live and Minimals

2011-06-30 Thread Raymond LeClair
In general, where do I look to resolve differences between ConTeXt commands 
which work using the Tex Live distribution, but which do not work using the 
Minimals distribution.

I am thinking of switching to the Minimals distribution since I can keep it 
more current, and it appears to resolve a problem hyphenating URLs which 
contain multiple, adjacent hyphens.

Specifically, the command "\inothermargin" is not recognized when using the 
Minimals distribution. While I would appreciate a solution to this issue, I 
would very much appreciate knowing where to look to resolve the issue myself. I 
have consulted the most recent documentation, and searched the ConTeXt wiki.

Tex Live Distribution reports:

MTXrun | current version: 2010.05.24 13:05
This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)

Minimals Distribution reports:

mtx-context | current version: 2011.05.18 18:04
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)

___
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] ConTeXt Command Differences between Tex Live and Minimals

2011-06-30 Thread Mojca Miklavec
On Thu, Jun 30, 2011 at 16:24, Raymond LeClair wrote:
> In general, where do I look to resolve differences between ConTeXt commands 
> which work using the Tex Live distribution, but which do not work using the 
> Minimals distribution.

I'm afraid that the only option is to compare the sources
(tex/gereric/context/base).

(It is not very common that newer version doesn't support an older
command though, while the reverse is often true.)

> Tex Live Distribution reports:
>
> MTXrun | current version: 2010.05.24 13:05
> This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)

You can install TeX Live 2011 if you want to use a more recent version
of ConTeXt.
http://www.tug.org/texlive/pretest.html

Mojca
___
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] ConTeXt Command Differences between Tex Live and Minimals

2011-06-30 Thread Raymond LeClair
Perfect, I can compare sources...here's what I find:

== Tex Live Distribution ==

MTXrun | current version: 2010.05.24 13:05
This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)

# cd /usr/share/texmf/tex/context/base
# grep inothermargin *
page-mar.mkii:\def\inothermargin{\inother}

== Minimals Distribution ==

mtx-context | current version: 2011.05.18 18:04
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)

# cd /opt/context-current/tex/texmf-context/tex/context/base
# grep inothermargin *
page-mar.mkii:\def\inothermargin{\inother}

So it appears that the command "\inothermargin" is defined in both 
distributions. However...

\starttext
\inothermargin{donald}\input knuth
\stoptext

works in Tex Live but not in Minimals.

On Jun 30, 2011, at 10:46 AM, Mojca Miklavec wrote:

> On Thu, Jun 30, 2011 at 16:24, Raymond LeClair wrote:
>> In general, where do I look to resolve differences between ConTeXt commands 
>> which work using the Tex Live distribution, but which do not work using the 
>> Minimals distribution.
> 
> I'm afraid that the only option is to compare the sources
> (tex/gereric/context/base).
> 
> (It is not very common that newer version doesn't support an older
> command though, while the reverse is often true.)
> 
>> Tex Live Distribution reports:
>> 
>> MTXrun | current version: 2010.05.24 13:05
>> This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)
> 
> You can install TeX Live 2011 if you want to use a more recent version
> of ConTeXt.
>http://www.tug.org/texlive/pretest.html
> 
> Mojca
> ___
> 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] ConTeXt Command Differences between Tex Live and Minimals

2011-06-30 Thread Mojca Miklavec
On Thu, Jun 30, 2011 at 17:44, Raymond LeClair wrote:
> Perfect, I can compare sources...here's what I find:
>
> == Tex Live Distribution ==
>
> MTXrun | current version: 2010.05.24 13:05
> This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)
>
> # cd /usr/share/texmf/tex/context/base
> # grep inothermargin *
> page-mar.mkii:\def\inothermargin{\inother}
>
> == Minimals Distribution ==
>
> mtx-context     | current version: 2011.05.18 18:04
> This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)
>
> # cd /opt/context-current/tex/texmf-context/tex/context/base
> # grep inothermargin *
> page-mar.mkii:\def\inothermargin{\inother}
>
> So it appears that the command "\inothermargin" is defined in both 
> distributions. However...
>
> \starttext
> \inothermargin{donald}\input knuth
> \stoptext
>
> works in Tex Live but not in Minimals.

Since you seem to be using MKIV (LuaTeX), you have to ignore entries
with *.mkii files. Only *.tex (if any left at all), *.lua and *.mkiv
are relevant for MKIV. This gives you

page-mar.mkiv:\def\inothermargin{\inother}
page-mar.mkiv:%D \inothermargin{\TestLine{yellow} {x}} test test test \par
page-mar.mkiv:% \input tufte \inothermargin{test} \input tufte

However the file page-mar.mkiv starts with:
\endinput % obsolete, also commented code in anch-pgr.mkiv

You need to ask Hans about the reason.

Mojca
___
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] Using Luatex.

2011-06-30 Thread John Culleton
On Wednesday, June 29, 2011 05:01:29 pm Wolfgang Schuster 
wrote:
> Am 29.06.2011 um 22:50 schrieb John Culleton:
> > Been away for a while. Currently using luatex for 
lightly formatted
> > documents. But I want to use Context for my next job 
(lots of
> > formatting). How do I incorporate luatex and the fonts 
found by luatex
> > in my Context file? And should I use MKII or MKIV?
> 
> John, the question you should ask yourself is if ConTeXt 
is the right tool
> for you.
> 
> What i learnt from you past mails is that you always use 
many macros from
> files which are written for plain TeX instead of 
ConTeXt’s own mechanism.
> When you really want to use ConTeXt then use ConTeXt’s 
commands to change
> the font, the layout and also to produce a index etc.
> 
> 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
> 
___
> 

Understood. I also found a chapter on fonts which I presume 
will go in a manual yet to be written. In that chapter I 
found a \definefont command which should allow me to 
emulate my previous use of the \font commmand. 

In my work I frequently adjust font sizes by tiny 
increments to help fit text better on a specific page etc. 
And customers sometimes want a specific decorative font at 
a specific size. And the \font command is very direct. For 
this reason in both LaTeX and Context I tend to revert to 
the primitive. 

The new task I have in front of me will have a complex 
layout where the features of Context for lists within lists 
etc. will be most useful. And there will be lots of small 
illustrations. So I will do it in Context. 

Thanks as always for the help from this list. 


-- 
John Culleton
Able Indexers and Typesetters
Cover design, Indexing, Interior Layout
___
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] ConTeXt Command Differences between Tex Live and Minimals

2011-06-30 Thread Hans Hagen

On 30-6-2011 5:56, Mojca Miklavec wrote:

On Thu, Jun 30, 2011 at 17:44, Raymond LeClair wrote:

Perfect, I can compare sources...here's what I find:

== Tex Live Distribution ==

MTXrun | current version: 2010.05.24 13:05
This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)

# cd /usr/share/texmf/tex/context/base
# grep inothermargin *
page-mar.mkii:\def\inothermargin{\inother}

== Minimals Distribution ==

mtx-context | current version: 2011.05.18 18:04
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)

# cd /opt/context-current/tex/texmf-context/tex/context/base
# grep inothermargin *
page-mar.mkii:\def\inothermargin{\inother}

So it appears that the command "\inothermargin" is defined in both 
distributions. However...

\starttext
\inothermargin{donald}\input knuth
\stoptext

works in Tex Live but not in Minimals.


Since you seem to be using MKIV (LuaTeX), you have to ignore entries
with *.mkii files. Only *.tex (if any left at all), *.lua and *.mkiv
are relevant for MKIV. This gives you

page-mar.mkiv:\def\inothermargin{\inother}
page-mar.mkiv:%D \inothermargin{\TestLine{yellow} {x}} test test test \par
page-mar.mkiv:% \input tufte \inothermargin{test} \input tufte

However the file page-mar.mkiv starts with:
 \endinput % obsolete, also commented code in anch-pgr.mkiv

You need to ask Hans about the reason.


because all that stuff is reimplemented in typo-mar.mkiv

\inmargin{test}test
\inother {test}test



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Missing space between digit and unit with the new unit-command

2011-06-30 Thread Wolfgang Schuster

Am 30.06.2011 um 14:52 schrieb yoraxe:

> Hey,
> 
> I was happy to have a new (and easier) unit-command, but now I miss the
> space that was between the digits and the unit in the unit-module.

Put the number in the argument of the command.

\starttext
\unit{35 kilogram cubic meter}
\stoptext

@Hans: Can you add a option to replace \cdot with \thinspace, e.g. 
unitseparator=small|medium|...|cdot

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] Missing space between digit and unit with the new unit-command

2011-06-30 Thread yoraxe
Am 30.06.2011 22:43, schrieb Wolfgang Schuster:
> 
> Am 30.06.2011 um 14:52 schrieb yoraxe:
> 
>> Hey,
>>
>> I was happy to have a new (and easier) unit-command, but now I miss the
>> space that was between the digits and the unit in the unit-module.
> 
> Put the number in the argument of the command.
> 
> \starttext
> \unit{35 kilogram cubic meter}
> \stoptext

Ok, thanks, for this minimal example it works. But what do I have to
type instead of

\unit{10^{-3} kilogram cubic meter}

(or
\unit{10^{-3} kgm²}
)

? This does not work for me.
___
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] Bug#606656: MTXrun | resolvers: warning: no lua configuration files found

2011-06-30 Thread Norbert Preining
On Mo, 27 Jun 2011, Stappers wrote:
> The page at http://wiki.contextgarden.net/Debian_installation is updated.

Can someone please update this wiki page?

The new package
context-modules
is now in Debian unstable. So people should install
context context-modules
and if they want
context-nonfree context-doc-nonfree
(the last two might be horrible out of date, sorry)

By now MarkIV is not fully integrated, mtxrun --generate is not run
automatically, but I want to add this in future to the tex-common
trigger action of mktexlsr.

Best wishes

Norbert

Norbert Preiningpreining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094

AMLWCH (n.)
A British Rail sandwich which has been kept soft by being regularly
washed and resealed in clingfilm.
--- Douglas Adams, The Meaning of Liff
___
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] Using Luatex.

2011-06-30 Thread Wolfgang Schuster

Am 30.06.2011 um 18:21 schrieb John Culleton:

> Understood. I also found a chapter on fonts which I presume will go in a 
> manual yet to be written. In that chapter I found a \definefont command which 
> should allow me to emulate my previous use of the \font commmand. 
> In my work I frequently adjust font sizes by tiny increments to help fit text 
> better on a specific page etc. And customers sometimes want a specific 
> decorative font at a specific size. And the \font command is very direct. For 
> this reason in both LaTeX and Context I tend to revert to the primitive.

This is no reason why you have to use \definefont for each font you want to 
use, write a separate typeface for for each of them and switch to it, you can 
also select the size with this method. There are also many ways to influence 
how the lines are broken, see below for a few examples.

\definenarrower
  [adjustmargin]
  [  left=0.1mm,
   middle=0.1mm,
right=0.1mm]

\definefontfeature[default][default][expansion=yes]

\setupbodyfont[palatino,10bp]

\starttext \showframe

\input zapf

\startadjustmargin[10*right]
\input zapf
\stopadjustmargin

\start \setuptolerance[verytolerant,stretch]
\input zapf
\stop

\start \kerncharacters[0.01]
\input zapf
\stop

\start \setupalign[hz]
\input zapf
\stop

\start \switchtobodyfont[9.8bp]
\input zapf
\stop

\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] Missing space between digit and unit with the new unit-command

2011-06-30 Thread Wolfgang Schuster

Am 01.07.2011 um 00:33 schrieb yoraxe:

> Ok, thanks, for this minimal example it works. But what do I have to
> type instead of
> 
> \unit{10^{-3} kilogram cubic meter}
> 
> (or
> \unit{10^{-3} kgm²}
> )
> 
> ? This does not work for me.

It’s “10e-3”, you can find a list a valid input in the manual [1] for the 
\digits
commands which is now included in \unit.

[1] http://www.pragma-ade.com/general/magazines/mag-0003.pdf

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] Cambria: integral sign has wrong size

2011-06-30 Thread Taco Hoekwater

On 06/30/2011 10:46 AM, Julian Becker wrote:

Hello everybody!
I tried doing some math typesetting with Cambria, but somehow the
integral sign comes out somewhat smaller than it should be.
Running the following   in the latest beta produces the  attached pdf.
Does anybody have an idea about what's going wrong here, or how to fix it?


It is a regression (it was ok with older context versions) but I am not
sure what is causing it. The most likely cause is that the metrics
patch to CambriaMath is no longer applied, but I do not quite remember
how to check that.

Best wishes,
Taco
___
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] Cambria: integral sign has wrong size

2011-06-30 Thread Philipp Stephani

Am 20:59, schrieb Julian Becker:

Hello everybody!
I tried doing some math typesetting with Cambria, but somehow the
integral sign comes out somewhat smaller than it should be.
Running the following   in the latest beta produces the  attached pdf.
Does anybody have an idea about what's going wrong here, or how to fix it?

Julian


\usetypescript[cambria]
\setupbodyfont[cambria,10pt]

\startTEXpage
\startformula
\prod_a^b \sum_{n=0}^\infty \int_0^\infty e^{-{\bi\beta}^2}\, {\rm
d}^3{\bi \beta}
\stopformula
\stopTEXpage



This is a known bug in the Cambria font, the size of the big operators 
is not set correctly, but AFAIK ConTeXt already accounts for this by 
applying a custom font patch.

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