[NTG-context] Layouts in ConTeXt book finished and available

2011-07-12 Thread Taco Hoekwater


Hi all,

We are glad to announce the availability of another ConTeXt book:

  Layouts in ConTeXt

  Willi Egger  Hans Hagen  Taco Hoekwater

  One of the principles behind ConTeXt is that you can create your
   own styles. Often defining a style starts with setting up the
   page layout. This booklet explains in detail how to do that.
   It also contains information on how to prepare your documents for
   professional printing, including page imposition.

  ISBN 978-94-90688-00-4, in English, 142 pages, 24 EURO excl. shipping.

  http://www.h2o-books.com/node/12 (English website interface)
  http://www.h2o-boeken.nl/node/12 (Dutch website interface)


Please allow a little bit more time for delivery than 3-4 workings
days when you place an order immediately. We ordered an initial set
from the printer this morning, but it turned out that there were
already more pre-orders than Taco had anticipated, so most of the books
from that initial set are already sent out. And while our supply line
is fast, it is not quite doable to get a new stack within 3 working
days.

Best wishes,

Boekplan / H2O Books

PS
We have received a ceasedesist for http://www.boekplan.nl/ from the
company that owns http://www.boekenplan.nl/, we have switched to the new
name H2O Boeken (H2O Books). This new name is based on the first
letters of the last names of the owners of the company.



___
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] Editable PDF-document

2011-07-12 Thread Cecil Westerhof
I am creating a PDF document with ConTeXt. This document should also be
editable by the client itself. Two persons in the company I am working for
tried to add annotations for me. One was using Infix. When trying to edit
the document, he auto magically was transferred to a place in the document
30 or 40 pages further. Someone else worked with NitroPDF. He managed (as
far as I know without problems) to give 38 annotations, but the size of the
document increased from 5.4 MB to 102 MB. This looks not workable. Is there
a way I can change the generated PDF so that the client will be able to edit
the PDF when he gets it, or could I better generate HTML?

-- 
Cecil Westerhof
___
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] Links

2011-07-12 Thread Cecil Westerhof
De links naar de PDF bestanden op
http://www.ntg.nl/maps/42/index.html
werken niet.

-- 
Cecil Westerhof
___
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] Editable PDF-document

2011-07-12 Thread Hans Hagen

On 12-7-2011 3:17, Cecil Westerhof wrote:

I am creating a PDF document with ConTeXt. This document should also be
editable by the client itself. Two persons in the company I am working for
tried to add annotations for me. One was using Infix. When trying to edit
the document, he auto magically was transferred to a place in the document
30 or 40 pages further. Someone else worked with NitroPDF. He managed (as
far as I know without problems) to give 38 annotations, but the size of the
document increased from 5.4 MB to 102 MB. This looks not workable. Is there
a way I can change the generated PDF so that the client will be able to edit
the PDF when he gets it, or could I better generate HTML?


I don't see why documents created by context/luatex should pose a 
problem with respect to adding annotations. If 38 annotations are good 
for 100M extra data then


(1) the annotations are huge, or
(2) the editing app messes up or
(3) the user could try to 'save as' instead of 'save' (often forces cleanup)

The kind of pdf produced by context/luatex is pretty simple and 
efficient and does not have any clever tricks. The auto magic is 
unrelated to the pdf.


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] Links

2011-07-12 Thread Hans Hagen

On 12-7-2011 3:35, Cecil Westerhof wrote:

De links naar de PDF bestanden op
 http://www.ntg.nl/maps/42/index.html
werken niet.


Sure, you have to be a ntg member in order to read the latest two 
issues. So being a member has some benefits (and also helps tex continue 
to exist).


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] Links

2011-07-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

the link http://www.ntg.nl/maps/42/maps.pdf (= all MAPS together) seems to be 
broken;
also other links to http://www.ntg.nl/maps/42/*.pdf;
could they be recovered?

TIA.

Best regards,

Lukas


On Tue, 12 Jul 2011 15:35:40 +0200, Cecil Westerhof cldwester...@gmail.com 
wrote:


De links naar de PDF bestanden op
http://www.ntg.nl/maps/42/index.html
werken niet.



--
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] Links

2011-07-12 Thread luigi scarso
2011/7/12 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz:
 Hello,

 the link http://www.ntg.nl/maps/42/maps.pdf (= all MAPS together) seems to
 be broken;
 also other links to http://www.ntg.nl/maps/42/*.pdf;
 could they be recovered?
As Hans said,
you have to be a ntg member in order to read the latest two issues.

-- 
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] cont-sys.mkiv in texlive 2011

2011-07-12 Thread Eythan Weg


Hi,

I have installed tl-2011 a few days ago.  Context mkiv runs ok.  But to
configure page size I put a few commands in cont-sys.mkiv under
home:.texlive2011/tex-config which is the result of mtxrun --expand-path
TEXMFCONFIG.

However, the file has no effect on context and nor is it found by 
mtxrun cont-sys.mkiv.

TEXMF is found as:

home:.texlive2011/texmf-config:home:texmf:
!!selfautoparent:texmf-config:!!selfautoparent:texmf-project:
!!selfautoparent:texmf-fonts:!!/usr/local/texlive/texmf-local:
!!selfautoparent:texmf-dist:!!selfautoparent:linux-64:!!selfautoparent:texmf
(one line)

What do I miss?

Thank you,

Eythan 

___
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] cont-sys.mkiv in texlive 2011

2011-07-12 Thread luigi scarso
On Tue, Jul 12, 2011 at 4:58 PM, Eythan Weg eythan...@gmail.com wrote:


 Hi,

 I have installed tl-2011 a few days ago.  Context mkiv runs ok.  But to
 configure page size I put a few commands in cont-sys.mkiv under
 home:.texlive2011/tex-config which is the result of mtxrun --expand-path
 TEXMFCONFIG.

 However, the file has no effect on context and nor is it found by
 mtxrun cont-sys.mkiv.

 TEXMF is found as:

 home:.texlive2011/texmf-config:home:texmf:
 !!selfautoparent:texmf-config:!!selfautoparent:texmf-project:
 !!selfautoparent:texmf-fonts:!!/usr/local/texlive/texmf-local:
 !!selfautoparent:texmf-dist:!!selfautoparent:linux-64:!!selfautoparent:texmf
 (one line)

 What do I miss?

 Thank you,
Does it work if you put it under
texmf-project ?


-- 
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] BTW: Context Standalone

2011-07-12 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

there was a discussion about Ideas for restructuring the ConTeXt garden? some 
months ago (http://www.ntg.nl/pipermail/ntg-context/2011/057640.html).

In answers in this forum, Context Minimals are still referred - so just a 
polite question:

Is there any progress calling Context Minimals - Context Standalone?

I don't have strict overview what everything should be affected (wiki, manuals, 
setup batches?)...

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


Re: [NTG-context] cont-sys.mkiv in texlive 2011

2011-07-12 Thread Taco Hoekwater

On 07/12/2011 05:07 PM, luigi scarso wrote:

On Tue, Jul 12, 2011 at 4:58 PM, Eythan Wegeythan...@gmail.com  wrote:



Hi,

I have installed tl-2011 a few days ago.  Context mkiv runs ok.  But to
configure page size I put a few commands in cont-sys.mkiv under
home:.texlive2011/tex-config which is the result of mtxrun --expand-path
TEXMFCONFIG.

However, the file has no effect on context and nor is it found by
mtxrun cont-sys.mkiv.

TEXMF is found as:

home:.texlive2011/texmf-config:home:texmf:
!!selfautoparent:texmf-config:!!selfautoparent:texmf-project:
!!selfautoparent:texmf-fonts:!!/usr/local/texlive/texmf-local:
!!selfautoparent:texmf-dist:!!selfautoparent:linux-64:!!selfautoparent:texmf
(one line)

What do I miss?

Thank you,

Does it work if you put it under
texmf-project ?


Try (if you did not have the substructure already):

  ~/.texlive2011/texmf-config/tex/context/cont-sys.mkiv

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] BTW: Context Standalone

2011-07-12 Thread Taco Hoekwater

On 07/12/2011 05:17 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

there was a discussion about Ideas for restructuring the ConTeXt
garden? some months ago
(http://www.ntg.nl/pipermail/ntg-context/2011/057640.html).

In answers in this forum, Context Minimals are still referred - so
just a polite question:

Is there any progress calling Context Minimals - Context Standalone?

I don't have strict overview what everything should be affected (wiki,
manuals, setup batches?)...


Mostly the wiki pages and neural paths in a few dozen heavy context
users. The former are pretty simple to fix, the latter not so much :(

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
___


[NTG-context] Optimal way to defining of macros in Luacode in ConTeXt

2011-07-12 Thread Jaroslav Hajtmar

Hello ConTeXist.

How best (optimally) in Lua code in ConTeXt define own ConTeXt macros?

I was used recently LuaTeX syntax (for example) :
tex.sprint(tex.ctxcatcodes,'\\def\\mymacro\{arg of mymacro\}')

But someone advised me that I use the better syntax:
context('\\def\\Mymacro\{arg of mymacro\}')
or context(\\def\\test#1{#1}) etc...

Exist other (best or most optimal) way to do?

for example something like:
context.def.mymacro(first arg, sec arg:) (which of course does not 
work ...)


Thanx Jaroslav


My example:

\startluacode

function ar2rom(arnum) -- Convert Arabic numbers to Roman. Used for 
numbering column in the TeX macros

  local romans = {{1000, M},
  {900, CM}, {500, D}, {400, CD}, {100, C},
  {90, XC}, {50, L}, {40, XL}, {10, X},
  {9, IX}, {5, V}, {4, IV}, {1, I} }
  local romnum=''
  for _, v in ipairs(romans) do -- create of the Roman numbers
val, let = unpack(v)
while arnum = val do
  arnum = arnum - val
  romnum=romnum..let
end
  end
  return romnum
end


for i = 1, 10 do
  tex.sprint(tex.ctxcatcodes,'\\def\\macro'..ar2rom(i)..'\{macro 
'..i..'\}')

  context('\\def\\Macro'..ar2rom(i)..'\{Macro '..i..'\}')
end

tex.sprint(tex.ctxcatcodes,'\\def\\mymacro\{arg of mymacro\}')
context('\\def\\Mymacro\{arg of Mymacro\}')


\stopluacode


\starttext

\macroI, \MacroI


\macroII, \MacroII

etc ...

\macroIX, \MacroIX

\macroX, \MacroX

\Mymacro, \mymacro

\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] fullstructureheadnumber does not work

2011-07-12 Thread Peter Schorsch
Hi,

did something happend to the \fullstructureheadnumber in the last six
months? I still can find it in the source (strc-sec.mkiv) but is always
halts with Undefined control sequence.

Is there a new command for this?

Thanks
P.
___
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] Optimal way to defining of macros in Luacode in ConTeXt

2011-07-12 Thread Hans Hagen

On 12-7-2011 5:30, Jaroslav Hajtmar wrote:


But someone advised me that I use the better syntax:
context('\\def\\Mymacro\{arg of mymacro\}')
or context(\\def\\test#1{#1}) etc...


whatever you like best

context.setvalue{Mymacro,somevalue)

context([[\def\MyMacro#1{#1}]])


Exist other (best or most optimal) way to do?
for i = 1, 10 do
tex.sprint(tex.ctxcatcodes,'\\def\\macro'..ar2rom(i)..'\{macro '..i..'\}')
context('\\def\\Macro'..ar2rom(i)..'\{Macro '..i..'\}')
end


for i = 1, 10 do
  context([[\def\Macro%s{Macro%s}]],ar2rom(i),i)
end

When more than one argument is given, the context command treats the 
first argument as format template.


By using the context command you can see what happens with

\enabletrackers[context.trace]

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] Optimal way to defining of macros in Luacode in ConTeXt

2011-07-12 Thread Wolfgang Schuster

Am 12.07.2011 um 17:30 schrieb Jaroslav Hajtmar:

 Hello ConTeXist.
 
 How best (optimally) in Lua code in ConTeXt define own ConTeXt macros?
 
 I was used recently LuaTeX syntax (for example) :
 tex.sprint(tex.ctxcatcodes,'\\def\\mymacro\{arg of mymacro\}')
 
 But someone advised me that I use the better syntax:
 context('\\def\\Mymacro\{arg of mymacro\}')
 or context(\\def\\test#1{#1}) etc...
 
 Exist other (best or most optimal) way to do?


You can use “context.setvalue”. To convert numbers in different formats
you can use the \convertnumber command.

\starttext

\startluacode
context.setvalue(One,1)
context.setvalue(Two,2)
\stopluacode

\define\Three{3}

\One:\Two:\Three

\blank

\startluacode
context.define({2},\\CMDA,[One:#1,Two:#2])
\stopluacode

\define[2]\CMDB{[One:#1,Two:#2]}

\CMDA{1}{2}
\CMDB{1}{2}

\blank

\convertnumber{R}{1400}

\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] fullstructureheadnumber does not work

2011-07-12 Thread Wolfgang Schuster

Am 12.07.2011 um 17:39 schrieb Peter Schorsch:

 Hi,
 
 did something happend to the \fullstructureheadnumber in the last six
 months? I still can find it in the source (strc-sec.mkiv) but is always
 halts with Undefined control sequence.
 
 Is there a new command for this?

\fullheadnumber

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] cont-sys.mkiv in texlive 2011

2011-07-12 Thread John Culleton
On Tuesday, July 12, 2011 10:58:18 am Eythan Weg wrote:
 Hi,
 
 I have installed tl-2011 a few days ago.  Context mkiv 
runs ok. 

Where did you find TL-2011? All I find is TL-2010
-- 
John Culleton

Death Wore Black Police procedural: 
http://www.deathworeblack.com/

Create Book Covers with Scribus
http://booklocker.com/books/4055.html
___
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] interfaces.definecommand

2011-07-12 Thread Wolfgang Schuster
Hi Hans,

is it possible to extend “interfaces.definecommand” so that it is possible
to create commands without optional arguments.

\starttext

\startluacode
function test(opt_1, arg_1)
context(%s,arg_1)
end

interfaces.definecommand {
name = test,
arguments = {
{ option, list },
{ content, string },
},
macro = test,
}
\stopluacode

\test{whatever}

\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] First baby steps with MKIV

2011-07-12 Thread John Culleton
On Saturday, July 02, 2011 10:47:20 am yoraxe wrote:
 Am 02.07.2011 16:45, schrieb John Culleton:
  Followed this wiki,
  http://wiki.contextgarden.net/ConTeXt_Minimals
  
   installed in my personal directory.
  
  Now for the most elementary quetsion: Given the file
  foo.tex how do I actually run mkiv context on it?
 
 context foo

Not quite. First I have to issue a special command to put 
the context installation in play. So I created a script 
Context like this:
--
source /home/safe/context/tex/setuptex
context $1

-- 
John Culleton

Death Wore Black Police procedural: 
http://www.deathworeblack.com/

Create Book Covers with Scribus
http://booklocker.com/books/4055.html
___
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] First baby steps with MKIV

2011-07-12 Thread luigi scarso
On Tue, Jul 12, 2011 at 6:00 PM, John Culleton j...@wexfordpress.com wrote:
 --

 source /home/safe/context/tex/setuptex

 context $1

 
better

source /home/safe/context/tex/setuptex /home/safe/context/tex
context $1
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] interfaces.definecommand

2011-07-12 Thread Hans Hagen

On 12-7-2011 5:59, Wolfgang Schuster wrote:

Hi Hans,

is it possible to extend “interfaces.definecommand” so that it is possible
to create commands without optional arguments.

\starttext

\startluacode
function test(opt_1, arg_1)
 context(%s,arg_1)
end

interfaces.definecommand {
 name = test,
 arguments = {
 { option, list },
 { content, string },
 },
 macro = test,
}
\stopluacode

\test{whatever}

\stoptext


hm, isn't that what

interfaces.definecommand {
name = simpleone,
macro = simpleone,
}

does?

-
  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] Interesing error message in MKIV:

2011-07-12 Thread John Culleton
Are the subdivisions \startfrontmatter etc. now obsolete?
---
system   tex  error on line 13 in file book.tex: 
Undefined control sequence ...

 3 \switchtotypeface [helvetica] [12pt,ss]
 4 \starttext
 5 \startfrontmatter
 6 \startstandardmakeup
 7 \midaligned{How to make a document.}
 8 \midaligned{by}
 9 \midaligned{The Author}
10 \stopstandardmakeup
11 \switchtotypeface [palatino] [12pt,rm]
12 \completecontent
13   \stopfrontmatter
14 \startbodymatter
15 \input body.tex
16 \stopbodymatter
17 \startbackmatter
18 \completeindex
19 \stopbackmatter
20 \stoptext
---
-- 
John Culleton

Death Wore Black Police procedural: 
http://www.deathworeblack.com/

Create Book Covers with Scribus
http://booklocker.com/books/4055.html
___
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] interfaces.definecommand

2011-07-12 Thread Wolfgang Schuster

Am 12.07.2011 um 18:04 schrieb Hans Hagen:

 hm, isn't that what
 
 interfaces.definecommand {
name = simpleone,
macro = simpleone,
 }
 
 does?

This creates a command without *any* arguments but i’m interested how to create
a command with mandatory arguments only, e.g. \test{One}{Two}.

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] Interesing error message in MKIV:

2011-07-12 Thread Wolfgang Schuster

Am 12.07.2011 um 18:19 schrieb John Culleton:

 Are the subdivisions \startfrontmatter etc. now obsolete?

The new messages lead sometimes in the wrong direction, show us more
information from the command line where you can see which command
is really undefined.

  3 \switchtotypeface [helvetica] [12pt,ss]
  4 \starttext
  5 \startfrontmatter
  6 \startstandardmakeup
  7 \midaligned{How to make a document.}
  8 \midaligned{by}
  9 \midaligned{The Author}
 10 \stopstandardmakeup
 11 \switchtotypeface [palatino] [12pt,rm]

When you want a different font for the titlepage then switch
to helvetica *in* the standardmakeup environment and don’t switch
font before and after the environment.

\setupbodyfont[palatino]

\startsetups[titlepage]
\switchtobodyfont[helvetica]
\stopsetups

\starttext

\startstandardmakeup[align=middle,setups=titlepage]

How to make a document.

by

The Author

\stopstandardmakeup

...

\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] First baby steps with MKIV

2011-07-12 Thread John Haltiwanger
On Tue, Jul 12, 2011 at 9:03 AM, luigi scarso luigi.sca...@gmail.comwrote:

 On Tue, Jul 12, 2011 at 6:00 PM, John Culleton j...@wexfordpress.com
 wrote:
  --
 
  source /home/safe/context/tex/setuptex
 
  context $1
 
  
 better

 source /home/safe/context/tex/setuptex /home/safe/context/tex
 context $1
 --


I haven't seen this before. What is the advantage of the second argument to
source ?
___
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] cont-sys.mkiv in texlive 2011

2011-07-12 Thread Eythan Weg

luigi scarso luigi.sca...@gmail.com
Tue, 12 Jul 2011 17:07:10 +0200

   On Tue, Jul 12, 2011 at 4:58 PM, Eythan Weg eythan...@gmail.com wrote:
   
   
Hi,
   
I have installed tl-2011 a few days ago.  Context mkiv runs ok.  But to
configure page size I put a few commands in cont-sys.mkiv under
home:.texlive2011/tex-config which is the result of mtxrun --expand-path
TEXMFCONFIG.
   
However, the file has no effect on context and nor is it found by
mtxrun cont-sys.mkiv.
   
TEXMF is found as:
   
home:.texlive2011/texmf-config:home:texmf:
!!selfautoparent:texmf-config:!!selfautoparent:texmf-project:
!!selfautoparent:texmf-fonts:!!/usr/local/texlive/texmf-local:

!!selfautoparent:texmf-dist:!!selfautoparent:linux-64:!!selfautoparent:texmf
(one line)
   
What do I miss?
   
Thank you,
   Does it work if you put it under
   texmf-project ?

I did put it under TEXMFSYSCONFIG and it works.  But I think it is
better kept in a  personal directory.  I suspect that TEXMFPROJECT
will do too.  But it is not appropriate as it would apply to every
user. 

   
   -- 
   luigi


Eythan  


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

2011-07-12 Thread Martin Schröder
2011/7/12 Hans Hagen pra...@wxs.nl:
 Sure, you have to be a ntg member in order to read the latest two issues. So
 being a member has some benefits (and also helps tex continue to exist).

I got the paper. How can I access the pdf now?

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] Links

2011-07-12 Thread Hans Hagen

On 12-7-2011 7:26, Martin Schröder wrote:

2011/7/12 Hans Hagenpra...@wxs.nl:

Sure, you have to be a ntg member in order to read the latest two issues. So
being a member has some benefits (and also helps tex continue to exist).


I got the paper. How can I access the pdf now?


via member login (you get reminder mails for that)

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] cont-sys.mkiv in texlive 2011

2011-07-12 Thread Eythan Weg

Taco Hoekwater t...@elvenkind.com
Tue, 12 Jul 2011 17:22:37 +0200

   On 07/12/2011 05:07 PM, luigi scarso wrote:
On Tue, Jul 12, 2011 at 4:58 PM, Eythan Wegeythan...@gmail.com  wrote:
   
   
Hi,
   
I have installed tl-2011 a few days ago.  Context mkiv runs ok.  But to
configure page size I put a few commands in cont-sys.mkiv under
home:.texlive2011/tex-config which is the result of mtxrun --expand-path
TEXMFCONFIG.
   
However, the file has no effect on context and nor is it found by
mtxrun cont-sys.mkiv.
   
TEXMF is found as:
   
home:.texlive2011/texmf-config:home:texmf:
!!selfautoparent:texmf-config:!!selfautoparent:texmf-project:
!!selfautoparent:texmf-fonts:!!/usr/local/texlive/texmf-local:

!!selfautoparent:texmf-dist:!!selfautoparent:linux-64:!!selfautoparent:texmf
(one line)
   
What do I miss?
   
Thank you,
Does it work if you put it under
texmf-project ?
   
   Try (if you did not have the substructure already):
   
 ~/.texlive2011/texmf-config/tex/context/cont-sys.mkiv
   
   Best wishes,
   Taco


Yes... This works.  

Thank you.
Eythan  

___
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] cont-sys.mkiv in texlive 2011

2011-07-12 Thread Eythan Weg




John Culleton j...@wexfordpress.com
Tue, 12 Jul 2011 11:55:36 -0400

   On Tuesday, July 12, 2011 10:58:18 am Eythan Weg wrote:
   
Hi,
   

   
I have installed tl-2011 a few days ago. Context mkiv runs ok. 
   
   Where did you find TL-2011? All I find is TL-2010

Yes.  Sorry, this is a  frozen 2011.
   
   -- 
   
   John Culleton
   
   Death Wore Black Police procedural: http://www.deathworeblack.com/
   
   Create Book Covers with Scribus
   
   http://booklocker.com/books/4055.html
   
   
___
   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
   
___



Eythan 


___
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] interfaces.definecommand

2011-07-12 Thread Hans Hagen

On 12-7-2011 6:24, Wolfgang Schuster wrote:


Am 12.07.2011 um 18:04 schrieb Hans Hagen:


hm, isn't that what

interfaces.definecommand {
name = simpleone,
macro = simpleone,
}

does?


This creates a command without *any* arguments but i’m interested how to create
a command with mandatory arguments only, e.g. \test{One}{Two}.


we need to add

[0] = ,

to the checkers

-
  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] Precise Destination of References

2011-07-12 Thread H. Hodges
I have links to different parts of my document using \goto. I would like to know
if there is some way to increase the precision of the links' destination. When I
click them, they navigate to the correct page, but not the correct part of the
page. Also, I've opened the document in several different pdf viewers, and,
whenever I click a link, the document re-sizes itself. Is there a way to prevent
this?

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