Re: [NTG-context] ConTeXt

2010-11-16 Thread Hans Hagen

On 14-11-2010 6:52, Alan Raúl wrote:


Name: Alan Caruanambo Muñoz
City: Cajamarca - Peru

Hello:

ConText
  was using for a while, then stop,
now
  that I've tried to reuse
write my
thesis is that I can not compile
successfully
  though and followed all the steps in
http://wiki.contextgarden.net/Windows_Installation
I remember down mswincontext.zip aver
pragma-ade in which compiled more easily, also wanted
  to know what
the most recent version
of ConTeXt MKIV because they lose
http://minimals.contextgarden.net/pragma/
  is the year 2008, and the installer
ContextMinimalInstall.exe
  fails.

My OS is Windows xp

I wish
my thesis has typography MKIV manual, please
I would like to know what are the sources used in this.

PD: Sorry if you can not really understand the
message, what happens is
I do not
speak English.

Thanks for taking
the time to read my mail and dedicate to it
ConTeXt project.


the big zips have been replaced by minimals on the context garden so you 
need to download the installer from the garden and proceed from there


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] linewidth in a tabular cell

2010-11-16 Thread Herbert Voss
\starttext
\starttabulate[|p|p|]
\NC \the\hsize \NC \the\hsize \NC\NR
\stoptabulate

\the\hsize
\stoptext

is always the same value. How can I get the width inside a tabular cell?

Herbert
___
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] tabulate

2010-11-16 Thread Herbert Voss
is this known, that I need at least one space between the last digit
and a followng \NC?

\starttext

\starttabulate[|g{,}|]
%\NG 100.000,00\NC\NR % error
\NG 100.000,00 \NC\NR
\stoptabulate

\stoptext

Herbert
___
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] tabulate

2010-11-16 Thread Hans Hagen

On 16-11-2010 11:07, Herbert Voss wrote:

is this known, that I need at least one space between the last digit
and a followng \NC?

\starttext

\starttabulate[|g{,}|]
%\NG 100.000,00\NC\NR % error
\NG 100.000,00 \NC\NR
\stoptabulate

\stoptext


yes, think of

\def\NG#1 {...}

so the space is a delimiter


-
  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] Numbering chapters from an arbitrary number

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'd need to start numbering chapters from number 3.

(The previous chapters 1 and 2 were prepared otherwise, I'm to continue.)

Is any parameter mentioned on 
http://wiki.contextgarden.net/Reference/en/setuphead supposed for this?

Or how?

Cheers,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

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

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


Re: [NTG-context] Numbering chapters from an arbitrary number

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... I encountered partial success:

---
\starttext

  \setuphead[chapter][ownnumber=yes]
  \chapter{3}{AAA} % Gives 3. AAA, that's OK

  \setuphead[chapter][ownnumber=no]
  \chapter{BBB} % Gives 2. BBB - this is unwanted - I'd need to get 3. 
BBB...
\stoptext
---

So it seems I'd need to reset an internal counter... The question remains.

Lukas


On Tue, 16 Nov 2010 11:14:39 +0100, Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz wrote:


Hello,

I'd need to start numbering chapters from number 3.

(The previous chapters 1 and 2 were prepared otherwise, I'm to continue.)

Is any parameter mentioned on 
http://wiki.contextgarden.net/Reference/en/setuphead supposed for this?

Or how?



___
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] Numbering chapters from an arbitrary number

2010-11-16 Thread Herbert Voss
Am 16.11.2010 11:48, schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 \starttext
 
   \setuphead[chapter][ownnumber=yes]
   \chapter{3}{AAA} % Gives 3. AAA, that's OK
 
   \setuphead[chapter][ownnumber=no]
   \chapter{BBB} % Gives 2. BBB - this is unwanted - I'd need to get
 3. BBB...
 \stoptext
 ---
 
 So it seems I'd need to reset an internal counter... The question remains.

\starttext

\setupheadnumber[chapter][2]
\chapter{foo}
bar
\chapter{bar}
baz
\stoptext


Herbert
___
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] Numbering chapters from an arbitrary number

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... How easy!

Thanks.

Lukas


\setupheadnumber[chapter][2]
\chapter{foo}
bar
\chapter{bar}
baz
\stoptext


Herbert


___
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] luatex hangs at 100% cpu

2010-11-16 Thread Steffen Wolfrum

Hi,

the current MkIV (ConTeXt  ver: 2010.11.12) seems to have problems 
with start/stopitemize and start/stopcolumns:


mostly it hangs at 100% cpu, sometimes it gives this error massage: 


! Attempt to double-free penalty node 78778, ignored.
\actualshipout ...t \fi \box \shipoutscratchbox }}
  \endgroup \else \message {...
\myshipout ...\@@ppmethod }\gobbleoneargument {#1}
  \setnextrealpageno \afters...
\dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}}
  \the \everyaftershipout \a...
\finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2
  \resetselectiepagina \doin...
\sidefloatoutput ...e \else \finalsidefloatoutput 
  \global \sidefloatvsize \n...
\invokenormaloutputroutine ...\OTRcommand \output 
  \fi 
...
l.1121 
   
? 
Process aborted


Regards,
Steffen
___
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] tabulate with a header

2010-11-16 Thread Herbert Voss
\starttext

\startcolumns
\setuptabulate[header=repeat]
\starttabulatehead
\HL
\NC\em SPALTE 1 \NC\em SPALTE 2\NC\NR\HL
\stoptabulatehead

\starttabulate[|c|c|]
\dorecurse{100}{\NC Die erste Spalte \NC Und die zweite\NC\NR}
\stoptabulate
\stopcolumns
\stoptext

is it possible to get identical headers? This here
looks a bit weired ...

Herbert
___
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] \typefile without breaking long lines

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

is it possible to \setuptyping in the manner that long lines won't be broken?

So to get:

-\textwidth -
a

instead of:

aAA
AA

Thank you in advance.

Regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

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

2010-11-16 Thread Martin Schröder
Hi,
it seems the recent context from TL doesn't work with the latest
luatex from TLcontrib:
--
 tlmgr update --all
cannot contact mirror.ctan.org, returning a backbone server!
tlmgr: package repository http://www.ctan.org/tex-archive/systems/texlive/tlnet
tlmgr: saving backups to /opt/tex/texlive2010/tlpkg/backups
skipping forcibly removed package collection-texworks
context.x86_64-linux: local: 18903, source: 18902 (reverse, keep)
ifplatform: local: 15880, source: 15878 (reverse, keep)
luatex: local: 20016, source: 20014 (reverse, keep)
luatex.x86_64-linux: local: 19406, source: 19402 (reverse, keep)
metapost: local: 18838, source: 18835 (reverse, keep)
metapost.x86_64-linux: local: 19022, source: 19019 (reverse, keep)
tlmgr: no updates available
 tlc update --all
tlmgr: package repository http://tlcontrib.metatex.org/2010
tlmgr: saving backups to /opt/tex/texlive2010/tlpkg/backups
context: local: 20438, source: 20273 (reverse, keep)
expl3: local: 20360, source: 20101 (reverse, keep)
tlmgr: no updates available
 context tabulate.tex

MTXrun | warning: engine mismatch (luv: This is LuaTeX, Version
beta-0.63.0-2010090921  bin: This is LuaTeX, Version
beta-0.64.0-2010111216), forcing remake
MTXrun | running command: luatools --generate cannot open
/opt/tex/texlive2010/texmf-dist/scripts/context/lua/mtx-base.lua: No
such file or directory

MTXrun | running command: luatools --make --compile cont-encannot open
/opt/tex/texlive2010/texmf-dist/scripts/context/lua/mtx-base.lua: No
such file or directory

MTXrun | run 1: luatex
--fmt=/opt/tex/texlive2010/texmf-cache/luatex-cache/context/ae9f92585f0137e9f36355f6302c5a7a/formats/cont-en
--lua=/opt/tex/texlive2010/texmf-cache/luatex-cache/context/ae9f92585f0137e9f36355f6302c5a7a/formats/cont-en.lui
--backend=pdf ./tabulate.texThis is LuaTeX, Version
beta-0.64.0-2010111216
 \write18 enabled.

(Fatal format file error; I'm stymied)
MTXrun | fatal error: return code: 1
--
Can I fix that at my end or do I have to wait for a new context from
TLC?

Best
   Martin
___
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] The visual counter module

2010-11-16 Thread Mathieu Boespflug
Awesome! I'm sure this will come in handy one day.

-- Mathieu


On Mon, Nov 15, 2010 at 12:16 AM, Aditya Mahajan adit...@umich.edu wrote:
 Hi,

 This is to announce an alpha release of the visual counter module. See
 http://randomdeterminism.wordpress.com/2010/11/14/visualcounter-module/ for
 some examples, in particular
 http://randomdeterminism.files.wordpress.com/2010/11/theorem.pdf

 The idea is to display a counter visually, in the same spirit as
 interactions bars. There is no support for interaction, but, on the plus
 sides, these work for any conter, not just the page counter. The idea of the
 module comes from the counters designed by Thomas as part of the
 simpleslides module.

 The module only works with MkIV because I am using the new namespace code.
 So MkII support is unlikely.

 Anyone else interested in such counters?

 Aditya
 ___
 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] Updating to Beta Builds of ConTeXt / LuaTeX from tlcontrib breaks MacTeX

2010-11-16 Thread Andrew Starks
At Aditya's suggestion, I'm cross-posting this from tex.stackexchange.com

[Executive Summary:

I might be missing something really simple and I might be
overcomplicating something really easy. In short:

1: I installed MacTeX 2010.
2: I updated all packages using the normal trees.
3: I changed my TEXMFHOME variable in
/usr/local/texlive/2010/texmf.cnf to ~/src/texmf, which is where I
keep my custom modules/templates/packages. (This is normally within
our github source control, but hasn't been yet.) and moved the content
from the old directory to the new.
4: I was beating my head against the wall, trying to make font
selection work using typescriptfile/typescript as well as simplefont.
The closest I could get was with simplefont and Palatino spewing
garbage text.
5: I decided to try http://tlcontrib.metatex.org/; with tlmgr using
sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update
-all
6: I sudo texconfig rehashed (seemed okay), sudo mtxrun --generate
(seemed okay). Then I sudo luatools --generate and got something
that ended with  MTXrun | unknown script 'base.lua' or
'mtx-base.lua'
7: Just typing luatools results in: MTXrun | unknown script
'base.lua' or 'mtx-base.lua'
8: I tried editing the two texmfcnf.lua files that I found with:

 return {
content = {
TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
TEXMFHOME  = '~/src/texmf-trms',
},
TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
}

But had no effect.

That is where I'm at right now. Whenever I try to compile, I get:

MTXrun | warning: no format found, forcing remake (commandline driven)
MTXrun | running command: luatools --generate
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'

MTXrun | running command: luatools --make --compile cont-en
MTXrun | unknown script 'base.lua' or 'mtx-base.lua'

MTXrun | error, no format found with name: cont-en, aborting
MTXrun | total runtime: 0.321

The rest of this email is a more verbose description. Hopefully this
helps you and me, as well. (if only in the documentation department.
:))

] /endexecutive summary %:)

Copied then updated from:
http://tex.stackexchange.com/questions/5454/updating-to-beta-builds-of-context-luatex-from-tlcontrib-breaks-mactex


On a fresh install of MacTeX 2010, I was having issues with `mtxrun`
finding fonts and with fonts in general.

I decided to try to dl the betas. In an earlier
question(http://tex.stackexchange.com/questions/5405/switching-to-context-minimals-missing-last-step-for-mactex-2010
(Thanks Kahled!) I found that the ConTeXt minimals were not proper in
this scenario.

So I followed the advice and used this repository. After running:

sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update -all

...I did everything that I could think of to update the system at
various stages (I'm sure not everything was neutral or helpful)...

sudo texconfig rehash
sudo texconfig init
sudo mtxrun --generate
sudo luatools --generate

The last command is the issue, as it generates:

MTXrun | unknown script 'base.lua' or 'mtx-base.lua'

In my search on the interweb, I found that perhaps `texmfcnf.lua`
needed the following:

return {
content = {
TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
TEXMFHOME  = '~/Library/texmf-trms',
},
TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
}

I did this to the file that I located in `/usr/local/texlive/2010/`. I
later found evidence that perhaps another `texmfcnf.lua` file needed
this golden block of code, but I could not find another instance of
this file.

So... whassup? It's a clean install if MacTeX 2010. I wonder what I'm missing.

Once this is solved, I'll post another question about fonts, as I have
yet to get those working with LuaTeX as the engine and `simplefonts`
as the method. `mtxrun` never has anything in its list of fonts
(`mtxrun --script fonts --list --all --pattern=*` or any conceivable
variation) and most font choices don't register at all, or in the odd
case of Palatino, result in garbage text. I have my `OSFONTS` variable
set to `/Library/Fonts`. But alas, for another question. I only post
it here in case the two issues are related.

Thanks everyone!

UPDATE:

I ran `sudo luatex --generate --verbose`

Here is the output:

   MTXrun | resolvers: variable 'SELFAUTOLOC' set to
'/usr/local/texlive/2010/bin/x86_64-darwin'
MTXrun | resolvers: variable 'SELFAUTODIR' set to '/usr/local/texlive/2010/bin'
MTXrun | resolvers: variable 'SELFAUTOPARENT' set to '/usr/local/texlive/2010'
MTXrun | resolvers: variable 'TEXMFCNF' set to ''
MTXrun | resolvers: variable 'TEXMF' set to ''
MTXrun | resolvers: variable 'TEXOS' set to 'bin'
MTXrun | resolvers
MTXrun | resolvers: loading configuration file
'/usr/local/texlive/2010/texmfcnf.lua'
MTXrun | resolvers
MTXrun | resolvers: loading configuration file

[NTG-context] Placing boxes anywhere on the page

2010-11-16 Thread Peter Davis
Is there a way to place a box at some specified x and y position on the
page, and then typeset one or more paragraphs of text into the box?  I guess
I'm thinking of something like LaTeX's minipage, but with the ability to
specify absolute coordinates, rather than just position relative to the
current baseline.

Thank you,

-pd
___
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] Placing boxes anywhere on the page

2010-11-16 Thread Wolfgang Schuster

Am 16.11.2010 um 21:06 schrieb Peter Davis:

 Is there a way to place a box at some specified x and y position on the page, 
 and then typeset one or more paragraphs of text into the box?  I guess I'm 
 thinking of something like LaTeX's minipage, but with the ability to specify 
 absolute coordinates, rather than just position relative to the current 
 baseline.

Use layers (untested):

\definelayer[textbox][width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=textbox]

\def\starttextbox
  {\dosingleargument\dostarttextbox}

\def\dostarttextbox[#1]%
  {\def\stoptextbox{\setlayerframed[textbox][#1]{\getbuffer[textbox]}}%
   \startbuffer[textbox][starttextbox][stoptextbox]}

\starttext

\starttextbox[x=2cm,y=4cm,width=8cm,frame=off]
some text ...

more text ...
\stoptextbox

\starttextbox[x=6cm,y=12cm,width=8cm,frame=off]
another example ...
\stoptextbox

\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] Placing boxes anywhere on the page

2010-11-16 Thread Peter Davis
On Tue, Nov 16, 2010 at 3:22 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 16.11.2010 um 21:06 schrieb Peter Davis:

  Is there a way to place a box at some specified x and y position on the
 page, and then typeset one or more paragraphs of text into the box?  I guess
 I'm thinking of something like LaTeX's minipage, but with the ability to
 specify absolute coordinates, rather than just position relative to the
 current baseline.

 Use layers (untested):

 \definelayer[textbox][width=\paperwidth,height=\paperheight]

 \setupbackgrounds[page][background=textbox]

 \def\starttextbox
  {\dosingleargument\dostarttextbox}

 \def\dostarttextbox[#1]%
  {\def\stoptextbox{\setlayerframed[textbox][#1]{\getbuffer[textbox]}}%
   \startbuffer[textbox][starttextbox][stoptextbox]}

 \starttext

 \starttextbox[x=2cm,y=4cm,width=8cm,frame=off]
 some text ...

 more text ...
 \stoptextbox

 \starttextbox[x=6cm,y=12cm,width=8cm,frame=off]
 another example ...
 \stoptextbox

 \stoptext

 Wolfgang



Thanks, Worfgang!  I just tried this.  I don't see any errors, but I don't
see any PDF either.  Here's the log file:


sorters  setting language 'en'

(layertest.tex
jobcontrol   resuming randomizer with 0.72399060029908
publications: loading formatting style from bxml-apa
(C:/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv)

ConTeXt  ver: 2010.07.30 11:35 MKIV  fmt: 2010.11.9  int: english/english

system  : cont-new loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(C:/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(C:/context/tex/texmf-context/tex/context/user/cont-sys.rme
(C:/context/tex/texmf-context/tex/context/base/type-def.mkiv)
(C:/context/tex/texmf-context/tex/context/base/type-lua.mkiv)
(C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv)
(C:/context/tex/texmf-context/tex/context/base/type-otf.mkiv))
system  : layertest.top loaded
%
% begin of optionfile
%
% % runtime options files (command line driven)
% \unprotect
% % feedback and basic job control
% % handy for special styles
% \startluacode
% document = document or { }
% document.arguments={
% }
% document.files={
% layertest.tex,
% }
% \stopluacode
% % process info
% \setupsystem[inputfile=layertest.tex]
% \setupsystem[\c!n=1,\c!m=1]
% % modes
% % options (not that important)
% \startsetups *runtime:options
% \setupoutput[pdftex]
% \stopsetups
% % styles and modules
% \startsetups *runtime:modules
% \stopsetups
% % done
% \protect \endinput
%
% end of optionfile
%
(layertest.top)
fonts   : preloading latin modern fonts
{C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
bodyfont: 12pt rm is loaded
language: language en is active
systems : begin file layertest.tex at line 12
systems : end file layertest.tex at line 24
system  : cont-err loaded
(C:/context/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) )
mkiv lua stats : used config file  -
C:/context/tex/texmf/web2c/texmfcnf.lua
mkiv lua stats : used cache path   -
C:/context/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c
mkiv lua stats : input load time   - 0.026 seconds
mkiv lua stats : stored bytecode data  - 231 modules, 54 tables, 285
chunks
mkiv lua stats : node list callback tasks  - 6 unique task lists, 4
instances (re)created, 316 calls
mkiv lua stats : cleaned up reserved nodes - 33 nodes, 10 lists of 411
mkiv lua stats : node memory usage - 20 glue_spec
mkiv lua stats : used backend  - pdf (backend for directly
generating pdf output)
mkiv lua stats : loaded patterns   - en::2
mkiv lua stats : callbacks - direct: 425, indirect: 4447,
total: 4872
mkiv lua stats : result saved in file  - layertest.pdf
mkiv lua stats : loaded fonts  - 33 files: stmary10.afm
lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf
lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf
lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf
lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm
eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm
lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm
lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats : fonts load time   - 0.262 seconds
mkiv lua stats : luatex banner - this is luatex, version
beta-0.63.0-2010090921 (web2c 2010) (rev 3873)
mkiv lua stats : control sequences - 

[NTG-context] definition and separation of colors

2010-11-16 Thread Henning Hraban Ramm
I stumpled upon a ambiguous color definition in my automatically  
generated documents:


\definecolor[Custom][c=0,m=1,y=0,k=0,r=0,g=0,b=0,]

I.e. the color is defined in CMYK mode as 100% magenta and in RGB as  
0/0/0 black.
In the PDF the color is shown as black, according to Acrobat's  
preflight defined as RGB 0/0/0; CMYK separation depends on the  
profile, e.g.:

Generic CMYK:76/71/65/81
ISO Coated FOGRA27:  86/85/79/100
Euroscale Coated:95/83/82/90
(I didn't expect the Euroscale Coated profiles to differ that much!)

If I say \setupcolors[rgb=no], I get CMYK 100/100/100/0.
This is not a good separation algorithm - GCR or UCR would be nice,  
but at least RGB 0/0/0 should render as CMYK 0/0/0/100.
(Perhaps you could include something like littleCMS in LuaTeX and even  
deal with images?)


It doesn't change if I define in different order, like  
\definecolor[Custom][r=0,g=0,b=0,c=0,m=1,y=0,k=0,]

I get magenta only if I leave out the RGB values.

It seems that in ConTeXt the RGB definition always takes precedence?  
Is this intended?



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Placing boxes anywhere on the page

2010-11-16 Thread Peter Münster
On Tue, Nov 16 2010, Peter Davis wrote:

 Is there a way to place a box at some specified x and y position on the
 page, and then typeset one or more paragraphs of text into the box?  I guess
 I'm thinking of something like LaTeX's minipage, but with the ability to
 specify absolute coordinates, rather than just position relative to the
 current baseline.

Layers or overlays are certainly the right method. But there is also the
\position macro:

\setupframed[foregroundstyle=\bfc]
\setuppositioning[state=overlay, unit=cm, xoffset=0.5\textwidth,
  yoffset=0.5\textheight]
\starttext
\startpositioning
  \position(0,0){\framed{0,0}}
  \position(-5,-5){\framed{-5,-5}}
  \position(-5,5){\framed{-5,5}}
  \position(5,-5){\framed{5,-5}}
  \position(5,5){\framed{5,5}}
\stoppositioning
\input tufte
\input tufte
\input tufte
\input tufte
\input tufte
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] Placing boxes anywhere on the page

2010-11-16 Thread Wolfgang Schuster

Am 16.11.2010 um 21:32 schrieb Peter Davis:

 Thanks, Worfgang!  I just tried this.  I don't see any errors, but I don't 
 see any PDF either.

Force ConTeXt to produce a page with „\page[empty]“ or „\dontleavehmode\page“ 
when you have enough material for one page or when you’re at the end of your 
document.

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] Placing boxes anywhere on the page

2010-11-16 Thread Peter Davis
Thanks again!  Now I get output,  But text isn't getting composed inside
these boxes.  It's just all output on one line.  I tried a couple of
paragraphs, and just saw the the end of one and the beginning of the next
one one line.

Sorry if there's some obvious remedy for this.  I'm still new to ConTeXt.

Thank you.

-pd


On Tue, Nov 16, 2010 at 3:48 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 16.11.2010 um 21:32 schrieb Peter Davis:

  Thanks, Worfgang!  I just tried this.  I don't see any errors, but I
 don't see any PDF either.

 Force ConTeXt to produce a page with „\page[empty]“ or
 „\dontleavehmode\page“ when you have enough material for one page or when
 you’re at the end of your document.

 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] Placing boxes anywhere on the page

2010-11-16 Thread Peter Davis
On Tue, Nov 16, 2010 at 3:41 PM, Peter Münster pmli...@free.fr wrote:

 On Tue, Nov 16 2010, Peter Davis wrote:

  Is there a way to place a box at some specified x and y position on the
  page, and then typeset one or more paragraphs of text into the box?  I
 guess
  I'm thinking of something like LaTeX's minipage, but with the ability to
  specify absolute coordinates, rather than just position relative to the
  current baseline.

 Layers or overlays are certainly the right method. But there is also the
 \position macro:


Thanks!  I didn't find much in the ConTeXt reference manual on this.  Is
there more info somewhere?

Thank you.

-pd
___
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] Placing boxes anywhere on the page

2010-11-16 Thread Wolfgang Schuster

Am 16.11.2010 um 22:12 schrieb Peter Davis:

 Thanks again!  Now I get output,  But text isn't getting composed inside 
 these boxes.  It's just all output on one line.  I tried a couple of 
 paragraphs, and just saw the the end of one and the beginning of the next one 
 one line.
 
 Sorry if there's some obvious remedy for this.  I'm still new to ConTeXt.

Here is a complete working and tested example:

\definelayer[textbox][width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=textbox]

\def\starttextbox
   {\dosingleargument\dostarttextbox}

\def\dostarttextbox[#1]%
   
{\def\stoptextbox{\setlayerframed[textbox][width=6cm,align=normal,frame=off,#1]{\getbuffer[textbox]}}%
\startbuffer[textbox][starttextbox][stoptextbox]}

\starttext

\starttextbox[x=2cm,y=4cm]
The Earth, as a habitat for animal life, is in old age and
has a fatal illness. Several, in fact. It would be happening
whether humans had ever evolved or not. But our presence is
like the effect of an old-age patient who smokes many packs
of cigarettes per day – and we humans are the cigarettes.
\stoptextbox

\starttextbox[x=6cm,y=12cm,width=8cm]
Thus, I came to the conclusion that the designer of a new
system must not only be the implementer and first
large-scale user; the designer should also write the first
user manual.

The separation of any of these four components would have
hurt \TeX\ significantly. If I had not participated fully in
all these activities, literally hundreds of improvements
would never have been made, because I would never have
thought of them or perceived why they were important.

But a system cannot be successful if it is too strongly
influenced by a single person. Once the initial design is
complete and fairly robust, the real test begins as people
with many different viewpoints undertake their own
experiments. 
\stoptextbox

\page[empty]

\starttextbox[x=4cm,y=6cm,width=8cm,align={right,nothyphenated},frame=on]
The Earth, as a habitat for animal life, is in old age and
has a fatal illness. Several, in fact. It would be happening
whether humans had ever evolved or not. But our presence is
like the effect of an old-age patient who smokes many packs
of cigarettes per day – and we humans are the cigarettes.
\stoptextbox

\page[empty]

\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] Placing boxes anywhere on the page

2010-11-16 Thread Peter Davis
On Tue, Nov 16, 2010 at 4:26 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 16.11.2010 um 22:12 schrieb Peter Davis:

  Thanks again!  Now I get output,  But text isn't getting composed inside
 these boxes.  It's just all output on one line.  I tried a couple of
 paragraphs, and just saw the the end of one and the beginning of the next
 one one line.
 
  Sorry if there's some obvious remedy for this.  I'm still new to ConTeXt.

 Here is a complete working and tested example:



Ah!  Excellent!  Very cool!

Thank you very much.  I really appreciate it.

Best,
-pd
___
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] Placing boxes anywhere on the page

2010-11-16 Thread Hans Hagen

On 16-11-2010 9:41, Peter Münster wrote:

On Tue, Nov 16 2010, Peter Davis wrote:


Is there a way to place a box at some specified x and y position on the
page, and then typeset one or more paragraphs of text into the box?  I guess
I'm thinking of something like LaTeX's minipage, but with the ability to
specify absolute coordinates, rather than just position relative to the
current baseline.


Layers or overlays are certainly the right method. But there is also the
\position macro:

\setupframed[foregroundstyle=\bfc]
\setuppositioning[state=overlay, unit=cm, xoffset=0.5\textwidth,
   yoffset=0.5\textheight]
\starttext
\startpositioning
   \position(0,0){\framed{0,0}}
   \position(-5,-5){\framed{-5,-5}}
   \position(-5,5){\framed{-5,5}}
   \position(5,-5){\framed{5,-5}}
   \position(5,5){\framed{5,5}}
\stoppositioning
\input tufte
\input tufte
\input tufte
\input tufte
\input tufte
\stoptext


So that is still used? (If so, I should look into optimizing and cleanup 
as it's real old code).


-
  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] Placing boxes anywhere on the page

2010-11-16 Thread Peter Münster
On Tue, Nov 16 2010, Peter Davis wrote:

  Layers or overlays are certainly the right method. But there is also the
  \position macro:
 
 Thanks!  I didn't find much in the ConTeXt reference manual on this.  Is
 there more info somewhere?

Not much. A bit is in mp-cb-en.pdf
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] definition and separation of colors

2010-11-16 Thread Hans Hagen

On 16-11-2010 9:37, Henning Hraban Ramm wrote:

I stumpled upon a ambiguous color definition in my automatically
generated documents:

\definecolor[Custom][c=0,m=1,y=0,k=0,r=0,g=0,b=0,]


you should not mix definitions (so, either cmyk or rgb or g of h of hsv 
keys)



It seems that in ConTeXt the RGB definition always takes precedence? Is
this intended?


just a side effect of definitions

when a rgb color is defined, internally conversions to cmyk and gray 
take place and depending on the color space one of them is used


when an cmyk color is defined, 

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
___


Re: [NTG-context] cjk texts in the pdf file which MkIV output sometimes can not be copy rightly

2010-11-16 Thread 李延瑞
2010/9/20 Li Yanrui (李延瑞) liyanrui...@gmail.com:
 2010/9/10 Taco Hoekwater t...@elvenkind.com:
 On 09/10/2010 02:32 PM, Li Yanrui (李延瑞) wrote:

 2010/9/10 Li Yanrui (李延瑞)liyanrui...@gmail.com:

 Hi all,

 For the pdf file which is generated frome the following example, two
 Chinese characters can not be copied rightly when I use simsun.ttc
 font and use *Adobe Reader* to view it. The copy text is displayed as
 the wrong unicode text such as ᨀ.

 It looks like the reader is ignoring the ToUnicode entry in the
 bad case. No idea why, though.


 My friend sent a mail to Ken Lunde who works for adobe systems
 incorporated. He replied:

 [quote]
 I forwarded your email to the Acrobat team for investigation.
 When I copied the body text from the first file, and all of the text
 from the second file, the code points are PUA, specifically Unicode
 Plane 16. The heading text of the first file appears to be encoded
 correctly. I am guessing that this is a PDF producer issue.
 I will keep you posted about what the Acrobat team discovers.
 [/quote]

 In the above, the first file is the tex file of the pdf file which is
 the attachment for my previous mail; the second one is that
 attachment.


Recently Ken Lunde replied again:

 Gu Hua forwarded your email to the Acrobat, which investigated this issue.

 The evidence points toward a malformed or poorly-made ToUnicode table.
 It would be appropriate for Adobe Reader to ignore such a ToUnicode
 table.

 It would be useful to know how the ToUnicode table is made by this PDF
 producer. I know that when making a static ToUnicode mapping resource,
 which uses CMap resource syntax, it is very easy to make an invalid
 one, specifically because CID ranges, when expressed as two-byte
 values, cannot cross first-byte boundaries. Also, UTF-32 (and UTF-8)
 cannot be used directly, and such values must be converted to UTF-16.
 One or both of these issues, if not handles correctly, can result in
 an invalid ToUnicode table.


In fact the text with  fonts such as simsun.ttc can not be copied
rightly but the text with fonts such as AdobeSongStd-Light.otf can be
copied rightly. It seems like that this problem may be related to the
font loading script of mkiv.

-- 
Best regards,

Li Yanrui (李延瑞)
___
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] outdated tiptrick.pdf in TL

2010-11-16 Thread Mojca Miklavec
Hans,

after reading Updating to Beta Builds of ConTeXt / LuaTeX from
tlcontrib breaks MacTeX and
http://tex.stackexchange.com/questions/5405/switching-to-context-minimals-missing-last-step-for-mactex-2010
I have realized that there is almost a sigle file under ConTeXt
documentation in TeX Live:

/usr/local/texlive/2010/texmf-dist/doc/context/document/general/manuals/tiptrick.pdf

And that single file contains outdated information about how to update
and how to generate formats. It might make sense to change at least
that single file with completely misleading information to something
that would make at least some sense.

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] Updating to Beta Builds of ConTeXt / LuaTeX from tlcontrib breaks MacTeX

2010-11-16 Thread Mojca Miklavec
Dear Andrew,

Sorry for top-posting, just a few remarks:

- I don't see anything basically wrong with your procedure.

- I didn't try it yet, but after Taco released luatex 0.64.0 somebody
already pointed out that the current version of ConTeXt is not
compatible with the latest version of LuaTeX. I can roll back the
luatex packages on tlcontrib if needed, but I would prefer to wait for
Taco's response. (He needs to approve any change anyway.) So it might
be that any trouble you experience is a sole consequence of that
incompatibility. But I didn't check anything yet.

- luatools doesn't make much sense in post-TL-2010. It has been
replaced by mtxrun entirely. I thought that luatools would still work
the same way as mtxrun though ... but maybe mtxrun has the same
symptoms.

- Does it help if you replace ~ with /Users/yourname in
texmfcnf.lua? During the ConTeXt conference (and that was more recent
than the current version of ConTeXt) the tilde didn't expand properly
in some cases and I'm still not sure if it works flawlessly now.

- You may also try to install ConTeXt minimals in parallel:

rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
./first-setup.sh
. tex/setuptex

Mojca

On Tue, Nov 16, 2010 at 21:00, Andrew Starks andrew.sta...@trms.com wrote:
 At Aditya's suggestion, I'm cross-posting this from tex.stackexchange.com

 [Executive Summary:

 I might be missing something really simple and I might be
 overcomplicating something really easy. In short:

 1: I installed MacTeX 2010.
 2: I updated all packages using the normal trees.
 3: I changed my TEXMFHOME variable in
 /usr/local/texlive/2010/texmf.cnf to ~/src/texmf, which is where I
 keep my custom modules/templates/packages. (This is normally within
 our github source control, but hasn't been yet.) and moved the content
 from the old directory to the new.
 4: I was beating my head against the wall, trying to make font
 selection work using typescriptfile/typescript as well as simplefont.
 The closest I could get was with simplefont and Palatino spewing
 garbage text.
 5: I decided to try http://tlcontrib.metatex.org/; with tlmgr using
 sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update
 -all
 6: I sudo texconfig rehashed (seemed okay), sudo mtxrun --generate
 (seemed okay). Then I sudo luatools --generate and got something
 that ended with  MTXrun | unknown script 'base.lua' or
 'mtx-base.lua'
 7: Just typing luatools results in: MTXrun | unknown script
 'base.lua' or 'mtx-base.lua'
 8: I tried editing the two texmfcnf.lua files that I found with:

  return {
            content = {
                    TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
                    TEXMFHOME  = '~/src/texmf-trms',
            },
            TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
    }

 But had no effect.

 That is where I'm at right now. Whenever I try to compile, I get:

 MTXrun | warning: no format found, forcing remake (commandline driven)
 MTXrun | running command: luatools --generate
 MTXrun | unknown script 'base.lua' or 'mtx-base.lua'

 MTXrun | running command: luatools --make --compile cont-en
 MTXrun | unknown script 'base.lua' or 'mtx-base.lua'

 MTXrun | error, no format found with name: cont-en, aborting
 MTXrun | total runtime: 0.321

 The rest of this email is a more verbose description. Hopefully this
 helps you and me, as well. (if only in the documentation department.
 :))

 ] /endexecutive summary %:)

 Copied then updated from:
 http://tex.stackexchange.com/questions/5454/updating-to-beta-builds-of-context-luatex-from-tlcontrib-breaks-mactex


 On a fresh install of MacTeX 2010, I was having issues with `mtxrun`
 finding fonts and with fonts in general.

 I decided to try to dl the betas. In an earlier
 question(http://tex.stackexchange.com/questions/5405/switching-to-context-minimals-missing-last-step-for-mactex-2010
 (Thanks Kahled!) I found that the ConTeXt minimals were not proper in
 this scenario.

 So I followed the advice and used this repository. After running:

    sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update -all

 ...I did everything that I could think of to update the system at
 various stages (I'm sure not everything was neutral or helpful)...

    sudo texconfig rehash
    sudo texconfig init
    sudo mtxrun --generate
    sudo luatools --generate

 The last command is the issue, as it generates:

    MTXrun | unknown script 'base.lua' or 'mtx-base.lua'

 In my search on the interweb, I found that perhaps `texmfcnf.lua`
 needed the following:

    return {
            content = {
                    TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
                    TEXMFHOME  = '~/Library/texmf-trms',
            },
            TEXMFCACHE = '~/Library/texlive/2010/texmf-var',
    }

 I did this to the file that I located in `/usr/local/texlive/2010/`. I
 later found evidence that perhaps another `texmfcnf.lua` file needed
 this golden block of code, 

[NTG-context] Zooming in to a specific part of the page

2010-11-16 Thread Aditya Mahajan

Hi,

Is it possible to zoom into a specific part of the page? I am thinking of 
the following scenario. Suppose I have the following document


\setuppapersize[S6][S6]
\starttext
\placefigure[right,none]{\externalfigure[dummy][width=0.3\textwidth]}
\input knuth

\page

\input tufte

\stoptext

I want that when I click on the image, the pdf is zoomed in so that the 
image occupies the full screen[1], and when I click on the zoomed in 
image, it zooms out and I get the previous page view.


How do I achieve this? I am guessing that some javascript magic might be 
needed, but I do not understand the interaction code at all. This feature 
will be pretty handy for presentations.


Thanks
Aditya

[1]: I do not know if the pdf reader knows the screen size. Assuming that 
the screen aspect ratio is the same as the page aspect ratio might be a 
good approximation (at least for presentations).

___
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] Placing boxes anywhere on the page

2010-11-16 Thread Martin Schröder
2010/11/17, Hans Hagen pra...@wxs.nl:
 On 16-11-2010 9:41, Peter Münster wrote:
 Layers or overlays are certainly the right method. But there is also the
 \position macro:

 So that is still used? (If so, I should look into optimizing and cleanup
 as it's real old code).

Seems like a feature that's nice to have; it mirrors the texpos
package for LaTeX. Please update it.

Best
   Martin
___
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] Updating to Beta Builds of ConTeXt / LuaTeX from tlcontrib breaks MacTeX

2010-11-16 Thread Arthur Reutenauer
 - Does it help if you replace ~ with /Users/yourname in
 texmfcnf.lua? During the ConTeXt conference (and that was more recent
 than the current version of ConTeXt) the tilde didn't expand properly
 in some cases and I'm still not sure if it works flawlessly now.

  I don't think so; I never finished the code I started to write for
Hans then.

Arthur
___
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] Updating to Beta Builds of ConTeXt / LuaTeX from tlcontrib breaks MacTeX

2010-11-16 Thread Aditya Mahajan

On Wed, 17 Nov 2010, Arthur Reutenauer wrote:


- Does it help if you replace ~ with /Users/yourname in
texmfcnf.lua? During the ConTeXt conference (and that was more recent
than the current version of ConTeXt) the tilde didn't expand properly
in some cases and I'm still not sure if it works flawlessly now.


 I don't think so; I never finished the code I started to write for
Hans then.


Does $HOME work? That may be better than hard coding /Users/yourname.

Aditya
___
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] Zooming in to a specific part of the page

2010-11-16 Thread Mojca Miklavec
On Wed, Nov 17, 2010 at 01:52, Aditya Mahajan wrote:
 Hi,

 Is it possible to zoom into a specific part of the page? I am thinking of
 the following scenario. Suppose I have the following document

 \setuppapersize[S6][S6]
 \starttext
 \placefigure[right,none]{\externalfigure[dummy][width=0.3\textwidth]}
 \input knuth

 \page

 \input tufte

 \stoptext

 I want that when I click on the image, the pdf is zoomed in so that the
 image occupies the full screen[1], and when I click on the zoomed in image,
 it zooms out and I get the previous page view.

 How do I achieve this? I am guessing that some javascript magic might be
 needed, but I do not understand the interaction code at all. This feature
 will be pretty handy for presentations.

You don't need JavaScript. You can use a normal hyperlink:

[page /FitR left bottom right top]

Display the page designated by page, with its contents magnified just
enough to fit the rectangle specified by the coordinates left, bottom,
right, and top entirely within the window both horizontally and
vertically. If the required horizontal and vertical magnification
factors are different, use the smaller of the two, centering the
rectangle within the window in the other dimension.

https://www.adobe.com/devnet/pdf/pdf_reference_archive.html
Section 8.2.1 Destinations of PDFReference16.pdf

You only need to find a way to transfer the data from nice interface
in ConTeXt into PDF literals.

Mojca

PS: in case that you start hacking with that, please also convince
Hans to fix hyperlinks in formulas/chapters/tables/... (see equation
\in[eq:formulalabel]) to point to specific location on some page, not
to the whole page.
___
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] Zooming in to a specific part of the page

2010-11-16 Thread Aditya Mahajan

On Wed, 17 Nov 2010, Mojca Miklavec wrote:


On Wed, Nov 17, 2010 at 01:52, Aditya Mahajan wrote:

Hi,

Is it possible to zoom into a specific part of the page? I am thinking of
the following scenario. Suppose I have the following document

\setuppapersize[S6][S6]
\starttext
\placefigure[right,none]{\externalfigure[dummy][width=0.3\textwidth]}
\input knuth

\page

\input tufte

\stoptext

I want that when I click on the image, the pdf is zoomed in so that the
image occupies the full screen[1], and when I click on the zoomed in image,
it zooms out and I get the previous page view.

How do I achieve this? I am guessing that some javascript magic might be
needed, but I do not understand the interaction code at all. This feature
will be pretty handy for presentations.


You don't need JavaScript. You can use a normal hyperlink:

[page /FitR left bottom right top]


I hope that I do not have to write raw PDF literals.


Display the page designated by page, with its contents magnified just
enough to fit the rectangle specified by the coordinates left, bottom,
right, and top entirely within the window both horizontally and
vertically. If the required horizontal and vertical magnification
factors are different, use the smaller of the two, centering the
rectangle within the window in the other dimension.

https://www.adobe.com/devnet/pdf/pdf_reference_archive.html
Section 8.2.1 Destinations of PDFReference16.pdf


Thanks.


You only need to find a way to transfer the data from nice interface
in ConTeXt into PDF literals.


I don't know if this data is available when a figure is being placed. At 
the very least, I need to know the xy location of one of the corners of 
the figure (and can compute other corners based on height and width)



PS: in case that you start hacking with that, please also convince
Hans to fix hyperlinks in formulas/chapters/tables/... (see equation
\in[eq:formulalabel]) to point to specific location on some page, not
to the whole page.


I thought that you were the most persuasive person :) This has been around 
for a while. Maybe we should open a tracker item for it.


Aditya
___
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] Stepping mechanism in MkIV

2010-11-16 Thread Aditya Mahajan

Hi Hans,

The current stepping mechanism (s-pre-60) is not too convinient because 
you have to click the screen to go to next screen. It will be nice if one
could go to next screen using page down (and to previous screen using page 
up).


Another annoyance is that it only works with acroread and does not work 
with evince (I don't know how well it works with preview).


Are there any plans to have a mkiv based stepping mechanism? If so, it 
will be nice to have an option to be able to create multiple pages, one 
for each step.


Thanks,
Aditya
___
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] Updating to Beta Builds of ConTeXt / LuaTeX from tlcontrib breaks MacTeX

2010-11-16 Thread Andrew Starks
First off, let me say that you all are the nicest set of developers
and project team members I have ever seen! If I had asked our
developers about an issue in an alpha build, they would have told me
where to go while raising a particular finger in an effort to say
what, I think, is something like, You're #1!

I appreciate the offer to roll back a build, but please! This is how
this all goes, right?

Anyway, following the instructions on the tlcontrib.metatex.org (or a
link from there) for restoring the stable versions, I got the
fabulous /usr/texbin/mtxrun:9359: attempt to concatenate local 'v' (a
table value) on every ConTeXt command that I tried. Lacking the
appetite (and time) to go much further, I tried forcing the uninstall
of everything and then I reinstalled everything using tlmgr. It all
seemed to go whll, but still no avail. After restoring from tlcontrib
and getting only back to nowhere, I just nuked it all and am
reinstalling.

I'm happy to try again, if you all would think I have a better than...
oh... 30% chance of not having to nuke another time. If not, my next
stop is the rsync method. After that, I may have to return, hat in
hand, to LaTeX and check back with you guys in a month or so, just to
see where MacTeX support is at.

BTW: I really like this community and I very much like both what
ConTeXt and  LuaTeX have to offer. In my spare time (-4 hours a day or
so, more if I take my meds), I'd be happy to contribute. I'm much more
of a hack and know next to nothing about bare TeX, although I feel as
though I've done the impossible with my own set of macros. I may be
able to take on some documentation tasks and I also fancy myself a
better-than-average beta tester: not bitchy, test everything all of
the way through, report everything, patient, etc. If all-ya-all want
to point me at something that is in need of such activity, I'd be
happy to look at it. I may just see what can be added to ConTeXt
Garden, but it's hard to know where to start, what's obsolete, what's
good but incomplete, and what's entirely absent. I would need more
time actually using it to truly help, unless someone were to give me
instruction.

Best Regards,

Andrew Starks
Tightrope Media Systems
Co-Founder

800 Transfer Road, Suite 1B, Saint Paul MN 55114

866 866-4118, 201



On Tue, Nov 16, 2010 at 6:45 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 Dear Andrew,

 Sorry for top-posting, just a few remarks:

 - I don't see anything basically wrong with your procedure.

 - I didn't try it yet, but after Taco released luatex 0.64.0 somebody
 already pointed out that the current version of ConTeXt is not
 compatible with the latest version of LuaTeX. I can roll back the
 luatex packages on tlcontrib if needed, but I would prefer to wait for
 Taco's response. (He needs to approve any change anyway.) So it might
 be that any trouble you experience is a sole consequence of that
 incompatibility. But I didn't check anything yet.

 - luatools doesn't make much sense in post-TL-2010. It has been
 replaced by mtxrun entirely. I thought that luatools would still work
 the same way as mtxrun though ... but maybe mtxrun has the same
 symptoms.

 - Does it help if you replace ~ with /Users/yourname in
 texmfcnf.lua? During the ConTeXt conference (and that was more recent
 than the current version of ConTeXt) the tilde didn't expand properly
 in some cases and I'm still not sure if it works flawlessly now.

 - You may also try to install ConTeXt minimals in parallel:

    rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
    ./first-setup.sh
    . tex/setuptex

 Mojca

 On Tue, Nov 16, 2010 at 21:00, Andrew Starks andrew.sta...@trms.com wrote:
 At Aditya's suggestion, I'm cross-posting this from tex.stackexchange.com

 [Executive Summary:

 I might be missing something really simple and I might be
 overcomplicating something really easy. In short:

 1: I installed MacTeX 2010.
 2: I updated all packages using the normal trees.
 3: I changed my TEXMFHOME variable in
 /usr/local/texlive/2010/texmf.cnf to ~/src/texmf, which is where I
 keep my custom modules/templates/packages. (This is normally within
 our github source control, but hasn't been yet.) and moved the content
 from the old directory to the new.
 4: I was beating my head against the wall, trying to make font
 selection work using typescriptfile/typescript as well as simplefont.
 The closest I could get was with simplefont and Palatino spewing
 garbage text.
 5: I decided to try http://tlcontrib.metatex.org/; with tlmgr using
 sudo tlmgr --repository http://tlcontrib.metatex.org/2010 update
 -all
 6: I sudo texconfig rehashed (seemed okay), sudo mtxrun --generate
 (seemed okay). Then I sudo luatools --generate and got something
 that ended with  MTXrun | unknown script 'base.lua' or
 'mtx-base.lua'
 7: Just typing luatools results in: MTXrun | unknown script
 'base.lua' or 'mtx-base.lua'
 8: I tried editing the two texmfcnf.lua files that I found