[NTG-context] Footnote in columns/sets?

2007-01-31 Thread Michal Kvasnicka
Good evening.

Since I've got no answer, I date to resent my question once more, and
even to add to it.

I typeset a document in two columns on the grid. I use both columns, and 
columnsets. I place footnotes in the "lastcolumn".

  \setupfootnotes
[rule=off, way=bypage, location=lastcolumn, conversion=set 3]
  \setupfootnotedefinition
[location=left, width=fit, hang=1]

1) How can I set interlinespace to a smaller distance? (I don't care that
the footnote lines would not be on the grid---I prefer it to a very
loose interlinespace.) I guess that there is better way than to write

  \footnote{\setupinterlinespace[line=9pt] ...\par}

Moreover, it doesn't work well since on the first line is apparently
inserted a strut.


2) In columnsets, the footnotes appear in the column where they are
referenced, not in the last (the second) column. How can I force it to
the second column?

Many thanks for your answers.
M.K.

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


[NTG-context] Footnote in columns interlinespace

2007-01-29 Thread Michal Kvasnicka
Good noon.

I typeset a document in two columns on the grid. Footnotes I place in
the "columns".
\setupfootnotes
  [rule=off, way=bypage, location=columns, conversion=set 3,
before={\blank[line]}]
\setupfootnotedefinition
  [location=left,width=fit, sample={\mathematics{\star\star\star}\
},hang=1]
How can I set interlinespace to a smaller distance? (I don't care that
the footnote lines would not be on the grid---I prefer it to a very
loose interlinespace.) I guess that there is better way than to write
\footnote{\setupinterlinespace[line=9pt] ...\par}
Moreover, it doesn't work well since on the first line is apparently
inserted a strut.

Many thank for you help.
Michal Kvasnicka


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


[NTG-context] Module `database' and UTF8?

2007-01-20 Thread Michal Kvasnicka
Good evening.

I apologize that I bother you now so much with my own problems but I
have to rewrite some of my macros right now for some reason.

I found there is a great `database' module. I tried it with ConTeXt
version 2007.01.12 15:56, perl TeXExec 5.4.3, and pdfetex 1.40.1 under
SuSE Linux 10.1. I use input encoding regime utf8, and fonts in ec-lm
encoding. I set it this way:
\defineseparatedlist[CSV]
  [separator=tab,%{,}, %quotechar={"},
   before=\bTABLE, after=\eTABLE,
   first=\bTR, last=\eTR,
   left=\bTD, right=\eTD]
And call it with \processseparatedfile[CSV][file.csv].

It works well with words without accents. If there is an accented letter
in the file.csv, it failes with this error message:
! Argument of \utftwouniglph has an extra }.

\par

   }
\dodoprocessseplist #1#2->\edef \!!stringa {#1}
\ifx [EMAIL PROTECTED]
\!!stringa ...
 PŘÍJMY   leden   únor
březen  duben   květen  červen 
červenecsrpe...

\doprocessseplist ...elax ->\dodoprocessseplist #1
\relax  \relax
\relax \end
\doprocessseparatedfileline ...plist \line \relax
  \else \expanded
{\processq...
...

Can you help me to make it work?

Many thanks. Yours
Michal Kvasnicka

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


Re: [NTG-context] pdfetex 1.40.1 + ghosscript problem? More findings

2007-01-20 Thread Michal Kvasnicka
Good evening.

I found some more puzzling things. I write them here fore anybody who
may be interested. :-)

I tried to typeset a document using two font families: TrueType Gentium
by SIL, and Adobe OpenType Myriad. First I converted Myriad to Type1
using fontforge, then I prepared metrics for all fonts with TeXFont
using ec-lm encoding. I found this:

(1) Any ConTeXt document produced by pdfetex 1.40.1 (even this one:
\setupoutput[pdf]
\starttext
\input tufte
\stoptext
makes my GhostScript (gs Ghostscript 8.15.3 under SuSE Linux 10.1) die
with this error:
    Warning:  An error occurred while reading an XREF table.
    The file has been damaged.  This may have been caused
    by a problem while converting or transfering the file.
    Ghostscript will attempt to recover the data.
   ERROR: /undefined in /BXlevel
etc. However, if I make a ps-file out of it using AdobeReader, I can
view/print it with my GhostScript.
The newest Ghostscript (Ghostscript 8.54 (2006-05-17)) doesn't write
this error message but the rest of problems (see below) is the same.

(2) When I typeset my document only with the Gentium font, or only with
the Myriad font, or with a combination of the Gentium and LatinModern,
or the Gentium and TrueType version of Myriad (made fontforge), the
outcome is the same as (1).

(3) If I try to combine TrueType Gentium and Type1 Myriad, my
GhostScript failes to view/print it properly: strange letters appear in
the text.

I've got no idea what's wrong. By the way, my input regime is now utf8.

Do you thing this is problem of ConTeXt, or pdfetex, or GhostScript?
Whom should I tell it?

Yours
Michal Kvasnicka

P.S. I apologize to all of you who are bothered by this topic.

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


[NTG-context] Another \setuparranging

2007-01-18 Thread Michal Kvasnicka
Good evening.

Is there any SIMPLE way to add one more arranging scheme to
\setuparranging command? I regularly typeset some document on a piece of
paper that is 1/3 of A4, and want to print it in such a way that three
of them are positioned side to side on one A4 paper. I've been doing it
with pstops utility. Isn't there a simple way how make \setuparranging
command to do it?

And one more related question: Usually the document has just one page,
so in the print version there are three same pages side to side to each
other. Any hint how to do it?

Many thanks for your help.
Michal Kvasnicka

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


[NTG-context] pdfetex 1.40.1 + ghosscript problem?

2007-01-18 Thread Michal Kvasnicka
Good evening.

Excuse me this off-topic, I don't know where should I ask.

I've installed pdfetex 1.40.1 to be able to use hz-algorithm with
truetype fonts. Both my AdobeReader 7.x, and xpdf under SuSE Linux 10.1
view the output pdf file all right. But my gv viewer based on
ghostscript (version 8.15 (2006-04-19)) dies if I try to view the output
file with it. When I convert the pdf file to postscript using
AdobeReader, it doesn't die but view the document incorrectly (strange
letters appears where they are not supposed to be).

Can anybody tell me what's wrong, and if there is a ghostscript version
capable to view the output of pdftex 1.40.1? Without it it is useless
for me. :-(

Many thanks for your kind help.
Michal Kvasnicka

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


Re: [NTG-context] Columns page-break problem -- mini example

2007-01-16 Thread Michal Kvasnicka
Many thanks for your help. I'll do what I can to help Mr. Hagen to
improve ConTeXt. Just tell me please how can I make the bug report.

Michal Kvasnicka
> Verified. \stopcolumns seems to generate a pagebreak when the
> combined length of the text in all the typeset columns would
> be longer than half of the page height. Can you make a bug report?
>
> Best, Taco
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   

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


Re: [NTG-context] Columns page-break problem -- mini example

2007-01-16 Thread Michal Kvasnicka
Can you please try to replicate this mini example:

\setupoutput[pdf]
\setuppapersize[A5][A5]

\starttext

\startcolumns
  \dorecurse{4}{\input tufte\par}
\stopcolumns
a

\startcolumns
  \dorecurse{5}{\input tufte\par}
\stopcolumns

\stoptext

In my case there is a big hole on the page 2 (after the first
\stopcolumns). Even the letter "a" goes to the next page, page 3.

I use perl TeXExec 5.4.3, ConTeXt  ver: 2007.01.12 15:56 MKII, pdfeTeX,
Version 3.141592-1.21a-2.2 (Web2C 7.5.4) with teTeX tetex-3.0-37 under
SuSE Linux 10.1.

Many thanks
Michal Kvasnicka

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


Re: [NTG-context] Columns page-break problem

2007-01-14 Thread Michal Kvasnicka
BTW, I've replaced my ConTeXt with the newest one (ConTeXt  ver:
2007.01.12 15:56 MKII), and the outcome is the same.
M.K.


Michal Kvasnicka napsal(a):
> Good morning.
>
> I've just installed new ConTeXt (ver. 2006.08.08 21:51), and use perl
> TeXExec (ver. 5.4.3). Now my old macros using the columns environment
> have stopped working properly. Even when I type (n being a number)
>
> \startcolumns
> \dorcurse{n}{\input tufte}
> \stopcolumns
> a
>
> the page is broken after the \stopcolumns sometimes even when only 50-80
> % of the page is filled ("a" is in the next page). In my previous
> installations (I haven't upgraded for a long time) it worked perfect.
>
> What's wrong? Was something changed? Haven't I installed the ConTeXt
> properly? What should I do?
> Your sincerely
> Michal Kvasnicka
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   

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


[NTG-context] Columns page-break problem

2007-01-14 Thread Michal Kvasnicka
Good morning.

I've just installed new ConTeXt (ver. 2006.08.08 21:51), and use perl
TeXExec (ver. 5.4.3). Now my old macros using the columns environment
have stopped working properly. Even when I type (n being a number)

\startcolumns
\dorcurse{n}{\input tufte}
\stopcolumns
a

the page is broken after the \stopcolumns sometimes even when only 50-80
% of the page is filled ("a" is in the next page). In my previous
installations (I haven't upgraded for a long time) it worked perfect.

What's wrong? Was something changed? Haven't I installed the ConTeXt
properly? What should I do?
Your sincerely
Michal Kvasnicka

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


[NTG-context] texexec ruby problem

2007-01-14 Thread Michal Kvasnicka
Good morning.

I've just installed new ConTeXt (ver: 2006.08.08 21:51) under SuSE 10.1
Linux. I tried to make ruby version of texexec working, but I failed.
When I try to run it, I get this error message:

/usr/share/texmf/scripts/context/ruby/texexec.rb:10:in `require': no
such file to load -- base/switch (LoadError)
from /usr/share/texmf/scripts/context/ruby/texexec.rb:10

Can you tell me what package should I install? And is there any
difference between the perl and the ruby texexecs?

Your sincerely
Michal Kvasnicka

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


[NTG-context] CM Super HF Bright -- encoding?

2006-09-18 Thread Michal Kvasnicka
Good evening.

I wish to typeset a document using Computer Modern Sans Bright font. 
There is HFBright package, and CM-Super package. The first one doesn't 
include all letters used in the Czech Typography, while the other does. 
So I'd like to use it. Now, what of encodings supported by the package 
should I use? I tried:

\mainlanguage[cz]
\enableregime[il2]
\loadmapfile[cm-super-t1.map]
\definefontsynonym [Serif][ebmr10][encoding=cm-super-t1]

but all accented letters were spoiled. I've got the same result when I 
tried to substitute "cm-super-t1" with "ec", "ec-lm", and "t1".

What mapfile and what encoding should I use?
Your thankful
Michal Kvasnicka


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


[NTG-context] MyriadPro?

2006-07-07 Thread Michal Kvasnicka
Good evening.

I tried to use MyriadPro font (associated with Linux version of 
AdobeReader 7.x). First I've converted it to .afm/.pfb through FontForge 
(with default setting since I don't know how to use it). Then I've 
generated metrics and the rest TeX stuff with texfont---I've used lm-ec 
encoding. (I know that this way I loose all those wonderful features of 
Profi fonts---I don't care, I simply like basic look of the font.) All 
worked well in ConTeXt---until I found that Czech letters (those with 
acutes and carons and rings) are present only in the Regular font, not 
in the Bold and Italic. Can you explain me 1) how is it possible, and 2) 
how to use this font to typeset Czech documents (i.e. to get a full 
ec-encoded fonts from it)? Can I expect the same kind of problems with 
MinionPro as well?

Many thanks for your answers. I wish you nice summer.
Michal Kvasnicka

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


Re: [NTG-context] ec encoding and tcaron

2006-06-09 Thread Michal Kvasnicka
Hi Richard.
> I'm sure the EC encoding contains the 'tcaron' character (see the 
> lm-ec.enc file for example).
> I have ConTeXt on top of TeXLive 2005.
> I can find:
> texmf/fonts/enc/dvips/base/ec.enc
> texmf/fonts/enc/dvips/lm/ec-lm.enc
> texmf/fonts/enc/dvips/lm/lm-ec.enc
>
> I use EC normally for typesetting Czech documents. So I would suggest 
> to use EC ;-)
I'm sorry you're not right. The lm-ec.enc really includes tcaron, but 
neither ec.enc nor EC.enc does, at least at my teTeX 3.0. If you use 
only LatinModern, it works, because lm-ec.enc is used. But I doubt it 
works well for other fonts. Does it? I was unsuccessful. Can you send me 
your ec.enc file please?

Yours
Michal Kvasnicka

P.S. It's nice to hear that more Czech use the ConTeXt.

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


[NTG-context] ec encoding and tcaron

2006-06-09 Thread Michal Kvasnicka
Dear friends,

I apologize that I ask the same question that had been asked a year ago 
but I can't find in the archive the definite solution.

I want to use new fonts in the ConTeXt to typeset the Czech documents. 
TeXFont seems to be the best way to prepare metrics. EC encoding seems 
to be the standard ConTeXt encoding. But it doesn't include tcaron 
(well, this is true at least for EC.enc on my teTeX 3.0 under the SuSE 
Linux 10.0 with the latest ConTeXt from May 28). (In the Czech the lower 
case of Tcaron looks like tqouteright but nowadays most AFM files call 
it tcaron).  Other glyphs may miss as well (I might not notice since I 
suspect that ConTeXt replaces missing letter with composites, e.g. 
Ecaron with \v{E}).

So, what is the standard way I should use? I can use ec-lm.enc but is it 
the right way? (Moreover, it seems there is no information for 
ligatures.) I could try to use il2, but is the right way? And I had some 
problems with xl2.enc used formerly for il2-encoded fonts.

So, what was decided to be the right encoding for the ConTeXt? (Is the 
answer the same for the Czech typesetters?)
And one more question: Does anybody have the enc file that would make 
the TeXFont to generate metrics for il2-encoded fonts for the use with 
csplain (the Czech version of plainTeX)?

Sincerely yours
Michal Kvasnicka

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


Re: [NTG-context] RLXTOOLS ?

2006-06-01 Thread Michal Kvasnicka
Many thanks to you both---I will experiment with both solutions. I would 
prefer the RLXTools (being standard in the ConTeXt) but I still can't 
imagine how should I make the figure name/conversion dependent on the 
size specified in the TeX file (different sizes for different figures). 
However, I'll experiment.

Many thanks once more.
M.K.

>in the default rlxtools.rlx file you will find
>
>
>/
>/name='prefix'/>
>
>texmfstart pstopdf --convert --method=4
>--inputpath=
>--outputpath=/
>
>
>
>
>so, what you can do is define something  lowres-x and lowres-y and set 
>the conversion to one of those those depending on the width
>
>tricky but kind of okay is
>
>\definemeasure[whatever][\makeupwidth]
>
>... 
>width=\measure{whatever},conversion=lowres-\ifdim\measure{whatever}<\makeupwidth
> 
>x\else y\fi,...
>
>Hans
>
>
>-
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
> | www.pragma-pod.nl
>-
>
>___
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>  

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


[NTG-context] RLXTOOLS ?

2006-05-30 Thread Michal Kvasnicka
Good evening.

How can I make RLXTOOLS to regenerate a figure when its dimensions in 
the TeX file are changed? (What I mean is this: For screen version of my 
documents I downscale JPGs to 100ppi. But it depends on the size given 
by the TeX file. So I'd like RLXTools to regenerate the figure when I change
\externalfigure[bum.jpg][width=\textwidth]
to
\externalfigure[bum.jpg][width=\makeupwidth]
for instance (while in columns).)

How can I get force it to do it?

Many thanks for you kind answer. And many thanks to Mr. Hagen for this 
wonderful tool -- it's much better than my semimanual use of Make.

Yours
Michal Kvasnicka

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


[NTG-context] Minion/Myriad

2006-05-05 Thread Michal Kvasnicka
Good evening.

I've found there are some nice Minion/Myriad fonts included in the 
Acrobat Reader 7.x for Linux, and that they include glyphs needed for 
the typesetting Czech. But I don't know how to handle .otf fonts. I know 
there are some huge manuals on this topic, but I'm really short of time. 
So I dare to ask one lazy question: Does anybody here have all the 
necessary files (typescripts, metrics, virtual fonts, .otf translated to 
.pfb etc)? Would he be so nice to zip and send it to me? (Perhaps with a 
sample file showing how to use it?) I'd be really thankful for that. (I 
know it's not a great reward.)

Your sincerely lazy being short of time :-)
Michal Kvasnicka

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


[NTG-context] Advance in columnsets/columns?

2006-05-05 Thread Michal Kvasnicka
Good evening.

I've been very busy in the last year or so, so I haven't been able to 
follow up change in the ConTeXt. So I dare to ask: Was there some 
advance in columnsets and columns in the last year? (I haven't found any 
mail in the mail archive on this topic.) I typeset our church bulletin 
in the column layout, so I am especially interested in these matters:

1) If there is some automatic balancing of columnsets, that would allow 
me to stop the columnset at the middle of the page, balance it 
automatically (not manually, I know to do it manually, but it's 
bothering), and start a new columnset on the same page. (I know it's on 
the edge of TeX possibilities, or beyond perhaps. But Mr. Hagen is a 
real Wizard---he has already implemented many things that I thought are 
not possible in the TeX.)

2) Or, what would be satisfactory, if the float-placement mechanism of 
ordinary columns was improved, so that I would be able to put a float 
not only "here", or on the "top", but also in the "bottom" in the two 
columns layout.

Many thanks for your kind answer.
Your sincerely
M.K.

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


Re: [NTG-context] Blocks in a macro?

2005-02-14 Thread Michal Kvasnicka
Good evening.
Many thanks for your help. Basicly it works. Problem is that it spoils 
formatting. Try the following example. The answers defined through block 
are not serried, while the last one defined directly is. Could it be 
solved somehow?

Many thanks once more.
M.K.
P.S. Does it mean that blocks cannot be reasonably linked to XML-marks too?

% output=pdf
\defineenumeration[question]
 [way=bychapter, coupling=answer, location=serried, text=, 
distance=0pt, width=broad]
\defineenumeration[answer]
 [way=bychapter, coupling=question, location=serried, text=, 
distance=0pt, width=broad]
\defineblock[question, answer]
\hideblocks[answer]
\setupblock[question][before=\startquestion,after=\stopquestion]
\setupblock[answer][before=\startanswer,after=\stopanswer]

\starttext
\chapter{Questions}
\beginquestion
Question one
\endquestion
\beginanswer
Answer one
\endanswer
\beginquestion
Question two
\endquestion
\beginanswer
Answer two
\endanswer
\chapter{Answers}
\reset[question,answer]
\useblocks[answer]
\startanswer
Answer three
\stopanswer
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Cross-reference to PDF via web

2005-02-14 Thread Michal Kvasnicka
Good evening.
Is it possible to acces a inter-file cross-reference via web? I have 
some documents for my students, all created with ConTeXt. Each chapter 
in each document has a cross-reference. I can access one document from 
another via web like this:
   
\goto{here}[URL(http://www.econ.muni.cz/\~qasar/vyuka/barro/barrografy.pdf)]
Is it possible to go to some specific chapter? I tried
   
\goto{here}[URL(http://www.econ.muni.cz/\~qasar/vyuka/barro/barrografy.pdf)::chap:somechpater]
but it didn't worked.

Is it possible to do it somehow? Many thanks for your answers.
M.K.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Blocks in a macro?

2005-02-14 Thread Michal Kvasnicka
Good evening.
How can I include \begin ... \end into a macro?
I have defined:
   \defineblock[question]
   \defineblock[answer]
   \defineenumeration[question][location=serried, coupling=answer]
   \defineenumeration[answer][location=serried, coupling=answer]
   \hideblocks[answer]
I'd like to simplify my code from
   \beginquestion \startquestion question ... \stopquestion \endquestion
   \beginanswer \answer answer ... \par  \endanswer
to
   \q{question ...}{answer ...}
\q begin something like this:
   \def\q{%
  \beginquestion \question #1\par \endquestion
   \beginanswer \answer #2\par  \endanswer
   }
But no question/anwer is written into .tub file (only the beginning/end 
of those blocks).

Any hint?
Many thanks. Your sincerely
Michal Kvasnicka
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New ConTeXt cz interface - apologize

2005-01-21 Thread Michal Kvasnicka
Good afternoon.
I have to apologize for making a mess here. The problem I have refered 
the last week was not caused by ConTeXt, nor by TeXLive (at least not 
directly), but by my own stupidness.  When I deleted the old ConTeXt 
from the TeXLive directory tree, I didn't deleted old file cont-usr.tex 
which was placed in some absurd distant directory I had not expected. So 
I apologize. But anyway, your hints helped me to find this problem---I 
would be otherwise probably able to find it out.

BTW, can someone explain me what is the logic behind the TeXLive 
directory tree? Why isn't so simple as the old teTeX was? Why some 
configuraton files are there two or three times, sometimes with 
different content? :-( Is somewhere an explanation of these wonders? :-(

With many greetings and once more apologizing your
Michal Kvasnicka
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New ConTeXt cz interface installation problem

2005-01-11 Thread Michal Kvasnicka
David Antos wrote:
just a comment. In TeXlive2003, czhyph.tex contains first
\ifx\addlanguage\undefined
 \errmessage{This file can be used only in babelised formats!}
\fi
 

Well, I forgot to say that I commented these lines. :-) As for the rest, 
I think ConTeXt is as superior to LaTeX as an herd of buldozers is to a 
child trowel in digging. :-)

Many thanks to you both for your help.
M.K.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New ConTeXt cz interface installation problem

2005-01-11 Thread Michal Kvasnicka
Many thanks for your answer. I will try to follow your advices.
As for TeX distributions, I'm getting desperate. I had to switch to 
TeXLive from teTeX, because 1) it didn't work with tha last version of 
ConTeXt I tried to install, and 2) in SuSE 9.1 mktexlsr doesn't work in 
the teTeX. Now I can see that the TeXLive is not better at all. 
Moreover, I don't understand why there are three different texmf 
directories. :-( What distribution of TeX should I use? Does your 
minimal TeX distribution support plain/LaTeX (for those rare cases I 
need to use them)? Well, I will see at the night. :-)

Many thanks once more. Your thankful
Michal Kvasnicka
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] New ConTeXt cz interface installation problem

2005-01-11 Thread Michal Kvasnicka
Dear friends,
I apologize that I have recently sent message to this list only when 
I've got some problems. Nontheless I need to keep this tradition. :-( I 
tried to install the newest ConTeXt over the TexLive 9/2003. All was 
perfect except the Czech interface. I've got a strange error. What 
should I do to improve it?

My system is this:
* SuSE Linux 9.1
* TeX Live + CTAN 9/2003
* pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2)
* ConTeXt  ver: 2004.12.06  fmt: 2005.1.11  int: english  mes: english
* TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004
The excerpt from the log file is this:
language   : patterns for cz not loaded
language   : patterns for hr not loaded
language   : patterns for pl not loaded
language   : patterns for sk not loaded
encoding   : coding fde is loaded
(/usr/TeX/texmf/tex/context/base/enco-fde.tex 
language   : language specific options [default-de] seamless appended
language   : language specific options [default-de] seamless appended
language   : language specific options [default-de] seamless appended
encoding   : coding pdfdoc
language   : language specific options [pdfdoc-de] seamless appended
encoding   : coding ec
language   : language specific options [ec-de] seamless appended
encoding   : coding texnansi
language   : language specific options [texnansi-de] seamless appended
))
language   : patterns en for en loaded (n=1)
(/usr/TeX/texmf/tex/generic/hyphen/hyphen.tex)
language   : no hyphenations en for en (n=1)
language   : patterns de for de loaded (n=2)
(/usr/TeX/texmf/tex/generic/hyphen/dehyphn.tex
New German Hyphenation Patterns `dehyphn' Rev.31 <2001-05-07> (WaS))
language   : no hyphenations de for de (n=2)
encoding   : coding il2
language   : patterns sk for sk loaded (n=3)
(/usr/TeX/texmf/tex/generic/hyphen/skhyph.tex
(/usr/TeX/texmf/tex/csplain/t1code.tex Font encoding set to Cork.)
The \^, \`, \', \v, \" and \r expands to characters by Cork.
(/usr/TeX/texmf/tex/csplain/skhyphen.tex))
language   : no hyphenations sk for sk (n=3)
encoding   : coding ec
language   : patterns sk for sk loaded (n=3)
(/usr/TeX/texmf/tex/generic/hyphen/skhyph.tex
(/usr/TeX/texmf/tex/csplain/t1code.tex Font encoding set to Cork.)
The \^, \`, \', \v, \" and \r expands to characters by Cork.
(/usr/TeX/texmf/tex/csplain/skhyphen.tex
! Duplicate pattern.
l.29 a1
I am quite desperate so I will be thankfull for any hint.
Your sincerelly
Michal Kvasnicka
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Metapost animation

2004-09-16 Thread Michal Kvasnicka
Good evening.
Many thanks for your answer. If it doesn't work for `small steps (<1s)', 
it's probably useless, since for a smooth motion at least 15 frames per 
seconds are needed. But anyway, what is `svg'? Where can I see `dante XV 
presentation'?

And one more question: Is sounds as system-dependent as movies? If not, 
how can I integrate it in a PDF document?

Many thanks and greetings.
Yours
Michal Kvasnicka
sure, you can let a javascript toggle the states; however, small steps 
(<1 sec) are not to be trusted in precission, since they also depend 
on the machine; they also kind of block other actions since there is 
no concept of animation in pdf (apart from svg, which is poorly 
implemented/integrated).  
Another method is demonstrated in the 'dante XV' presentation (runs 
slightly faster on a mac than on windows);
Hans 

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


Re: [NTG-context] Metapost animation

2004-09-14 Thread Michal Kvasnicka
Hans Hagen wrote:
Michal Kvasnicka wrote:
Now to my next question. I have seen a great thing: Metapost pictures 
were animated (probably with the JavaScript code). You can found some 
examples here:
   http://www.math.muni.cz/~plch/nkpm/nradanm6.pdf
   http://www.math.muni.cz/~plch/nkpm/nradanm8.pdf
(Just click on the `Spustit animaci' button.)

it's in the metafun manual
that kind of trickery has been present in context for a long time, but 
unfortunately it's not always available on each platform
(apart from the fact that each version of acrobat has its own side 
effects)
Hm. Do you quote the Metafun manual, section 13.6? I know this 
technique. But my question was different: Is it possible to `animate' 
the fieldstack? In other words, to make it change one figure to another 
automatically, without clicking anywhere, changing one frame to another 
each 1/n second to simulate a smoth motion like in a cinema?

Many thanks to you and all who answered me.
Yours
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problems with Acrobat Reader, animation, sound, JavaScript etc.

2004-09-13 Thread Michal Kvasnicka
Good morning.
I'd like to ask a little off-topic questions but closely related to 
ConTeXt.  I'm sorry I bother you with this, but I need it. My interest 
is not purely academic. I'd like to prepare fully interactive documents 
for my students to work with at home and prepare to my classes.

My questions are like this: Theoretically, PDF can contain sound, movie, 
and JavaScript.
1) In practise, the movie plugin I have found only in the Acrobat Reader 
5.x under Windoze; in Linux and in Adobe Reader 6.0 under Windoze it was 
not present. Can I download it somewhere?
2) What are limits of QuickTime JPeg in the PDF? It worked with a movie 
included in the QuickTime viewer under Windoze, but not with a movie 
from my digital camera (Olympus C730UZ). How can I convert it (for free)?
3) How can I include sounds to my PDF? Does it work with all Readers 
under all platforms, or not? What do I need to install?
4) Some JavaScripts work only under Windoze, not under Linux. Why? How 
can I fix that? Mr. Hagen's clock example, and Mr. Gundlach euro-anim 
example are just two cases.
5) Does Adobe still support Linux? There is a reader version 6.0 for 
Windoze, but only 5.0.9 for Linux.
6) If I want to learn how to use JavaScript in the ConTeXt, what Adobe 
document should I read first? Is somewhere explained to integrate it in 
the ConTeXt (more that the widgets manual)?

Many thanks for any hint. I apologize one more for this slightly 
off-topic questions.
M.K.

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


Re: [NTG-context] Re: Metapost animation

2004-09-13 Thread Michal Kvasnicka
Good morning.
Thanks for your answers.
Well, I'm searching for automatic steps. (I know that manual steps are 
covered in the widgets manual.) And even for more funny stuff, like 
curves that appear `per partes', or curves thats slide from somewhere to 
their final location.

You need automatic steps? If not, take a look at 
http://dl.contextgarden.net/examples/euro-anim/euro-anim.pdf

 

As for your example, I don't understand it. It does work under Windoze 
with Acrobat 4.0 and Acrobat Reader 5.0, but not under Linux with 
Acrobat Reader 5.x. The same was true with Mr. Hagen's clock example. 
Why is it so? Can you send me your source? I'd like to compile it myself 
and see whether it would work, or not. Have you any explanation for that?

Well, my more questions I will rahter cover under another subject. :-)
Many thanks and greetings anyway.
M.K.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Metapost animation

2004-09-13 Thread Michal Kvasnicka
Good evening.
First of all I want to thank to Mr. Hagen for his last answer. I will 
check your last code of balanced columnsets at home (with the newest 
ConTeXt). As for your correcting code for ordinary collumns, I have 
tried it with three different types of my documents, and it worked well. 
Maybe this is the final solution of the problem. I will try it with more 
documents and let you know, anyway.

Now to my next question. I have seen a great thing: Metapost pictures 
were animated (probably with the JavaScript code). You can found some 
examples here:
   http://www.math.muni.cz/~plch/nkpm/nradanm6.pdf
   http://www.math.muni.cz/~plch/nkpm/nradanm8.pdf
(Just click on the `Spustit animaci' button.)

Is it possible to do it simply in the ConTeXt? Of course I may break 
down the mechanism of widgets and write my own JavaScript (I don't know 
how to do timing), but isn't there some special macro for animating 
series of figures? It would be great.

If so, is Acrobat Reader fast enough to simulate this way the nice 
feature of MS PowerPoint---curves and shapes that are drawn by pieces, 
or that appear somewhere and then go to its final location? (This is 
quite instructive in economics, because you can easily notice which 
curve is drawn first, what second, and so on.) How can I do it?

With many greetings and thanks
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] column balancing question

2004-09-09 Thread Michal Kvasnicka
Good evening.
Many thanks for your help. Your solution works well with the newest 
ConTeXt and one particular document I now typeset. I have to check it 
still with more documents. Do you want to gen a report from these tests?

If you want I can send you many examples, but not `minimal files', since 
I don't know when the problem occures. As I typeset our church bulletin, 
I've got that result pretty often---approximately on one third or one 
fourth of all pages.

I can't switch to columnset all my documents. Columnsets are absolutely 
great (one of the ConTeXt miracle---I thought it is not possible to do 
it in TeX because of its breaking routines), but up-to-now columnsets 
cannot be ballanced (or can they?), and my church bulletin is typset in 
such a way that each article can start anywhere on the page, and the 
columns must be ballanced before it. I can't explain it better because 
of my English, but its pages look like this:

   x   x
   x   x
   x   x
   x   x
   Title of article
   x   x
   x   x
Therefore I would lobby for the support of the old \startcolumns ... 
\stopcolumns environment. :-)

As for the Willi Egger's question, I don't use `fit' options very often. 
The problem I've mentioned in my last mail occures even when the `width' 
is set to some dimen and the `length' of page is set to some number of 
lines.

Many greetings and thanks again.
Your sincerely
Michal Kvasnicka
Hard to see without example. You may try this (i have this in my local 
expermental setup)
\def\getmulticolumnlines
 {\mcscratchdimen-\columntextoffset
  \multiply\mcscratchdimen \plustwo
  \advance\mcscratchdimen \columntextheight
  \ifdim\precolumnboxheight>\zeropoint
 \advance\mcscratchdimen -\precolumnboxheight
  \fi
  \settotalinsertionheight
  \advance\mcscratchdimen -\totalinsertionheight
  \getnoflines\mcscratchdimen
  % added 30/7/2004
  \ifnum\layoutlines>\zerocount \ifnum\noflines>\layoutlines
\noflines\layoutlines
  \fi \fi
  \nofcolumnlines\noflines}

Another option is to switch to column sets (see columns.pdf),
Hans
-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

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


[NTG-context] column balancing question

2004-09-08 Thread Michal Kvasnicka
Good morning.
One reason for me to switch to ConTeXt were its macros for typesetting 
in columns that are highly superior to any such macro I have ever seen. 
(I typeset almost all my documnts in two columns.) But I am not able to 
supress one strange feature: some pages are one more line longer than 
they should be. It happen randomly -- or at least I was not able to find 
out when it happens. Therefore I'm not able to prepare an minimal file. 
I thougth that setting
\widowpenalty=0
\clubpenalty=0
\brokenpenalty=0
\normalbottom
may help, but it does not.

Can you tell me how to fix this very problem? Well, it does so on all 
versions of ConTeXt I have ever tried and both with teTeX and TeXLive 
distribution.

Many thanks for your attention and help.
Yours
Michal Kvasnicka
P.S. my document setting is like this (some example can be found at 
http://www.econ.muni.cz/~qasar/tmp/delba_prace.pdf):

% output=pdf
\setupbodyfont[ss,10pt]
\setuplayout
[topspace=2cm, height=fit, lines=55,
backspace=15mm, width=fit,
margin=0pt,
header=3\baselineskip, footer=0pt,
grid=yes]
\setuppagenumbering[location=]
\setupheader[style={\em}]
\setupheadertexts[Axel Leijonhufvud: Jednotlivec, trh a prÅmyslovÃ
dÄlba prÃce][pagenumber]
\setupindenting[medium]
\indenting[first]
\setupfootnotes
[location=columns, rule=off,
before={\blank[3*line,small]}, after=]
\setupfootnotedefinition
[location=left,width=fit,
sample={\mathematics{\star\star\star}\ },hang=1]
\setupcolumns[balance=no]
\widowpenalty=0
\clubpenalty=0
\brokenpenalty=0
\setuphead[section]
[number=no, style={\bf},
before={\blank[3*line]}, after={\blank[line]},
indentnext=yes]
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Problem with TeXexec

2004-08-03 Thread Michal Kvasnicka
Many thanks. I will read it and try.
Many thanks once more to both of you for your prompt answer.
M.K.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Metapost variable problem

2004-08-03 Thread Michal Kvasnicka
Good afternoon.
I am sorry that I bother you with this offtopic but I don't know where 
else I can ask.

I want to prepare a better interface for my metapost macros. I want to 
use the record-like variables to store "object" information. But I don't 
know how to copy such records. More precisely, let's suppose I have

   string a.type; a.type:="ecicsqrt";
   string a.name; a.name:="indifference curve number 1";
   string a.A; a.A:="1";
   string a.B; a.B:="1";
   ...
And I want to copy it to a record b. But
   b:=a;
doesn't work (now b is equal to some unknown token a).
Is there some simple way to do it, or have I to copy it manually like this:
   string b.type; b.type:=a.type;
   ...
Many thanks for your help. With wishes of nice summer
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problem with TeXexec

2004-08-03 Thread Michal Kvasnicka
Good afternoon.
I have just installed a new Linux system (SuSE 9.1 with teTeX) and the 
new ConTeXt (texexec version 4.3) -- in the same way as older one. But 
it doesn't work. It writes a following error message:

   ...
   sh: line1: cont-en: command not found
   ...
   This is pdfetex...
   ...
   **
   ! End of file on the terminal ... why?
I do wrong? How can I correct it? I tried to link cont-en to pdfetex, 
but I've still got the second error message. Moreover, the system tried 
to make the format file.

Many thanks for your help.
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \title in the table of contents

2004-05-24 Thread Michal Kvasnicka
Bill McClain wrote:
On Fri, 21 May 2004 13:07:26 +
Michal Kvasnicka <[EMAIL PROTECTED]> wrote:
 

So, how can I have not-numbered chapters which don't increment the 
chapter number placed in the table of contents?
   

When I've had to do this I have used separate chapter lists. See the
section "Table of contents with different sections" in:
   http://home.salamander.com/~wmcclain/context-help.html
-Bill
 

Many thanks. This solves the problem. I would prefer a more general 
solution, but this is sufficient for the present time. I've also 
bookmarked  your page -- it's nice.

Many thanks to you once more.
M.K.

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


[NTG-context] \title in the table of contents

2004-05-21 Thread Michal Kvasnicka
Good evening.
I'm sorry to post one more rahter simple question, but I'm desperate 
because I can't solve it myself.

In my document I use numbered chapters (\chapter) and non-numbered 
chapters (\title). I want both to be in the table of content. How can I 
do it? I tried two solutions, but none worked.

First I tried:
   \definehead[title][chapter]
   \setuphead[title][number=no, command=\MyTitleCommand]
This puts the title to the table of content, but it increases the 
chapter number, so
   \title{Foreword}
   \title{Introduction}
   \chapter{First chapter}
makes that the First chapter has number 3.

Then I tried
   \definehead[title][chapter]
   \setuphead[title][number=no, incrementnumber=no, 
command=\MyTitleCommand]
which has the same effect as only
   \setuphead[title][number=no, command=\MyTitleCommand]
without the \definehead line -- titles are not placed into the table of 
contents.

So, how can I have not-numbered chapters which don't increment the 
chapter number placed in the table of contents?

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


Re: [NTG-context] The name of the current section?

2004-05-21 Thread Michal Kvasnicka
Dear Mikael.
Many thanks. Your solution
\setupheadertexts
   [{\headnumber[section]\quad\getmarking[section][current]}]
   []
   []
   [{Chapter \headnumber[chapter]:\quad\getmarking[chapter][current]}]
 

is precisely what I searched for. Many thanks once more.
With best regards
M.K.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] The name of the current section?

2004-05-20 Thread Michal Kvasnicka
Hi.
Many thanks for your kind answer.
\setuppagenumbering[alternative=doublesided,
   location={header,marginedge}]
\setupheadertexts
   [section][{\headnumber[section]}][chapter][{\headnumber[chapter]}]
Your code is rather nice (I have learned one nice trick from it), but it 
doesn't what I need. I want all the header stuff to go just separated by 
spaces, not on different sides of the header. Something like this
   
117_This_is_an_chapter_name_(chap._5)___
where "_" stands for a space.

Well, with your trick I could possibly to it with some \hfill, but it's 
a rather tricky solution. Moreover, I may need the name of a current 
chapter and section in the document itself. I guess there must be some 
system solution for such a case in the ConTeXt (I think there is almost 
everything in it.) :-)

Of course, as the last instance I can redefine \chapter and \section in 
a way like this
   \let\OriChapter=\chapter
   \def\chapter#1{\def\currentchaptername{#1}\chapter{#1}}
but I don't want to do it -- it is dirty and involves more programming 
to cover crossreferences.

Any more hint how to get the name of current chapter/section?
With best regards
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] The name of the current section?

2004-05-19 Thread Michal Kvasnicka
Good evening.
Is there some command simmilar to \headnumber[section] that would tell 
me the name of the current chapter/section/...?

I want to have the headertext on the left like this:
   [pagenumber] [chapter title] (chap. [chapter number])
and on the right side like this:
   [section title] (sec. [section number]) [pagenumber]
where [x] is value of x, e.g. [pagenumber] is the number of the current 
page.

How can I do it?
Many thanks
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] texexec and TEX

2004-04-20 Thread Michal Kvasnicka
Good evening.

Is there some restriction to Metapost macros when compiled by texexec 
--mptex? I'd like to compile a file like this:

% test
input TEX;
beginfig(1)
 z1=(0,1cm);
 z2=(3cm,1cm);
 dotlabel.top(btex $z_1$ etex,z1);
 dotlabel.top(btex $z_2$ etex,z2);
 draw TEX("$\underbrace{\hbox to 
"&decimal(xpart(z2)-xpart(z1))&"pt{\hss}}$") shifted z1;
endfig;

end.

But I've got a following error:
This is MetaPost, Version 0.641 (Web2C 7.3.1)
(TEXuse.mp (/usr/share/texmf/metapost/base/TEX.mp) (mptextmp.mp
>> mptextmp.mp
>> mptextmp.mpx
! Unable to make mpx file.
l.1 btex
$\underbrace{\hbox to 85.03935pt{\hss}}$ etex
Transcript written on TEXuse.log.
error in metapost run : TEXuse.mp:1
What's wrong? How can I improve it?

Many thanks for any hint.
M.K.
P.S. I use TeXExec 3.3 with Metapost Version 0.641 (Web2C 7.3.1) under 
Linux (teTeX).

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


[NTG-context] ex-files style

2004-02-06 Thread Michal Kvasnicka
Good morning.

I found on the Pragma web the `ex-files.pdf' file. I extremely like its 
look. Is somewhere a presentation style similar to it?
Many thanks.

Michal Kvasnicka

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


[NTG-context] m-bib, setupcite

2004-02-04 Thread Michal Kvasnicka
Good evening.

How can I make \cite[authoryear][SomeoneAndAnother1999] to produce
   Someone a Another (1999)
instead of
   Someone and Another (1999),
i.e. to change `and' to the Czech `a'?
I tried
   \setupcite[author,authoryear,authoryears][lastpubsep={ a }]
but nothing happened.
Many thanks for any hint.
Michal Kvasnicka


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


[NTG-context] Pagebreak in columns

2004-01-29 Thread Michal Kvasnicka
Good evening.

I typeset a document in two columns on a grid. Sometimes a page is one 
row longer than it should be. How can I make it not to do it? (I don't 
care for widows and things like that, I can correct them manually). I 
know this was disscussed before but I can find the text of the thread in 
any archive, just the link. Any hint?

Many thanks for any hint. Your sincerely
Michal Kvasnicka
I set it approximately like this (just major setting mentioned):

\setuplayout
   [topspace=1cm, height=19cm, lines=43,
   backspace=1cm, width=128mm,
   header=0pt, headerdistance=0pt,
   footer=2\baselineskip, footerdistance=0pt,
   grid=yes]
\setupcolumns
   [n=2, tolerance=tolerant, distance=1em]
\widowpenalty=0\relax
\clubpenalty=0\relax
\brokenpenalty=0\relax
\normalbottom
\starttext
\startcolumns
   ...
\stopcolumns
\stoptext
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Dithering (off-topic)

2003-11-04 Thread Michal Kvasnicka
Dear Sir,

many thanks for your kind help. This is precisely what I was searching for.

Bill McClain wrote:

  pnmscale -width=1950 pleiades.pnm | pnmsmooth -size 5 5 | pgmtopbm
-fs -value 0.5 | pnmtopng > pleiades.png
BTW, is there some easy way to set the size of the dithering points (eg. 
2x2 pixels, 3x3 pixels), or should I do it ex post in some image editor 
(Gimp, imagemagick)?

Many thanks once more.
M.K.


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


[NTG-context] Dithering (off-topic)

2003-10-31 Thread Michal Kvasnicka
Good evening.

I apologize to ask a little off-topic question, but I don't know where 
to ask (and it is closely related to TeX and PDF).

I typeset a church bulleting. It is printed on a laserjet printer (600 
dpi), and then copied on a copy machine. As for letters, all is right. 
But figures (photos) are this way spoiled. I guess it would help either 
to force PDF to print the figures in some very low resolution (150 dpi), 
or (probably better) to dither the figures and include them in PNG 
(instead of ordinary JPEG). Can some of you tell me how to do it? I 
tried ImageMagick's convert to dither the photos, but outcomes were 
really poor. Is there some good free software for this (in the best case 
in Linux)? Or can I do it some way in PDF?

Many thanks for any hint.
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Pagebreak after section followed itemize

2003-10-21 Thread Michal Kvasnicka
Patrick Gundlach wrote:

see

http://article.gmane.org/gmane.comp.tex.context/12640

Patrick
 

Ooops. I could find it myself, couldn't I? I'm sorry to bother you all. 
And many thanks for your answer. I wonder how the \testpage works.

Many thanks,
M.K.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Suppressing word-breaking in margin-texts?

2003-10-20 Thread Michal Kvasnicka
Good morning.

I'm sorry to ask such a stupid question, but: Is there some ConTeXt way 
to suppress word-breaking (hyphenating) text in margins (\inmargin)?

Many thanks,
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Pagebreak after section followed itemize

2003-10-20 Thread Michal Kvasnicka
Good morning.

How can I suppress the page break between section and itemize, i.e. in a 
following case:

\section{Summary}
\startitemize
\item bum
\item bac
\stopitemize
Many thanks for your help.
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Bookmark question -- solved, apologize

2003-10-06 Thread Michal Kvasnicka
Good evening.

I apologize for my last question. I solved as soon as I posted the 
question. I tried the primitive solution

{\catcode`\"=12
\placebookmarks[chapter,title,somestuff,section,subsection]
}
And it works!

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


[NTG-context] Bookmarks question

2003-10-06 Thread Michal Kvasnicka
Good evening.

I dare to ask one more question: For many years I use a dirty approach 
to typesetting quotes. I the document I simply type "words in quotes", 
and then I switch the quotes to be an active character with some macros. 
But this brings a lot of garbage to bookmarks. Now it even makes an 
error with the new version of ConTeXt (ver: 2003.8.21). Can I 
temporaryly switch quotes to category 12 (just for bookmark processing)? 
How?

With many thanks
Michal Kvasnicka
P.S. My code is like this:
\chardef\clqq=254  \sfcode254=0 \lccode254=0
\chardef\crqq=255  \sfcode255=0 \lccode255=0
\catcode`\"=\active
\def\firstquote{\clqq\let"=\secondquote}
\def\secondquote{\crqq{}\let"=\firstquote}
\let"=\firstquote
The error message is this:
! TeX capacity exceeded, sorry [input stack size=3000].
"->\clqq \let "
  =\secondquote
"->\clqq \let "
  =\secondquote
"->\clqq \let "
  =\secondquote
"->\clqq \let "
  =\secondquote
"->\clqq \let "
  =\secondquote
"->\clqq \let "
  =\secondquote
...
l.156 ...ional Banking"}{2::0:A:2:5:0:0:0::64}{66}


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


[NTG-context] Bug in interaction mechanism?

2003-10-06 Thread Michal Kvasnicka
Good morning.

I'm sorry I bother you all again with the same thing, but it seems to me 
unexplained. (Well, at least I think so. I have some problems with my 
mail some weeks. Anyway, I wasn't able to find any answer in 
ConTeXt-archives.)

The problem is this: It seems that I can't set both interaction-color 
and the interaction-text together. The following code:

   \definecolor[interactioncolor][r=0.25882, g=0.25098, b=0.56078]
   \setupinteraction[state=start, focus=standard, style=, 
color=interactioncolor]
   \setupcombinedlist[content][interaction=text]

brings strange error messages:

   ! Use of \@@lititleinteractie doesn't match its definition.
   \doifvalue ...f \!!stringa {\csname #1\endcsname }
 \edef \!!stringb 
{#2}\ifx ...

   \dosomelijstelement ... #1\c!interactie }\v!tekst
 {\setlistparameter 
{#1}\c!...

   \dodolijstelement ...ment {#1}{#2}{#3}{#4}{#5}{#6}
 \global \utilitydonetrue
   l.8 ...y{title}{3}{}{Úvod}{3::0:3:0:0:0:0:0::2}{4}
If I comment the \setupcombinedlist line, all works well. I use ConTeXt 
version ver: 2003.8.21, but the same bug (?) was even is some older 
versions.

With many greetings and thanks
Michal Kvasnicka
P.S. If the problem was already solve, please don't stone me (and send 
me the solutions). I really tried to find it in archives.

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


[NTG-context] \chapter with \vbox?

2003-09-30 Thread Michal Kvasnicka
Dear friends.

I want to typeset a document on a grid. Moreover I want to typeset each 
chapter heading on a separate page this way:

\blank[5*line]
... here is motto...
\vfil
... here is the chapter title and chapter number...
\blank[5*line]
I must include it in a \vbox. I tried \vbox to \textheight, but now the 
motto doesn't fit to a grid. How could I do it? Many thanks for your help.

Michal Kvasnicka

P.S. My chapter setting is like this:

\setuphead[chapter]
 [page=,
  style={\ss\bfe\setupinterlinespace[line=\NormalBaselineskip]},
  numberstyle={\ss\bff\setupinterlinespace[line=\NormalBaselineskip]},
  before={\page\setuplayout[footer=0pt]\page[right]},
  after={\page\setuplayout[footer=3\NormalBaselineskip]},
  command=\MyChapterCommand]
\def\MyChapterCommand#1#2{%
 \vbox to \textheight{%
   \setupinterlinespace[line=\NormalBaselineskip]%
   \blank[5*line,force]%
   \startnarrower[left,right]%
 \leavevmode{\rm\tf\em\the\mottotoks}\par
   \stopnarrower
   \vskip0pt plus 1filll
   \hbox to \textwidth{\hss\vbox{\hsize=0.8\textwidth
 \startframedtext
   [width=0.8\textwidth,align={left,broad}, offset=1.5ex,
background=color, backgroundcolor=black]
   {\setupinterlinespace[line=28pt]\white #2}%
 \stopframedtext}}
   \kern-\baselineskip
   \vbox to 0pt{%
 \vss
 \hbox to \hsize{%
   \hss\bff #1%
   {\setbox0=\hbox{#1}\ifdim\wd0=0pt\else
   \hbox to0pt{.\hss}\hskip0.8\textwidth\strut\hskip2.5mm\fi}%
 }
   }
   \blank[4*line,force]
 }
\global\mottotoks={}
}
If trying the code, you must either define \ss\bfe and \ss\bff fonts, or 
remove them.

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


[NTG-context] Interaction color in content

2003-09-15 Thread Michal Kvasnicka
Good morning.

First of all: Many thanks for you last hints -- it solved a lot of my 
problems. But one more is still present. I want that the ``text'' in the 
content list to be ``clickable'' (interactive) and of some color. But 
the color make a problem. Why something like this causes errors?

% output=pdf

\setupcolors[state=start]
\setupinteraction[state=start, color=interactioncolor]
\definecombinedlist[content]
 [section, subsection]
 [criterium=all, level=subsection]
\setuplist[section]
 [interaction=text]
\starttext
\placecontent
\section{First}
\input tufte
\section{Second}
\input tufte
\section{Third}
\input tufte
\stoptext
I got this very error message:
(./int1.tuo
! Use of \@@lisectioninteractie doesn't match its definition.
\doifvalue ...f \!!stringa {\csname #1\endcsname }
 \edef \!!stringb 
{#2}\ifx ...

\dosomelijstelement ... #1\c!interactie }\v!tekst
 {\setlistparameter 
{#1}\c!...

\dodolijstelement ...ment {#1}{#2}{#3}{#4}{#5}{#6}
 \global \utilitydonetrue
l.8 ...tion}{2}{2}{Second}{2::0:0:2:0:0:0:0::1}{1}
With many greetings
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Table with metapost framing and colors

2003-09-15 Thread Michal Kvasnicka
Wow.

If I knew this mechanism some time ago, I would same a lot of time. :-( 
It is great. Many thanks.

BTW, is it possile  to set a different rule-thickness for different part 
of the frame (e.g. leftframerulethikness=3pt etc.)? Is it possible to 
set this way also offset?

With many thanks
Michal Kvasnicka
however, i wonder if you really need all that mp code:

\defineframedcontent[SomeTable][offset=1pt,rulethickness=2pt]
\startframedcontent[SomeTable]
\setupTABLE[2][1][background=color,backgroundcolor=black,foregroundcolor=white] 

\bTABLE
\bTR\bTD Date \eTD\bTD  Index CPI \eTD\eTR
\bTR\bTD jan 1991 \eTD\bTD 59.4 \eTD\eTR
\bTR\bTD feb 1991 \eTD\bTD 63.1 \eTD\eTR
\bTR\bTD mar 1991 \eTD\bTD 65.7 \eTD\eTR
\bTR\bTD $\vdots$ \eTD\bTD $\vdots$ \eTD\eTR
\bTR\bTD dec 1995 \eTD\bTD 112.5 \eTD\eTR
\eTABLE
\stopframedcontent
(\defineframedcontent is just a kind of preset framed text)
-
  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




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


[NTG-context] Table with metapost framing and colors

2003-09-11 Thread Michal Kvasnicka
Dear Mr. Hagen.

I apologize that I bother you once more, but I really need your help 
(deadline for my document is quite soon). :-(

I have to follow a rather complex document design. According to it 
tables must be framed with two different lines: The outer frame must be 
thick and the inner thin. Moreover, a part of the header (the first row) 
must be black. I didn't know how to do it, so I used Metapost in a 
company with the overlay mechanism provided with the ConTeXt.  It works 
well, but:

1) When a cell has black background, it turns its frame from black to 
white. It's awfull. How can I switch this behavior off?
2) The frame of the first and last row doesn't fit precisely to frames 
of the rest rows. What's wrong? Are those cell of a different sizes? How 
can I improve it?

Many thanks for your kind help.
Your sincerely
Michal Kvasnicka
P.S. I include a minimal (but not a small, I apologize) example.



tableexample.tex
Description: TeX document


[NTG-context] Changes/bugs in the new Context

2003-09-11 Thread Michal Kvasnicka
Dear Mr. Hagen.

I'm sorry I bother you, but I really need a help. Some time ago I 
uploaded and installed the new version of ConTeXt (ConTeXt  ver: 
2003.8.21). After that I was not able to compile some of my documents 
due to changes (bug?) in the new version (the changes may be older). I'd 
like to ask how should I handle the following two cases in the new version.



1) Changes in colors

In some older version I could write things like this:

\setupheader[style={\ss\bfb\red}]
\setuphead[chapter]
 [textstyle={\ss\bfc\setupinterlinespace[line=24pt]\red}]
 \setupinteraction[state=start, style=\red]
where \red is a color.

Now it makes errors. How should I handle it now? In heads and headers I 
can use command option and \setupheadertexts respectively. But how sould 
I set the interactioncolor? (This is the real cause of the problem I 
have ask the last week -- by my mistake atributed to the content-lists.)

2) Chagnes (bug?) in references

Some time ago command \reference[...]{...} expanded the term in the 
second (curly?) braces before writing to auxiliary files. Now it 
doesn't. I use this command in my macros like this

\reference[#1]{\the\somenumber.\the\anothernumber}}

Now the commands \the\somenumber.\the\anothernumber are placed to 
.tui/.tuo files without expansion. I had to redefine it in the following 
way:

\global\let\OriReference=\reference
\gdef\reference[#1]#2{%
 \edef\MyRefO{#2}%
 \def\MyRef##1!!{%
   \OriReference[#1]{##1}%
 }
 \expandafter\MyRef\MyRefO!!%
}
Is it a bug or a feature? How should I use it? Doesn't my solution 
interfere with the genious ConTeXt macros?



Nonetheless I want to thank you very much for providing such a powerful 
macro package as ConTeXt is to all of us for free. The ConTeXt is really 
great. Thank you.

Thank you very much for your kind help.
Your sincerely
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] A change in ConTeXt content-lists?

2003-09-04 Thread Michal Kvasnicka
Good evening.

Some time ago I've typeset a rather complex document. Now I wanted to 
make some changes in its content (the text) but I wasn't able to compile 
it. The new version of ConTeXt/texutil/texexec ( ConTeXt  ver: 
2003.8.21, TeXExec 3.3) is probably slightly different. The first 
problem (\white in the textstyle of \setuphead) I have already fixed, 
but there is still one more problem. Can some of you help me?

My problem is in the content-list. The first processing of the documnet 
is all right. In the second run I get this error message:

(./dso_casove_rady.tuo
! Use of \@@lisectioninteractie doesn't match its definition.
\doifvalue ...f \!!stringa {\csname #1\endcsname }
 \edef \!!stringb 
{#2}\ifx ...

\dosomelijstelement ... #1\c!interactie }\v!tekst
 {\setlistparameter 
{#1}\c!...

\dodolijstelement ...ment {#1}{#2}{#3}{#4}{#5}{#6}
 \global \utilitydonetrue
l.42 ...zy časových řad}{2::0:1:2:0:0:0:0::11}{11}
I also get many warnings like this:

references : duplicate reference [][high] on page 1 (dso_casove_rady)

Can some of you hint me where the bug (in my macros, not in ConTeXt) can 
be? I'm totally lost.

Many thanks for your kind help.
Michal Kvasnicka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Index sorting

2003-08-26 Thread Michal Kvasnicka
Good morning.

I'm sorry that I bother you all once more with the same thing as a half 
year ago, but I was unsuccessful. So:

How works the mechanism that sort items for the index? I have to write 
down my own sorting system for the Czech language. (Mr. Hagen sent me 
some files for customizing the ConTeXt for the Czech language, but it 
didn't include index sorting.)

Well, I would appreciate some example, since the task is not so easy. In 
the Czech for example `a' and `acaron' go under the same item `A', but 
`acaron' is sorted after `a'. On the other hand, `ccaron' has its own 
item in the index (under the item for `c'). And to be even more complex, 
`ch' is one letter in the Czech, having its own item in the index.

Many thanks for any hint. (And one more apologize for bothering you once 
again.)
Michal Kvasnicka

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