Re: [NTG-context] Screen document design

2011-03-01 Thread Ian Lawrence
So many things I am only vaguely aware of!

But I think that pixels are
a) undocumented
b) work

And I'm pretty sure i'll put both (ignorant) feet in it in trying to add
something to the Wiki...

Greetings from the grey England..
Ian


On 24 February 2011 13:32, Henning Hraban Ramm  wrote:

>
> Am 2011-02-24 um 11:34 schrieb Marco:
>
>
>  On 2011-02-24 Ian Lawrence  wrote:
>>
>>  Thanks for taking the trouble for what was really simple, but seems
>>> undocumented (?)
>>>
>>
>> Some other units:
>>  mm  Millimetres
>>  cm  Centimetres
>>  in  Inches
>>  em  em width, depends on the font
>>  ex  ex height, depends on the font
>>  pc  Picas (1pc = 12pt)
>>  pt  Points (1in = 72.27pt)
>>
>
>
> There’s also bp (big points). We have the difference between TeX points
> (pt) and PostScript points (bp) in ConTeXt like in every other TeX:
> 1 pt = 1/72,27 in = 0,3515 mm (traditional American printer’s point)
> 1 bp = 1/72 in = 0,3528 mm (after the Anglo-Saxon compromise inch of 1959 =
> 25.4 mm)
> (1 "Didot" point, traditionally used in Europe, was 0,376 mm)
>
> See also http://en.wikipedia.org/wiki/Point_(typography)
>
> Greetlings from Lake Constance!
> Hraban
> ---
> http://www.fiee.net/texnique/
> http://wiki.contextgarden.net
> https://www.cacert.org (I'm an assurer)
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
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] Screen document design

2011-03-01 Thread luigi scarso
On Tue, Mar 1, 2011 at 9:29 AM, Ian Lawrence  wrote:
> So many things I am only vaguely aware of!
> But I think that pixels are
> a) undocumented
> b) work
> And I'm pretty sure i'll put both (ignorant) feet in it in trying to add
> something to the Wiki...
> Greetings from the grey England..
> Ian
It's a pdftex feature.
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] references

2011-03-01 Thread Stefan Müller

On 28.02.2011 17:58, Wolfgang Schuster wrote:


Am 28.02.2011 um 17:38 schrieb Stefan Müller:


I just learned that some of those labels are, in fact, reused. That caused some 
confusion when I tried something like

\setuplabeltext[en][section=section~]

Is there a "list" or something which labels alexist and what values they have?


Only the source files, mkii gets the labels from the lang-xxx.mkii files
and mkiv from lang-lab.lua. What you can do is to list them on the wiki.

Wolfgang


Only for clarification: did you mean lang-txt.lua with a lot stuff like
  ...
  july={
   labels={
af="julie",
...
in it? Or is there something wrong with my files (couldn't find this 
file at http://source.contextgarden.net/tex/context/base only on my 
harddrive...)?


If that's the file: it looks like a clever thing to me to let a 
lua-function read "data.labels" and format it properly (table or 
something) and/or show only one language or something, rather then 
putting it on the wiki. Especially since there are some gaps in this 
file and there could be a lot updates in the future.


I'll look into that in the not too far away future, but I'm not very 
experienced with Lua.


Stefan.
___
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] problems with bib

2011-03-01 Thread Thomas A. Schmitz

On Feb 28, 2011, at 10:31 PM, Stefan Müller wrote:

>> \usepublications[criterium=text]
> 
> I'm not sure where to put this command and how to adapt other commands. But 
> \completepublications[criterium=text] works for me. So that's okay with me.

Yes, sorry, I was typing too fast.

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

2011-03-01 Thread Vedran Miletić
2011/3/1 Stefan Müller 

> On 28.02.2011 17:58, Wolfgang Schuster wrote:
>
>>
>> Am 28.02.2011 um 17:38 schrieb Stefan Müller:
>>
>>  I just learned that some of those labels are, in fact, reused. That
>>> caused some confusion when I tried something like
>>>
>>> \setuplabeltext[en][section=section~]
>>>
>>> Is there a "list" or something which labels alexist and what values they
>>> have?
>>>
>>
>> Only the source files, mkii gets the labels from the lang-xxx.mkii files
>> and mkiv from lang-lab.lua. What you can do is to list them on the wiki.
>>
>> Wolfgang
>>
>
> Only for clarification: did you mean lang-txt.lua with a lot stuff like
>  ...
>  july={
>   labels={
>af="julie",
>...
> in it? Or is there something wrong with my files (couldn't find this file
> at http://source.contextgarden.net/tex/context/base only on my
> harddrive...)?
>

That's because that repository is quite a bit out of date; the file was
introduced quite recently.

Regards,

Vedran Miletić
___
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] Metafun Label and externalfigure Problem

2011-03-01 Thread Lutz Haseloff
Hi all,

with latest ConTeXt MKIV
Metapost Labels doesn't work for me anymore.
My Code:

\starttext
\startMPcode
label(textext("Test"),origin);
\stopMPcode
\stoptext

The Output only shows the word "mpout" as the Label.

There seems to be a Problem with externalfigure too.

With:

\starttext
\startMPcode
externalfigure "blblogogr.pdf" xscaled 35mm yscaled 19mm shifted (13mm,15mm);
\stopMPcode
\stoptext

I get the error message:

metapost> loading 'metafun.mp' (experimental metapost version two)
! Emergency stop.
 ...re.mp ; fi ; ]===], false)}

\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
  \egroup \placeMPgraphic \d...
l.5 \stopMPcode

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

With:

\starttext
\startMPcode
externalfigure "blblogogr.pdf";
\stopMPcode
\stoptext

There is no errormessage and no picture in the output.


I hope, these are not all my ignorant faults, like always :-)


Greetings Lutz
___
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] Metafun Label and externalfigure Problem

2011-03-01 Thread luigi scarso
On Tue, Mar 1, 2011 at 11:17 AM, Lutz Haseloff
 wrote:
> Hi all,
>
> with latest ConTeXt MKIV
> Metapost Labels doesn't work for me anymore.
> My Code:
>
> \starttext
> \startMPcode
> label(textext("Test"),origin);
> \stopMPcode
> \stoptext
>
> The Output only shows the word "mpout" as the Label.
not here with current version: 2011.02.25 22:03
%%test
\starttext
\startTEXpage
\startMPcode
draw origin-(20,0) .. origin+(0,20) .. origin+(20,0) .. origin+(0,-20) .. cycle;
label(textext("Test"),origin);
\stopMPcode
\stopTEXpage
\stoptext


>
> There seems to be a Problem with externalfigure too.
>
> With:
>
> \starttext
> \startMPcode
> externalfigure "blblogogr.pdf" xscaled 35mm yscaled 19mm shifted (13mm,15mm);
> \stopMPcode
> \stoptext
>
> I get the error message:
>
> metapost        > loading 'metafun.mp' (experimental metapost version two)
> ! Emergency stop.
>  ...re.mp ; fi ; ]===], false)}
>
> \processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
>                                                  \egroup \placeMPgraphic \d...
> l.5 \stopMPcode
>
> !  ==> Fatal error occurred, no output PDF file produced!
> mtx-context     | fatal error: return code: 1>Exit code: 1
>
> With:
>
> \starttext
> \startMPcode
> externalfigure "blblogogr.pdf";
> \stopMPcode
> \stoptext
>
> There is no errormessage and no picture in the output.
not here, but I must admit that xscaled and yscaled are a bit strange.

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

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


Re: [NTG-context] Metafun Label and externalfigure Problem

2011-03-01 Thread Lutz Haseloff
> not here with current version: 2011.02.25 22:03
> %%test
> \starttext
> \startTEXpage
> \startMPcode
> draw origin-(20,0) .. origin+(0,20) .. origin+(20,0) .. origin+(0,-20) .. 
> cycle;
> label(textext("Test"),origin);
> \stopMPcode
> \stopTEXpage
> \stoptext
>

The problem occures with luatex rev 4088, no problem with 4050 or 4060


test.pdf
Description: Adobe PDF document
___
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] Metafun Label and externalfigure Problem

2011-03-01 Thread luigi scarso
On Tue, Mar 1, 2011 at 12:23 PM, Lutz Haseloff
 wrote:
>> not here with current version: 2011.02.25 22:03
>> %%test
>> \starttext
>> \startTEXpage
>> \startMPcode
>> draw origin-(20,0) .. origin+(0,20) .. origin+(20,0) .. origin+(0,-20) .. 
>> cycle;
>> label(textext("Test"),origin);
>> \stopMPcode
>> \stopTEXpage
>> \stoptext
>>
ah ok.
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Interaction menu in layer

2011-03-01 Thread Ian Lawrence
morning...

Is it possible to put the interactionmenu in  a layer to position it?

Thanks

Ian
___
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] playing colors

2011-03-01 Thread Hans van der Meer
Started for myself some learning on colors in ConTeXt. In the manual there is a 
nice colorpalette shown (section 6, page 141). However, I cannot reproduce 
this. The following minimal example shows colored texts, but 
\showcolor[color-name] just produces black boxes with ominous zeroes behind it.
What am I missing here? The wiki didn't procure more information then the 
manual.

Hans van der Meer

\setuppapersize[A5][A5]
\switchtobodyfont[20pt]
\starttext
\color[red]{hello} \quad
\color[green]{hello} \quad
\color[cyan]{hello} \quad
\showcolor[red]
\showcolor[green]
\showcolor[cyan]
\stoptext



test.pdf
Description: Adobe PDF document


___
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] playing colors more

2011-03-01 Thread Hans van der Meer
Why is the second color in the palet not showing up? I foolowed the example in the manual (section 6 page 6). Strange: adding a third color in the palet (see comment) now shows the first two! Off by one error in a loop?Hans van der Meer\setuppapersize[A5][A5]\switchtobodyfont[20pt]\definepalet[dvb][	colorone=blue,	colortwo=green   %,colorthree=red	]\setuppalet[dvb]\showpalet[dvb][]\starttext\color[colorone]{hello} \quad\color[colortwo]{hello} \quad\stoptext

test.pdf
Description: Adobe PDF document


test.pdf
Description: Adobe PDF document
___
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] playing colors more

2011-03-01 Thread Taco Hoekwater

On 03/01/2011 03:09 PM, Hans van der Meer wrote:

Why is the second color in the palet not showing up? I foolowed the
example in the manual (section 6 page 6). *Strange: adding a third color
in the palet (see comment) now shows the first two!* Off by one error in
a loop?


Try what happens if you do not have a space after the last color's name.

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

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


[NTG-context] No widows and orphans

2011-03-01 Thread Cecil Westerhof
I do not want to have widows and orphans. Because of this I use:
\clubpenalty=1
\widowpenalty=1

But this has no effect. Still the last two lines of a paragraph are put on
the next page instead of the complete paragraph.

I somewhere read about using:
setups=*strict
so I now have:
\setuplayout[
  header=0mm,
  setups=*strict,
]

This makes it a little better. Now three lines are put on the other page. Is
it possible to get the complete paragraph on the other page?

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

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


Re: [NTG-context] No widows and orphans

2011-03-01 Thread Thomas A. Schmitz

On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote:

> I do not want to have widows and orphans. Because of this I use:
> \clubpenalty=1
> \widowpenalty=1
> 
> But this has no effect. Still the last two lines of a paragraph are put on 
> the next page instead of the complete paragraph.

I think you are confusing things here: orphans and widows refer to single lines 
on the following/preceding page. So if you get two lines, you get exactly what 
you ask for. If I understand you correctly, you do not want to break paragraphs 
vertically at all?

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
___


[NTG-context] Item description in bold

2011-03-01 Thread Cecil Westerhof
I have something like:
\startitemize
\item Description one

Some text belonging to this description.

\item Description two

Some text belonging to this description.

\item Description three

Some text belonging to this description.

\stopitemize

I would like to have 'Description one', 'Description two' and 'Description
three' in bold and the rest of the text not. Is this possible?

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

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


Re: [NTG-context] playing colors more

2011-03-01 Thread Taco Hoekwater

On 03/01/2011 03:43 PM, Hans van der Meer wrote:

Oeps, I must have been spoiled by the \startxmlsetups where spaces at line end 
seem to be harmless.

By the way, how can one get rid of the black bar under the color bars? It looks 
like a black background that has been shifted down somewhat.


I don't know (and yes, I get that bottom bar as well).

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

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


Re: [NTG-context] No widows and orphans

2011-03-01 Thread Cecil Westerhof
2011/3/1 Thomas A. Schmitz 

>
> On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote:
>
> > I do not want to have widows and orphans. Because of this I use:
> > \clubpenalty=1
> > \widowpenalty=1
> >
> > But this has no effect. Still the last two lines of a paragraph are put
> on the next page instead of the complete paragraph.
>
> I think you are confusing things here: orphans and widows refer to single
> lines on the following/preceding page. So if you get two lines, you get
> exactly what you ask for. If I understand you correctly, you do not want to
> break paragraphs vertically at all?
>

Okay, I did not understand the terminology correctly.

Yes, in this particular case I would like not to break them. What would also
be acceptable is when there are at least five lines on the page.

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

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


Re: [NTG-context] No widows and orphans

2011-03-01 Thread luigi scarso
On Tue, Mar 1, 2011 at 3:56 PM, Cecil Westerhof  wrote:
> 2011/3/1 Thomas A. Schmitz 
>>
>> On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote:
>>
>> > I do not want to have widows and orphans. Because of this I use:
>> > \clubpenalty=1
>> > \widowpenalty=1
>> >
>> > But this has no effect. Still the last two lines of a paragraph are put
>> > on the next page instead of the complete paragraph.
>>
>> I think you are confusing things here: orphans and widows refer to single
>> lines on the following/preceding page. So if you get two lines, you get
>> exactly what you ask for. If I understand you correctly, you do not want to
>> break paragraphs vertically at all?
>
> Okay, I did not understand the terminology correctly.
http://en.wikipedia.org/wiki/Widow_%28typesetting%29

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

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


Re: [NTG-context] Item description in bold

2011-03-01 Thread Stefan Müller

Hi Cecil,

I think here is what you are looking for:
http://wiki.contextgarden.net/Description
There it is explained how to define descriptions. In

\definedescription[descr][
  headstyle=bold,style=normal,align=left,location=hanging,
  width=broad,margin=1cm]

the option "headstyle=bold" does the magic.

Besides, you could also just use "{\bf Description one}", I think.

HTH,
Stefan

On 01.03.2011 15:47, Cecil Westerhof wrote:

I have something like:
\startitemize
\item Description one

Some text belonging to this description.

\item Description two

Some text belonging to this description.

\item Description three

Some text belonging to this description.

\stopitemize

I would like to have 'Description one', 'Description two' and
'Description three' in bold and the rest of the text not. Is this possible?

--
Cecil Westerhof

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

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


Re: [NTG-context] Item description in bold

2011-03-01 Thread Aditya Mahajan

On Tue, 1 Mar 2011, Cecil Westerhof wrote:


I have something like:
\startitemize
\item Description one

Some text belonging to this description.

\item Description two

Some text belonging to this description.

\item Description three

Some text belonging to this description.

\stopitemize

I would like to have 'Description one', 'Description two' and 'Description
three' in bold and the rest of the text not. Is this possible?


\startitemize
\head Description one

Some text belonging to this description
\stopitemize

\head is delimited by \par, so be careful with something like this:

\startitemize
\head One
\head Two

Something about two
\stopitemize

which will lead to an error.

You can control the style by headstyle=... and headcolor=... keys.

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] No hypenation on words like e-book

2011-03-01 Thread Cecil Westerhof
I am trying to make an e-book with ConTeXt. The word e-book is used in this
e-book. ;-} Sometimes e- comes on the end of the line and book at the
beginning of the next. Is there a way to circumvent this?

I could ofcourse change all occurences with \hbox{e-book} (and the same for
e-mail, ...), but I was hoping there is a better solution.

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

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


[NTG-context] Personalizing a PDF generated with ConTeXt

2011-03-01 Thread Cecil Westerhof
I would like to integrate in the generated PDF's some personal information.
What would be the best way to do this?

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

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


Re: [NTG-context] Personalizing a PDF generated with ConTeXt

2011-03-01 Thread Matthias Weber
I use

\setupinteraction
[state=start,
title={My Book},
author={Just Me},
subtitle={(no way)},
keywords={cool}
]

There probably are more options...

Matthias

On Mar 1, 2011, at 10:09 AM, Cecil Westerhof wrote:

> I would like to integrate in the generated PDF's some personal information. 
> What would be the best way to do this?
> 
> -- 
> Cecil Westerhof
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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] Item description in bold

2011-03-01 Thread Cecil Westerhof
2011/3/1 Aditya Mahajan 

> On Tue, 1 Mar 2011, Cecil Westerhof wrote:
>
>  I have something like:
>> \startitemize
>> \item Description one
>>
>> Some text belonging to this description.
>>
>> \item Description two
>>
>> Some text belonging to this description.
>>
>> \item Description three
>>
>> Some text belonging to this description.
>>
>> \stopitemize
>>
>> I would like to have 'Description one', 'Description two' and 'Description
>> three' in bold and the rest of the text not. Is this possible?
>>
>
> \startitemize
> \head Description one


I already tried this, but it did not work.

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

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


Re: [NTG-context] Item description in bold

2011-03-01 Thread Taco Hoekwater

On 03/01/2011 04:14 PM, Cecil Westerhof wrote:


\startitemize
\head Description one


I already tried this, but it did not work.


You also need the

  \setupitemize[each][headstyle=bold]

setup from the other answer.

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

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


Re: [NTG-context] Personalizing a PDF generated with ConTeXt

2011-03-01 Thread Taco Hoekwater

On 03/01/2011 04:09 PM, Cecil Westerhof wrote:

I would like to integrate in the generated PDF's some personal
information. What would be the best way to do this?


Do you mean like a mailmerge file?

___
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] playing colors

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 14:37 schrieb Hans van der Meer:

> Started for myself some learning on colors in ConTeXt. In the manual there is 
> a nice colorpalette shown (section 6, page 141). However, I cannot reproduce 
> this. The following minimal example shows colored texts, but 
> \showcolor[color-name] just produces black boxes with ominous zeroes behind 
> it.
> What am I missing here? The wiki didn't procure more information then the 
> manual.

The command is used to show all the defined colors in a colo-xxx.(mkii|mkiv) 
file, e.g.

\starttext
\showcolor[rgb]
\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] No hypenation on words like e-book

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 16:08 schrieb Cecil Westerhof:

> I am trying to make an e-book with ConTeXt. The word e-book is used in this 
> e-book. ;-} Sometimes e- comes on the end of the line and book at the 
> beginning of the next. Is there a way to circumvent this?
> 
> I could ofcourse change all occurences with \hbox{e-book} (and the same for 
> e-mail, ...), but I was hoping there is a better solution.

\setbreakpoints[compound]

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] Item description in bold

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 16:02 schrieb Aditya Mahajan:

> \head is delimited by \par, so be careful with something like this:

\starthead … \par … \stophead

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] linespacing?

2011-03-01 Thread Hans van der Meer
This comes from the ConTeXt manual (section 4, page 65)
\starttext
\setuplinespacing[height=1mm]
\stoptext

It gives an error:
! Undefined control sequence.
l.2 \setuplinespacing
 [height=1mm]
? 

Two pages earlier there is
\starttext
\setupinterlinespace[height=2]
\stoptext

And this works, but I am not sure what the number values for height and depth 
mean. I guess fractions of the normalbaselineskip, but I could not find it 
defined in the text there.

What doesn't work is for example:
\starttext
\setupinterlinespace[height=1ex]
\stoptext

But sounds fairly natural to me. However, the error is:
! Missing number, treated as zero.
 
   p
\!!plus ->p
   lus
\setnormalbaselines ...gridsnapping \else \!!plus 
  \baselinegluefactor \openl...
\spacing ...thfactor \points }\setnormalbaselines 
  \setstrut 
 ...nizefont \fi \spacing \plusone 
  \presetnormallineheight \s...
\setfontparameters ...tsfalse \the \everybodyfont 
  \synchronizefontstrue 
...
l.2 \setupinterlinespace[height=1ex]

May I kindly suggest that some has a look at this? 

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] No hypenation on words like e-book

2011-03-01 Thread Florian Wobbe
>> I am trying to make an e-book with ConTeXt. The word e-book is used in this 
>> e-book. ;-} Sometimes e- comes on the end of the line and book at the 
>> beginning of the next. Is there a way to circumvent this?
>> 
>> I could ofcourse change all occurences with \hbox{e-book} (and the same for 
>> e-mail, ...), but I was hoping there is a better solution.
> 
> \setbreakpoints[compound]

But isn't this supposed to do exactly the opposite of what Cecil wants 
(http://wiki.contextgarden.net/Composed_words)? Also she probably wants to keep 
hyphenation on hyphens for composed words in general and only disable this for 
the compound "e-book".

Florian

___
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] linespacing?

2011-03-01 Thread Taco Hoekwater

On 03/01/2011 04:37 PM, Hans van der Meer wrote:

This comes from the ConTeXt manual (section 4, page 65)
\starttext
\setuplinespacing[height=1mm]
\stoptext


This is superceded. \setuplinespacing does not exist
any more.


Two pages earlier there is
\starttext
\setupinterlinespace[height=2]
\stoptext




And this works, but I am not sure what the number values
for height and depth mean. I guess fractions of the
normalbaselineskip, but I could not find it defined
in the text there.


Explained quite well on the wiki:

  http://wiki.contextgarden.net/Reference/en/setupinterlinespace

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

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


Re: [NTG-context] No hypenation on words like e-book

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 16:39 schrieb Florian Wobbe:

>>> I am trying to make an e-book with ConTeXt. The word e-book is used in this 
>>> e-book. ;-} Sometimes e- comes on the end of the line and book at the 
>>> beginning of the next. Is there a way to circumvent this?
>>> 
>>> I could ofcourse change all occurences with \hbox{e-book} (and the same for 
>>> e-mail, ...), but I was hoping there is a better solution.
>> 
>> \setbreakpoints[compound]
> 
> But isn't this supposed to do exactly the opposite of what Cecil wants 
> (http://wiki.contextgarden.net/Composed_words)? Also she probably wants to 
> keep hyphenation on hyphens for composed words in general and only disable 
> this for the compound "e-book".

You can control how many characters are allowed on the left/right side of the 
sign before the word is hyphenated.

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] No hypenation on words like e-book

2011-03-01 Thread Cecil Westerhof
2011/3/1 Wolfgang Schuster 

> \setbreakpoints[compound]
>

That gives:
! Undefined control sequence.
l.87 \setbreakpoints
[compound]

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

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


Re: [NTG-context] No hypenation on words like e-book

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 16:44 schrieb Cecil Westerhof:

> ! Undefined control sequence.
> l.87 \setbreakpoints
> [compound] 

You need 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] No hypenation on words like e-book

2011-03-01 Thread Florian Wobbe
>>> \setbreakpoints[compound]
>> 
>> But isn't this supposed to do exactly the opposite of what Cecil wants 
>> (http://wiki.contextgarden.net/Composed_words)? Also she probably wants to 
>> keep hyphenation on hyphens for composed words in general and only disable 
>> this for the compound "e-book".
> 
> You can control how many characters are allowed on the left/right side of the 
> sign before the word is hyphenated.

Thanks for pointing out. I was not aware of \installbreakpoint[compound].

Florian

___
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] No hypenation on words like e-book

2011-03-01 Thread Cecil Westerhof
2011/3/1 Wolfgang Schuster 

>
> Am 01.03.2011 um 16:44 schrieb Cecil Westerhof:
>
> > ! Undefined control sequence.
> > l.87 \setbreakpoints
> > [compound]
>
> You need MkIV!
>

I just installed the default version from my distribution (openSuse). What
is the best way to upgrade?

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

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


Re: [NTG-context] No widows and orphans

2011-03-01 Thread Philipp Stephani
Am 01.03.2011 um 16:03 schrieb ntg-context-requ...@ntg.nl:

> Von: Cecil Westerhof 
> Datum: 1. März 2011 15:56:03 MEZ
> An: mailing list for ConTeXt users 
> Betreff: Re: [NTG-context] No widows and orphans
> Antwort an: mailing list for ConTeXt users 
> 
> 
> 2011/3/1 Thomas A. Schmitz 
> 
> On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote:
> 
> > I do not want to have widows and orphans. Because of this I use:
> > \clubpenalty=1
> > \widowpenalty=1
> >
> > But this has no effect. Still the last two lines of a paragraph are put on 
> > the next page instead of the complete paragraph.
> 
> I think you are confusing things here: orphans and widows refer to single 
> lines on the following/preceding page. So if you get two lines, you get 
> exactly what you ask for. If I understand you correctly, you do not want to 
> break paragraphs vertically at all?
> 
> Okay, I did not understand the terminology correctly.
> 
> Yes, in this particular case I would like not to break them.

I don't know whether that still works in ConTeXt, but try
\interlinepenalty=1

> What would also be acceptable is when there are at least five lines on the 
> page.

Try this (again untested):
\clubpenalties 5 1 1 1 1 1
\widowpenalties 5 1 1 1 1 1
___
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] No widows and orphans

2011-03-01 Thread Cecil Westerhof
2011/3/1 Philipp Stephani 

> > Yes, in this particular case I would like not to break them.
>
> I don't know whether that still works in ConTeXt, but try
> \interlinepenalty=1
>

That made havoc of my document.



> > What would also be acceptable is when there are at least five lines on
> the page.
>
> Try this (again untested):
> \clubpenalties 5 1 1 1 1 1
> \widowpenalties 5 1 1 1 1 1
>

Does not seem to have any effect.

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

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


Re: [NTG-context] No widows and orphans

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 17:06 schrieb Philipp Stephani:

> I don't know whether that still works in ConTeXt, but try
> \interlinepenalty=1

It works but it’s to low level.

There is also \interlinepenalties and ConTeXts \keeplinestogether (which use 
it) command but it doesn’t work

\starttext

\dorecurse{4}{\input tufte\par}

\keeplinestogether{10}
\input tufte\par

\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] playing colors

2011-03-01 Thread Otared Kavian

On 1 mars 2011, at 16:25, Wolfgang Schuster wrote:

> 
> Am 01.03.2011 um 14:37 schrieb Hans van der Meer:
> 
>> Started for myself some learning on colors in ConTeXt. In the manual there 
>> is a nice colorpalette shown (section 6, page 141). However, I cannot 
>> reproduce this. The following minimal example shows colored texts, but 
>> \showcolor[color-name] just produces black boxes with ominous zeroes behind 
>> it.
>> What am I missing here? The wiki didn't procure more information then the 
>> manual.
> 
> The command is used to show all the defined colors in a colo-xxx.(mkii|mkiv) 
> file, e.g.
> 
> \starttext
> \showcolor[rgb]
> \stoptext
> 
> Wolfgang

Hi Hans,

Indeed as Wolfgang points out, in the file 
colo-ini.mkii
it is said that:

%D But let's not forget that we also have the more traditional
%D non||related colors. These show up after:
%D
%D \starttyping
%D \showcolor [name]
%D \stoptyping
%D
%D Where \type{name} for instance can be \type{rgb}.

Actually « name » can be also xwi or pra. There another command is also given, 
\showcolorgroup,  for showing colors such as in:
\showcolorgroup [red][vertical,name,number]
or
\showcolorgroup [red]  

And the following can be used to see the setups:

\showsetups{showcolor}

(Actually in the source there is a mistyping « \showsetup » instead of « 
\showsetups »).

Best regards: OK
___
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] No widows and orphans

2011-03-01 Thread Cecil Westerhof
2011/3/1 Wolfgang Schuster 

>
> Am 01.03.2011 um 17:06 schrieb Philipp Stephani:
>
> > I don't know whether that still works in ConTeXt, but try
> > \interlinepenalty=1
>
> It works but it’s to low level.
>
> There is also \interlinepenalties and ConTeXts \keeplinestogether (which
> use it) command but it doesn’t work
>
> \starttext
>
> \dorecurse{4}{\input tufte\par}
>
> \keeplinestogether{10}
> \input tufte\par
>
> \stoptext
>

If you add before starttext \interlinepenalty=1 it works. But alas, not
in my case.

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

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


[NTG-context] \setuphead[ownnumber=yes]; disabling parental numbers

2011-03-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

what exactly should the "ownnumber=yes|no" option do in \setuphead?

The following code crashes Ctx:

---
%\setuphead[subsection][number=no] % OK
\setuphead[subsection][ownnumber=yes] % ERROR

\starttext
  \chapter{Ch1}
\section{Sec1}
  \subsection{SSec1}
\stoptext
---

Is it possible to disable parental numbers? - To get sequence like this:

A. ChapterA
B. ChapterB
B.1 Section1
B.2 Section2
1 Subsection1 (no parental numbers here [= B.2], only those of subsection)
2 Subsection2

I tried:

\setuphead[subsection,subsubject][number=no,ownnumber=yes]

hoping this should do the job but it didn't; at least problem with 
"ownnumber=yes".

Any idea?

Best regards,

Lukas


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

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

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

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


Re: [NTG-context] \setuphead[ownnumber=yes]; disabling parental numbers

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 18:09 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> what exactly should the "ownnumber=yes|no" option do in \setuphead?

It disables the automatic numbering to allow you set your own number.

\definehead[topic][section]
\setuphead [topic][ownnumber=yes]

\starttext
\section{Section}
\topic{3}{Topic}
\stoptext

> The following code crashes Ctx:
> 
> ---
> %\setuphead[subsection][number=no] % OK
> \setuphead[subsection][ownnumber=yes] % ERROR
> 
> \starttext
>  \chapter{Ch1}
>\section{Sec1}
>  \subsection{SSec1}
> \stoptext
> ---
> 
> Is it possible to disable parental numbers? - To get sequence like this:

\setuphead[subsection][sectionsegments=subsection]

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] No widows and orphans

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 18:05 schrieb Cecil Westerhof:

> 2011/3/1 Wolfgang Schuster 
> 
> Am 01.03.2011 um 17:06 schrieb Philipp Stephani:
> 
> > I don't know whether that still works in ConTeXt, but try
> > \interlinepenalty=1
> 
> It works but it’s to low level.
> 
> There is also \interlinepenalties and ConTeXts \keeplinestogether (which use 
> it) command but it doesn’t work
> 
> \starttext
> 
> \dorecurse{4}{\input tufte\par}
> 
> \keeplinestogether{10}
> \input tufte\par
> 
> \stoptext
> 
> If you add before starttext \interlinepenalty=1 it works. But alas, not 
> in my case.

This will change the settings for all paragraphs while \keeplinestogether
only applies for a given number of line for the next paragraph.

Maybe this is what you want:

\starttext
\dorecurse{4}{\input tufte\par}
\start\interlinepenalty=1 % keep the setting local
\input tufte\par
\stop
\stoptext

Wolfgang

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

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


Re: [NTG-context] No widows and orphans

2011-03-01 Thread Cecil Westerhof
2011/3/1 Wolfgang Schuster 

> If you add before starttext \interlinepenalty=1 it works. But alas, not
> in my case.
>
>
> This will change the settings for all paragraphs while \keeplinestogether
> only applies for a given number of line for the next paragraph.
>

That is exactly what I want: keeping all my paragraphs together. But when I
use it in my file, I get a few lines pro page.

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

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


[NTG-context] Letter with letterhead

2011-03-01 Thread Roger Mason
Hello,

I must write a multi-page letter with only the first page as
(pre-printed) letterhead.  I adapted the Letterhead example from the
wiki to fit the style of my institution.  I would like to know how to
revert the second and subsequent pages to use a default layout.

If someone know how to use Wolfgang's letter module (in MKII) with
letterhead on the first page only, that would be fine.

Thanks,
Roger
___
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] No hypenation on words like e-book

2011-03-01 Thread Pontus Lurcock
On Tue 01 Mar 2011, Cecil Westerhof wrote:

> > You need MkIV!
> 
> I just installed the default version from my distribution
> (openSuse). What is the best way to upgrade?

I think the usual recommended approach is to install the minimals: 
http://wiki.contextgarden.net/ConTeXt_Minimals .

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

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


[NTG-context] lines tightly fitting together

2011-03-01 Thread Hans van der Meer
Silly perhaps, but I am stuck with something that shouldn't be difficult to 
solve.
I want to fill lines with small blocks (\vrule's just 0.2 mm high) and then fit 
the indivdual lines as tight together as is possible. Trying 
\setupinterlinespace[height=0.2,depth=0] did not help and the kludge 
\switchtobodyfont[0.1pt] does has the spirit of ConTeXt ;-)
Anybody out there knowing how to do 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] "Fonts in ConTeXt" is now available from boekplan.com

2011-03-01 Thread Marco Pessotto
Taco Hoekwater  writes:

> After some delays, thankfully the book "Fonts in ConTeXt" is now
> finally available for immediate ordering.

Due to the high costs of shipping and bank payment, could you tell me if
the book Layouts in ConTeXt will be out as scheduled in a month (so I'll
wait to buy them both, saving some logistic money)?

As always, thanks for all you do.

Bests

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


Re: [NTG-context] No widows and orphans

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 19:06 schrieb Cecil Westerhof:

> 2011/3/1 Wolfgang Schuster 
>> If you add before starttext \interlinepenalty=1 it works. But alas, not 
>> in my case.
> 
> This will change the settings for all paragraphs while \keeplinestogether
> only applies for a given number of line for the next paragraph.
> 
> That is exactly what I want: keeping all my paragraphs together. But when I 
> use it in my file, I get a few lines pro page. 


% engine=pdftex

\setupparagraphintro[each][\keeplinestogether{10}]

\starttext
\dorecurse{5}{\input tufte\par}
\stoptext

The \setupparagraphintro command doesn’t work currently in 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] lines tightly fitting together

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 19:58 schrieb Hans van der Meer:

> Silly perhaps, but I am stuck with something that shouldn't be difficult to 
> solve.
> I want to fill lines with small blocks (\vrule's just 0.2 mm high) and then 
> fit the indivdual lines as tight together as is possible. Trying 
> \setupinterlinespace[height=0.2,depth=0] did not help and the kludge 
> \switchtobodyfont[0.1pt] does has the spirit of ConTeXt ;-)
> Anybody out there knowing how to do it?

\setupinterlinespace[line=0.5mm] or use MetaPost (not sure what do you want).

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] No widows and orphans

2011-03-01 Thread Cecil Westerhof
2011/3/1 Wolfgang Schuster 

> \setupparagraphintro[each][\keeplinestogether{10}]
>

Wrecks havoc with my document.

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

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


Re: [NTG-context] "Fonts in ConTeXt" is now available from boekplan.com

2011-03-01 Thread Tom
Is this book going to be available in the U.S.? If so, where can I find it?
If not, may I suggest that you upload your PDFs to CreateSpace.com and have
it made available to buyers through Amazon.com. I normally don't like
limiting a book's availability to a single reseller, but for a niche book it
makes sense. There is no cost to upload the book but an optional $39 fee
that reduces print costs dramatically. There is no inventory cost as books
are printed only when customers order copies. If multiple titles are to be
published, using Lightning Source may make more sense for serving the U.S.
market.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Marco Pessotto
Sent: Tuesday, March 01, 2011 2:19 PM
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] "Fonts in ConTeXt" is now available from
boekplan.com

Taco Hoekwater  writes:

> After some delays, thankfully the book "Fonts in ConTeXt" is now
> finally available for immediate ordering.

Due to the high costs of shipping and bank payment, could you tell me if
the book Layouts in ConTeXt will be out as scheduled in a month (so I'll
wait to buy them both, saving some logistic money)?

As always, thanks for all you do.

Bests

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


Re: [NTG-context] No widows and orphans

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 20:31 schrieb Cecil Westerhof:

> 2011/3/1 Wolfgang Schuster 
> \setupparagraphintro[each][\keeplinestogether{10}]
> 
> Wrecks havoc with my document. 

Without seeing your document there is no way to help you.

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] lines tightly fitting together

2011-03-01 Thread Hans van der Meer

On 1 mrt 2011, at 20:21, Wolfgang Schuster wrote:

> \setupinterlinespace[line=0.5mm] or use MetaPost (not sure what do you want).

This does work out as I want it. The aim is to place lines of smallblocks, 
taken from an input file
\startdvbscreen
  \startdvbline
\blok{colorvalue} % FORGET COLOR FOR NOW

  \stopdvbline
  
\stopdvbscreen

\def\blokheight{0.15mm}\def\blokwidth{0.19mm}
\def\blok{\vrule width \blokwidth height \blokheight depth 0pt\ignorespaces}
\def\startdvbline{}
\def\stopdvbline{\crlf\vskip-0.3mm}
\def\startdvbscreen{SEE BELOW}
\def\stopdvbscreen{\crlf\vskip4mm\stop}

works with minimal fontsize, but the lines are not easily to get exactly tight 
in vertical sense (kludge with vskip of -0.3mm).
thus works a bit:
\def\startdvbscreen{DVB-screen\crlf\start\setupinterlinespace[line=0.5mm]}
does not work:
\def\startdvbscreen{DVB-screen\crlf\start\switchtobodyfont[0.1pt]}
___
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] lines tightly fitting together

2011-03-01 Thread Hans van der Meer
Sorry, mixed up what works and what not:

On 1 mrt 2011, at 21:06, Hans van der Meer wrote:

> 
> On 1 mrt 2011, at 20:21, Wolfgang Schuster wrote:
> 
>> \setupinterlinespace[line=0.5mm] or use MetaPost (not sure what do you want).
> 
> This does work out as I want it. The aim is to place lines of smallblocks, 
> taken from an input file
> \startdvbscreen
>  \startdvbline
>   \blok{colorvalue} % FORGET COLOR FOR NOW
>
>  \stopdvbline
>  
> \stopdvbscreen
> 
> \def\blokheight{0.15mm}\def\blokwidth{0.19mm}
> \def\blok{\vrule width \blokwidth height \blokheight depth 0pt\ignorespaces}
> \def\startdvbline{}
> \def\stopdvbline{\crlf\vskip-0.3mm}
> \def\startdvbscreen{SEE BELOW}
> \def\stopdvbscreen{\crlf\vskip4mm\stop}
> 
> works with minimal fontsize, but the lines are not easily to get exactly 
> tight in vertical sense (kludge with vskip of -0.3mm).

DOES NOT WORK
> 
> \def\startdvbscreen{DVB-screen\crlf\start\setupinterlinespace[line=0.5mm]}
> does not work:

DOES WORK A BIT
> \def\startdvbscreen{DVB-screen\crlf\start\switchtobodyfont[0.1pt]}
> ___
> 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] lines tightly fitting together

2011-03-01 Thread Wolfgang Schuster

Am 01.03.2011 um 21:10 schrieb Hans van der Meer:

> Sorry, mixed up what works and what not:

Can you show a pdf with the result?

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] Metafun Label and externalfigure Problem

2011-03-01 Thread Hans Hagen

On 1-3-2011 11:17, Lutz Haseloff wrote:

Hi all,

with latest ConTeXt MKIV
Metapost Labels doesn't work for me anymore.
My Code:

\starttext
\startMPcode
label(textext("Test"),origin);
\stopMPcode
\stoptext

The Output only shows the word "mpout" as the Label.


works ok here


There seems to be a Problem with externalfigure too.

With:

\starttext
\startMPcode
externalfigure "blblogogr.pdf" xscaled 35mm yscaled 19mm shifted (13mm,15mm);
\stopMPcode
\stoptext

I get the error message:

metapost>  loading 'metafun.mp' (experimental metapost version two)


beware: 35cm is a scale factor so the natural size gets scaled by 35 * 
cm (a constant)


use xsized and ysized instead (or just one to stay in proportion)


-
  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] No widows and orphans

2011-03-01 Thread Cecil Westerhof
2011/3/1 Wolfgang Schuster 

> \setupparagraphintro[each][\keeplinestogether{10}]
>
>
> Wrecks havoc with my document.
>
>
> Without seeing your document there is no way to help you.
>

I'll try to make a synopsis. Will properly be Friday before I'll post it.

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

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


[NTG-context] ConTeXt licensing

2011-03-01 Thread Joseph Wright
Hello all,

A question came up recently on the tex.sx site about ConTeXt licensing:

http://tex.stackexchange.com/questions/12431/using-context-commercially

I have a feeling I've seen something similar elsewhere recently, but
cannot be sure where.

This question seems to require an 'official' response, as things do seem
a little confusing (at least to me). I'm happy to post something as a
reply to the question if I know what the position is (or indeed if it is
"read what we've put and go with it".)
-- 
Joseph Wright
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt licensing

2011-03-01 Thread Aditya Mahajan

On Tue, 1 Mar 2011, Joseph Wright wrote:


Hello all,

A question came up recently on the tex.sx site about ConTeXt licensing:

http://tex.stackexchange.com/questions/12431/using-context-commercially

I have a feeling I've seen something similar elsewhere recently, but
cannot be sure where.


Perhaps: http://tex.stackexchange.com/posts/3507/revisions

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] ConTeXt licensing

2011-03-01 Thread Martin Schröder
2011/3/1 Joseph Wright :
> This question seems to require an 'official' response, as things do seem
> a little confusing (at least to me). I'm happy to post something as a

You won't get a more "official" response than
http://www.pragma-ade.com/general/manuals/mreadme.pdf

". . . and don’t bother discussing licence issues and related things
with us for the mere sake of discussing licence stuff."

If someone wants to use ConTeXt commercially I advise her to contact
Pragma ADE, if only to get a support contract (if they offer such a
thing).

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

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


Re: [NTG-context] lines tightly fitting together

2011-03-01 Thread Hartmut Henkel
On Tue, 1 Mar 2011, Hans van der Meer wrote:

> Silly perhaps, but I am stuck with something that shouldn't be
> difficult to solve. I want to fill lines with small blocks (\vrule's
> just 0.2 mm high) and then fit the indivdual lines as tight together
> as is possible. Trying \setupinterlinespace[height=0.2,depth=0] did
> not help and the kludge \switchtobodyfont[0.1pt] does has the spirit
> of ConTeXt ;-) Anybody out there knowing how to do it?

maybe \lineskip=0pt helps?

Regards, Hartmut
___
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] contextgarden down

2011-03-01 Thread Michael Goerz
It appears that the contexgarden.net website is down.

Michael
___
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] Interaction menu in layer

2011-03-01 Thread Hans Hagen

On 1-3-2011 1:37, Ian Lawrence wrote:

morning...

Is it possible to put the interactionmenu in  a layer to position it?


\interactionmenus[nameofmenu]


-
  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] ConTeXt licensing

2011-03-01 Thread Miguel Queiros

> You won't get a more "official" response than
> http://www.pragma-ade.com/general/manuals/mreadme.pdf
> 
> ". . . and don’t bother discussing licence issues and related things
> with us for the mere sake of discussing licence stuff."
> 
> If someone wants to use ConTeXt commercially I advise her to contact
> Pragma ADE, if only to get a support contract (if they offer such a
> thing).

http://www.pragma-ade.com/general/manuals/mreadme.pdf

In the readme above we can read on page 2 (about the code it self):
"The program code (i.e. anything not under the /doc subtree) is
distributed under the Creative Commons GNU GPL"

and

"The GNU General Public License is a Free Software license. Like any
Free Software license, it grants to you the four following freedoms:
The freedom to run the program for any purpose."

So I don't really see any issues about using Context commercially,
as long as someone is not trying to create a new system named
"MyOwnTex" that is based on Context, and trying to distribute it 
without obeying Context's license. That's what it's told on the
end of page 2 and beginning of page 3 of the readme:

"If you modify your copy or copies of the program or any portion of it,
or develop a program based upon it, you may distribute the resulting
work provided you do so under the GNU General Public License. Any
translation of the GNU General Public License must be accompanied by the
GNU General Public License."

As someone said the Docs (page 4 of the readme) are shared with a
different, noncommercial license.

Miguel Queirós
 



___
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] (no subject)

2011-03-01 Thread Tom
The following code seems to ignore both justification (to the extent that a
mono-spaced font could be justified) and the right margin. I recall seeing
something that deals with this problem somewhere but can't recall where.

\starttext
\tt 
Janet had gone away to get the bath ready, when my aunt, to my great alarm,
became in one moment rigid with indignation, and had hardly voice to cry
out, {\quotation Janet! Donkeys!}
Upon which, Janet came running up the stairs as if the house were in flames,
darted out on a little piece of green in front, and warned off two
saddle-donkeys, lady-ridden, that had presumed to set hoof upon it; while my
aunt, rushing out of the house, seized the bridle of a third animal laden
with a bestriding child, turned him, led him forth from those sacred
precincts, and boxed the ears of the unlucky urchin in attendance who had
dared to profane that hallowed ground.
\rm  
\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Justify monospaced text

2011-03-01 Thread Wolfgang Schuster

Am 02.03.2011 um 04:40 schrieb Tom:

> The following code seems to ignore both justification (to the extent that a
> mono-spaced font could be justified) and the right margin. I recall seeing
> something that deals with this problem somewhere but can't recall where.

\setupbodyfont[mono]
\setuptolerance[space]
\showframe
\starttext
Janet had gone away to get the bath ready, when my aunt, to my great alarm,
became in one moment rigid with indignation, and had hardly voice to cry
out, {\quotation Janet! Donkeys!}
Upon which, Janet came running up the stairs as if the house were in flames,
darted out on a little piece of green in front, and warned off two
saddle-donkeys, lady-ridden, that had presumed to set hoof upon it; while my
aunt, rushing out of the house, seized the bridle of a third animal laden
with a bestriding child, turned him, led him forth from those sacred
precincts, and boxed the ears of the unlucky urchin in attendance who had
dared to profane that hallowed ground.
\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] Metafun Label and externalfigure Problem

2011-03-01 Thread Lutz Haseloff
I just tested luatex rev 4090:
--
\starttext
\startMPpage
externalfigure "blblogo.pdf" scaled .4 ;
%label(textext("Test"),origin);
\stopMPpage
\stoptext
--
gives no error message and an empty pdf 1mmx5mm
--
\starttext
\startMPpage
%externalfigure "blblogo.pdf" scaled .4 ;
label(textext("Test"),origin);
\stopMPpage
\stoptext
--
results in "mpout"
--
\starttext
\startMPpage
externalfigure "blblogo.pdf" scaled .4 ;
label(textext("Test"),origin);
\stopMPpage
\stoptext
--
gives:

metapost> initializing instance 'metafun' using format 'metafun'
metapost> loading 'metafun.mp' (experimental metapost version two)
! String contains an invalid utf-8 sequence.
l.6
   񞞋_number=2
 ...re.mp ; fi ; ]===], false)}

\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
 \egroup \placeMPgraphic \d...
\dostartMPpage ...??mg ][#1]\processMPgraphic {#2}
 \dostopfittingpage
l.5 \stopMPpage

?


All three files compile as expected with luatex rev 4086


Greetings Lutz


2011/3/1 Hans Hagen :
> On 1-3-2011 11:17, Lutz Haseloff wrote:
>>
>> Hi all,
>>
>> with latest ConTeXt MKIV
>> Metapost Labels doesn't work for me anymore.
>> My Code:
>>
>> \starttext
>> \startMPcode
>> label(textext("Test"),origin);
>> \stopMPcode
>> \stoptext
>>
>> The Output only shows the word "mpout" as the Label.
>
> works ok here
>
>> There seems to be a Problem with externalfigure too.
>>
>> With:
>>
>> \starttext
>> \startMPcode
>> externalfigure "blblogogr.pdf" xscaled 35mm yscaled 19mm shifted
>> (13mm,15mm);
>> \stopMPcode
>> \stoptext
>>
>> I get the error message:
>>
>> metapost>  loading 'metafun.mp' (experimental metapost version two)
>
> beware: 35cm is a scale factor so the natural size gets scaled by 35 * cm (a
> constant)
>
> use xsized and ysized instead (or just one to stay in proportion)
>
>
> -
>                                          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] contextgarden down

2011-03-01 Thread Patrick Gundlach

Am 02.03.2011 um 00:10 schrieb Michael Goerz:

> It appears that the contexgarden.net website is down.

It's up again.

I am still looking for a person or a group to hand over the contextgarden.net 
machine.


Patrick

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

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


Re: [NTG-context] ConTeXt licensing

2011-03-01 Thread Taco Hoekwater


On 1 mrt. 2011, at 22:37, Joseph Wright  
wrote:

> Hello all,
> 
> A question came up recently on the tex.sx site about ConTeXt licensing:
> 
> http://tex.stackexchange.com/questions/12431/using-context-commercially
> 
> I have a feeling I've seen something similar elsewhere recently, but
> cannot be sure where.
> 
> This question seems to require an 'official' response, as things do seem
> a little confusing (at least to me). I'm happy to post something as a
> reply to the question if I know what the position is (or indeed if it is
> "read what we've put and go with it".)

I will reply on tex.sx  in an hour or two (have to travel first)

Best wishes,

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

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


Re: [NTG-context] \setuphead[ownnumber=yes]; disabling parental numbers

2011-03-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Works perfectly, thanks a lot!

Lukas



what exactly should the "ownnumber=yes|no" option do in \setuphead?


It disables the automatic numbering to allow you set your own number.

\definehead[topic][section]
\setuphead [topic][ownnumber=yes]

\starttext
\section{Section}
\topic{3}{Topic}
\stoptext


Is it possible to disable parental numbers?


\setuphead[subsection][sectionsegments=subsection]

Wolfgang



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

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

t-Sec4.mkiv
Description: Binary data


t-Sec4.pdf
Description: Adobe PDF document
___
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
___