[NTG-context] supp-vis and pdfetex

2005-04-01 Thread Patrick Gundlach
Hello,

this is slightly off-topic:

when using supp-vis in a plain-tex document, it runs ok with normal
TeX, but not with pdfetex:

\input supp-vis
Hello \TeX!
\bye

--
Running `PDFTeX' on `test' with ``pdftex  \nonstopmode\input test.tex''
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 \write18 enabled.
entering extended mode

(./test.tex (/opt/tetex/3.0/texmf/tex/context/base/supp-vis.tex
(/opt/tetex/3.0/texmf/tex/context/base/supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
)
loading : Context Support Macros / Visualization
! Missing { inserted.
to be read again 
   \def 
l.424 \unexpanded\def
 \ruledhbox
Runaway text?
\def \ruledhbox {\normalhbox \bgroup \dowithnextbox {\makeruledbox \nextbox \ET

[]
--

Any way around this?

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] Re: good-looking tables in context

2005-04-01 Thread Hans Hagen
Patrick Gundlach wrote:
There are commands like \toprule, \midrule, \bottomrule that insert
horizontal rules with different thickness (default values, optional
ones can be added with [..] right after the command). Eckhart has sent
an example in his first post.
\starttable[|||]
\HL[2]
\NC test \NC test \NC \FR
\HL[5]
\NC test \NC test \NC \MR
\HL[8]
\NC test \NC test \NC \LR
\HL[2]
\stoptable

To get a horizontal rule from column a to column b you can (in LaTeX)
use:
\cmidrule[wd](trim){ab}
where wd is the rulethickness, trim is where to cut off a bit, and a,
b the columns. This is a very nice command that I often use.
\starttable[]
\HL[2]
\NC test \NC test \NC test \NC \FR
\DC \DL[2] \DR
\NC test \NC test \NC test \NC \MR
\HL[8]
\NC test \NC test \NC test \NC \LR
\HL[2]
\stoptable
\addlinespace addes a little space between rows. 
we have \SR for that
Table preambles can be complicated... but the next one is pretty
simple:
[EMAIL PROTECTED]@{}}
means: to the left of the table, there should be no whitespace (i.e.
the leftmost glyph of the table should be tight to the preceding
glyph) now, there is a right aligned column, two left aligned, 22
centered columns and one type v and to the right there should be no
whitespace either. The column type v is defined like this
\framed[offset=overlay]{%
\starttable[s0|s1r|l|l|*{2}{c}|]
\NC right \NC left \NC left \NC one \NC two \AR
\NC r \NC l\NC l\NC 1   \NC 2   \AR
\stoptable
}
something is wrong with the format key defining mechanism and hooks; i need to 
check this

[actually, i need to merge the original table code and my patches into one file 
so that i can make things more robust]

\newcolumntype{v}[1]{{\raggedright\hspace{0pt}}p{#1}}
Ragged right but so that the first word can be hyphenated.
Or another columntype could be:
\newcolumntype{R}[1]{%
  
{\begin{turn}{90}\begin{minipage}[t][0pt]{#1}\smalltabsize\raggedright\hspace{0pt}}l%
  {\end{minipage}\end{turn}}%
}
that would lead to rotated raggedright text in a smaller font.
keys ... but i need to fix something
I know that ConTeXt tables have a lot of features that LaTeX tables
don't have.
hidden features -)
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] btex-etex

2005-04-01 Thread Jiri Polcar
Hallo,

my ConTeXt ignore btex-etex command. It works as the btex-etex command
is empty. No text on output. Simple example:

\starttext

\startuseMPgraphic{test}
  picture p; p := btex TEST etex scaled 5cm;
  draw p; 
\stopuseMPgraphic

\useMPgraphic{test}

\stoptext

On output is only page number. In the 'mpgraph.mp' is (if a skip some
definitions):

ResetTextAreas ;
SaveTextAreas ;
ResetTextAreas ;
if unknown context_core : input mp-core.mp ;
fi ;
local_multi_par_area:=false;
;;
verbatimtex \global \loadfontfileoncetrue  etex;
let mprunend = end ;
beginfig(1);
picture p;
p := btex TEST etex
scaled 5cm;
draw p;
endfig;
let end = mprunend ;
end.

If a extract a part with 

beginfig(1);
picture p;
p :=  btex TEST etex;
draw p;
endfig;
end.

and proccess it with mpost it works good. My ConTeXt comes from Fedora
Core 3 distribution. Any suggestion how to solve it?

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


Re: [NTG-context] supp-vis and pdfetex

2005-04-01 Thread Hans Hagen
Patrick Gundlach wrote:
this is slightly off-topic:
when using supp-vis in a plain-tex document, it runs ok with normal
TeX, but not with pdfetex:
% begin of supp-vis.tex
\ifx\contextversion\undefined
  \let \normalunexpanded \unexpanded
  \let \unexpanded   \protected
\fi
\ifx\unexpanded\undefined
   \let\unexpanded\relax
\fi
\input supp-vis
% end of supp-vis.tex
\ifx\contextversion\undefined
  \let \unexpanded \normalunexpanded
\fi
Hello \TeX!
\bye
can you test this?
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] Re: supp-vis and pdfetex

2005-04-01 Thread Patrick Gundlach
Hello Hans,

 can you test this?

Looks fine with several different visualizations. Thanks.

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: btex-etex

2005-04-01 Thread Patrick Gundlach
Hello Jiri,

 \starttext

 \startuseMPgraphic{test}
   picture p; p := btex TEST etex scaled 5cm;
   draw p; 
 \stopuseMPgraphic

 \useMPgraphic{test}

 \stoptext

The file works fine here. Except that only some part of the T is
visible (large scale factor).

Do you have write18 enabled? (http://contextgarden.net/Texmf.cnf)

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: Beginner's font flop fixed: fantastic!

2005-04-01 Thread Patrick Gundlach
Hello Paul,

 This message is to record my thanks to Thomas A.Schmitz for the
 solution to my font flop, and to Otared Kavian and Hans Hagen for
 helpful comments.  I've planted the solution in the context garden at
 http://contextgarden.net/Talk:My_Way.

Well, the font-problem is not related to my-ways and not realted to
Mac in general. More to the fact that you are using a
tetex/miktex/whatevertex and not the minimal ConTeXt distribution from
Hans' site.

A nice page on the wiki would be more appropriate I think. I once
started one at .../Psnfss but a) never finished b) the name is not
very clever...

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] Re: btex-etex

2005-04-01 Thread Jiri Polcar
On Fri, Apr 01, 2005 at 11:24:37AM +0200, Patrick Gundlach wrote:
 
 The file works fine here. Except that only some part of the T is
 visible (large scale factor).
 
 Do you have write18 enabled? (http://contextgarden.net/Texmf.cnf)

I set 

shell_escape = t

in

/usr/share/texmf/web2c/texmf.cnf

Now I see in output of pdfeTeX:

This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5)
 \write18 enabled.

Bud I do not see any TEXT in output.

--
JP

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