Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Piotr Kopszak
You mean, you effectively want ConTeXt to choose best proportions for
the framed text on its own? I guess very few designers would agree for
that, if any.

2016-11-01 10:47 GMT+01:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:
> Hello,
> The option align = tolerant rule one of the problems I may encounter. But I
> wonder if it's possible that I should not choose myself width = 6cm to fit
> the text. If I have to use the command several times with different content,
> how make ?
> Thank you
> Fabrice
>
> 2016-11-01 9:23 GMT+01:00 Piotr Kopszak <kops...@gmail.com>:
>>
>> Just use
>> ...
>> \startMyFrame[Title=Info]
>> \setupalign[hyphenated,morehyphenation,verytolerant]
>> ...
>>
>> Piotr
>>
>> 2016-11-01 0:12 GMT+01:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:
>> > Hello,
>> > How to make the width of framedtext automatically adapts to its
>> > contents.
>> > Fabrice
>> >
>> > \definefloat
>> >[recipe]
>> >[figure]
>> >
>> > \setupfloat
>> >[recipe]
>> >[default={right,none}]
>> >
>> > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
>> > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>> >
>> >
>> > \defineframedtext
>> >   [MyFrame]
>> >   [before={\blank},
>> >after={\blank},
>> >frame=off,
>> >background=MyFrame,
>> >width=6cm,
>> >height=fit]
>> >
>> > \startuseMPgraphic{MyFrame}
>> >  path b;
>> >  picture p;
>> >  p := textext.rt("\tfx\white\framedtextparameter{Title}");
>> >  p := p shifted (2BodyFontSize,OverlayHeight-ypart center
>> > p+.25ExHeight);
>> >  b := boundingbox p enlarged .3EmWidth ;
>> >  fill OverlayBox withcolor \MPcolor{MyColorA};
>> >  fill b withcolor \MPcolor{MyColorB} ;
>> >  draw p ;
>> >  setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
>> > \stopuseMPgraphic
>> >
>> > \defineoverlay
>> >   [MyFrame]
>> >   [\useMPgraphic{MyFrame}]
>> >
>> >   \starttext
>> >
>> >   \placerecipe{}{
>> >   \startMyFrame[Title=Info]
>> >   L'histogramme est constitué de rectangles dont les bases correspondent
>> > aux
>> > classes et dont les aires sont proportionnelles aux effectifs ou
>> > fréquences
>> > des classes.
>> >   \stopMyFrame}
>> >
>> >   \input Knuth
>> >
>> >   \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://context.aanhet.net
>> > archive  : https://bitbucket.org/phg/context-mirror/commits/
>> > wiki : http://contextgarden.net
>> >
>> > ___
>>
>>
>>
>> --
>> http://okle.pl
>>
>> ___
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___



-- 
http://okle.pl
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Piotr Kopszak
Just use
...
\startMyFrame[Title=Info]
\setupalign[hyphenated,morehyphenation,verytolerant]
...

Piotr

2016-11-01 0:12 GMT+01:00 Fabrice Couvreur :
> Hello,
> How to make the width of framedtext automatically adapts to its contents.
> Fabrice
>
> \definefloat
>[recipe]
>[figure]
>
> \setupfloat
>[recipe]
>[default={right,none}]
>
> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>
>
> \defineframedtext
>   [MyFrame]
>   [before={\blank},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=6cm,
>height=fit]
>
> \startuseMPgraphic{MyFrame}
>  path b;
>  picture p;
>  p := textext.rt("\tfx\white\framedtextparameter{Title}");
>  p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);
>  b := boundingbox p enlarged .3EmWidth ;
>  fill OverlayBox withcolor \MPcolor{MyColorA};
>  fill b withcolor \MPcolor{MyColorB} ;
>  draw p ;
>  setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
> \stopuseMPgraphic
>
> \defineoverlay
>   [MyFrame]
>   [\useMPgraphic{MyFrame}]
>
>   \starttext
>
>   \placerecipe{}{
>   \startMyFrame[Title=Info]
>   L'histogramme est constitué de rectangles dont les bases correspondent aux
> classes et dont les aires sont proportionnelles aux effectifs ou fréquences
> des classes.
>   \stopMyFrame}
>
>   \input Knuth
>
>   \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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___



-- 
http://okle.pl
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] ConTeXt and duotone graphics

2016-10-31 Thread Piotr Kopszak
Hello list,

I have just came across this little script which allows to create
duotone pdfs with DeviceN channel. The script takes two grayscale tifs
as arguments and returns a pdf duotone. I guess it shouldn't be too
difficult to include it in the ConTeXt processing chain. Probably one
could include a command in a source file which would reference both
files used for  creation of a duotone image and the resulting image
would be used in the final pdf. How would you go about implementing
such a coupling?

Here is the link to the script

http://stdin.fr/Bazar/SpotColorImages

Best

Piotr


-- 
http://okle.pl
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] wrong handling of hash char in \useURL

2016-10-11 Thread Piotr Kopszak
Hello list,

When I try to use hash in a URL like this

\useURL[protr][http://wiki.contextgarden.net/Protrusion\#MkIV]

I'm getting correct address on the screen but wrong link
(http://wiki.contextgarden.net/Protrusion/#MkIV).

When I use

\startasciimode
\useURL[protr][http://wiki.contextgarden.net/Protrusion#MkIV]
\stopasciimode

I'm getting correct link but wrong url on the screen
(http://wiki.contextgarden.net/Protrusion##MkIV)

Any ideas?

Best

Piotr
-- 
http://okle.pl
___
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://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] metafun

2016-03-24 Thread Piotr Kopszak
P.S.

For your conveniance, the minimal example:

\startMPpositiongraphic{mypos:arrow}
   pair c[] ;
   initialize_box(\MPpos{\MPvar{self}});
   c[1] := cxy ;
   initialize_box(\MPpos{\MPvar{to}});
   c[2] := cxy ;
   drawarrow c[1] -- c[2] withpen pencircle scaled 2bp ;
\stopMPpositiongraphic
\startpositionoverlay{arrow}
\setMPpositiongraphic{X-1}{mypos:arrow}{to=X-2}
\setMPpositiongraphic{X-2}{mypos:arrow}{to=X-3}
\stoppositionoverlay
\defineoverlay[arrow][\positionoverlay{arrow}]
\setupbackgrounds[page][background=arrow]


\starttext

\section {Anchors and layers}

In a previous section we saw that some \hpos{X-1}{words} were
\hpos{X-2}{circled} and connected by an \hpos{X-3}{arrow}.
As with most things in \CONTEXT, marking these words is separated
from declaring what to do with those words. This paragraph is keyed
in as:

\stoptext

2016-03-24 18:23 GMT+01:00 Piotr Kopszak <kops...@gmail.com>:
> Hello list,
>
> The solution shown here no longer works with recent beta (indeed, it
> probably ceased to work some time ago). How should it be corrected?
>
> Best
>
> Piotr
>
> 2010-10-24 0:14 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:
>> On Sat, 23 Oct 2010, Herbert Voss wrote:
>>
>>> It is a hard job to understand how all works ...
>>
>>
>> I agree. That chapter is confusing if you do not know already how the
>> mechanism
>> works.
>>
>>> I tried to create the first example of the
>>> documentation "Page 257 Anchors and layers",
>>> but failed with mkii and iv. The page is created,
>>> but without the graphical elements. Not using
>>> \startbuffer--\stopbuffer makes no difference.
>>
>>
>> You are simply setting the positions. You also need to tell ConTeXt to do
>> something with the positions.
>>
>> 1. First define a position graphic that does something with the anchors that
>> it is passed.
>>
>> \startMPpositiongraphic{mypos:arrow}
>>   pair c[] ;
>>   initialize_box(\MPpos{\MPvar{self}});
>>   c[1] := cxy ;
>>   initialize_box(\MPpos{\MPvar{to}});
>>   c[2] := cxy ;
>>   drawarrow c[1] -- c[2] withpen pencircle scaled 2bp ;
>> \stopMPpositiongraphic
>>
>> cxy is the center of the box. See the defn of initialize_box in mp-core.mp
>> for other values. I wish these were better documented.
>>
>> 2. Then define a position overlay that specifies the relation between the
>> anchors.
>>
>> \startpositionoverlay{arrow}
>> \setMPpositiongraphic{X-1}{mypos:arrow}{to=X-2}
>> \setMPpositiongraphic{X-2}{mypos:arrow}{to=X-3}
>> \stoppositionoverlay
>>
>>
>> 3. Define an overlay that is mapped to MP position overlay.
>>
>> \defineoverlay[arrow][\positionoverlay{arrow}]
>>
>> 4. Hook the overlay as a page background
>>
>> \setupbackgrounds[page][background=arrow]
>>
>> 5. Then everything will work.
>>
>> \starttext
>>
>> \section {Anchors and layers}
>>
>> In a previous section we saw that some \hpos{X-1} {words} were
>> \hpos{X-2}{circled} and connected by an \hpos{X-3} {arrow}.
>> As with most things in \CONTEXT, marking these words is separated
>> from declaring what to do with those words. This paragraph is keyed
>> in as:
>>
>> \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
>> ___
>
>
>
> --
> http://okle.pl



-- 
http://okle.pl
___
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

2016-03-24 Thread Piotr Kopszak
Hello list,

The solution shown here no longer works with recent beta (indeed, it
probably ceased to work some time ago). How should it be corrected?

Best

Piotr

2010-10-24 0:14 GMT+02:00 Aditya Mahajan :
> On Sat, 23 Oct 2010, Herbert Voss wrote:
>
>> It is a hard job to understand how all works ...
>
>
> I agree. That chapter is confusing if you do not know already how the
> mechanism
> works.
>
>> I tried to create the first example of the
>> documentation "Page 257 Anchors and layers",
>> but failed with mkii and iv. The page is created,
>> but without the graphical elements. Not using
>> \startbuffer--\stopbuffer makes no difference.
>
>
> You are simply setting the positions. You also need to tell ConTeXt to do
> something with the positions.
>
> 1. First define a position graphic that does something with the anchors that
> it is passed.
>
> \startMPpositiongraphic{mypos:arrow}
>   pair c[] ;
>   initialize_box(\MPpos{\MPvar{self}});
>   c[1] := cxy ;
>   initialize_box(\MPpos{\MPvar{to}});
>   c[2] := cxy ;
>   drawarrow c[1] -- c[2] withpen pencircle scaled 2bp ;
> \stopMPpositiongraphic
>
> cxy is the center of the box. See the defn of initialize_box in mp-core.mp
> for other values. I wish these were better documented.
>
> 2. Then define a position overlay that specifies the relation between the
> anchors.
>
> \startpositionoverlay{arrow}
> \setMPpositiongraphic{X-1}{mypos:arrow}{to=X-2}
> \setMPpositiongraphic{X-2}{mypos:arrow}{to=X-3}
> \stoppositionoverlay
>
>
> 3. Define an overlay that is mapped to MP position overlay.
>
> \defineoverlay[arrow][\positionoverlay{arrow}]
>
> 4. Hook the overlay as a page background
>
> \setupbackgrounds[page][background=arrow]
>
> 5. Then everything will work.
>
> \starttext
>
> \section {Anchors and layers}
>
> In a previous section we saw that some \hpos{X-1} {words} were
> \hpos{X-2}{circled} and connected by an \hpos{X-3} {arrow}.
> As with most things in \CONTEXT, marking these words is separated
> from declaring what to do with those words. This paragraph is keyed
> in as:
>
> \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
> ___



-- 
http://okle.pl
___
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] getnumber and Roman numerals

2015-12-20 Thread Piotr Kopszak
Perfect! That's exactly what I needed. I used numers without prefix in the end.

\definecounter[mycounter][way=bytext,prefix=no]

Many thanks!

Piotr

2015-12-19 9:48 GMT+01:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>:
> Piotr Kopszak
> 18. Dezember 2015 um 21:02
> Hello list,
>
> This probably does not make much sense in normal circumstances, as I
> would use simply itemize to get roman numerals for certain items then,
> but this time I'm using output from a script and it would be much
> easier for me to use \getnumber. Is it possile to convert \getnumber
> output to roman numerals?
>
>
> \definecounter[mycounter]
>
> \starttext
>
> \incrementcounter[mycounter]
> \convertedcounter[mycounter]
>
> \incrementcounter[mycounter]
> \convertedcounter[mycounter][numberconversion=R]
>
> \incrementcounter[mycounter]
> \convertedcounter[mycounter][numberconversion=A]
>
> \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
> ___



-- 
http://okle.pl
___
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] getnumber and Roman numerals

2015-12-18 Thread Piotr Kopszak
Hello list,

This probably does not make much sense in normal circumstances, as I
would use simply itemize to get roman numerals for certain items then,
but this time I'm using output from a script and it would be much
easier for me to use \getnumber. Is it possile to convert \getnumber
output to roman numerals?

Piotr

-- 
http://okle.pl
___
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] epub-mkiv-demo.epub

2015-04-13 Thread Piotr Kopszak
Thanks Hans!

That did the trick, just a README mentioning mudraw as dependency in
the source directory would do, however the file which is generated
contains errors, at least according to epubcheck and kindlegen, which
prevents conversion of resulting epub file to mobi format, what I
would ultimately like to do.

epubcheck output

Validating against EPUB version 3.0 - custom validation
Validating using EPUB version 3.0 rules.
ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(26,79):
Error while parsing file 'assertion failed: Duplicate ID 'cow-svg''.
ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(27,79):
Error while parsing file 'assertion failed: Duplicate ID 'cow-svg''.
ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(27,79):
Error while parsing file 'duplicate resource: OEBPS/images/cow.svg'.
WARNING(ACC-009):
epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(38,120): MathML
should either have an alt text attribute or annotation-xml child
element.
WARNING(ACC-009):
epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(42,120): MathML
should either have an alt text attribute or annotation-xml child
element.
WARNING(ACC-009):
epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(54,198): MathML
should either have an alt text attribute or annotation-xml child
element.

Check finished with errors

epubcheck completed
---

kindlegen output
--
*
 Amazon kindlegen(Windows) V2.9 build 1029-0897292
 A command line e-book compiler
 Copyright Amazon.com and its Affiliates 2014
*

Info:I9026:option: (hidden) amazon creator tool or pipeline

Info:I9014:option: -verbose: Verbose output

Info(prcgen):I1048: Unpacking ePub file

Error(xmlmake):E27012: Item or process id already used: cow-svg
-

Any chance these might be fixed?

Best

Piotr


2015-04-11 12:52 GMT+02:00 Hans Hagen pra...@wxs.nl:
 On 4/11/2015 9:12 AM, Piotr Kopszak wrote:

 Hello list,

 I am trying to compile example epub file epub-mkiv-demo.tex which is
 provided with the recent beta, however I'm getting following errors
 when I run:mtxrun --script epub --make epub-mkiv-demo

 resolvers   | trees | analyzing 'home:texmf'
 mtx-epub| using specification file
 'epub-mkiv-demo-export/epub-mkiv-demo-pub.lua'
 mtx-epub| the 'mudraw' binary is not present


 install mudraw

 mtx-epub| cover page image 'cover.xhtml' is not present
 mtx-epub| saving dummy coverpage to

 'epub-mkiv-demo-export/cover.xhtml'...42015/tex/texmf-context/scripts/context/lua/mtx-epub.lua:606:
 bad argument #1 to 'gsub' (string expected, got nil)

 No epub file is generated.

 Any help would be greatly appreciated


 i'll add a check

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



-- 
http://okle.pl


epub-mkiv-demo.epub
Description: application/epub
___
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] epub-mkiv-demo.epub

2015-04-11 Thread Piotr Kopszak
Hello list,

I am trying to compile example epub file epub-mkiv-demo.tex which is
provided with the recent beta, however I'm getting following errors
when I run:mtxrun --script epub --make epub-mkiv-demo

resolvers   | trees | analyzing 'home:texmf'
mtx-epub| using specification file
'epub-mkiv-demo-export/epub-mkiv-demo-pub.lua'
mtx-epub| the 'mudraw' binary is not present
mtx-epub| cover page image 'cover.xhtml' is not present
mtx-epub| saving dummy coverpage to
'epub-mkiv-demo-export/cover.xhtml'...42015/tex/texmf-context/scripts/context/lua/mtx-epub.lua:606:
bad argument #1 to 'gsub' (string expected, got nil)

No epub file is generated.

Any help would be greatly appreciated

Piotr

-- 
http://okle.pl
___
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] automatic generation of em dash at the beginning of a line

2015-03-01 Thread Piotr Kopszak
Many Thanks Hans!

But that's not exactly what I need, sorry for being imprecise, I do
not need to repeat hyphens, but only  em dashes (or en dashes, which
ever are used in the document) in situations like this.

Most newspapers — and all that follow AP style — insert a space before
and after the em dash.

It should look like this:

Most newspapers — and all that follow  AP style —
— insert a space before and  after the em dash.

All Best

Piotr

2015-03-01 17:58 GMT+01:00 Hans Hagen pra...@wxs.nl:
 On 3/1/2015 5:41 PM, Piotr Kopszak wrote:

 Hello list,

 This is probably a Polish idiosyncrasy, but we have to live with it.
 According to punctuation rules when an em dash is at the end of a
 line, it should be repeated at the beginning of the next one (true, it
 is often disregarded due to lack of support for it in typesetting
 programs). Is there any way to deal with it in ConTeX?


 \starttext

 \setuplanguage[pl][lefthyphenchar=45,righthyphenchar=45]

 \pl \input tufte

 \stoptext


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



-- 
http://okle.pl
___
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] automatic generation of em dash at the beginning of a line

2015-03-01 Thread Piotr Kopszak
Hello list,

This is probably a Polish idiosyncrasy, but we have to live with it.
According to punctuation rules when an em dash is at the end of a
line, it should be repeated at the beginning of the next one (true, it
is often disregarded due to lack of support for it in typesetting
programs). Is there any way to deal with it in ConTeX?

Best

Piotr

-- 
http://okle.pl
___
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] filter module's inline command and supressed spacing

2015-01-02 Thread Piotr Kopszak
OK, will do so.

Best

Piotr

2015-01-01 23:14 GMT+01:00 Mark Szepieniec mszep...@gmail.com:
 Hi Piotr,

 maybe you can try opening an issue in the code's repository:
 https://github.com/adityam/filter/issues

 On Tue, Dec 30, 2014 at 10:28 AM, Piotr Kopszak kops...@gmail.com wrote:

 P.S.

 Silly of me not to check ConTeXt version first. Anyway, the problem
 persists with most recent ConTeXt although different errors are
 produced. The space is supressed
 in 'Januszkiewicza)Notatki' and html entities are not interpreted
 properly when using \inlinepandoc.

 2014-12-30 10:00 GMT+01:00 Piotr Kopszak kops...@gmail.com:
  Hello list,
 
  It looks like a bug in the filter module, but maybe I'm doing
  something wrong. Any help will be greatly appreciated. When using the
  \inlinepandoc command in the first paragraph below the space at the
  end of the paragraph in życiaA. Mickiewicza is supressed when it
  should be życia A. Mickiewicza. This does not happen when using
  pandoc environment. If you want to run the minimal example you have to
  make sure you got the recent pandoc which supports twiki input format
  and create the output subdirectory in your working directory.
 
  Best
 
  Piotr
 
  
  \usemodule[filter]
  \defineexternalfilter
[pandoc]
[
  filter={pandoc -f \externalfilterparameter{format} -t context
 -o \externalfilteroutputfile},
  format=twiki,
  directory=output,
]
  \starttext
  Inne tyt.: Wizyta pana Franciszka Grzymały, Exegi monumentum aere
  perennius  Powst. Paryż, na autografie podpis: Paryż, 12 marca
  1833. Wiersze natchnione wizytą Fr. Grzymały.   Pdr: {\it Czas} 1859
  nr nr 118 s. 2.  (\inlinepandoc{w artykule L#42;#42;#42; (E.
  Januszkiewicza)  Notatki wspomnień z życia A. Mickiewicza}).
 
  \startpandoc
  Inne tyt.: Wizyta pana Franciszka Grzymały, Exegi monumentum aere
  perennius  Powst. Paryż, na autografie podpis: Paryż, 12 marca
  1833. Wiersze natchnione wizytą Fr. Grzymały.   Pdr: {\it Czas} 1859
  nr nr 118 s. 2.  (w artykule L#42;#42;#42; (E. Januszkiewicza)
  Notatki wspomnień z życia A. Mickiewicza).
  \stoppandoc
  \stoptext
 
  -
 
  --
  http://okle.pl



 --
 http://okle.pl

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



-- 
http://okle.pl
___
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] filter module's inline command and supressed spacing

2014-12-30 Thread Piotr Kopszak
Hello list,

It looks like a bug in the filter module, but maybe I'm doing
something wrong. Any help will be greatly appreciated. When using the
\inlinepandoc command in the first paragraph below the space at the
end of the paragraph in życiaA. Mickiewicza is supressed when it
should be życia A. Mickiewicza. This does not happen when using
pandoc environment. If you want to run the minimal example you have to
make sure you got the recent pandoc which supports twiki input format
and create the output subdirectory in your working directory.

Best

Piotr

\usemodule[filter]
\defineexternalfilter
  [pandoc]
  [
filter={pandoc -f \externalfilterparameter{format} -t context
   -o \externalfilteroutputfile},
format=twiki,
directory=output,
  ]
\starttext
Inne tyt.: Wizyta pana Franciszka Grzymały, Exegi monumentum aere
perennius  Powst. Paryż, na autografie podpis: Paryż, 12 marca
1833. Wiersze natchnione wizytą Fr. Grzymały.   Pdr: {\it Czas} 1859
nr nr 118 s. 2.  (\inlinepandoc{w artykule L#42;#42;#42; (E.
Januszkiewicza)  Notatki wspomnień z życia A. Mickiewicza}).

\startpandoc
Inne tyt.: Wizyta pana Franciszka Grzymały, Exegi monumentum aere
perennius  Powst. Paryż, na autografie podpis: Paryż, 12 marca
1833. Wiersze natchnione wizytą Fr. Grzymały.   Pdr: {\it Czas} 1859
nr nr 118 s. 2.  (w artykule L#42;#42;#42; (E. Januszkiewicza)
Notatki wspomnień z życia A. Mickiewicza).
\stoppandoc
\stoptext
-

-- 
http://okle.pl
___
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] filter module's inline command and supressed spacing

2014-12-30 Thread Piotr Kopszak
P.S.

Silly of me not to check ConTeXt version first. Anyway, the problem
persists with most recent ConTeXt although different errors are
produced. The space is supressed
in 'Januszkiewicza)Notatki' and html entities are not interpreted
properly when using \inlinepandoc.

2014-12-30 10:00 GMT+01:00 Piotr Kopszak kops...@gmail.com:
 Hello list,

 It looks like a bug in the filter module, but maybe I'm doing
 something wrong. Any help will be greatly appreciated. When using the
 \inlinepandoc command in the first paragraph below the space at the
 end of the paragraph in życiaA. Mickiewicza is supressed when it
 should be życia A. Mickiewicza. This does not happen when using
 pandoc environment. If you want to run the minimal example you have to
 make sure you got the recent pandoc which supports twiki input format
 and create the output subdirectory in your working directory.

 Best

 Piotr
 
 \usemodule[filter]
 \defineexternalfilter
   [pandoc]
   [
 filter={pandoc -f \externalfilterparameter{format} -t context
-o \externalfilteroutputfile},
 format=twiki,
 directory=output,
   ]
 \starttext
 Inne tyt.: Wizyta pana Franciszka Grzymały, Exegi monumentum aere
 perennius  Powst. Paryż, na autografie podpis: Paryż, 12 marca
 1833. Wiersze natchnione wizytą Fr. Grzymały.   Pdr: {\it Czas} 1859
 nr nr 118 s. 2.  (\inlinepandoc{w artykule L#42;#42;#42; (E.
 Januszkiewicza)  Notatki wspomnień z życia A. Mickiewicza}).

 \startpandoc
 Inne tyt.: Wizyta pana Franciszka Grzymały, Exegi monumentum aere
 perennius  Powst. Paryż, na autografie podpis: Paryż, 12 marca
 1833. Wiersze natchnione wizytą Fr. Grzymały.   Pdr: {\it Czas} 1859
 nr nr 118 s. 2.  (w artykule L#42;#42;#42; (E. Januszkiewicza)
 Notatki wspomnień z życia A. Mickiewicza).
 \stoppandoc
 \stoptext
 -

 --
 http://okle.pl



-- 
http://okle.pl
___
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] Chapter title in headertexts only

2013-05-05 Thread Piotr Kopszak
OK, now I see the difference between no and empty! Great.

Many thanks

Piotr

2013/5/2 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 02.05.2013 um 17:20 schrieb Piotr Kopszak kops...@gmail.com:

 OK, found a sufficiant solution

 \setuphead[chapter][placehead=no]
 \setupheadertexts[][\setups{a}][][]\
 \startsetups[a]
 \expanded{\fetchmark[a][first]}
 \stopsetups
 \definemarking[a]
 \starttext
 \chapter{my chapter}
 \marking[a]{my chapter}
 \input knuth
 \stoptext

 Any other ideas?


 \setuphead[chapter][placehead=empty]

 \setupheadertexts[][chapter][][]

 \starttext
 \chapter{my chapter}
 \input knuth
 \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
 ___



-- 
http://okle.pl
___
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] Chapter title in headertexts only

2013-05-02 Thread Piotr Kopszak
Hello list,

I am trying to suppress chapter heading and at the same time use
chapter title in the headertext. Is it possible with mkIV?

Best

Piotr
-- 
http://okle.pl
___
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] Chapter title in headertexts only

2013-05-02 Thread Piotr Kopszak
Sorry, forgot about a minimal example. Here it is.


\setuphead[chapter][placehead=no]
\setupheadertexts[][chapter][][]
\starttext
\chapter{my chapter}
\input knuth
\stoptext

2013/5/2 Piotr Kopszak kops...@gmail.com:
 Hello list,

 I am trying to suppress chapter heading and at the same time use
 chapter title in the headertext. Is it possible with mkIV?

 Best

 Piotr
 --
 http://okle.pl



-- 
http://okle.pl
___
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] Chapter title in headertexts only

2013-05-02 Thread Piotr Kopszak
OK, found a sufficiant solution

 \setuphead[chapter][placehead=no]
 \setupheadertexts[][\setups{a}][][]\
\startsetups[a]
\expanded{\fetchmark[a][first]}
\stopsetups
\definemarking[a]
\starttext
 \chapter{my chapter}
\marking[a]{my chapter}
 \input knuth
 \stoptext

Any other ideas?

Piotr
2013/5/2 Piotr Kopszak kops...@gmail.com:
 Sorry, forgot about a minimal example. Here it is.


 \setuphead[chapter][placehead=no]
 \setupheadertexts[][chapter][][]
 \starttext
 \chapter{my chapter}
 \input knuth
 \stoptext

 2013/5/2 Piotr Kopszak kops...@gmail.com:
 Hello list,

 I am trying to suppress chapter heading and at the same time use
 chapter title in the headertext. Is it possible with mkIV?

 Best

 Piotr
 --
 http://okle.pl



 --
 http://okle.pl



-- 
http://okle.pl
___
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] defineindenting

2012-10-26 Thread Piotr Kopszak
Hello list,

I feel a bit out of context not following the list closely for some
time so maybe this has been solved already. I cannot get
defineindenting to work. Example attached.

Best

Piotr

-- 
http://okle.pl


test-indentations.tex
Description: TeX 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] defineindenting

2012-10-26 Thread Piotr Kopszak
O yes, silly mistake! Anyway I'm still getting
-
! Undefined control sequence.

system   tex  error on line 1 in file test-indentations.tex:
Undefined control sequence ...

 1   \defineindenting[myindenting][width=5cm]
-

and no indenting at all when used with mkIV which is what I'd like to
use (mkII is out of question).


2012/10/26 Sietse Brouwer sbbrou...@gmail.com:
 Hello Piotr,

 I cannot get defineindenting to work. Example attached.


 To input example text, use
 \input knuth
 not
 \knuth .

 After that change your example works for me, apart from producing something 
 like
 '. . .   :' in the indent space --- I am not familiar with
 MkII, so I can't tell you whether this behaviour is expected or
 another bug. I have attached my output.

 \defineindenting[myindenting][width=5cm]
 \starttext

 \myindenting
 \input knuth

 \stoptext

 Kind regards,
 Sietse

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



-- 
http://okle.pl
___
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] defineindenting

2012-10-26 Thread Piotr Kopszak
Right, so is there a replacement for \defineindenting which works in
the recent version?

2012/10/26 Marco Patzer home...@lavabit.com:
 2012-10-26 Sietse Brouwer:

 Hello Piotr,

  I cannot get defineindenting to work. Example attached.


 To input example text, use
 \input knuth
 not
 \knuth .

 After that change your example works for me, apart from producing something 
 like
 '. . .   :' in the indent space --- I am not familiar with
 MkII, so I can't tell you whether this behaviour is expected or
 another bug.

 An MkIV 2011.11.29 23:11 produces the same result as MkII, the wiki
 however says Mkii only. It seems that this command was removed or
 changed in 2012.01.11 10:58. I never used it myself.


 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
 ___



-- 
http://okle.pl
___
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] defineindenting

2012-10-26 Thread Piotr Kopszak
Many thanks! The wiki says it is used to define a collection of
indenting settings. I used it to indent more then in the case of
other paragraphs the  first line of the first paragraph in a chapter,
so your solution is unfortunately not exactly what I mean.

Best

Piotr
2012/10/26 Marco Patzer home...@lavabit.com:
 2012-10-26 Piotr Kopszak:

 Right, so is there a replacement for \defineindenting which works in
 the recent version?

 I don't know what \defineindenting is supposed to do. I can hardly
 believe that the dots in the output are intended. What about this:

 \definedelimitedtext
   [indenting]
   [leftmargin=4cm, rightmargin=]

 \starttext
   \startindenting
 \input knuth
   \stopindenting
 \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
 ___



-- 
http://okle.pl
___
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] defineindenting

2012-10-26 Thread Piotr Kopszak
That did the trick. Yes, I know it's weird. Technology makes strange
things happen sometimes ;)

Thanks!

Piotr

2012/10/26 Marco Patzer home...@lavabit.com:
 2012-10-26 Piotr Kopszak:

 Many thanks! The wiki says it is used to define a collection of
 indenting settings. I used it to indent more then in the case of
 other paragraphs the  first line of the first paragraph in a chapter,
 so your solution is unfortunately not exactly what I mean.

 To indent the first line you can use

   \setupindenting [yes, 2cm]

 That, however, is not configurable. And frankly I've never seen
 varying paragraph indentations in a document. If you really need it
 you can build a wrapper around this.


 \def\defineindenting
   {\dodoubleempty\dodefineindenting}

 \def\dodefineindenting [#1][#2]
   {\setvalue{#1}{\setupindenting[yes, #2]}}

 \defineindenting [first]  [2cm]
 \defineindenting [second] [3cm]

 \starttext
   \first
   \input knuth

   \second
   \input knuth
 \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
 ___



-- 
http://okle.pl
___
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 for Android?

2011-07-24 Thread Piotr Kopszak
I'll try to find out how to do that. Actually I was thinking about all
sort of short documents I need to print quickly.

Piotr

2011/7/21 Mojca Miklavec mojca.miklavec.li...@gmail.com:
 On Thu, Jul 21, 2011 at 15:05, Piotr Kopszak wrote:
 Hello list,

 I was wondering if anybody  thinks about porting ConTeXt to Android.

 First you need to be able to compile luatex there.

 If you manage to do that, we can help you further.

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

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



-- 
http://okle.pl
___
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 for Android?

2011-07-21 Thread Piotr Kopszak
Hello list,

I was wondering if anybody  thinks about porting ConTeXt to Android.
Perhaps it wouldn't be as useless as it seems at first sight. Only
after the first month of using an android phone I'm amazed how my
habits changed and how reluctantly I resort to my laptop when I can do
something with my phone (this is not a commercial, amazingly).

Piotr


-- 
http://okle.pl
___
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] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Piotr Kopszak
Dear list,

 I am beginning a rather tedious documentation project and will most
   probably end up with DocBook. The fact is I haven't used it for any
   serious work for about 10 years. Docbook In ConText haven't been
   updated since 2003. Does it mean it's so perfect or instead rather
   obsolete? Could you recommend other approaches which work
   out-of-the-box (or almost). Obviously I would prefer ConTeXt based
   solutions. DocBook is not mandatory in fact, I would happily learn  other
   documentation system. Main prerequisite is utf-8 output at least in
   pdf and html and sensible defaults (this time I don't want to be a
   typographer, nor I want to fiddle with structure).

   Best

   Piotr
   --
   http://okle.pl
___
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] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Piotr Kopszak
Many thanks for your reply! I would certainly go this way having a
couple of months or a year perspective. Besides I'm eager to try
finally the new way mkIV deals with xml. But realistically, preparing
and testing a mapping of  even a subset of DocBook is a question of at
least a couple of personmonths if not worse. Sadly, I'm not in a
position to that now.

Best

Piotr

2011/6/2 Thomas Schmitz tschm...@uni-bonn.de:
 On Thu, 2 Jun 2011 11:39:46 +0200
  Piotr Kopszak kops...@gmail.com wrote:

 Dear list,

 I am beginning a rather tedious documentation project and will most
  probably end up with DocBook. The fact is I haven't used it for any
  serious work for about 10 years. Docbook In ConText haven't been
  updated since 2003. Does it mean it's so perfect or instead rather
  obsolete? Could you recommend other approaches which work
  out-of-the-box (or almost). Obviously I would prefer ConTeXt based
  solutions. DocBook is not mandatory in fact, I would happily learn  other
  documentation system. Main prerequisite is utf-8 output at least in
  pdf and html and sensible defaults (this time I don't want to be a
  typographer, nor I want to fiddle with structure).

  Best

  Piotr
  --
  http://okle.pl

 Difficult to say of course without knowing the complexity of your documents,
 but just a few thoughts: if you're referring to Simon Pepping's Docbook in
 ConTeXt, this was targeted at mkii, so it will probably still work, but
 could be considered obsolete. xml support in mkiv has changed a lot, but is
 much more powerful and flexible. It's fairly easy to write a stylesheet to
 translate your xml for typesetting, so I would look at the relevant xml
 documentation (like xml-mkiv.pdf) and make a fresh start. You can always
 refine and elaborate things as you go, and if you really hit a wall, there's
 the list.

 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
 ___




-- 
http://okle.pl
___
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 and Topic Maps

2010-11-19 Thread Piotr Kopszak
Hello list,

Anybody can share his or her experiences on typesetting Topic Maps? I
know it practically boils down to typesetting xml, I'm just curious.

Best

Piotr
___
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] interesting LaTeX package for flowing text

2010-08-12 Thread Piotr Kopszak
Yes, I delved pretty deep in columns but could not find a solution for
a problem I finally decided to tackle with Scribus.
I have text pepperred with tiny drawings which are surrounded by text
on all sides. Sometimes as much as 8 drawings per page in changing
locations. The only, rather painstaking, solution is to divide all
text areas into boxes on layers BUT each box has to have the text of
exact length input manually, which in my opinion is completely
unfeasible. Well, unless you want to spend couple of years.
Fortunately, it was the only case when I had to  give up ConTeXt in
almost ten years.

Piotr

2010/8/12 luigi scarso luigi.sca...@gmail.com:
 On Wed, Aug 11, 2010 at 11:54 PM, Piotr Kopszak kops...@gmail.com wrote:
 Columns are excellent, no doubt, but as far as I understand them, they
 don't allow to flow text to boxes in arbitrary locations.

 Sorry, I meant
 www.pragma-ade.com/general/manuals/columns.pdf


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




-- 
http://okle.pl
___
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] caught in the grid

2010-08-12 Thread Piotr Kopszak
You can play with embedding \section inside \start and
\stoplinecorrection to get rid of overlapping, but I'm not sure if
it's the right thing to do.

Piotr

2010/8/12 Steffen Wolfrum cont...@st.estfiles.de:

 Am 12.08.2010 um 00:31 schrieb Hans Hagen:

 On 11-8-2010 9:49, Steffen Wolfrum wrote:
 Hi,


 as there is no setup for paragraphs (see thread before), I really don' know 
 how to come out of this trap:

 I need a tight interlinespace for the normal body text, but no lunatic 
 headings!!


 Have a look, please:

 I have no time now. I will document the grid snapper once I've finished the 
 (still somewhat experimental) mechanism.



 OK. ... Just to avoid basic mistakes:

 What is right syntax (direct/indirect)?
 The results differ (see below) ...

 Steffen

 

 \definegridsnapping[MyGrid]    [no]

 %\setuplayout[grid=no] % - alternative a
 \setuplayout[grid=MyGrid] % - alternative b

 \showgrid


 \setuphead[chapter]

 \starttext
   \chapter{one}             \input tufte
   \chapter{one\\two}        \input tufte
   \chapter{one\\two\\three} \input tufte
 \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
 ___




-- 
http://okle.pl
___
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] interesting LaTeX package for flowing text

2010-08-11 Thread Piotr Kopszak
Hello List,

Just came across this today. Haven't even tried it. Just wondering
whether it could be ported to ConTeXt at all.

http://www.ctan.org/tex-archive/help/Catalogue/entries/flowfram.html

Piotr

-- 
http://okle.pl
___
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] interesting LaTeX package for flowing text

2010-08-11 Thread Piotr Kopszak
Columns are excellent, no doubt, but as far as I understand them, they
don't allow to flow text to boxes in arbitrary locations.

Piotr

2010/8/11 luigi scarso luigi.sca...@gmail.com:
 On Wed, Aug 11, 2010 at 3:54 PM, Piotr Kopszak kops...@gmail.com wrote:
 Hello List,

 Just came across this today. Haven't even tried it. Just wondering
 whether it could be ported to ConTeXt at all.
 maybe columns is similar or better

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




-- 
http://okle.pl
___
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] simple style customization in t-letter

2010-05-24 Thread Piotr Kopszak
Works great! Will have to find out one day how ;)

Piotr



2010/5/21 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 21.05.10 10:56, schrieb Piotr Kopszak:

 I'm probably too dumb to figure that on my own, at least now. How one
 can change default style to move the reference line including date to
 the top of the letter page?


 You have create your own reference line, to make life easier it's
 possible to clone predefined layouts as done here.

 Just moving the predefined layouts is not possible because the start
 of the first text line depends on the reference line.

 \usemodule[letter]

 %\defineletterelement[reference][top]
 %  {\letterelement[reference][a]}

 \copyletterelement[reference][top][a]

 \setupletterstyle
  [reference]
  [alternative=top,
   list={phone,name,date},
   voffset=3cm]

 \setupletter
  [phone={1234/56789},
    name={Ben Lee User}]

 \starttext

 \startletter
 \input tufte
 \stopletter
 \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
 ___




-- 
http://okle.pl
___
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] simple style customization in t-letter

2010-05-21 Thread Piotr Kopszak
I'm probably too dumb to figure that on my own, at least now. How one
can change default style to move the reference line including date to
the top of the letter page?

Best

Piotr

-- 
http://okle.pl
___
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] feauture request - no numbers on blank pages at chapter's end

2010-05-21 Thread Piotr Kopszak
That's very close indeed. Thanks for putting me on the right track!
What I wanted is rather:

\setuphead
 [chapter]
 [page={yes,footer,right},
  footer=nomarking]

Best

Piotr

2010/5/21 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 20.05.10 13:21, schrieb Piotr Kopszak:

 Many thanks for your help!

 First the file according to the wiki example. Works if location=footer
 in \setuppagenumbering but not when

 \definepagebreak
   [mychapterpagebreak]
   [yes,header,right]

 \setuphead
   [chapter]
   [page=mychapterpagebreak,footer=empty]
 \setuppagenumbering[alternative=doublesided,location=margin]

 \starttext
   \chapter{testA} \dorecurse{10}{\input tufte }
   \chapter{testB} \dorecurse{10}{\input tufte }
   \chapter{testC} \dorecurse{10}{\input tufte }
 \stoptext


 Changing \setuphead to

 \setuphead[chapter][page={blank,right}]

 gets rid of the number on the chapter's title page (which I don't
 want) and still leaves it on the left empty page facing the title
 page. Not to mention the fact that pagenumbers appear only from page 10.

 This works for your minimal example:

 \setuphead
  [chapter]
  [page={yes,footer,right},
   footer=empty]

 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
 ___




-- 
http://okle.pl
___
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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Hello list,

I don't know if it is only an idiosyncrasy of Polish typography but if
a chapter ends with a blank page it should not display its number. It
would be very useful if this could be an option (if not a default
behaviour) of \setuppagenumbering . It's not a huge problem and I
think I will not wait for a solution before sending my next book for
printing, but it would be nice if it appeared in the future.

Best

Piotr
--
http://okle.pl
___
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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
It would be handy to avoid inserting \page in  this case, I think.

2010/5/20 Taco Hoekwater t...@elvenkind.com:
 Piotr Kopszak wrote:

 Hello list,

 I don't know if it is only an idiosyncrasy of Polish typography but if
 a chapter ends with a blank page it should not display its number. It
 would be very useful if this could be an option (if not a default
 behaviour) of \setuppagenumbering . It's not a huge problem and I
 think I will not wait for a solution before sending my next book for
 printing, but it would be nice if it appeared in the future.

 Isn't this what \page[blank,right] is supposed to do?

 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
 ___




-- 
http://okle.pl
___
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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Yes, I know but even if it was working in all cases (and it is not,
for instace I need pagenumbers in the margin and it didn't work in
this case) it looks really, really ugly. Why not wrap something like
this in a definition and give users an option?

2010/5/20 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 20.05.10 11:07, schrieb Piotr Kopszak:

 Hello list,

 I don't know if it is only an idiosyncrasy of Polish typography but if
 a chapter ends with a blank page it should not display its number. It
 would be very useful if this could be an option (if not a default
 behaviour) of \setuppagenumbering . It's not a huge problem and I
 think I will not wait for a solution before sending my next book for
 printing, but it would be nice if it appeared in the future.


 This is mentioned here:
 http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_chapters

 You don't \definepagebreak as mentioned in the wiki because

  \setuphead[chapter][page={header,footer,right}]

 is also valid.

 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
 ___




-- 
http://okle.pl
___
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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Many thanks for your help!

First the file according to the wiki example. Works if location=footer
in \setuppagenumbering but not when

\definepagebreak
  [mychapterpagebreak]
  [yes,header,right]

\setuphead
  [chapter]
  [page=mychapterpagebreak,footer=empty]
\setuppagenumbering[alternative=doublesided,location=margin]

\starttext
  \chapter{testA} \dorecurse{10}{\input tufte }
  \chapter{testB} \dorecurse{10}{\input tufte }
  \chapter{testC} \dorecurse{10}{\input tufte }
\stoptext


Changing \setuphead to

\setuphead[chapter][page={blank,right}]

gets rid of the number on the chapter's title page (which I don't
want) and still leaves it on the left empty page facing the title
page. Not to mention the fact that pagenumbers appear only from page
10.

Piotr
2010/5/20 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 20.05.10 12:53, schrieb Piotr Kopszak:

 It would be handy to avoid inserting \page in  this case, I think.


 \setuphead[chapter][page={blank,right}]

 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
 ___




-- 
http://okle.pl
___
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] Suppressing page number on chapter's last page

2010-05-12 Thread Piotr Kopszak
This works, but not in my case, as I absolutely need

\setuppagenumbering[alternative=doublesided,location=margin]

Best

Piotr



\definepagebreak
  [mychapterpagebreak]
  [yes,header,right]
 %[yes,header,left]
 %[yes,header,footer,right]

\setuphead
  [chapter]
  [page=mychapterpagebreak,footer=empty]
 %[page=Mychapterpagebreak,header=empty,footer=empty]

%\setupsectionblock[frontpart][page=chapter]
%\setupsectionblock[bodypart][page=chapter]
%\setupsectionblock[backpart][page=chapter]
%\setupsectionblock[appendix][page=chapter]

\setuppagenumbering[alternative=doublesided,location=margin]
\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]
%\setupbackgrounds[header][text][bottomframe=on]

\starttext
  \chapter{testA} \dorecurse{10}{\input tufte }
  \chapter{testB} \dorecurse{10}{\input tufte }
  \chapter{testC} \dorecurse{10}{\input tufte }
\stoptext


2010/5/10 Tom t...@tuxedo-press.com:
 The following link discusses a method for suppressing headers (including
 page numbers) from blank pages at the ends of chapters:
 http://wiki.contextgarden.net/Titles in the section titled Truly empty
 pagebreak before chapters.

 Tom Benjey
 717-258-9733 voice
 717-243-0074 fax
 Twitter: @TomBenjey






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




-- 
http://okle.pl
___
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] suppressing page number on chapter's last page

2010-05-10 Thread Piotr Kopszak
Hello list,

Last time I typeset a book I was reproached for not suppressing page
numbers on chapter's end pages and would like to avoid it this time ;)
I mean, is there any other way to suppress page numbers  more
user-friendly than peppering the text with
\setuppagenumbering[state=stop]? I need not page numbers only in
chapter's last page. I confess, I haven't checked the mail archive as
diligently as I should but the number of messages one gets looking for
page numbering is overwhelming.

Piotr
-- 
http://okle.pl
___
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] tlig not active in register

2010-03-17 Thread Piotr Kopszak
Dear list,

I'd love to provide a minimal example but before I figure out how to
do that a  short question:
I'm using the same font in the body text and registers: Jannon Text,
tex ligatures via fontfeatures work in the body text but not in
registers in page scopes. Any ideas?

Piotr
-- 
http://okle.pl
___
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] tlig not active in register

2010-03-17 Thread Piotr Kopszak
Is there a simple way to force replacing of double hyphen by a unicode
en dash in registers?

P.

2010/3/17 Piotr Kopszak kops...@gmail.com:

 Dear list,

 I'd love to provide a minimal example but before I figure out how to
 do that a  short question:
 I'm using the same font in the body text and registers: Jannon Text,
 tex ligatures via fontfeatures work in the body text but not in
 registers in page scopes. Any ideas?

 Piotr
 --
 http://okle.pl




-- 
http://okle.pl
___
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] tlig not active in register

2010-03-17 Thread Piotr Kopszak
Here it is, for archives only, as the bug is no longer there with
today's minimals. I noticed it with
context version of 2009.09.25 23:52. Evidently time to update.

\setupregister[index][pagestyle=\it]
\usetypescript[iwona]
\switchtobodyfont[iwona]
\starttext

first \index[first]{first item}
\page
first \index[first]{first item}
\page
first \index[first]{first item}
\page

\placeindex[compress=yes]

\stoptext

Piotr
2010/3/17 Hans Hagen pra...@wxs.nl:
 On 17-3-2010 19:30, Piotr Kopszak wrote:

 Is there a simple way to force replacing of double hyphen by a unicode
 en dash in registers?

 can you make a test file that shows the problem

 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
 -




-- 
http://okle.pl
___
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] Thoughts on ConTeXt: ditched

2010-01-03 Thread Piotr Kopszak
Well, well,

ConTeXt can help you if you give him a little love and don't try pull
all triggers at once. Having written my Ph.D. in LaTeX and published
couple of books in ConTeXT I can assure you, ConTeXt is surprisingly
better suited  for scientific texts (oops sorry, I  just mean text
with footnotes, bibliography,  a couple of indexes, list of
illustrations, definitions whatever) even if you disregard its
typographic quality. That's of course my entirely subjective opinion.

Piotr

2009/12/29 Manuel P. ayeye.sysfo...@gmail.com:
 Il 29/12/2009 3.48, ber...@pobox.com ha scritto:

     Manuel  Another problem is the fluidity of ConTeXt: it changes
     Manuel  rapidly and the documentation is left behind.

 Maybe for some things, but I'm using a manual from 2004 and from my
 point of view very little has changed.

 I would say the interface is remarkably stable, so hopefully that
 might be some encouragement to come back one day.



 Sure!

 --
 Manuel P.

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

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




-- 
http://okle.pl
___
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] Alphabetical order in register

2009-11-27 Thread Piotr Kopszak
Did you remember about \language[de] in the preamble?

2009/11/27, Gerhard Kugler pra...@psychotherapie-kugler.de:
 Hello,

 the German umlauts are not sorted correctly in a register. How can I
 change their positions?

 Gerhard

 --
 Gerhard Kugler
 Psychotherapeut
 Bensheim (Germany)
 http://www.psychotherapie-kugler.de
 ___
 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
 ___



-- 
http://okle.pl
___
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] right aligned toc

2009-10-12 Thread Piotr Kopszak
Hello list,

Is it possible to get right aligned (I mean flush right) toc?

Best

Piotr
-- 
http://okle.pl
___
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] right aligned toc

2009-10-12 Thread Piotr Kopszak
Sorry for the noise, I have found finally

\placecontent[align=left]

2009/10/12 Piotr Kopszak kops...@gmail.com:
 Hello list,

 Is it possible to get right aligned (I mean flush right) toc?

 Best

 Piotr
 --
 http://okle.pl




-- 
http://okle.pl
___
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] \itemize[continue] problem

2009-10-10 Thread Piotr Kopszak
Hello list,

The following example from manual works fine with mk II but fails with
mkIV in recent minimals

\starttext
\startitemize[1,packed]
\head supported image formats in \PDFTEX \par
  \startitemize[a]
  \item png \item eps \item pdf
  \stopitemize
\head non supported image formats in \PDFTEX \par
  \startitemize[continue]
  \item jpg \item gif \item tif
  \stopitemize
\stopitemize
\stoptext

Piotr

-- 
http://okle.pl
___
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] tex to txt/doc

2009-10-05 Thread Piotr Kopszak
not to mention obvious old-school approach xml-anything (including
ConTeXt). 100 percent reliable conversion of pdf to anything else is
impossible by definition, so better don't rely on any magic tools
which usually promise but really cannot deliver.

Piotr

2009/10/5 Mohamed Bana mbana.li...@googlemail.com
 I tend to write in pandoc almost exclusively these days then convert it to
 PDF using context.  it goes,

 $ pandoc-context, then
 $ texexec file

 works like a charm.

 Ciro Soto wrote:

 Is there any quick way to print the output of context in txt format?
 I could do: context- pdf-txt, but may there is a direct way to do that...?
 I don't care about the formatting, it is just the text that I am interested
 in.
 The reason is that my editor does not understand context (or tex) so
 I send her txt (or doc)  file for the editing.

 thank you
 Ciro

 
 ___
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___





-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Varying indentations

2009-09-30 Thread Piotr Kopszak
Hello list,

Is there a way to obtain a differrent indentation for the first
paragraph, than all the following ones? I would like the first to be
indented by 0.5\textwidth and all the others by 1 pica.

Many thanks in advance

Piotr

-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Varying indentations

2009-09-30 Thread Piotr Kopszak
Seems I almost learnt how to do it, but notice the whitespace after
the first paragraph.

Piotr

\setupindenting[yes,1pc]
\defineindenting[qq][text=,separator=,width=0.5\textwidth]
\starttext
\qq
\input zapf

\input knuth
\stoptext


2009/9/30 Piotr Kopszak kops...@gmail.com:
 Hello list,

 Is there a way to obtain a differrent indentation for the first
 paragraph, than all the following ones? I would like the first to be
 indented by 0.5\textwidth and all the others by 1 pica.

 Many thanks in advance

 Piotr

 --
 http://okle.pl




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] old sidebar example

2009-09-25 Thread Piotr Kopszak
Hello list,

Is the a way to make the following example posted here:
http://archive.contextgarden.net/message/20060321.134723.3a8e8ff3.en.html
work with recent mkIV as it used to before?

\setupoutput[pdftex]
\setupcolors[state=start]
\frenchspacing
\tolerance = 1000
\setuplayout[width=4in]
\setupfloat
[intermezzo]
[
leftmargindistance=-.8in,
rightmargindistance=-.8in,
default={outer,high}]
\setupcaption[intermezzo][location=none]

\defineframedtext
[myohmy]
[width=6cm,bodyfont=small,
frame=off,
backgroundcorner=round,
backgroundradius=6pt,background=screen,backgroundscreen=.8]
%\showframe
\setupmarginblocks[
style=small,
width=5cm,
before=\startmyohmy,
after={\relax,\stopmyohmy},
align=middle,
]
\long\def\sidebar#1{\placeintermezzo{}{\startmyohmy #1 \relax\stopmyohmy}}

\starttext
\input ward
\placeintermezzo{}{\startmyohmy\input dawkins \relax\stopmyohmy}
\dorecurse{3}{\input knuth \par}
\page[yes]
\input ward
\placeintermezzo{}{\input dawkins\relax}
\page[yes]
\input ward

FOO
\sidebar{%
\input dawkins

Additional text.
}
\dorecurse{3}{\input knuth \par}


\stoptext


Many thanks in advance

Piotr
--
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] old sidebar example

2009-09-25 Thread Piotr Kopszak
I realized it's a general hanging problem :(

\starttext
\placefigure[left,hang]{}{\externalfigure[hacker.jpg]}
\input zapf
\stoptext


P.

2009/9/25 Piotr Kopszak kops...@gmail.com:
 Hello list,

 Is the a way to make the following example posted here:
 http://archive.contextgarden.net/message/20060321.134723.3a8e8ff3.en.html
 work with recent mkIV as it used to before?

 \setupoutput[pdftex]
 \setupcolors[state=start]
 \frenchspacing
 \tolerance = 1000
 \setuplayout[width=4in]
 \setupfloat
 [intermezzo]
 [
 leftmargindistance=-.8in,
 rightmargindistance=-.8in,
 default={outer,high}]
 \setupcaption[intermezzo][location=none]

 \defineframedtext
 [myohmy]
 [width=6cm,bodyfont=small,
 frame=off,
 backgroundcorner=round,
 backgroundradius=6pt,background=screen,backgroundscreen=.8]
 %\showframe
 \setupmarginblocks[
    style=small,
    width=5cm,
 before=\startmyohmy,
 after={\relax,\stopmyohmy},
 align=middle,
 ]
 \long\def\sidebar#1{\placeintermezzo{}{\startmyohmy #1 \relax\stopmyohmy}}

 \starttext
 \input ward
 \placeintermezzo{}{\startmyohmy\input dawkins \relax\stopmyohmy}
 \dorecurse{3}{\input knuth \par}
 \page[yes]
 \input ward
 \placeintermezzo{}{\input dawkins\relax}
 \page[yes]
 \input ward

 FOO
 \sidebar{%
 \input dawkins

 Additional text.
 }
 \dorecurse{3}{\input knuth \par}


 \stoptext


 Many thanks in advance

 Piotr
 --
 http://okle.pl




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] processing.org in ConTeXt

2009-09-13 Thread Piotr Kopszak
Dear list,

Just an idea that has been haunting me for some time already. Since we
can generate metapost and lilypond graphics on the fly, why not give
processing.org a try?

Piotr

-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] processing.org in ConTeXt

2009-09-13 Thread Piotr Kopszak
Terrific news, I wonder how difficult, if possible at all, it would be
write a processing.org module.

Piotr

2009/9/13, luigi scarso luigi.sca...@gmail.com:
 On Sun, Sep 13, 2009 at 5:19 PM, Piotr Kopszak kops...@gmail.com wrote:
 Dear list,

 Just an idea that has been haunting me for some time already. Since we
 can generate metapost and lilypond graphics on the fly, why not give
 processing.org a try?

 http://processing.org/

 http://nodebox.net
 (see
 http://nodebox.net/code/index.php/Andren_|_A_Digital_Remake
 )

 http://www.contextfreeart.org
 (i'm working on a metapost extension)

 http://www.box2d.org
 (see also
 http://box2dflash.sourceforge.net/
 )




 Piotr

 --
 http://okle.pl
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




 --
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___



-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] loooong stanzas (longer than a page)

2009-09-08 Thread Piotr Kopszak
I was too tired. All is fine with recent mkIV.

P.

2009/9/7 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 Am 07.09.2009 um 23:17 schrieb Piotr Kopszak:

 Hello list,

 Maybe I'm just too tired but I can't find a way to force long stanzas
 between \startlines and  \stoplines to break and turn up on next page.
 Instead the stanza is simply truncated. Actually in my case the poems
 are not really divided into stanzas (i.e one stanza is one poem).

 http://archive.contextgarden.net/message/20090714.170049.984571b4.en.html

 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [OT] Edit PDF manually

2009-09-08 Thread Piotr Kopszak
OK, here it is. But no guarantees it makes much sense.

http://okle.pl/blogs/show_post/23

2009/9/8 Oliver Buerschaper oliver.buerscha...@mpq.mpg.de:
 Don't forget about pdftk vim plugin, otherwise you'll have to count
 byte offsets on your fingers, or even better use qdf form with qpdf.

 I've just had a brief look at qpdf and this seems incredible! This might
 just be the tool I had in mind ... now I'll have to check out what qdf can
 do for me ...


 Maybe I'll publish a short tutorial on writing pdf by hand that I
 started to write couple of months ago.

 Please do!

 Oliver
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [OT] Edit PDF manually

2009-09-08 Thread Piotr Kopszak
But you haven't used that on the example file? It's not qdf compliant.

P.

2009/9/8 luigi scarso luigi.sca...@gmail.com:
 On Tue, Sep 8, 2009 at 11:39 AM, Piotr Kopszakkops...@gmail.com wrote:
 OK, here it is. But no guarantees it makes much sense.

 http://okle.pl/blogs/show_post/23

 fix-qdf file-before-fixing.pdf  file-after-fixing.pdf

 doesn't work for me
 --
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [OT] Edit PDF manually

2009-09-07 Thread Piotr Kopszak
Don't forget about pdftk vim plugin, otherwise you'll have to count
byte offsets on your fingers, or even better use qdf form with qpdf.
Maybe I'll publish a short tutorial on writing pdf by hand that I
started to write couple of months ago. AFAIK there isn't any (Please,
tell me I'm wrong).

Piotr

2009/9/7 luigi scarso luigi.sca...@gmail.com:
 I'm sure that hartmut has done a presentation sometimes ago f, could be
 http://www.matexhu.org/eurotex2006/lectures/pdftex/hartmut-talk.pdf


 pypdf is a python module at lowlevel.
 http://pybrary.net/pyPdf/

 This looks very interesting!


 As exercise, you can try to minimic pdffonts in python with pypdf
 (pdfs with ttf,otf,type1 etc )

 I'm afraid, I don't understand :-(

 Under linux, xpdf comes with pdffonts, a cmd line tools that extracts fonts
 information from a pdf.
 You can try to mimic it with pyPdf, so your knowledge  can augment .


 --
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___





-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] loooong stanzas (longer than a page)

2009-09-07 Thread Piotr Kopszak
Hello list,

Maybe I'm just too tired but I can't find a way to force long stanzas
between \startlines and  \stoplines to break and turn up on next page.
Instead the stanza is simply truncated. Actually in my case the poems
are not really divided into stanzas (i.e one stanza is one poem).

Piotr

-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] generating figures lists

2009-07-15 Thread Piotr Kopszak
Silly me, there was a mismatch between pdftex and ConTeXt version (is
it possible that it was due to excessive use of --keep while updating
Minimals?). Promise to read error messages in the future. I installed
Minimals from scratch today and the list of figures is generated but
only in one flavour. alternative switch does not have any effect.
Neither  enumerating of file extensions on the command line. When I
ask only for *.jpg I'm getting all supported image files on the list
anyway. (And the file is huge, doesn't it resize images before
typesetting the list?)

Piotr

2009/7/13, Hans Hagen pra...@wxs.nl:
 Piotr Kopszak wrote:
 Hello,

 How do we generate them with recent MInimals?

 texexec --figures=c --paperoffset=.5cm *.pdf *.png *.jpg

 does

 -- figures alternative=c

 work?

 --

 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___



-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Duotones with spot colors

2009-07-10 Thread Piotr Kopszak
Yes, but I don't arrive at expected results with pdftex either.

Piotr

2009/7/9 Hans Hagen pra...@wxs.nl:
 Piotr Kopszak wrote:

 I can't get it right with mkii and xetex either.

 forget about xetex; mkii uses a pdftex feature (access to resource dict)


 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Duotones with spot colors

2009-07-09 Thread Piotr Kopszak
BTW,

I am not able to get a duotone image with recent minimals in the
example published here:
http://wiki.contextgarden.net/Colors#Colorizing_Grayscale_Pictures


\setuplayout[header=0pt,footer=0pt,width=middle,height=middle,backspace=1cm,topspace=1cm]
\setupcolors[state=start]

\startbuffer
\definecolor [blue]   [c=1, m=.38, y=0, k=.64]
\definecolor [yellow] [c=0, m=.28, y=1, k=.06]

\definespotcolor [blue-100]   [blue]   [p=1]
\definespotcolor [yellow-100] [yellow] [p=1]

\definemultitonecolor [combicolor]   [blue=.12, yellow=.28] [c=.1,
m=.1, y=.3, k=.1]

\definemultitonecolor [combicolor-b] [blue=1]   [c=1, m=.38, y=0,
k=.64] % force multitone
\definemultitonecolor [combicolor-y] [yellow=1] [c=0, m=.28, y=1,
k=.06] % force multitone

\useexternalfigure[demo-a][mill.png] [object=no, width=.2\textwidth]
\useexternalfigure[demo-b][hacker-bw.jpg][object=no, width=.2\textwidth]

\startbaselinecorrection
\startcombination[4*1]
 {\externalfigure[demo-a]}{no color}
 {\externalfigure[demo-a][color=combicolor]}   {indexed duotone}
 {\externalfigure[demo-a][color=combicolor-b]} {spot color}
 {\externalfigure[demo-a][color=combicolor-y]} {spot color}
\stopcombination
\stopbaselinecorrection

\startbaselinecorrection
\startcombination[4*1]
 {\externalfigure[demo-b]} {no color}
 {\externalfigure[demo-b][color=combicolor]}   {indexed duotone}
 {\externalfigure[demo-b][color=combicolor-b]} {spot color}
 {\externalfigure[demo-b][color=combicolor-y]} {spot color}
\stopcombination
\stopbaselinecorrection

\startbaselinecorrection
\startcombination[4*1]
 {\externalfigure[demo-a]} {no color}
 {\externalfigure[demo-a][color=combicolor]}   {indexed duotone}
 {\externalfigure[demo-a][color=blue-100]} {spot color}
 {\externalfigure[demo-a][color=yellow-100]}   {spot color}
\stopcombination
\stopbaselinecorrection

\startbaselinecorrection
\startcombination[4*1]
 {\externalfigure[demo-b]} {no color}
 {\externalfigure[demo-b][color=combicolor]}   {indexed duotone}
 {\externalfigure[demo-b][color=blue-100]} {spot color}
 {\externalfigure[demo-b][color=yellow-100]}   {spot color}
\stopcombination
\stopbaselinecorrection
\stopbuffer

\getbuffer \typebuffer

\stoptext


The images in the column indexed duotone do not show up.

Piotr

2009/7/7 Hans Hagen pra...@wxs.nl:
 Piotr Kopszak wrote:

 Hello list,

 I am preparing for a next project which will be printed in two
 colours. Obviously, perfect opportunity to use duotones. However I got
 my duotone illustrations in CMYK tiffs with images in yellow and black
 channels. Obviously black could stay but I would like to convert the
 yellow channel to the spot colour I am going to use. Any ideas
 (without using Photoshop) ?

 as it is possible to colorize bw bitmap images in context i suppose that
 doing the same with a dual channel image is doable as well but i never tried
 is (low on my list of priorities so you're unlicky that we never needed that
 variant in projects)

 Hans


 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Duotones with spot colors

2009-07-09 Thread Piotr Kopszak
I can't get it right with mkii and xetex either.

Piotr

2009/7/9 Hans Hagen pra...@wxs.nl:
 Piotr Kopszak wrote:

 BTW,

 I am not able to get a duotone image with recent minimals in the
 example published here:
 http://wiki.contextgarden.net/Colors#Colorizing_Grayscale_Pictures

 the current public version of mkiv does not provide it (beta does but that
 one is not yet posted)

 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Duotones with spot colors

2009-07-07 Thread Piotr Kopszak
Hello list,

I am preparing for a next project which will be printed in two
colours. Obviously, perfect opportunity to use duotones. However I got
my duotone illustrations in CMYK tiffs with images in yellow and black
channels. Obviously black could stay but I would like to convert the
yellow channel to the spot colour I am going to use. Any ideas
(without using Photoshop) ?

Many thanks in advance

Piotr
-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Duotones with spot colors

2009-07-07 Thread Piotr Kopszak
Many thanks for all replies,

Well, maybe someone comes up with a solution one day. It would be nice
to have a complete Photoshop-less production environment on linux.
BTW, can tif support spot colors at all, I haven't found any mention
of that anywhere, hence I don't think libtiff might be of use.

Piotr

2009/7/7 William Adams will.ad...@frycomm.com:
 On Jul 7, 2009, at 9:50 AM, Piotr Kopszak wrote:

 I am preparing for a next project which will be printed in two
 colours. Obviously, perfect opportunity to use duotones. However I got
 my duotone illustrations in CMYK tiffs with images in yellow and black
 channels. Obviously black could stay but I would like to convert the
 yellow channel to the spot colour I am going to use. Any ideas
 (without using Photoshop) ?

 Leave the images be, set the things you want to appear in the spot colour as
 yellow, then tell the printer that the yellow plate is the spot colour and
 to suppress cyan and magenta.

 Or use the spot colour and tell the printer to merge the yellow plate w/ the
 spot colour (check first --- while all RIPs should be able to do this, not
 all printers will be willing to).

 Or use Enfocus PitStop to post-process the .pdf.

 However, unless the spot colour is _very_ light, I doubt that you'll be able
 to use the images as is --- they'll probably print too dark, so you'll need
 to process them anyway. I'd make a PhotoShop action to convert the images to
 multi-channel, then change the yellow plate to the spot colour, then apply a
 curve to lighten the spot colour, then save the image (but make sure you
 keep an original), then I'd use a second action to review all of the files
 on a calibrated monitor, tweaking as necessary and going back to original
 images at need.

 William


 --
 William Adams
 senior graphic designer
 Fry Communications
 Sphinx of black quartz, judge my vow.

 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] generating figures lists

2009-06-30 Thread Piotr Kopszak
Hello,

How do we generate them with recent MInimals?

texexec --figures=c --paperoffset=.5cm *.pdf *.png *.jpg

does not give any output.

Piotr
-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] On creating my own fonts

2009-06-22 Thread Piotr Kopszak
1) draw by hand some glyphs, so you have an objective piece of paper of what
 you want
 2) search on Internet for a font that looks like  what you (think) to want
 3) starting from this font,  make some modifications of glyphs that you
 have drawn
 with fontforge or metapost
 With fontforge, you can even make countours from  images  , and with a bit
 of hack from MetaFont too.

 --
 luigi


Don't forget about other sources of inspiration. Frederic Goudy for instance
made illicite rubbings in Louvre and studied  Roman inscriptions on columns
and other monuments, as many others did :)

Best of luck!

Piotr

-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installation problem (was Updates without rsync)

2009-06-02 Thread Piotr Kopszak
Why not Emacs :) It's also quite nice for ConTeXt.

P.

2009/6/2  richard.steph...@converteam.com:


 I wanted to get a clean, up-to-date installation of Context on Windows
 (without using rsync), so started from scratch as follows:

 1. Downloaded
 http://www.pragma-ade.com/context/install/minimals-snapshot-mswin.zip
 2. Unzipped to C:\Tools\context
 3. Renamed C:\Tools\context\texmf-context to texmf-context-old
 4. Downloaded cont-tmf.zip and unzipped contents to
 c:\Tools\context\texmf-context
 3. From command window, ran:
       cd \Tools\context
       setuptex      mktexlsr      luatools --generate      luatools
 --selfupdate      mtxrun   --selfupdate      texexec --make      context
 --make
 4. To generate new pdf, ran:      context testdoc.tex

 Everything seemed to execute without errors until the last step which
 returned:

 MtxRun | loading configuration for C:/Tools/context/texmf/web2c from
 C:/Tools/context/texmf-cache/luatex-

 cache/context/b7bcb6722e1fe509b85ff004c33e8274/trees/90e2367b37b32bcc25e442581c9e72e2

 MtxRun | run 1: luatex
 --fmt=C:/Tools/context/texmf-cache/luatex-
 cache/context/b7bcb6722e1fe509b85ff004c33e8274/formats/cont-en

 --lua=C:/Tools/context/texmf-cache/luatex-
 cache/context/b7bcb6722e1fe509b85ff004c33e8274/formats/cont-en.lua
  ./testdoc.tex
 luatex.exe:
 C:/Tools/context/texmf-cache/luatex-
 cache/context/b7bcb6722e1fe509b85ff004c33e8274/formats/cont-en.fmt:
  No such file or directory
 MtxRun | fatal error, code: 1

 Looking at the source directory, a file testdoc.top has been created
 but
 nothing else.

 Can someone please point me towards a next step?

 Thanks,

 Richard

 P.S. I tried copying cont-en.fmt from
 C:\Tools\context\texmf-mswin\web2c\luatex\pdftex to the cache directory
 but got Fatal format file error, I'm stymied.

 I was trying various things and downloaded the beta version of cont-tmf.zip
 (from http://www.pragma-ade.com/download-2.htm ) instead of the current
 version and it all works, hooray!
 Thank-you, everyone, for your help. I'm so pleased to be able to use MKIV
 now for the first time - it even gives me Helvetica when I ask for it.
 All I've got to do now is get Scite working again :-(

 Thanks,

 Richard



 Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
 Registration Number: 2416188
 Registered in England and Wales.
 Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

 CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
 privileged. If you are not a named recipient, please notify the sender 
 immediately and do not disclose the contents to another person, use it for 
 any purpose or store or copy the information in any medium.

 Please consider the environment before printing this e-mail
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cannot run Lilypond

2009-06-02 Thread Piotr Kopszak
Hello Vyatcheslav and Lutz,

I have just  tested Lutz's test file and it compiles fine with luatex
on linux-ppc.

MTXrun | current version: 2009.05.29 15:44
LuaTeX, Version beta-0.40.1-2009051107 (Web2C 7.5.7) luatex.web = v2376
GNU LilyPond 2.12.2

Piotr

2009/6/2 Lutz Haseloff lutz.hasel...@googlemail.com:


 2009/6/2 Henning Hraban Ramm hra...@fiee.net

 Am 2009-06-01 um 16:50 schrieb Lutz Haseloff:

 1) I've installed LilyPond 2.12.2 on Windows

 2) Ran a simple example

 Can you run lilypond on the command line? I.e. is it in your PATH?

 Yes.


 Is GhostScript installed and can you run pstopdf on the command line?

 Yes.


 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___





-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] luatex examples - Traversing TeX nodes

2009-06-01 Thread Piotr Kopszak
Hello,

I am trying to compile luatex examples from http://luatex.bluwiki.com
. How could I make it work with ConTeXt? The following fails.
---
\directlua0{
 local glyph = node.id('glyph')
 local hlist = node.id('hlist')
 local vlist = node.id('vlist')

 function gothru(h,prof)
   for t in node.traverse(h) do
 texio.write_nl(string.rep(...,prof) .. 'NODE type=' ..
node.type(t.id) .. ' subtype=' .. t.subtype )
 if t.id == hlist or t.id == vlist then
   texio.write(' w=' .. t.width .. ' h=' .. t.height .. ' d=' ..
t.depth .. ' s=' .. t.shift )
   gothru(t.list,prof+1)
 end
 if t.id == glyph then
   texio.write(' font=' .. t.font .. ' char=' .. t.char .. '
width=' font.fonts[t.font].characters[t.char]['width'])
 end
   end
 end

 callback.register('pre_linebreak_filter',
   function(h)
  gothru(h,0)
  return true
   end
   )
}

\starttext
bla bla bla bla
\stoptext
---

best

Piotr

-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] luatex examples - Traversing TeX nodes

2009-06-01 Thread Piotr Kopszak
Great thanks for your hint.

Ever onward!

Piotr

2009/6/1 Hans Hagen pra...@wxs.nl:
 Piotr Kopszak wrote:

 Hello,

 I am trying to compile luatex examples from http://luatex.bluwiki.com

 i have no time to look into it now but be aware of the fact that if you set
 a callback like this you're likely to overload one that context itself sets
 and that can result in problems elsewhere

 there are user hooks but i need to describe them (as one should be very
 careful in doing thinsg that interfere)

 a safe way to play with node is is

 \setbox0=\vbox{}

 and the look at tex.box[0].list




 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TexPaste alpha - my Win application converting Word/HTML to TeX

2009-05-28 Thread Piotr Kopszak
Hello list,

Inevitably, it's a recurring subject. Here are my 2p. After playing
with all sorts of convertors to TeX, Latex, HTML and scraping the
output with Perl to obtain something useful for ConTeXt I found that
what I in fact really need to preserve from a Word file are italics
and footnotes. To make the long story short. IMHO the only reasonable
way to go is via XSL stylesheet for ooffice. Fortunately you don't
have to develop a new one from scratch which would be quite a task.
There is an excellent stylesheet converting odt to mediawiki by
Bernhard Haumacher odt2mediawiki.xsl  It took me less than an hour to
adapt it for ConTeXt output. Then you only add it as an xml filter to
Open Office and from then on can convert Word to ConTeXt straight from
ooffice as if it was one of its built-in export formats.

Piotr




2009/5/28 luigi scarso luigi.sca...@gmail.com:

 I guess I should build a new converter suite (there's also a InDesign Tags
 to ConTeXt converter anywhere on my harddisk).
 But I won't make GUI apps, just scripts.

 That's sound good !
 If in python, even better !
 If only scripts, the best !

 Can we have more details ?

 --
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___





-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] IV. Talking and Tweaking

2009-05-26 Thread Piotr Kopszak
Hello,

I finally decided to learn lua and start making use of it in ConTeXt.
I was quite excited to find examples of interfaces in the fourth part
of A New Kind of TeX paper. It would be really useful if someone
could give examples how they could actually be  used, at least some of
them e.g.

command.insert, command.hbox, command.vbox, tex.parindent

I think it would also be quite useful to propose a limited set of most
useful interfaces, something like the Top Ten ConTeXt commands. Is it
possible at all?

All Best

Piotr


-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] IV. Talking and Tweaking

2009-05-26 Thread Piotr Kopszak

 command.insert, command.hbox, command.vbox, tex.parindent

 where are these command.* defined? in context command is a reserved
 namespace


I found it on screen IV. of

http://luatex.org/talks/luaconf-paper.pdf

and nowhere else, that's why I asked. (Sorry, tex.parindent is
mentioned in luatexref-t.pdf)

P.
-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Top 10 luatex interfaces

2009-05-26 Thread Piotr Kopszak
http://www.survs.com/survey?id=BB81EXR7channel=WX0QXIKGPC

have fun!

Piotr
-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts in minimal

2009-05-21 Thread Piotr Kopszak
Funny, but quite legitimate question as showfont.pdf was meant.

P.

2009/5/21 Thomas A. Schmitz thomas.schm...@uni-bonn.de:

 On May 21, 2009, at 9:47 AM, R. Bastian wrote:

 where is showfonts.pdf ?

 rb

 http://lmgtfy.com/?q=showfonts.pdf

 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] LilyPond module, release 2009-05-19

2009-05-20 Thread Piotr Kopszak
Yes I'm just preparing a four volume popular music history which
relies on that.

Piotr

2009/5/19 Henning Hraban Ramm hra...@fiee.net:
 I just uploaded a version of the LilyPond module that works with ConTeXt
 MkIV latest beta (only a small fix).
 Documentation PDF is still the old one, since I couldn't compile it.

 Does anyone use this module at all, except me?

 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Emacs templates for ConTeXt

2009-05-15 Thread Piotr Kopszak
Hello,

I have just started using Emacs msf-abbrevs mode with ConTeXt files.
Just would like to know if anyone is using other templating systems
for Emacs with ConTeXt files? Are there any templates for ConTeXt
commands around?

Best

Piotr

-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Emacs templates for ConTeXt

2009-05-15 Thread Piotr Kopszak
Hello Jean,

I never tried to use muse, surely have to try one day. Now I was
thinking about something more modest and I think msf-abbrevs is just
excellent for my needs. There are only eight tags to use in abbrevs
file which I learnt in 5 minutes so I could start writing my templates
in no time. Perhaps if somebody else was also interested it would be
useful to make a public version. I always use texshow but it would be
even more useful with templates I think.

Piotr

2009/5/15 Jean Magnan de Bornier jm.born...@free.fr:
 Le 15 mai à 13:23:52 Piotr Kopszak kops...@gmail.com écrit notamment:

 | Hello,

 | I have just started using Emacs msf-abbrevs mode with ConTeXt files.
 | Just would like to know if anyone is using other templating systems
 | for Emacs with ConTeXt files? Are there any templates for ConTeXt
 | commands around?

 Hi Piotr,

 Not exactly a template, but emacs-muse can have its output as a context
 file, highly configurable; you can find a short description here:

 http://wiki.contextgarden.net/ConTeXt_and_emacs-muse

 cheers,
 --
 Jean
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] The ultimate (?) float problem

2009-05-14 Thread Piotr Kopszak
I think I more or less got the idea of what is possible. But let me
describe my project. Maybe you might come up with a better solution.
I'm going to typeset a diary written and drawn by an illustrator and
graphic designer 70 years ago. What is unique, it consists of
handwritten pages which were already composed for publication. So in
fact I have to preserve both the juxtaposition of illustrations and
the text (give or take line or two). As basically the text should not
flow between pages I guess I could set the whole thing with layers
only. The biggest problem seems how to control placement of layers so
that the text inside them is set on the grid. Here is my initial setup
for a single page.

\definelayer  [figure][width=\overlaywidth,height=\overlayheight]
\defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}]
\setupcolors[state=start]
\setupbackgrounds[page][background=figure]
\setuppagenumbering[location={footer,right}]
\usetypescript[palatino]
\setupbodyfont[palatino,14pt]
\starttext
\startbuffer[zapf]
\input zapf
\stopbuffer
\startbuffer[hawking]
\input hawking
\stopbuffer

\flushlayer[figure]

\startsetups figure
\setlayerframed[figure][frame=off,x=25mm,y=43mm]{\externalfigure[cow][width=\textwidth,height=40mm]}
\setlayerframed[figure][frame=off,x=25mm,y=90mm,align=normal,width=\textwidth]{\getbuffer[zapf]}
\setlayerframed[figure][frame=off,x=80mm,y=150mm]{\externalfigure[cow][width=30mm,height=100mm]}
\setlayerframed[figure][frame=off,x=25mm,y=150mm,align=normal,width=50mm]{\getbuffer[hawking]}
\setlayerframed[figure][frame=off,x=120mm,y=150mm,align=normal,width=50mm]{\getbuffer[hawking]}
\stopsetups
\stoptext

Of course, it looks like it's going to take couple of months of rather
tedious manual work so any ideas how to make it easier are welcome.

Piotr

2009/5/12 luigi scarso luigi.sca...@gmail.com:


 On Tue, May 12, 2009 at 3:32 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 Am 12.05.2009 um 15:18 schrieb Piotr Kopszak:

 Yes, exactly.

 \setuppapersize [S6]
 \setuptolerance [soepel,rek]

 better

 \setuppapersize [S6][S6]
 \setuptolerance [tolerant,stretch]
 --
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___





-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Dear all,

I am close to give up, but maybe there is a solution... I have a book
to typeset literally peppered with hundreds of little drawings which
are supposed to appear irregularly surrounded by text flowing around
them on all sides.

|xx |
|x-xx|
|x| |xx |
|x|__|xx| ||
|xx |__||
|xx|


I naively imagine that should not be that hard to implement ;) Since
we already have overlays it's no problem to place images in arbitrary
places. It only remains to drill white holes in the text to make room
for them.  What about such procedure:

1. While building the line TeX checks if there is any overlay ahead.
2 if so, it puts empty hbox of the overlay width when it reaches
necessary distance from the edge.
3. and does so for the number of lines which equal overlay height.

Of course that  leaves aside the problem of justification and without
justification such page would probably look very ugly (I dare not to
think if hz optimization, which I really got used to, would still
work).
Is there still hope I could stay with ConTeXt this time as well?

Many thanks for any ideas in advance

Piotr
--
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Any chance lua might change something here in the future?

P.

2009/5/12 Hans Hagen pra...@wxs.nl:
 Piotr Kopszak wrote:

 Dear all,

 I am close to give up, but maybe there is a solution... I have a book
 to typeset literally peppered with hundreds of little drawings which
 are supposed to appear irregularly surrounded by text flowing around
 them on all sides.
 
 |xx |
 |x-xx|
 |x|     |xx |
 |x|__|xx|     ||
 |xx |__||
 |xx|
 

 I naively imagine that should not be that hard to implement ;) Since
 we already have overlays it's no problem to place images in arbitrary
 places. It only remains to drill white holes in the text to make room
 for them.  What about such procedure:

 1. While building the line TeX checks if there is any overlay ahead.
 2 if so, it puts empty hbox of the overlay width when it reaches
 necessary distance from the edge.
 3. and does so for the number of lines which equal overlay height.

 Of course that  leaves aside the problem of justification and without
 justification such page would probably look very ugly (I dare not to
 think if hz optimization, which I really got used to, would still
 work).
 Is there still hope I could stay with ConTeXt this time as well?

 one can have parshapes in tex but not that complex as you want

 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Only to show better how I would like text and images placed on the page.

\definelayer  [figure][width=\overlaywidth,height=\overlayheight]
\defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}]
\setupcolors[state=start]
\setupbackgrounds[page][background=figure]


\starttext

\dorecurse{4}{\input knuth}

\startsetups figure
\setlayerframed[figure][x=.3\layerwidth,y=.2\layerheight]{\externalfigure[cow][width=3cm,height=4cm]}
\setlayerframed[figure][x=.55\layerwidth,y=.4\layerheight]{\externalfigure[cow][width=3cm]}
\setlayerframed[figure][x=.4\layerwidth,y=.6\layerheight]{\externalfigure[cow][width=2cm,height=4cm]}
\stopsetups

\stoptext


2009/5/12 luigi scarso luigi.sca...@gmail.com:


 On Tue, May 12, 2009 at 11:22 AM, Piotr Kopszak kops...@gmail.com wrote:

 Dear all,

 I am close to give up, but maybe there is a solution... I have a book
 to typeset literally peppered with hundreds of little drawings which
 are supposed to appear irregularly surrounded by text flowing around
 them on all sides.
 
 |xx |
 |x-xx|
 |x|     |xx |
 |x|__|xx|     ||
 |xx |__||
 |xx|
 

 I naively imagine that should not be that hard to implement ;) Since
 we already have overlays it's no problem to place images in arbitrary
 places. It only remains to drill white holes in the text to make room
 for them.  What about such procedure:

 1. While building the line TeX checks if there is any overlay ahead.
 2 if so, it puts empty hbox of the overlay width when it reaches
 necessary distance from the edge.
 3. and does so for the number of lines which equal overlay height.

 Of course that  leaves aside the problem of justification and without
 justification such page would probably look very ugly (I dare not to
 think if hz optimization, which I really got used to, would still
 work).
 Is there still hope I could stay with ConTeXt this time as well?

 Many thanks for any ideas in advance

 can you post a little example ?
 --
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___





-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
But I want text in one column in the whole document. I was wondering
however if I could mimick something similar with textflows but cannot
understand the Dutch example in page-flw.tex.

Piotr

2009/5/12 luigi scarso luigi.sca...@gmail.com:


 On Tue, May 12, 2009 at 1:28 PM, Piotr Kopszak kops...@gmail.com wrote:

 Only to show better how I would like text and images placed on the page.

 \definelayer  [figure][width=\overlaywidth,height=\overlayheight]
 \defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}]
 \setupcolors[state=start]
 \setupbackgrounds[page][background=figure]


 \starttext

 \dorecurse{4}{\input knuth}

 \startsetups figure

 \setlayerframed[figure][x=.3\layerwidth,y=.2\layerheight]{\externalfigure[cow][width=3cm,height=4cm]}

 \setlayerframed[figure][x=.55\layerwidth,y=.4\layerheight]{\externalfigure[cow][width=3cm]}

 \setlayerframed[figure][x=.4\layerwidth,y=.6\layerheight]{\externalfigure[cow][width=2cm,height=4cm]}
 \stopsetups

 \stoptext

 hmm
 what about columnsets ?
 http://wiki.contextgarden.net/Columns#Column_Sets

 --
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___





-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Yes, exactly.

2009/5/12 luigi scarso luigi.sca...@gmail.com:


 On Tue, May 12, 2009 at 3:03 PM, Piotr Kopszak kops...@gmail.com wrote:

 But I want text in one column in the whole document. I was wondering
 however if I could mimick something similar with textflows but cannot
 understand the Dutch example in page-flw.tex.


 Do you mean this ?

 % Example (dutch)
 %
 % \stelpapierformaatin [S6]
 % \steltolerantiein    [soepel,rek]
 % \stelkleurenin   [status=start]
 % \stelvoetin  [strut=nee]
 % \stelwitruimtein [groot]
 %
 % \stellayoutin
 %   [rechterrand=5cm,breedte=passend,marge=0pt,randafstand=1cm,
 %    voet=4cm,voetafstand=1cm,hoofd=0cm]
 %
 % \stelteksttekstenin[rand][][\vbox{\flushtextflow{alpha}}]
 % \stelvoettekstenin [rand][][\vbox{\flushtextflow{beta}}]
 % \stelvoettekstenin [\vbox{\flushtextflow{gamma}}][]
 %
 % \definetextflow [alfa]  [breedte=\rechterrandbreedte]
 % \definetextflow [beta]  [breedte=\rechterrandbreedte]
 % \definetextflow [gamma] [breedte=\voethoogte]
 %
 % \starttekst
 %
 % \dorecurse{50}
 %   {\getrandomnumber{\funny}{0}{8}
 %    \ifcase\funny \starttextflow[alfa]  \input tufte.tex   \stoptextflow
 %    \or   \starttextflow[beta]  \input knuth.tex   \stoptextflow
 %    \or   \starttextflow[gamma] \input materie.tex \stoptextflow
 %    \or  {\bf   TUFTE}\quad \input tufte   \par
 %    \or  {\bf   TUFTE}\quad \input tufte   \par
 %    \or  {\bf   KNUTH}\quad \input knuth   \par
 %    \or  {\bf   KNUTH}\quad \input knuth   \par
 %    \or  {\bf MATERIE}\quad \input materie \par
 %    \else    {\bf MATERIE}\quad \input materie \par
 %    \fi}
 %
 % \stoptekst



 --
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___





-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Right. If I understand correctly on the first look textflows appear
in fixed locations on consecutive pages. I guess I'm banging my head
against a wall but what about if it was possible to have them side by
side on the same page?



2009/5/12 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 Am 12.05.2009 um 15:18 schrieb Piotr Kopszak:

 Yes, exactly.

 \setuppapersize [S6]
 \setuptolerance [soepel,rek]
 \setupcolors    [state=start]
 \setupfooter    [strut=no]
 \setupwhitespace[big]

 \setuplayout
  [rightmargin=5cm,
   width=fit,
   margin=0pt,
   edgedistance=1cm,
   footer=4cm,
   footerdistance=1cm,
   header=0cm]

 \setuptexttexts  [margin][][\vbox{\flushtextflow{alpha}}]
 \setupfootertexts[margin][][\vbox{\flushtextflow{beta}}]
 \setupfootertexts        [\vbox{\flushtextflow{gamma}}][]

 \definetextflow [alfa]  [width=\rightmarginwidth]
 \definetextflow [beta]  [width=\rightmarginwidth]
 \definetextflow [gamma] [width=\footerheight]

 \starttext

 \dorecurse{50}
  {\getrandomnumber{\funny}{0}{8}
   \ifcase\funny \starttextflow[alfa]  \input tufte.tex   \stoptextflow
   \or           \starttextflow[beta]  \input knuth.tex   \stoptextflow
   \or           \starttextflow[gamma] \input materie.tex \stoptextflow
   \or          {\bf   TUFTE}\quad \input tufte   \par
   \or          {\bf   TUFTE}\quad \input tufte   \par
   \or          {\bf   KNUTH}\quad \input knuth   \par
   \or          {\bf   KNUTH}\quad \input knuth   \par
   \or          {\bf MATERIE}\quad \input materie \par
   \else        {\bf MATERIE}\quad \input materie \par
   \fi}

 \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  : https://foundry.supelec.fr/projects/contextrev/
 wiki     : http://contextgarden.net
 ___




-- 
http://okle.pl
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] humble request: Minimals for linux ppc

2008-09-22 Thread Piotr Kopszak
On Sun, Sep 21, 2008 at 11:43:22PM +0200, Mojca Miklavec wrote:
 On Sun, Sep 21, 2008 at 10:18 PM, Piotr Kopszak wrote:
  Any chance for that in the near future?
 
 Any chance that you provide the binaries (and that you do that on a
 more or less regular basis; or let's say once per month)?
 
 svn co http://svn.contextgarden.net/minimals-src/build-binaries

Gladly! I prefer building Minimals myself than trying to figure out what went 
wrong with my TeX setup :)

P.
-- 

   Piotr Kopszak, Ph.D.
   Polish Art Gallery, National Museum in Warsaw
   kle ---  http://okle.pl
   http://www.magnatune.com/artists/altri_stromenti

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] humble request: Minimals for linux ppc

2008-09-21 Thread Piotr Kopszak
Any chance for that in the near future? 

Otherwise, be warned :) I will
probably flood the list with questions  how to make texlive debian-lenny-ppc
installation work with mkIV (Sadly new xml mkIV commands don't work on
ppc, although  they do on my other x86_64 linux box).

Piotr

-- 

   Piotr Kopszak, Ph.D.
   Polish Art Gallery, National Museum in Warsaw
   kle ---  http://okle.pl
   http://www.magnatune.com/artists/altri_stromenti

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [Linux] font name database

2008-09-21 Thread Piotr Kopszak
On Sat, Sep 20, 2008 at 08:04:46PM +0200, Alan Stone wrote:
 Hi,
 
 I'm trying to get the list of currently known fonts through
 
 mtxrun --script fonts --list
 
 under SciTE/Ubuntu and get the following message
 
 ..text/tex/texmf-context/tex/context/base/font-syn.lua:278: attempt
 to index field 'data' (a nil value)
 
 What's that ?
 
 -- 
 Best,
 Alan

Are you using Minimals or Ubuntu installation of ConTeXt?

Piotr
-- 

   Piotr Kopszak, Ph.D.
   Polish Art Gallery, National Museum in Warsaw
   kle ---  http://okle.pl
   http://www.magnatune.com/artists/altri_stromenti

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Delicious - I'm still confused

2008-08-19 Thread Piotr Kopszak
On Tue, Aug 19, 2008 at 09:50:58AM +0200, Hans Hagen wrote:

 ok, so it's not a system font (else there would be a complete path); in 
 that case, make sure that *tex* knows where to find the font, i.e. is 
 the font in one of the valid opentype paths? 

So you mean install it the old way with texfont, mktexlsr? It does not
work in the Minimals version I got (just tried the example provided in
the article  by Adam  Lindsay on Open  Type installation) and  I don't
want it :) I would prefer to  make it a system font if that would make
it work. But what does a system font mean for luatex on linux?


Did you run luatools 
 --generate? 
Yes, I did.

Piotr

-- 
--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  -http://kopszak.mnw.art.pl/
  http://okle.pl

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Delicious - I'm still confused

2008-08-19 Thread Piotr Kopszak
On Tue, Aug 19, 2008 at 12:36:43PM +0200, Wolfgang Schuster wrote:
 On Tue, Aug 19, 2008 at 12:28 PM, Piotr Kopszak [EMAIL PROTECTED] wrote:
  On Tue, Aug 19, 2008 at 09:50:58AM +0200, Hans Hagen wrote:
 
  ok, so it's not a system font (else there would be a complete path); in
  that case, make sure that *tex* knows where to find the font, i.e. is
  the font in one of the valid opentype paths?
 
  So you mean install it the old way with texfont, mktexlsr? It does not
  work in the Minimals version I got (just tried the example provided in
  the article  by Adam  Lindsay on Open  Type installation) and  I don't
  want it :) I would prefer to  make it a system font if that would make
  it work. But what does a system font mean for luatex on linux?
 
 You don't have to install them with texfont. Where dou you save the fonts
 for the moment, in your TeX tree or in one of the OS directories.
 
 I have the fonts on my Mac under $HOME/Library/Fonts.
 
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 

I installed ConTeXt Minimals in /context
and copied delicious otf files to /context/tex/texmf-context/fonts/exljbris
so in the TeX tree, I guess. When I tried to move them to  
$HOME/Library/Fonts 
and then ran luatools --update; mtxrun --script font --reload they 
disappeared 
altogether from the list given by mtxrun --script font --list. So probably 
it's not a system directory on linux. 

Piotr

--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  -http://kopszak.mnw.art.pl/
  http://okle.pl

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Delicious - I'm still confused

2008-08-19 Thread Piotr Kopszak
  it work. But what does a system font mean for luatex on linux?
 
 You don't have to install them with texfont. Where dou you save the fonts
 for the moment, in your TeX tree or in one of the OS directories.
 
 I have the fonts on my Mac under $HOME/Library/Fonts.
 
 Wolfgang


Finally did it. Moved the fonts to /context/tex/texmf/fonts/opentype/public 
and they worked. 

Piotr
-- 
--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  -http://kopszak.mnw.art.pl/
  http://okle.pl

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Delicious - I'm still confused

2008-08-19 Thread Piotr Kopszak
On Tue, Aug 19, 2008 at 01:10:04PM +0200, Wolfgang Schuster wrote:
 On Tue, Aug 19, 2008 at 12:58 PM, Piotr Kopszak [EMAIL PROTECTED] wrote:
  On Tue, Aug 19, 2008 at 12:36:43PM +0200, Wolfgang Schuster wrote:
  On Tue, Aug 19, 2008 at 12:28 PM, Piotr Kopszak [EMAIL PROTECTED] wrote:
   On Tue, Aug 19, 2008 at 09:50:58AM +0200, Hans Hagen wrote:
  
   ok, so it's not a system font (else there would be a complete path); in
   that case, make sure that *tex* knows where to find the font, i.e. is
   the font in one of the valid opentype paths?
  
   So you mean install it the old way with texfont, mktexlsr? It does not
   work in the Minimals version I got (just tried the example provided in
   the article  by Adam  Lindsay on Open  Type installation) and  I don't
   want it :) I would prefer to  make it a system font if that would make
   it work. But what does a system font mean for luatex on linux?
 
  You don't have to install them with texfont. Where dou you save the fonts
  for the moment, in your TeX tree or in one of the OS directories.
 
  I have the fonts on my Mac under $HOME/Library/Fonts.
 
  Wolfgang
 
  I installed ConTeXt Minimals in /context
  and copied delicious otf files to 
  /context/tex/texmf-context/fonts/exljbris
  so in the TeX tree, I guess.
 
 The correct path is /context/tex/texmf-context/fonts/opentype/exljbris.

Funny enough that didn't work when I tried to move the fonts there  although it 
is in the output of 'kpsewhich --show-path=opentype fonts' indeed.


 
  When I tried to move them to  $HOME/Library/Fonts
  and then ran luatools --update; mtxrun --script font --reload they 
  disappeared
  altogether from the list given by mtxrun --script font --list. So probably
  it's not a system directory on linux.
 
 The local font directory under $HOME is only read on a Mac but you
 could add it to OSFONTDIR.
 
 Wolfgang

Anyway, great thanks for help. 

Piotr
-- 
--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  -http://kopszak.mnw.art.pl/
  http://okle.pl

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Delicious - I'm still confused

2008-08-18 Thread Piotr Kopszak
Hello list, 


Sorry for being boring, but I still can't figure out whether Delicious font can 
or cannot 
be used with latest beta. It still does not work for me. Strangely 

mtxrun --script font --list|grep deli

gives 

deliciousboldDelicious-Bold
Delicious-Bold.otf
deliciousbolditalic  Delicious-BoldItalic  
Delicious-BoldItalic.otf
deliciousheavy   Delicious-Heavy   
Delicious-Heavy.otf
deliciousheavymedium Delicious-Heavy   
Delicious-Heavy.otf
deliciousitalic  Delicious-Italic  
Delicious-Italic.otf
deliciousmedium  Delicious-Roman   
Delicious-Roman.otf
deliciousroman   Delicious-Roman   
Delicious-Roman.otf
delicioussmallcaps   Delicious-SmallCaps   
Delicious-SmallCaps.otf
delicioussmallcapsmedium Delicious-SmallCaps   
Delicious-SmallCaps.otf

but 

texexec --lua --pdf delicious-test

has problems:

define font | forced type otf of Delicious-Roman not found
define font | font with name Delicious-Roman is not found
define font | unknown font Delicious-Roman, loading aborted
! Font \*delicious12ptsstfss*:=Delicious-Roman.otf at 12pt not loadable: metric 
data not found or bad.

Piotr




-- 
--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  -http://kopszak.mnw.art.pl/
  http://okle.pl

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Delicious - I'm still confused

2008-08-18 Thread Piotr Kopszak
On Mon, Aug 18, 2008 at 03:36:38PM +0200, Hans Hagen wrote:
 Piotr Kopszak wrote:

 did you do mtxrun --scritp font --reload?

 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -

Yes, I did.

BTW, I used the the typescript and test file from this post

http://archive.contextgarden.net/message/20080611.074352.b1751f5f.en.html

type-delicious.tex:
-
\starttypescript [sans] [delicious]
\setups[font:fallback:sans]
\definefontsynonym [Sans] [Delicious-Regular]
\definefontsynonym [SansItalic] [Delicious-Italic]
\definefontsynonym [SansBold] [Delicious-Bold]
\definefontsynonym [SansBoldItalic] [Delicious-BoldItalic]
\definefontsynonym [SansCaps] [Delicious-Caps]
\stoptypescript

\starttypescript [sans] [delicious]
\definefontsynonym [Delicious-Regular] [name:Delicious-Roman]
\definefontsynonym [Delicious-Italic] [name:Delicious-Italic]
\definefontsynonym [Delicious-Bold] [name:Delicious-Bold]
\definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic]
\definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps]
\stoptypescript

\starttypescript [delicious]
\definetypeface [delicious] [ss] [sans] [delicious] [default]
\stoptypescript
--

test-delicious.tex

\usetypescriptfile  [type-delicious]
\usetypescript[delicious]
\setupbodyfont[delicious]

\starttext

My document with the delicious fonts.

\input knuth

\stoptext
---


But typescript is probably not to blame as I get the same error with:

test-delicious2.tex
-
\starttext


\definedfont[name:Delicious-Roman] Hello

My document with the delicious fonts.

\input knuth

\stoptext
--


Best

Piotr

--
--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  -http://kopszak.mnw.art.pl/
  http://okle.pl

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Delicious - I'm still confused

2008-08-18 Thread Piotr Kopszak
On Mon, Aug 18, 2008 at 04:02:25PM +0200, Taco Hoekwater wrote:

 It may be possible that in the newest beta's you have to give the first
 column from the --list output as the font  name, like so:
 
 \starttypescript [sans] [delicious]
 \definefontsynonym [Delicious-Regular][name:deliciousroman]
 \definefontsynonym [Delicious-Italic] [name:deliciousitalic]
 \definefontsynonym [Delicious-Bold]   [name:deliciousbold]
 \definefontsynonym [Delicious-BoldItalic] [name:deliciousbolditalic]
 \definefontsynonym [Delicious-Caps]   [name:delicioussmallcaps]
 \stoptypescript

This hasn't changed much, this time I'm getting 

(./type-delicious.tex))
! Font \*delicious12ptsstfss*:=deliciousroman at 12.0pt not loadable: Metric (T
FM) file not found.
to be read again

Piotr

-- 

   Piotr Kopszak, Ph.D.
   Polish Art Gallery, National Museum in Warsaw
   kle ---  http://okle.pl
   http://www.magnatune.com/artists/altri_stromenti

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Delicious - I'm still confused

2008-08-18 Thread Piotr Kopszak
On Mon, Aug 18, 2008 at 10:14:47PM +0200, Hans Hagen wrote:
 Piotr Kopszak wrote:
 
 is the file listed in
 
 ..\luatex-cache\context\3addaf6083634dad22ef3141c83e8289\fonts\data\names.tma
 
 Hans

Yes, in fallback_mapping:

 deliciousmedium={ otf, Delicious-Roman, Delicious-Roman.otf, false },

and in mapping:

deliciousroman={ otf, Delicious-Roman, Delicious-Roman.otf, false },


Piotr



-- 

   Piotr Kopszak, Ph.D.
   Polish Art Gallery, National Museum in Warsaw
   kle ---  http://okle.pl
   http://www.magnatune.com/artists/altri_stromenti

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   >