[NTG-context] Why I needed \parbox and why does \framed not work here?

2005-03-13 Thread Gerben Wierda
I am trying to convert to ConTeXt and I have a text with a lot of truth 
tables using a \ttable and \xttable command I defined. I ported these 
to ConTeXt but I can't get the \parbox - \framed to work.

% Example document with truth tables starts here
\usemodule[bib] % defines \newcommand
\newcommand{\operand}[1]{{\sc #1}}
\newcommand{\ttvalue}[1]{{\sc #1}}
\newcommand{\xttable}[7]{\starttable[|c|c|c|]\HL %
#1 \NC #2 \NC #1 \operand{#3} #2 \SR\HL
\ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \FR %
\ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \MR %
\ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \MR %
\ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \LR\HL %
\stoptable}
\newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}}
\starttext
Looks fine:\blank
\midaligned{%
\xttable{Statement X}{Statement Y}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work:\blank
\midaligned{%
\xttable{Some sort of longer statement}{Another sort of longer 
statement}%
{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}

This doesn't work either:\blank
\midaligned{%
\xttable{\framed[width=2cm,frame=off]{Some sort of longer
statement\par}}{\framed[width=2cm,frame=off]{Another sort of longer
statement\par}}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] some bib module questions

2005-03-13 Thread Taco Hoekwater
Mark Smith wrote:

because specifically these are suggested (albeit not
 as a combination) in the readme. In the interests
 of finding out whether I'm odd. Was anybody else
 led astray by this ?
Probably, because these questions keep popping up. I've
added a 'improve documentation' to my todo list
Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why I needed \parbox and why does \framed not work here?

2005-03-13 Thread Willi Egger
Hi Gerben
The problem is, that \starttable[|c|c|c|] is for oneliners only.
Replace the statement with
\newcommand{\xttable}[7]{\starttable[|p|p|p|]\HL %
Kind regards
Willi
Gerben Wierda wrote:
I am trying to convert to ConTeXt and I have a text with a lot of truth 
tables using a \ttable and \xttable command I defined. I ported these to 
ConTeXt but I can't get the \parbox - \framed to work.

% Example document with truth tables starts here
\usemodule[bib] % defines \newcommand
\newcommand{\operand}[1]{{\sc #1}}
\newcommand{\ttvalue}[1]{{\sc #1}}
\newcommand{\xttable}[7]{\starttable[|c|c|c|]\HL %
#1 \NC #2 \NC #1 \operand{#3} #2 \SR\HL
\ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \FR %
\ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \MR %
\ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \MR %
\ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \LR\HL %
\stoptable}
\newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}}
\starttext
Looks fine:\blank
\midaligned{%
\xttable{Statement X}{Statement Y}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work:\blank
\midaligned{%
\xttable{Some sort of longer statement}{Another sort of longer statement}%
{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work either:\blank
\midaligned{%
\xttable{\framed[width=2cm,frame=off]{Some sort of longer
statement\par}}{\framed[width=2cm,frame=off]{Another sort of longer
statement\par}}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
\stoptext
___
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] \raggedright?

2005-03-13 Thread Willi Egger
Hi Gerben,
with \raggedright one needs to use {}. May be a better approach is to 
use \framedtext[align=left,width=xxcm,frame=off]{your text}
Pease refer to the attached file.

Kind regards
Willi
Gerben Wierda wrote:
I tried to get one piece in a justified text to behave as follows: right 
aligned and with a jagged left edge. But what I tried influenced my 
entire document.

Can someone explain me how to do this?
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
% Ragged right text
% Gerben Wierda
% Context file
% filename: ragged-Wierda.ex
% Willi Egger
% 13-03-2005

\setupoutput[pdftex]
\mainlanguage[en]
\setuptolerance[tolerant,stretch]
\startbuffer[Ward]
\input ward
\stopbuffer

\startbuffer[Knuth]
\input knuth
\stopbuffer

\startbuffer[Zapf]
\input zapf
\stopbuffer

\starttext

{\raggedright{ \getbuffer[Knuth]}}
\blank[2*big]
{\raggedleft {\getbuffer[Ward]}}
\blank[2*big]
{\raggedright {\getbuffer[Zapf]}}

\framedtext[align=left,width=9cm,fram=on,offset=.5cm]{
\getbuffer[Zapf]}

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


Re: [NTG-context] alignment questions

2005-03-13 Thread Willi Egger
Hoi Patrick,
Humble, I used just the \bTABLE ...\eTABLE environment. Please refer to 
the attached file.

Kind regards
Willi
Patrick Gundlach wrote:
Hello *,
inspired by Gerben's question, I did some experimenting with \framed.
I'd like to get A[text]B, where text is some long thing in a framed
box like \framed[width=5cm] {\input tufte \par}.
There are three different ways of aligning the three objects:
(A and B on the same baseline as the first row)
A We  thrive  in  information- B
---
  thick worlds because of  our
  marvelous and  everyday  ca-
(A and B in the middle of the box, not necessarily on the same
baseline as a line in the box)
  criminate, distinguish, screen, 
A pigeonhole,  pick  over,  sort, B
  integrate,blend,   inspect,

(A and B on the same baseline as the last row)
  from the chaff and seperate
A the sheeps from the  goats. B


I was unable to get any of these alignments.
Patrick
% ALigning three blocks of text
% PAtrick Gundlach
% Context file
% filename: textblockalignment-Gundlach.tex
% Willi Egger
% 13-03-2005


\setupoutput[pdftex]
\setupbodyfont[rm,12pt]

\starttext
% Alignment of the three blocks with the first line

\setupTABLE[column][1][frame=off,width=2cm]
\setupTABLE[column][3][frame=off,width=2cm]
\setupTABLE[column][2][frame=off,width=5cm]
\bTABLE
\bTR
\bTD A \eTD
\bTDWe  thrive  in  information-
thick worlds because of  our
marvelous and  everyday  ca- \eTD
\bTD B \eTD\eTR
\eTABLE

\blank[3*big]

% Alignment of first and third block vertically centered, not necessarily 
aligned with
% a line of the second block

\bTABLE
\bTR
\bTD[align=lohi] A \eTD
\bTDcriminate, distinguish, screen,
pigeonhole,  pick  over,  sort,
integrate,blend,   inspect, \eTD
\bTD[align=lohi] B \eTD\eTR
\eTABLE

\blank[3*big]

% Alignmnet of the three blocks in such a way, that the first and last block 
align
% with the laast row of the second block

\bTABLE
\bTR
\bTD[align=low] A \eTD
\bTDfrom the chaff and seperate
A the sheeps from the  goats. \eTD
\bTD[align=low] B \eTD\eTR
\eTABLE

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


Re: [NTG-context] alignment questions

2005-03-13 Thread Vit Zyka
Patrick Gundlach wrote:
Hello *,
inspired by Gerben's question, I did some experimenting with \framed.
I'd like to get A[text]B, where text is some long thing in a framed
box like \framed[width=5cm] {\input tufte \par}.
There are three different ways of aligning the three objects:
There are more possibilities aligning three objects. For example:
  A[[B][C]]
Standard \framed is not capable to align these three nested boxes to 
baseline. Since it is very frequent task of form typesetting, I did some 
very dirt hacks into \framed definition. But just for myself. (If Hans 
see the code all the rest of his hair falls down. I do not want that.)

vit
(A and B on the same baseline as the first row)
A We  thrive  in  information- B
---
  thick worlds because of  our
  marvelous and  everyday  ca-
(A and B in the middle of the box, not necessarily on the same
baseline as a line in the box)
  criminate, distinguish, screen, 
A pigeonhole,  pick  over,  sort, B
  integrate,blend,   inspect,

(A and B on the same baseline as the last row)
  from the chaff and seperate
A the sheeps from the  goats. B


I was unable to get any of these alignments.
Patrick
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \raggedright?

2005-03-13 Thread Taco Hoekwater
Nikolai Weibull wrote:
Don't ask why the parameter to \startalignment is left, not right.  Look
at the context wiki [1] for information on why this is so,
This also works, and is a bit more natural:
\startalignment[flushright]
Blah blah blah
\stopalignment
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Document structure - some questions

2005-03-13 Thread Willi Egger
Hi Marcin,
Marcin Borkowski wrote:
Hello!
I have quite a few questions about ConTeXt (and more coming, I guess!).  
As a newbie, many things seem difficult for me.  For now, the questions 
are:

How does \part exactly work?  I could see: messing with pagenumbers; part
title not appearing; strange behaviour in eg backmatter...
Exactly? That is what I know: part is the highest level of a structure 
(e.g. a book). Part title will not occur in the TOC unless you change 
the settings manually (look in the main manual for 
\setuppagenumbering,look at chapter text elements main manual, pp 135,
How do exactly front, body, back matter and appendices environments work?
By means of these you van devide a document in different portions, which 
 have each their own style e.g. pagenumber in roman numerals, 
headings numbered with characters instead of figures (e,g, appendices). 
Of course you can change the standard set options.

How do the system modes (*...-modes) work exactly?  I managed to make
\startmode[*interaction] ... \stopmode
work, but what about the others starred modes?
Hm, no experience with these, thoug using extensively mode-structures...
What are the possible parameters for the \setupoutput command?
[pdftex][dvi]
Sorry for asking so many things...  I hope that when I know the answers I 
will be able to put some articles on ConTeXt wiki, so that other people do 
not bother you with the same questions again and again.
You are welcome.
There is a lot of information available. Context knows a bunch of 
manuals: http://www.pragma-ade.com/  and there is a wiki: 
http://contextgarden.net/Main_Page

Kind regards Willi
Greetings
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] alignment questions

2005-03-13 Thread Taco Hoekwater
Vit  Patrick wrote:
(A and B on the same baseline as the last row)
  from the chaff and seperate
A the sheeps from the  goats. B

This one should have worked:
  A bit of \framed[width=5cm,
  align=justified,
  location=depth] {\input tufte \par} glamour
and the centered one can be approximated thus:
  A bit of $\vcenter{\framed[width=5cm,
 align=justified] {\input tufte \par}}$ glamour
But the 'centered' and the 'hanging' one would be nice to
have as a 'location' option as well, at least in my opinion.
Greetings, Taco

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


Re: [NTG-context] Document structure - some questions

2005-03-13 Thread Taco Hoekwater
Hi Willi,
Hi Marcin,
How do the system modes (*...-modes) work exactly?  I managed to make
\startmode[*interaction] ... \stopmode
work, but what about the others starred modes?
Most of these modes are only set part of the time. For instance,
the *sectionnumber mode is only sensible when it used from a macro that
is called from within the processing of the section title's typesetting
commands.
This would for instance happen if you had
  \setuphead[section][command=\Mymacro]
somewhere. This entire *sectionnumber system mode makes no sense at
an other time.
I hope that helps.
What are the possible parameters for the \setupoutput command?

[pdftex][dvi]
To be a bit more precise (stuff on same line is an alias):
  dvipsone  % dvi for processing by YandY's dvipsone
  dviwindo  % dvi for viewing by dviwindo
  dvips % dvi for processing by dvips
  dviview   % dvi for viewing by dviview
  pdftex,pdf% pdf for pdftex
  dvipdfm,dpm   % dvi for subsequent use with dvipdfm
  dvipdfmx,dpx  % dvi for subsequent use with dvipdfmx
  acrobat   % dvi for subsequent distilling with acrobat
  xetex,xtx % xdv for XeTeX
default is normally 'dvips'
Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] alignment questions

2005-03-13 Thread Willi Egger
Hoi Patrick,
Humble, I used just the \bTABLE ...\eTABLE environment. Please refer to 
the attached file.

Kind regards
Willi
Sorry if this message is delivered twice, I got some struggles with may 
mail engine ...

Patrick Gundlach wrote:
Hello *,
inspired by Gerben's question, I did some experimenting with \framed.
I'd like to get A[text]B, where text is some long thing in a framed
box like \framed[width=5cm] {\input tufte \par}.
There are three different ways of aligning the three objects:
(A and B on the same baseline as the first row)
A We  thrive  in  information- B
---
  thick worlds because of  our
  marvelous and  everyday  ca-
(A and B in the middle of the box, not necessarily on the same
baseline as a line in the box)
  criminate, distinguish, screen, 
A pigeonhole,  pick  over,  sort, B
  integrate,blend,   inspect,

(A and B on the same baseline as the last row)
  from the chaff and seperate
A the sheeps from the  goats. B


I was unable to get any of these alignments.
Patrick
% ALigning three blocks of text
% PAtrick Gundlach
% Context file
% filename: textblockalignment-Gundlach.tex
% Willi Egger
% 13-03-2005


\setupoutput[pdftex]
\setupbodyfont[rm,12pt]

\starttext
% Alignment of the three blocks with the first line

\setupTABLE[column][1][frame=off,width=2cm]
\setupTABLE[column][3][frame=off,width=2cm]
\setupTABLE[column][2][frame=off,width=5cm]
\bTABLE
\bTR
\bTD A \eTD
\bTDWe  thrive  in  information-
thick worlds because of  our
marvelous and  everyday  ca- \eTD
\bTD B \eTD\eTR
\eTABLE

\blank[3*big]

% Alignment of first and third block vertically centered, not necessarily 
aligned with
% a line of the second block

\bTABLE
\bTR
\bTD[align=lohi] A \eTD
\bTDcriminate, distinguish, screen,
pigeonhole,  pick  over,  sort,
integrate,blend,   inspect, \eTD
\bTD[align=lohi] B \eTD\eTR
\eTABLE

\blank[3*big]

% Alignmnet of the three blocks in such a way, that the first and last block 
align
% with the laast row of the second block

\bTABLE
\bTR
\bTD[align=low] A \eTD
\bTDfrom the chaff and seperate
A the sheeps from the  goats. \eTD
\bTD[align=low] B \eTD\eTR
\eTABLE

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


[NTG-context] bib module: placepublications inserts the first line of each publication

2005-03-13 Thread Michael Fuchs
Hi!

Some of my bib-items will have more than one line in
the list of publications produced by \placepublications.
The first line of the entry will always be indented
by (probably) one character. The output looks like:


Bal01   Balzert, H. (2001). Lehrbuch der Software-Technik -
Software-Entwicklung.
   Spektrum Akademischer Verlag.

Sch04   Schmidt, C. (2004). Entwicklung eines Datenakquisitionssystems für
das
   Crystal-Barrel-Experiment zur Messung photoinduzierter Reaktionen an
ELSA.
   Dissertation, Universität Bonn.


The indent does not appear, when I define the module to use a different
author style by:

\setuppublicationlist
[
  ...
artauthor=\normalshortauthor,author=\normalshortauthor,
  ...
]


Regards 

Michael

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


[NTG-context] Why doesn't this margin= have an effect?

2005-03-13 Thread Gerben Wierda
I am trying to get the itemized lists to be indented the same amount as 
my paragraph first lines (small). I have been trying to get this by 
adding margin=dimension but whatever dimension I put there, the result 
is the same: nothing. Example:

\startitemize[n,packed,joinedup][margin=-1em]
\item All X are Y;
\item All Y are Z;
\item Therefore, all X are Z.
\stopitemize
What am I doing wrong?
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bib module: placepublications inserts the first line of each publication

2005-03-13 Thread Taco Hoekwater
Hi Michael,
Can you send me (privately) a minimal file please?
Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why I needed \parbox and why does \framed not work here?

2005-03-13 Thread Gerben Wierda
Here is the example again, now with p columns. Never mind the 
non-working third example (ConTeXt wraps three elements in the third 
column now but not inside the \framed), but it seems that ConTeXt does 
not wrap the first column at all. As a result, the other two are very 
small.

G
PS. The ConTeXT manual does not have \starttable documentation, not 
does the wiki (how does 'p' work etc).

% Try with 'p' columns
\usemodule[bib] % defines \newcommand
\newcommand{\operand}[1]{{\sc #1}}
\newcommand{\ttvalue}[1]{{\sc #1}}
\newcommand{\xttable}[7]{\starttable[|p|p|p|]\HL %
#1 \NC #2 \NC #1 \operand{#3} #2 \SR\HL
\ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \FR %
\ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \MR %
\ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \MR %
\ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \LR\HL %
\stoptable}
\newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}}
\starttext
Looks fine:\blank
\midaligned{%
\xttable{Statement X}{Statement Y}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work:\blank
\midaligned{%
\xttable{Some sort of longer statement}{Another sort of longer 
statement}%
{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}

This doesn't work either:\blank
\midaligned{%
\xttable{\framed[width=2cm,frame=off]{Some sort\par of longer
statement\par}}{\framed[width=2cm,frame=off]{Another sort\par of longer
statement\par}}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why I needed \parbox and why does \framed not work here?

2005-03-13 Thread Willi Egger
Hi Gerben,
There is no worry about the mentioned chaos. You might be lucky, that 
your definition is giving a result at all.

If you consult the manual or read the article in the MAPS22 on 
tabulating, you will see, that you missed a correct setup of the tabulation.

I attach my version and it works.
KR
Willi
Gerben Wierda wrote:
Here is the example again, now with p columns. Never mind the 
non-working third example (ConTeXt wraps three elements in the third 
column now but not inside the \framed), but it seems that ConTeXt does 
not wrap the first column at all. As a result, the other two are very 
small.

G
PS. The ConTeXT manual does not have \starttable documentation, not does 
the wiki (how does 'p' work etc).

% Try with 'p' columns
\usemodule[bib] % defines \newcommand
\newcommand{\operand}[1]{{\sc #1}}
\newcommand{\ttvalue}[1]{{\sc #1}}
\newcommand{\xttable}[7]{\starttable[|p|p|p|]\HL %
#1 \NC #2 \NC #1 \operand{#3} #2 \SR\HL
\ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \FR %
\ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \MR %
\ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \MR %
\ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \LR\HL %
\stoptable}
\newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}}
\starttext
Looks fine:\blank
\midaligned{%
\xttable{Statement X}{Statement Y}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work:\blank
\midaligned{%
\xttable{Some sort of longer statement}{Another sort of longer statement}%
{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work either:\blank
\midaligned{%
\xttable{\framed[width=2cm,frame=off]{Some sort\par of longer
statement\par}}{\framed[width=2cm,frame=off]{Another sort\par of longer
statement\par}}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
% Truthtables Gerben Wierda
% C0ntext file
% filename: truthtable-Wierda.tex
% Gerben Wierda
% W. Egger
% 13-03-2005

\setupoutput[pdftex]
\setupbodyfont[ss,12pt]

\usemodule[bib] % defines \newcommand
\newcommand{\operand}[1]{{\sc #1}}
\newcommand{\ttvalue}[1]{{\sc #1}}
\newcommand{\xttable}[7]{\starttable[|p(2cm)|p(5cm)|p(3cm)|]
\HL %
\NC #1 \NC #2 \NC #1 \operand{#3} #2 \NC\NR
\HL
\NC \ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \NC\NR %
\NC \ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \NC\NR %
\NC \ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \NC \NR %
\NC \ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \NC\NR\HL %
\stoptable}
\newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}}
\starttext
Looks fine:\blank
\midaligned{%
\xttable{Statement X}{Statement Y}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}


 This doesn't work:\blank
\midaligned{%
\xttable{Some sort of longer statement}{Another sort of longer statement}%
{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}

% This doesn't work either:\blank
% \midaligned{%
% \xttable{\framed[width=2cm,frame=off]{Some sort of longer
% statement\par}}{\framed[width=2cm,frame=off]{Another sort of longer
% statement\par}}{$\Rightarrow$}%
% {unknown}{unknown}{invalid (false)}{valid (true)}
% }
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why I needed \parbox and why does \framed not work here?

2005-03-13 Thread Willi Egger
Indeed, there is no \starttable info in the manuals. You might have a 
look into the sources:core-tab.tex.  But what I can see, is, that you do 
not use vertical lines. If all tables are such, then I would suggest to 
use \starttabulate instead.

KR
Willi
Gerben Wierda wrote:
Here is the example again, now with p columns. Never mind the 
non-working third example (ConTeXt wraps three elements in the third 
column now but not inside the \framed), but it seems that ConTeXt does 
not wrap the first column at all. As a result, the other two are very 
small.

G
PS. The ConTeXT manual does not have \starttable documentation, not does 
the wiki (how does 'p' work etc).

% Try with 'p' columns
\usemodule[bib] % defines \newcommand
\newcommand{\operand}[1]{{\sc #1}}
\newcommand{\ttvalue}[1]{{\sc #1}}
\newcommand{\xttable}[7]{\starttable[|p|p|p|]\HL %
#1 \NC #2 \NC #1 \operand{#3} #2 \SR\HL
\ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \FR %
\ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \MR %
\ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \MR %
\ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \LR\HL %
\stoptable}
\newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}}
\starttext
Looks fine:\blank
\midaligned{%
\xttable{Statement X}{Statement Y}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work:\blank
\midaligned{%
\xttable{Some sort of longer statement}{Another sort of longer statement}%
{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work either:\blank
\midaligned{%
\xttable{\framed[width=2cm,frame=off]{Some sort\par of longer
statement\par}}{\framed[width=2cm,frame=off]{Another sort\par of longer
statement\par}}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Some extra empty pages, why? And how to get an initial blank page with page number 0?

2005-03-13 Thread Gerben Wierda
Fro my environment:
%\setuppapersize[B5][B4,landscape]
\setuppapersize[B5][B5]
\setupindenting[small]
\setuplayout[location=doublesided]
%\setuparranging[2SIDE]
\setuppagenumbering[alternative=doublesided]
%
\usemodule[lettri]
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\newcommand{\ChQuoteFormat}[1]{\starttext%
%\raggedright%
\startalignment[left]%
\startnarrower[4*left] \noindent{\em #1}%
\stopnarrower\stopalignment\stoptext\blank}
\setuphead[chapter]
[page=left,
before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\page[right]\blank[2*big]},
after={\ClearChapterQuote\blank[3*big]}%
\noheaderandfooterlines]
Without \setuppagenumbering[alternative=doublesided], I get single 
sided layout (even if I have the \setuplayout statement, very 
confusing). If I do add \setuppagenumbering[alternative=doublesided], I 
get the following:

1. Title page
2. Empty
3. Page with only a page numer 1 at the top
4. empty
5. Page with Contents 'chapter'
6. Page with quote
7. First page of chapter
Except for pages 3 and 4 that is how I want it. Why are these pages 
there? They are not there if 
\setuppagenumbering[alternative=doublesided] is left out.

My product file looks like this:
\startproduct prd_book
\project project_teoada
\starttext
\start
\startstandardmakeup \ss
\hairline \start
\switchtobodyfont[20pt]\bf
\leftaligned{TEOADA}%
\stop \hairline \blank[line]\rightaligned{Gerben Wierda}%
\blank[10cm]\start\leftskip=10cm\hairline\stop
\rightaligned{2005}%
\stopstandardmakeup
\stop
\startfrontmatter
\completecontent
\component c_guide
\stopfrontmatter
\component c_ch1
\component c_ch2
\component c_ch3
\startappendices
   \component c_app1
\stopappendices
\stoptext
\stopproduct
I have been trying a lot of permutations but so far without luck.
Secondly, when I turn on 2xB5 on one B4 landscape and 2SIDE 
arrangement, I would like to have an initial blank page (with page 
number 0) so I can have my 2SIDE look just like a book would look. I 
have tried to get one with the \page command in various places and with 
various setups, but so far without *any* effect.

I have been using the manual, the wiki and any documentation I have 
been able to find. So far no luck.

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


Re: [NTG-context] Why I needed \parbox and why does \framed not work here?

2005-03-13 Thread Gerben Wierda
Hi Willi,
Thanks.
If what you changed was the addition of the (2cm) stuff, I did try that 
but it did not change anything at that time.

But now I notice that I need to start my rows with a \NC. I would have 
thought that a \NC would be like a \crlf or a \page and that it would 
have been implied in the \NR command. I find this counterintuitive.

Anyway, Having that (2cm) stuff in the \startabulate makes all tables 
the same in column width. I used to be able to have one command 
\xttable where the result depended on what I had in the main text.

So, yes, I can use p columns, but that means that all of my tables will 
hae to have identical column widths. That is why I wanted to use c 
columns and have that decision in the text. So I would still be 
interested in a way of doing \parbox in ConTeXt.

(For non-LaTeX users \parbox{2cm}{text text text text etc} creates a 
paragraph 2 cm wide and sets the text in it. The height of the box is 
the result of that typesetting.)

G
On Mar 13, 2005, at 16:05, Willi Egger wrote:
Hi Gerben,
There is no worry about the mentioned chaos. You might be lucky, that 
your definition is giving a result at all.

If you consult the manual or read the article in the MAPS22 on 
tabulating, you will see, that you missed a correct setup of the 
tabulation.

I attach my version and it works.
KR
Willi
Gerben Wierda wrote:
Here is the example again, now with p columns. Never mind the 
non-working third example (ConTeXt wraps three elements in the third 
column now but not inside the \framed), but it seems that ConTeXt 
does not wrap the first column at all. As a result, the other two are 
very small.
G
PS. The ConTeXT manual does not have \starttable documentation, not 
does the wiki (how does 'p' work etc).
% Try with 'p' columns
\usemodule[bib] % defines \newcommand
\newcommand{\operand}[1]{{\sc #1}}
\newcommand{\ttvalue}[1]{{\sc #1}}
\newcommand{\xttable}[7]{\starttable[|p|p|p|]\HL %
#1 \NC #2 \NC #1 \operand{#3} #2 \SR\HL
\ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \FR %
\ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \MR %
\ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \MR %
\ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \LR\HL %
\stoptable}
\newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}}
\starttext
Looks fine:\blank
\midaligned{%
\xttable{Statement X}{Statement Y}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work:\blank
\midaligned{%
\xttable{Some sort of longer statement}{Another sort of longer 
statement}%
{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work either:\blank
\midaligned{%
\xttable{\framed[width=2cm,frame=off]{Some sort\par of longer
statement\par}}{\framed[width=2cm,frame=off]{Another sort\par of 
longer
statement\par}}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
% Truthtables Gerben Wierda
% C0ntext file
% filename: truthtable-Wierda.tex
% Gerben Wierda
% W. Egger
% 13-03-2005
\setupoutput[pdftex]
\setupbodyfont[ss,12pt]
\usemodule[bib] % defines \newcommand
\newcommand{\operand}[1]{{\sc #1}}
\newcommand{\ttvalue}[1]{{\sc #1}}
\newcommand{\xttable}[7]{\starttable[|p(2cm)|p(5cm)|p(3cm)|]
\HL %
\NC #1 \NC #2 \NC #1 \operand{#3} #2 \NC\NR
\HL
\NC \ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \NC\NR %
\NC \ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \NC\NR %
\NC \ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \NC \NR %
\NC \ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \NC\NR\HL %
\stoptable}
\newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}}
\starttext
Looks fine:\blank
\midaligned{%
\xttable{Statement X}{Statement Y}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
 This doesn't work:\blank
\midaligned{%
\xttable{Some sort of longer statement}{Another sort of longer 
statement}%
{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}

% This doesn't work either:\blank
% \midaligned{%
% \xttable{\framed[width=2cm,frame=off]{Some sort of longer
% statement\par}}{\framed[width=2cm,frame=off]{Another sort of longer
% statement\par}}{$\Rightarrow$}%
% {unknown}{unknown}{invalid (false)}{valid (true)}
% }
\stoptext
___
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] Re: Learning ConTeXt, typical hurdle

2005-03-13 Thread Willi Egger
Hi Gerben,
Due to a mistaken handling you roriginal mail I lost it :-(
In that mail in the last part, I believe it was an example \component I 
saw, that you said \starttext ... \stoptext. You do not need this pair, 
The handling of starting and stopping is done by the \startproject ... 
\stopproject commands.

In the product section I saw that you did not use the \startbodymatter 
... \stopobodymatter. I think this is important, because in the 
frontmatter sectionheading handling is different, as is in the backmatter.

here you go with an example I prepared:
\startproject HBBbrev
\enablemode[A-vier]
\environment layout
\product voorpag%Titlepage for the book
\product beginmat   %Frontmatter: Woord vooraf, Koppermaandag,
%Boekbinderslied
\startbodymatter
\environment lo-3
\product gekart  %Gekartonneerd in drie varianten
\product bdz-rech%Bandzetter rechte rug
...
\product technik %Werkwijzen en technieken
\product appendix%Appendices:
\stopbodymatter
\product backmat %Backmatter: Impressum
\nomorefiles
\stopproject
In my case many of the product-files contain a number of \components.
I do hope, that this helps.
Kind regards Willi
Patrick Gundlach wrote:
Hey Gerben,

Now what turns out to solve this? Empty lines before \description and
\stopdescriptions

Things that were defined using \definedescription rely on \par as a
delimiter.

Though I like ConTeXt if I look at certain design aspects, behaviour that
depends on whitespace before a command frightens me.

Just the way it works :-) Nothing to worry about.
Patrick
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] alignment questions

2005-03-13 Thread Willi Egger
Hoi Patrick,
Humble, I used just the \bTABLE ...\eTABLE environment. Please refer to 
the attached file.

Kind regards
Willi
Patrick Gundlach wrote:
Hello *,
inspired by Gerben's question, I did some experimenting with \framed.
I'd like to get A[text]B, where text is some long thing in a framed
box like \framed[width=5cm] {\input tufte \par}.
There are three different ways of aligning the three objects:
(A and B on the same baseline as the first row)
A We  thrive  in  information- B
---
  thick worlds because of  our
  marvelous and  everyday  ca-
(A and B in the middle of the box, not necessarily on the same
baseline as a line in the box)
  criminate, distinguish, screen, 
A pigeonhole,  pick  over,  sort, B
  integrate,blend,   inspect,

(A and B on the same baseline as the last row)
  from the chaff and seperate
A the sheeps from the  goats. B


I was unable to get any of these alignments.
Patrick
% ALigning three blocks of text
% PAtrick Gundlach
% Context file
% filename: textblockalignment-Gundlach.tex
% Willi Egger
% 13-03-2005


\setupoutput[pdftex]
\setupbodyfont[rm,12pt]

\starttext
% Alignment of the three blocks with the first line

\setupTABLE[column][1][frame=off,width=2cm]
\setupTABLE[column][3][frame=off,width=2cm]
\setupTABLE[column][2][frame=off,width=5cm]
\bTABLE
\bTR
\bTD A \eTD
\bTDWe  thrive  in  information-
thick worlds because of  our
marvelous and  everyday  ca- \eTD
\bTD B \eTD\eTR
\eTABLE

\blank[3*big]

% Alignment of first and third block vertically centered, not necessarily 
aligned with
% a line of the second block

\bTABLE
\bTR
\bTD[align=lohi] A \eTD
\bTDcriminate, distinguish, screen,
pigeonhole,  pick  over,  sort,
integrate,blend,   inspect, \eTD
\bTD[align=lohi] B \eTD\eTR
\eTABLE

\blank[3*big]

% Alignmnet of the three blocks in such a way, that the first and last block 
align
% with the laast row of the second block

\bTABLE
\bTR
\bTD[align=low] A \eTD
\bTDfrom the chaff and seperate
A the sheeps from the  goats. \eTD
\bTD[align=low] B \eTD\eTR
\eTABLE

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


[NTG-context] Microtype ConTeXt question

2005-03-13 Thread Gerben Wierda
http://mail.rna.nl/~gerben/microtype.tiff contains an image of a margin 
of a piece of text I just have typeset with ConTeXt.

I was wondering about two things:
1. How does one set up the use of margi kerning in ConTeXt given that 
my ConTeXt (without me having selected it myself) uses Latin Modern?

I have tried adding
\usetypescript [serif,sans,mono] [hanging]  [thanh]
to my environment file.
2. If you look at the image (link above) you see that there is no 
margin kerning there. Also I was wondering if margin kerning would make 
not only the . protrude but also the slanted f protrude negatively.

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


[NTG-context] FLOWcharts

2005-03-13 Thread Adam Duck
Hello,


I'm having problems with the following chart (well, any chart, that
is):

--- ConTeXt code ---

\setupoutput[pdftex]
\usemodule[chart]
\starttext

\setupFLOWcharts[offset=50pt]

\startFLOWchart[test]

  \startFLOWcell
\name{one}
\location{1,1}
\text{one}
\connect[bt]{two}
\comment[r]{why}
\comment[l]{is}
\comment[l]{this}
  \stopFLOWcell

  \startFLOWcell
\name{two}
\location{1,2}
\text{two}
  \stopFLOWcell
  
\stopFLOWchart

\midaligned{\FLOWchart[test]}

\stoptext

--- end ---

It seems that every \comment-command pushes all text further down;
i.e. two in the secons cell but also the other comments.

version: 

 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
   context : ver: 2005.01.31
   cont-en : ver: 2005.01.31  fmt: 2005.3.8  mes: english

total run time : 1 seconds

and:

%D \module
%D   [   file=m-chart,
%Dversion=1998.10.10,

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


[NTG-context] Re: Helvetica ?

2005-03-13 Thread Patrick Gundlach
Hello Steffen,

do you have psfnss (LaTeX) installed?

Patrick

-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Why I needed \parbox and why does \framed not work here?

2005-03-13 Thread Patrick Gundlach
Hello Gerben,

 Here is the example again, now with p columns. Never mind the
 non-working third example (ConTeXt wraps three elements in the third
 column now but not inside the \framed), 

Did you read my answer to your question about \parbox? You need to
make \framed go into vertical mode by saying something like
align=lohi.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why I needed \parbox and why does \framed not work here?

2005-03-13 Thread Willi Egger
hi Gerben,
Gerben Wierda wrote:
Hi Willi,
Thanks.
If what you changed was the addition of the (2cm) stuff, I did try that 
but it did not change anything at that time.

But now I notice that I need to start my rows with a \NC. I would have 
thought that a \NC would be like a \crlf or a \page and that it would 
have been implied in the \NR command. I find this counterintuitive.

No, the \NC means new column and in order to organize this I believe it 
is natural to start with \NC and end with \NC\NR to indicate a new row 
to be started.

Anyway, Having that (2cm) stuff in the \startabulate makes all tables 
the same in column width. I used to be able to have one command \xttable 
where the result depended on what I had in the main text.
What about extend your definition with another parameter?
\newcommand{\xttable}[8]{\starttable[|p(#8)|p(#8)|p(#8)|] ...
KR
Willi
So, yes, I can use p columns, but that means that all of my tables will 
hae to have identical column widths. That is why I wanted to use c 
columns and have that decision in the text. So I would still be 
interested in a way of doing \parbox in ConTeXt.

(For non-LaTeX users \parbox{2cm}{text text text text etc} creates a 
paragraph 2 cm wide and sets the text in it. The height of the box is 
the result of that typesetting.)

G
On Mar 13, 2005, at 16:05, Willi Egger wrote:
Hi Gerben,
There is no worry about the mentioned chaos. You might be lucky, that 
your definition is giving a result at all.

If you consult the manual or read the article in the MAPS22 on 
tabulating, you will see, that you missed a correct setup of the 
tabulation.

I attach my version and it works.
KR
Willi
Gerben Wierda wrote:
Here is the example again, now with p columns. Never mind the 
non-working third example (ConTeXt wraps three elements in the third 
column now but not inside the \framed), but it seems that ConTeXt 
does not wrap the first column at all. As a result, the other two are 
very small.
G
PS. The ConTeXT manual does not have \starttable documentation, not 
does the wiki (how does 'p' work etc).
% Try with 'p' columns
\usemodule[bib] % defines \newcommand
\newcommand{\operand}[1]{{\sc #1}}
\newcommand{\ttvalue}[1]{{\sc #1}}
\newcommand{\xttable}[7]{\starttable[|p|p|p|]\HL %
#1 \NC #2 \NC #1 \operand{#3} #2 \SR\HL
\ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \FR %
\ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \MR %
\ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \MR %
\ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \LR\HL %
\stoptable}
\newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}}
\starttext
Looks fine:\blank
\midaligned{%
\xttable{Statement X}{Statement Y}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work:\blank
\midaligned{%
\xttable{Some sort of longer statement}{Another sort of longer 
statement}%
{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
This doesn't work either:\blank
\midaligned{%
\xttable{\framed[width=2cm,frame=off]{Some sort\par of longer
statement\par}}{\framed[width=2cm,frame=off]{Another sort\par of longer
statement\par}}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
% Truthtables Gerben Wierda
% C0ntext file
% filename: truthtable-Wierda.tex
% Gerben Wierda
% W. Egger
% 13-03-2005
\setupoutput[pdftex]
\setupbodyfont[ss,12pt]
\usemodule[bib] % defines \newcommand
\newcommand{\operand}[1]{{\sc #1}}
\newcommand{\ttvalue}[1]{{\sc #1}}
\newcommand{\xttable}[7]{\starttable[|p(2cm)|p(5cm)|p(3cm)|]
\HL %
\NC #1 \NC #2 \NC #1 \operand{#3} #2 \NC\NR
\HL
\NC \ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \NC\NR %
\NC \ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \NC\NR %
\NC \ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \NC \NR %
\NC \ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \NC\NR\HL %
\stoptable}
\newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}}
\starttext
Looks fine:\blank
\midaligned{%
\xttable{Statement X}{Statement Y}{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}
 This doesn't work:\blank
\midaligned{%
\xttable{Some sort of longer statement}{Another sort of longer 
statement}%
{$\Rightarrow$}%
{unknown}{unknown}{invalid (false)}{valid (true)}
}

% This doesn't work either:\blank
% \midaligned{%
% \xttable{\framed[width=2cm,frame=off]{Some sort of longer
% statement\par}}{\framed[width=2cm,frame=off]{Another sort of longer
% statement\par}}{$\Rightarrow$}%
% {unknown}{unknown}{invalid (false)}{valid (true)}
% }
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

[NTG-context] Re: Line break after unit or \cite command

2005-03-13 Thread Patrick Gundlach
Hello Michael,


[...]

 The workaround with the \hbox{} does work. Is this some kind of
 bug and will be fixed in the future? 

as a workaround, you can say

\usemodule[units]
\enablemode[atpragma]% warning, probably 1s of side effects
\starttext
In dieser Arbeit wurde die Reaktion untersucht. Im Energiebereich bis
XXX \EVolt{} wurden die Ergebnisse der Kollaboration bestätigt.
\stoptext

But I'd consider this a bug (well, of course not a but, but more an
undocumented feature).

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Some extra empty pages, why? And how to get an initial blank page with page number 0?

2005-03-13 Thread Willi Egger
Hi Gerben,
I puzzeled with your project code.
First you  are not allowed to use \starttext \stoptext in a definition.
Your definitione interferes with the chapter mechnism. So more knowledge 
is necessary which I do not have at the moment.
in the before option you say \page=right, seems to create a problem.
If you want to start a page with blank lines you nee to insert a \strut

Please see the attached file
KR
Willi
Gerben Wierda wrote:
Fro my environment:
%\setuppapersize[B5][B4,landscape]
\setuppapersize[B5][B5]
\setupindenting[small]
\setuplayout[location=doublesided]
%\setuparranging[2SIDE]
\setuppagenumbering[alternative=doublesided]
%
\usemodule[lettri]
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\newcommand{\ChQuoteFormat}[1]{\starttext%
%\raggedright%
\startalignment[left]%
\startnarrower[4*left] \noindent{\em #1}%
\stopnarrower\stopalignment\stoptext\blank}
\setuphead[chapter]
[page=left,
before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\page[right]\blank[2*big]},
after={\ClearChapterQuote\blank[3*big]}%
\noheaderandfooterlines]

Without \setuppagenumbering[alternative=doublesided], I get single sided 
layout (even if I have the \setuplayout statement, very confusing). If I 
do add \setuppagenumbering[alternative=doublesided], I get the following:

1. Title page
2. Empty
3. Page with only a page numer 1 at the top
4. empty
5. Page with Contents 'chapter'
6. Page with quote
7. First page of chapter
Except for pages 3 and 4 that is how I want it. Why are these pages 
there? They are not there if 
\setuppagenumbering[alternative=doublesided] is left out.

My product file looks like this:
\startproduct prd_book
\project project_teoada
\starttext
\start
\startstandardmakeup \ss
\hairline \start
\switchtobodyfont[20pt]\bf
\leftaligned{TEOADA}%
\stop \hairline \blank[line]\rightaligned{Gerben Wierda}%
\blank[10cm]\start\leftskip=10cm\hairline\stop
\rightaligned{2005}%
\stopstandardmakeup
\stop
\startfrontmatter
\completecontent
\component c_guide
\stopfrontmatter
\component c_ch1
\component c_ch2
\component c_ch3
\startappendices
   \component c_app1
\stopappendices
\stoptext
\stopproduct

I have been trying a lot of permutations but so far without luck.
Secondly, when I turn on 2xB5 on one B4 landscape and 2SIDE arrangement, 
I would like to have an initial blank page (with page number 0) so I can 
have my 2SIDE look just like a book would look. I have tried to get one 
with the \page command in various places and with various setups, but so 
far without *any* effect.

I have been using the manual, the wiki and any documentation I have been 
able to find. So far no luck.

Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
 % Project Gerben Wierda
% COntext file
% filename: project_teoada.tex

 %\setuppapersize[B5][B4,landscape]
 \setuppapersize[B5][B5]
 \setupindenting[small]
%  \setuplayout[location=doublesided]
 %\setuparranging[2SIDE]
 \setuppagenumbering[alternative=doublesided]
 %
\usemodule[lettri,bib]
\def\ChapterQuote{}
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
 \newcommand{\ChQuoteFormat}[1]{%\starttext%
 %\raggedright%
 \startalignment[left]%
 \startnarrower[4*left] \noindent{\em #1}%
 \stopnarrower\stopalignment
 %\stoptext
 \blank}
 \setuphead[chapter]
 [page=left,
 before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\strut\blank[2*big]}, % \page[right]
 after={\ClearChapterQuote\blank[3*big]%
 \noheaderandfooterlines}]

\startproject project_teoada

\product prd_book

\nomorefiles
\stopproject

In a second file:

Project Gerben Wierda
COntext file
filename: prd_book.tex

\startproduct prd_book
\project project_teoada

\starttext
\start
\startstandardmakeup \ss
\hairline \start
\switchtobodyfont[20pt]\bf
\leftaligned{TEOADA}%
\stop \hairline \blank[line]\rightaligned{Gerben Wierda}%
\blank[10cm]\start\leftskip=10cm\hairline\stop
\rightaligned{2005}%
\stopstandardmakeup
\stop

\startfrontmatter
\completecontent[level=section]
\page
   \component c_guide
\stopfrontmatter
\startbodymatter
\ChapterQuote{Here comes a chapter quote}
\chapter{the first Chapter}

\section{All components listed}
\startitemize[n]
\item \type{\component c_ch1}
\item \type{\component c_ch2}
\item \type{\component c_ch3}
\stopitemize
\stopbodymatter
\startappendices
\chapter{Appendix-chapter}
\section{The appendix component}
\startitemize[n]
\item \type{\component c_app1}
\stopitemize
\stopappendices

\stoptext

\stopproduct


Re: [NTG-context] Re: Helvetica ?

2005-03-13 Thread Steffen Wolfrum
Hi Patrick,
Patrick Gundlach [EMAIL PROTECTED] wrote:
 Hello Steffen,
 do you have psfnss (LaTeX) installed?
 Patrick

Yes, sure. As part of Gerbens 2004 stable.
But this doesn't seem to be enough.
Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: newbie question about fonts

2005-03-13 Thread Patrick Gundlach
Hello Ciro,

 I am my distributor maintainer. 

But you got your distribution from some source?

 what is the local guide you refer to?

This should come with your TeX system (Linux system, downloaded TeX
system, whatever) that tells you about things that you need to know
about your TeX system. Including the available fonts. Since I don't
know what your TeX system is, I can't tell you if you have such a
local guide. If it is not on your system, you should complain to the
person that gave you the TeX.


 Wouldn't it be nice to have a command in Context like:

 \listavailablefonts [type1 | truetype | ... | all]

Then please define what a font is. But apart from that, it is not
possible from within TeX.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why I needed \parbox and why does \framed not work here?

2005-03-13 Thread mickle
Gerben Wierda [EMAIL PROTECTED] writes:

 Here is the example again, now with p columns. Never mind the
 non-working third example (ConTeXt wraps three elements in the third
 column now but not inside the \framed), but it seems that ConTeXt does
 not wrap the first column at all. As a result, the other two are very
 small.
 
 G
 
 PS. The ConTeXT manual does not have \starttable documentation, not
 does the wiki (how does 'p' work etc).

Have you read the documents .../general/uptodate/up-004 and up-008? I
found them very helpful in learning how to control tables and
tabulations.
-- 

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


Re: [NTG-context] FLOWcharts

2005-03-13 Thread Willi Egger
Hi Adam,
hm, the same here also with alpha-context of february 2005.
May be, that one should use a single \comment only. Still there is a 
problem then with \comment[t]{text}, which causes the text in the second 
cell to move down.

I think this is somethin for Hans ...
Kind regards
Willi

Adam Duck wrote:
Hello,
I'm having problems with the following chart (well, any chart, that
is):
--- ConTeXt code ---
\setupoutput[pdftex]
\usemodule[chart]
\starttext
\setupFLOWcharts[offset=50pt]
\startFLOWchart[test]
  \startFLOWcell
\name{one}
\location{1,1}
\text{one}
\connect[bt]{two}
\comment[r]{why}
\comment[l]{is}
\comment[l]{this}
  \stopFLOWcell

  \startFLOWcell
\name{two}
\location{1,2}
\text{two}
  \stopFLOWcell
  
\stopFLOWchart

\midaligned{\FLOWchart[test]}
\stoptext
--- end ---
It seems that every \comment-command pushes all text further down;
i.e. two in the secons cell but also the other comments.
version: 

 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
   context : ver: 2005.01.31
   cont-en : ver: 2005.01.31  fmt: 2005.3.8  mes: english
total run time : 1 seconds
and:
%D \module
%D   [   file=m-chart,
%Dversion=1998.10.10,
bye, Adam.
___
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] Moving to ConTeXt

2005-03-13 Thread h h extern
Henning Hraban Ramm wrote:
Am 10.03.2005 um 10:59 schrieb Gerben Wierda:
What I do not understand is how these components end up in a directory
hierarchy.
What would be very nice is some sort of downloadable archive with some
sample basic project structures.
Reading the stuff above I still have no idea how to build a directory
hierarchy for my project such that it can do all that the project
management part of ConTeXt promises.

Do you *need* different directories? Perhaps it's sufficient to name 
your components so that you can easily see what belongs where.

AFAIK ConTeXt looks always into the parent directories, but not in 
parallel/child directories if not explicitly specified. (E.g. you can 
define a figures path.)
you can say
\usepath[somepath]
\usesubpath[one]
\usesubpath[two]
etc

-
  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


Re: [NTG-context] pdf bookmarks

2005-03-13 Thread h h extern
VnPenguin wrote:
On Tue, 8 Mar 2005 20:56:06 +, David Waller [EMAIL PROTECTED] wrote:
Hello,
I am trying to produce bookmarks in the PDF file produced with context.
I can produce bookmarks but I am unable to get any hierarchy of bookmarks
such that chapters can just be displayed initially and then the
sections open up.

With 

\placebookmarks[chapter,section,subsection]
I got a perfect bookmark :)
\placebookmarks [chapter,section,subsection]
[chapter]
will do the same but open only chapter ones by default
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


Re: [NTG-context] Re: Current text width?

2005-03-13 Thread h h extern
Duncan Hothersall wrote:
I said:
So - is there a parameter which represents the current width of the 
layout area, taking into account itemisations, textbackgrounds and 
anything else? Thanks.

I came up with a rather ugly kludge which solves my immediate problem 
but might not be best. I created a new dimen, \RealWidth, and before 
each table I set it to the value of \textwidth minus leftskip minus 
rightskip. In other words, I did this:

--
\newdimen\RealWidth
\definetextbackground[TestBackground]
 [leftoffset=1em,rightoffset=1em,topoffset=8pt,
bottomoffset=8pt,frame=on,location=paragraph]
\starttext
\starttextbackground[TestBackground]
Some text first, which behaves perfectly, and then a table:
\leavevmode\RealWidth=\textwidth\advance\RealWidth 
by-\leftskip\advance\RealWidth by-\rightskip\bTABLE
\setupTABLE[column][1][width=0.3\RealWidth]
\setupTABLE[column][2][width=0.7\RealWidth]
\bTR\bTD I was hoping\eTD
\bTD that this table would make itself narrower according to the
background offsets, like the text does. And now it does!\eTD\eTR
\eTABLE}
\stoptextbackground
\stoptext
--

This produces what I want as far as I have tested it. I'm not sure it's 
the best or most comprehensive solution though.
kind of; an alternative is:
\startlinecorrection % needed anyway
\setlocalhsize \hsize\localhsize
\dontleavehmode \bTABLE
\setupTABLE[column][1][width=0.3\hsize]
\setupTABLE[column][2][width=0.7\hsize]
\bTR\bTD I was hoping\eTD
\bTD that this table would make itself narrower according to the
background offsets, like the text does. And now it does!\eTD\eTR
\eTABLE
\stoplinecorrection
auto adaption is kind of tricky here because
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


Re: [NTG-context] Re: Learning ConTeXt, typical hurdle

2005-03-13 Thread h h extern
Patrick Gundlach wrote:
Hey Gerben,

Now what turns out to solve this? Empty lines before \description and
\stopdescriptions

Things that were defined using \definedescription rely on \par as a
delimiter.

Though I like ConTeXt if I look at certain design aspects, behaviour that
depends on whitespace before a command frightens me.

Just the way it works :-) Nothing to worry about.
there are only a few commands that depend on that
for descriptions, you can also use
\startwhatever {...}
\stopwhatever
in addition to
\whatever {...} ... \par
given that you defined whatever -)
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


Re: [NTG-context] \def\sectionseparator{:}

2005-03-13 Thread h h extern
Peter Münster wrote:
Hello,
in core-sec.tex, I read:
\def\sectionseparator{:} % was : but is now -
I there any inconvenience, to change it to - ?
I've tried it out, and all my problems to get French spaces before
punctuation and project structure and so on, were gone.
hm, then you're lucky since more changes are needed -)
Could we patch core-sec.tex ?
[probably, it runs ok here for quite some time now]
in your local copy of cont-sys.tex, add:
\usemodule[tryout]
when things work ok (i suggest that patrick also adds this to the wiki context 
processing part) i will patch it (remind me in a couple of months)

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


Re: [NTG-context] critical editions in context / arabtex

2005-03-13 Thread h h extern
Thomas A.Schmitz wrote:
OK, I feel guilty resurrecting this stale thread, but I can't resist 
asking again.

I found this in m-arabtex.tex:
%\pushmacro\edmacloaded   \let \edmacloaded   \undefined
and later
%\popmacro\edmacloaded
Both lines are commented out, so I'm still wondering if
i talked with Klaus Lagally at eurotex and he will make arabtex a bit more 
context friendly: a few more hooks, context aware loading, etc

he will also look into the recent problems (may hav eto do with loading heberw 
(no longer needed, part of arabtex kernel)

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


Re: [NTG-context] A (my) OTR problem

2005-03-13 Thread h h extern
luigi.scarso wrote:
\newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
\def\PageNumber#1{\vbox to \footerheight{\vss\hbox 
to\RightMarginWidth{\hss #1 \hss}\vss}}
\setuppagenumbering[location={margin},alternative=doublesided,command={\PageNumber}]
why don't you use \rightmarginwidth directly?
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


Re: [NTG-context] A (my) OTR problem

2005-03-13 Thread h h extern
luigi.scarso wrote:
I have the following code:
\showframe
\setuplayout[topdistance=0mm,topspace=10mm,header=10mm,headerdistance=10mm,
footerdistance=5mm,footer=20mm,bottomspace=2mm,
backspace=25mm,

rightmargin=10mm,rightmargindistance=1mm,rightedge=0mm,rightedgedistance=0mm,
 
leftmargin=15mm,leftmargindistance=1mm,leftedge=9mm,leftedgedistance=0mm,
width=fit,height=fit,
 location=middle]

\newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
\def\PageNumber#1{\vbox to \footerheight{\vss\hbox 
to\RightMarginWidth{\hss #1 \hss}\vss}}
\setuppagenumbering[location={margin},alternative=doublesided,command={\PageNumber}]

\newbox\ContinueNextPage \setbox\ContinueNextPage=\vbox{\strut\hbox 
to\textwidth{\hfill\mathematics{\blacktriangleright}\mathematics{\blacktriangleright}\quad}}

\starttext
\dorecurse{20}%
{\framed[width=\textwidth,height=3em,align={middle,lohi}]{\hfil
\CONTEXT --\recurselevel \hfil}}%
\stoptext
I would like to put \copy\ContinueNextPage after the last \framed in 
every page
(in this example, after CONTEXT--18 at page 1 and CONTEXT--36 at page 2).

I don't want use tables/tabular, i try to use \vsplit.
I try to read page-ini, i find useful things like \everyafterpagebody
but i'm still confused.
This needs to happen in the normal text flow (unless you want to use more dirty 
tricks)

\startsetups [continue]
  \strut\hbox to \textwidth
{\hfill\mathematics{\blacktriangleright\blacktriangleright}\quad}
\stopsetups
\def\LetsCheckItOut
  {\dowithnextbox 
{\ifdim\dimexpr\pagetotal+\ht\nextbox+\dp\nextbox+\lineheight\relax\pagegoal
\endgraf\nobreak\setups[continue]\page
  \fi
  \box\nextbox}
   \vbox}

\starttext
\dorecurse{40}
  {\LetsCheckItOut
 {\framed
[width=\textwidth,height=3em,align={middle,lohi}]
{\hfil\CONTEXT--\recurselevel\hfil}}}
\stoptext
-
  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


Re: AW: AW: [NTG-context] Re: Line break after unit or \cite command

2005-03-13 Thread h h extern
Michael Fuchs wrote:
Hi everybody!
Sorry for the too long example. I wasn't sure what caused the 
problem and wanted to provide all relevant information at one 
time. I didn't mention the units module explicitly because I
have the same problem using the \cite command from the 
bib-module and I assumed, that it would be a more general 
problem.

The workaround with the \hbox{} does work. Is this some kind of
bug and will be fixed in the future? 

Thank you all for your help! :-))
Michael

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Im Auftrag von Peter Münster
Gesendet: Freitag, 11. März 2005 19:24
An: mailing list for ConTeXt users
Betreff: Re: AW: [NTG-context] Re: Line break after unit or 
\cite command

On Fri, 11 Mar 2005, Michael Fuchs wrote:

Here is an example that shows the problem. I created it using 
live.contextgarden.net. The problem appears with standard and
german hyphenation.
Nice example: now we see, that you are using the units-module.
Just to show you, what could be a minimal example, that shows 
the problem:

\usemodule[units]
\starttext
In dieser Arbeit wurde die Reaktion untersucht. Im Energiebereich bis
XXX~\EVolt\ wurden die Ergebnisse der Kollaboration bestätigt.
\stoptext
With these few lines, everything is clear. It seems to be an 
error in the
units-module.
Possible workaround: XXX~\EVolt\hbox{} wurden...
the \hbox{} will introduce a space
your problem originates in tex not being able to break lines within the 
constraints, one optiion is to increase the tolerance

\showframe
\setuptolerance[verytolerant]
\usemodule[units]
\starttext
In dieser Arbeit wurde die Reaktion untersucht. Im Energiebereich bis
XXX \EVolt\ wurden die Ergebnisse der Kollaboration bestätigt.
\stoptext

-
  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


Re: [NTG-context] ConTeXt equivalent for \ensuremath?

2005-03-13 Thread h h extern
Gerben Wierda wrote:
On Mar 11, 2005, at 15:57, Nikolai Weibull wrote:
\newcommand{\ensuremath}[1]{\ifmmode\expandafter\FirtsOfOne%
\else\expandafter\EnsuredMath\fi}
\long\def\FirstOfOne#1{#1}
\long\def\EnsuredMath#1{$\relax#1$}
\newcommand{\bit}[2]{\ensuremath{\hbox{\tf #1}_\hbox{\tf #2}}}

but is there a ConTeXt way of doing this?

\mathematics{...},
nikolai
Replacing \ensuremath above with \mathematics gives an error (both 
attempts):

\newcommand{\bit}[2]{\mathematics{\hbox{\tf #1}_\hbox{\tf #2}}}
\newcommand{\bit}[2]{\mathematics{{\hbox{\tf #1}_\hbox{\tf #2
you now say something like
text_\hbox
and since _ kind of takes an argument, it gets an hbox only; you need
text_{\hbox{..}}
as in:
\def\bit#1#2{\mathematics{\hbox{\tf#1}_{\hbox{\tf#2
\bit{1}{2}
-
  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


Re: [NTG-context] Re: newbie question about fonts

2005-03-13 Thread Ciro A. Soto
Thank you Patrick. I'm still looking for


--- Patrick Gundlach [EMAIL PROTECTED] wrote:
 Hello Ciro,
 
  I am my distributor maintainer. 
 
 But you got your distribution from some source?

I downloaded the CD iso image from a website
and installed Fedora Core 3.

 
  what is the local guide you refer to?
 
 This should come with your TeX system (Linux system,
 downloaded TeX
 system, whatever) that tells you about things that
 you need to know
 about your TeX system. Including the available
 fonts. Since I don't
 know what your TeX system is, I can't tell you if
 you have such a
 local guide. If it is not on your system, you should
 complain to the
 person that gave you the TeX.

Similarly, I downloaded texlive2004 CD from the
tug.org, and installed it according to the
instructions
in the CD. What is the name of the 'local guide' file?



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


Re: [NTG-context] Renaming spot colours

2005-03-13 Thread h h extern
Duncan Hothersall wrote:
Peter Rolf said
\definecolor[PANTONE 294CV] [c=1,m=.56,y=0,k=.18]
% test \framed[background=color, backgroundcolor={PANTONE
294CV}]{Test}
\color[PANTONE 294CV] Test
% the only thing that doesn't work is \PANTONE 294CV

Thanks very much for responding Peter! Interesting behaviour - the above 
will process in ConTeXt, but to match the Corel name I need a space 
after the '294' as well, which results in:

--
[MP to PDF] (./ifs-fmar-bk-mpgraph.1 [unknown MP special 294]
! Missing number, treated as zero.
to be read again
   C
\@@cl@@r -C
V
etc.
--
But in any case - did you get a functioning PDF file when you used the 
above definition? Despite the fact that ConTeXt completes its run, I get 
a broken file with your definition. Maybe this is because I am using 
multiple tints of the spot? My color defs look like this:

\setupcolors[rgb=no,cmyk=no,spot=yes,state=start]
\definecolor[PANTONE 294CV][c=1,m=.56,y=0,k=.18]
\definecolor[IFSblue][{PANTONE 294CV}][p=1]
\definecolor[IFSbluetint][{PANTONE 294CV}][p=.2]
\definecolor[IFSblueheadertint][{PANTONE 294CV}][p=.12]
\definecolor[IFSbluetabletint][{PANTONE 294CV}][p=.15]
As I say, even with this definition (missing the final space) the PDF 
result won't open in Acrobat (colour space error). Does your open?
The problem is in the space in the name; since this name is used all over the 
place, an internal cleanup will not help, so this is why we have (yes, 
undocumented, so ... add to the wiki)

\setupcolors[rgb=no,cmyk=no,spot=yes,state=start]
\definecolor[IFSbluebase]  [c=1,m=.56,y=0,k=.18]
\doregisterspotcolorname{IFSbluebase}{PANTONE 294CV}
\definecolor[IFSblue]  [IFSbluebase][p=1]
\definecolor[IFSbluetint]  [IFSbluebase][p=.2]
\definecolor[IFSblueheadertint][IFSbluebase][p=.12]
\definecolor[IFSbluetabletint] [IFSbluebase][p=.15]
\starttext
  \color[IFSbluetabletint]{Interesting}
\stoptext
So, use nice names internally and register the name using a low level feature; 
in a next version i will provide

\definecolor[IFSbluebase]  [c=1,m=.56,y=0,k=.18,e=PANTONE 294CV]
(e for equivalent) which is nicer.
[multitone colors are even nastier, but they are cleaned up automatically]
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


Re: [NTG-context] alignment questions

2005-03-13 Thread h h extern
Patrick Gundlach wrote:
Hello *,
inspired by Gerben's question, I did some experimenting with \framed.
I'd like to get A[text]B, where text is some long thing in a framed
box like \framed[width=5cm] {\input tufte \par}.
There are three different ways of aligning the three objects:
(A and B on the same baseline as the first row)
A We  thrive  in  information- B
---
  thick worlds because of  our
  marvelous and  everyday  ca-
(A and B in the middle of the box, not necessarily on the same
baseline as a line in the box)
  criminate, distinguish, screen, 
A pigeonhole,  pick  over,  sort, B
  integrate,blend,   inspect,

(A and B on the same baseline as the last row)
  from the chaff and seperate
A the sheeps from the  goats. B


I was unable to get any of these alignments.
one way is to put things in a box and do some measuring and such; however, then 
you need to know a bit about the position of the baseline (measurethe middle 
box, and use a dummy framed around A and B with that height set etc)

the other way is to use the following extensions (i made the dislocator 
installable so that you can hook in your own code if needed)

\unprotect
\def\stoplocalframed
  {\dontshowcomposition
   \@@stopframedorientation
   \ifboxhasformat
 \ifx\localwidth\v!fit
   \ifreshapeframebox\doreshapeframedbox\fi
   \boxhaswidthfalse
 \else\ifx\localwidth\v!fixed
   \boxhaswidthfalse
 \else
   \resetshapeframebox
 \fi\fi
   \else
 \resetshapeframebox
   \fi
   \ifboxhaswidth
 \wd\framebox\!!widtha
   \fi
   \ifboxhasheight
 \ht\framebox\!!heighta
   \fi
   \doifvalue{\@@framed\c!empty}\v!yes
 {\setbox\scratchbox\null
  \wd\scratchbox\wd\framebox
  \ht\scratchbox\ht\framebox
  \dp\scratchbox\dp\framebox
  \setbox\framebox\box\scratchbox}%
   \stopregistercolor
   \docolorframebox
   \ifboxhasoffset
 \dooffsetframebox
   \fi
   \ifboxisoverlaid \else
 \dolocateframebox
   \fi
   \ifx\postprocessframebox\relax \else
 \let\next\postprocessframebox
 \let\postprocessframebox\relax % prevent nesting
 \next\framebox
   \fi
   \edef\overlaylinecolor{\framedparameter\c!framecolor}%
   \edef\overlaylinewidth{\the\ruledlinewidth}% \@@...
   \ifboxhasframe % real or invisible frame
 \doframedbox
   \fi
   \doifvaluesomething{\@@framed\c!background}\dobackedbox
   \handleframedlocator\@@locallocation
   \box\framebox
   \egroup
   \egroup}
\def\installframedlocator#1#2%
  {\setvalue{\??ol:\c!location:#1}{#2}}
\def\handleframedlocator#1%
  {\getvalue{\??ol:\c!location:#1}}
\def\doprelocframedbox#1%
  {\scratchdimen#1\relax
   \advance\scratchdimen \ruledlinewidth
   \ifboxhasoffset
 \advance\scratchdimen \framedparameter\c!offset
   \fi
   \scratchskip\ht\framebox
   \advance\scratchskip-\scratchdimen}
\installframedlocator \v!hanging % best with strut=no
  {\dp\framebox\ht\framebox
   \ht\framebox\zeropoint}
\installframedlocator \v!depth
  {\scratchdimen\ht\framebox
   \advance\scratchdimen -\strutdp
   \ht\framebox\scratchdimen
   \dp\framebox\strutdp
   \box\framebox}
\installframedlocator \v!height
  {\scratchdimen\ht\framebox
   \advance\scratchdimen -\strutht
   \ht\framebox\strutht
   \dp\framebox\scratchdimen
   \box\framebox}
\installframedlocator \v!high
  {\doprelocframedbox\strutht
   \setbox\framebox\hbox{\lower\scratchskip\box\framebox}%
   \ht\framebox\strutht
   \dp\framebox\strutdp
   \hbox{\box\framebox}}
\installframedlocator \v!line
  {\setbox\framebox\hbox{\lower.5\ht\framebox\box\framebox}%
   \ht\framebox.5\lineheight
   \dp\framebox.5\lineheight
   \hbox{\box\framebox}}
\installframedlocator \v!low
  {\doprelocframedbox\strutdp
   \setbox\framebox\hbox{\lower\scratchdimen\box\framebox}%
   \ht\framebox\strutht
   \dp\framebox\strutdp
   \box\framebox}
\installframedlocator \v!top
  {\doprelocframedbox\strutht
   \setbox\framebox\hbox{\lower\scratchskip\box\framebox}%
   \ht\framebox\scratchdimen
   \dp\framebox\scratchskip
   \hbox{\box\framebox}}
\installframedlocator \v!middle
  {\scratchdimen.5\ht\framebox
   \setbox\framebox\hbox{\lower\scratchdimen\box\framebox}%
   \ht\framebox\scratchdimen
   \dp\framebox\scratchdimen
   \hbox{\box\framebox}}
\installframedlocator \v!lohi
  {\handleframedlocator\v!middle}
\installframedlocator \v!bottom
  {\doprelocframedbox\strutdp
   \setbox\framebox\hbox{\lower\scratchdimen\box\framebox}%
   \ht\framebox\scratchskip
   \dp\framebox\scratchdimen
   \hbox{\box\framebox}}
\starttext
\ruledhbox
  {A
   \framed[width=2cm,align=middle,location=hanging]{location\\equals\\hanging}
   \framed[width=2cm,align=middle,location=depth]  {location\\equals\\depth}
   \framed[width=2cm,align=middle,location=height] {location\\equals\\height}
   B}
\vskip2cm
\ruledhbox
  {A
   \framed[width=2cm,align=middle,location=low]{location\\equals\\low}
   \framed[width=2cm,align=middle,location=line]   {location\\equals\\line}
   

Re: [NTG-context] Initial Font Installation Question (Mac)

2005-03-13 Thread h h extern
David Wooten wrote:
I'm back to ask another question:
After an initial successful installation of the purchased fonts, I've 
come to find that there is a serious quirk. That is, when I try to use 
any special glyph, be it an accented character of any kind, or e.g. an 
eth. The result of something like \a (or \{a}) is _a_ without the 
diacritic. Curiously (to me, at least:), if I enter the actual glyph: , 
it gives me the character I needbut only for a few runs! After adding a 
couple more of such alternative glyphs, it starts to show gibberish. 
Some trials evince an ff-ligature as the diacritic. Errors in the 
mapping/virtual font/?
i can imagine interference between input encoding and remapping (map/enc file) 
later in the pipeline, but what puzzles me is that different runs produce 
something different; sounds more like an os/caching problem

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


Re: [NTG-context] Re: Learning ConTeXt, typical hurdle

2005-03-13 Thread Gerben Wierda
On 13 Mar 2005, at 23:27, h h extern wrote:
Gerben Wierda wrote:
Hey Gerben,

Now what turns out to solve this? Empty lines before \description 
and
\stopdescriptions
Things that were defined using \definedescription rely on \par as a
delimiter.

Though I like ConTeXt if I look at certain design aspects, behaviour
that
depends on whitespace before a command frightens me.
Just the way it works :-) Nothing to worry about.
What this introduces is that the working of the ascii file depends on 
its
layout. I can understand that an empty line does a \par (it is 
convenient
after all) but I would see that kind of behaviour kept to a minimum. 
That
is, now I have this 'invisible' element that is needed to close my
structure. It is something quite unexpected for me in a TeX workflow.
Different layout because of a missing empty line, fine. But an error
message and a halt really surprises me. Another part of a learning 
curve
which if you want adoption you should try to avoid. But maybe it is
impossible to make ConTeXt more 'forgiving'.
The alternative is \startdescription\stopdescription which is 
logically
nicer, but adds inconvenience to the typing/editing
IMO LaTeX here does a better user-interface job (not just because I 
happen
to know LaTeX). Withing the description environment \item starts a new
item and the item ends with the start of another item or the end of 
the
environment. Completely independent of the layout of the ascii file.
It would IMO be a lot friendlier if my \stopdescriptions and 
\description
commands would take care of this and I could do things like:
\startdescriptions
\description{Foo} Bar bar bar
\description{Foo} Bar bar bar
\description{Foo} Bar bar bar
\stopdescriptions
without triggering an error.
this could be made working to some extend, but it would complicate the 
code; this mechanism actually is implemented so that it can handle:

\starttext
\definedescription[test]
\test oeps whow \par
\test oeps
whow
\test {oeps} whow \par
\test {oeps} whow \par
\starttest {oeps} whow \stoptest
\stoptext
nowadays i tend to more verbose coding; anyhow, we can add something
\unprotect
\def\startdescriptions
  {\dosingleempty\dostartdescriptions}
\def\dostartdescriptions[#1]%
  {\begingroup
   \def\item{\getvalue{#1}}%
   \let\dostoppairdescription \donothing
   \let\@@description \dostartpairdescription
   \let\@@startsomedescription\dostartsomedescription}
\def\stopdescriptions
  {\dostoppairdescription
   \endgroup}
\def\dostartpairdescription[#1][#2]%
  {\dostoppairdescription
   \def\dostoppairdescription{\@@stopdescription{#1}}%
   \bgroup
   \def\currentdescription{#1}%
   \doifelse{\descriptionparameter{\s!do\c!state}}\v!start
 {\@@makedescription{#1}[#2]{}}
 {\@@makedescription{#1}[#2]}}
\def\dostartsomedescription % #1[#2]#3%
  {\bgroup
   \@@makedescription} % {#1}[#2]{#3}}
\protect
\starttext
\definedescription[test]
\startdescriptions
\test{Foo} Bar bar bar
\test{Foo} Bar bar bar
\test{Foo} Bar bar bar
\stopdescriptions
\startdescriptions
\starttest{Foo} Bar bar bar \stoptest
\starttest{Foo} Bar bar bar \stoptest
\starttest{Foo} Bar bar bar \stoptest
\stopdescriptions
\startdescriptions[test]
\item{Foo} Bar bar bar
\item{Foo} Bar bar bar
\item{Foo} Bar bar bar
\stopdescriptions
\stoptext
for those who have problems adapting; so, what does the general 
context public think of such an extension?
Apart from adapting, the \startitemize \stopitemize does not require me 
to have a \par at the end. That is also confusing.

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


Re: [NTG-context] A (my) OTR problem

2005-03-13 Thread luigi.scarso




h h extern wrote:
luigi.scarso
wrote:
  
  I have the following code:


\showframe

\setuplayout[topdistance=0mm,topspace=10mm,header=10mm,headerdistance=10mm,

 footerdistance=5mm,footer=20mm,bottomspace=2mm,

 backspace=25mm,


rightmargin=10mm,rightmargindistance=1mm,rightedge=0mm,rightedgedistance=0mm,


leftmargin=15mm,leftmargindistance=1mm,leftedge=9mm,leftedgedistance=0mm,

 width=fit,height=fit,

 location=middle]


\newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth

\def\PageNumber#1{\vbox to \footerheight{\vss\hbox
to\RightMarginWidth{\hss #1 \hss}\vss}}

\setuppagenumbering[location={margin},alternative=doublesided,command={\PageNumber}]


\newbox\ContinueNextPage \setbox\ContinueNextPage=\vbox{\strut\hbox
to\textwidth{\hfill\mathematics{\blacktriangleright}\mathematics{\blacktriangleright}\quad}}



\starttext

\dorecurse{20}%

{\framed[width=\textwidth,height=3em,align={middle,lohi}]{\hfil

 \CONTEXT --\recurselevel \hfil}}%


\stoptext



I would like to put \copy\ContinueNextPage after the last \framed in
every page

(in this example, after CONTEXT--18 at page 1 and CONTEXT--36 at page
2).


I don't want use tables/tabular, i try to use \vsplit.


I try to read page-ini, i find useful things like \everyafterpagebody

but i'm still confused.

  
  
This needs to happen in the normal text flow (unless you want to use
more dirty tricks)
  
  
\startsetups [continue]
  
 \strut\hbox to \textwidth
  
 {\hfill\mathematics{\blacktriangleright\blacktriangleright}\quad}
  
\stopsetups
  
  
\def\LetsCheckItOut
  
 {\dowithnextbox
{\ifdim\dimexpr\pagetotal+\ht\nextbox+\dp\nextbox+\lineheight\relax\pagegoal
  
 \endgraf\nobreak\setups[continue]\page
  
 \fi
  
 \box\nextbox}
  
 \vbox}
  
  
  
\starttext
  
  
\dorecurse{40}
  
 {\LetsCheckItOut
  
 {\framed
  
 [width=\textwidth,height=3em,align={middle,lohi}]
  
 {\hfil\CONTEXT--\recurselevel\hfil}}}
  
  
\stoptext
  
  

Not only it works, it's also very nice:
thanks Hans.

(
I know that 
\newdimen\RightMarginWidth
\RightMarginWidth=\rightmarginwidth

it's strange (after all i use \footerheight
at the next line...).

Some time ago i wrote something like
\MyDimension=0.87\rightmarginwidth

During some corrections/enhancement i made a mistake and i wrote
\rightmarginwidth
=0.87\MyDimension

A nightmare.

When i feel insecure (will i use this dimensions as readonly or
read/write variables ?)
i prefer a safe copy
(in this case i'm sure that i use \footerheight as a readonly var).
)

luigi


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