Re: [NTG-context] Finetuning distances in cells

2013-04-16 Thread H. Özoguz

(Sorry, there were typos in the code).
The offset between the top and bottom rule in each cell. Change them to
something drastic like 1cm to see the affect.

\startsetups table:setups
\setupTABLE[align={lohi}, loffset=1pt, boffset=3cm, align=flushleft]
\stopsetups

\starttext
\bTABLE[setups=table:setups]
\bTR
\bTD[nc=3, align=middle, style=italic]
 Natürliche Methoden
\eTD
\eTR
\bTR
\bTD One\eTD
\bTD Two\eTD
\bTD Three  \eTD
\eTR
\eTABLE
\stoptext


Aditya


Thanks, exactly what I wanted!
Is it possible with this table-environment to create a table, where not 
all four horizontal and vertical lines are set? For example like:


\starttext
\starttable[|l|c|l|]

\NC Blub1 \VL Blub2 \VL Blub3 \AR

\HL

\NC Lalala \VL Brumm \VL Boff \AR

\HL

\stoptable
\stoptext


Huseyin



___
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] [***SPAM***] Re: Finetuning distances in cells

2013-04-16 Thread Aditya Mahajan

On Wed, 17 Apr 2013, "H. Özoguz" wrote:


It is much easier to fine-tune details with Natural Tables. Each cell of a
natural table is a frame, so you can use settings for frames to change the
style.

\startsetups table:setups
\setupTABLE[align={lohi}, toffset=1pt, bottset=3pt, align=flushleft]
\stopsetups

\bTABLE[setup=table:setups]
\bTR
\bTD[nc=3, align=middle, style=italic]
 Natürliche Methoden
\eTD
\eTR
\bTR
\bTD One\eTD
\bTD Two\eTD
\bTD Three  \eTD
\eTR
\eTABLE

Aditya


If it works, I will try to change my big table to a Natural Table. I do not 
understand what the pt-Values do in your example, if I change them, nothing 
happens.


(Sorry, there were typos in the code).
The offset between the top and bottom rule in each cell. Change them to 
something drastic like 1cm to see the affect.


\startsetups table:setups
\setupTABLE[align={lohi}, loffset=1pt, boffset=3cm, align=flushleft]
\stopsetups

\starttext
\bTABLE[setups=table:setups]
\bTR
  \bTD[nc=3, align=middle, style=italic]
   Natürliche Methoden
  \eTD
\eTR
\bTR
  \bTD One\eTD
  \bTD Two\eTD
  \bTD Three  \eTD
\eTR
\eTABLE
\stoptext


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] [***SPAM***] Re: Finetuning distances in cells

2013-04-16 Thread H. Özoguz

It is much easier to fine-tune details with Natural Tables. Each cell of a
natural table is a frame, so you can use settings for frames to change the
style.

\startsetups table:setups
\setupTABLE[align={lohi}, toffset=1pt, bottset=3pt, align=flushleft]
\stopsetups

\bTABLE[setup=table:setups]
\bTR
\bTD[nc=3, align=middle, style=italic]
 Natürliche Methoden
\eTD
\eTR
\bTR
\bTD One\eTD
\bTD Two\eTD
\bTD Three  \eTD
\eTR
\eTABLE

Aditya


If it works, I will try to change my big table to a Natural Table. I do 
not understand what the pt-Values do in your example, if I change them, 
nothing happens.


Huseyin
___
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] [***SPAM***] Finetuning distances in cells

2013-04-16 Thread Aditya Mahajan

On Wed, 17 Apr 2013, "H. Özoguz" wrote:


In this example

\starttext
\starttable[|l|c|l|]
\HL
\NC \THREE\JustCenter \it Natürliche Methoden \NC \AR
\HL
\stoptable
\stoptext

(which, by the way, gives an syntax-error with "\startTABLE")
the entry "Natürliche Methoden" is not perfectly vertically centered. The 
distance above to the horizontal line is (very) little smaller than the 
distance at the bottom. How to correct that? Perfectly it would be exactly 
reversed, the distance above should be smaller, than at the bottom.


It is much easier to fine-tune details with Natural Tables. Each cell of a 
natural table is a frame, so you can use settings for frames to change the 
style.


\startsetups table:setups
\setupTABLE[align={lohi}, toffset=1pt, bottset=3pt, align=flushleft]
\stopsetups

\bTABLE[setup=table:setups]
\bTR
  \bTD[nc=3, align=middle, style=italic]
   Natürliche Methoden
  \eTD
\eTR
\bTR
  \bTD One\eTD
  \bTD Two\eTD
  \bTD Three  \eTD
\eTR
\eTABLE

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] [***SPAM***] Re: Line break in a cell of a table

2013-04-16 Thread Aditya Mahajan

On Wed, 17 Apr 2013, "H. Özoguz" wrote:


BTW, I think that it is better to use Natural Table or tabulate instead of
table environment. For example, you can write:

\startTABLE
\NC First Entry \\ (Explanation) \NC Second Entry \NC \NR
\stopTABLE


Thanks Aditya. Can you give me a short reference to understand the 
difference, what is "Natural Table"?


See http://wiki.contextgarden.net/TABLE

and

http://tex.stackexchange.com/search?q=user%3A323+[tables]

for examples.


Is it the same as
\placetable[][]{}{\starttable[]\stoptable}
?


No. \placetable is a float mechanism, which can float any \hbox. For 
example, you can use:


   \placetable[..][..]{...}{\hbox{Hello world}}

table, tables, tabulate, linetable, TABLE, xtable, are different wrappers 
around \halign for creating tables. See


http://wiki.contextgarden.net/Tables_Overview

for a partial comparison.

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] [***SPAM***] Finetuning distances in cells

2013-04-16 Thread H. Özoguz

In this example

\starttext
\starttable[|l|c|l|]
\HL
\NC \THREE\JustCenter \it Natürliche Methoden \NC \AR
\HL
\stoptable
\stoptext

(which, by the way, gives an syntax-error with "\startTABLE")
the entry "Natürliche Methoden" is not perfectly vertically centered. 
The distance above to the horizontal line is (very) little smaller than 
the distance at the bottom. How to correct that? Perfectly it would be 
exactly reversed, the distance above should be smaller, than at the bottom.


Huseyin




___
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] [***SPAM***] Re: Line break in a cell of a table

2013-04-16 Thread H. Özoguz

BTW, I think that it is better to use Natural Table or tabulate instead of
table environment. For example, you can write:

\startTABLE
\NC First Entry \\ (Explanation) \NC Second Entry \NC \NR
\stopTABLE


Thanks Aditya. Can you give me a short reference to understand the 
difference, what is "Natural Table"? Is it the same as

\placetable[][]{}{\starttable[]\stoptable}
?

Huseyin

___
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] Line break in a cell of a table

2013-04-16 Thread Aditya Mahajan

On Wed, 17 Apr 2013, "H. Özoguz" wrote:


Good morning together,

I want this:


\starttext

\starttable[|l|l|]

\HL

\NC First Entry \\ (Explanation) \VL Second Entry \AR


(Unrelated, but you are using a wrong syntax. Each row should be:

\NC  \NC ... \NC \AR)


\HL

\stoptable

\stoptext


That is, line break after "First Entry", but without leaving the first cell 
(first row, first column). The code does not work, how to?


Use p column instead of l column

\starttable[|p|l|]
...
\stoptable

BTW, I think that it is better to use Natural Table or tabulate instead of 
table environment. For example, you can write:


\startTABLE
\NC First Entry \\ (Explanation) \NC Second Entry \NC \NR
\stopTABLE

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] Line break in a cell of a table

2013-04-16 Thread H. Özoguz

Good morning together,

I want this:


\starttext

\starttable[|l|l|]

\HL

\NC First Entry \\ (Explanation) \VL Second Entry \AR

\HL

\stoptable

\stoptext


That is, line break after "First Entry", but without leaving the first 
cell (first row, first column). The code does not work, how to?



Thanks.
Huseyin


___
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] How to find the source code/documentation for a specific command

2013-04-16 Thread contact
Hi Hans,


I searched for the files you reffered to and found them in the path

“context\tex\texmf-context\tex\context”. Can I assume most (all?)

commands are defined here?


From what you said, do you mean that the code for a single command

may be split into multiple files?


I found the test files. What a great collection of examples! This sure will 
help.


Regards,


Thomas Corbière



De : Hans Hagen
Envoyé : ‎mardi‎ ‎16‎ ‎avril‎ ‎2013 ‎18‎:‎25
À : mailing list for ConTeXt users
Cc : cont...@thomas-corbiere.name

On 4/16/2013 6:07 PM, cont...@thomas-corbiere.name wrote:
> Hello ConTeXt list,
>
> I am a new user of ConTeXt and I am trying to write my very first
> document with this program.
> However, it is often difficult to find explanation about commands and
> their options.
> Most of the documentation and examples seems outdated or incomplete... I
> know that you are
> currently writing a new version of the manuals and that it is a time
> consuming task so
> before I plague you with questions I may have, I would like to know how
> to find the source
> code of a command (which may include embedded documentation).
>
> For example how can I find the source file for the \setupinteraction
> command? (I am using ConTeXt
> on Windows.). If I can find more information by myself I will not have
> to take too much of your
> time.

interaction is mostly dealt with in scrn-* files and strc-ref

don't get too confused by dates of manuals, many commands are still the 
same (maybe extended) like for instance interaction related commands

anyhow, there is a zip with test files on the webbsite that has lots of 
(test) examples, somewhat organized that you can run as test

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] bibliography: minimal entry

2013-04-16 Thread Xenia
Dear context list,

I would like to create very simple bibliography entries containing only
the title and 1 other information (for example institution). I can not
use existing types like article because it would produce superfluous
full stops where I left things out.
How can this be done easily?

Thanks,

Xenia
___
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] typesetting TOC

2013-04-16 Thread Meer, H. van der
I am very sorry, but I still cannot understand how to get the TOC as I would 
like it.
The following does typeset the Content header but is empty otherwise.

\startfrontmatter
\completelist[content][criterium=chapter]
\stopfrontmatter

I tried various possibilities from the reference manual, like 
\placelist[section][criterium=chapter]. But either this doesn't work (anymore?) 
or I am doing something very stupid. But these call do nothing.

It seems so simple: use the \complete.. mechanism (because this wraps the TOC 
nicely) to typeset a selection from the TOC using the criterium-mechanism. 
Which seems to me just made for this sort of action. But nothing comes out of 
it.

Hans van der Meer



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

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


Re: [NTG-context] possible ligaturing bug with EB Garamond * clig

2013-04-16 Thread Philipp Gesang
·

> On 4/16/2013 8:06 PM, Philipp Gesang wrote:
> >Hi,
> >
> >with EB Garamond Italic and contextual ligatures I get a weird
> >duplicate “s” for the pairing “us”:
> >
> >···
> >\starttext
> >
> >   \definefontfeature[default][default][clig=yes]
> >   \definedfont[ebgaramond12italic*default at 42pt]
> >   %definedfont[ebgaramond08italic*default at 42pt]
> >
> >   foo us bar ss fi ffi ffl fj\endgraf
> >
> >   Thus, I came to the conclusion ...
> >
> >\stoptext
> >···
> >
> >Occurs in Context and Luatex-Fonts, not only on my machine. Can
> >some confirm this? Also I’d like to know if that’s a bug in the
> >font or the font loader.
> >
> >Thanks
> >Philipp
> >
> >[1] Version 0.015 from here:
> > http://www.georgduffner.at/ebgaramond/download.html
> 
> you can test with
> 
> local function s_hashed(t,cache)
> if t then
> local ht = { }
> local tf = t[1]
> for i=1,#tf do
> ht[i] = { [tf[i]] = true }
> end
> return ht
> else
> return nil
> end
> end
> 
> in font-otf.lua (you need to delete the cached font) - i wonder what
> the original test font was (might as break that one)

Thanks, applied! No noticable breakage.

Philipp

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


pgptPKXf9b57D.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Two Bibliography questions

2013-04-16 Thread john Culleton
On Tue, 16 Apr 2013 19:08:34 +0200
Alan BRASLAU  wrote:

> [refcommand=authoryears,criterium=cite]

Thanks! I found out that the criterium=cite parameter is put in the 
\completepublications command that prints out the bibliography.
But your comment jogged my memory. Also, I used authoryear
command not authoryears in this particular document. 

But with your help I got it right at last. And now, back to
writing the document!
-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at http://www.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] where is completecontent defined?

2013-04-16 Thread Hans Hagen

On 4/16/2013 9:12 PM, Meer, H. van der wrote:

Your statement doesn't seem true. In neither of the files you mentioned is 
there a string 'completecontent' to be found. Always assuming I can trust my 
BBEdit search, of course.
In fact 'completecontent' occurs in one place only, as %\completecontent in 
strc-pag.mkiv, that is all. I excluded mkii files in order not to mix things up 
between mkii and mkiv.


context has a multi lingual interface so for such things you need to 
grep for


 e!complete

in *.mkiv and *.mkvi as the command is made out of "complete" and 
"content" with the first being a command snippet (e!) and the second a

tag (of the list)

that approach is pretty old so also present in mkii

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] possible ligaturing bug with EB Garamond * clig

2013-04-16 Thread Hans Hagen

On 4/16/2013 8:06 PM, Philipp Gesang wrote:

Hi,

with EB Garamond Italic and contextual ligatures I get a weird
duplicate “s” for the pairing “us”:

···
\starttext

   \definefontfeature[default][default][clig=yes]
   \definedfont[ebgaramond12italic*default at 42pt]
   %definedfont[ebgaramond08italic*default at 42pt]

   foo us bar ss fi ffi ffl fj\endgraf

   Thus, I came to the conclusion ...

\stoptext
···

Occurs in Context and Luatex-Fonts, not only on my machine. Can
some confirm this? Also I’d like to know if that’s a bug in the
font or the font loader.

Thanks
Philipp

[1] Version 0.015 from here:
 http://www.georgduffner.at/ebgaramond/download.html


you can test with

local function s_hashed(t,cache)
if t then
local ht = { }
local tf = t[1]
for i=1,#tf do
ht[i] = { [tf[i]] = true }
end
return ht
else
return nil
end
end

in font-otf.lua (you need to delete the cached font) - i wonder what the 
original test font was (might as break that one)


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] where is completecontent defined?

2013-04-16 Thread Meer, H. van der
Your statement doesn't seem true. In neither of the files you mentioned is 
there a string 'completecontent' to be found. Always assuming I can trust my 
BBEdit search, of course.
In fact 'completecontent' occurs in one place only, as %\completecontent in 
strc-pag.mkiv, that is all. I excluded mkii files in order not to mix things up 
between mkii and mkiv.

Hans van der Meer

On 16 Apr 2013, at 5:57 PM, Wolfgang Schuster  
wrote:

> 
> Am 16.04.2013 um 17:51 schrieb "Meer, H. van der" :
> 
>> I tried to find the definition of \completecontent in the source, but 
>> searching for it doesn't turn up its occurence. Where do I have to look?
> 
> The \completecontent command is created with \definecombinedlist[content].
> 
> The definition for \definecombinedlist is in strc-lst.mkvi but 
> \completecontent is defined in strc-def.mkiv
> 
> 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] possible ligaturing bug with EB Garamond * clig

2013-04-16 Thread Hans Hagen

On 4/16/2013 8:06 PM, Philipp Gesang wrote:

\starttext

   \definefontfeature[default][default][clig=yes]
   \definedfont[ebgaramond12italic*default at 42pt]
   %definedfont[ebgaramond08italic*default at 42pt]

   foo us bar ss fi ffi ffl fj\endgraf

   Thus, I came to the conclusion ...

\stoptext


could be a bug, probably the first time we run into such a case 
(specific kind of chains subs)


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] possible ligaturing bug with EB Garamond * clig

2013-04-16 Thread Philipp Gesang
Hi,

with EB Garamond Italic and contextual ligatures I get a weird
duplicate “s” for the pairing “us”:

···
\starttext

  \definefontfeature[default][default][clig=yes]
  \definedfont[ebgaramond12italic*default at 42pt]
  %definedfont[ebgaramond08italic*default at 42pt]

  foo us bar ss fi ffi ffl fj\endgraf

  Thus, I came to the conclusion ...

\stoptext
···

Occurs in Context and Luatex-Fonts, not only on my machine. Can
some confirm this? Also I’d like to know if that’s a bug in the
font or the font loader.

Thanks
Philipp

[1] Version 0.015 from here:
http://www.georgduffner.at/ebgaramond/download.html



pgpA5PJGhC3xh.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] tekst before \starttext?

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 19:56 schrieb "Meer, H. van der" :

> I thought that typesetting should start after \startext and that anything 
> before it should be ignored.
> That is indeed the case with the following input:
> 
> ABC
> \starttext
> CONTENT
> \stoptext
> 
> But add a \setupbodyfont and suddenly the ABC appears:
> 
> \setupbodyfont[lmodern]
> ABC
> \starttext
> CONTENT
> \stoptext
> 
> Is this correct behaviour? 
> It is a nuisance because this phenomenon causes a spurious blank page appears 
> in my book.
> It might be a recently introduced because I did not experience this in the 
> past.

There appears nothing in the first case because context delays font loading 
until \starttext
but when you add \setupbodyfont a font is loaded and text is no visible.

When you something in your document before \starttext which creates a blank page
something is wrong with a macro and you put something there which shouldn’t be 
there.

Wolfgang

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

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


[NTG-context] tekst before \starttext?

2013-04-16 Thread Meer, H. van der
I thought that typesetting should start after \startext and that anything 
before it should be ignored.
That is indeed the case with the following input:

ABC
\starttext
CONTENT
\stoptext

But add a \setupbodyfont and suddenly the ABC appears:

\setupbodyfont[lmodern]
ABC
\starttext
CONTENT
\stoptext

Is this correct behaviour?
It is a nuisance because this phenomenon causes a spurious blank page appears 
in my book.
It might be a recently introduced because I did not experience this in the past.

ConTeXt  ver: 2013.04.16 12:08 MKIV beta  fmt: 2013.4.16

Hans van der Meer



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

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

[NTG-context] [***SPAM***] No line break in figure-captions

2013-04-16 Thread H. Özoguz

How to prevent line break in figure captions?

\starttext

\setupcolors[state=start]

\placefigure[here]{Der männliche 
Vogelmensch.}{\externalfigure[image][width=6cm]}


\stoptext


I want the complete caption centered below the "figure 1" label. How to 
do that?


Huseyin
___
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] [***SPAM***] Centering a figure in a frame

2013-04-16 Thread Hans Hagen

On 4/16/2013 7:28 PM, "H. Özoguz" wrote:

Hi, one more shorty today:

\starttext

\placefigure[here,nonumber]{}{\framed[frame=on, offset=3mm]%

{\externalfigure[testbild][width=8cm,scale=2000]}}

\stoptext


That gives a frame around a figure. But the figure is not perfectly
centered in the frame, not all four sides have 3mm, the upper distance
of the frame is smaller than the lover distance. How to correct that?


strut=no

-
  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] [***SPAM***] Centering a figure in a frame

2013-04-16 Thread H. Özoguz

Hi, one more shorty today:

\starttext

\placefigure[here,nonumber]{}{\framed[frame=on, offset=3mm]%

{\externalfigure[testbild][width=8cm,scale=2000]}}

\stoptext


That gives a frame around a figure. But the figure is not perfectly 
centered in the frame, not all four sides have 3mm, the upper distance 
of the frame is smaller than the lover distance. How to correct that?


Huseyin
___
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] Two Bibliography questions

2013-04-16 Thread Alan BRASLAU
On Tue, 16 Apr 2013 12:38:30 -0400
john Culleton  wrote:

> For my bibliography I want to use the harvard style and the
> author-date form of the \cite command. I am using the sample.bib
> file for testing. I have progressed to the point where the bibiography
> shows the contents of sample.bib properly formatted. But I still have
> a problem with the printing of the actual citation. My \cite command
> looks like:
> \cite{Eijkhout1991}
> 
> but all that prints out is: 
> 
> [1]
> 
> Ideally I would see:
>  
> (Eijkhout, 1991) 
> 
>  What other adjustments do I need to make to correct this
> printout of the citation in the text? 
> 
> I already have the following in my preamble:
> 
> \usemodule[bib]
> \setupbibtex[database={sample},sort=author]
> \setuppublications[alternative=harvard]
> \setupcite
>[authoryear]
>[pubsep={, },
> lastpubsep={ and },
> compress=yes,
> inbetween={ },
> left={(},
> right={)}]
> 
> Second question: If I wish to restrict the printed bibilography to
> only those publications actually cited in the text with the \cite
> command or the \nocite command what do I need to change?

setuppublications [refcommand=authoryears,criterium=cite]
___
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] beta

2013-04-16 Thread Hans Hagen

On 4/16/2013 1:04 PM, Marco Patzer wrote:

On 2013–04–16 Hans Hagen wrote:


- frac fixed


Thanks.


- fixed more restrictive tex file lookup in run


   context  s-pre-17.mkiv

still works on my machine. I'm fine with that, just want to let you
know, it might not be the intended behaviour.


hm, another attempts *hopefully it doesn't break something else) .. 
always a bit of a dilemma: be tolerant or strict with the tds tree


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] Placefigure without Caption-Numbering

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 18:56 schrieb "H. Özoguz" :

> How to deactive the Caption-Numbering:
> 
> \starttext
> 
> \placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
> 
> \stoptext
> 
> I want the caption "Blub", but not the "Figure 1" label.

\placefigure[here,nonumber]{…}{…}

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

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


[NTG-context] Placefigure without Caption-Numbering

2013-04-16 Thread H. Özoguz

How to deactive the Caption-Numbering:

\starttext

\placefigure[here]{Blub}{\externalfigure[image][width=6cm]}

\stoptext


I want the caption "Blub", but not the "Figure 1" label.

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

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


Re: [NTG-context] Using Product-component

2013-04-16 Thread Hans Hagen

On 4/16/2013 5:25 PM, Aditya Mahajan wrote:

On Tue, 16 Apr 2013, Wolfgang Schuster wrote:



Am 16.04.2013 um 09:32 schrieb Aditya Mahajan :


Has something changed recently on how product-component structure is
supposed to
be used? I have three files:

1. prd.tex

   \environment env

   \startproduct prd

   \component cmp

   \stopproduct

2. env.tex


   \startenvironment env

   \define\testing{This is a test}

   \stopenvironment

3. cmp.tex


   \product prd

   \startcomponent cmp

   Testing \testing

   \stopcomponent

When I compile cmp.tex, I get:

%--%<-
[…]
mtx-context | fatal error: return code: 1%
%--%<-

Shouldn't the product file not load the component file (or anything
else inside
\startproduct .. \stopproduct) when compiling a component?


The product file loads the component but this isn’t what you’re doing.

You process the component which doesn’t load product file because this
would end in a loop
because the product would then again load the component etc.

Add “\environment env” at the begin of your component file and the
problem disappears.
Since environment files are loaded only once it doesn’t matter when
the line is in each
component file.


I thought that the whole point of adding `\product ...` in a component
file was so that I do not have to add all the `\environment ...` in the
component file.

Actually, if I change the product -> component then everything works as
expected, so perhaps I did not remember correctly how the
project-product-component hierarchy is to be used. I thought that the
project part was optional, but it seems that one must include a project
as well (if you want not to add all the environments in the component file)


see core-job.lua ... around line 435 ... there we define what gets done 
once, many times, never


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] Title of figure not below the figure, but on the right side

2013-04-16 Thread Hans Hagen

On 4/16/2013 10:10 AM, Sietse Brouwer wrote:

How can I now tell, where to place the figure? There are keys like "here",
or "force", or "bottom" and so on, how to use them in this configuration?
(my tries failed so far)


I don't know! \startplacerightfigure[location=bottom,...] should work,
but doesn't. (MWE below.)

Perhaps somebody else knows? Or perhaps this is a bug?


it's a bug ... i moved some analyzing code (while doing this combination 
extension) and forgot to check the \start variant


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] Two Bibliography questions

2013-04-16 Thread john Culleton
For my bibliography I want to use the harvard style and the
author-date form of the \cite command. I am using the sample.bib
file for testing. I have progressed to the point where the bibiography
shows the contents of sample.bib properly formatted. But I still have a problem
with the printing of the actual citation. My \cite command looks
like:
\cite{Eijkhout1991}

but all that prints out is: 

[1]

Ideally I would see:
 
(Eijkhout, 1991) 

 What other adjustments do I need to make to correct this
printout of the citation in the text? 

I already have the following in my preamble:

\usemodule[bib]
\setupbibtex[database={sample},sort=author]
\setuppublications[alternative=harvard]
\setupcite
   [authoryear]
   [pubsep={, },
lastpubsep={ and },
compress=yes,
inbetween={ },
left={(},
right={)}]

Second question: If I wish to restrict the printed bibilography to only
those publications actually cited in the text with the \cite command or
the \nocite command what do I need to change?


-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at http://www.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] How to typeset the titlepage and its verso in ConTeXt?

2013-04-16 Thread Tim Li
Thanks very much, it works exactly!
 From: schuster.wolfg...@gmail.com
Date: Tue, 16 Apr 2013 17:51:15 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] How to typeset the titlepage and its verso in
ConTeXt?


Am 16.04.2013 um 17:41 schrieb Tim Li :





I try to typeset the titlepage and its verso using ConTeXt, but it always 
generate an empty page on the right if facing. 
 
\setupinteraction
  
   [state=stop,
   
 title=Life in These Days,
   
 author=Tim Li]

\setupinteractionscreen
  
   [option=doublesided]


 
\usetypescript[palatino]

\setupbodyfont[palatino,12pt]


 
\setuppagenumbering
  
   [location={footer,middle},
   
alternative=doublesided]


 
\setupmakeup
  
   [standard]
  
   [pagestate=start]
 
\setupmakeup  [standard]  [pagestate=start,   page=yes]
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] Center-Aligment in column spans

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 18:20 schrieb "H. Özoguz" :

> Am 16.04.2013 17:41, schrieb ntg-context-requ...@ntg.nl:
>>> \starttext
>>> >> 
>>> >> \starttable[|l|l|l|]
>>> >> \NC \bf Methode \VL \bf Relevanz \VL \bf Bewertung \NC\AR
>>> >> \HL
>>> >> \NC \THREE\JustCenter \it Nat?rliche Methoden \NC\AR
>>> >> \HL
>>> >> \NC Klevirak \VL 5-6 \VL Toll \NC\AR
>>> >> \stoptable
>>> >> 
>>> >> \stoptext
>>> >> 
>>> >> Wolfgang
>> > 
>> > Thanks! And how to center the complete table on the page?
> 
> Now I see that \JustCenter does not really center:
> 
> \starttext
> \starttable[|l|c|l|]
> \NC {\bf Column 1} \VL {\bf Column 2} \VL {\bf Column 3} \SR
> \HL \THREE\JustCenter \it Natürliche Methoden \SR
> \NC First entry \VL short entry \VL looogn entry \AR
> \stoptable
> \stoptext
> 
> You can see, that "Natürliche Methoden" is not correctly centered. For my 
> purpose, it would be indeed not best to center it with respect to the 
> complete row of the table, but with respect to the middle-column (second one) 
> only. So that "Natürliche Methoden" is directly centered above "short entry". 
> Howto?

The text isn’t centered in your example because you always miss tags.

1. You forgot the \NC before \AR and \SR.

2. You forgot the \NC at the begin of the second row.

3. You don’t need braces around \bf because style change are local to cells.

\starttext
\starttable[|l|c|l|]
\NC \bf Column 1 \VL \bf Column 2 \VL \bf Column 3 \NC\AR
\HL
\NC \THREE\JustCenter \it Natürliche Methoden \NC\AR
\NC First entry \VL short entry \VL looogn entry \NC\AR
\stoptable
\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] How to find the source code/documentation for a specific command

2013-04-16 Thread Hans Hagen

On 4/16/2013 6:07 PM, cont...@thomas-corbiere.name wrote:

Hello ConTeXt list,

I am a new user of ConTeXt and I am trying to write my very first
document with this program.
However, it is often difficult to find explanation about commands and
their options.
Most of the documentation and examples seems outdated or incomplete... I
know that you are
currently writing a new version of the manuals and that it is a time
consuming task so
before I plague you with questions I may have, I would like to know how
to find the source
code of a command (which may include embedded documentation).

For example how can I find the source file for the \setupinteraction
command? (I am using ConTeXt
on Windows.). If I can find more information by myself I will not have
to take too much of your
time.


interaction is mostly dealt with in scrn-* files and strc-ref

don't get too confused by dates of manuals, many commands are still the 
same (maybe extended) like for instance interaction related commands


anyhow, there is a zip with test files on the webbsite that has lots of 
(test) examples, somewhat organized that you can run as test


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] Center-Aligment in column spans

2013-04-16 Thread H. Özoguz

Am 16.04.2013 17:41, schrieb ntg-context-requ...@ntg.nl:

\starttext
>>
>>\starttable[|l|l|l|]
>>\NC \bf Methode \VL \bf Relevanz \VL \bf Bewertung \NC\AR
>>\HL
>>\NC \THREE\JustCenter \it Nat?rliche Methoden \NC\AR
>>\HL
>>\NC Klevirak \VL 5-6 \VL Toll \NC\AR
>>\stoptable
>>
>>\stoptext
>>
>>Wolfgang

>
>Thanks! And how to center the complete table on the page?


Now I see that \JustCenter does not really center:

\starttext

\starttable[|l|c|l|]

\NC {\bf Column 1} \VL {\bf Column 2} \VL {\bf Column 3} \SR

\HL \THREE\JustCenter \it Natürliche Methoden \SR

\NC First entry \VL short entry \VL looogn entry \AR

\stoptable

\stoptext


You can see, that "Natürliche Methoden" is not correctly centered. For 
my purpose, it would be indeed not best to center it with respect to the 
complete row of the table, but with respect to the middle-column (second 
one) only. So that "Natürliche Methoden" is directly centered above 
"short entry". Howto?


Thanks.

Huseyin



___
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] How to find the source code/documentation for a specific command

2013-04-16 Thread contact

Hello ConTeXt list,

I am a new user of ConTeXt and I am trying to write my very first 
document with this program.
However, it is often difficult to find explanation about commands and 
their options.
Most of the documentation and examples seems outdated or incomplete... 
I know that you are
currently writing a new version of the manuals and that it is a time 
consuming task so
before I plague you with questions I may have, I would like to know how 
to find the source

code of a command (which may include embedded documentation).

For example how can I find the source file for the \setupinteraction 
command? (I am using ConTeXt
on Windows.). If I can find more information by myself I will not have 
to take too much of your

time.

Regards,

Thomas Corbière

___
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 difference between \def and \define

2013-04-16 Thread Hans Hagen

On 4/16/2013 12:11 PM, Marco Patzer wrote:

On 2013–04–16 Thomas A. Schmitz wrote:


I'm not lobbying for define to have something similar, I just want
to point out that it would be in the spirit of convergence between
ConTeXt and Lua. It certainly isn't an urgent need, but having

\define[one,two,three]

wouldn't be absurd, now would it?


Sorry, misunderstanding on my part. That one looks fine. I thought
we're talking about translating the number to words, which wouldn't
make any sense:

   \define[3]\foo{#one, #two, #three}

I still don't think it's necessary to use named parameters with
\define. For modules most likely \def, \setvalue or texdefinition
are being used and \define for in-document markup, wherefore
numbered parameters are perfectly fine. The only thing that could be
improved is a definition which doesn't interfere with \asciimode,
but that's low priority and can easily be worked around.


It's also messy (in parsing):

\define[#one,#two]\test{#one#two}

there we have to collect and move the test backwards. Also, names 
defeats the use of the one number becoming multiple #'s so it then close to


\define\test[#one,#two]{#one#two}

which is nearly

\def\test[#one,#two]{#one#two}

apart from the checking, so i decided to provide this:

\checked\def \whatevera#alpha#beta{#alpha + #beta}
\checked\edef\whatevera#alpha#beta{#beta + #alpha}

\unique \def \whateverb#alpha#beta{#alpha + #beta}
\unique \edef\whateverb#alpha#beta{#beta + #alpha}

\whatevera{1}{2}\par
\whateverb{1}{2}\par

(can be used with \def \edef \xdef \gdef \udef \uedef \uxdef and \ugdef)

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] where is completecontent defined?

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 17:51 schrieb "Meer, H. van der" :

> I tried to find the definition of \completecontent in the source, but 
> searching for it doesn't turn up its occurence. Where do I have to look?

The \completecontent command is created with \definecombinedlist[content].

The definition for \definecombinedlist is in strc-lst.mkvi but \completecontent 
is defined in strc-def.mkiv

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

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


[NTG-context] where is completecontent defined?

2013-04-16 Thread Meer, H. van der
I tried to find the definition of \completecontent in the source, but searching 
for it doesn't turn up its occurence. Where do I have to look?

Hans van der Meer



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

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


Re: [NTG-context] How to typeset the titlepage and its verso in ConTeXt?

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 17:41 schrieb Tim Li :

> I try to typeset the titlepage and its verso using ConTeXt, but it always 
> generate an empty page on the right if facing. 
>  
> \setupinteraction
> [state=stop,
>  title=Life in These Days,
>  author=Tim Li] 
> \setupinteractionscreen   
>[option=doublesided] 
>  
> \usetypescript[palatino] 
> \setupbodyfont[palatino,12pt] 
>  
> \setuppagenumbering   
>[location={footer,middle},
> alternative=doublesided] 
>  
> \setupmakeup   
>[standard]   
>[pagestate=start]  

\setupmakeup
  [standard]
  [pagestate=start,
   page=yes]

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

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

[NTG-context] How to typeset the titlepage and its verso in ConTeXt?

2013-04-16 Thread Tim Li



I try to typeset the titlepage and its verso using ConTeXt, but it always 
generate an empty page on the right if facing. 
 
\setupinteraction
  
   [state=stop,
   
 title=Life in These Days,
   
 author=Tim Li]

\setupinteractionscreen
  
   [option=doublesided]


 
\usetypescript[palatino]

\setupbodyfont[palatino,12pt]


 
\setuppagenumbering
  
   [location={footer,middle},
   
alternative=doublesided]


 
\setupmakeup
  
   [standard]
  
   [pagestate=start]


 
\starttext


\startfrontmatter

% titlepage

\startmakeup[standard]  %[doublesided=no]

\vskip2in

\midaligned{\switchtobodyfont[36pt]\bf Life in These Days}

\vfill

\midaligned{\switchtobodyfont[20pt]\bf Tim Li}

\blank[medium]

\midaligned{\switchtobodyfont[20pt]\bf January 11, 2013}

\stopmakeup


% its verso

\startmakeup[standard]
  %[page=no]
This document was typeset by using \CONTEXT.

\vfill

\stopmakeup
% dedication
%
preface
% contents
\stopfrontmatter
 
\startbodymatter

% 

\stopbodymatter

\stoptext
 
If add [doubesided=no] to the first \startmakeup[standard] that produce the 
titlepage, it will produce a page with page number 2 at the right of the 
titlepage and the verso of this titlepage will be the next page following page 
2. That's not what I want.
 
How to set the options of the \startmakeup so that I can typeset the titlepage 
with its verso just after it. If so, when  the document is printed, the 
titlepage and its verso will be presented on the same paper like that in the 
ConTeXt manual(if printed, the tiltepage and its verso of the manual will be on 
the same paper).

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

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

Re: [NTG-context] Using Product-component

2013-04-16 Thread Aditya Mahajan

On Tue, 16 Apr 2013, Wolfgang Schuster wrote:



Am 16.04.2013 um 09:32 schrieb Aditya Mahajan :


Has something changed recently on how product-component structure is supposed to
be used? I have three files:

1. prd.tex

   \environment env

   \startproduct prd

   \component cmp

   \stopproduct

2. env.tex


   \startenvironment env

   \define\testing{This is a test}

   \stopenvironment

3. cmp.tex


   \product prd

   \startcomponent cmp

   Testing \testing

   \stopcomponent

When I compile cmp.tex, I get:

%--%<-
[…]
mtx-context | fatal error: return code: 1% 
%--%<-

Shouldn't the product file not load the component file (or anything else inside
\startproduct .. \stopproduct) when compiling a component?


The product file loads the component but this isn’t what you’re doing.

You process the component which doesn’t load product file because this would 
end in a loop
because the product would then again load the component etc.

Add “\environment env” at the begin of your component file and the problem 
disappears.
Since environment files are loaded only once it doesn’t matter when the line is 
in each
component file.


I thought that the whole point of adding `\product ...` in a component 
file was so that I do not have to add all the `\environment ...` in the 
component file.


Actually, if I change the product -> component then everything works as 
expected, so perhaps I did not remember correctly how the 
project-product-component hierarchy is to be used. I thought that the 
project part was optional, but it seems that one must include a project as 
well (if you want not to add all the environments in the component file)


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] Center-Aligment in column spans

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 15:13 schrieb H. Özoguz :

>> \starttext
>> 
>> \starttable[|l|l|l|]
>> \NC \bf Methode \VL \bf Relevanz \VL \bf Bewertung \NC\AR
>> \HL
>> \NC \THREE\JustCenter \it Natürliche Methoden \NC\AR
>> \HL
>> \NC Klevirak \VL 5-6 \VL Toll \NC\AR
>> \stoptable
>> 
>> \stoptext
>> 
>> Wolfgang
> 
> Thanks! And how to center the complete table on the page?

\startplacetable[location={none,force}]

\stopplacetable

or

\startlinealignment[middle]

\stoplinealignment

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] select TOC elements

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 10:46 schrieb "Meer, H. van der" :

> With \placecontents I am able to put the TOC for a chapter right after the 
> chapter heading. So far so good. But now I would like to suppress in the 
> overall TOC all elements below the chapters. 
> How to? 
> At the moment I am using \completecontent for calling up the TOC. I looked in 
> the ConTeXtGarden but the explanation for \completecontent didn't make me any 
> wiser.For example, I do not understand the meaning of the three successive 
> []-pairs in \completecontent[..][..][..] and the link to \setuplist didn't 
> help me out.

The syntax description is wrong, \placecontent has only one optional argument 
which expects a assignment, e.g. alternative=a.

To place only TOC entry for certain headings you have to use \placelist, e.g. 
\placelist[section].

\starttext

\chapter{One}
\placelist[section]
\section{First}
\section{Second}
\chapter{Two}
\placelist[section]
\section{Third}
\section{Fourth}
\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] Center-Aligment in column spans

2013-04-16 Thread H. Özoguz

\starttext

\starttable[|l|l|l|]
\NC \bf Methode \VL \bf Relevanz \VL \bf Bewertung \NC\AR
\HL
\NC \THREE\JustCenter \it Natürliche Methoden \NC\AR
\HL
\NC Klevirak \VL 5-6 \VL Toll \NC\AR
\stoptable

\stoptext

Wolfgang


Thanks! And how to center the complete table on the 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] Center-Aligment in column spans

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 14:40 schrieb H. Özoguz :

> Hi,
> 
> my table is:
> 
> \starttext
> \starttable[|l|l|l|]
> 
> \NC {\bf Methode} \VL {\bf Relevanz} \VL {\bf Bewertung} \SR
> 
> \HL \use{3} {\it Natürliche Methoden} \SR
> 
> \NC Klevirak \VL 5-6 \VL Toll \AR
> 
> \stoptable
> 
> \stoptext
> 
> 
> I know want the spanning column with the entry "Natürliche Methoden" to be 
> aligned in the center ob the cell. Direct trys with \startaligment[center] 
> failed, who knows how?

\starttext

\starttable[|l|l|l|]
\NC \bf Methode \VL \bf Relevanz \VL \bf Bewertung \NC\AR
\HL
\NC \THREE\JustCenter \it Natürliche Methoden \NC\AR
\HL
\NC Klevirak \VL 5-6 \VL Toll \NC\AR
\stoptable

\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] Using Product-component

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 09:32 schrieb Aditya Mahajan :

> Has something changed recently on how product-component structure is supposed 
> to
> be used? I have three files:
> 
> 1. prd.tex
> 
>\environment env
> 
>\startproduct prd
> 
>\component cmp
> 
>\stopproduct
> 
> 2. env.tex
> 
> 
>\startenvironment env
> 
>\define\testing{This is a test}
> 
>\stopenvironment
> 
> 3. cmp.tex
> 
> 
>\product prd
> 
>\startcomponent cmp
> 
>Testing \testing
> 
>\stopcomponent
> 
> When I compile cmp.tex, I get:
> 
> %--%<-
> […]
> mtx-context | fatal error: return code: 1% 
> %--%<-
> 
> Shouldn't the product file not load the component file (or anything else 
> inside
> \startproduct .. \stopproduct) when compiling a component?

The product file loads the component but this isn’t what you’re doing.

You process the component which doesn’t load product file because this would 
end in a loop
because the product would then again load the component etc.

Add “\environment env” at the begin of your component file and the problem 
disappears.
Since environment files are loaded only once it doesn’t matter when the line is 
in each
component file.

Wolfgang

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

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


[NTG-context] Center-Aligment in column spans

2013-04-16 Thread H. Özoguz

Hi,

my table is:

\starttext
\starttable[|l|l|l|]

\NC {\bf Methode} \VL {\bf Relevanz} \VL {\bf Bewertung} \SR

\HL \use{3} {\it Natürliche Methoden} \SR

\NC Klevirak \VL 5-6 \VL Toll \AR

\stoptable

\stoptext


I know want the spanning column with the entry "Natürliche Methoden" to 
be aligned in the center ob the cell. Direct trys with 
\startaligment[center] failed, who knows how?


Thanks
Huseyin

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

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


Re: [NTG-context] Using Product-component

2013-04-16 Thread d.henman

As far as I know nothing in the project-component framework has a directive 
such as
you have in the line below:

"Testing \testing  "

That could be the problem.


Aditya Mahajan  wrote:

> Has something changed recently on how product-component structure is supposed 
> to
> be used? I have three files:
> 
> 1. prd.tex
> 
> \environment env
> 
> \startproduct prd
> 
> \component cmp
> 
> \stopproduct
> 
> 2. env.tex
> 
> 
> \startenvironment env
> 
> \define\testing{This is a test}
> 
> \stopenvironment
> 
> 3. cmp.tex
> 
> 
> \product prd
> 
> \startcomponent cmp
> 
> Testing \testing
> 
> \stopcomponent
> 
> When I compile cmp.tex, I get:
> 
> %--%<-
> mtx-context | run 1: luatex 
> --fmt="/home/adityam/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
>  --jobname="cmp" 
> --lua="/home/adityam/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
>  --no-parse-first-line --c:currentrun=1 --c:fulljobname="./cmp" 
> --c:input="./cmp" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"
> This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627)
>  \write18 enabled.
> (/home/adityam/media/opt/context-minimals/texmf-context/tex/context/base/cont-yes.mkiv
> 
> ConTeXt  ver: 2013.04.14 16:51 MKIV beta  fmt: 2013.4.14  int: english/english
> 
> system  > 'cont-new.mkiv' loaded
> (/home/adityam/media/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv)
> system  > files > jobname 'cmp', input 'cmp', result 'cmp'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> (cmp.tex{/home/adityam/media/opt/context-minimals/texmf-fonts/fonts/map/pdftex/context/mkiv-base.map}
> fonts   > preloading latin modern fonts (second stage)
> fonts   > typescripts > unknown library 'loc'
> {/home/adityam/media/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-math.map}{/home/adityam/media/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-rm.map}
> fonts   > 'fallback modern rm 12pt' is loaded
> (prd.tex (env.tex) (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex 
> (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex 
> (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex 
> (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex 
> (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex 
> (cmp.tex (prd.tex
> ! TeX capacity exceeded, sorry [text input levels=127].
> 
> system  > tex > error on line 5 in file prd.tex: TeX capacity 
> exceeded, sorry [ ...
> 
> 1 \environment env
> 2 3 \startproduct prd
> 4 5 >>  \component cmp
> 6 7 \stopproduct
> 8
> 
> 
> \ctxcommand #1^^@-\directlua {commands.#1}
> 
> l.5 }
> 
> \ctxcommand #1^^@-\directlua {commands.#1}
> 
> l.5 \component cmp
> 
> !  ==> Fatal error occurred, no output PDF file produced!
> mtx-context | fatal error: return code: 1%
> %--%<-
> 
> Shouldn't the product file not load the component file (or anything else 
> inside
> \startproduct .. \stopproduct) when compiling a component?
> ___
> 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] the difference between \def and \define

2013-04-16 Thread Hans Hagen

On 4/16/2013 1:14 PM, Alan BRASLAU wrote:

Since the question has been raised about understanding \define, etc.
indeed some use remains a bit unclear (to me).

On Tue, 16 Apr 2013 12:34:48 +0200
Hans Hagen  wrote:


there is a commented blob that implements thinsg like this

\starttext
  \define[2]\whatevera{#1+#2}
  \whatevera{A}{B}
  \define[me][too][2]\whateverb{#1+#2+#3+#4}
  \whateverb[A]{B}{C}
  \whateverb[A][B]{C}{D}
  \define[alpha][beta][gamma][delta]\whateverc{#1+#2+#3+#4}
  \whateverc[P][Q]
\stoptext

but it's just an old idea.


I am perhaps a bit bewildered today... but I do not understand the
above. It gets too tricky for me!


that's why it's commented code -)

\define
  [optional-arg-1-default][optional-arg-2-default]...[number of {} args]

but .. not likely to become enabled anyway (was an experiment)


Or, maybe, I might like to handle authors:
\define[2]\Author{\index{#2, #1}#1 #2}
\Author{Thomas A.}{Schmitz}
But what if I were to type \Author{Aristotle}?


the [] are optional with an optional default


\define[one,two,three]\whatever{first: #one second: #two third: #three}


that's not too complex to implement (as mkvi) if there's enough votes 
for it



On 4/16/2013 11:10 AM, Thomas A. Schmitz wrote:

It certainly isn't an urgent need, but having

\define[one,two,three]

wouldn't be absurd, now would it?



--

-
  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] the difference between \def and \define

2013-04-16 Thread Alan BRASLAU
Since the question has been raised about understanding \define, etc.
indeed some use remains a bit unclear (to me).

On Tue, 16 Apr 2013 12:34:48 +0200
Hans Hagen  wrote:

> there is a commented blob that implements thinsg like this
> 
> \starttext
>  \define[2]\whatevera{#1+#2}
>  \whatevera{A}{B}
>  \define[me][too][2]\whateverb{#1+#2+#3+#4}
>  \whateverb[A]{B}{C}
>  \whateverb[A][B]{C}{D}
>  \define[alpha][beta][gamma][delta]\whateverc{#1+#2+#3+#4}
>  \whateverc[P][Q]
> \stoptext
> 
> but it's just an old idea.

I am perhaps a bit bewildered today... but I do not understand the
above. It gets too tricky for me!

In fact, I do not understand well the handling of arguments,
especially optional variants.
For example,
\define[1]\Index{\index{#1}#1}
can be handy. But let's say that I want to be able to use a variant:
\Index[alpha]{$\alpha$}
(\index[alpha]{$\alpha$}$\alpha$)

Or, maybe, I might like to handle authors:
\define[2]\Author{\index{#2, #1}#1 #2}
\Author{Thomas A.}{Schmitz}
But what if I were to type \Author{Aristotle}?

Alan

P.S. I indeed like the idea of the suggestion:

\define[one,two,three]\whatever{first: #one second: #two third: #three}

On 4/16/2013 11:10 AM, Thomas A. Schmitz wrote:
> It certainly isn't an urgent need, but having
>
> \define[one,two,three]
>
> wouldn't be absurd, now would it?
___
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] beta

2013-04-16 Thread Marco Patzer
On 2013–04–16 Hans Hagen wrote:

> - frac fixed

Thanks.

> - fixed more restrictive tex file lookup in run

  context  s-pre-17.mkiv

still works on my machine. I'm fine with that, just want to let you
know, it might not be the intended behaviour.

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] how to clear the header and footer in some page?

2013-04-16 Thread Tim Li
oh, sorry, I must remember to do this next time.
 Date: Tue, 16 Apr 2013 12:41:57 +0200
From: home...@lavabit.com
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] how to clear the header and footer in some page?

On 2013�C04�C16 Tim Li wrote:
 
>  I have set the header and footer in the setup area, so it will
>  occur in every page unless clearing them. In some pages, for
>  example, the page of dedication that the header and footer
>  shouldn't occur there, how can I clear them in  pages like this ?
 
It would be nice to provide a minimal example next time. It's not
always necessary for understanding, but it's just simpler to
copy-paste the code than to write it yourself. It will increase the
chances of getting a response.
 
\setupheadertexts
  [My Header]
 
\definehead
  [dedication]
  [chapter]
  [header=empty]
 
\starttext
 
  \startchapter [title=Foo]
\input knuth
  \stopchapter
  
  \startdedication [title=Dedication]
\input knuth
  \stopdedication
  
  \startchapter [title=Bar]
\input knuth
  \stopchapter
 
\stoptext
 
 
Marco

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
   ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] beta

2013-04-16 Thread Hans Hagen

Hi,

I uploaded a beta:

- combinations extended cf mails on this list
- new windows stubs (might need testing)
- frac fixed
- fixed more restrictive tex file lookup in run

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] how to clear the header and footer in some page?

2013-04-16 Thread Marco Patzer
On 2013–04–16 Tim Li wrote:

>  I have set the header and footer in the setup area, so it will
>  occur in every page unless clearing them. In some pages, for
>  example, the page of dedication that the header and footer
>  shouldn't occur there, how can I clear them in  pages like this ?

It would be nice to provide a minimal example next time. It's not
always necessary for understanding, but it's just simpler to
copy-paste the code than to write it yourself. It will increase the
chances of getting a response.

\setupheadertexts
  [My Header]

\definehead
  [dedication]
  [chapter]
  [header=empty]

\starttext

  \startchapter [title=Foo]
\input knuth
  \stopchapter
  
  \startdedication [title=Dedication]
\input knuth
  \stopdedication
  
  \startchapter [title=Bar]
\input knuth
  \stopchapter

\stoptext


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] the difference between \def and \define

2013-04-16 Thread Hans Hagen

On 4/16/2013 11:10 AM, Thomas A. Schmitz wrote:

On 04/16/2013 11:05 AM, Marco Patzer wrote:

It doesn't make sense to use named parameters with
\define, since you explicitly pass the parameter*number*  in
brackets. You cannot refer to a number by name. Well, you could
theoretically, but I'd strongly object.


Just out of curiosity: why would you object? In Lua, we have the syntax

function whatever(one, two, three)
   do something with(one, two, three)
end

I'm not lobbying for define to have something similar, I just want to
point out that it would be in the spirit of convergence between ConTeXt
and Lua. It certainly isn't an urgent need, but having

\define[one,two,three]

wouldn't be absurd, now would it?


there is a commented blob that implements thinsg like this

\starttext
\define[2]\whatevera{#1+#2}
\whatevera{A}{B}
\define[me][too][2]\whateverb{#1+#2+#3+#4}
\whateverb[A]{B}{C}
\whateverb[A][B]{C}{D}
\define[alpha][beta][gamma][delta]\whateverc{#1+#2+#3+#4}
\whateverc[P][Q]
\stoptext

but it's just an old idea.

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] how to clear the header and footer in some page?

2013-04-16 Thread Tim Li
 I have set the header and footer in the setup area, so it will occur in every 
page unless clearing them. In some pages, for example, the page of dedication 
that the header and footer shouldn't occur there, how can I clear them in  
pages like this ?   Best regards. ___
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 difference between \def and \define

2013-04-16 Thread Marco Patzer
On 2013–04–16 Thomas A. Schmitz wrote:

> I'm not lobbying for define to have something similar, I just want
> to point out that it would be in the spirit of convergence between
> ConTeXt and Lua. It certainly isn't an urgent need, but having
> 
> \define[one,two,three]
> 
> wouldn't be absurd, now would it?

Sorry, misunderstanding on my part. That one looks fine. I thought
we're talking about translating the number to words, which wouldn't
make any sense:

  \define[3]\foo{#one, #two, #three}

I still don't think it's necessary to use named parameters with
\define. For modules most likely \def, \setvalue or texdefinition
are being used and \define for in-document markup, wherefore
numbered parameters are perfectly fine. The only thing that could be
improved is a definition which doesn't interfere with \asciimode,
but that's low priority and can easily be worked around.

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] the difference between \def and \define

2013-04-16 Thread Thomas A. Schmitz

On 04/16/2013 11:05 AM, Marco Patzer wrote:

It doesn't make sense to use named parameters with
\define, since you explicitly pass the parameter*number*  in
brackets. You cannot refer to a number by name. Well, you could
theoretically, but I'd strongly object.


Just out of curiosity: why would you object? In Lua, we have the syntax

function whatever(one, two, three)
  do something with(one, two, three)
end

I'm not lobbying for define to have something similar, I just want to 
point out that it would be in the spirit of convergence between ConTeXt 
and Lua. It certainly isn't an urgent need, but having


\define[one,two,three]

wouldn't be absurd, now would it?

Thomas
___
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 difference between \def and \define

2013-04-16 Thread Marco Patzer
On 2013–04–16 Hans Hagen wrote:

> >Marco tries to do something like
> >
> >   \define[3]\Test{#one#two#three}
> >
> >which doesn’t work.
> 
> hm, ok, do \define is not mkvi then ... too messy to catch that one too

No need to bother with that. I was just pointing out the differences
between \def and \define for Tim. And named parameters is something
\define can't do. It doesn't make sense to use named parameters with
\define, since you explicitly pass the parameter *number* in
brackets. You cannot refer to a number by name. Well, you could
theoretically, but I'd strongly object.


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Sadness from a Windows ConTeXt user

2013-04-16 Thread Tim Li
Thanks very much. I have updated my context and the problem has disappeared. 
 > Date: Tue, 16 Apr 2013 09:42:45 +0200
> From: pra...@wxs.nl
> To: ntg-context@ntg.nl
> CC: mojca.miklavec.li...@gmail.com
> Subject: Re: [NTG-context] Sadness from a Windows ConTeXt user
> 
> On 4/16/2013 8:00 AM, Mojca Miklavec wrote:
> > Hi,
> >
> > This was a known problem for a short period of time, but I thought that
> > both Akira and Hans fixed it by now. (Hans added a workaround.)
> 
> eh ... you asked me to remove that workaround as the binary would be 
> fixed ... it's either using the build in spec (somewhat messy) or using 
> our own path spec (more controlled)
> 
> the built in path cannot be used to determine if we have a garden 
> version and we also cannot inject something in it as one doesn't know 
> where to insert the texmf path (if not present) because the order of 
> path sis not standardized
> 
> (ok, i could probably mess a bit and try inject the texmf path at the 
> end, which the might result in double loading of trees but i'd rather 
> first see if the bin is fixed)
> 
> the luatex i synced with the garden a few minutes ago gives:
> 
> table={
>   "C:/Users/hagen/texmf/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin/bin/",
>  
> "c:/data/develop/tex-context/tex/texmf-mswin/bin//share/texmf-local/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin/bin//share/texmf-dist/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin/bin//share/texmf/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin/bin//texmf-local/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin/bin//texmf-dist/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin/bin//texmf/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin/",
>   "c:/data/develop/tex-context/tex/texmf-mswin//share/texmf-local/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin//share/texmf-dist/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin//share/texmf/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin//texmf-local/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin//texmf-dist/web2c",
>   "c:/data/develop/tex-context/tex/texmf-mswin//texmf/web2c",
>   "c:/data/develop/tex-context/texmf-local/web2c",
>   "c:/data/develop/tex-context/tex/",
>   "c:/data/develop/tex-context/tex//share/texmf-local/web2c",
>   "c:/data/develop/tex-context/tex//share/texmf-dist/web2c",
>   "c:/data/develop/tex-context/tex//share/texmf/web2c",
>   "c:/data/develop/tex-context/tex//texmf-local/web2c",
>   "c:/data/develop/tex-context/tex//texmf-dist/web2c",
>   "c:/data/develop/tex-context/tex//texmf/web2c",
> }
> 
> so it looks like texmf is back in the list
> 
> 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
> ___
  ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Cambria math broken in current beta

2013-04-16 Thread Janne Junnila
Thanks, that solved the issue!

Janne

On Tue, Apr 16, 2013 at 11:57 AM, Hans Hagen  wrote:
> On 4/16/2013 10:51 AM, Janne Junnila wrote:
>>
>> Upon closer inspection \setupbodyfont[cambria,cambria-m,12pt] works
>> for me while plain \setupbodyfont[cambria,12pt] does not anymore.
>> Minimal example would be:
>>
>> \setupbodyfont[cambria,12pt]
>>
>> \starttext
>> \startformula
>> \log x + \log y = \log(xy)
>> \stopformula
>> \stoptext
>
>
> that works here, maybe run "mtxrun --script font --reload --force"
>
>
> 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] Cambria math broken in current beta

2013-04-16 Thread Hans Hagen

On 4/16/2013 10:51 AM, Janne Junnila wrote:

Upon closer inspection \setupbodyfont[cambria,cambria-m,12pt] works
for me while plain \setupbodyfont[cambria,12pt] does not anymore.
Minimal example would be:

\setupbodyfont[cambria,12pt]

\starttext
\startformula
\log x + \log y = \log(xy)
\stopformula
\stoptext


that works here, maybe run "mtxrun --script font --reload --force"

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] Cambria math broken in current beta

2013-04-16 Thread Janne Junnila
Upon closer inspection \setupbodyfont[cambria,cambria-m,12pt] works
for me while plain \setupbodyfont[cambria,12pt] does not anymore.
Minimal example would be:

\setupbodyfont[cambria,12pt]

\starttext
\startformula
\log x + \log y = \log(xy)
\stopformula
\stoptext

Janne


On Tue, Apr 16, 2013 at 11:40 AM, Hans Hagen  wrote:
> On 4/16/2013 9:57 AM, Janne Junnila wrote:
>>
>> Hi,
>>
>> After updating, I'm getting error messages like the following:
>>
>> fonts   > defining > font with asked name 'cambriamath' is not
>> found using lookup 'name'
>> fonts   > defining > unknown font 'cambriamath', loading aborted
>> fonts   > defining > unable to define 'cambriamath' as
>> 'cambria-12pt-mm-mr--3'
>>
>> The relevant files seem to be loaded, however:
>>
>> mkiv lua stats  > loaded fonts: 4 files: cambria.ttc cambriab.ttf
>> cambriai.ttf cambriaz.ttf
>
>
> hard to say what's happening .. no test file ... works ok here
>
> 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] select TOC elements

2013-04-16 Thread Meer, H. van der
With \placecontents I am able to put the TOC for a chapter right after the 
chapter heading. So far so good. But now I would like to suppress in the 
overall TOC all elements below the chapters. 
How to? 
At the moment I am using \completecontent for calling up the TOC. I looked in 
the ConTeXtGarden but the explanation for \completecontent didn't make me any 
wiser.For example, I do not understand the meaning of the three successive 
[]-pairs in \completecontent[..][..][..] and the link to \setuplist didn't help 
me out.

Hans van der Meer



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

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


Re: [NTG-context] the difference between \def and \define

2013-04-16 Thread Hans Hagen

On 4/15/2013 4:21 PM, Wolfgang Schuster wrote:


Am 15.04.2013 um 16:12 schrieb Hans Hagen :


On 4/15/2013 4:07 PM, Marco Patzer wrote:


I don't think named parameters are possible with \define, but maybe
I'm mistaken.


just use suffix .mkvi or put "% macros=mkvi" at the top of your file


Marco tries to do something like

   \define[3]\Test{#one#two#three}

which doesn’t work.


hm, ok, do \define is not mkvi then ... too messy to catch that one too

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

2013-04-16 Thread Hans Hagen

On 4/15/2013 6:45 PM, Sietse Brouwer wrote:

Perhaps the default for the label could be numberconversion=character
--- subfigures are more commonly numbered a, b, c, I think.


ok

-
  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] Cambria math broken in current beta

2013-04-16 Thread Hans Hagen

On 4/16/2013 9:57 AM, Janne Junnila wrote:

Hi,

After updating, I'm getting error messages like the following:

fonts   > defining > font with asked name 'cambriamath' is not
found using lookup 'name'
fonts   > defining > unknown font 'cambriamath', loading aborted
fonts   > defining > unable to define 'cambriamath' as
'cambria-12pt-mm-mr--3'

The relevant files seem to be loaded, however:

mkiv lua stats  > loaded fonts: 4 files: cambria.ttc cambriab.ttf
cambriai.ttf cambriaz.ttf


hard to say what's happening .. no test file ... works ok here

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] \frac broken in current beta

2013-04-16 Thread Hans Hagen

On 4/16/2013 9:52 AM, Marco Patzer wrote:

Hi,

\starttext
   \math{\frac12}
\stoptext

gives

! LuaTeX error [string "\directlua "]:1: attempt to call field 'math_frac' (a n
il value)
stack traceback:
 [string "\directlua "]:1: in main chunk.


ah, missing file, i'll upload a new zip (first add the requested 
combination stuff)


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] header variations how?

2013-04-16 Thread Aditya Mahajan

On Tue, 16 Apr 2013, Meer, H. van der wrote:


I tried similar examples from the manual and these fail even more badly:

\chapter{Influences \nomarking{in the 20th century:} an introduction}
\chapter{Influences in the 20th century\nolist{: an introduction}}

The macros on page 204 give \nomarking and \nolist as undefined macros! Both in 
\chapter{} as in \startchapter[title={}] form.

What can be hapening here?


They are no longer needed. The new syntax is:

\startchapter[title=..., marking=..., list=..., bookmark=...]

\stopchapter

so you can explicitly set whawt needs to go into the marking, list, and 
bookmark.


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] header variations how?

2013-04-16 Thread Meer, H. van der
I tried similar examples from the manual and these fail even more badly:

\chapter{Influences \nomarking{in the 20th century:} an introduction}
\chapter{Influences in the 20th century\nolist{: an introduction}}

The macros on page 204 give \nomarking and \nolist as undefined macros! Both in 
\chapter{} as in \startchapter[title={}] form.

What can be hapening here?

Hans van der Meer

On 16 Apr 2013, at 10:08 AM, "Meer, H. van der" 
mailto:h.vanderm...@uva.nl>> wrote:

I tried to put the sectionnumbers in the margin, but it didn't work. The I 
looked at the example in the ConTeXt Reference Manual and this didn't work 
either. Why?
See the minimal example below where the manual is contrasted with the actual 
output.

Hans van der Meer

\setuppapersize[A5][A5]
\starttext
\startchapter[title=Test]
>From ConTeXt Reference Manual 18 october 2012 page 210\crlf
\externalfigure[headers.jpg][width=0.8\textwidth]
\startsection[title=enclosing section]
\setupheads[alternative=normal]
\subsection{Title alternative equals normal}
\setupheads[alternative=inmargin]
\subsection{Title alternative equals inmargin}
\setupheads[alternative=middle]
\subsubject{Title alternative equals middle}
\stopsection
ConTeXt  ver: 2013.03.20 10:34 MKIV  fmt: 2013.3.20
\stopchapter
\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
___

___
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] \frac broken in current beta

2013-04-16 Thread Alan BRASLAU
On Tue, 16 Apr 2013 09:52:08 +0200
Marco Patzer  wrote:

> Hi,
> 
> \starttext
>   \math{\frac12}
> \stoptext
> 
> gives
> 
> ! LuaTeX error [string "\directlua "]:1: attempt to call field
> 'math_frac' (a n il value)
> stack traceback:
> [string "\directlua "]:1: in main chunk.
> 
> 
> Marco

Confirmed here!

Alan
___
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] Title of figure not below the figure, but on the right side

2013-04-16 Thread Sietse Brouwer
> How can I now tell, where to place the figure? There are keys like "here",
> or "force", or "bottom" and so on, how to use them in this configuration?
> (my tries failed so far)

I don't know! \startplacerightfigure[location=bottom,...] should work,
but doesn't. (MWE below.)

Perhaps somebody else knows? Or perhaps this is a bug?

\definefloat[rightfigure][rightfigures][figure]
\setupcaption[rightfigure][location=right]
\setupwhitespace[big]
\useMPlibrary[dum]

\starttext
\input davis \par
\input knuth \par
\input khatt-en \par

% \showboxes

\startplacerightfigure[
location=bottom,
title={Tolles Bild},
reference=fig:demo,
number=no,
]
{\externalfigure[dum]}
\stopplacerightfigure

\input linden \par
\input weisman \par
\input zapf \par

\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] header variations how?

2013-04-16 Thread Meer, H. van der
I tried to put the sectionnumbers in the margin, but it didn't work. The I 
looked at the example in the ConTeXt Reference Manual and this didn't work 
either. Why?
See the minimal example below where the manual is contrasted with the actual 
output.

Hans van der Meer

\setuppapersize[A5][A5]
\starttext
\startchapter[title=Test]
>From ConTeXt Reference Manual 18 october 2012 page 210\crlf
\externalfigure[headers.jpg][width=0.8\textwidth]
\startsection[title=enclosing section]
\setupheads[alternative=normal]
\subsection{Title alternative equals normal}
\setupheads[alternative=inmargin]
\subsection{Title alternative equals inmargin}
\setupheads[alternative=middle]
\subsubject{Title alternative equals middle}
\stopsection
ConTeXt  ver: 2013.03.20 10:34 MKIV  fmt: 2013.3.20
\stopchapter
\stoptext




headers.pdf
Description: headers.pdf
___
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] Cambria math broken in current beta

2013-04-16 Thread Janne Junnila
Hi,

After updating, I'm getting error messages like the following:

fonts   > defining > font with asked name 'cambriamath' is not
found using lookup 'name'
fonts   > defining > unknown font 'cambriamath', loading aborted
fonts   > defining > unable to define 'cambriamath' as
'cambria-12pt-mm-mr--3'

The relevant files seem to be loaded, however:

mkiv lua stats  > loaded fonts: 4 files: cambria.ttc cambriab.ttf
cambriai.ttf cambriaz.ttf

- Janne
___
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] \frac broken in current beta

2013-04-16 Thread Marco Patzer
Hi,

\starttext
  \math{\frac12}
\stoptext

gives

! LuaTeX error [string "\directlua "]:1: attempt to call field 'math_frac' (a n
il value)
stack traceback:
[string "\directlua "]:1: in main chunk.


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Sadness from a Windows ConTeXt user

2013-04-16 Thread Hans Hagen

On 4/16/2013 8:00 AM, Mojca Miklavec wrote:

Hi,

This was a known problem for a short period of time, but I thought that
both Akira and Hans fixed it by now. (Hans added a workaround.)


eh ... you asked me to remove that workaround as the binary would be 
fixed ... it's either using the build in spec (somewhat messy) or using 
our own path spec (more controlled)


the built in path cannot be used to determine if we have a garden 
version and we also cannot inject something in it as one doesn't know 
where to insert the texmf path (if not present) because the order of 
path sis not standardized


(ok, i could probably mess a bit and try inject the texmf path at the 
end, which the might result in double loading of trees but i'd rather 
first see if the bin is fixed)


the luatex i synced with the garden a few minutes ago gives:

table={
 "C:/Users/hagen/texmf/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin/bin/",

"c:/data/develop/tex-context/tex/texmf-mswin/bin//share/texmf-local/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin/bin//share/texmf-dist/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin/bin//share/texmf/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin/bin//texmf-local/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin/bin//texmf-dist/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin/bin//texmf/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin/",
 "c:/data/develop/tex-context/tex/texmf-mswin//share/texmf-local/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin//share/texmf-dist/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin//share/texmf/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin//texmf-local/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin//texmf-dist/web2c",
 "c:/data/develop/tex-context/tex/texmf-mswin//texmf/web2c",
 "c:/data/develop/tex-context/texmf-local/web2c",
 "c:/data/develop/tex-context/tex/",
 "c:/data/develop/tex-context/tex//share/texmf-local/web2c",
 "c:/data/develop/tex-context/tex//share/texmf-dist/web2c",
 "c:/data/develop/tex-context/tex//share/texmf/web2c",
 "c:/data/develop/tex-context/tex//texmf-local/web2c",
 "c:/data/develop/tex-context/tex//texmf-dist/web2c",
 "c:/data/develop/tex-context/tex//texmf/web2c",
}

so it looks like texmf is back in the list

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] Sadness from a Windows ConTeXt user

2013-04-16 Thread Hans Hagen

On 4/16/2013 3:27 AM, Tim Li wrote:

I really have done the 1, 2 and 3 as you said, but it failed to start
context, unless have set the TEXMFCNF to D:\context\texmf\web2c.


they you probably have a binary with the wrong compiled path in it ... 
the latest should be ok .. just sync with the garden again (and make 
sure no luatex binary is open when doing 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
___


[NTG-context] Using Product-component

2013-04-16 Thread Aditya Mahajan

Has something changed recently on how product-component structure is supposed to
be used? I have three files:

1. prd.tex

\environment env

\startproduct prd

\component cmp

\stopproduct

2. env.tex


\startenvironment env

\define\testing{This is a test}

\stopenvironment

3. cmp.tex


\product prd

\startcomponent cmp

Testing \testing

\stopcomponent

When I compile cmp.tex, I get:

%--%<-
mtx-context | run 1: luatex 
--fmt="/home/adityam/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="cmp" 
--lua="/home/adityam/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" 
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./cmp" --c:input="./cmp" --c:kindofrun=1 --c:maxnofruns=8 
"cont-yes.mkiv"
This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627)
 \write18 enabled.
(/home/adityam/media/opt/context-minimals/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.04.14 16:51 MKIV beta  fmt: 2013.4.14  int: english/english

system  > 'cont-new.mkiv' loaded
(/home/adityam/media/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv)
system  > files > jobname 'cmp', input 'cmp', result 'cmp'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
(cmp.tex{/home/adityam/media/opt/context-minimals/texmf-fonts/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown library 'loc'
{/home/adityam/media/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-math.map}{/home/adityam/media/opt/context-minimals/texmf-fonts/fonts/map/dvips/lm/lm-rm.map}
fonts   > 'fallback modern rm 12pt' is loaded
(prd.tex (env.tex) (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex 
(cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex 
(cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex 
(cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex 
(cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex (cmp.tex (prd.tex 
(cmp.tex (prd.tex
! TeX capacity exceeded, sorry [text input levels=127].

system  > tex > error on line 5 in file prd.tex: TeX capacity exceeded, 
sorry [ ...

1 \environment env
2 
3 \startproduct prd
4 
5 >>  \component cmp
6 
7 \stopproduct

8


\ctxcommand #1^^@-\directlua {commands.#1}

l.5 }

\ctxcommand #1^^@-\directlua {commands.#1}

l.5 \component cmp

!  ==> Fatal error occurred, no output PDF file produced!
mtx-context | fatal error: return code: 1% 
%--%<-


Shouldn't the product file not load the component file (or anything else inside
\startproduct .. \stopproduct) when compiling a component?
___
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
___