[NTG-context] Word-to-LaTex on linux?

2008-07-07 Thread Piotr Kopszak
Dear list, 

Has anyone had any success running Word-to-Latex converter, mentioned on 
contextgarden, on linux? In theory it should be possible using wine and 
winetricks. 

Piotr

-- 
--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  ->http://kopszak.mnw.art.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] Word-to-LaTex on linux?

2008-07-07 Thread Piotr Kopszak
On Mon, Jul 07, 2008 at 11:31:19AM +0200, Piotr Kopszak wrote:
> Dear list, 
> 
> Has anyone had any success running Word-to-Latex converter, mentioned on 
> contextgarden, on linux? In theory it should be possible using wine and 
> winetricks. 
> 
> Piotr

Replying to myself. Before trying on my linux box I asked my administrator to 
install it on a windows box and it fails even to load its own configuration 
file when I try to use as ordinary user. Is it really worth the effort at all?

Piotr


> 
> -- 
> --
> 
>   Piotr Kopszak, Ph.D.
>   Polish Art Gallery, National Museum in Warsaw
>   ->http://kopszak.mnw.art.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
> _______

-- 
--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  ->http://kopszak.mnw.art.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] rsync ConTeXt minimals through a firewall

2008-07-14 Thread Piotr Kopszak
Hello, 

I guess it's possible, but I wasn't able to rsync the ConTeXt minimals via ssh. 
Any chance for tarballs available instead? Or maybe someone succeeded to rsync 
from behind a firewall?


Best

Piotr

-- 
--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  ->http://kopszak.mnw.art.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] Another typographic crime case

2008-07-25 Thread Piotr Kopszak
Hello list, 

Due to scarcity of decent  free fonts containing cyrillic characters I
was contemplating mixing  two different fonts of which  "font a" would
be used only for latin letters and "font b" containing missing unicode
characters would be used only for  the ones missing in "font a". Is it
feasible in Mark IV? 

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.


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
___


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] 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] 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] Automatic typesetting of catalogue entries

2006-03-27 Thread Piotr Kopszak
Hello list, 

This is a more general question so I'm not attaching any specific
code examples but rather will try to explain what I'm thinking
about. I'm going to typeset a catalogue of about 200 objects. Each
entry consists of two main parts: a block of text and a photograph of the
object. As we have to be economic rather than luxurious I adjust
manually the size  of each figure so that the text fills the rest of the
page entirely. That means I keep on incrementing the figure width
until the text spills onto next page, then I go back to the last value
that was OK. Sometimes I have  to squeeze two entries on one page so
that each occupies half of a page. Perfectly repetitive task at which 
computer would do much better than human. Sorry if it's something
trivial but I couldn't find any solution on my own. 

Thanks for any hints in advance

Piotr




  

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Automatic typesetting of catalogue entries

2006-03-27 Thread Piotr Kopszak
> i have no time to explain the details so it's up to you to wikify this ... 
> 
> \showframe
> 
> \newcounter\WhateverCounter
> 
> % quick and dirty, each text + figure gets half a page and the 
> % graphic fills the available area
> 
> \long\def\StartWhatever[#1]#2\StopWhatever
>   {\blank
>#2
>\blank
>\doglobal\increment\WhateverCounter
>\startlinecorrection
>\ifodd\WhateverCounter\relax
>  % first on page
>  \scratchdimen\dimexpr.5\textheight-\pagetotal-\lineheight\relax
>  \expanded{\externalfigure[#1][frame=on,height=\the\scratchdimen]}
>\else
>  % second on page
>  \scratchdimen\dimexpr\pagegoal-\pagetotal-\lineheight\relax
>  \expanded{\externalfigure[#1][frame=on,height=\the\scratchdimen]}
>\fi
>\stoplinecorrection}
> 
> % distribute the graphics over the page
> 
> \long\def\StartWhatever[#1]#2\StopWhatever
>   {\blank
>#2
>\blank
>\doglobal\increment\WhateverCounter
>\hpos{b:\WhateverCounter}{\strut}
>\vfill
>
> \scratchdimen\dimexpr\MPy{b:\WhateverCounter}-\MPy{e:\WhateverCounter}+\lineheight\relax
>
> \setbox\scratchbox\hbox{\expanded{\externalfigure[#1][frame=on,height=\the\scratchdimen]}}
>\ht\scratchbox\strutheight
>\hpos{e:\WhateverCounter}{\strut\box\scratchbox}
>\ifodd\WhateverCounter\relax
>\else
>  \page
>\fi}
> 
> \starttext 
> 
> \dorecurse{20} {
> \StartWhatever[cow.pdf]
>   \getrandomcount\scratchcounter{1}{3}
>   \input \ifcase\scratchcounter tufte \or davis \or ward \or zapf \else 
> bryson \fi \relax
> \StopWhatever
> }
> 
> \stoptext
> 
> implementing solutions is not that hard; it mostly depends on preferences and 
> boundary conditions 
> 
> Hans 

That's superb! Certainly worth wikifying, maybe someone better versed
in ConTeXt than me cared also to explain what's going on in here. 

Great thanks!!!

Piotr

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] 64-bit linux minimal distribution

2006-03-28 Thread Piotr Kopszak
Hello again, 

Some time ago I came across an information about 64-bit Minimal
ConTeXt  Distribution, but I can't find it anywhere. Right now I have
to stick to Debian tetex 3.0  but this is far from what I want, as
ugrading to most recent ConTeXt breaks the package system. I wasn't
able to setup a separate texmf tree in my home directory. It doesn't
work. So maybe having a separate 64-bit debian in chroot with just a Minimal
ConTeXt Distribution might solve the problem. Sorry for beeing fussy,
but didn't have to make complete ConTeXt reinstallations for couple of
years and now it seems things has changed rather for worse than the better
:(

Piotr


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] 64-bit linux minimal distribution

2006-03-28 Thread Piotr Kopszak
On Tue, Mar 28, 2006 at 09:32:31PM +0200, Piotr Kopszak wrote:
> Hello again, 
> 
> Some time ago I came across an information about 64-bit Minimal
> ConTeXt  Distribution, but I can't find it anywhere. Right now I have
> to stick to Debian tetex 3.0  but this is far from what I want, as
> ugrading to most recent ConTeXt breaks the package system. I wasn't
> able to setup a separate texmf tree in my home directory. It doesn't
> work. So maybe having a separate 64-bit debian in chroot with just a Minimal
> ConTeXt Distribution might solve the problem. Sorry for beeing fussy,
> but didn't have to make complete ConTeXt reinstallations for couple of
> years and now it seems things has changed rather for worse than the better
> :(
> 
> Piotr
> 
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

OK, I found it in directory view at PRAGMA website. 

Piotr

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Minimal distribution linux-64

2006-03-29 Thread Piotr Kopszak
Hello, 

I installed the minimal distribution

cont-bas.zip
justtex.zip
linux64tex.zip

then I unzipped the files to get the directory structure outlined in
README (by the way, why cont-bas.zip hasn't got tex as the top
directory?). Then I did: 


cd /tex
. setuptex
mktexlsr
texexec --make

and got 

! pdfetex.pool doesn't match; tangle me again (or fix the path).


Piotr

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ConTeXt minimal distribution + bibtex

2006-05-03 Thread Piotr Kopszak
Hello, 

I am trying to setup bibtex with ConTeXt minimal distribution but with
no success yet. Is there any recommeded way to do it?

Piotr
-- 

   Piotr Kopszak, Ph.D.
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] tex4ht and utf-8

2006-06-12 Thread Piotr Kopszak
Hello, 

It seems tex4ht's ConTeXt support is in the very early infancy, but I
was able to convert a simple ConTeXt file into acceptable html using
"htcontext" command. The only problem is encoding. Is there any way to
get the same utf-8 encoding as in the source file? 

Piotr  
% hello4ht.tex  -*- coding: utf-8 -*-
\enableregime[utf]
\starttext  

\chapter{Ładnie}

\input tufte

\subject{Nieładnie}

Francuski dziennik Le Monde wczorajszy występ Polaków opisuje
konkludując, że polskie niezdecydowanie skontrastowało z uporem i
konsekwencją Ekwadorczyków. Hiszpański El Pais też nie pozostaje nam
dłużny pisząc, że Ekwador wywiódł w pole słabą reprezentację
Polski. Frankfurter Allgemeine Zeitung pisze, Ĺźe ``jeszcze polska nie
zginęła, ale już przed drugim meczem Mundialu przeciwko Niemcom polska
drużyna znalazła się pod wielką presją''.

\stoptext  
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] updating minimal distribution

2006-07-17 Thread Piotr Kopszak
Hello, 

For some time I was doing 

ruby /tex/texmf-local/scripts/context/ruby/texsync.rb --update --force 
--destination=/tex --make

to upgrade minimal distribution but it doesn't work for me
anymore. Has anything changed in the meantime? 

Piotr

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] updating minimal distribution

2006-07-17 Thread Piotr Kopszak
On Mon, Jul 17, 2006 at 09:38:04PM +0200, Hans Hagen wrote:
> Piotr Kopszak wrote:
> > Hello, 
> >
> > For some time I was doing 
> >
> > ruby /tex/texmf-local/scripts/context/ruby/texsync.rb --update --force 
> > --destination=/tex --make
> >
> > to upgrade minimal distribution but it doesn't work for me
> > anymore. Has anything changed in the meantime? 
> >   
> ctxtools --update 
> 
> works for most updates 
> 
> Hans 

Indeed, thanks!

P.
-- 

   Piotr Kopszak, Ph.D.
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] No TOC and other lists with \setuparranging

2007-02-24 Thread Piotr Kopszak
Hello list, 

The following gives me TOC and list of defined heads called
przepis at the end of the file:


\definehead[przepis][section]
\setuphead [chapter] [number=no]
\setuphead [section] [number=no]
\definepapersize[mysize][width=10cm,height=19cm]
\setuppapersize[mysize][mysize]
\setuplayout[backspace=17mm,location=middle,marking=on,]
\starttext
\startbodymatter
\chapter{to start!}
\dorecurse{10}{\input knuth \par}
\przepis{Prawdziwy sos czosnkowy}
\dorecurse{5}{\input tufte \par}
\przepis{Prawdziwy sos pieczarkowy}
\dorecurse{5}{\input knuth \par}
\przepis{Prawdziwy sos jogurtowy}
\dorecurse{5}{\input tufte \par}
\chapter{dajemy dalej!}
\przepis{Prawdziwy sos warzywny}
\dorecurse{5}{\input knuth \par}
\przepis{Prawdziwy sos jagodowy}
\dorecurse{5}{\input tufte \par}
\chapter{Trzeci!}
\dorecurse{10}{\input knuth \par}
\przepis{nie-Prawdziwy sos czosnkowy}
\dorecurse{5}{\input tufte \par}
\przepis{nie-Prawdziwy sos pieczarkowy}
\dorecurse{5}{\input knuth \par}
\przepis{nie-Prawdziwy sos jogurtowy}
\dorecurse{5}{\input tufte \par}
\chapter{To czwarty!}
\przepis{Prawdziwy sos niewarzywny}
\dorecurse{5}{\input knuth \par}
\przepis{Prawdziwy sos niejagodowy}
\dorecurse{5}{\input tufte \par}
\stopbodymatter
\title{Spis tre\'sci}
\placecontent
\title{Spis przepisow}
\placelist[przepis]
\stoptext


Whereas the following does not:



\definehead[przepis][section]
\setuphead [chapter] [number=no]
\setuphead [section] [number=no]
\definepapersize[mysize][width=10cm,height=19cm]
\setuppapersize[mysize][A2]
\setuparranging[2*8,rotated,doublesided]
\setuplayout[backspace=17mm,location=middle,marking=on,]
\starttext
\startbodymatter
\chapter{to start!}
\dorecurse{10}{\input knuth \par}
\przepis{Prawdziwy sos czosnkowy}
\dorecurse{5}{\input tufte \par}
\przepis{Prawdziwy sos pieczarkowy}
\dorecurse{5}{\input knuth \par}
\przepis{Prawdziwy sos jogurtowy}
\dorecurse{5}{\input tufte \par}
\chapter{dajemy dalej!}
\przepis{Prawdziwy sos warzywny}
\dorecurse{5}{\input knuth \par}
\przepis{Prawdziwy sos jagodowy}
\dorecurse{5}{\input tufte \par}
\chapter{Trzeci!}
\dorecurse{10}{\input knuth \par}
\przepis{nie-Prawdziwy sos czosnkowy}
\dorecurse{5}{\input tufte \par}
\przepis{nie-Prawdziwy sos pieczarkowy}
\dorecurse{5}{\input knuth \par}
\przepis{nie-Prawdziwy sos jogurtowy}
\dorecurse{5}{\input tufte \par}
\chapter{To czwarty!}
\przepis{Prawdziwy sos niewarzywny}
\dorecurse{5}{\input knuth \par}
\przepis{Prawdziwy sos niejagodowy}
\dorecurse{5}{\input tufte \par}
\stopbodymatter
\title{Spis tre\'sci}
\placecontent
\title{Spis przepisow}
\placelist[przepis]
\stoptext


I am using the latest Context (ConTeXt  ver: 2007.02.21 11:55 MKII
fmt: 2007.2.24  int: english/english).  

I would be very grateful for advice

Piotr

-- 

   Piotr Kopszak, Ph.D.
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] No TOC and other lists with \setuparranging

2007-02-25 Thread Piotr Kopszak
On Sun, Feb 25, 2007 at 03:39:29PM +0100, Wolfgang Schuster wrote:
> On Sat, 24 Feb 2007 22:36:57 +0100
> Piotr Kopszak <[EMAIL PROTECTED]> wrote:
> 
> > Hello list, 
> > 
> > The following gives me TOC and list of defined heads called
> > przepis at the end of the file:
> > 
> 
> Hi Piotr,
> 
> you need the option "pdfarrange" for texexec.
> 
> texexec --pdfarrange yourfile.tex
> 
> Wolfgang

Hello Wolfgang,

Thanks for the hint! You remembered almost right. What really worked
was:

texexec --pdf --arrange yourfile.tex

Best wishes

Piotr

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] lilypond newbie

2007-05-29 Thread Piotr Kopszak
On Thu, May 10, 2007 at 09:36:15AM +0200, Steffen Wolfrum wrote:
> On Wed, 9 May 2007 23:31:00 +0200, Henning Hraban Ramm wrote:
> > Am 2007-05-09 um 13:47 schrieb Steffen Wolfrum:
> > 
> > \enableregime[utf]
> >> \usemodule[lilypond]
> >> 
> >> \starttext
> >> 
> >> \startlilypond
> >> % Telemann, TWV 40:11
> >> \version "2.6.3"
> > 
> > far tool old! use the latest LilyPond 2.10.x!
> > (the module works only with LilyPond > 2.8, as mentioned on the wiki page)
> > 
> >> \relative c? {
> > 
> > You've always ? instead of ' -- that can't work!
> > We need code, not typography!
> 
> 
> Pardon?! 
> 
> The example you refer to is from the recent version of "t-lilypond.pdf" from 
> ctan
> as I wrote in my initial posting (see below).
> 
> As I had to start somewhere, I thought it's a good start to use the most 
> recent versions of
> lilypond-2.10.23-1.darwin-x86.tar.bz2 from lilypond.org, 
> t-lilypond.pdf from ctan and 
> t-lilypond.tex that you have posted here last week.
> 
> 
> I have no idea why this leads to statements like "far tool old" and "We need 
> code, not typography!".
> 
> But it seems something is wrong here.
> 
> Steffen


I also had my first brush with the lilypond module recently and also
started with the example included in the manual. I don't know if I'm
right (having no idea about module's inner workings) but it seems that the
offending command is

\version "2.6.3"

after removing it everything went surprisingly smooth. 

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


[NTG-context] lilypond snippet in the wiki

2007-05-29 Thread Piotr Kopszak
Hello all the lilyponders on the list, 

When I run the snippet from the wiki in a slightly modified form:

\usemodule[lilypond]
\starttext
There are some notes\lilypond[clef=no, time=no, staffsize=6]{ \relative{bes a c 
b} } embedded in this line.

\stoptext


I'm getting desired result except for the fact that the staff starts
in the new line. Is it possible to obtain the staff in the same line
as the words "There are some notes" followed immediately by "embedded in this
line"?

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


[NTG-context] Post-processing ConTeXt's output for text search

2007-07-04 Thread Piotr Kopszak
Hello list, 


I would like to implement online  text search of a book I'm publishing
with ConTeXt  now, however, without  making the book  itself available
online, something like the snippet view in text search on Google Books
site.   I don't even  need snippet  view, just  page numbers  would be
sufficient for the beginning.  I  am not asking for complete solution,
of course,  rather an advice on  direction in which to  go.  May first
vague idea  is following:  to make  queries fast I  think it  would be
useful to obtain  a list of words with numbers of  pages on which they
appear, something very similar to  plain index. So perhaps it would be
possible to force indexing engine to treat every word in text as if it
was an argument of \index command  and split out a list in text format
which it would be easy to feed  into a database.  This is just a blind
guess which is  far from perfect by design,  only something that seems
easiest to implement.  Please, tell  me what other approaches would be
more promising.



Thanks in advance

Piotr

--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  ->http://kopszak.mnw.art.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] Which ConTeXt editor do you use?

2007-11-02 Thread Piotr Kopszak
On Tue, Oct 30, 2007 at 07:14:54PM +, Horacio Suarez wrote:
> hello:
> 
> I?m using emacs + auctex.
> 
> Suerte.
> 
> 
> Horacio Suarez
> Editorial Antropofagia
> www.eantropofagia.com.ar


Me, too. Never needed anything else than emacs + auctex + texshow. A
pity nobody tries to improve anything regarding ConTeXt in Emacs 
(for instance you cannot lookup a command in texshow and have it
included in your text with one key combination) but
still I think it's quite useful. 

All Best

Piotr



--

  Piotr Kopszak, Ph.D.
  Polish Art Gallery, National Museum in Warsaw
  ->http://kopszak.mnw.art.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] Embedded movies

2003-06-17 Thread Piotr Kopszak
Dnia Mon, Jun 16, 2003 at 11:00:48PM +0200, Pan(i) Hans Hagen był(a) łaskaw(a) 
napisać:
> At 21:10 16/06/2003 +0200, Maarten Sneep wrote:
> >Are you using windows to display? I never got that to work, but Mac works 
> >fine... Besides, movies are not embedded (at the moment), so you need to 
> >have the movie file next to your pdf for display, and use 8.3 names, just 
> >to be on the safe side.
> 
> this is strange, mov and avi should both work on windows (since i 
> implemented them on windows); however, sometimes an quicktime or media 
> player update messes up the system
> 
> acro 6 + pdf 1.5 will provide more multi media; i'll look into that later
> 
> Hans
> 
> http://www.ntg.nl/mailman/listinfo/ntg-context

They (avi and mov) do work  both and on both windows and linux (didn't
try on  Mac). I made a  presentation with lots  of avis in it  about a
year ago with ConTeXt and it works fine. Have you got the right codecs
installed on your system?

Piotr

-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Embedded movies

2003-06-17 Thread Piotr Kopszak
Dnia Tue, Jun 17, 2003 at 12:35:54PM +0200, Pan(i) Tobias Burnus był(a) łaskaw(a) 
napisać:
> Hi,
> 
> On Tue, 17 Jun 2003, Piotr Kopszak wrote:
> > They (avi and mov) do work  both and on both windows and linux (didn't
> > try on  Mac).
> What do you mean by "work on Linux"? Are you able to show the movies under
> Linux? (This would be great!) Or have you only created the movies under
> Linux.
> 

Well, not with  Acrobat Reader to be sure. Derek  Noonburg was so kind
to send me  a patch for xpdf which allows playing  movies with help of
any external program. I don't know if this feature was included in the
mainstream version.  I also created  movies under linux, but  this was
not too  easy a year ago. I  tried to use various  tools but exporting
version of xanim was most useful. Now things are (probably) better.


Piotr
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] layers and XML

2003-06-26 Thread Piotr Kopszak
Hello, 

I am having trouble with popping XML elements onto a new layer. 
Preferably  I  would   like  to  use  elements
"datowanie","datowanie-projektu" and "architekci" inside \framed which
would be inside \setlayer. 


   1927--38
   1926
   Aleje Jerozolimskie 3, Warszawa
   Architects: 
Tadeusz Tolwinski, 
E. Oczkowski, 
Antoni Dygat


Has anyone tried anything similar? 

Thanks in advance for any help

Piotr
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] layers and XML

2003-06-26 Thread Piotr Kopszak

> Hello, 
> 
> I am having trouble with popping XML 
> [...]
> ntg-context mailing list
> [EMAIL PROTECTED]
> http://www.ntg.nl/mailman/listinfo/ntg-context


P.S. 

I forgot to attach the piece code with which I attempted to deal with that. 
Here it is. 


\defineXMLenvironment[info-w-ramce]{\defineXMLpush[pelny-adres]
\defineXMLpush[datowanie] 
\defineXMLpush[architekci]
\defineXMLpush[datowanie-projektu] 
\setlayer[ramka][x=5cm,y=1cm]
\bgroup}
{ \framed{\XMLpop{datowanie} 
\XMLpop{datowanie-projektu}
\XMLpop{pelny-adres} 
\XMLpop{architekci}
}
}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] zoom in presentations

2003-08-06 Thread Piotr Kopszak
Hello, 

Is it possible to access  Acrobat's zoom function from ConTeXt? What I
need is  a button, maybe  somewhere close to navigation  buttons which
would give the possibility of zooming without going out of full-screen
mode. 

Piotr

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] letter manual

2003-08-11 Thread Piotr Kopszak
Hello, 

Today I  realized the last  thing I use  LaTeX for is  writing letters
(mainly because of  old stylesheets I once produced).  I would like to
switch to ConTeXt obviously. Do  I remember right that a letter manual
was mentioned  here some time  ago? What happened  to it? If  it's not
available  could you  mention  any ConTeXt  comands  aimed at  writing
letters specifically? 

Piotr





___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: zoom in presentations

2003-08-14 Thread Piotr Kopszak
Dnia Wed, Aug 06, 2003 at 12:28:17PM +0200, Pan(i) Patrick Gundlach był(a) łaskaw(a) 
napisać:
> [EMAIL PROTECTED] (Piotr Kopszak) writes:
> 
> Hello Piotr,
> 
> > Is it possible to access  Acrobat's zoom function from ConTeXt? What I
> > need is  a button, maybe  somewhere close to navigation  buttons which
> > would give the possibility of zooming without going out of full-screen
> > mode. 
> 
> Don't know, but why don't you press the "z" key to switch to
> "zooming-mode"?

Yes, that's a  solution, but not everyone using Acrobat knows that
or would like to read my explanation. 

Piotr

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Typestting all ConTeXt modules

2003-10-23 Thread Piotr Kopszak
Hello, 

I know it sounds a bit weird,  but I would like to print out the whole
ConTeXt source  as one book. So, before  I try on my  own... Are there
any clever commands which could be helpful? Also, would it be possible
to index commands in all modules? 

Piotr

-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Typestting all ConTeXt modules

2003-10-24 Thread Piotr Kopszak
Dnia Thu, Oct 23, 2003 at 06:43:11PM +0200, Pan(i) Hans Hagen był(a) łaskaw(a) 
napisać:
> At 11:26 23/10/2003, you wrote:
> >Hello,
> >
> >I know it sounds a bit weird,  but I would like to print out the whole
> >ConTeXt source  as one book. So, before  I try on my  own... Are there
> >any clever commands which could be helpful? Also, would it be possible
> >to index commands in all modules?
> 
> depends ... i do have a style somewhere that makes a big interactive doc 
> (will look it up); if you will make/complete the main file ... (not that 
> compleicated)
> 
> Hans

Surely will (will let know you about my progress). 

Piotr
 
-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] special font issue 3 user groups

2004-01-19 Thread Piotr Kopszak
Dnia Fri, Jan 16, 2004 at 03:30:51PM +0100, Pan(i) Hans Hagen byÅ(a) Åaskaw(a) 
napisaÄ:
> Hi,
> 
> At the location mentioned below you will find a font special. Before we 
> send the files to the printing house (next week) we want to make sure that 
> the for us not so familiar languages are code / entered / typeset correct. 
> It's a booklet at cdrom jewel case format so that it can sit next to the 
> tex (live) collection.
> 
>   http://www.pragma-pod.com/downloads/special/special-c.pdf
>   http://www.pragma-pod.com/downloads/special/special-p.pdf
>   http://www.pragma-pod.com/downloads/special/special-s.pdf
> 
> Hans
> 
> 
> -
>   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
> -
>information: http://www.pragma-ade.com/roadmap.pdf
> documentation: http://www.pragma-ade.com/showcase.pdf
> -
> 
> ___
> ntg-context mailing list
> [EMAIL PROTECTED]
> http://www.ntg.nl/mailman/listinfo/ntg-context

Dear Hans, 

I've found just two things  which can be corrected but probably nobody
will blame you if they remain  as they are. Everyone is used to seeing
Polish  names written  without  Polish special  characters in  foreign
publications  but  since you  include  a  sample  text in  Polish  and
enlarged Polish characters  in each font it would  be natural that you
also give font names in Polish that is:

"Antykwa ToruÅska" and "Antykwa PÃÅtawskiego"

but I am pretty sure everyone will find these fonts filed under 

"Antykwa Torunska" and "Antykwa Poltawskiego" so maybe just a footnote
explaining how they should be spelled correctly will be enough.

Piotr


-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] a typo in mtexexec.pdf

2004-02-02 Thread Piotr Kopszak
Hello, 

On page 4 of mtexexec.pdf should be :

texexec -­translate= il2-pl somefile

instead of 

texexec -­translate= il2pl somefile
^^

Piotr

-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] live ConTeXt

2004-02-17 Thread Piotr Kopszak
Good evening, 

As there are  plenty of live linux distributions on  CDs I was wondering
if there is  one that includes ConTeXt. It  should be relatively easy
to make one based on KNOPPIX (my computer is too weak though). Please,
let me know if you find one. 

Piotr



-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] items vertical spacing

2004-09-21 Thread Piotr Kopszak
Hello, 

I'm probably missing something simple. How can I setup vertical
spacing between items in itemize environment?

Piotr


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

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Entities names instead of characters in header texts

2004-10-06 Thread Piotr Kopszak
On Wed, Oct 06, 2004 at 01:53:10PM +0200, Hans Hagen wrote:
> Hi Piotr
> 
> you can copy this code in cont-new;
> 
> when i can be sure that polish/czech users have switched to latin 
> modern, we may be able to simplify some of teh nasty parts of the xml 
> handler (having to deal with { } $ etc not being in their normal slot 
> leads to much low level hacks and this is related)
> 
> [...]
> 
> \def\defineactivecharacter #1 #2%
>   {\scratchcounter\the\uccode\activehackcode
>\uccode\activehackcode\expandafter\doifnumberelse
>  \expandafter{\string#1}\empty`#1%
>\catcode\uccode\activehackcode\@@active
>\uppercase{\def\next{~}}%
>\uccode\activehackcode\scratchcounter
>% unexpanded goes wrong in pdfdoc
>[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
> PROTECTED]@EA\dohandleactivecharacter\next{#2}}}
> 
> \let\dohandleactivecharacter\secondoftwoarguments
> 
> \def\donthandleactivecharacter#1#2{\noexpand#1}
> 
> \def\XMLexpanded#1%
>   {\bgroup
>\honorunexpanded
> %\dontexpandencoding
> %\dontexpandutf
>\let\dohandleactivecharacter\donthandleactivecharacter
>\xdef\@@globalexpanded{#1}%
>\egroup
>\@@globalexpanded}
> 
> \def\setXMLexpandedmark#1#2%
>   {\XMLexpanded{\scratchtoks{\enableXML#2}}%
>\expanded{\normalsetnormalmark{#1}{\the\scratchtoks}}}
> [...]

Great thanks! 

Both solutions work. And the tip is really useful. Much easier to test
different variants. 

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

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] stretched text

2004-10-25 Thread Piotr Kopszak
Hello, 

I know it's a bad habit to use stretched text, but apparently
formerly people thought differently. I am typesetting old quotations
and would not want to replace stretched text simply by emphasized. Is
it absolutely discouraged in ConTeXt or is there any way to have
it... (in spite of its ugliness).

Piotr



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

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] stretched text

2004-10-26 Thread Piotr Kopszak
On Mon, Oct 25, 2004 at 10:32:53AM -0500, Bill McClain wrote:
> On Mon, 25 Oct 2004 16:06:10 +0200
> [EMAIL PROTECTED] (Piotr Kopszak) wrote:
> 
> > Hello, 
> > 
> > I know it's a bad habit to use stretched text, but apparently
> > formerly people thought differently. I am typesetting old quotations
> > and would not want to replace stretched text simply by emphasized. Is
> > it absolutely discouraged in ConTeXt or is there any way to have
> > it... (in spite of its ugliness).
> 
> It's still recommended in certain cases, for example in all capital or
> small cap titles. Sometimes I do it and sometimes not.
> 
> You can do it in Context. See:
> 
> http://home.salamander.com/~wmcclain/context-help.html#typography-letterspacing
> 
> You might have to look into the sources to find other options.
> 
> -Bill

Right, but as far as I understand this solution:

   \def\CapStretchAmount{.08em}
   
\def\CapStretch#1{\def\stretchedspaceamount{\CapStretchAmount}\stretchednormalcase{#1}}

   Which is used as so:

   \CapStretch{\sc The King in Yellow} 

applies only to small caps?

Piotr

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

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Black generation in cmyk output

2004-11-30 Thread Piotr Kopszak
Hello, 

I was wondering if it is possible to influence the level of black
component generation in cmyk ConTeXt output? 

Piotr


-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Black generation in cmyk output

2004-12-01 Thread Piotr Kopszak
On Tue, Nov 30, 2004 at 04:22:38PM +0100, Taco Hoekwater wrote:
> 
> Hi,
> 
> Piotr Kopszak wrote:
> >Hello, 
> >
> >I was wondering if it is possible to influence the level of black
> >component generation in cmyk ConTeXt output? 
> 
> In the automatic conversion of metapost you mean? Well, you can turn black 
> generation on (\setupcolors[reduce=no]) or turn it off ([reduce=yes]) ...
> 
> There is no way to control the *amount* of black generation, but you
> can of course define your own CMYK colors with an appropriate K component.
> 
> I hope I understood your question correctly.
> 
> Greetings, Taco

Sorry for imprecise question. I meant black generation in rgb images
in JPG format included in document. If it's not possible to control
the amount of black in that case I'd like to use cmyk JPG images, but
will they be left untouched by the colour conversion mechanism?  

Piotr

-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Black generation in cmyk output

2004-12-02 Thread Piotr Kopszak
On Wed, Dec 01, 2004 at 05:52:09PM +0100, Hans Hagen wrote:
> Henning Hraban Ramm wrote:
> >Am 01.12.2004 um 15:19 schrieb Piotr Kopszak:
> >
> >>Sorry for imprecise question. I meant black generation in rgb images
> >>in JPG format included in document. If it's not possible to control
> >>the amount of black in that case I'd like to use cmyk JPG images, but
> >>will they be left untouched by the colour conversion mechanism?
> >
> >
> >AFAIK ConTeXt doesn't touch pixel images at all - that would be a rather 
> >complicated task, perhaps using little_cms or GIMP libraries or the like...
> 
> indeed, however, you may expect some manipulations without touching the 
> bitmap, like runtime turning gray scales into spot colors and duotones; i 
> have something running here for half a year now but i recently moved the 
> code into the kernel
> 
> Hans

Right, but what exactly happens with included rgb bitmaps 
when I use: 

\setupcolors[state=start,cmyk=yes,rgb=no] 

Will they be left in rgb? 

Piotr



-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Black generation in cmyk output

2004-12-03 Thread Piotr Kopszak
On Thu, Dec 02, 2004 at 11:10:51AM +0100, Taco Hoekwater wrote:
> 
> Just curious: why do you need a cmyk pdf document? I'm asking because the 
> requirement often implies that you are using a less-than-modern printing 
> house. If that is the case, you may be better off using PostScript instead 
> of PDF.
> 
> Greetings, Taco

Actually, I was asked once  to deliver one, because the printing house
charged extra  money for  processing rgb pdf.   But true, this  time I
simply need postscript output. Hence  another question. I was asked to
deliver all  pages as separate EPS  files. I was  using ghostscript to
obtain individual  pages but is there  any option to get  all pages in
the document as separate files using ConTeXt?

Piotr


-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] m-letter.tex

2004-12-17 Thread Piotr Kopszak
Talking about missing files, the following link seems to be dead.

http://www.pragma-ade.com/general/magazines/mag-0008.pdf

P.

-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] duotones

2004-12-27 Thread Piotr Kopszak
Hans, 

You mentioned recently support for obtaining  duotones. I was grepping
through the recent sources, but couldn't find any information about
that. Is it already in the published beta?

Piotr


-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bleeding background

2005-02-28 Thread Piotr Kopszak
Hello, 

What   is  the   most  simple   way  to   obtain  a   bleeding  colour
background?

Thanks in advance

Piotr


-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: page on context and XML has moved

2005-04-04 Thread Piotr Kopszak
On Sun, Apr 03, 2005 at 06:05:40PM -0400, Paul Tremblay wrote:
> On Sun, Apr 03, 2005 at 11:03:53PM +0200, Patrick Gundlach wrote:
>[...]

I just looked at the webpage you mentioned and TeXML resources. If
I'm not mistaken it seems it was conceived for LaTeX. Does it
really make sense in context of ConTeXt? I'm afraid having a language
whose available reference does not even mention ConTeXt only adds up to the
existing TeX mess rather than makes it richer. At least the subset
which makes use of ConTeXt  should be called differently. Sorry for my
ignorance. These are just first impressions after having a quick look
at the idea.

Piotr


-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: page on context and XML has moved

2005-04-05 Thread Piotr Kopszak
On Mon, Apr 04, 2005 at 01:09:07PM -0400, Paul Tremblay wrote:
> 
> It is true that originally this was designed just for LaTeX. But I
> became a developer and changed the code so that it will work under
> ConTeXt. I even provided a script that will convert TeXML directly from
> XML to PDF or other print formats. The name of this script is texml_con.
> It is only available on CVS right now, but I should make it available as
> a package sometime later today.
> 
> I will have to aske the administrator of the sourceforge site to update
> the webpage so that it mentions ConTeXt as well. 
> 
> I provide myriads of examples on the webpages in TeXML format. Running
> the TeXML script on any of these codes will change the documents to
> valid ConTeXt. 
> 
> Paul
> 

That's very  promising indeed. Right now I'm  transforming my original
xml  using xslt  to  a simpler  xml  file which  can  be processed  in
document  order to  make the  ConTeXt file  containing  xml formatting
commands as simple as possible. It would be nice to end up with an xml
file which would  contain all the formatting information  and make the
ConTeXt file unnecessary. But I'm afraid of two things:

1. XSLT transformations  will get  so complex I  will get lost  in the
   stylesheet at some point. 

2. How the final  finetuning of the appearence of  the typeset version
   should be done? Surely not by fiddling in the xml file which should
   be generated by xslt (or  whatever) and I'm not sure making changes
   in  the xslt  stylesheet to  make some  pages one  line  shorter or
   longer is the  way to go.
 
Piotr

-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: page on context and XML has moved

2005-04-06 Thread Piotr Kopszak
> 
> Hi Piotr,
> 
> First, if you use TeXML, make sure you download the latest version,
> 1.25-devel. This version is very stable and robust, and has the
> texml_con script, which converts directly from XML to PDF or whatever
> format you require:
> 
> texml_con  infile
> 
> It will create a ConTeX file along the way, as its first step. So if
> your file is modern_photo.xml, a file called modern_photo.tex will be
> created. You could open the modern_photo.tex file and make small changes
> on that file. However, if you need to do this, you should instead type:
> 
> texml.py -e -c modern_photo.xml modern_photo.tex
> 
> That will create a ConTeXt file, which you can then alter.
> 
> Of course, having to alter the ConTeXt file defeats the purpose of XML.
> You should be able to convert directly from XML to PDF. What alterations
> do you think you will have to make? 
> 
> I know XSLT stylesheets can get very complicated. This is often the
> case, including when I convert XML to HTML. You could try converting in
> steps, making a small manageble change on one document, and then making
> a small manageable change and so on.
> 
> Let me know your results. Good luck!
> 
> Paul
> 
> -- 
> 
> 
> *Paul Tremblay *
> [EMAIL PROTECTED]*
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

For instance in  the last catalogue I was typesetting  I had to change
hyphenation of some words in the final stage of work. By the way, this
is a more  general problem. Is it possible  to change hyphenation only
locally in ConTeXt?   That means to exclude possibility  of breaking a
word in  some place on one  page and allow  it on other pages?   I was
lucky as I had problems with words that appeared only once in the text
so  I   did  not  have  to   bother,  but  that   was  an  exceptional
situation. The  other thing that comes  to my mind are  all the things
that \adaptlayout was  invented for.  I don't believe  you can produce
large documents  without such last touches,  but on the  other hand it
does not make  much sense to me to edit by  hand the resulting ConTeXt
file. Maybe such changes could live in another xml file which could be
included at the end of work.

Piotr

-- 
   Piotr Kopszak, Ph.D.  
   Polish Art Gallery, National Museum in Warsaw
   ->http://kopszak.mnw.art.pl/
   http://www.magnatune.com/artists/altri_stromenti

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


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

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

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
___

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 :
> 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 :
>>
>> 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
>>
>> ___
>
>
>
> ___
> If your question is of interest to others as well, please add an 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] 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 :
> 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 :
> 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 :
>> 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
___


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 :
>
> Am 02.05.2013 um 17:20 schrieb 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?
>
>
> \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] 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*** (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*** (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 :
> 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*** (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*** (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] 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 :
> 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  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 :
>> > 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*** (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*** (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] 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] 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 :
> 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] 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] 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 :
> 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] 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] 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 :
> 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
___

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



-- 
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 :
> On Thu, 2 Jun 2011 11:39:46 +0200
>  Piotr Kopszak  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 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
___


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


[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 :
> 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 :
>
>
> On Tue, May 12, 2009 at 11:22 AM, 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?
>>
>> 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 :
>
>
> On Tue, May 12, 2009 at 1:28 PM, Piotr Kopszak  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 :
>
>
> On Tue, May 12, 2009 at 3:03 PM, Piotr Kopszak  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 :
>
> 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] 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 :
>
>
> On Tue, May 12, 2009 at 3:32 PM, Wolfgang Schuster
>  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] 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 :
> Le 15 mai à 13:23:52 Piotr Kopszak  é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] 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 :
> 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
___


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


[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=BB81EXR7&channel=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] 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 :
>>
>> 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] 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
___


  1   2   >