[NTG-context] new options for \setupinteractionscreen

2008-04-19 Thread Vit Zyka
Dear ConTeXters,

for PDF document one can set /PageLayout. It is a mode in which reader 
shows us pages (Single, Continous, Facing, ...). in ConTeXt one can set

   \setupinteractionscreen[option=doublesided]

which set layout /TwoColumnRight (understand two facing continuous pages 
with odd pages on the right side). Since PDF 1.5 there is a possibility 
to set 3 more layouts:

   /TwoColumnLeft
   /TwoPageRight
   /TwoPageLeft

I poropose to incorporate next lines of code to sources to enable 
setting of these layouts

   % double=facing, column=continuous, right|left=where odd page
   \setupinteractionscreen[
 option=doublecolumnleft,
 option=doublepageright,
 option=doublepageleft,
 option=doublecolumnright, % for compatibility = doublesided
 option=doublecolumn,  % for simplicity = doublecolumnright
 option=doublepage,% for simplicity = doublepageright
   ]

These names are derrived from curren naming convention (doublesided) and 
PDF names. May be we can use more intuitive variants:
option=facingright,
option=facingleft,
option=facingcontinuousright,
option=facingcontinuousleft,

Sorry I know English and Czech interface only and for FDF driver. May be 
somebody add more.

Vit

Proposal:
-
% mult-con.tex
\startvariablesdutch english
germanczech
italian   romanian
french

 doublecolumnright: doublecolumnright doublecolumnright
doublecolumnright dvasloupcevpravo
doublecolumnright doublecolumnright
doublecolumnright
  doublecolumnleft: doublecolumnleft  doublecolumnleft
doublecolumnleft  dvasloupcevlevo
doublecolumnleft  doublecolumnleft
doublecolumnleft
  doublecolumn: doublecolumn  doublecolumn
doublecolumn  dvasloupce
doublecolumn  doublecolumn
doublecolumn
   doublepageright: doublepageright   doublepageright
doublepageright   dvestrankyvpravo
doublepageright   doublepageright
doublepageright
doublepageleft: doublepageleftdoublepageleft
doublepageleftdvestrankyvlevo
doublepageleftdoublepageleft
doublepageleft
doublepage: doublepagedoublepage
doublepagedvestranky
doublepagedoublepage
doublepage
\stopvariables

% core-int
   \setvalue{\??sc\c!option\v!doublecolumnright}{4} % compatibility
   \setvalue{\??sc\c!option\v!doublecolumnleft}{5}  % new
   \setvalue{\??sc\c!option\v!doublepageright}{6}   % new
   \setvalue{\??sc\c!option\v!doublepageleft}{7}% new
   \setvalue{\??sc\c!option\v!doublecolumn}{4}  % compatibility
   \setvalue{\??sc\c!option\v!doublepage}{6}% compatibility

% spec-fdf.tex
\def\doPDFsetupscreen#1#2#3#4#5#6% watch the extra argument
   {\bgroup
   \xdef\currentPDFpagemode
  {\ifnum#6=4
 /PageLayout /TwoColumnRight
   \else\ifnum#6=5
 /PageLayout /TwoColumnLeft
   \else\ifnum#6=6
 /PageLayout /TwoPageRight
   \else\ifnum#6=7
 /PageLayout /TwoPageLeft
   \else
 /PageMode \ifcase#6
 /UseNone\or/FullScreen\or/UseOutlines\else/UseNone\fi
   \fi\fi\fi\fi}%
\xdef\currentPDFviewerprefs % space after #6 needed, else \relax
  {\ifcase#6 \or\or\else /ViewerPreferences << /FitWindow true >>\fi}%
\egroup}


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

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] new options for \setupinteractionscreen

2008-04-20 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
>> Dear ConTeXters,
>>
>> for PDF document one can set /PageLayout. It is a mode in which reader 
>> shows us pages (Single, Continous, Facing, ...). in ConTeXt one can set
>>
>>\setupinteractionscreen[option=doublesided]
>>
>> which set layout /TwoColumnRight (understand two facing continuous 
>> pages with odd pages on the right side). Since PDF 1.5 there is a 
>> possibility to set 3 more layouts:
>>
>>/TwoColumnLeft
>>/TwoPageRight
>>/TwoPageLeft
>>
>> I poropose to incorporate next lines of code to sources to enable 
>> setting of these layouts
>>
>>% double=facing, column=continuous, right|left=where odd page
>>\setupinteractionscreen[
>>  option=doublecolumnleft,
>>  option=doublepageright,
>>  option=doublepageleft,
>>  option=doublecolumnright, % for compatibility = doublesided
>>  option=doublecolumn,  % for simplicity = doublecolumnright
>>  option=doublepage,% for simplicity = doublepageright
>>]
> 
> another option is (less new keywords)
> 
> option={doublesided,left,continue} % any order

Much cleverer! But in this case there is a backward incompatibility

   {doublesided,continue} = current {doublesided}
   {doublesided} = would mean NONcontinuous

Actually whenever I wanted to use facing layout, I wanted NONcontinuous. 
So I do not bother with this backward incompatibility. May be somebody 
else do?

Vit

>> These names are derrived from curren naming convention (doublesided) 
>> and PDF names. May be we can use more intuitive variants:
>> option=facingright,
>> option=facingleft,
>> option=facingcontinuousright,
>> option=facingcontinuousleft,
>>
>> Sorry I know English and Czech interface only and for FDF driver. May 
>> be somebody add more.
>>
>> Vit
>>
>> Proposal:
>> -
>> % mult-con.tex
>> \startvariablesdutch english
>> germanczech
>> italian   romanian
>> french
>>
>>  doublecolumnright: doublecolumnright doublecolumnright
>> doublecolumnright dvasloupcevpravo
>> doublecolumnright doublecolumnright
>> doublecolumnright
>>   doublecolumnleft: doublecolumnleft  doublecolumnleft
>> doublecolumnleft  dvasloupcevlevo
>> doublecolumnleft  doublecolumnleft
>> doublecolumnleft
>>   doublecolumn: doublecolumn  doublecolumn
>> doublecolumn  dvasloupce
>> doublecolumn  doublecolumn
>> doublecolumn
>>doublepageright: doublepageright   doublepageright
>> doublepageright   dvestrankyvpravo
>> doublepageright   doublepageright
>> doublepageright
>> doublepageleft: doublepageleftdoublepageleft
>> doublepageleftdvestrankyvlevo
>> doublepageleftdoublepageleft
>> doublepageleft
>> doublepage: doublepagedoublepage
>> doublepagedvestranky
>> doublepagedoublepage
>> doublepage
>> \stopvariables
>>
>> % core-int
>>\setvalue{\??sc\c!option\v!doublecolumnright}{4} % compatibility
>>\setvalue{\??sc\c!option\v!doublecolumnleft}{5}  % new
>>\setvalue{\??sc\c!option\v!doublepageright}{6}   % new
>>\setvalue{\??sc\c!option\v!doublepageleft}{7}% new
>>\setvalue{\??sc\c!option\v!doublecolumn}{4}  % compatibility
>>\setvalue{\??sc\c!option\v!doublepage}{6}% compatibility
>>
>> % spec-fdf.tex
>> \def\doPDFsetupscreen#1#2#3#4#5#6% watch the extra argument
>>{\bgroup
>>\xdef\currentPDFpagemode
>>   {\ifnum#6=4
>>  /PageLayout /TwoColumnRight
>>\else\ifnum#6=5
>>  /PageLayout /TwoColumnLeft
>>\else\ifnum#6=6
>&g

[NTG-context] fix of Kurier typefaces

2008-06-09 Thread Vit Zyka
Hi,

there is a miscorrespondence between names of Kurier fonts (in 
type-one.tex and type-syn.tex) - missing 'Regular' or '-'. I propose to 
fix type-syn.tex as follows.

Vit

---
\starttypescript [sans] [kurier-light] [name]
   \setups[font:fallback:sans]
   \definefontsynonym [Sans]   [Kurier-Light-Regular] %<-
   \definefontsynonym [SansItalic] [Kurier-Light-Italic] %<-
   \definefontsynonym [SansBold]   [Kurier-Medium-Regular] %<-
   \definefontsynonym [SansBoldItalic] [Kurier-Medium-Italic] %<-
\stoptypescript

\starttypescript [sans] [kurier] [name]
   \setups[font:fallback:sans]
   \definefontsynonym [Sans]   [Kurier-Regular]
   \definefontsynonym [SansItalic] [Kurier-Regular-Italic] %<-
   \definefontsynonym [SansBold]   [Kurier-Bold-Regular] %<-
   \definefontsynonym [SansBoldItalic] [Kurier-Bold-Italic] %<-
\stoptypescript

\starttypescript [sans] [kurier-medium] [name]
   \setups[font:fallback:sans]
   \definefontsynonym [Sans]   [Kurier-Medium-Regular] %<-
   \definefontsynonym [SansItalic] [Kurier-Medium-Italic] %<-
   \definefontsynonym [SansBold]   [Kurier-Heavy-Regular] %<-
   \definefontsynonym [SansBoldItalic] [Kurier-Heavy-Italic] %<-
\stoptypescript

\starttypescript [math] [kurier-light] [name]
   \definefontsynonym [MathRoman] [Kurier-Math-Letters-Light]
   \definefontsynonym [MathItalic][Kurier-Math-Letters-Light-Italic] %<-
   \definefontsynonym [MathSymbol][Kurier-Math-Symbols-Light]
   \definefontsynonym [MathExtension] [Kurier-Math-Extension-Light]
\stoptypescript

\starttypescript [math] [kurier] [name]
   \definefontsynonym [MathRoman] [Kurier-Math-Letters-Regular]
   \definefontsynonym [MathItalic] 
[Kurier-Math-Letters-Regular-Italic] %<-
   \definefontsynonym [MathSymbol][Kurier-Math-Symbols-Regular]
   \definefontsynonym [MathExtension] [Kurier-Math-Extension-Regular]
\stoptypescript

\starttypescript [math] [kurier-medium] [name]
   \definefontsynonym [MathRoman] [Kurier-Math-Letters-Medium]
   \definefontsynonym [MathItalic] 
[Kurier-Math-Letters-Medium-Italic] %<-
   \definefontsynonym [MathSymbol][Kurier-Math-Symbols-Medium]
   \definefontsynonym [MathExtension] [Kurier-Math-Extension-Medium]
\stoptypescript
--
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Problems with Natural Tables

2005-10-22 Thread Vit Zyka

Hans Hagen wrote:

Adam Duck wrote:


Eckhart Guthöhrlein <[EMAIL PROTECTED]> writes:

 


Am Sonntag, den 14.08.2005, 17:17 +0200 schrieb Adam Duck:

  


- how do I set the spacing between a vertical line (between two
 columns) and the text inside that columns?  I already used
 "framedoffest=-3pt", but the output is unacceptable.



Spacing is a weak point of natural tables. Afaik, there is no good way
to tune spacing. I would try using dummy colums like
\bTD[width=1em]\eTD.
  


OK, That sounds reasonable.  I'll try that.  On the other hand this
means many \bTD\eTD ... but one can write a macro for that,
I think.
 


a next release will support:
\input core-ntb-new.tex

\starttext

\showframe

\setupTABLE[c][1][distance=2em]
\setupTABLE[c][2][distance=3em]


I was looking for core-ntb-new.tex or 'distance' in current beta 
core-ntb.tex but have not been successful. Please, where I can find it?


Thanks
Vit


\bTABLE
\bTR \bTD test \eTD  \bTD test \eTD  \bTD test \eTD \eTR
\bTR \bTD[nx=2] test \eTD  \bTD test \eTD \eTR
\bTR \bTD test \eTD  \bTD[nx=2] test \eTD \eTR
\eTABLE


\bTABLE[option=stretch]
\bTR \bTD test \eTD  \bTD test \eTD  \bTD test \eTD \eTR
\bTR \bTD[nx=2] test \eTD  \bTD test \eTD \eTR
\bTR \bTD test \eTD  \bTD[nx=2] test \eTD \eTR
\eTABLE

\stoptext


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


[Fwd: Re: [NTG-context] Problems with Natural Tables]

2005-10-25 Thread Vit Zyka

Hello Hans,

(I guess you are the only person who can specify your previous answer),
so please, is the file 'core-ntb-new.tex' somewhere available?

Actually what I want. I have plenty of natural tables. If I want to make 
closer interline space between table lines the only way I know is to 
make smaller value of offset param. But after that, columns are too 
close together (framed object as a core of natural table does not 
distinguish between vertical and horizontal offsets). So bellow mentioned

  \setupTABLE[c][1][distance=2em]
would be nice solution.

So ones more, is the new code available?

Thank you in advance for the answer.
Vit

Hans Hagen wrote:

Adam Duck wrote:


Eckhart Guthöhrlein <[EMAIL PROTECTED]> writes:

 


Am Sonntag, den 14.08.2005, 17:17 +0200 schrieb Adam Duck:

  


- how do I set the spacing between a vertical line (between two
 columns) and the text inside that columns?  I already used
 "framedoffest=-3pt", but the output is unacceptable.



Spacing is a weak point of natural tables. Afaik, there is no good way
to tune spacing. I would try using dummy colums like
\bTD[width=1em]\eTD.
  


OK, That sounds reasonable.  I'll try that.  On the other hand this
means many \bTD\eTD ... but one can write a macro for that,
I think.
 


a next release will support:
\input core-ntb-new.tex

\starttext

\showframe

\setupTABLE[c][1][distance=2em]
\setupTABLE[c][2][distance=3em]


I was looking for core-ntb-new.tex or 'distance' in current beta
core-ntb.tex but have not been successful. Please, where I can find it?

Thanks
Vit


\bTABLE
\bTR \bTD test \eTD  \bTD test \eTD  \bTD test \eTD \eTR
\bTR \bTD[nx=2] test \eTD  \bTD test \eTD \eTR
\bTR \bTD test \eTD  \bTD[nx=2] test \eTD \eTR
\eTABLE


\bTABLE[option=stretch]
\bTR \bTD test \eTD  \bTD test \eTD  \bTD test \eTD \eTR
\bTR \bTD[nx=2] test \eTD  \bTD test \eTD \eTR
\bTR \bTD test \eTD  \bTD[nx=2] test \eTD \eTR
\eTABLE

\stoptext


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


Re: [NTG-context] interline space in setupparagraphs

2005-11-01 Thread Vit Zyka

Peter Rolf wrote:

Gerben Wierda wrote:


On 27 Oct 2005, at 18:59, Peter Rolf wrote:



Hi Gerben,

Gerben Wierda wrote:



I have:

\setupinterlinespace[medium]



\setupinterlinespace[line=\dimexpr1.25\bodyfontsize\relax]



That works. But why? And does this relate to the fact that textrule 
spacing as done normally is not used inside the paragraph (see other 
thread)?




I was also surprised, that a bold variant of the same size is handled
differently.
The interlinespace is calculated each time you change the body font (so
in your case at the start of the columns). Maybe bold adds some extra to
the line factor? Better ask the font wizzards...


By default, the interlinespace is set to 2.8ex. But ex unit may be 
dependent to the font variant (tf, bf, ...). So setting fix distance or 
distance based on \bodyfontsize solves the problem.


vit


And this works, because the \bodyfontsize is equal for both variants.
Using only the line-parameter is maybe not enough, so it's safer to
change it after calling \setupinterlinespace[medium].

Peter



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



--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] Problems with Natural Tables

2005-11-06 Thread Vit Zyka

Vit Zyka wrote:
> ...

so please, is the file 'core-ntb-new.tex' somewhere available?


Solution of my own question, for who is interesting.

Description:
The next patch enables to define intercolumn gaps in Natural Table 
(bTABLE...eTABLE) environment.


Features:
- one can distinguish the amounts of first (colsepfirst), inner 
(colsepbetween), and last (colseplast) gaps.

- patch operates for both 'fit' or 'stretch' table options.
- gaps has no 'background' you have to use external one.

Example:
http://typokvitek.com/tmp/nattab-colskip.pdf

Usage:
\bTABLE[colsepbetween=2cm,colsepfirst=.3cm,colseplast=.5cm]
  \bTR
\bTD A\eTD\bTD B\eTD\bTD C\eTD
  \eTR
\eTABLE

Enjoy it,
vit

Patch:
---
% suppressing spurious space from setupTABLE
\let\DosetupTABLE=\setupTABLE
\def\setupTABLE[#1][#2][#3]{\DosetupTABLE[#1][#2][#3]\ignorespaces}

% new bTABLE options : colsepbetween, colsepfirst, colseplast
\def\nexttblcol
  {\doglobal\increment\colTBL\hskip\tbltblcolsepbetween\hbox{}&} % VZ

\def\begintblrow
  {\noalign
 {\doglobal\increment\rowTBL
  \doglobal\newcounter\colTBL}%
   \nexttblcol
   \hskip\tbltblcolsepfirst\hskip-\tbltblcolsepbetween} % VZ

\unprotected\def\endtblrow
  {\hskip-\tbltblcolsepbetween\hskip\tbltblcolseplast\hbox{}% VZ
   \crcr
   \noalign
 {\nointerlineskip
  \allowbreak
  \bgroup % protect local vars
\@@tblsplitafter
  \egroup
  \bgroup % protect local vars
\increment\rowTBL\relax
\ifnum\rowTBL>\noftblhdnxlines\relax
  \ifnum\rowTBL<\maximumrow\relax

\doifsomething\tbltblspaceinbetween{\blank[\tbltblspaceinbetween]}%
  \fi
\fi
  \egroup}}

\unprotected\def\endTBL
  {\appendtoks
 \endtbl
   \to\tbltoks
   \setbox\scratchbox\hbox
 {\localframed
[\@@tbl\@@tbl]
[\c!frame=\v!off,\c!background=,\c!align=\v!no]
{\strut}}%
   \edef\minimalcellheight{\the\ht\scratchbox}%
   \dorecurse\maximumcol
 {\settblaut\recurselevel\!!zeropoint % \zeropoint etc
  % new
  \let\xcol\recurselevel
  \dorecurse\maximumrow
{\settblwd \recurselevel\xcol\!!zeropoint
 \settblht \recurselevel\xcol\!!zeropoint}%
  % till here
  \settblwid\recurselevel\!!zeropoint}%
   \dorecurse\maximumrow
 {\settblhei\recurselevel\maxdimen}%
   \chardef\TBLpass\plusone
   \let\handleTBLcell\dohandleTBLcellA
   \def\makeTBL##1##2%
 {\gettbltxt{##1}{##2}}%
   \def\inTBLcell##1##2%
 {\ExpandBothAfter\doifinsetelse\localwidth{\v!fit,\v!broad} % user set
{}
{\scratchdimen\gettblaut\colTBL\relax
 \ifdim\localwidth>\scratchdimen
   \settblaut\colTBL\localwidth
 \fi}}%
   \setbox0\vbox{\trialtypesettingtrue \the\tbltoks}%
   \ifautoTBLspread
 % experimental, stretch non fixed cells to \hsize
 \checktblwidthsone   % trial run
 \checktblwidthstwo   % real run
 \stretchtblwidths
 \let\handleTBLcell\dohandleTBLcellB
 \setbox\scratchbox\vbox{\trialtypesettingtrue \the\tbltoks}%
   \else\ifdim\wd0>\hsize
 \ifautoTBLhsize
   \checktblwidthsone % trial run
   \checktblwidthstwo % real run
   \let\handleTBLcell\dohandleTBLcellB
   \setbox\scratchbox\vbox{\trialtypesettingtrue \the\tbltoks}%
 \fi
   \else\ifautoTBLrowspan\ifnum\maximumrowspan>1 % max ?
 % added jan 2002 because nx=* did no longer work
 \checktblwidthsone % trial run
 \checktblwidthstwo % real run
 %
 \let\handleTBLcell\dohandleTBLcellC
 \setbox\scratchbox\vbox{\trialtypesettingtrue \the\tbltoks}%
   \fi\fi\fi\fi
   \let\handleTBLcell\dohandleTBLcellD
   \chardef\TBLpass\plustwo
   \def\makeTBL##1##2% meer in cellD
 {\dimen2\zeropoint
  \globalpushmacro\colTBL
  \dorecurse{\gettblcol{##1}{##2}}
{\advance\dimen2 \gettblwid\colTBL
 \advance\dimen2 \tbltblcolsepbetween % VZ
 \increment\colTBL}%
  \advance\dimen2 -\tbltblcolsepbetween % VZ
  \edef\widthTBL{\the\dimen2}%
  \globalpopmacro\colTBL
  \setbox\scratchbox\hbox{\gettbltxt{##1}{##2}}%
  \settblht{##1}{##2}{\the\ht\scratchbox}%
  \settblwd{##1}{##2}{\the\wd\scratchbox}%
  \ifdim\ht\scratchbox>\gettblhei{##1}\relax
\settblhei{##1}{\the\ht\scratchbox}%
  \fi}%
   \setbox\scratchbox\vbox{\trialtypesettingtrue \the\tbltoks}%
   \checktblheightsone
   \checktblheightstwo
   \let\handleTBLcell\dohandleTBLcellE
   \chardef\TBLpass\plusthree
   \def\makeTBL##1##2%
 {% height
  \globalpushmacro\rowTBL
  \scratchdimen\zeropoint
  \def\rowTBL{##1}%
  \ifnum\gettblcol{##1}{##2}=\maximumcol\relax
% case: nc=maxcolumns
  \else
\dorecurse{\gettblrow{##1}{##2}}
  {\advance\scratchdimen \gettblhei\rowTBL
   \increment\rowTBL}%
\ifdim\scratchdimen<\gettblht{##1}{##2}\relax
  \scratchdimen\gettblht{##1}{##2}

Re: [NTG-context] Bug / feature request tracking

2005-11-07 Thread Vit Zyka

Thomas A. Schmitz wrote:

Taco,

great to have your bug collector, and let's hope it'll be a bug  
squasher before long...


I had submitted a couple of bugs and feature requests for the index  
command that don't seem to be resolved and which didn't make it to  your 
list. I'd say they are fairly critical because they will really  mess up 
index generation:


1. index ranges inserted via \startregister[index] will gobble all  
other entries for the term;


2. \seeindex gives an error and will foul up the .tui file when  
processed with newtexexec;


3. again with newtexexec: capital letters at the beginning of terms  are 
disregarded for the index, thus Taco will be sorted under "a."


Yes, I agree.

4. and a feature request: it would be good to have some formatting  
options like LaTeX makeidx offers: \index{keyword|textit} will  produce 
a page-number in italics in the register. That would be  immensely 
useful to produce a structured index.


This is already present in the ConTeXt even in more general way then in 
the LaTeX is. More info in the manual.


vit


All best

Thomas

On Nov 7, 2005, at 6:50 PM, Taco Hoekwater wrote:


Hi all,

Some of you may be aware of the fact that there is a bug /
feature request tracker for ConTeXt. The URL is:

  http://context.literatesolutions.com/collector

I have to do a call-to-arms for the people that have made
feature requests and / or found bugs in the past few months,
especially if the extension /solution has not been included
in the latest distribution (2005.10.27).

Will you all please have a look at the current list, and see
if I have added your item(s) already?

I have a rather large archive of context-related email (because
I let it slip for a while), and  I fear that may have missed
some extant bugs. This is quite important, because if it is not
in the list, it is much less likely to get fixed.

Greetings,
Taco

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


Re: [NTG-context] Mini-survey: What do you do with ConTeXt?

2005-11-08 Thread Vit Zyka

Taco Hoekwater wrote:

Hi all,

For the next issue of the ntg's Maps journal, Hans and I believe
it would be nice to publish the collected responses to this simple
question:

  What do you do with ConTeXT?


- proceedings from individual PDFs,
- presentations,
- posters,
- logos, visiting cards,
- manual (HTML and PDF form from XML source),
- personal electronic travel-journal (http://typokvitek.com/nzs you can 
see evolution of my ConTeXt skills)
- booklet with very complex layout (sometimes seems to me over my 
ConTeXt skills) with two-column, margin, many, many floats, balancing, 
sorting, in Czech, ... I will write some experience with this -- if I 
will finnish it and survive two times postponned deadline...


As a 'clever plain' with METAPOST, layers, and overlayes the ConTeXt it 
is excelent! As a 'all-in-one key-val LaTeX' it is nice and uniform. And 
as a tool to solve 'so far TeX dreams' it is problematic: without 
deadlines it is a funny game, with them a pain.


In every point, thanks to authors for Him.

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


Re: [NTG-context] Problems with Natural Tables

2005-11-09 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Vit Zyka wrote:
> ...


so please, is the file 'core-ntb-new.tex' somewhere available?




i merged the 'core-ntb-new.tex' code into the main file


Solution of my own question, for who is interesting.

Description:
The next patch enables to define intercolumn gaps in Natural Table 
(bTABLE...eTABLE) environment.




I added your patches, but renamed the keys:


Thanks, renaming makes sence.
vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Index

2005-11-10 Thread Vit Zyka

Hans Hagen wrote:

Thomas A. Schmitz wrote:

... it's still missing a few features (I  don't think it can 
post-process pdf-files yet) and has a few buglets...




it should at least i remember writing some code -)


Here is an old example:

\defineregister[Name][Names]
\setupregister[Name][pagestyle=\it]
\setupregister[Name][bf][pagestyle=\bf]

\starttext
  Names:
  \Name[bf::]{Hans}
  \Name{Taco}
  \startregister[Name][bf::]{Patrick}

  \page[yes]
  \Name{Hans}
  \stopregister[Name][bf::]{Patrick}

  \page[yes]
  \Name{Patrick}
  \placeregister[Name]
\stoptext
--

Regrettably, I have now no time to install and check the new version of 
newtexexec.rb, so perhaps it is already done. Please, for quick check 
focus on 'Patrick' entry, it should have "1--2, 3" page numbers.


Or more complex example:

\defineregister[Name][Names]
\setupregister[Name]
\setupregister[Name][bf][pagestyle=\bf]

\starttext
  Names:
  \Name{Patrick}
  \Name[bf::]{Hans}
  \Name{Taco}
  \startregister[Name][bf::]{Patrick}

  \page[yes]
  \Name{Patrick}

  \page[yes]
  \Name{Hans}
  \stopregister[Name][bf::]{Patrick}

  \placeregister[Name]
\stoptext
--

Possible variants:
1) Patrick 1, 2, {\bf 1--3}
2) Patrick {\bf 1--3}, 1, 2
3) Patrick 1--2, {\bf 1--3}
4) Patrick {\bf 1--3}, 1--2

in case of variants 1 v. 2 and 3 v. 4 I am not sure how the categories 
'empty_string' and "bf" are sorted. But it does not matter since user 
can set any category name.


variants 3, 4 should be set if some register option (coupling?) is set on

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


[NTG-context] marking in columnset

2005-11-24 Thread Vit Zyka

Dear ConTeXters,

several kind of marking variants (first, last, both, ...) works 
perfectly in standard one-column layout:



\definemarking[M]

\startsetups S
  default=(\getmarking[M])~
  first=(\getmarking[M][first])~
  last=(\getmarking[M][last])~
  previous=(\getmarking[M][previous])~
  both=(\getmarking[M][both])~
  all=(\getmarking[M][all])~
  current=(\getmarking[M][current])
\stopsetups

\setupheadertexts[text]
  [\setups{S}][]
  [\setups{S}][]
\setuppagenumbering[location=footer]

\starttext

\startbuffer
  \section{Knuth}
  \marking[M]{k1}\marking[M]{k2}
  \input knuth
  \section{Zapf}
  \marking[M]{z}
  \input zapf
\stopbuffer

\dorecurse{10}{\getbuffer}

\stoptext
---

If I try the same example in columnset layout, only last variant works 
as expected:

---
\definemarking[M]

\startsetups S
  default=(\getmarking[M])~
  first=(\getmarking[M][first])~
  last=(\getmarking[M][last])~
  previous=(\getmarking[M][previous])~
  both=(\getmarking[M][both])~
  all=(\getmarking[M][all])~
  current=(\getmarking[M][current])
\stopsetups

\setupheadertexts[text]
  [\setups{S}][]
  [\setups{S}][]
\setuppagenumbering[location=none]

\definecolumnset[C][n=3]

\starttext

\startbuffer
  \section{Knuth}
  \marking[M]{k1}\marking[M]{k2}
  \input knuth
  \section{Zapf}
  \marking[M]{z}
  \input zapf
\stopbuffer

\startcolumnset[C]
\dorecurse{10}{\getbuffer}
\stopcolumnset

\stoptext
---

(Focus on page 1 and 4)

Is there any idea how to fix this?
Vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] marking in columnset

2005-11-24 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


(Focus on page 1 and 4)

Is there any idea how to fix this?



afaiks, what you get is the markings of the last column

so, it looks like i have to fix something

Hans


Yes, you are right. I check it on a real doc. And if no mark sign is in 
the last col, then marks from previous col(s) is taken.


It would be a great news if you succeed to fix it. I cross my fingers.
Vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] marking in columnset

2005-11-24 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


It would be a great news if you succeed to fix it. I cross my fingers.



well, it's actually relatively easy to make that (works on my machine 
now) but as always .. how to interface best -)


and ... of course it takes some time to find all points where 
synchronization has to take place


Hans


Understand. I appreciate if upgrading the whole context distro will not 
be needed. I am afraid of something works differently - and there is no 
time to fix it. So some patches/file exchanges are feasible?


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


Re: [NTG-context] marking in columnset

2005-11-24 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hans Hagen wrote:


Vit Zyka wrote:


It would be a great news if you succeed to fix it. I cross my fingers.





well, it's actually relatively easy to make that (works on my machine 
now) but as always .. how to interface best -)


and ... of course it takes some time to find all points where 
synchronization has to take place


Hans




Understand. I appreciate if upgrading the whole context distro will 
not be needed. I am afraid of something works differently - and there 
is no time to fix it. So some patches/file exchanges are feasible?



actually, the patch i sent you off-list is not that dangerous because

(1) it is written on top of the untouched low level mark handler
(2) it leaves the normal marks untouched


not at all: \getmarking[A][all] does not swallow [A]


so it will end up in the distribution if you find no flaws

as usual the problem is in documenting it (i.e. when adding new things 
for you others may complain that the manual is way behind -)


What does it mean   \global\mofcolumns\plusone
inside of setups in your test example? Is it really needed?

I put the info to tex-show (getmarking). I reminds me there are many 
items missing in the tex-show, the list is on the wiky - columnsets are 
among them.


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


Re: [NTG-context] marking in columnset

2005-11-24 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


It would be a great news if you succeed to fix it. I cross my fingers.



ok, you can uncross them; see separate mail

Hans


All right, I read this parallel message just now... Perhaps due to I was 
working with crossing fingers all the time ;-)

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


Re: [NTG-context] beginners manual

2005-11-27 Thread Vit Zyka

Hans Hagen wrote:

Hi,

I 'reorganized' (split) the beginners manual and put it in svn, so 
anyone who is willing to translate can check out a copy. I didn't yet 
change anything (only the file structure etc) and the styles need a 
cleanup (more modern setup). Because each chapter now has its own file, 
we can (as suggested on this list) edit piecewise. Don't start yet. 
First we need to add/remove things and rewrite chapters. But you can try 
to compile the file.


Hans


Hello,

I got unexpected positive responce to idea of beginners manual 
translation on Saturday's Czech/Slovak TUG meeting. The small working 
group of 5 people was establish there. Nobody but me has context 
experience now, but I think it is not a serious drawback for translating.


There was an interest (when the work will be finnished) to publish it in 
the Czechoslovac TeX Bulletin. I find only advantages for ConTeXt to do 
so, nevertheless I have to ask if such idea is welcomed.


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


[NTG-context] shading box many times

2005-11-28 Thread Vit Zyka

Dear Metafun Wizards,

I have noticed some strange behaviour with box shading. It works OK 
until some number of shadings. Please see example:

  http://typokvitek.com/tmp/shade-many.pdf
Any idea for solving? Next not-minimal but small and illustrative 
example can help.


Thanks in advance
Vit


\def\Log#1{%
def log(expr Xstart, Xstop)=
  begingroup
save x, y, D, w, P;
pair D;
path P;
w := #1; w := w/2;
D := unitvector(Xstop-Xstart) rotated 90;
z1 = Xstart shifted (w*D);
z2 = Xstop shifted (w*D);
z3 = Xstop shifted (-w*D);
z4 = Xstart shifted (-w*D);
P := z1--z2{z2-z1}..{z4-z3}z3--z4{z4-z3}..{z2-z1}cycle;
P
  endgroup
enddef;
}
\def\ObdobiFrame#1#2{%
def Rand(expr b) =
  (.5pt*(floor(uniformdeviate (2*b+1))-b))
enddef;

path P;
xBor := \overlaylinewidth;
yBor := #1;  yCor := 0pt;
x11 = x14 = 0;
x12 = x13 = \overlaywidth;
y11 = y31 = \overlayheight-yBor+yCor + Rand(2*#2);
y12 = y32 = \overlayheight-yBor+yCor + Rand(2*#2);
y13 = y33 = yBor + Rand(1*#2);
y14 = y34 = yBor + Rand(1*#2);
x21 = x31 = xBor + Rand(6*#2);
x24 = x34 = xBor + Rand(6*#2);
x22 = x32 = \overlaywidth-xBor + Rand(6*#2);
x23 = x33 = \overlaywidth-xBor + Rand(6*#2);
y21 = y22 = \overlayheight+yCor;
y23 = y24 = 0;
fill (z31--z32--z33--z34--cycle) withcolor \MPcolor{\overlaycolor};
P:= log(z11,z12); linear_shade(P,8,(1,1,1),(0,0,0)); draw P;
P:= log(z13,z14); linear_shade(P,8,(1,1,1),(0,0,0)); draw P;
P:= log(z21,z24); linear_shade(P,5,(1,1,1),(0,0,0)); draw P;
P:= log(z22,z23); linear_shade(P,5,(1,1,1),(0,0,0)); draw P;
}

\startuseMPgraphic{F}
  \Log{2.5pt}%
  \ObdobiFrame{3pt}{1}%
\stopuseMPgraphic

\defineoverlay[F][\uniqueMPgraphic{F}]
\defineframed[F]
  [offset=2mm,rulethickness=.5mm,align={middle,lohi},strut=yes,
   backgroundcolor=gray,background=F,frame=off,
  ]

\starttext
  \noindent\dorecurse{256}{\F{\recurselevel} }
\stoptext

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


Re: [NTG-context] beginners manual

2005-11-28 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:

I got unexpected positive responce to idea of beginners manual 
translation on Saturday's Czech/Slovak TUG meeting. The small working 
group of 5 people was establish there. Nobody but me has context 
experience now, but I think it is not a serious drawback for translating.


i don't know if david antos was present, but he knows his way around 
context and can be of help (given that he has time)


He was not. Anybody's help will be welcomed, especially David...

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


Re: [NTG-context] shading box many times

2005-11-28 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Dear Metafun Wizards,

I have noticed some strange behaviour with box shading. It works OK 
until some number of shadings. Please see example:

  http://typokvitek.com/tmp/shade-many.pdf
Any idea for solving? Next not-minimal but small and illustrative 
example can help.



works ok here; since it concerns independent mp runs, i cannot imagine 
what goes wrong; mayeb a bad random numer; does your log say something?


Hans


Hmmm strange, the second similar result in last two days: wrong result 
also on wiki.


My log says (whole log is attached)
systems : randomizer starts with 981406338

Vit
This is pdfeTeXk, Version 3.141592-1.21b-2.2 (Web2C 7.5.4) (format=cont-en 
2005.11.24)  28 NOV 2005 13:56
entering extended mode
\write18 enabled.
 %&-line parsing enabled.
 (c:/TeXLive/texmf-experim2/web2c/natural.tcx)
**&cont-en shade-many.tex
(./shade-many.tex

ConTeXt  ver: 2005.09.08  fmt: 2005.11.24  int: english  mes: english

language: language en is active

system  : cont-new loaded
(c:/TeXLive/texmf-experim2/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
color   : palette rollover is available
)
system  : cont-old loaded
(c:/TeXLive/texmf-experim2/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(c:/TeXLive/texmf-experim2/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys loaded
(c:/TeXLive/texmf-experim2/tex/context/user/cont-sys.tex
(c:/TeXLive/texmf-experim2/tex/context/base/type-exa.tex)
(c:/TeXLive/texmf-experim2/tex/context/base/type-syn.tex)
(c:/TeXLive/texmf-experim2/tex/context/base/type-enc.tex)
(c:/TeXLive/texmf-experim2/tex/context/base/type-dis.tex)
(c:/TeXLive/texmf-experim2/tex/context/base/type-siz.tex)
(c:/TeXLive/texmf-experim2/tex/context/base/type-map.tex)
(c:/TeXLive/texmf-experim2/tex/context/base/type-spe.tex)
(c:/TeXLive/texmf-experim2/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en->ec:ec->1->2:2 uk->ec:ec->2->2:2 de->texnansi:tex
nansi->3->2:2 de->ec:ec->4->2:2 fr->texnansi:texnansi->5->2:2 fr->ec:ec->6->2:2
 es->ec:ec->7->2:2 pt->texnansi:texnansi->8->2:2 pt->ec:ec->9->2:2 it->texnansi
:texnansi->10->2:2 it->ec:ec->11->2:2 nl->texnansi:texnansi->12->2:2 nl->ec:ec-
>13->2:2 cz->il2:il2->14->2:2 cz->ec:ec->15->2:2 sk->il2:il2->16->2:2 sk->ec:ec
->17->2:2 pl->pl0:pl0->18->2:2 pl->ec:ec->19->2:2 pl->qx:qx->20->2:2 loaded
specials: tex,postscript,rokicki loaded
\openout2 = `shade-many.tui'.

system  : shade-many.top loaded
(./shade-many.top
specials: loading definition file tpd
(c:/TeXLive/texmf-experim2/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(c:/TeXLive/texmf-experim2/tex/context/base/spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
\openout0 = `shade-many-mpgraph.mp'.

\openout0 = `mpgraph.mp'.

 (./shade-many.tuo) (./shade-many.tuo) (./shade-many.tuo) (./shade-many.tuo)
(./shade-many.tuo) (./shade-many.tuo) (./shade-many.tuo) (./shade-many.tuo)
(./shade-many.tuo) (./shade-many.tuo) (./shade-many.tuo) (./shade-many.tuo)
(./shade-many.tuo)
systems : begin file shade-many at line 56
\openout5 = `shade-many-mpgraph.mp'.

systems : randomizer starts with 981406338
[MP to PDF] (./shade-many-mpgraph.4000) [MP to PDF] (./shade-many-mpgraph.3999)
[MP to PDF] (./shade-many-mpgraph.3998) [MP to PDF] (./shade-many-mpgraph.3997)
[MP to PDF] (./shade-many-mpgraph.3996) [MP to PDF] (./shade-many-mpgraph.3995)
[MP to PDF] (./shade-many-mpgraph.3994) [MP to PDF] (./shade-many-mpgraph.3993)
[MP to PDF] (./shade-many-mpgraph.3992) [MP to PDF] (./shade-many-mpgraph.3991)
[MP to PDF] (./shade-many-mpgraph.3990) [MP to PDF] (./shade-many-mpgraph.3989)
[MP to PDF] (./shade-many-mpgraph.3988) [MP to PDF] (./shade-many-mpgraph.3987)
[MP to PDF] (./shade-many-mpgraph.3986) [MP to PDF] (./shade-many-mpgraph.3985)
[MP to PDF] (./shade-many-mpgraph.3984) [MP to PDF] (./shade-many-mpgraph.3983)
[MP to PDF] (./shade-many-mpgraph.3982) [MP to PDF] (./shade-many-mpgraph.3981)
[MP to PDF] (./shade-many-mpgraph.3980) [MP to PDF] (./shade-many-mpgraph.3979)
[MP to PDF] (./shade-many-mpgraph.3978) [MP to PDF] (./shade-many-mpgraph.3977)
[MP to PDF] (./shade-many-mpgraph.3976) [MP to PDF] (./shade-many-mpgraph.3975)
[MP to PDF] (./shade-many-mpgraph.3974) [MP to PDF] (./shade-many-mpgraph.3973)
[MP to PDF] (./shade-many-mpgraph.3972) [MP to PDF] (./shade-many-mpgraph.3971)
[MP to PDF] (./shade-many-mpgraph.3970) [MP to PDF] (./shade-many-mpgraph.3969)
[MP to PDF] (./shade-many-mpgraph.3968) [MP to PDF] (./shade-many-mpgraph.3967)
[M

Re: [NTG-context] shading box many times

2005-11-28 Thread Vit Zyka

Taco Hoekwater wrote:

Hans Hagen wrote:


Vit Zyka wrote:


Dear Metafun Wizards,

I have noticed some strange behaviour with box shading. It works OK 
until some number of shadings. Please see example:

  http://typokvitek.com/tmp/shade-many.pdf
Any idea for solving? Next not-minimal but small and illustrative 
example can help.



works ok here; since it concerns independent mp runs, i cannot imagine 
what goes wrong; mayeb a bad random numer; does your log say something?



My results are the same as Vit's example: The last 9 items are
not shaded but have 3 black sides and 1 white one
(with \write18 disabled, using a single \jobname-mpgraph.mp)

I don't know what is going, but at least I can reproduce the problem.
I'm attaching an example wrong image.

Taco


A minimal version is here. It shows the randomization is not the reason. 
Shade disappears at 989th shade.


===
\startuseMPgraphic{F}
  def log(expr Xstart, Xstop)=
  begingroup
save x, y, D, w, P;
pair D;
path P;
w := 2.5pt; w := w/2;
D := unitvector(Xstop-Xstart) rotated 90;
z1 = Xstart shifted (w*D);
z2 = Xstop shifted (w*D);
z3 = Xstop shifted (-w*D);
z4 = Xstart shifted (-w*D);
P := z1--z2{z2-z1}..{z4-z3}z3--z4{z4-z3}..{z2-z1}cycle;
P
  endgroup
  enddef;

  path P;
  x11 = 0;
  x12 = \overlaywidth;
  y11 = y12 = \overlayheight;
  P:= log(z11,z12); linear_shade(P,8,(1,1,1),(0,0,0)); draw P;
\stopuseMPgraphic

\defineoverlay[F][\uniqueMPgraphic{F}]
\defineframed[F][offset=2mm,strut=yes,background=F,frame=off]

\starttext
  \noindent\dorecurse{1000}{\F{\recurselevel} }
\stoptext

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


Re: [NTG-context] shading box many times

2005-11-28 Thread Vit Zyka

Hans Hagen wrote:

Taco Hoekwater wrote:


Hans Hagen wrote:


Vit Zyka wrote:


Dear Metafun Wizards,

I have noticed some strange behaviour with box shading. It works OK 
until some number of shadings. Please see example:

  http://typokvitek.com/tmp/shade-many.pdf
Any idea for solving? Next not-minimal but small and illustrative 
example can help.




works ok here; since it concerns independent mp runs, i cannot 
imagine what goes wrong; mayeb a bad random numer; does your log say 
something?




My results are the same as Vit's example: The last 9 items are
not shaded but have 3 black sides and 1 white one
(with \write18 disabled, using a single \jobname-mpgraph.mp)

I don't know what is going, but at least I can reproduce the problem.




it's related to the fact that there can be 1000 specials only (this 
/1000 in mp-spec)


if you add:

\def\MPrgbnumber#1{\expandafter\doMPrgbnumber#1.0\relax}
\def\doMPrgbnumber#1.#2#3#4#5#6\relax{#2#3#4#5}

\startMPinclusions
_special_div_ := 1 ;
\stopMPinclusions

to the file, and change all 1000's in mp-spec.tex into _special_div_ it 
works ok; so, the question (for taco is): does mp have the right 


Really? Hmmm, not for me. I have got the graphics with flat color per 
picture; every picture in the sequence has lighter and lighter color 
(starting from black). (After performing your instructions in the 
mp-spec.mp and refreshing metafun.mem.)


--
\def\MPrgbnumber#1{\expandafter\doMPrgbnumber#1.0\relax}
\def\doMPrgbnumber#1.#2#3#4#5#6\relax{#2#3#4#5}

\startMPinclusions
  _special_div_ := 1 ;
\stopMPinclusions

\startuseMPgraphic{F}
  def log(expr Xstart, Xstop)=
  begingroup
save x, y, D, w, P;
pair D;
path P;
w := 2.5pt; w := w/2;
D := unitvector(Xstop-Xstart) rotated 90;
z1 = Xstart shifted (w*D);
z2 = Xstop shifted (w*D);
z3 = Xstop shifted (-w*D);
z4 = Xstart shifted (-w*D);
P := z1--z2{z2-z1}..{z4-z3}z3--z4{z4-z3}..{z2-z1}cycle;
P
  endgroup
  enddef;

  path P;
  x11 = 0;
  x12 = \overlaywidth;
  y11 = y12 = \overlayheight;
  P:= log(z11,z12); linear_shade(P,8,(1,1,1),(0,0,0)); draw P;
\stopuseMPgraphic

\defineoverlay[F][\uniqueMPgraphic{F}]
\defineframed[F][offset=2mm,strut=yes,background=F,frame=off]

\starttext
  \noindent\dorecurse{1000}{\F{\recurselevel} }
\stoptext
--


precission (it looks ok to me, unless we need to start calculating with it)

so, it may be a dangerous patch. I'll adapt spec-mp to  this new 
constant but for the moment keep the 1 in my cont-loc file


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



--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] shading box many times

2005-11-29 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hans Hagen wrote:


Taco Hoekwater wrote:


Hans Hagen wrote:


Vit Zyka wrote:


Dear Metafun Wizards,

I have noticed some strange behaviour with box shading. It works 
OK until some number of shadings. Please see example:

  http://typokvitek.com/tmp/shade-many.pdf
Any idea for solving? Next not-minimal but small and illustrative 
example can help.


works ok here; since it concerns independent mp runs, i cannot 
imagine what goes wrong; mayeb a bad random numer; does your log 
say something?


My results are the same as Vit's example: The last 9 items are
not shaded but have 3 black sides and 1 white one
(with \write18 disabled, using a single \jobname-mpgraph.mp)

I don't know what is going, but at least I can reproduce the problem.


it's related to the fact that there can be 1000 specials only (this 
/1000 in mp-spec)


if you add:

\def\MPrgbnumber#1{\expandafter\doMPrgbnumber#1.0\relax}
\def\doMPrgbnumber#1.#2#3#4#5#6\relax{#2#3#4#5}

\startMPinclusions
_special_div_ := 1 ;
\stopMPinclusions

to the file, and change all 1000's in mp-spec.tex into _special_div_ 
it works ok; so, the question (for taco is): does mp have the right 




Really? Hmmm, not for me. I have got the graphics with flat color per 
picture; every picture in the sequence has lighter and lighter color 
(starting from black). (After performing your instructions in the 
mp-spec.mp and refreshing metafun.mem.)



can you try the experimental zip i posted yesterday (.../temp/cont-tmf.zip)
forget about the definitions, just set \settrue \manyMPspecials in your 
file


should work

>
> Hans

yes, it works!

Now it works even on my old distrib also. Seems the crutial line was
inside this vardef:

vardef add_special_signal = % write the version number
  if (length _global_specials_ <> 0) or (length _local_specials_ <> 0) :
special ("%%MetaPostSpecials: 2.0 " & decimal _special_signal_ & " 
" & decimal _special_div_) ;

  fi ;
enddef ;

Again many thanks, Hans
Vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Context 2005.11.30 Released (bis)

2005-12-02 Thread Vit Zyka

Taco Hoekwater wrote:

New features since 2005.11.24:

>

* Extension for the use of marks in column sets using a new,
  three-argument, call to \getmarking :

   \getmarking[subsection][first][1] % column 1
   \getmarking[subsection][first][3] % column 3


If Hans did not change a syntax after testing version for me, the 
correct syntax is


\getmarking[subsection][1][first] % column 1
\getmarking[subsection][3][first] % column 3

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


[NTG-context] columnset & layers

2005-12-05 Thread Vit Zyka

Hello,

there is some collision between columnset and layer. See following example:

-
\newdimen\tgrX \newdimen\tgrY
\tgrX=3cm  \tgrY=2cm

\starttext
\startcolumnset
  \definelayer[tgr-cow][position=no,corner=top]
  \setlayer[tgr-cow][x=.0\tgrX,y=.0\tgrY,location=middle]{O}%
  \framed
[width=fit,height=fit,offset=none,
 background={foreground,tgr-cow},frame=off]
{\externalfigure[cow][width=\tgrX,height=\tgrY]}%
\stopcolumnset
\stoptext
---

I got the error:

! Bad character code (361).
 \@@layerboxtgr-cow

I am a bit puzzled by strange error message. If the columnset is 
commented, the code is proceeded as expected.


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


Re: [NTG-context] columnset & layers

2005-12-06 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hello,

there is some collision between columnset and layer. See following 
example:


-
\newdimen\tgrX \newdimen\tgrY
\tgrX=3cm  \tgrY=2cm

\starttext
\startcolumnset
  \definelayer[tgr-cow][position=no,corner=top]
  \setlayer[tgr-cow][x=.0\tgrX,y=.0\tgrY,location=middle]{O}%
  \framed
[width=fit,height=fit,offset=none,
 background={foreground,tgr-cow},frame=off]
{\externalfigure[cow][width=\tgrX,height=\tgrY]}%
\stopcolumnset
\stoptext
---

I got the error:

! Bad character code (361).
 \@@layerboxtgr-cow

I am a bit puzzled by strange error message. If the columnset is 
commented, the code is proceeded as expected.



define the layer outside the columnset; it's probably a grouping problem

Hans


OK, it works and is sufficient for me since I know a number of needed 
layers.


But generally it is not a clean solution. Can be solved counting number 
of layers in one pass and defining in the second, but... Hans, do you 
think is the grouping problem doable? If yes I will put the note to the 
collector.


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


[NTG-context] float over both text and margin

2005-12-08 Thread Vit Zyka

Hi.

1) I am unsuccessfully solving the problem of making float spanning both 
text and margin. More over, it is inside columnset... Example follows. 
Is there some solution?

-
\showframe
\setupcolors[state=start]
\setuplayout[margin=0pt,rightmargin=1.5cm,width=middle]

\starttext
\startcolumnset
  \dorecurse{2}{\input knuth \endgraf\blank}
  \placefloat[page]{none}
{\framed
 [width=\dimexpr\makeupwidth+\rightmarginwidth+
\rightmargindistance\relax,
  height=\textheight]
 {Here I would like to be a float over both text and margin. How?}
}
  \dorecurse{10}{\input knuth \endgraf\blank}
\stopcolumnset

\stoptext
-

2) As a side effect I discover that in the following example the float 
is over the text (so some text is disappeared).

-
\showframe
\setupcolors[state=start]
\setuplayout[margin=0pt,rightmargin=1.5cm,width=middle]

\starttext
\startcolumnset
  \dorecurse{2}{\input knuth \endgraf}
  \placefloat[page]{none}
{\framed
   [width=\makeupwidth,height=\textheight,background=screen]
   {Here I would like to be a float over both text and margin. How?}
}
  \dorecurse{10}{\input knuth \endgraf}
\stopcolumnset

\stoptext
---

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


Re: [NTG-context] bold \tt and pdf-output

2005-12-12 Thread Vit Zyka

Taco Hoekwater wrote:

Peter Münster wrote:


And there are a lot more.
If someone does not want bold tt in lm, then there could be a switch like
"\nobftt".

Nevertheless: thanks for your suggestions, they work very well!

Cheers, Peter

P.S.: Any comments about bold small caps?



Latin Modern doesn't have a bold small caps (yet?), I think.


If you really need it, generate pseudo small caps
http://wiki.contextgarden.net/Pseudo_Small_Caps

Vit

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


Re: [NTG-context] float over both text and margin

2005-12-12 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hi.

1) I am unsuccessfully solving the problem of making float spanning 
both text and margin. More over, it is inside columnset... Example 
follows. Is there some solution?


2) As a side effect I discover that in the following example the float 
is over the text (so some text is disappeared).


don't use \placefloat.

\definefloat
 [pagefigure]
 [figure]
\setupfloat
 [pagefigure]
 [default={page,none},
  location=inner]


OK, I thought \placefloat[page] is defined like this, but now I see this 
is more flexible.


Thank you for your patch it behaves better but still the float is over 
the text, see page 2 in the example. I also do not see the influence of 
location argument.


Vit

-
\showframe
\setupcolors[state=start]
\setuplayout[margin=0pt,rightmargin=1.5cm,width=13cm]
\setuppagenumbering[alternative=doublesided]

\definefloat
 [pagefigure]
 [figure]
\setupfloat
 [pagefigure]
 [default={page,none},
  location=outer]

\unprotect
\def\dogetfloat{
  \ifsomefloatwaiting
\global\setbox\floatlist\vbox{%
   \unvbox\floatlist
   \global\setbox\globalscratchbox\lastbox
}%
\ifcenterfloatbox
  \ifdim\wd\globalscratchbox<\hsize
\setbox\floatbox\hbox to \hsize{\hss\box\globalscratchbox\hss}%
  \else
\setbox\floatbox\box\globalscratchbox % local !
\wd\floatbox\makeupwidth
  \fi
\else
  \setbox\floatbox\box\globalscratchbox % local !
\fi
\global\advance\savednoffloats \minusone
\ifcase\savednoffloats
  \global\somefloatwaitingfalse
\fi
  \else
\global\savednoffloats\zerocount
[EMAIL PROTECTED]
  \fi}
\protect

\starttext
\startcolumnset
  \dorecurse{2}{\input knuth \endgraf\blank}
  \placepagefigure{none}
{\framed

[width=\dimexpr\makeupwidth+\rightmarginwidth+\rightmargindistance\relax,height=\textheight]
   {Here I would like to be a float over both text and margin. How?}
}
  \dorecurse{10}{\input knuth \endgraf\blank}
\stopcolumnset

\stoptext
-



 \dorecurse{3}{\input knuth \endgraf\blank}
 \placepagefigure
 {}
{...}

etc

maybe the next helps, but i hesitate to include this patch too fast

def\dogetfloat
 {\ifsomefloatwaiting
\global\setbox\floatlist\vbox
  {\unvbox\floatlist
   \global\setbox\globalscratchbox\lastbox}%
\ifcenterfloatbox
  \ifdim\wd\globalscratchbox<\hsize
\setbox\floatbox\hbox to \hsize{\hss\box\globalscratchbox\hss}%
  \else
\setbox\floatbox\box\globalscratchbox % local !
\wd\floatbox\makeupwidth
  \fi
\else
  \setbox\floatbox\box\globalscratchbox % local !
\fi
\global\advance\savednoffloats \minusone
\ifcase\savednoffloats
  \global\somefloatwaitingfalse
\fi
  \else
\global\savednoffloats\zerocount
[EMAIL PROTECTED]
  \fi}

Hans
___
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] problems with bold small caps

2005-12-13 Thread Vit Zyka

Hans Hagen wrote:

Taco Hoekwater wrote:


Peter M�nster wrote:


On Mon, 12 Dec 2005, Taco Hoekwater wrote:

\starttext
{\sc Normal and \bf bold Small-Caps. Accents: �}
\stoptext


Hi Peter,


And here are my problems:

1.) I get bold sc font, but the normal \sc is now the normal font.




\sc and \bf are defined at the same level in ConTeXt, so they (normally)
exclude each other. My guess is that it is very unlikely that this will
be fixed, but I assume it would be possible to do something using the
\variants mechanism (note: I am not sure and would not know how)



thi sis an option indeed;


This is implemented at http://wiki.contextgarden.net/Pseudo_Small_Caps
(links to files on typokvitek.com has to be retyped, sorry)

Vit

the other method is just to define an 
additional typeface


\definetypeface[mainface].
\definetypeface[smallface].
\definetypeface[osface].

andthen do things like \smallface\bf

typeface switching is rather efficient

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



--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] Some localizations

2005-12-13 Thread Vit Zyka

Hans Hagen wrote:

Richard Gabriel wrote:


Hello Hans,

quite incidentally I've found out that some of the localization files 
(lang-*.tex) are incomplete.
I've filled in missing phrases in lang-ger.tex and lang-sla.tex for 
the languages I speak, i.e. English, German, Czech and Slovak.


Hmmm. What about to suggest the changes first here in the list? I did 
not catch the original email. It is not in the archive too. So me and 
other users of these languages can not discuss the changes...


Vit

Please look at the attached files and if you consider them OK (they 
really should be! :-) ),  please add them to the distribution.



ok, patched (i made the section related labels comments since we default 
no nothing)


btw, your lang-ger had no patch (apart from some AA change)

Hans

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


Re: [NTG-context] Some localizations

2005-12-14 Thread Vit Zyka

Thank you both Gabriel and Hans,

it was my double faut. First I did not find the original message and 
when I find it I sent my appology only to myself... Perhaps due to very 
late time. There is a minor typo in the file, please see following message.


Sorry,
Vit

Vit Zyka wrote (2005-12-14 1:11 a.m.):
> Hans Hagen wrote:
>
>> Richard Gabriel wrote:
>>
>>> Hello Hans,
>>>
>>> quite incidentally I've found out that some of the localization 
files (lang-*.tex) are incomplete.
>>> I've filled in missing phrases in lang-ger.tex and lang-sla.tex for 
the languages I speak, i.e. English, German, Czech and Slovak.

>
>
>
> Hmmm. What about to suggest the changes first here in the list? I did 
not catch the original email. It is not in the archive too. So me and 
other users of these languages can not discuss the changes...

>
> Vit


Sorry, original e-mail came to me much much later that the discussion...

Changes seems to me OK at least of Czech with exception of one (old ?) typo:

\setuplabeltext [\s!cz][\v!page=strana ] % not =strna

Vit



Hans Hagen wrote:

Richard Gabriel wrote:


Hi Vit,

I've originally posted my updates here to the ntg-context list and 
asked Hans to review them and incorporate them into the distribution.

Now it seems I've made something horribly bad... :-(
I swear I won't be so active anymore!
As one Czech proverb says: "For goodness to beggary." ;-)




here are the diffs (old/proposed) ... the changes in lang-ger are only 
comments, but in lang-sla some (seldom used) labels are assigned:


 >diff t:\texmf\tex\context\base\lang-ger.tex t:\sources\lang-ger.tex
409c409,411
< \setuplabeltext [\s!en] [\v!chapter=]
---
 > %D We don't set these here. One can do that in a style.
 >
 > \setuplabeltext [\s!en] [\v!chapter=] % Chapter
411c413
< \setuplabeltext [\s!de] [\v!chapter=]
---
 > \setuplabeltext [\s!de] [\v!chapter=] % Kapitel
414c416
< \setuplabeltext [\s!af] [\v!chapter=] % [\v!chapter=hoofstuk]
---
 > \setuplabeltext [\s!af] [\v!chapter=] % Hoofstuk
422c424
< \setuplabeltext [\s!af] [\v!section=] % [\v!section=paragraaf]
---
 > \setuplabeltext [\s!af] [\v!section=] % Paragraaf
449c451
< \setuplabeltext [\s!en] [\v!appendix=]
---
 > \setuplabeltext [\s!en] [\v!appendix=] % Appendix
451,452c453,454
< \setuplabeltext [\s!de] [\v!appendix=]
< \setuplabeltext [\s!da] [\v!appendix=] % [\v!appendix=bilag]
---
 > \setuplabeltext [\s!de] [\v!appendix=] % Anhang or Anschlu\ssharp
 > \setuplabeltext [\s!da] [\v!appendix=] % Bilag
454c456
< \setuplabeltext [\s!af] [\v!appendix=] % [\v!appendix=bylae]
---
 > \setuplabeltext [\s!af] [\v!appendix=] % Bylae

and

< \setupheadtext [\s!cz] [\v!graphics=Grafika] % new
< \setupheadtext [\s!sk] [\v!graphics=...]
---
 > \setupheadtext [\s!cz] [\v!graphics=Graf]
 > \setupheadtext [\s!sk] [\v!graphics=Graf]
268c269
< \setupheadtext [\s!sk] [\v!intermezzi=...]
---
 > \setupheadtext [\s!sk] [\v!intermezzi=Intermezz\aacute]
279,280c280,281
< \setupheadtext [\s!cz] [\v!abbreviations=Zkratky] % new
< \setupheadtext [\s!sk] [\v!abbreviations=...]
---
 > \setupheadtext [\s!cz] [\v!abbreviations=Zkratky]
 > \setupheadtext [\s!sk] [\v!abbreviations=Skratky]
285,286c286,287
< \setupheadtext [\s!cz] [\v!logos=Loga] % new
< \setupheadtext [\s!sk] [\v!logos=...]
---
 > \setupheadtext [\s!cz] [\v!logos=Loga]
 > \setupheadtext [\s!sk] [\v!logos=Log\aacute]
291,292c292,293
< \setupheadtext [\s!cz] [\v!units=Jednotky] % new
< \setupheadtext [\s!sk] [\v!units=...]
---
 > \setupheadtext [\s!cz] [\v!units=Jednotky]
 > \setupheadtext [\s!sk] [\v!units=Jednotky]
304c305
< \setuplabeltext [\s!sk] [\v!figure=... ]
---
 > \setuplabeltext [\s!sk] [\v!figure=Obr\aacute zok ]
310c311
< \setuplabeltext [\s!sk] [\v!intermezzo=... ]
---
 > \setuplabeltext [\s!sk] [\v!intermezzo=Intermezzo ]
315,316c316,317
< \setuplabeltext [\s!cz] [\v!graphic=... ]
< \setuplabeltext [\s!sk] [\v!graphic=... ]
---
 > \setuplabeltext [\s!cz] [\v!graphic=Graf ]
 > \setuplabeltext [\s!sk] [\v!graphic=Graf ]
327,328c328,329
< \setuplabeltext [\s!cz] [\v!section=] % Sekce % new
< \setuplabeltext [\s!sk] [\v!section=]
---
 > \setuplabeltext [\s!cz] [\v!section=] % Sekce
 > \setuplabeltext [\s!sk] [\v!section=] % Sekcia
333,334c334,335
< \setuplabeltext [\s!cz] [\v!subsection=] % Podsekce % new
< \setuplabeltext [\s!sk] [\v!subsection=]
---
 > \setuplabeltext [\s!cz] [\v!subsection=] % Podsekce
 > \setuplabeltext [\s!sk] [\v!subsection=] % Podsekcia
339,340c340,341
< \setuplabeltext [\s!cz] [\v!subsubsection=] % Podpodsekce % new
< \setuplabeltext [\s!sk] [\v!subsubsection=]
---
 > \setuplabeltext [\s!cz] [\v!subsubsection=] % Podpodsekce
 > \setuplabeltex

[NTG-context] extra nattab split in columns

2005-12-14 Thread Vit Zyka

Hi,

there occurs extra page break when natural tables is in the columns:

\showframe

\starttext

\startcolumns
  Text.
  \bTABLE[split=yes]
\dorecurse{100}{\bTR\bTD line\eTD\eTR}
  \eTABLE
\stopcolumns

\stoptext


I do not know why there is extra \page
 \bgroup\page\egroup
inside of \splittblboxa (core-ntb). Box breaking should be implicit here 
(we are not inside a float here since \splittblbox forks this), should not?


Commenting mentioned line(s) solves this special problem.
Not understanding all background I do not know if it causes some 
unwanted side-effect.


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


Re: [NTG-context] Legal Project Structure

2005-12-18 Thread Vit Zyka

David Arnold wrote:

All,

I have files:

~/IntermediateAlgebraText/book.tex
~/IntermediateAlgebraText/bookenv.tex
~/IntermediateAlgebraText/chapter1/chapter1.tex
...
~/IntermediateAlgebraText/chapter8/chapter8.tex

I also have:

~/IntermediateAlgebraText/chapter1/section1.tex
~/IntermediateAlgebraText/chapter1/section2.tex
~/IntermediateAlgebraText/chapter1/section3.tex

And similar files for each of the eight chapters. Here is my project  
file: ~/IntermediateAlgebraText/book.tex


%output=pdftex

\startproject book

\environment bookenv

\product chapter1/chapter1

\product chapter2/chapter2

\product chapter3/chapter3

\product chapter4/chapter4

\product chapter5/chapter5

\product chapter6/chapter6

\product chapter7/chapter7

\product chapter8/chapter8

\stopproject

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

Here, for example, is my ~/IntermediateAlgebraText/chapter1/chapter1.tex

\startproduct chapter1

\project book

\startbodymatter

\chapter[chap:1]{Functions}

\input zapf

\component section1

\component section2

\component section3

\stopbodymatter

\stopproduct

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

As an example of a section, consider ~/IntermediateAlgebraText/ 
chapter1/section1.tex


%output=pdf

\startcomponent section1

\project book
\product chapter1

\section[sec:1]{The Function Concept}

\input knuth

\stopcomponent

%%% Local Variables:
%%% mode: conTeXt-en
%%% End:

This look OK to folks? Will I get in trouble with this plan?


Do not think so.

Project is not intended to translate as a whole. It is only some unique 
environment, say for your textbooks. A single textbook (the 
IntermediateAlgebraText) is a product. Each chapters are components.

So, move the structure down.

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


Re: [NTG-context] CSRoman again

2005-12-19 Thread Vit Zyka

Hans Hagen wrote:

Hi

I've spent some time experimenting with LatinModern font. After all I 
was able to use it, but I found I hate it.
1) The have accents positioned in a ugly way (or at least, in a way 
not common in the Czech typesetting)


Do you have the current version - 0.99.3?


2) Some accents do no work, for instance \"o (at least this doesn't work:
   \loadmapfile[psclean.map]



don't use that one, context will load map files for you (like il2-.)

it looks like you load the wrong map file



   \enableregime[il2]
   ...
   B\"ohm-Bawerk

Is there some way to get privately back to CS-Modern fonts? It seems 
these fonts are redefined to Latin Modern, so I can't use them. Please 
help.



you can take a look at type-old.tex, and copy the relevant mapping 
(il2)to a local typeface file and load that one (as long as you make 
sure that the definitions are seen last)


another option is to use a private map file (or a file with 
\pdfmaplines) that map the latin modern fonts to csr fonts (maybe a 
better options; the metrics that tex uses are the same anyway)


anyhow, a few remarks:

- at the last bachotek there was a talk about czech type design and one 
of the remarks was that fo rmany fonts this whole accent business was 
more a matter of taste than of quality (i will not quote the speaker on 
czech typesetting tradition here-)


Probably Karel Horak. There was done big improvements since this time 
(spring 2005). So I have to support Hans's opinion.


There was a HUGE discussion on the Czech TeX list before and during 
Boguslaw's lecture in Brno (nov 2005). The result was:
- LM is suitable for Czech typesetting despite of some minor compromises 
followed from multinational typesetting.
- Boguslaw admited some minor bugs in LM and promised to fix them. He 
also carried out many notes and proof sheets.

- LM is much more consistent over the whole CM family.
- CS Type1 has many bugs in accents (nearly in any non csr10 font).

Vit

- if one goes open type (some day soon for tex) one has to live with 
some general design (consistent positioning among a large range)
- computer modern was never designed with all those accented characters 
in mind, and it will probably never look real great (plr, csr, vnr all 
look kin dof bad unless printed on high resolutions)
- as far as i've heard, there will be some compromis cooked up for cs in 
the next release of lm, and afaik after that the majority of cstug will 
adopt the font, so in the end 
- csr is a rather limited font since it only implements a small subset 
of il2 (same for pl0 which also implements a subset; such subsets are a 
nightmare for tex developers and stand in the way for future tex's, this 
is why the lm project was started ... we need to survive)


- just curious: do you always use cm fonts? there are other fonts with 
math nowadays


Hans
___
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] ownnumber=yes

2005-12-21 Thread Vit Zyka

David Arnold wrote:

All,

This:

%output=pdf

\definehead[david][section]


If you set


\setuphead[david][ownnumber=yes]

>

\starttext

\chapter{One}
\input tufte

\section{Two}
\input tufte



then add a mandatory argument:

  \david{10}{Three}

Vit


\david{Three}
\input tufte

\section{Four}
\input tufte

\stoptext


Causes this:

! TeX capacity exceeded, sorry [input stack size=5000].
 \s!section
  -3
\previoussection #1->\csname \??se #1
 \c!before \endcsname
\countervalue #1->\csname #1
\endcsname
\@@longsectionnumber ...?se \previoussection {#1}}
  >\zerocount  \csname 
\previ...


\finalsectionnumber ...alue {\@@sectie \c!number }
  \fi \fi
\@@shortsectionnumber ...1\c!ownnumber \endcsname
  \fi
...
l.14 \david{Three}


Any ideas?


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



--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


[NTG-context] last natural table column longer

2006-01-15 Thread Vit Zyka

Hello Wizards,

my multi page (and multicolumn) table exceeds the last page by 2 rows. 
Is there a way to make last column a bit longer? Here is a minimal example:


--
\startbuffer[table]
\bTABLE[split=yes]
  \dorecurse{138}{\bTR\bTD cell #1\eTD\eTR}
\eTABLE
\stopbuffer

\starttext
\startcolumns
  \getbuffer[table]
\stopcolumns
\stoptext
--

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


Re: [NTG-context] last natural table column longer

2006-01-16 Thread Vit Zyka

Taco Hoekwater wrote:


Hi Vit,

Vit Zyka wrote:


Hello Wizards,

my multi page (and multicolumn) table exceeds the last page by 2 rows. 
Is there a way to make last column a bit longer? Here is a minimal 
example:



The underlying problem is that you have to enlarge the height of
page 2. I don't know how that is 'normally' done, but perhaps it
gives someone else a hint ?


It may be done by

\adaptlayout[2][height=+1cm]

but it does not solve the problem. Natural tables (IFAIK) are splitted 
at one moment as a whole to one fix (page) height. If I enlarge the page 
(where \bTABLE) then every column will be longer. We need some option 
(or command inside table) that say: hey, naturaltable-split-mechanism, 
start to split to different value. There is some \extratblsplitheight in 
core-ntb, but I did not cook too deep to understand it.


Vit



Cheers, Taco

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


[NTG-context] typo in core-ntb.tex

2006-01-16 Thread Vit Zyka

Hi,

there is typo in core-ntb.tex: \def\splittblboxb#1%

\pagina -> \page

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


Re: [NTG-context] typo in core-ntb.tex

2006-01-16 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hi,

there is typo in core-ntb.tex: \def\splittblboxb#1%

\pagina -> \page



you mean, in your ancient version? not here ...

Hans


Sorry, in this case. Yes, my version is pretty deluvial. Big project 
tends to be finnished, after that I upgrade and do some backlogs...


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


[NTG-context] [Fwd: after=\page in natural tables]

2006-01-16 Thread Vit Zyka

Hello,

this example from core-ntb.tex


\startbuffer[table3]
\bTABLE[split=yes]
  \bTR \bTD left \eTD\bTD right \eTD\eTR
  \bTR[after=\page] \bTD left \eTD\bTD right \eTD\eTR
  \bTR \bTD left \eTD\bTD right \eTD\eTR
\eTABLE
\stopbuffer

\starttext
  \getbuffer[table3]
\stoptext
---

does not work. Here is a log from live-wiki:

(./texweb-table3.tmp
! Use of \dododecrement doesn't match its definition.
\doifnextcharelse ...token =#1\def \!!stringa {#2}
  \def \!!stringb
{#3}\futur...

\popTBL ...\intablefalse \fi \doglobal \decrement
  \TBLlevel \relax
l.5 \eTABLE

?
! Emergency stop.


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


Re: [NTG-context] [Fwd: after=\page in natural tables]

2006-01-20 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hello,

this example from core-ntb.tex


\startbuffer[table3]
\bTABLE[split=yes]
  \bTR \bTD left \eTD\bTD right \eTD\eTR
  \bTR[after=\page] \bTD left \eTD\bTD right \eTD\eTR
  \bTR \bTD left \eTD\bTD right \eTD\eTR
\eTABLE
\stopbuffer

\starttext
  \getbuffer[table3]
\stoptext
---

does not work. Here is a log from live-wiki:

(./texweb-table3.tmp
! Use of \dododecrement doesn't match its definition.
\doifnextcharelse ...token =#1\def \!!stringa {#2}
  \def \!!stringb
{#3}\futur...

\popTBL ...\intablefalse \fi \doglobal \decrement
  \TBLlevel \relax
l.5 \eTABLE

?
! Emergency stop.



nasty one: we need to make \page test-safe

\unexpanded\def\pagebreak
 {\dosingleempty\dopagebreak}


I seee, OK thanks, it works. And I have to admit Taco was right with 
actual page height influences column splitting. I was wrong with my 
opinion. I was confused with


1) \adaptlayout[page][height=+3cm]
   increases the height only by: min(3cm,footer-height)
   (means UPTO footer-height)

2) there is some rounding error if setting height=(fit|middle), see

---
\showframe

\setuplayout[
  height=fit, % or middle
]

\startbuffer[table]
\bTABLE[split=yes]
  \dorecurse{200}{\bTR\bTD cell #1\eTD\eTR}
\eTABLE
\stopbuffer

\starttext
\startcolumns
  \getbuffer[table]
\stopcolumns
\stoptext


Vit

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


Re: [NTG-context] last natural table column longer

2006-01-21 Thread Vit Zyka

Taco Hoekwater wrote:


Hi Vit,

Vit Zyka wrote:


Hello Wizards,

my multi page (and multicolumn) table exceeds the last page by 2 rows. 
Is there a way to make last column a bit longer? Here is a minimal 
example:



The underlying problem is that you have to enlarge the height of
page 2. I don't know how that is 'normally' done, but perhaps it
gives someone else a hint ?


Answer to my own question:

Question:
  Imagine a table (\bTABLE) spanning several pages. Moreover the table 
is inside multicolumn (\startcolumn). How to make some column longer 
(having more rows in some column)? (Column height is given by page height.)


Solution:

1. Make page heigher (as high as the highest column) on every page where 
the table is:

   \setuplayout[lines=..]

2. Insert blank rows to appropriate table places to fill the columns:
   \dorecurse{..}{\bTR\bTD\strut\eTD\eTR}

Remarks:
1. \adaptlayout{page}{height=+...} has limited capability of making page 
heigher (not overcomes footer) so \setuplayout is more flexible.


2. Forsing column break by
 \bTR[after=\column]\bTD...\eTD\eTR
   works but add some spurious space on the top of next column. I was 
not able to remove it even experimenting with my own

 \installcolumnbreakhandler {MUL} {forse} {...}
and using
 \bTR[after={\columnbreak[forse]}]\bTD...\eTD\eTR
Spurious space demonstration:
--
\startbuffer[table]
\bTABLE[split=yes]
  \dorecurse{20}{\bTR\bTD cell #1\eTD\eTR}
  \bTR[after={\columnbreak[yes]}]\bTD between \eTD\eTR
  \dorecurse{100}{\bTR\bTD cell #1\eTD\eTR}
\eTABLE
\stopbuffer

\starttext
\startcolumns
  \getbuffer[table]
\stopcolumns
\stoptext
--

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


Re: [NTG-context] Sorting question

2006-01-22 Thread Vit Zyka

Bernd Militzer wrote:

Hello,

is it possible to produce a sorted list without unsing the entry
\Ueberall in text?

%
\definesorting[person][personen]
\setupsorting[person][criterium = all]
%
\person{Unsinn, Klaus}
\person{Militzer, Bernd}
\person{Horten, Hans}
\person[Ueberall]{Überall, Heinrich}
%
\placelistofpersonen

>
> Any ideas?

We need to define (German?) sorting rules for newtexexec (newtexutil). 
Tell me in between 'Ü' have to be sorted I will try to prepare a code 
for this rule.


Vit



Thanks, Bernd





%#ConTeXt

%
%   allgemeine Grundeinstellung
%
\enableregime[windows]  % Eingabe-Codierung
\mainlanguage[de]   % Sprachmodus   
\usetypescript[modern][texnansi] 
\setupbodyfont[12pt]

%
%   Die besondere Seitenanpassung
%
\setuppapersize[a4][a4]
\setuplayout[location=singlesided]

\setuplayout[
backspace=2.46cm,topspace=1.2cm,
top=0cm,bottom=0cm,topdistance=0cm,bottomdistance=0cm,
header=1.5cm,footer=1.0cm,headerdistance=0cm,footerdistance=0cm,
leftedge=0cm,rightedge=0cm,leftedgedistance=0cm,rightedgedistance=0cm,

leftmargin=1.5cm,rightmargin=1.0cm,leftmargindistance=0.42cm,rightmargindistance=0.42cm,
width=16.5cm,height=27.4cm,
]
%
%
%   Z�hler f�r die lfdNr.
%
\global\newcount\xlfd \xlfd=0
% 
\def\LFD{\futurelet\testchar\MitOptArgLFD}

%

\def\MitOptArgLFD{\ifx[\testchar%
 \let\next\OptArgLFD \else %
 \let\next \NoOptArgLFD \fi \next}
%
% setzte den Z�hler auf bestimmten Wert
%
\def\OptArgLFD[#1]{%
{\global\xlfd=\number#1}
}
%
% erh�he den Wert um 1
% und gebe den Z�hler aus
% Besonderheit 
% zweistellige Ausgabe der Zahl also 01., 02. ... 10. 11. ...

% und Punkt
%
\def\NoOptArgLFD{%
{\global\advance\xlfd by 1\relax}
\ifnum\xlfd<10
0\fi
\number\xlfd.
}
%
%Linie nach dem Namen
%
\def\myrule{ {\thinrules[n=1]\par}}
%
%
%
\starttext
%
%
% 1. ex no prob
%

\definesorting[personA][personenA]
\setupsorting[personA][criterium = all,before=\LFD,after=\myrule]

\personA{Unsinn, Klaus}
\personA{Militzer, Bernd}
\personA{Horten, Hans}


\placelistofpersonenA

\page

% 2. ex prob �berall on wrong position

%

\definesorting[personB][personenB]
\setupsorting[personB][criterium = all,before=\LFD,after=\myrule]

\personB{Unsinn, Klaus}
\personB{Militzer, Bernd}
\personB{Horten, Hans}
\personB{�berall, Heinrich}

\placelistofpersonenB

\page

% 3. ex prob �berall is missing

%
\definesorting[personC][personenC]
\setupsorting[personC][criterium = all,before=\LFD,after=\myrule]

\personC{Unsinn, Klaus}
\personC{Militzer, Bernd}
\personC{Horten, Hans}
\personC[Ueberall]{�berall, Heinrich}

\placelistofpersonenC

\page

% 4. ex prob �berall is missing

%
\definesorting[personD][personenD]
\setupsorting[personD][criterium = all,before=\LFD,after=\myrule]

\personD{Unsinn, Klaus}
\personD{Militzer, Bernd}
\personD{Horten, Hans}
\personD[Ueberall]{�berall, Heinrich}

First I use \Ueberall\ in text

\placelistofpersonenD

\page

\stoptext




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


--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] Sorting question

2006-01-22 Thread Vit Zyka

Mojca Miklavec wrote:

On 1/22/06, Vit Zyka wrote:



We need to define (German?) sorting rules for newtexexec (newtexutil).
Tell me in between 'Ü' have to be sorted I will try to prepare a code
for this rule.



ä (adiaeresis) is identical to a, ö (odiaeresis) identical to o, ü
(udiaeresis) identical to u, the same for uppercase. ß (ssharp) is
edentical to "ss" (same for uppercase, but in uppercase it's written
as SS anyway).


Hmmm, that is not complete: I understand that every ü, Ü, u, U comes to 
single group, but is u<ü
--
\input sort-ini.tex

\useregime[win]
\enableregime[windows]  % Eingabe-Codierung
\mainlanguage[de]   % Sprachmodus   
\usetypescript[modern][texnansi]

\startmode[sortorder-de]
  \exportsortexpansion{u}{u+1}
  \exportsortexpansion{udiaeresis}{u+2}
  \exportsortexpansion{U}{u+3}
  \exportsortexpansion{Udiaeresis}{u+4}
  \exportsortdivision{u+1}{u}
  \exportsortdivision{u+2}{u}
  \exportsortdivision{u+3}{u}
  \exportsortdivision{u+4}{u}
\stopmode

\setmode{sortorder-de}

\starttext

\definesorting[person][personen]
\setupsorting[person][criterium = all]
%\def\person#1{#1\expanded{\index{#1}}, }
%\def\person#1{#1\index{#1}, }

\person{Unsinn, Klaus}
\person{Militzer, Bernd}
\person{Horten, Hans}
%\person{Überall, Heinrich}
\person{\Udiaeresis berall, Heinrich}

Index:
\placelistofpersonen
%\placeindex[alternative=A]

\stoptext
--

Comments:
- newtexexec is needed!
- works for both index/sorting
- works only for \Udiaeresis not for direct Ü! Strange! Why?

Vit

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


Re: [NTG-context] Sorting question

2006-01-23 Thread Vit Zyka
Henning Hraban Ramm wrote:
> Am 2006-01-23 um 01:08 schrieb Vit Zyka:
> 
>>> ä (adiaeresis) is identical to a, ö (odiaeresis) identical to o, ü
>>> (udiaeresis) identical to u, the same for uppercase. ß (ssharp) is
>>> edentical to "ss" (same for uppercase, but in uppercase it's written
>>> as SS anyway).
>>
>>
>> Hmmm, that is not complete: I understand that every ü, Ü, u, U  comes 
>> to single group, but is u<ü 
> 
> I didn't test your code, but u, ü, U and Ü should be handled as same  
> (in "normal German order")
> and u=U, ü=ue=Ü=Ue=UE in "German phone book order".

Hmmm, I feel that the situation is more complicated (same as in Czech). 
Proper sorting needs several (3 or 4, perhaps some languages more?) passes:

1. pass: division - define which letters comes to the same group (it can 
be also group of letters) - defined for newtexutil.rb

2. pass: sorting with the simplified rules e.g. ü=ue=Ü=Ue=UE

3. pass: if all letter are the same according the 2. pass, then apply 
e.g. ü Greetlings from Lake Constance!

Enjoy it.
Vit

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


[NTG-context] page float in columnset

2006-01-26 Thread Vit Zyka
Hi wizards,

let me go back to columnsets. I try to place a float spanning the whole 
page area. When doing that the running text placing exactly one page is 
completely and forever lost! Please see example:

-
\setuplayout[grid=yes]
\showgrid

\starttext
\startcolumnset
   \dorecurse{4}{#1 --- \input knuth \blank\endgraf}
   \placefigure[here]{none}{%
 \framed
   [width=\makeupwidth,height=\textheight,offset=overlay]
   {Page float.}}
   \dorecurse{10}{#1 --- \input knuth \blank\endgraf}
\stopcolumnset
\stoptext
---

Switching here -> page, tops, ... does not solve the problem.
The similar behaviour is observed when a float has one column width and 
fit the whole column height.

Is there some solution or another way how to do that and preserve the text?

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


Re: [NTG-context] Substack in Context

2006-01-28 Thread Vit Zyka
Taco Hoekwater wrote:
> Aditya Mahajan wrote:
> 
>>>The definition from m-newmat is at least partly superceded by the
>>>new core math definitions Hans added last week, so a new implementation
>>>would be better.
>>
>>Can you suggest something?
> 
> 
> Like this maybe?
> 
> \def\substack#1%
>{\begingroup
> \let\\\cr
> \startmathmatrix #1\stopmathmatrix
> \endgroup}
> 
> Probably needs a bit of tweaking to make it look better
> (perhaps a [strut=no] parameter?).

What about use math primitive \atop:

\def\substack#1%
{\begingroup
 \let\\\atop
 #1
 \endgroup}

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


Re: [NTG-context] page float in columnset

2006-01-31 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
> 
> 
>>Hi wizards,
>>
>>let me go back to columnsets. I try to place a float spanning the whole 
>>page area. When doing that the running text placing exactly one page is 
>>completely and forever lost! Please see example:
>>
>>-
>>\setuplayout[grid=yes]
>>\showgrid
>>
>>\starttext
>>\startcolumnset
>>  \dorecurse{4}{#1 --- \input knuth \blank\endgraf}
>>  \placefigure[here]{none}{%
>>\framed
>>  [width=\makeupwidth,height=\textheight,offset=overlay]
>>  {Page float.}}
>>  \dorecurse{10}{#1 --- \input knuth \blank\endgraf}
>>\stopcolumnset
>>\stoptext
>>---
>>
>>Switching here -> page, tops, ... does not solve the problem.
>>The similar behaviour is observed when a float has one column width and 
>>fit the whole column height.
>>
>>Is there some solution or another way how to do that and preserve the text?
>> 
>>
> 
> you were the guy running an ancient context, wasn;t it? 

Yes on my machine, not so ancient on an notebook; but your context is 
old too since you sent me off-list the same wrong result ;-)

Please, closely look on the paragraph numbering. In the second paragraph 
sequence the number 2, 3, and 4 are missing, number 1 and 5 are partialy 
missing -> total one page is lost.

> works ok here (although i admit that this mechanism is a bit tricky;

i believe; it is one context's advantage over plain or latex, so it can 
be a new challenge to decrease the number of bugs...

> a solution is to make the graphic .99 textheight

even .98 not ;-) No, it does not solve. Text stops to disappear when 
there is enough space for at least one line. But I would like only 
figure on the page. Not with one or more line text. Yes one can add some 
imaginary empty line, but it is agly (and difficult if some \vadjust 
inside a paragraph is needed).

> (in columnset sone runs into rounding error problems 

Perhaps but loosing text it the worst variant - no error, no warning, no 
graphical mark. You can easily overlook such disaster.

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


Re: [NTG-context] page float in columnset

2006-02-02 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
> 
>>Hans Hagen wrote:
>>  
>>
>>>Vit Zyka wrote:
>>>
> 
> ah ... your persistent ... 

yes, slow but persistent (hopefully not annoying...)

> you can try this: 
> 
> \OTRSEToutput
>   {\dontcomplain % new, get rid of overfull message (to be sorted out)
>\doloop
>  {\OTRSETnaturalflush
>  %\OTRSETstartnextpage %  no
>   \OTRSETdoflushfloats % actually belongs in \flushsavedfloats (but goes 
> wrong)
>   \OTRSETcheckfreelines
>   \ifsomefreecolumncells \exitloop \fi}%
>\OTRSETchecksidefloat}

Hura!!! Great. It works! It works! It works! It works at least for:

- full page float: [page|here](\textheight,\makeupwidth) in simple example

- full column float: [here](\textheight,\OneColWidth) in simple example

- does not change page break and/or float positions in 160 pages 2 or 3 
columnsets document with about 330 floats!

- and more over: preserves any text in this doc!

It does not work for \startcolumns (not columnsets) but
- seems to me it is another problem (break one more line in each column 
that is appropriate to \textheight)
- the behaviour is exactly the same with or without the new patch

Thank you, Hans, very much! I do not know how to reciprocate with... 
(you sometimes suggest to buy a beer but I am afraid of your being 
drunken if everybody who is helped by you buys to you a beer :)

Vit

> tricky patch so please test extensively! (for the moment put this in your 
> local copy of cont-loc.tex or maybe in your doc) 
> 
> Hans 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] page float in columnset

2006-02-02 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
> 
>>- does not change page break and/or float positions in 160 pages 2 or 3 
>>columnsets document with about 330 floats!

...I can add fluent marginal column where the main text spans 2 
columnsets...

> so you have the world record now of the most complex doc made with column 
> sets; makes me confident that this (tricky) mechanism is becoming workable
 >
 > Hans

:-) That is a good news. Bad news is that I am working on this since 
March; on September it was to be done, but was not. Even worst, it has 
not been finnished yet - currently in the proofreading stage. 
Fortunately it is not a commercial job. But my friends are wondering 
what I can so long to do at it and they consider me to be crazy.

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


Re: [NTG-context] line with height=0 in TABLE

2006-02-06 Thread Vit Zyka
Peter Münster wrote:
> Hello,
> 
> I would like to have a line with zero height in a TABLE, but it seems to be
> more difficult, than I thought:
> 
> \starttext
> \setupTABLE[r][2][height=0pt,offset=0pt]
^^
offset=overlay

Cheers
Vit

> \bTABLE
> \bTR \bTD bla \eTD \eTR
> \bTR \bTD \eTD \eTR
> \bTR \bTD bla \eTD \eTR
> \eTABLE
> \stoptext
> 
> There is still some height in line 2...
> How could I get rid of this please?
> 
> Greetings, Peter

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


Re: [NTG-context] Fonts problems

2006-02-15 Thread Vit Zyka
Michal Kvasnička wrote:
> Good afternoon.
> 
> I apologize that I bother you once more, but I'm getting desperate. :-( 
> I have still problem with fonts in ConTeXt---perhaps I'm not able to 
> install it well. I use ConTeXt  ver: 2006.02.03 21:00, pdfeTeX, Version 
> 3.141592-1.21a-2.2 (Web2C 7.5.4), tetex-3.0-13 under SuSE Linux 9.2 (the 
> tetex is grabbed from Suse 9.3). I tried to copy all files where I 
> thought they should have been, texhashed, and build formats. Now, some 
> things work, but not all of them, and not in an expected way.
> 
> Problem 1: I expect that a following file should typeset "tufte" in 
> Latin Modern font.
> \setupoutput[pdf]
> \starttext
> \input tufte
> \stoptext
> ConTeXt loads some map files (/usr/share/texmf/fonts/map
> /dvips/context/original-empty.map}{/usr/share/texmf/fonts/map/dvips/context/ori
> ginal-base.map}{/usr/share/texmf/fonts/map/dvips/context/ec-public-lm.map}{/usr
> /share/texmf/fonts/map/dvips/context/ec-base.map}{/usr/share/texmf/fonts/map/dv
> ips/context/8r-base.map}{/usr/share/texmf/fonts/map/dvips/context/t5-base.map}{
> /usr/share/texmf/fonts/map/pdftex/context/original-ams-base.map}{/usr/share/tex
> mf/fonts/map/dvips/context/original-ams-euler.map}{/usr/share/texmf/fonts/map/d
> vips/context/original-public-lm.map}), but it clearly isn't able to find 
> the right one, since it writes this error message:
> kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 
> ec-lmr12
> mktexpk: don't know how to create bitmap font for ec-lmr12.

Hello,

it seems like old lm package (wrong map files). Try to update from
http://www.tug.org/cgi-bin/dirarchive/tex-archive/fonts/lm/fonts.zip

Vit Zyka

> kpathsea: Appending font creation commands to missfont.log.
>  )
> Warning: pdfetex (file ec-lmr12): Font ec-lmr12 at 72 not found
> I can correct it when I add one more file:
> \loadmapfile[psclean.map]
> But I was told that I should omit this line. What's the problem? How can 
> I correct it?
> 
> 
> Problem 2: Let's suppose I add into the previous file this 
> B\"oh-Bawerk
> then the letter \"o is missing (a white space is on its place). Isn't 
> there a bug in the Latin modern fonts/virtual fonts/metrics, or 
> whatever? Moreover, gv views the hyphen over the "h" and "B" letters. 
> (Acrobat Reader 7 view it all right.) How is that possible.
> 
> 
> Problem 3: Some fonts are not used properly. The following file
> \setupoutput[pdf]
> \loadmapfile[psclean.map]
> \usetypescript[ppl] % working pos
> \switchtobodyfont[ppl,10pt]
> \starttext
> \input tufte\par
> \stoptext
> works well. It works even if I change "pos" to "ppl", "ptm", "phv", or 
> "tim". It works even when changed to "pcr", but the text is ragged. When 
> changed to "con", "bookman", or "iwona", it does nothing---the text is 
> typeset in Latin Modern. When changed to "ant", I get this error message:
> kpathsea: Running mktextfm sy-anttrz
> /usr/share/texmf/web2c/mktexnam: Could not map typeface abbreviation 
> y- for sy-anttrz.
> /usr/share/texmf/web2c/mktexnam: Need to update 
> /usr/share/texmf/fonts/map/fontname/special.map?
> mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; 
> nonstopmode; input sy-anttrz
> This is METAFONT, Version 2.71828 (Web2C 7.5.4)
> kpathsea: Running mktexmf sy-anttrz
> ! I can't find file `sy-anttrz'.
> I think I have installed all these fonts (instead of Adobe fonts I have 
> URW ones). What's wrong.
> 
> 
> 
> Problem 4: From what afm files were the tfm metrics for Times, 
> Helvetica, and Palatino generated? Accents are positioned in a strange 
> way and after a tquoteright is a strange hole (bad kerning).  A long 
> time ago I've generated myself tfm metrics from afm files of URW fonts, 
> and they look much better. Were these afm files used, or were used some 
> afm metrics of fonts that do not include accented letter, i.e. are those 
> letters just TeX-based composites?
> 
> 
> 
> Problem 5: How can I switch back to CS fonts? (Well, I know I bother you 
> all, but I still do not like Latin Modern fonts.) :-( I thought that 
> something like this could work, but it doesn't:
> \setupoutput[pdf]
> \loadmapfile[psclean.map]
> \loadmapfile[/usr/share/texmf/dvips/context/original-public-csr.map]
> \starttypescript [serif] [computer-modern] [il2]
>   \definefontsynonym [cmb10][csb10][encoding=il2]
>   \definefontsynonym [cmbsy10] 

[NTG-context] wrong order of content-list items if using balanced columnsets

2006-02-27 Thread Vit Zyka
Hello Wizards,

the next example illustrates the problem with wrong order of 
content-list items if using balanced columnsets:

-
\setuplayout[grid=yes,topspace=1cm,bottomspace=1cm,height=middle]
\showgrid

\definecolumnset[A][n=2,balance=yes]
\setupcolumnsetlines[A][1][1][21]
\setupcolumnsetlines[A][1][2][21]
\definecolumnset[B][n=2,balance=yes]

\starttext
\startcolumnset[A]
   \section{Knuth}
   \dorecurse{2}{\input knuth \endgraf}
\stopcolumnset
\placeongrid{\hairline}
\startcolumnset[B]
   \section{Zapf}
   \dorecurse{1}{\input zapf \endgraf}
   \blank
   Content:
   \placecontent[criterium=all]
\stopcolumnset

\stoptext


Problem is that the second section (Zapf) is inserted to .tui before the 
first one (Knuth). My observation: on the page where one columnset (A) 
is closed by \setupcolumnsetlines and the second (B) continues, .tuo 
contains marks from B firstly. This makes book content unsable in this 
configuration.

Any solutions? I am thinking about: Proper order writting to .tuo or to 
sort items according to mark number - it is correct (not sure if it is 
implemented?).

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


Re: [NTG-context] wrong order of content-list items if using balanced columnsets

2006-02-28 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
> 
>>Hello Wizards,
>>
>>the next example illustrates the problem with wrong order of 
>>content-list items if using balanced columnsets:
>>
>>-
>>\setuplayout[grid=yes,topspace=1cm,bottomspace=1cm,height=middle]
>>\showgrid
>>
>>\definecolumnset[A][n=2,balance=yes]
>>\setupcolumnsetlines[A][1][1][21]
>>\setupcolumnsetlines[A][1][2][21]
>>\definecolumnset[B][n=2,balance=yes]
>>
>>\starttext
>>\startcolumnset[A]
>>   \section{Knuth}
>>   \dorecurse{2}{\input knuth \endgraf}
>>\stopcolumnset
>>\placeongrid{\hairline}
>>\startcolumnset[B]
>>   \section{Zapf}
>>   \dorecurse{1}{\input zapf \endgraf}
>>   \blank
>>   Content:
>>   \placecontent[criterium=all]
>>\stopcolumnset
>>
>>\stoptext
>>
>>
>>Problem is that the second section (Zapf) is inserted to .tui before the 
>>first one (Knuth). My observation: on the page where one columnset (A) 
>>is closed by \setupcolumnsetlines and the second (B) continues, .tuo 
>>contains marks from B firstly. This makes book content unsable in this 
>>configuration.
>>
>>Any solutions? I am thinking about: Proper order writting to .tuo or to 
>>sort items according to mark number - it is correct (not sure if it is 
>>implemented?).
>>  
> 
> it's a kind of bug; how about swapping the order: (page-lyr.tex)
> 
> \def\settextpagecontent#1#2#3% #2 and #3 will disappear
>   {\doifelselayerdata{OTRTEXT}
>  {\setbox#1\hbox to \makeupwidth
> {\startoverlay
>{\tightlayer[OTRTEXT]} % first, otherwise problems with toc
>{\normalsettextpagecontent{#1}{#2}{#3}\box#1}
>  \stopoverlay}%
>   \dp#1\zeropoint}%
>  {\normalsettextpagecontent{#1}{#2}{#3}}}
> 

Slaaav!

> (you really don't want to know what happens there -) 

World record document with 40 balanced columnsets says it is OK.

Thanks you Hans
Vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] sources of the manaul

2006-03-17 Thread Vit Zyka
[EMAIL PROTECTED] wrote:
> On Thu, Mar 16, 2006 at 05:17:46PM -0500, Aditya Mahajan wrote:
> 
>>On Thu, 16 Mar 2006, frantisek holop wrote:
>>
>>>i think i have read something about this issue, but i don't remember
>>>where or when :)
>>
>>You can check out the manual sources from the svn respository 
>>svn://ctx.pragma-ade.nl/manuals
> 
> 
> Is there a "read-only account" available?
> When doing a check out, how much data will be transferred?
> (So I can estimate the download time (or reconsider doing it ;- ))
> 
> 
> 
> 
>>If you prefer to browse them online they are available at
>>http://context.aanhet.net/svn/
> 
> 
> 
> Or is that the "read-only account"?
> (Is  `svn checkout http://context.aanhet.net/svn/ context-manual`
> the way to go ? )

That is also my question. I would like to make a copy on my comp for 
making current version.

My goal is to start to translate the beginners manual to Czech. Can 
somebody suggest me the better way to do that?

- Will we store all language translations in one source files (and one 
repository)? (in blocks ... 
... ... ...)

- Or each language mutation will be done in a unique file set?

I can imagine advantages and disadvantages of both ways. But my very 
little knowledge of SVN can not deside better solution. What is prefereble?

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


Re: [NTG-context] sources of the manaul

2006-03-20 Thread Vit Zyka
Vit Zyka wrote:
>>>You can check out the manual sources from the svn respository 
>>>svn://ctx.pragma-ade.nl/manuals
 >
> That is also my question. I would like to make a copy on my comp for 
> making current version.
> 
> My goal is to start to translate the beginners manual to Czech. Can 
> somebody suggest me the better way to do that?
> 
> - Will we store all language translations in one source files (and one 
> repository)? (in blocks ... 
> ... ... ...)
> 
> - Or each language mutation will be done in a unique file set?

I have managed to make a local copy of SVN yesterday (strange I was not
successfull some week ago) and the answers are obvious now from both the
en and nl files.

* Manual ma-cb-en:
- print version is OK.
- screen version errors:
   ma-cb-screen.tex, l.18: midle -> middle
   ma-cb-style.tex, l.59,60: raster -> screen;
 backroundraster -> backgroundscreen

There was some discussion about beginners manual (hopefully ConTeXt at 
Excursion) translation into another languages in autumn. Does somebody 
make some steps towards this goal?

How stable do you (Hans, ...) think is the English version of ConTeXt in 
Excursion (ma-cb-en) now?


* Manual context error:
This is pdfeTeXk, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5) 
(format=cont-en 2006.3.18)  20 MAR 2006 15:40
entering extended mode
  %&-line parsing enabled.
  (c:/TeXLive/texmf-experim/web2c/natural.tcx)
**&cont-en cont-en.tex
(./cont-en.tex

ConTeXt  ver: 2006.02.15 17:41  fmt: 2006.3.18  int: english  mes: english
.
(./co-en-01.tex [7.1.7]
layout  : subpage set 1 processed (size 7)
[8.2.1] [MP cont-en-mpgraph.2] [9.3.2] [10.3.3]
chapter : - Preface
! Use of \@@opitemize1placestopper doesn't match its definition.
\doifelse #1#2->\edef \!!stringa {#1}
  \edef \!!stringb {#2}\ifx 
\!!stringa \!...

\setitemlevel ...temlevel \c!placestopper }\v!yes
   {\def \tempsymbol 
{\getite...

\redostartitemgroup ...ommando }\setitemlevel {#1}
   \ifx \listitem \empty 
\set...

\dostartitemgroup ... {\dodostartitemgroup [#2][]}
   \fi

\par
l.26
---

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


Re: [NTG-context] sources of the manaul

2006-03-20 Thread Vit Zyka
John R. Culleton wrote:
> On Friday 17 March 2006 08:47, Hans Hagen wrote:
> 
>>Geert Stappers wrote:
>>
>>>On Thu, Mar 16, 2006 at 05:17:46PM -0500, Aditya Mahajan wrote:
>>>
On Thu, 16 Mar 2006, frantisek holop wrote:

>i think i have read something about this issue, but i don't remember
>where or when :)

You can check out the manual sources from the svn respository
svn://ctx.pragma-ade.nl/manuals
>>>
>>>Is there a "read-only account" available?
>>>When doing a check out, how much data will be transferred?
>>>(So I can estimate the download time (or reconsider doing it ;- ))
>>>
>>>
If you prefer to browse them online they are available at
http://context.aanhet.net/svn/
> 
> I downloaded a bunch of files from that location. Just a quick
> question: Have they been updated since the 2001 edition? 

Seems to me, context manual, mathml, and fonts have been updated.

Vit


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


Re: [NTG-context] \setupmarginrules

2006-03-26 Thread Vit Zyka
frantisek holop wrote:
> hmm, on Fri, Mar 17, 2006 at 07:49:57PM +0100, Willi Egger said that
> 
>>Hi Frantisek
>>
>>The correct command is \setupmarginrules[rulethickness=2pt]. The option 
>>is rulethickness and it takes a dimension.
> 
> 
> i have tried this and it doesn't seem to work.
> 
> \defineparagraphs   [poem][n=2]
> \setupparagraphs[poem][1][width=.25\textwidth]
> \setupparagraphs[poem][2][rule=on]
> 
> \setupmarginrules   [rulethickness=5pt]

Hi,

this sets rules for margins. I guess the solution

\setupparagraphs[poem][2][rule=on,rulethickness=5pt]

Vit

> the rule in front of the 2nd column (poem[2]) still
> has the default thickness.
> 
> -f
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupmarginrules

2006-03-27 Thread Vit Zyka
frantisek holop wrote:
> hmm, on Sun, Mar 26, 2006 at 10:12:01PM +0200, Vit Zyka said that
> 
>>>\defineparagraphs   [poem][n=2]
>>>\setupparagraphs[poem][1][width=.25\textwidth]
>>>\setupparagraphs[poem][2][rule=on]
>>>
>>>\setupmarginrules   [rulethickness=5pt]
>>
>>this sets rules for margins. I guess the solution
>>
>>\setupparagraphs[poem][2][rule=on,rulethickness=5pt]
> 
> 
> sorry, i forgot to add, that i tried this one also :)
> seemed logical, but the result is the same.
> 
> -f

OK, there is a patch (with minor correction):

---
\defineparagraphs   [poem][n=2,distance=20pt]
\setupparagraphs[poem][1][width=.25\textwidth]
\setupparagraphs[poem][2][rule=on,rulethickness=10pt]

\unprotected
\def\doalinealijn#1#2%
   {\doifelsevalue{\??al#2\the\alteller\c!rule}\v!on
  {\dimen2=#1\relax
   \hskip.5\dimen2
%  \hskip-\linewidth
   \hskip-.5\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
%  \vrule\!!width\linewidth
   \vrule\!!width\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
   \hskip-.5\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
   \hskip.5\dimen2}
  {\hskip#1}}

\starttext
\startpoem
\input knuth
\nextpoem
\input knuth
\stoppoem
\stoptext
-

for distro it also should be accompanied by

   \c!rulethickness=\linewidth,

in \def\dodefineparagraphs[#1][#2]%

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


Re: [NTG-context] \setupmarginrules

2006-03-28 Thread Vit Zyka
Willi Egger wrote:
> Hi Vit!
> 
> Thanks for this patch. Do you know why the rulethickness must be given 
> in integer dimension. e.g. 2.5pt will cause an error, telling that a 
> wrong dimension is used.
> 
> Willi

Due to my fault. Sorry. This is a little bit better solution:

---
\defineparagraphs   [poem][n=2,distance=20pt]
\setupparagraphs[poem][1][width=.25\textwidth]
\setupparagraphs[poem][2][rule=on,rulethickness=5.5pt]

\unprotected
\def\doalinealijn#1#2%
   {\doifelsevalue{\??al#2\the\alteller\c!rule}\v!on
  {\dimen2=#1\relax
   \dimen3=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
   \hskip.5\dimen2
%  \hskip-\linewidth
   \hskip-.5\dimen3 % VZ
%  \vrule\!!width\linewidth
   \vrule\!!width\dimen3 % VZ
   \hskip-.5\dimen3 % VZ
   \hskip.5\dimen2}
  {\hskip#1}}

\starttext
\startpoem
\input knuth
\nextpoem
\input knuth
\stoppoem
\stoptext
----

Vit

> Vit Zyka wrote:
> 
> 
>>frantisek holop wrote:
>> 
>>
>>
>>>hmm, on Sun, Mar 26, 2006 at 10:12:01PM +0200, Vit Zyka said that
>>>
>>>   
>>>
>>>
>>>>>\defineparagraphs   [poem][n=2]
>>>>>\setupparagraphs[poem][1][width=.25\textwidth]
>>>>>\setupparagraphs[poem][2][rule=on]
>>>>>
>>>>>\setupmarginrules   [rulethickness=5pt]
>>>>>   
>>>>>
>>>>
>>>>this sets rules for margins. I guess the solution
>>>>
>>>>\setupparagraphs[poem][2][rule=on,rulethickness=5pt]
>>>> 
>>>>
>>>
>>>sorry, i forgot to add, that i tried this one also :)
>>>seemed logical, but the result is the same.
>>>
>>>-f
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupmarginrules

2006-03-28 Thread Vit Zyka
Taco Hoekwater wrote:
> 
> Vit Zyka wrote:
> 
>>   \dimen3=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
> 
> 
> Taco Hoekwater wrote:
> 
>>   \dimen4=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ
> 
> 
> That's funny ;)
> 
> Cheers, Taco

Yes funny. Even line position is the same. But why 4? I know: why not.

Will be move to distro? (Indifferent which version.) Old code contained 
buggy space calculation and the rule position, I think.

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


Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-03 Thread Vit Zyka
Hans Hagen wrote:
> Martin Kolařík wrote:
> 
>>Aha, here maybe will be the solution :-)
>>
>>I'am using standalone Win32 distribution from Pragma and I'm running texexec 
>>with --translate=cp1252cs. Typescripts use il2, which corresponds to fonts, 
>>of course. If I run the code without XML (if I transcribe XML to \chapter 
>>etc.) I get toc entry correctly too.
>>
>>Where should I look for more? What is natural.ctx?
>>  
> 
> this is a one-to-one translation vector, and the one standard used by 
> context; forget about all those other mappings, they can be done using 
> regimes; you can use an il2 input regime, and any (resonable) font encoding, 
 >
 > Hans

specifically for you:

\mainlanguage[cz]
\enableregime[windows] % or \enableregime[latin2] for il2

is enough for Latin Modern and Czech.

Vit

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


Re: [NTG-context] Absolute positioning of grafics in ConTeXt

2006-04-05 Thread Vit Zyka
Johannes Fichtinger wrote:
> Hi all, 
> 
> I'm quite new to ConTeXt, but I've been working with LaTeX for several years
> now. Now I faced a problem which I'm not able to solve in LaTeX which
> probably can be solved in ConTeXt:
> 
> I need a possibility to set grafics in a book on exact, absolute positions.
> Now I found the way for background images, like in the attached example.
> But obviously, normal text is written above the background image. I need
> now a possibility like this but for foreground grafics.
> 
> So, how can I set the position of grafics absolutely in ConTeXt?
> 
> Thanks,
> Johannes.
> 
> My example:
> 
> --
> \enableregime   [il1]
> \mainlanguage   [de]
> \setuplayout[grid=yes,marking=on,horoffset=2cm,veroffset=2cm]
> \definepapersize[jo][width=14cm,height=18cm]
> \setuppapersize [jo][a4]
> 
> \useexternalfigure[wr][dpm][type=png, width=5cm, height=4cm]
> \definelayer[wr-layer]
> \defineoverlay[wr-overlay][\composedlayer{wr-layer}]
> \setupbackgrounds[page][background={wr-overlay}]

\setupbackgrounds[page][background={foreground,wr-overlay}]

Cheers, Vit

> \starttext
> 
> \setlayer[wr-layer][x=-0.1cm,y=-0.1cm]{\externalfigure[wr]}
> Blablabla
> 
> \stoptext
> --
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

-- 
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Vit Zyka
Martin Kolařík wrote:
> Hi Hans,
> 
> I've analyzed the situation using different combinations of regimes and 
> encodings, including switching off handling (\donothandleactivecharacter) and 
> it seems to me, that every text with chars > 127, which is fully expanded (as 
> in 8bit.tex), must cause difficulties, because TOC entry read back from TUO 
> is scanned independently and thus spaces are gobbled.

Hi Martin,

we have discussed this problem a year ago. In that time I solve it just 
writing '{}' in each title where was needed, like

   \chapter{Dobré{} ráno}

Now I have cooked an automatic solution. It is not optimal (effective) 
but working. The only needs is to redefine

   \def\numcharacter#1{\char#1{}}
   \let\dochar\numcharacter

and to load appropriate encoding file once more. Since it is banned a 
new macro \reuseencoding was introduce:

For Hans:
It would be nice if this feature was enabled in a standard distro. 
Perhaps you will find some more optimal solution...

---
\unprotected
\def\doreuseencoding#1%
   {\letvalue{\c!file\f!encodingprefix#1}\empty
\makeshortfilename[\f!encodingprefix#1]%
\startreadingfile
\readsysfile\shortfilename
  {\showmessage\m!encodings2{#1}}
  {\showmessage\m!encodings3{#1}}%
\stopreadingfile}
\def\reuseencoding[#1]%
   {\processcommalist[#1]\doreuseencoding}


\def\numcharacter#1{\char#1{}}
\let\dochar\numcharacter

\reuseencoding[ec]

\enableregime[latin2]

\starttext
\writetolist[chapter]{1}{Dobré ráno}
\expanded{\writetolist[chapter]{2}{Dobré odpoledne}}

\placecontent
\stoptext
---

> 
> Now I have solved it using not-stable solution -- I am using triple sequence 
> of \expandafter to expand \XMLflush after \chapter instead \expanded. The 
> solution is not stable as it is ConTeXt implementation dependent.
> 
> On the other side, now I do not know, how to partially expand code 
> \chaper{\XMLflush{XMLTag}} to obtain sequence of simple unexpanded chars. 
> Simple \expandafter is not sufficient, more \expandafters is dirty trick and 
> full expansion (\expanded) leads to TOC entry problem. In TeX source this 
> cannot occur (or can occur in strange situations :-), in XML source this is 
> almost rule.
> 
> Maybe it would be useful to have in XML engine macro, which expands XMLdata 
> exactly to get read (original) content (like mine triple \expandafter). Maybe 
> such macro already exists and I am a real fool :-)
> 
> Thank you for help, have a nice day,
> 
> Martin
> 
> 
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>Behalf Of Hans Hagen
>>Sent: Monday, April 03, 2006 11:57 AM
>>To: [EMAIL PROTECTED]; mailing list for ConTeXt users
>>Subject: Re: [NTG-context] Problem with encoding, XML and writetolist...
>>
>>
>>Martin Kolařík wrote:
>>
>>>Aha, here maybe will be the solution :-)
>>>
>>>I'am using standalone Win32 distribution from Pragma and I'm 
>>
>>running texexec with --translate=cp1252cs. Typescripts use il2, 
>>which corresponds to fonts, of course. If I run the code without 
>>XML (if I transcribe XML to \chapter etc.) I get toc entry correctly too.
>>
>>>Where should I look for more? What is natural.ctx?
>>>  
>>
>>this is a one-to-one translation vector, and the one standard 
>>used by context; forget about all those other mappings, they can 
>>be done using regimes; you can use an il2 input regime, and any 
>>(resonable) font encoding, 
>>
>>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

-- 
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] Problem with encoding, XML and writetolist...

2006-04-05 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
> 
>>Martin Kolařík wrote:
>>  
>>
>>>Hi Hans,
>>>
>>>I've analyzed the situation using different combinations of regimes and 
>>>encodings, including switching off handling (\donothandleactivecharacter) 
>>>and it seems to me, that every text with chars > 127, which is fully 
>>>expanded (as in 8bit.tex), must cause difficulties, because TOC entry read 
>>>back from TUO is scanned independently and thus spaces are gobbled.
>>>
>>
>>Hi Martin,
>>
>>we have discussed this problem a year ago. In that time I solve it just 
>>writing '{}' in each title where was needed, like
>>
>>   \chapter{Dobré{} ráno}
>>
>>Now I have cooked an automatic solution. It is not optimal (effective) 
>>but working. The only needs is to redefine
>>
>>   \def\numcharacter#1{\char#1{}}
>>   \let\dochar\numcharacter
>>
>>and to load appropriate encoding file once more. Since it is banned a 
>>new macro \reuseencoding was introduce:
>>
>>For Hans:
>>It would be nice if this feature was enabled in a standard distro. 
>>Perhaps you will find some more optimal solution...
>>
>>---
>>\unprotected
>>\def\doreuseencoding#1%
>>   {\letvalue{\c!file\f!encodingprefix#1}\empty
>>\makeshortfilename[\f!encodingprefix#1]%
>>\startreadingfile
>>\readsysfile\shortfilename
>>  {\showmessage\m!encodings2{#1}}
>>  {\showmessage\m!encodings3{#1}}%
>>\stopreadingfile}
>>\def\reuseencoding[#1]%
>>   {\processcommalist[#1]\doreuseencoding}
>>
>>
>>\def\numcharacter#1{\char#1{}}
>>\let\dochar\numcharacter
>>
>>\reuseencoding[ec]
>>
>>\enableregime[latin2]
>>
>>\starttext
>>\writetolist[chapter]{1}{Dobré ráno}
>>\expanded{\writetolist[chapter]{2}{Dobré odpoledne}}
>>
>>\placecontent
>>\stoptext
>>  
> 
> the {} may break liguature building (and maybe kerning) ... taco knows ...

Hmmm, that's right.

> I got a brainwave ... 
> 
> \enableregime[latin2]
> 
> \starttext
> 
> \def\numcharacter#1{\rawcharacter{#1}}%
> \let\dochar\numcharacter

So there is no need to have only 7-bit chars in tui/tuo etc.? All right, 
I think this will be better also for sorting. Sounds promissing.

> \writetolist[chapter]{1}{Dobré ráno}
> 
> \expanded{\writetolist[chapter]{2}{Dobré odpoledne}}
> 
> \placelist[chapter][criterium=text]
> 
> test
> 
> \typefile{test.tuo}
> 
> \stoptext
> 
> this can be sped up (a bit) with 
> 
> % \dostepwiserecurse{0}{255}{1}
> %   {\setevalue{rchr:\recurselevel}{\rawcharacter\recurselevel}}
> 
> % \def\rawcharacter#1{\getvalue{rchr:#1}}
> 
> this means that all chars are round tripped to themselves in output files! 
> 
> raw characters are not active and they are therefore equivalent to \char  
> 
> it's enough then to put 
> 
> \def\numcharacter#1{\rawcharacter{#1}}%
> \let\dochar\numcharacter
> 
> into cont-new.tex 
> 
> (i will discuss this in more detail with taco later) 

All right, thanks Hans,
Vit

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


Re: [NTG-context] beta

2006-04-08 Thread Vit Zyka
Mojca Miklavec wrote:
> On 4/4/06, Taco Hoekwater wrote:
> 
>>
>>Hans Hagen wrote:
>>
>>>Hi,
>>>
> 
> 
>>>- for mojca: take a look at regi-syn and let me know what vectors need
>>>to be be added to the distribution
> 
> 
>>Mojca, it would be nice if you could give a go/nogo signal quickly.
>>I am slowly getting drowned with all the diff files so I am really
>>eager to have Hans go ahead and release a new version :)
> 
> 
> Taco & Hans: I'm really really really sorry. I didn't notice that
> question in thousands of mails on the list.
> 
> Thanks a lot for adding the file, Hans!
> 
> This line
> \defineregimesynonym[cp-1250] [cp1250]
> is not really needed: I never spotted any cp125* with a hyphen
> inbetween (in contrast to utf or iso encodings), otherwise everything
> seems to be working ok.
> 
> \defineregimesynonym[1250] [cp1250]
> is also OK (didn't thought about it ;).
> 
> 
> If you're asking me about the other changes: here's the same list that
> I already suggested:
> 
> renaming:
> 
> windows -> cp1252
> il1 -> iso-8858-1
> latin2 -> iso-8858-2
> iso88595 -> iso-8858-5
 ^^
Everywhere should be 8859!

Everything else seems all right to me.
Vit

> grk -> iso-8859-7

> 
> 
> And then adding the following definitions (cp1250 is already there):
> 
> \defineregimesynonym[utf-8][utf]
> \defineregimesynonym[utf8][utf]
> 
> \defineregimesynonym[windows-1250][cp1250]
> \defineregimesynonym[windows-1251][cp1251]
> \defineregimesynonym[windows-1252][cp1252]
> \defineregimesynonym[windows-1253][cp1253]
> \defineregimesynonym[windows-1254][cp1254]
> %defineregimesynonym[windows-1255][cp1255] % not supported yet (Hebrew)
> %defineregimesynonym[windows-1256][cp1256] % not supported yet (Arabic)
> \defineregimesynonym[windows-1257][cp1257]
> %defineregimesynonym[windows-1258][cp1258] % not supported yet (Vietnamese)
> 
> % for historical reasons / compatibility
> \defineregimesynonym[windows][cp1252]
> 
> % 5 - Cyrillic
> % 6 - Arabic (not supported)
> % 7 - Greek
> % 8 - Hebrew (3 signs missing)
> % 11 - Thai (not supported)
> 
> \defineregimesynonym[il1][iso-8859-1]
> \defineregimesynonym[il2][iso-8859-2]
> \defineregimesynonym[il3][iso-8859-3]
> \defineregimesynonym[il4][iso-8859-4]
> \defineregimesynonym[il5][iso-8859-9]
> \defineregimesynonym[il6][iso-8859-10]
> \defineregimesynonym[il7][iso-8859-13]
> %defineregimesynonym[il8][iso-8859-14]
> \defineregimesynonym[il9][iso-8859-15]
> \defineregimesynonym[il10][iso-8859-16]
> 
> \defineregimesynonym[latin1][iso-8859-1]
> \defineregimesynonym[latin2][iso-8859-2]
> \defineregimesynonym[latin3][iso-8859-3]
> \defineregimesynonym[latin4][iso-8859-4]
> \defineregimesynonym[latin5][iso-8859-9]
> \defineregimesynonym[latin6][iso-8859-10]
> \defineregimesynonym[latin7][iso-8859-13]
> %defineregimesynonym[latin8][iso-8859-14]
> \defineregimesynonym[latin9][iso-8859-15]
> \defineregimesynonym[latin10][iso-8859-16]
> 
> % for historical reasons / compatibility
> \defineregimesynonym[iso88595][iso-8859-5]
> \defineregimesynonym[grk][iso-8859-7]
> 
> 
> 
> I don't know whether and how often people use all those encodings (I'm
> only pretty sure that people use the cp1250 one). LaTeX offers all of
> them for example. I would suggest at least to rename the five regimes
> mentioned above and to point to the more consistent names using
> synonyms. The mentioned regimes are all present on
> http://pub.mojca.org/tex/enco/contextbase/, so it's up to you wheter
> you add any of the other regimes to the distribution or perhaps better
> wait till someone requests them. (There are so many files that taking
> them all would almost require a separate folder.) I'm happy now that
> cp1250 is in and I'm not using any other regime, so it's really not my
> decision.
> 
> As far as I remember there were also some inconsistencies in the
> present greek and cyrillic regime.
> http://pub.mojca.org/tex/enco/contextbase/regi-vis.tex is slightly
> different than the file in the distro (uses named glyphs), but
> conceptually the same.
> 
> Mojca
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

-- 
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-08 Thread Vit Zyka
Hans Hagen wrote:
> � wrote:
> 
>>Hello,
>>I would like to clip an external eps-figure as LaTeX does with the clip
>>option.
>>
>>Please consider the attachment as an example for en eps with white border
>>and the following LaTeX and ConTeXt code:
>>
>>\starttext % no clipping possible here
>>bla bla bla bla bla bla bla bla bla bla bla bla
>>
>>\externalfigure[test-img][width=0.5\textwidth]
>>
>>bla bla bla bla bla bla bla bla bla bla bla bla
>>\stoptext
>>
>>\documentclass{article}
>>\usepackage{graphicx}
>>\begin{document} % here the white border is clipped away
>>bla bla bla bla bla bla bla bla bla bla bla bla
>>
>>\includegraphics[clip,width=0.5\textwidth]{test-img}
>>
>>bla bla bla bla bla bla bla bla bla bla bla bla
>>\end{document}
>>
>>Or is there already such (undocumented) feature?
>>
>>  
> 
> \clip[nx=10,ny=20,x=2,y=4]{}
> 
> and alike (grep for clip)
> 
> Hans

Peter was asking for something different, I believe.

\clip do the thing well but you have to measure a bb somewhere, e.g. in 
GhostView. Since \externalfigure have to know bb then an option 'clip' 
can do that without manual measuring. There might be even en extension: 
apart from 'clip' option there could also be 'bb=10 20 100 200' option 
for overwritting original boundingbox. Clipping a figures would be a bit 
more strightforward.

Vit

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


Re: [NTG-context] long style of a row to put in a macro

2006-04-10 Thread Vit Zyka
Hans Hagen wrote:
> olivier Turlier wrote:
> 
>>Hi everybody,
>>
>>In writing a glossary of building terms (approx. 400 entries) in a natural 
>>TABLE.
>>
>>For each letter, A, B, C, I want a screen background, spanning on 2 colomns,
>>with \bf style, etc.  : this leads to a rather long definition that I don't 
>>wish
>>to copy on each new letter row, so I made a little macro to recall this setup.
>>
>>This system is not working yet, so i beg your help, TIA for any answer
>>
>>%%%
>>\setupcolors[state=start]
>>
>>\starttext
>>
>>\def\Rowa#1{nc=2,background=color,backgroundcolor=screen,style=\bf,
>>frame=off,align={middle,lohi}{#1}}
>>
>>\bTABLE[frame=off,width=broad,split=yes]
>>\setupTABLE[column][1][style=\bf,align={right,lohi},width=3cm]
>>\setupTABLE[column][2][style=\tf,align={lohi}]
>>  
> 
> you can say odd/even etc instead of 1,3,5 

Thinking about a feature request:

I very frequentely set every third (3,6,9,...) row with gray background 
to make wide tables well-arranged. I did it by a loop or with a script 
that generates data. Some 'everythird' equivalent to 'even' or 'odd' 
would be more strightforward.

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


[NTG-context] \setupframed[...][...=...]

2006-04-11 Thread Vit Zyka
Hi,

I tied to extend \setupframed[...=...] to also \setupframed[...][...=...]:

-
\unprotect
\def\setupframed{\dodoubleempty\dosetupframed}
\def\dosetupframed{%
   \ifsecondargument
 [EMAIL PROTECTED]
   \else
 [EMAIL PROTECTED]
   \fi
}
\def\dosinglesetupframed[#1][#2]{\getparameters[\??oi][#1]}
\def\dodoublesetupframed[#1][#2]{%
   \bgroup
 \def\dodoubleempty{}%
 \def\doframed[##1]{##1}%
 \xdef\tmp{\getvalue{#1}}%
   \egroup
 
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@EA[\tmp,#2]}%
}
\protect

\starttext
\setupframed[framecolor=yellow]  \framed{A}
\defineframed[myframed][framecolor=blue] \myframed{B}
\setupframe[myframe][framecolor=red] \myframed{C}
\stoptext
-

it works but with fully expansion of options. So it works a bit 
differently in a cases
1)
\def\ONorOFF{off}
\defineframed[myframed][frame=\ONorOFF]
\def\ONorOFF{on}\myframed{A}

2)
\def\ONorOFF{off}
\defineframed[myframed][frame=\ONorOFF]
\setupframed[myframe][framecolor=red]
\def\ONorOFF{on}\myframed{A}

Is there some simple solution? Or it has to be rewritten in a way like 
other \definesomething[...] (storing every parameter/definition-instance 
in a macro)? If sometimes this code would be reviewed I vote for doing 
\setupframed in this 'standard' ConTeXt way.

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


Re: [NTG-context] feature request: clipping option for externalfigure

2006-04-11 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
> 
>>Hans Hagen wrote:
>>  
>>
>>>� wrote:
>>>
>>>
>>>
>>>>Hello,
>>>>I would like to clip an external eps-figure as LaTeX does with the clip
>>>>option.
>>>>
>>>>Please consider the attachment as an example for en eps with white border
>>>>and the following LaTeX and ConTeXt code:
>>>>
>>>>\starttext % no clipping possible here
>>>>bla bla bla bla bla bla bla bla bla bla bla bla
>>>>
>>>>\externalfigure[test-img][width=0.5\textwidth]
>>>>
>>>>bla bla bla bla bla bla bla bla bla bla bla bla
>>>>\stoptext
>>>>
>>>>\documentclass{article}
>>>>\usepackage{graphicx}
>>>>\begin{document} % here the white border is clipped away
>>>>bla bla bla bla bla bla bla bla bla bla bla bla
>>>>
>>>>\includegraphics[clip,width=0.5\textwidth]{test-img}
>>>>
>>>>bla bla bla bla bla bla bla bla bla bla bla bla
>>>>\end{document}
>>>>
>>>>Or is there already such (undocumented) feature?
>>>>
>>>> 
>>>>  
>>>
>>>\clip[nx=10,ny=20,x=2,y=4]{}
>>>
>>>and alike (grep for clip)
>>>
>>>Hans
>>>
>>
>>Peter was asking for something different, I believe.
>>
>>\clip do the thing well but you have to measure a bb somewhere, e.g. in 
>>GhostView. Since \externalfigure have to know bb then an option 'clip' 
>>can do that without manual measuring. There might be even en extension: 
>>apart from 'clip' option there could also be 'bb=10 20 100 200' option 
>>for overwritting original boundingbox. Clipping a figures would be a bit 
>>more strightforward.
>>  
> 
> i dunno what the intended effect is but here's an example
> 
> \starttext
> 
> \startuseMPgraphic{test}
> draw fullcircle scaled 4cm withpen pencircle scaled 1cm ;
> setbounds currentpicture to boundingbox fullcircle scaled 4cm ;
> \stopuseMPgraphic
> 
> \ruledhbox{\useMPgraphic{test}}
> 
> \vskip3cm
> 
> \ruledhbox{\clip{\useMPgraphic{test}}}
> 
> \stoptext

I see, I did not realize such simple usage of \clip (without options). 
That do exactly what was thinking about. One character of typing 
difference between:

   \clip{\externalfigure{test}}

and

   \externalfigure[clip]{test}

is not crutial:) So sorry for noise.

But as far as I know, \clip works only with left|top,width|height 
params. Could right|bottom be added (assuming at least one from 
left-width-right and top-height-bottom is missing - if not width|height 
is ignored)? Or there is again some secret that I missed?

Vit

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


Re: [NTG-context] \setupframed[...][...=...]

2006-04-12 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
> 
>>Hi,
>>
>>I tied to extend \setupframed[...=...] to also \setupframed[...][...=...]:
>>
>>-
>>\unprotect
>>\def\setupframed{\dodoubleempty\dosetupframed}
>>\def\dosetupframed{%
>>   \ifsecondargument
>> [EMAIL PROTECTED]
>>   \else
>> [EMAIL PROTECTED]
>>   \fi
>>}
>>\def\dosinglesetupframed[#1][#2]{\getparameters[\??oi][#1]}
>>\def\dodoublesetupframed[#1][#2]{%
>>   \bgroup
>> \def\dodoubleempty{}%
>> \def\doframed[##1]{##1}%
>> \xdef\tmp{\getvalue{#1}}%
>>   \egroup
>> 
>>[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
>>PROTECTED]@EA[\tmp,#2]}%
>>}
>>\protect
>>
>>\starttext
>>\setupframed[framecolor=yellow]  \framed{A}
>>\defineframed[myframed][framecolor=blue] \myframed{B}
>>\setupframe[myframe][framecolor=red] \myframed{C}
>>\stoptext
>>-
>>
>>it works but with fully expansion of options. So it works a bit 
>>differently in a cases
>>1)
>>\def\ONorOFF{off}
>>\defineframed[myframed][frame=\ONorOFF]
>>\def\ONorOFF{on}\myframed{A}
>>
>>2)
>>\def\ONorOFF{off}
>>\defineframed[myframed][frame=\ONorOFF]
>>\setupframed[myframe][framecolor=red]
>>\def\ONorOFF{on}\myframed{A}
>>
>>Is there some simple solution? Or it has to be rewritten in a way like 
>>other \definesomething[...] (storing every parameter/definition-instance 
>>in a macro)? If sometimes this code would be reviewed I vote for doing 
>>\setupframed in this 'standard' ConTeXt way.
>>
>>  
> 
> next time post with less typos -) 

Sorry, next time I try to choose better time then 3 o'clock at night.

> anyway, here is a working solution: 
> 
> \unprotect
> 
> \def\setupframed
>   {\dodoubleempty\dosetupframed}
> 
> \def\dosetupframed
>   {\ifsecondargument
>  [EMAIL PROTECTED]
>\else
>  [EMAIL PROTECTED]
>\fi}
> 
> \def\dosinglesetupframed[#1][#2]%
>   {\getparameters[\??oi][#1]}
> 
> \def\dodoublesetupframed[#1][#2]%
>   {\bgroup
>\let\dodoubleempty\empty
>
> \def\doframed[##1]{\gdef\globalredefinedframed{\dodoubleempty\doframed[##1,#2]}}%
>\getvalue{#1}%
>\egroup
>\letvalue{#1}\globalredefinedframed}
> 
> \protect

Clever.

> keep in mind that some 100 setups of the same instance may lead to rather big 
> definitions 

Yes, but no problem, I need only one (or two) resetuping after definition.

> \setupcolors[state=start]
> 
> \starttext
> \setupframed[framecolor=yellow]  \framed{A}
> \defineframed[myframed][framecolor=blue] \myframed{B}
> \setupframed[myframed][framecolor=red]\myframed{C}
> \stoptext
> 
> i need to think about adding this, since it may break other things (i will 
> run it for a while) 

All right.

> you can add such patches to cont-loc.tex which is not distributed but read at 
> runtime 

I see, I did not know about this file. Fine.

Thanks Hans,
Vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupframed[...][...=...]

2006-04-12 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
> 
>>Is there some simple solution? Or it has to be rewritten in a way like 
>>other \definesomething[...] (storing every parameter/definition-instance 
>>  
> 
> btw, there is (beware: use some unique name):
> 
> \presetlocalframed[myframed]
> \setuplocalframed[myframed][width=4cm,height=2cm]
> \localframed[myframed][framecolor=green]{oeps}

localframed was a mysterious stuff for me.

It seems do exactly what I wanted. In this perspective the 
\setupframed[...][...=...] is not needed (only for not being suprised 
since its absence is a bit against context filosofy).

I just wanted to fill texshow web, but it is missing this stuff. So I 
added \*localframed note in missing texshow items on wiki.

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


Re: [NTG-context] \setupframed[...][...=...]

2006-04-12 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
> 
>>Hans Hagen wrote:
>>  
>>
>>>Vit Zyka wrote:
>>>
>>>
>>>
>>>>Is there some simple solution? Or it has to be rewritten in a way like 
>>>>other \definesomething[...] (storing every parameter/definition-instance 
>>>> 
>>>>  
>>>
>>>btw, there is (beware: use some unique name):
>>>
>>>\presetlocalframed[myframed]
>>>\setuplocalframed[myframed][width=4cm,height=2cm]
>>>\localframed[myframed][framecolor=green]{oeps}
>>>
>>
>>localframed was a mysterious stuff for me.
>>
>>It seems do exactly what I wanted. In this perspective the 
>>\setupframed[...][...=...] is not needed (only for not being suprised 
>>since its absence is a bit against context filosofy).
>>
>>I just wanted to fill texshow web, but it is missing this stuff. So I 
>>added \*localframed note in missing texshow items on wiki.
>>  
> 
> it actually is a low level command, also, there is \defineframedtext which is 
> (1) configurable and (2) provided \myframed as well
> 
> Hans 

And the content of \framed and \framedtext is formated the same way?

Hmm I am a bit confused with \framed v. \localframed v. \framedtext. If 
the difference is only in an interface or even in functionality. I will 
have to study the code but not time for that now.

Thanks for this note.
Vit


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


[NTG-context] feature request: \everytrypass

2006-04-20 Thread Vit Zyka
Dear ConTeXters,

I am counting occurence of some macro in the text. Problem is when this 
macro is inside \bTABLE (and may be somewhere else). Due to try passes 
the increment is counter is incremented more then once and the result is 
multiplied.

It is possible to implement some \everytrypass in which user can (e.g.) 
null incrementing? Or there is some another solution?

Thanks
Vit

Minimal example:
---
\newcount\C
\def\doIncrement{\global\advance\C by1\relax}

% \def\nullIncrement{\let\doIncrement\relax}
% \appendtoks \nullIncrement to \everytrypass

\starttext
   \bTABLE
 \bTR\bTD Counter\doIncrement\eTD\eTR
   \eTABLE
   \message{ <> }%
\stoptext

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


Re: [NTG-context] feature request: \everytrypass

2006-04-21 Thread Vit Zyka
Peter Rolf wrote:
> Vit Zyka wrote:
>> Dear ConTeXters,
>>
>> I am counting occurence of some macro in the text. Problem is when this 
>> macro is inside \bTABLE (and may be somewhere else). Due to try passes 
>> the increment is counter is incremented more then once and the result is 
>> multiplied.
>>
>> It is possible to implement some \everytrypass in which user can (e.g.) 
>> null incrementing? Or there is some another solution?
>>
>> Thanks
>> Vit
>>
>> Minimal example:
>> ---
>> \newcount\C
>> \def\doIncrement{\global\advance\C by1\relax}
> 
> \def\doIncrement{\iftrialtypesetting
>   \else\global\advance\C by1\relax\fi}%
> 
> donno if this works correctly inside a TABLE...

Oh, it is already done! ... How I was able to think in opposite...
Seems it works correctly in TABLE.

... but there is (at least) two \trialtypesettingtrue missing in caption 
composition. Bellow is the patch (see VZ comment marks).

Thanks Peter
Vit

--
\def\dopreparestackcaptionaut#1#2#3#4%
   {\doifsomething\@@kjkjalign
  {\ExpandBothAfter\doifnotinset\v!middle\@@kjkjalign
 {\let\captionovershoot\!!zeropoint}}%
\edef\captionhsize{\the\wd\tempfloatbox}%
\ifdim\captionhsize>\hsize
  % float is wider than \hsize
  \dosetraggedvbox\@@kjkjalign
  \setbox\scratchbox\raggedbox % trial run
{\hsize\captionhsize
 \trialtypesettingtrue % VZ
 \notesenabledfalse
 \putcompletecaption{#4}{#2}{#3}{0}}%
  \ifdim\ht\scratchbox>\lineheight % more lines
\dosetraggedvbox\@@kjkjalign
\setbox\tempcaptionbox\raggedbox
  {\hsize\captionhsize
   \advance\hsize -\captionovershoot\relax
   \ifdim\hsize<\captionminwidth\relax
 \hsize\captionhsize
   \fi
   \putcompletecaption{#4}{#2}{#3}{0}}%
  \else
\setbox\tempcaptionbox\raggedbox
  {\hsize\captionhsize
   \putcompletecaption{#4}{#2}{#3}{0}}%
  \fi
\else
  % float is smaller of equal to \hsize
  \ifdim\captionhsize<\captionminwidth\relax
\scratchdimen\captionminwidth % float smaller than min width
\edef\captionhsize{\the\scratchdimen}%
  \fi
  \setbox\scratchbox\vbox % test with overshoot
{\scratchdimen\captionhsize
 \trialtypesettingtrue % VZ
 \advance\scratchdimen \captionovershoot
 \advance\scratchdimen 3em % an average word length
 \ifdim\scratchdimen<\hsize \hsize\scratchdimen \fi
 \notesenabledfalse
 \putcompletecaption{#4}{#2}{#3}{0}}%
  \ifdim\ht\scratchbox>\lineheight
% at least an average word longer than a line
\dosetraggedvbox\@@kjkjalign
\setbox\tempcaptionbox\raggedbox
  {\scratchdimen\captionhsize
   \advance\scratchdimen \captionovershoot
   \ifdim\scratchdimen<\hsize \hsize\scratchdimen \fi
   \putcompletecaption{#4}{#2}{#3}{0}}%
  \else
% just over a line, don't use an overshoot
 
\expanded{\doifcommonelse{\@@kjkjalign}}{\v!left,\v!right,\v!flushleft,\v!flushright}
  {\dosetraggedvbox\@@kjkjalign
   \setbox\tempcaptionbox\raggedbox
 {\hsize\captionhsize
  % strange : \raggedcenter
  \putcompletecaption{#4}{#2}{#3}{0}}}
  {% nicer
   \setbox\tempcaptionbox\cbox
 {\hsize\captionhsize
  \putcompletecaption{#4}{#2}{#3}{0}}}%
  \fi
\fi}

> 
> Greets, Peter
> 
>> % \def\nullIncrement{\let\doIncrement\relax}
>> % \appendtoks \nullIncrement to \everytrypass
>>
>> \starttext
>>\bTABLE
>>  \bTR\bTD Counter\doIncrement\eTD\eTR
>>\eTABLE
>>\message{ <> }%
>> \stoptext
>> 

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


Re: [NTG-context] More Feature Requests for math

2006-05-18 Thread Vit Zyka
Aditya Mahajan wrote:
> Hi Hans,
> 
> 1. Allow \definematrix and \definemathcases to have a parameter 
> displaystyle or textstyle. Right now, everything is in textstyle. 
 > ...
> I don't know which syntax is better displaystyle=on|off (yes|no) or 
> [mathstyle=display|text].

I vote for [mathstyle=display|text] in such cases.

It is more descriptive in the reference list like tex-show (showing all 
option variants on a single line; displaystyle=on|off does not say there 
is any other 'textstyle'). Moreover, I pernamently forget which option 
use on|off and which yes|no.

Vit

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


[NTG-context] notes on columnset typesetting (not only about)

2006-05-25 Thread Vit Zyka
Dear ConTeXters,

surprisingly, in this e-mail you will find any bug report! It is a 
summary of my experience with typesetting of a little complex book 
layout. I have finnished it during a one year long winning battle. Thank 
to everybody who helped, especially of course to Hans.

Thank you very much!

--

Next text can show, what is in present ConTeXt (or a bit older one)
possible and what is still problematic.

Firstly, let us show some examples:
- transparency frames
   ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-body1.pdf
- two columnsets + marginals + figures + balancing
   ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-body2.pdf
- two columnsets + page float
   ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-body3.pdf
- three columnsets + floats
   ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-encyk.pdf
- content
   ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-content.pdf
- index
   ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-index.pdf

Legend for comming comments:
   + pros
   - cons
   ? dreaming about new feature
   ! attention
   = my (perhaps suboptimal) solution
   * note

Comments:
 > grid
   + very powerfull and working support
   + works gracefully with columnsets and floats
   * avoiding orphans and widows was done manually by:
 = enlarging/decreasing figures
 = adding/removing (half)blank lines around heads
   ? if we want to do avoiding orphans and widows automatically,
 we would probably need the glue with DISCRETE STEP of
 stretch/shrink.
 Then we can say e.g.
   \let\bl=\baselineskip
   \setuphead
 [section]
 [before=\vskip1\bl plus1\bl withstep1\bl]
 to get vertical space before section head exactly 1 OR 2
 \baselineskip height.
 Another solution with stepwise box:
   \vbox to2\bl plus2\bl withstep1\bl{\vfil heading \vfil}
   ! the only problem was in the table of contents + columns;
 from the first line there was a small shift between columns;
 perhaps \splittopskip? but setting it to large enough value
 does not solve it.

> columnsets
   + very nice feature, really;
 after Hans improvement seems that some floats soes not dissappered 
now, but need to be carefull
   + floats insertion with specifying place
 ? for top float: automatically setting \placeongrid[{broad,high}]
   for bottom float \placeongrid[{broad,low}]
   to be vertically align with text on the rest of column(s)
   * balancing: only manually by setting:
\setupcolumnsetlines[columnset_id][columnset_page][column][line]
 ! Not so painful if it not occures next: If there are many
floats near balancing place they sometimes disappear or cause ignoring
balancing - even if they can fit on the place.
 ? understand that automatical balancing with floats is extremly 
difficult
   * page floats: big improvements during the work.
 ! running marginal text continue through the page with only float
 = so you have to manually insert blank vertical margin on such place
   * header & footers: Hans did a new column marking:
\getmarking[marking_id][column][last/first].
 ! There are some problems [perhaps with expansion (different 
counter number and text)] if marking goes between two columnsets (framed 
chapters cross two cols in examples).
 = found acceptable hack but need more ivestigation on small 
examples for cleaning.

 > metapost inclusion
   + the most powerful, smooth and stable part of ConTeXt in my opinion 
(see random frames, circles with transparent graphics, lines with color 
shading)
   = if you have many (over 1024!) shadings (-> MP specials) do
 \settrue \manyMPspecials

> index (register)
   + nice possibility to differentiate several groups (here 8 from which 
4 have different visual marking of page number, see index example)
   - sorting: until this spring there was no satisfied backround for
Czech sorting in newtexutil.rb till this spring.
 = I did dirty reimplementation of old texutil.pl for doing so
 * I have to have a look for new sorting now.
   - coupling: page numbers with group preserving (see example)
 = also in texutil.pl reimplementation

 > regime
   * my great discovery was that the regime IS
   \enableregime{latin2} % correct
 and NOT
   \enableregime{il2} % incorrect!

 > pseudo-small caps
   = http://wiki.contextgarden.net/Pseudo_Small_Caps

 > ...

I provide the environment files (design definition) in case of 
somebody's interest. But suddenly they are very very very dirty. 
Partially due to my unsufficient ConTeXt knowledge, partially due to my 
despair during trying many ways to solve some problem, partially due to 
putting pathes to old ConTeXt (it was fresh of course when the work 
begins), ...:
   ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-env.tex (core)
   ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-mark.tex (markup)

Best
Vit

_

Re: [NTG-context] notes on columnset typesetting (not only about)

2006-05-26 Thread Vit Zyka
batela wrote:
> Many thanks for sharing your env file. I'm trying to use that making 
> some projects and components files. But every-time I run texexec  I 
> found a error message. For fixing that I will need to include the files 
> vz-cont.tex and vg05-general.

Hi she/he Batela,

you are right (vz-cont contains my local settings, abbreviations and 
some macro patches related to current instalation; vg05-general contains 
Czech hyphenation exceptions and balancing definitions like:
   \setupcolumnsetlines[Rok-2][4][1][45]
   \setupcolumnsetlines[Rok-2][4][2][45]
). In closer view you will find even more included files like member 
list generated from XML and used for full name expansion to index. But 
there are provided all files that define design and can illustrate 
solutions. Take them as an inspiration and an example how to use some 
construct. I personally do not try to compile it with todays ConTeXt.

> Did you can provide me some complete example of your work?

So, the answer is no.

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


Re: [NTG-context] notes on columnset typesetting (not only about)

2006-05-27 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
>> Firstly, let us show some examples:
>> - transparency frames
>>ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-body1.pdf
>> - two columnsets + marginals + figures + balancing
>>ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-body2.pdf
>> - two columnsets + page float
>>ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-body3.pdf
>> - three columnsets + floats
>>ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-encyk.pdf
>> - content
>>ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-content.pdf
>> - index
>>ftp://cmp.felk.cvut.cz/pub/cmp/users/zyka/vg-ex/vg05-ex-index.pdf
>>   
> nice; how about an article on such a project for the maps/tugboat

hmmm, I will think about it. But in the summer time I want to spent my 
spare time by beginners manual translation...

>> Comments:
>>  > grid
>>? if we want to do avoiding orphans and widows automatically,
>>  we would probably need the glue with DISCRETE STEP of
>>  stretch/shrink.
>>  Then we can say e.g.
>>\let\bl=\baselineskip
>>\setuphead
>>  [section]
>>  [before=\vskip1\bl plus1\bl withstep1\bl]
>>  to get vertical space before section head exactly 1 OR 2
>>  \baselineskip height.
>>  Another solution with stepwise box:
>>\vbox to2\bl plus2\bl withstep1\bl{\vfil heading \vfil}
>>   
> hm, worth investigating but maybe wait for what pdftex will bring some 
> day soon

you mean things about lua?

>>! the only problem was in the table of contents + columns;
>>  from the first line there was a small shift between columns;
>>  perhaps \splittopskip? but setting it to large enough value
>>  does not solve it.
>>   
> could be; actually i wish i'd set topskip to strutheight by default 
> which would make life way easier

perhaps; but imagine different strutheight in different columns (each 
column top line contains different font size - in the content it can be 
very frequent if each head level is typeset with diferent size); what about
   \setupcolumns[topskip=dimen|font] if font is given, dimen is calc

>>  after Hans improvement seems that some floats soes not dissappered 
>> now, but need to be carefull
>>   
> i think that indeed some floats get lost bugs were solved but it's 
> always a bit tricky with left-overs
>>+ floats insertion with specifying place
>>  ? for top float: automatically setting \placeongrid[{broad,high}]
>>for bottom float \placeongrid[{broad,low}]
>>to be vertically align with text on the rest of column(s)
>>   
> there is some control possible, so remind me when you need it again 
> (\OTRSETprepareforcolumnslot permits log/middle/high handling but it's 
> not keyword driven (yet)

OK.

>>* balancing: only manually by setting:
>> \setupcolumnsetlines[columnset_id][columnset_page][column][line]
>>  ! Not so painful if it not occures next: If there are many
>> floats near balancing place they sometimes disappear or cause ignoring
>> balancing - even if they can fit on the place.
>>  ? understand that automatical balancing with floats is extremly 
>> difficult
>>   
> indeed
>>* page floats: big improvements during the work.
>>  ! running marginal text continue through the page with only float
>>  = so you have to manually insert blank vertical margin on such place
>>* header & footers: Hans did a new column marking:
>> \getmarking[marking_id][column][last/first].
>>  ! There are some problems [perhaps with expansion (different 
>> counter number and text)] if marking goes between two columnsets (framed 
>> chapters cross two cols in examples).
>>   
> hm, some day ...
>>  = found acceptable hack but need more ivestigation on small 
>> examples for cleaning.
>>   
> ok
>>  > metapost inclusion
>>+ the most powerful, smooth and stable part of ConTeXt in my opinion 
>> (see random frames, circles with transparent graphics, lines with color 
>> shading)
>>   
>>= if you have many (over 1024!) shadings (-> MP specials) do
>>  \settrue \manyMPspecials
>>   
> this is the default now (today i played with persistent mp runs and that 
> will speed up runtime processing enourmously)

what is persistent mp run? It means mp that has not changed since 
previous run? It would be great. (btw compilation the whole book takes 
about 20 min on 3.2 Ghz AMD.)

Vit

>>> index (register)
>>&g

Re: [NTG-context] Font size in FLOWchart module.

2006-06-01 Thread Vit Zyka
John R. Culleton wrote:
> On Monday 08 August 2005 07:59, Hans Hagen wrote:
>> Vit Zyka wrote:
>>> John R. Culleton wrote:
>>>> I am using the flowchart module to create various goodies. What
>>>> I don't know how to do is regulate the size of the font for the
>>>> text that goes inside the little boxes. Any suggestions?
>>> I do not known any other way but put the size/style together with text:
>>>
>>> \startFLOWcell
>>>   \name{Obs}
>>>   \location{1,1}
>>>   \shape{action}
>>>   \text{{\switchtobodyfont[16pt]\bf Text in cell}}
>>> \stopFLOWcell
>>>
>>> If you want to be consistent over several cells, define a macro.
>>> vit
>> in m-chart you will find:
>>
>> \setupFLOWcharts
>>   [\c!option=,
>>\c!bodyfont=,
>>\c!dot=,  % private option
>>\c!width=12\bodyfontsize,
>>\c!height=7\bodyfontsize,
>>\c!maxwidth=,
>>\c!maxheight=,
>>\c!offset=\v!standard, % == auto offset
>>\c!dx=2\bodyfontsize,
>>\c!dy=2\bodyfontsize,
>>\c!nx=0, % 1,
>>\c!ny=0, % 1,
>>\c!x=1,
>>\c!y=1,
>>\c!autofocus=,
>>\c!focus=,
>>\c!background=,  % \v!color,
>>\c!backgroundcolor=\s!white,
>>\c!rulethickness=\linewidth,
>>\c!frame=\v!off,
>>\c!framecolor=]
>>
>> \setupFLOWlines
>>   [\c!corner=\v!round,
>>\c!arrow=\v!yes,
>>\c!dash=\v!no,
>>\c!radius=.375\bodyfontsize,  % 2.5\c!rulethickness
>>\c!color=FLOWlinecolor,
>>\c!rulethickness=.15\bodyfontsize,  % 2pt,
>>\c!offset=\v!none]
>>
>> \setupFLOWshapes
>>   [\c!default=action,
>>\c!framecolor=FLOWframecolor,
>>\c!background=\v!color,
>>\c!backgroundcolor=FLOWbackgroundcolor,
>>\c!backgroundscreen=\@@rsscreen,
>>\c!rulethickness=.15\bodyfontsize,  % 2pt,
>>\c!offset=.5\bodyfontsize]
>>
>> \setupFLOWfocus
>>   [\c!framecolor=FLOWfocuscolor,
>>\c!background=\@@FLOSbackground,
>>\c!backgroundcolor=\@@FLOSbackgroundcolor,
>>\c!backgroundscreen=\@@FLOSbackgroundscreen,
>>\c!rulethickness=\@@FLOSrulethickness,
>>\c!offset=\@@FLOSoffset]
>>
>> \definecolor [FLOWfocuscolor]  [s=.2]
>> \definecolor [FLOWlinecolor]   [s=.5]
>> \definecolor [FLOWframecolor]  [s=.7]
>> \definecolor [FLOWbackgroundcolor] [s=.9]
>>
>> so guess ... what variable can be used to set the bodyfont
>>
>> Hans
> 
> Revisiting this question after an absence I tried redefining
> various values from the above list within \setupFLOWcharts. None
> worked.  No doubt there is a magic combination I missed. But more
> than one user has been perplexed by this. 
> 
> You know I never did figure out the answer to this one. And
> factors such as \tfd were still too small. So I used the 

John, I guess you have

   maxwidth=\textwidth

and your natural chart is wider then \textwidth, is't it?
What happens if you put away maxwidth?

Vit

> TeX primitive: 
> \font\cx=bchr8r at 10pt
>  external to any other macro
> and for each text string in the chart definition
> I used the \cx prefix. This was simple,
> controllable, and did not interact with anything else. And the
> font came out at the expected size. 
> 
> A better (more Contextish) solution is still requested. 

___
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 Vit Zyka
Michal Kvasnicka wrote:
> 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 

I believe this bug was fixed more then a year ago. The names of ec-lm 
and lm-ec was changed during a time a year ago. teTeX 3.0 has not 
changed since last year since it is dead.

Vit

> 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


Re: [NTG-context] frontmatter

2006-06-22 Thread Vit Zyka
Willi Egger wrote:
> Hi Wolfgang,
> 
> I tried your code. Indeed there is no blank page after the "Schmutztitel".
> So you need to add to the \startstandardmakeup[page=yes]. - Something 

Moreover:

page=yes|right|... makes the same page break setting to both place: 
start...matter and stop...matter. I ussually need a different setting. 
For now I am solving it by

\setupsectionblock
   [frontpart]
   [page=right,
after={\setvalue{\??sb\@@sectionblock\c!page}{}}]

but it is not elegant. Can be introduced pagestart|pagestop?

Vit

> fuzzy is at hand with grid=yes.
> If you comment this line then the output is as expected.
> 
> 
> Willi
> 
> 
> [EMAIL PROTECTED] wrote:
>> Hallo!
>>
>> I am trying to use 'standardmakeup' to produce 'Schmutztitel'-page
>> with a following blank page. I think this is what 
>> \start\stopstandardmakeup is for (in doublesided environments).
>>
>> But the example bellow has first a blank page and then 
>> 'Schmutztitel'.
>>
>> There is a fourth blank page too.
>>
>> -
>> \setuppagenumbering  [alternative=doublesided]
>> \setuplayout [
>> footer=.04\paperheight, %1
>> grid=yes,   %2
>> marking=on,
>> location=middle,
>> width=middle,
>> height=middle]
>> \starttext
>> \startfrontmatter   %3
>> \startstandardmakeup
>> Schmutztitel
>> \stopstandardmakeup
>> \stopfrontmatter%3
>> bla
>> \stoptext
>> -
>>
>> My experiments:
>>
>> - a space-char between 'doublesided' and ']' removes the last blank 
>> page (strange).
>>
>> - uncommenting the lines in position 1,2,3 exclusivly results in the 
>> correct behaviour.
>>
>> I would like to understand what the problem is and why, for example, 
>> uncommenting frontmatter solves the problem.
>>
>> I thought frontmatter is the place to do title-things and so.
>>
>> Grüße, Wolfgang
>> ___
>> 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
> 

-- 
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] How to increase left and right padding of cells in a natural table?

2006-06-22 Thread Vit Zyka


Nicolas Grilly wrote:
> Hello,
>  
> I'm using natural tables (\bTABLE ... \eTABLE) and/ /I want to increase 
> the space between the cells borders and the text inside the cells (CSS 
> calls that left-padding and right-padding).
>  
> I didn't use parameter "offset" because I want to increase only left and 
> right padding. I don't want to increase top and bottom padding.

Let try
offset=2pt,% hor+vert each cell
distance=\zeropoint,   % individual column
columndistance=\zeropoint, % each column (whole table)
leftmargindistance=\zeropoint, % whole table
rightmargindistance=\zeropoint,% whole table

Vit

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


Re: [NTG-context] How to increase left and right padding of cells in a natural table?

2006-06-22 Thread Vit Zyka
Hans Hagen wrote:
> Nicolas Grilly wrote:
>> Vit,
>>
>> I just tried your solution, but it doesn't work: it adds space to the four
>> side of table cells. But I want to add space ONLY TO LEFT AND RIGHT, not to
>> top and bottom, like in the following illustration:
>>
>> -
>> |My text|
>> -
>>   
> inside the cell 
> 
> \leftskip1em \rightskip\leftskip 

Not to four sides but between columns. Rows distance is not affected. 
But you are right it does not increase distance between text and cell 
frame. Since natural tables uses \framed construct in each cell and 
\framed has no 'before'/'after'/'hoffset'/'leftoffset'/'rightoffset' it 
can not be simply set for whole natural table.

Solution?

a) quick:
  \bTD \hskip1cm Second movie \hskip2cm\null\eTD
or with macro:
\newdimen\lOffset \lOffset=1cm
\newdimen\rOffset \rOffset=2cm
\def\myNatTabCell#1{\bTD\hskip\lOffset#1\hskip\rOffset\null\eTD}
...
\myNatTabCell{Second movie}
...

b) systematic
create alternative \extframed with 'before', 'after', 'hoffset', 
'leftoffset', 'rightoffset', 'voffset', 'topoffset', 'bottomoffset'
and add switches:
   \bTABLE[alternative=extframed,leftoffset=1cm,rightoffset=2cm]

Vit

Minimal example:
---
\starttext
\bTABLE[frame=on]
\bTR
 \bTH My Title \eTH
 \bTH Your title \eTH
\eTR
\bTR
 \bTD First try \eTD
 \bTD Second try \eTD
\eTR
\bTR
 \bTD First movie \eTD
 \bTD \hskip1cm Second movie \hskip2cm\null\eTD
\eTR
\eTABLE
\stoptext

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


Re: [NTG-context] frontmatter

2006-06-22 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
>> Willi Egger wrote:
>>   
>>> Hi Wolfgang,
>>>
>>> I tried your code. Indeed there is no blank page after the "Schmutztitel".
>>> So you need to add to the \startstandardmakeup[page=yes]. - Something 
>>> 
>> Moreover:
>>
>> page=yes|right|... makes the same page break setting to both place: 
>> start...matter and stop...matter. I ussually need a different setting. 
>> For now I am solving it by
>>
>> \setupsectionblock
>>[frontpart]
>>[page=right,
>> after={\setvalue{\??sb\@@sectionblock\c!page}{}}]
>>   
> the problem has to do with an overflow of makeup in grid mode (due to already 
> present mark reset nodes); i uploaded a beta that (hopefully) corrects the 
> problem (thanks to taco for analyzing that it was textheight related) 
> 
> Hans 

Good news the bug was fixed.

What I proposed was not related to mentioned error. It just recalled me 
this problem of coupled 'page' option and the need to be split.

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


Re: [NTG-context] frontmatter

2006-06-22 Thread Vit Zyka
[EMAIL PROTECTED] wrote:
> I tried your code. Indeed there is no blank page after the
>> "Schmutztitel".
> So you need to add to the \startstandardmakeup[page=yes]. -
>> Something 
> 
 Moreover:

 page=yes|right|... makes the same page break setting to both
>> place: 
 start...matter and stop...matter. I ussually need a different
>> setting. 
 For now I am solving it by

 \setupsectionblock
[frontpart]
[page=right,
 after={\setvalue{\??sb\@@sectionblock\c!page}{}}]
   
>>> the problem has to do with an overflow of makeup in grid mode (due
>> to already present mark reset nodes); i uploaded a beta that
>> (hopefully) corrects the problem (thanks to taco for analyzing that
>> it was textheight related) 
>>> Hans 
>> Good news the bug was fixed.
>>
>> What I proposed was not related to mentioned error. It just recalled
>> me 
>> this problem of coupled 'page' option and the need to be split.
>>
>> Vit
> 
> Can you make a little example where a split 'page' option is from 
> use?

When you want the frontmatter starts et right (odd) page and mainmatter 
at arbitrary one.

Setting:
   \setupsectionblock[frontpart][page=right]
put
   \page[right]
at
   \startfrontmatter
and also at
   \stopfrontmatter
and that is why following mainmatter may skip even page starting at 
right one. My solution is above but it is not user friendly.

Vit

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

-- 
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] small caps italic and font switching inside math

2006-07-03 Thread Vit Zyka
Mojca Miklavec wrote:
> On 7/1/06, Taco Hoekwater wrote:
>> Mojca Miklavec wrote:
>>> On 6/29/06, Taco Hoekwater >>
 {\bf A test \variant[Caps] in small caps}
>>> Does this work on your computer? (I don't get any caps here.)
>> No it doesn't, it was a leftover from a failed experiment

I did not follow the thread closely but can it help you
   http://wiki.contextgarden.net/Pseudo_Small_Caps
?

vit

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


Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Vit Zyka
Hans Hagen wrote:
> Richard Gabriel wrote:
>> Hello Hans and others,
>>
>> I'd have two comments to the texmf/scripts/context/ruby/base/tex.rb 
>> script.
>>
>> 1. I find quite impractical that the formats (cont-en, cont-nl etc.) 
>> are hardcoded in the scripts. When one wants to add a new format, then 
>> he must add it on 4 or 5 places in the script, and do it again and 
>> again everytime when upgrading ConTeXt. :-(
> well, we can use:
> 
> def validsomething(str,something)
> if str then
> list = [str].flatten.collect do |s|
> something[s] || s # || s added
> end .compact.uniq
> if list.length>0 then
> if str.class == String then list.first else list end
> else
> false
> end
> else
> false
> end
> end
> 
> and then you can say
> 
> texexec --all --make --texformats=cont-xx
> 
> given that you have cont-xx.tex
> 
>> 2. Maybe this is an OS and TeX distribution specific issue...
>> I use TeXLive 2005 on Windows XP.
>> The TeX formats are located in C:\TeXLive\texmf-var\web2c. [the 
>> "kpsewhich --show-path=fmt" command also shows this path].
>> When generating a format using "texmfstart texexec --make en", the 
>> generated format is placed into C:\TeXLive\texmf-var\web2c\pdfetex. 
>> Then, when trying to use the format, it is not found...
>>
>> This is done on line 547 of tex.rb:
>>
>> texformatpath = if getvariable('local') then '.' else 
>> Kpse.formatpath(texengine,true) end
>>
>> So I've changed it to "Kpse.formatpath(texengine,false)" and 
>> everything is fine.
>>
>> But I don't understand why it is set so by default and why it doesn't 
>> work for me.
>> Does anybody experience the same problem?
> we really need the engine path so i wonder why the format
 > is not found; maybe an error in the cnf file (should recursively
 > search the web2c path for formats)

I have the same observation. The TeXLive 2005 definition is

   TEXFORMATS = .;$TEXMF/web2c/{$engine,}

but it seems to me tex binaries do not set $engine variable. If so, it 
can be locally solved (without changing binaries and supposing not using 
xetex or another engine) by

   TEXFORMATS = .;$TEXMF/web2c//

Vit

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


[NTG-context] shortsetup and environment (resent from dev-context)

2006-09-19 Thread Vit Zyka
Hi Hans and others,

I have tried to find the solution of the problem described by minimal 
example bellow without success.
(Parsing XML database cont-en.xml, every 'cd:command' with 
'type=environment' have to be defined with 'start' prefix. As far as I 
could check it is done OK. But \start commands are not known for 
\shortsetups.)

It is needed for Beginners' manual. Please can you have a look at it?

Thanks
Vit

 Original Message 
Subject: shortsetup and environment
Date: Mon, 18 Sep 2006 01:08:03 +0200
From: Vit Zyka <[EMAIL PROTECTED]>
To: dev-context@ntg.nl

Dear Hans,

it seems to me that \shortsetup ignores cd:command with
type="environment". Please see the next example:

-
\usemodule[set-11] \loadsetups

\starttext

page (OK): \shortsetup{page}

startframedtext (NOTHING): \shortsetup{startframedtext}

framedtext (NOTHING): \shortsetup{framedtext}

\stoptext
--

Vit


-- 
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


Re: [NTG-context] [dev-context] shortsetup and environment

2006-09-20 Thread Vit Zyka
Wolfgang Schuster wrote:
> On Mon, 18 Sep 2006 01:08:03 +0200
> Vit Zyka <[EMAIL PROTECTED]> wrote:
> 
>> Dear Hans,
>>
>> it seems to me that \shortsetup ignores cd:command with 
>> type="environment". Please see the next example:
>>
>> -
>> \usemodule[set-11] \loadsetups
>>
>> \starttext
>>
>> page (OK): \shortsetup{page}
>>
>> startframedtext (NOTHING): \shortsetup{startframedtext}
>>
>> framedtext (NOTHING): \shortsetup{framedtext}
>>
>> \stoptext
>> --
>>
>> Vit
> 
> Not a problem with type="environment" but generated="yes".
> 
> You should the the following code in x-set-11.tex from
> 
> \defineXMLenvironmentsave [cd:command] 
> [name=,type=,generated=,interactive=,variant=]
>   {}
>   {\doifelseXMLop{type}{environment}
>  
> {\edef\currentSETUPname{start\getinterfacecomponent{string}{\XMLop{name
>  {\edef\currentSETUPname{\getinterfacecomponent{string}{\XMLop{name%
>\doifsomething{\XMLop{variant}}
>  {\edef\currentSETUPname{\currentSETUPname:\XMLop{variant}}}% like 
> setupinterlinespace:1
>\doifXMLop{generated}{yes}
>  {\edef\currentSETUPname{\currentSETUPname*}}%
>
> \doglobal\saveXMLdatainelement{stp:\currentSETUPname}{cd:command}{cd:command}%
>\expanded{\eachtexcommand[stp:x:\currentSETUPname]{\currentSETUPname}}%
>\expanded{\texcommand[stp:y:\currentSETUPname]{\currentSETUPname}}}
> 
> to
> 
> \defineXMLenvironmentsave [cd:command] 
> [name=,type=,generated=,interactive=,variant=]
>   {}
>   {\doifelseXMLop{type}{environment}
>  
> {\edef\currentSETUPname{start\getinterfacecomponent{string}{\XMLop{name
>  {\edef\currentSETUPname{\getinterfacecomponent{string}{\XMLop{name%
>\doifsomething{\XMLop{variant}}
>  {\edef\currentSETUPname{\currentSETUPname:\XMLop{variant}}}% like 
> setupinterlinespace:1
>%\doifXMLop{generated}{yes}
>%  {\edef\currentSETUPname{\currentSETUPname*}}%

Ohh, I see, thank you Wolfgang. I have overlooked the star. I think 
everything is OK, only the star should be removed. The redefinition is 
for expansion. Isn't it?

>
> \doglobal\saveXMLdatainelement{stp:\currentSETUPname}{cd:command}{cd:command}%
>\expanded{\eachtexcommand[stp:x:\currentSETUPname]{\currentSETUPname}}%
>\expanded{\texcommand[stp:y:\currentSETUPname]{\currentSETUPname}}}
> 
> Look at the %-signs. 
> 
> I hope Hans will add something like \setupsetup[generated=yes|no] with 
> generated=no as default
> to be backward compatible.
> 
> Until Hans will include such a patched file you can use my attached one with 
> \usemodule[t-set-11].
> 
> 
> For Hans! Shouldn't the "start" in the definition be a "\e!start" 

I agree.

> \defineXMLenvironmentsave [cd:command] 
> [name=,type=,generated=,interactive=,variant=]
>   {}
>   {\doifelseXMLop{type}{environment}
>  
> {\edef\currentSETUPname{start\getinterfacecomponent{string}{\XMLop{name
>  -
>  \e!start

With current code the command name is typeset by uppercase, like
   \startFRAMEDTEXT
Is this intended? In my opinion it confuses the user. I would redefine

\defineXMLenvironmentsave [cd:variable] [value=]
   {{\expanded{\setupintfont{%
   \getinterfacecomponent{variable}{\XMLop{value}\ignorespaces}
   {\ignorespaces}

to

\defineXMLenvironmentsave [cd:variable] [value=]
   {{\expanded{%
   \getinterfacecomponent{variable}{\XMLop{value\ignorespaces}
   {\ignorespaces}

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


Re: [NTG-context] calculations

2006-09-21 Thread Vit Zyka
Henning Hraban Ramm wrote:
> Am 2006-09-20 um 00:40 schrieb nico:
> 
>> \figurewidth is not a dimension. I guess the following should work:
>>
>> \def\LPscale{.6315789} % downscale the image
>>  \ifvmode
>> \getfiguredimensions[\bufferprefix
>> lilypond-\the\lily!figures.pdf][]%
>> \leavevmode%
>> \newdimen\FigWidth
>> \newdimen\FigWidthReal=\figurewidth
>> \FigWidth=\dimexpr(\LPscale\FigWidthReal)
>> \ifdim\FigWidth>\localhsize
>>   \!!dimena=\localhsize
>>   \advance\!!dimena by-\FigWidth
>>   \noindent\hskip\!!dimena
>> \fi
>>  \fi
> 
> Thank you very much, that works indeed.
> 
>>  \externalfigure[\lily!img][scale=\dimexpr(1000\LPscale)]%
> 
> But here \dimexpr is nonsense (should have seen that before).
> But "scale=1000\LPscale" just concatenates the two "strings", and TeX  
> doesn't seem to reckognize a *

\def\LPscale{.6315789pt}
scale=\withoutpt\the\dimexpr\LPscale*1000\relax

Vit

> How can I multiply two values? Di I need some expansion magick or  
> just something like "eval()"?
> 
> 
> Greetlings from Lake Constance!
> Hraban
> ---
> http://www.fiee.net/texnique/
> http://contextgarden.net
> http://www.cacert.org (I'm an assurer)
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

-- 
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


[NTG-context] bug in beta: extra \else

2006-10-10 Thread Vit Zyka

Hi all,

there is some deep bug that was discovered translating Beginners manual. 
Let take single chapter e.g. ma-cb-cz-alignments.tex


With today beta I got .log attached (error ! Extra \else)
This will appear in both modes screen and normal.

Interesting is that no error appears in context 2006-05-28.

In context 2006-09-10 this error appears only in normal mode. Screen 
mode is OK.


Vit

P.S. Today's beta shows even more problems:
- inside typebuffer: only '\dochar {225}' instead of \'a in latin2
- some metapost graphics is wrong
But I suggest to solve them step by step.

This is pdfTeXk, Version 3.141592-1.40.0-beta-20060213 (Web2C 7.5.5) 
(format=cont-en 2006.10.10)  10 OCT 2006 23:50
entering extended mode
\write18 enabled.
 %&-line parsing enabled.
 (c:/TeXLive2005/texmf-update/web2c/natural.tcx)
**ma-cb-cz-alignments.tex \emergencyend
(./ma-cb-cz-alignments.tex

ConTeXt  ver: 2006.10.10 22:15 MK II  fmt: 2006.10.10  int: english/english

language: language en is active
system  : cont-new loaded
(c:/TeXLive2005/texmf-update/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(c:/TeXLive2005/texmf-update/tex/context/base/cont-new.mkii))
system  : cont-old loaded
(c:/TeXLive2005/texmf-update/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(c:/TeXLive2005/texmf-update/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys loaded
(c:/TeXLive2005/texmf-update/tex/context/user/cont-sys.tex
(c:/TeXLive2005/texmf-update/tex/context/base/type-exa.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-syn.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-enc.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-siz.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-map.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-spe.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns nl->texnansi:texnansi->1->2:3 nl->ec:ec->2->2:3 fr->
texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3 de->texnansi:texnansi->5->2:3 de->e
c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3 pt->texnansi:texna
nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3 pl->ec:e
c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3 sk->il2:i
l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 ru->t2a:t2a->21->2:3 en->ec:e
c->22->2:3 uk->ec:ec->23->2:3 us->ec:ec->24->2:3 agr->agr:agr->25->2:3 da->ec:e
c->26->2:3 sv->ec:ec->27->2:3 af->ec:ec->28->2:3 no->ec:ec->29->2:3 deo->ec:ec-
>30->2:3 es->ec:ec->31->2:3 ca->ec:ec->32->2:3 la->ec:ec->33->2:3 ro->ec:ec->34
->2:3 tr->ec:ec->35->2:3 fi->ec:ec->37->2:3 hu->ec:ec->38->2:3 loaded
specials: tex,postscript,rokicki loaded
\openout3 = `ma-cb-cz-alignments.tui'.

system  : ma-cb-cz-alignments.top loaded
(./ma-cb-cz-alignments.top
specials: loading definition file tpd
(c:/TeXLive2005/texmf-update/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(c:/TeXLive2005/texmf-update/tex/context/base/spec-fdf.tex
(c:/TeXLive2005/texmf-update/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
)
specials: fdf,tpd loaded
)
\openout0 = `ma-cb-cz-alignments-mpgraph.mp'.

\openout0 = `mpgraph.mp'.


systems : system commands are enabled
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
(c:/TeXLive2005/texmf-update/tex/context/base/sort-def.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/sort-lan.tex)
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
systems : begin file ma-cb-cz-alignments at line 3
systems : begin file ma-cb at line 4
systems : end file ma-cb at line 4
systems : begin file ma-cb-env-cz at line 7
(./ma-cb-env-cz.tex (../generic/ma-cb.tex
systems : begin file ../generic/ma-cb-abbreviations at line 11
(./../generic/ma-cb-abbreviations.tex
check   : logo CONTEXT replaces a macro, use CAPITALS!
check   : logo PDFTEX replaces a macro, use CAPITALS!
check   : logo PICTEX replaces a macro, use CAPITALS!
check   : logo TABLE replaces a macro, use CAPITALS!
check   : logo TEX replaces a macro, use CAPITALS!
check   : logo METAPOST replaces a macro, use CAPITALS!
check   : logo METAFUN replaces a macro, use CAPITALS!
)
systems : end file ../generic/ma-cb-abbreviations at line 11
systems : begin file ../generic/ma-cb-graphics at line 12
(./../generic/ma-cb-graphics.tex)
systems : end file ../generic/ma-cb-graphics at line 12
systems : begin file ../generic/ma-cb-style at line 13
(./../ge

Re: [NTG-context] bug in beta: extra \else

2006-10-18 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
>> Hans Hagen wrote:
>>> Wolfgang Schuster wrote:
>>>> On Fri, 13 Oct 2006 19:16:58 -0400 (EDT)
>>>> Aditya Mahajan <[EMAIL PROTECTED]> wrote:
>>>>
>>>>  
>>>>> On Fri, 13 Oct 2006, Vit Zyka wrote:
>>>>>
>>>>>
>>>>>> Hans Hagen wrote:
>>>>>>  
>>>>>>> Vit Zyka wrote:
>>>>>>>
>>>>>>>> Hans Hagen wrote:
>>>>>>>>  
>>>>>>>>> Vit Zyka wrote:
>>>>>>>>>
>>>>>>>>>> Hi all,
>>>>>>>>>>
>>>>>>>>>> there is some deep bug that was discovered translating 
>>>>>>>>>> Beginners manual. Let take single chapter e.g. 
>>>>>>>>>> ma-cb-cz-alignments.tex
>>>>>>>>>>
>>>>>>>>>> With today beta I got .log attached (error ! Extra \else)
>>>>>>>>>> This will appear in both modes screen and normal.
>>>>>>>>>>
>>>>>>>>>> Interesting is that no error appears in context 2006-05-28.
>>>>>>>>>>   
>>>>>>>>> quite some code is being rewritten / adapted to context mkiv so 
>>>>>>>>> there could be low level differences
>>>>>>>>>
>>>>>>>>> can you make a small example, since this else problem can come 
>>>>>>>>> from other places than reported
>>>>>>>>> 
>>>>>>>> There are demonstrative files. Please, run
>>>>>>>>   texmfstart texexec --pdf ma-cb-cz-test.tex
>>>>>>>> and
>>>>>>>>   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex
>>>>>>>>   
>>>>>>> this file: ma-cb-env-cz.tex refers to itself and probably should 
>>>>>>> be :
>>>>>>> \startenvironment ma-cb-env-cz
>>>>>>>
>>>>>>> \environment ma-cb.tex
>>>>>>>
>>>>>>> \mainlanguage[cz]
>>>>>>> \language[en]
>>>>>>> \enableregime[latin2]
>>>>>>>
>>>>>>> \stopenvironment
>>>>>>> 
>>>>>> Sorry, my fault but it does not solve the problem. I obtain the 
>>>>>> same error with fresh context and corrected version of this file:
>>>>>>
>>>>>> -
>>>>>> \startenvironment ma-cb-env-cz
>>>>>>
>>>>>> \mainlanguage[cz]
>>>>>> \language[en]
>>>>>> \enableregime[latin2]
>>>>>>
>>>>>> \stopenvironment
>>>>>> -
>>>>>>   
>>>>> There is something wrong with ma-cb environment files. The file 
>>>>> ma-cb-en does not compile. I get an error
>>>>>
>>>>> ! Undefined control sequence.
>>>>> \@@olbackground ->\StatusAchtergrond
>>>>>
>>>>> \doifvaluesomething ...inga {\csname #1\endcsname
>>>>>}\ifx \!!stringa 
>>>>> \empty \e...
>>>>>
>>>>> \stoplocalframed ...ing {\@@framed \c!background }
>>>>>\dobackedbox 
>>>>> \handleframed...
>>>>>
>>>>> \PlaatschapterStatus ... [\v!chapter \v!number ]}}
>>>>> \vskip 0pt plus 
>>>>> \scratchc...
>>>>>  \PlaatschapterStatus
>>>>>  {}{}{}
>>>>> \firstoftwoarguments #1#2->#1
>>>>>
>>>>> ...
>>>>> l.19 \Introduction   {Introduction}
>>>>>
>>>>>
>>>>> I tried making minimal example of the file that you posted, but 
>>>>> always get the same error. I am pretty certain that ma-cb-en.tex 
>>>>> used to compile in the past.
>>>>>
>>>>> Aditya
>>>>> 
>&g

Re: [NTG-context] bug in beta: extra \else

2006-10-18 Thread Vit Zyka
Hans Hagen wrote:
> Aditya Mahajan wrote:
>> On Mon, 16 Oct 2006, Aditya Mahajan wrote:
>>
>>> On Sun, 15 Oct 2006, Vit Zyka wrote:
>>>> Great, thank you Hans!
>>>>
>>>> Let us process to teh next two problems also visible in the test file.
>>>>
>>>> 1. [snip]
>>>> 2. Accented characters inside \typebuffer are type set as
>>>>   \dochar {225}
>>> This seems to be a bug. In utf-8 encoding, if an accented character is
>>> the first character of a buffer, it gets typed correctly. All other
>>> accented charaters come out as \dochar {225}. \getbuffer works fine.
>> I forgot to attach the test file. I am attaching it, hoping that the 
>> encoding will come out correctly.
>>
>>> Can TeX choose the input encoding while writing files? If not, there
>>> may be really no robust way to solve this problem.
>>>
>>> Aditya
> 
> in core-buf we need to treat the upper half of the vector:
> 
>\recatcodeuppercharacterstrue % <--- 
>\setcatcodetable\vrbcatcodes
> 
> in startbuffer

It also works well. Thank you
Vit

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


Re: [NTG-context] index bug ? [urgent]

2006-10-25 Thread Vit Zyka
Willi Egger wrote:
> Hi Steffen,
> 
> After adding
> \enableregime[windows]
> \mainlanguage[de]
> 
> I get as expected an index. The only thing which I do not understand 
> quite well, is, that the entry for
> \index{Gesetzesvorbehalt&– Arbeitsanweisungen durch Bundesminister} 
> results in the references 2,1,2, where I would expect only 1,2.

Guessing: is not the index entry inside the \chapter title which also 
goes to content (or another list) that is on a separate page numbering?

Vit


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


Re: [NTG-context] Shapes spanning multiple grid cells in flowchart

2006-11-10 Thread Vit Zyka
Martijn Martijn wrote:
> Hello,
> 
> I've just started to use Context because of its great flowcharting 
> module. However, I'd like to use shapes that span multiple grid cells. 
> This is what I would like to accomplish:
> 
> |---||---||---|
> |   |<-->| box 2 |<-->| box 3 |
> |   ||---||---|
> | box 1 |
> |   ||---||---|
> |   |<-->| box 4 |<-->| box 5 |
> |   ||---||---|
> |   |
> |   |
> |   |
> |---|
> 
> 
> I could not find a way to do this in the manual. Every shape in the 
> manual has the same size. Thanks for the help!

Current version of flowchart does not support this feature. Cells are 
arranged in a regular grid without spanning.

Vit

> 
> Martijn

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


[NTG-context] deep (?) error when page break occures inside of startlines together with MPgraphics

2006-11-22 Thread Vit Zyka
Hello Hans & all deep macros diggers,

making final editting of czech translation of beginners manual I have
discovered a next error. It appears when page break occures inside of
startlines environment together with MPgraphics. Minimal example is
attached. Any idea, please?

Thanks
Vit

--
\def\MPclipFourR#1#2#3%
   {\startreusableMPgraphic{clip:fourR:#1#2#3}{}
  draw fullcircle;
\stopreusableMPgraphic
\reuseMPgraphic{clip:fourR:#1#2#3}{}}

\defineoverlay
   [StatusAchtergrondR]
   [\MPclipFourR{\overlaywidth}{\overlayheight}{5pt}]

\setupfootertexts
   [margin]
   [][\PlaatschapterStatus]

\unexpanded\def\PlaatschapterStatus
   {\framed[background=StatusAchtergrondR]{A}}

\starttext

\startlines
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Geef mij een alfje dan blijf ik staan,
'k Zal nog liever naar m'n arrenmoeder gaan.
Hier woont zo'n rieke man, die zo vulle g\egrave ven kan.
G\egrave f wat, old wat, g\egrave f die arme stumpers wat,
'k Eb zo lange met de foekepot elopen.
'k Eb gien geld om brood te kopen.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Geef mij een alfje dan blijf ik staan,
'k Zal nog liever naar m'n arrenmoeder gaan.
Hier woont zo'n rieke man, die zo vulle g\egrave ven kan.
G\egrave f wat, old wat, g\egrave f die arme stumpers wat,
'k Eb zo lange met de foekepot elopen.
'k Eb gien geld om brood te kopen.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Geef mij een alfje dan blijf ik staan,
'k Zal nog liever naar m'n arrenmoeder gaan.
Hier woont zo'n rieke man, die zo vulle g\egrave ven kan.
G\egrave f wat, old wat, g\egrave f die arme stumpers wat,
'k Eb zo lange met de foekepot elopen.
'k Eb gien geld om brood te kopen.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Geef mij een alfje dan blijf ik staan,
'k Zal nog liever naar m'n arrenmoeder gaan.
Hier woont zo'n rieke man, die zo vulle g\egrave ven kan.
G\egrave f wat, old wat, g\egrave f die arme stumpers wat,
'k Eb zo lange met de foekepot elopen.
'k Eb gien geld om brood te kopen.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Geef mij een alfje dan blijf ik staan,
'k Zal nog liever naar m'n arrenmoeder gaan.
Hier woont zo'n rieke man, die zo vulle g\egrave ven kan.
G\egrave f wat, old wat, g\egrave f die arme stumpers wat,
'k Eb zo lange met de foekepot elopen.
'k Eb gien geld om brood te kopen.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
Geef mij een alfje dan blijf ik staan,
'k Zal nog liever naar m'n arrenmoeder gaan.
Hier woont zo'n rieke man, die zo vulle g\egrave ven kan.
G\egrave f wat, old wat, g\egrave f die arme stumpers wat,
'k Eb zo lange met de foekepot elopen.
'k Eb gien geld om brood te kopen.
Foekepotterij, foekepotterij,
Geef mij een centje dan ga'k voorbij.
\stoplines

\stoptext
-

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


Re: [NTG-context] deep (?) error when page break occures inside of startlines together with MPgraphics

2006-11-23 Thread Vit Zyka
Taco Hoekwater wrote:
> 
> Vit Zyka wrote:
>> Hello Hans & all deep macros diggers,
>>
>> making final editting of czech translation of beginners manual I have
>> discovered a next error. It appears when page break occures inside of
>> startlines environment together with MPgraphics. Minimal example is
>> attached. Any idea, please?
> 
> 
> You mean this error?
> 
> (/home/taco/texmf/tex/context/base/pdfr-ec.tex)
> ! TeX capacity exceeded, sorry [parameter stack size=6000].
> \longMPflushN #1#2\par ->
>   \ifx #1\relax \else \nowriteMPgraphicline

Exactly. Some infinite recurse.

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


Re: [NTG-context] deep (?) error when page break occures inside of startlines together with MPgraphics

2006-11-23 Thread Vit Zyka
Hans Hagen wrote:
> Vit Zyka wrote:
>> Taco Hoekwater wrote:
>>   
>>> Vit Zyka wrote:
>>> 
>>>> Hello Hans & all deep macros diggers,
>>>>
>>>> making final editting of czech translation of beginners manual I have
>>>> discovered a next error. It appears when page break occures inside of
>>>> startlines environment together with MPgraphics. Minimal example is
>>>> attached. Any idea, please?
>>>>   
>>> You mean this error?
>>>
>>> (/home/taco/texmf/tex/context/base/pdfr-ec.tex)
>>> ! TeX capacity exceeded, sorry [parameter stack size=6000].
>>> \longMPflushN #1#2\par ->
>>>   \ifx #1\relax \else \nowriteMPgraphicline
>>> 
>> Exactly. Some infinite recurse.
>>   
> \appendtoks \obeyMPlines \to \everyMPgraphic 

How simple, works as charm! Thank you Hans.

Vit

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


  1   2   3   4   >