Re: [NTG-context] bibmodule question

2005-11-25 Thread Thomas A. Schmitz

Wonderful Taco, this works like a charm! Thanks a lot!

Best

Thomas

On Nov 25, 2005, at 8:42 AM, Taco Hoekwater wrote:


Your problem is that \high expects an argument enclosed in braces,
so you have to give it that. This is a bit more complicated, but
should work:

  \insertedition{ \setbox2=\hbox\bgroup\tfxx}{\egroup\high{\box2}}{ }%

Taco


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


Re: [NTG-context] beginners manual

2005-11-25 Thread Wolfgang Zillig

Maurice Diamantini (dom) schrieb:



Le 23 nov. 05 à 21:15, Mojca Miklavec a écrit :



What could be added:
- Tables: Natural tables (already mentioned by Taco). I just realized
  that this is the only manual where the usual tables are actually
  explained. I was looking for the explanation in cont-eni before.
- Bibliography
- Slides: some basic example with \usemodule[pre-whatever] to show the
  user that making slides is no more difficult than making an A4
  document
- Metafun: some basic examples and a reference to the manual
- XML: a basic example



I agree with the above.
And for people comming from LaTeX, it would be nice to see also :
- a basic exemple for creating html from ConTeXt,


I would argument that it is easyer to create ConTeXt from a propper 
XML/XHTML source! But as it is the beginner manual a reference to the 
XML manual should be enough.



- some mathematics


not really a big problem, but you have the choice also to use MathML.

Wolfgang


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


Re: [NTG-context] mfonts.tex from manuals

2005-11-25 Thread Adam Lindsay


On 25 Nov 2005, at 01:37, David Arnold wrote:


\startnotmode[atpragma]

  \startMPenvironment[global]
%\usetypescript[handwriting,map][lucida][texnansi]
%\definefontsynonym[TitlePage-Bold][LucidaHandwriting-Italic]
usetypescript[calligraphy,map][chancery][texnansi]
definefontsynonym[TitlePage-Bold][Chancery]
%usetypescript[sans,map][iwona][texnansi]
%definefontsynonym[TitlePage-Bold][Iwona-BoldItalic]
  \stopMPenvironment

\stopnotmode


You need to make sure \usetypescript and \definefontsynonym are  
actually macros/commands: prepend a backslash!


adam
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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


[NTG-context] Two framed texts on the same line

2005-11-25 Thread Giuseppe Bilotta
Hello, I would like to achieve this kind of typographical
effect: two text blocks, one of them aligned to the left
margin, the other with left-aligned text but with the right
margin at the right margin of the page.

I can obtain each of them with for example the following:

\defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left]
\defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right]

Now, I want them to be at the same height. However, using
things like placesidebyside or even just \startlepi ...
\stoplepi \startrepi ... \stoprepi  doesn't work.

Any suggestions?

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] Home now --- More work with type-tmf.dat and mfonts.tex

2005-11-25 Thread David Arnold

All,

On my home machine now (Mac Tiger GWTeX). I have the attached type- 
tmf-gw.dat in ~/tmp and ran:


sudo texfont type-tmf-gw.dat

Resulting output attached in texfont.log.



type-tmf-gw.dat
Description: Binary data




texfont.log
Description: Binary data


David


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


Re: Getting texfont to do batch installs on gwTeX (was Re: [NTG-context] Palatino)

2005-11-25 Thread David Arnold

Hans et al,

Changing each occurrence of TEXMFMAIN in type-tmf.dat to  
TEXMFMAIN,TEXMFTE,TEXMFGW produces the following result:


011-101:~/tmp davidarnold$ sudo texfont type-tmf-gw.dat

TeXFont 2.2.1 - ConTeXt / PRAGMA ADE 2000-2004

processing batch file : type-tmf-gw.dat
batch line : --en=texnansi --ve=public --co=antp -- 
so=auto --ro=TEXMFMAIN,TEXMFTE,TEXMFGW


TeXFont 2.2.1 - ConTeXt / PRAGMA ADE 2000-2004

 checking root : TEXMFMAIN
 checking root : TEXMFTE
mktexlsr: Updating /usr/local/teTeX/share/texmf.local/ls-R...
mktexlsr: Done.
   encoding vector : texnansi
   vendor name : public
   source path : /usr/local/teTeX/share/texmf.tetex/fonts/ 
afm/public/antp

   font collection : antp
   texmf font root : /usr/local/tetex/share/texmf.local
   pdftex map file : texnansi-public-antp.map
  processing files : all on afm path
locating afm files : using pattern /usr/local/teTeX/share/ 
texmf.tetex/fonts/afm/public/antp/*.afm

locating afm files : using pattern *
no map file at : /usr/local/teTeX/share/texmf.local/fonts/ 
map/pdftex/context/texnansi-public-antp.map


   font identifier : AntykwaPoltawskiego-Bold - text - tfm + vf
generating raw tfm/vpl : texnansi-raw-antpb (from antpb)
 generating new vf : texnansi-antpb (from texnansi-raw-antpb)

   font identifier : AntykwaPoltawskiego-BoldItalic - text -  
tfm + vf

generating raw tfm/vpl : texnansi-raw-antpbi (from antpbi)
 generating new vf : texnansi-antpbi (from texnansi-raw-antpbi)

   font identifier : AntykwaPoltawskiego-Regular - text - tfm  
+ vf

generating raw tfm/vpl : texnansi-raw-antpr (from antpr)
 generating new vf : texnansi-antpr (from texnansi-raw-antpr)

   font identifier : AntykwaPoltawskiego-Italic - text - tfm + vf
generating raw tfm/vpl : texnansi-raw-antpri (from antpri)
 generating new vf : texnansi-antpri (from texnansi-raw-antpri)
 updating map file : texnansi-public-antp.map

generating : ls-r databases

mktexlsr: Updating /usr/local/teTeX/share/texmf.local/ls-R...
mktexlsr: Done.

batch line : --en=texnansi --ve=urw --co=helvetica -- 
so=auto --ro=TEXMFMAIN,TEXMFTE,TEXMFGW


TeXFont 2.2.1 - ConTeXt / PRAGMA ADE 2000-2004

 checking root : TEXMFMAIN
 checking root : TEXMFTE
mktexlsr: Updating /usr/local/teTeX/share/texmf.local/ls-R...
mktexlsr: Done.
   encoding vector : texnansi
   vendor name : urw
   source path : /usr/local/teTeX/share/texmf.tetex/fonts/ 
afm/urw/helvetic

   font collection : helvetic
   texmf font root : /usr/local/tetex/share/texmf.local
   pdftex map file : texnansi-urw-helvetica.map
  processing files : all on afm path
locating afm files : using pattern /usr/local/teTeX/share/ 
texmf.tetex/fonts/afm/urw/helvetic/*.afm

locating afm files : using pattern *
no map file at : /usr/local/teTeX/share/texmf.local/fonts/ 
map/pdftex/context/texnansi-urw-helvetica.map


   font identifier : NimbusSanL-Bold - text - tfm + vf
generating raw tfm/vpl : texnansi-raw-uhvb8a (from uhvb8a)
 generating new vf : texnansi-uhvb8a (from texnansi-raw-uhvb8a)

   font identifier : NimbusSanL-BoldCond - text - tfm + vf
generating raw tfm/vpl : texnansi-raw-uhvb8ac (from uhvb8ac)
 generating new vf : texnansi-uhvb8ac (from texnansi-raw-uhvb8ac)

   font identifier : NimbusSanL-BoldItal - text - tfm + vf
generating raw tfm/vpl : texnansi-raw-uhvbo8a (from uhvbo8a)
 generating new vf : texnansi-uhvbo8a (from texnansi-raw-uhvbo8a)

   font identifier : NimbusSanL-BoldCondItal - text - tfm + vf
generating raw tfm/vpl : texnansi-raw-uhvbo8ac (from uhvbo8ac)
 generating new vf : texnansi-uhvbo8ac (from texnansi-raw-uhvbo8ac)

   font identifier : NimbusSanL-Regu - text - tfm + vf
generating raw tfm/vpl : texnansi-raw-uhvr8a (from uhvr8a)
 generating new vf : texnansi-uhvr8a (from texnansi-raw-uhvr8a)

   font identifier : NimbusSanL-ReguCond - text - tfm + vf
generating raw tfm/vpl : texnansi-raw-uhvr8ac (from uhvr8ac)
 generating new vf : texnansi-uhvr8ac (from texnansi-raw-uhvr8ac)

   font identifier : NimbusSanL-ReguItal - text - tfm + vf
generating raw tfm/vpl : texnansi-raw-uhvro8a (from uhvro8a)
 generating new vf : texnansi-uhvro8a (from texnansi-raw-uhvro8a)

   font identifier : NimbusSanL-ReguCondItal - text - tfm + vf
generating raw tfm/vpl : texnansi-raw-uhvro8ac (from uhvro8ac)
 generating new vf : texnansi-uhvro8ac (from texnansi-raw-uhvro8ac)
 updating map file : texnansi-urw-helvetica.map

generating : ls-r databases

mktexlsr: Updating /usr/local/teTeX/share/texmf.local/ls-R...
mktexlsr: Done.

batch line : --en=texnansi --ve=urw --co=courier -- 
so=auto --ro=TEXMFMAIN,TEXMFTE,TEXMFGW


TeXFont 2.2.1 - ConTeXt / PRAGMA ADE 2000-2004

 checking root : TEXMFMAIN
 checking root : TEXMFTE
mktexlsr: 

Re: [NTG-context] beginners manual

2005-11-25 Thread Johan Sandblom
I could help with this translation to Swedish, although I of course
also have time constraints.
Half the work and twice the fun!

Johan

2005/11/22, Mikael Persson [EMAIL PROTECTED]:
 I could think of translating to swedish. Depends on how much work it
 is and about if it must be done before that or that day. I got pretty
 much to do at work...

 /Micke P

 On 11/21/05, Hans Hagen [EMAIL PROTECTED] wrote:
  Hi,
 
  I'm going to clean up the beginners manual (at least the source code) so
  i think this s a good moment to pick up the 'translation' thread
 
  So the question is:
 
  - what can go out
  - what should go in
  - what should be updated
 
  as well as:
 
  - who will participate (in translation)
  - how to deal with localization (maybe dedicated language related chapters)
 
  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



--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How is it possible to include DraTex code in Context ?

2005-11-25 Thread Fabrice Larribe

Hi,

   I'm presently doing my first steps with Context, which seems 
absolutly wonderfull... so thanks to the developper(s).
   In the past, I was using plain tex with a macro package called 
DraTex to draw all sorts of things; so I have a library of figures 
which I would like to resuse in Context. I have seen no specific 
reference in the Context manual(s) about the compatibility of Context 
with others plain tex packages. When I do: \input DraTex.sty \input 
AlDraTex.sty I have the message No room for a new \dimen... If I load 
only the first package (DraTex), this works, but for advances things, I 
need AlDraTex. So the question: how is it possible to include DraTex 
code in Context ?


   Thanks for any help.
   Fabrice L.

   Ps: I know metafun exists !
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] References across projects, products, and components

2005-11-25 Thread Hans Hagen

David Arnold wrote:


All,

Where can I read about references that span projects, products, and  
components?


references do span them (but you can use prefixes to create namespaces 
(at section levels) so 'prefix' is the magic word here


Hans


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


Re: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Hans Hagen

Giuseppe Bilotta wrote:


Hello, I would like to achieve this kind of typographical
effect: two text blocks, one of them aligned to the left
margin, the other with left-aligned text but with the right
margin at the right margin of the page.

I can obtain each of them with for example the following:

\defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left]
\defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right]

Now, I want them to be at the same height. However, using
things like placesidebyside or even just \startlepi ...
\stoplepi \startrepi ... \stoprepi  doesn't work.

Any suggestions?

 


depends a bit on the usage; the following shows you a few tricks

\defineframedtext
 [gb]
 [align=raggedright,
  width=.5\textwidth,
  offset=0pt,
  frame=off,
  before=,
  after=]

\startbuffer[left]
\startgb[none]
\input tufte
\stopgb
\stopbuffer

\startbuffer[right]
\startgb[none]
\input zapf
\stopgb
\stopbuffer

\starttext

\input tufte

\definepairedbox[gb][location={right,top}]

\startbaselinecorrection
\placepairedbox[gb]
 {\getbuffer[left]}
 {\getbuffer[right]}
\stopbaselinecorrection

\input zapf

\stoptext

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


[NTG-context] Re: beginners manual

2005-11-25 Thread Patrick Gundlach
Hi,

this is a follow-up to the first message... Are you (Hans) collecting the
sugesstions from this thread or should they be wikified?


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


Re: [NTG-context] unicode fontdefinition

2005-11-25 Thread sjoerd siebinga

Thanks Hans,

That did the trick.

On 25 Nov 2005, at 00:05, Hans Hagen wrote:


you need something:
\starttypescript [map] [linostar] [texnansi]
  \loadmapfile [\typescripttwo-starling-linostar.map]
\stoptypescript


Shouldn't this be \typescriptthree ?


since the \typescriptthree-PalatinoLinoStarBold expands to texnansi- 
PalatinoLinoStarBold ... do you have that font file?


Yes, that fontfile was generated by texfont.

In font-uni.tex, I found two commands \defineunicodefont and  
\setupunicodefont. However, it is not entirely clear to me how these  
could be used?



Sjoerd




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


Re: [NTG-context] beginners manual

2005-11-25 Thread Xiao Jianfeng

Hans Hagen wrote:


Hi,

I'm going to clean up the beginners manual (at least the source code) 
so i think this s a good moment to pick up the 'translation' thread


So the question is:

- what can go out
- what should go in
- what should be updated

as well as:

- who will participate (in translation)
- how to deal with localization (maybe dedicated language related 
chapters)


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

I can do some work with the Chinese translation if there is no other 
people going to take this job.


One thing I have to mention is that I'm not good at ConTeXting, and I 
don't have too much time either,
it will probably take a little long time for me to translate the whole 
manual. But I can promise that

I will try my best to do a good job if I take the job.

Regards,

xiaojf

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


Re: [NTG-context] How is it possible to include DraTex code in Context ?

2005-11-25 Thread Hans Hagen

Fabrice Larribe wrote:


Hi,

   I'm presently doing my first steps with Context, which seems 
absolutly wonderfull... so thanks to the developper(s).
   In the past, I was using plain tex with a macro package called 
DraTex to draw all sorts of things; so I have a library of figures 
which I would like to resuse in Context. I have seen no specific 
reference in the Context manual(s) about the compatibility of Context 
with others plain tex packages. When I do: \input DraTex.sty \input 
AlDraTex.sty I have the message No room for a new \dimen... If I 
load only the first package (DraTex), this works, but for advances 
things, I need AlDraTex. So the question: how is it possible to 
include DraTex code in Context ?




you may try the attachec module

- move the file to context/base
- run mktexlsr
- in the document say: \usemodule[dratex]

the two line hack in teh file is needed to bypass dratex's dimension 
allocation stuff


no guarantees

Hans


m-dratex.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Home now --- More work with type-tmf.dat and mfonts.tex

2005-11-25 Thread Adam Lindsay
That looks like a success to me. You should now be able to run one of  
the texnansi-blah-blah.tex test files, as I outlined in an earlier  
message.


adam

On 24 Nov 2005, at 02:56, David Arnold wrote:

On my home machine now (Mac Tiger GWTeX). I have the attached type- 
tmf-gw.dat in ~/tmp and ran:


sudo texfont type-tmf-gw.dat

Resulting output attached in texfont.log.


--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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


Re[2]: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Giuseppe Bilotta
Friday, November 25, 2005 Hans Hagen wrote:

 depends a bit on the usage; the following shows you a few tricks

 \defineframedtext
   [gb]
   [align=raggedright,
width=.5\textwidth,
offset=0pt,
frame=off,
before=,
after=]

 \startbuffer[left]
 \startgb[none]
 \input tufte
 \stopgb
 \stopbuffer

 \startbuffer[right]
 \startgb[none]
 \input zapf
 \stopgb
 \stopbuffer

 \starttext

 \input tufte

 \definepairedbox[gb][location={right,top}]

 \startbaselinecorrection
 \placepairedbox[gb]
   {\getbuffer[left]}
   {\getbuffer[right]}
 \stopbaselinecorrection

 \input zapf

 \stoptext

Oh, interesting this pairedbox thing (it's undocumented,
though). I was hoping to be able to do it like this:

\defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left]
\defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right]
\definepairedbox[epi][location={right,top}]

\placepairedbox[epi]
{\startlepi
{\bf Coordinatore}\par
prof. F.~Nicolosi
\stoplepi}
{\startrepi
{\bf Tutor}\par
prof. G.~Russo
\stoprepi}

But it won't work because the second box (repi) gets placed
with its LEFT margin on the right margin of the page,
whereas I needed to be with its right margin at the right
margin of the page. I think the problem is that, from what I
get by reading the source, in paired boxes are not treated
equally.

Basically, the rpbolem seems to be that the width of the
lepi framed text is not the 'natural width' of the text,
despite the width=fit command ... why is this so?

-- 
Giuseppe Oblomov Bilotta


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


Re: [NTG-context] Re: beginners manual

2005-11-25 Thread Hans Hagen

Patrick Gundlach wrote:


Hi,

this is a follow-up to the first message... Are you (Hans) collecting the
sugesstions from this thread or should they be wikified?

 


it sounds like a good idea to wiki them (currently i print them -)

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


Re: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Hans Hagen

Giuseppe Bilotta wrote:


Friday, November 25, 2005 Hans Hagen wrote:

 


depends a bit on the usage; the following shows you a few tricks
   



 


\defineframedtext
 [gb]
 [align=raggedright,
  width=.5\textwidth,
  offset=0pt,
  frame=off,
  before=,
  after=]
   



 


\startbuffer[left]
\startgb[none]
\input tufte
\stopgb
\stopbuffer
   



 


\startbuffer[right]
\startgb[none]
\input zapf
\stopgb
\stopbuffer
   



 


\starttext
   



 


\input tufte
   



 


\definepairedbox[gb][location={right,top}]
   



 


\startbaselinecorrection
\placepairedbox[gb]
 {\getbuffer[left]}
 {\getbuffer[right]}
\stopbaselinecorrection
   



 


\input zapf
   



 


\stoptext
   



Oh, interesting this pairedbox thing (it's undocumented,
though). I was hoping to be able to do it like this:

\defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left]
\defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right]
\definepairedbox[epi][location={right,top}]

\placepairedbox[epi]
{\startlepi
{\bf Coordinatore}\par
prof. F.~Nicolosi
\stoplepi}
{\startrepi
{\bf Tutor}\par
prof. G.~Russo
\stoprepi}

But it won't work because the second box (repi) gets placed
with its LEFT margin on the right margin of the page,
whereas I needed to be with its right margin at the right
margin of the page. I think the problem is that, from what I
get by reading the source, in paired boxes are not treated
equally.
 


no, you need to bypass the location handling in framed texts

so, replacing left and right by none should do the trick, however, i 
found out that this demands an extra line of code in core-rul.tex (see 
'newer' below)


\def\dodostopframedtext#1#2% % no \baselinecorrection, see faq docs
 {\endgraf
  \removelastskip
  \doifvalue{\??kd#1\c!depthcorrection}\v!on % local and global
{\forgetall
 \vskip-\struttotal
 \verticalstrut
 \egroup
 \forgetall
 \vskip-\lineheight
 % will be an option, not default
 % \setbaselinecorrections
 % \donegbotbaselinecorrection
 \verticalstrut}
  \stopboxedcontent
  \stopcolor
  \egroup
  \doif{#2}\v!none\insidefloattrue % new
  \doif{\framedtextparameter{#1}\c!location}\v!none\insidefloattrue % 
newer

  \ifinsidefloat
\box\framebox
  \else
\doplacement[\??kd#1][\c!depthcorrection=\v!off]{\box\framebox}%
  \fi
  \egroup}


Basically, the rpbolem seems to be that the width of the
lepi framed text is not the 'natural width' of the text,
despite the width=fit command ... why is this so?

 

see \doplacement in the previous code, you need to have the then branch; 
placement is for placemen tin the running text (and looks at the text 
width)


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


Re: [NTG-context] beginners manual (xml input versus html output)

2005-11-25 Thread Maurice Diamantini


Le 25 nov. 05 à 10:47, Wolfgang Zillig a écrit :


Maurice Diamantini (dom) schrieb:

And for people comming from LaTeX, it would be nice to see also :
- a basic exemple for creating html from ConTeXt,


I would argument that it is easyer to create ConTeXt from a propper
XML/XHTML source! But as it is the beginner manual a reference to
the XML manual should be enough.


- some mathematics


not really a big problem, but you have the choice also to use MathML.


This is always the same  difference of opinion :

- Some people like to see the only input format to be xml (write xml for
  math, ...) and think *TeX as one of the output formats (as for
  pdf, xhtml, ps...).

- Other poeple (specialy those coming from TeX community) prefere
  writing by hand (yes it does yet exists !) some readable and lite  
document

  with math formula or other, then convert then as pdf printable
  output and (if possible also some (x)?html resizable ouput format

But perhaps I doesn't understand ConTeXt xml features. Perhaps
context is able to generate xml files instead of only reading them?
If it is the case, then let me know, as it could solve the html  
navigator

problem. So I'll have to learn more about xm and xml styles?

Maurice

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


Re: [NTG-context] unicode fontdefinition

2005-11-25 Thread Hans Hagen

sjoerd siebinga wrote:


Thanks Hans,

That did the trick.

On 25 Nov 2005, at 00:05, Hans Hagen wrote:



you need something:
\starttypescript [map] [linostar] [texnansi]
  \loadmapfile [\typescripttwo-starling-linostar.map]
\stoptypescript



Shouldn't this be \typescriptthree ?


yes

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


Re[2]: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Giuseppe Bilotta
Friday, November 25, 2005 Hans Hagen wrote:

 \def\dodostopframedtext#1#2% % no \baselinecorrection, see faq docs
   {\endgraf
\removelastskip
\doifvalue{\??kd#1\c!depthcorrection}\v!on % local and global
  {\forgetall
   \vskip-\struttotal
   \verticalstrut
   \egroup
   \forgetall
   \vskip-\lineheight
   % will be an option, not default
   % \setbaselinecorrections
   % \donegbotbaselinecorrection
   \verticalstrut}
\stopboxedcontent
\stopcolor
\egroup
\doif{#2}\v!none\insidefloattrue % new
   
 \doif{\framedtextparameter{#1}\c!location}\v!none\insidefloattrue
 % 
 newer
\ifinsidefloat
  \box\framebox
\else
 
 \doplacement[\??kd#1][\c!depthcorrection=\v!off]{\box\framebox}%
\fi
\egroup}

Hm, strange, I patched core-rul and redumped the format, but
location=none still doesn't work. However, \startlepi[none]
does, so I'll go by this for the time being, thanks.

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] How is it possible to include DraTex code in Context?

2005-11-25 Thread Fabrice Larribe

Hi,


Fabrice Larribe wrote:

When I do: \input DraTex.sty \input
 AlDraTex.sty I have the message No room for a new \dimen... If I
 load only the first package (DraTex), this works, but for advances
 things, I need AlDraTex. So the question: how is it possible to
 include DraTex code in Context ?



Hans Hagen wrote:


you may try the attachec module

- move the file to context/base
- run mktexlsr
- in the document say: \usemodule[dratex]

the two line hack in teh file is needed to bypass dratex's dimension
allocation stuff

no guarantees

Hans

Thanks for your help. I have put the two files in context/base, and use 
\usemodule. In the log,
the system inform that the two modules are loaded. But I have the same 
error, No room for a new \dimen.
So this is not working. Unless you have others ideas, I guess I have to 
do my figures in plain tex to obtain
pdf, and then use the pdf in Context. Of course, a better solution is to 
learn metafun!!

Thanks for your help.
Fabrice L.

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


Re: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Giuseppe Bilotta
For what it's worth, I'm now using the following:


\defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=none]
\defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=none]
\definepairedbox[lrepi][location={right,top}]

\noindent
\startlepi[none]
\obeylines
{\bf Coordinatore}
prof. F.~Nicolosi
\stoplepi\hfill\startrepi[none]
\obeylines
{\bf Tutor}
prof. G.~Russo
\stoprepi

The [none] spec is required until the location=none
specification is fixed :)

TeX does complain about underfull boxes, but the output is
just what I need.

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] Empty page at the end of the document

2005-11-25 Thread Tobias Burnus

Giuseppe Bilotta wrote:

I'm having a totally blank page at the end of the document.
The document has a page number, but nothing is on it.

I remember this being a known bug when front/body/backmatter
was used ... is there a known fix?
  

You mean the following?

\setupsectionblock[frontpart][page=]
\setupsectionblock[bodypart][page=]
\setupsectionblock[backpart][page=]
\setupsectionblock[appendixpart][page=]

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


[NTG-context] Empty page at the end of the document

2005-11-25 Thread Giuseppe Bilotta
I'm having a totally blank page at the end of the document.
The document has a page number, but nothing is on it.

I remember this being a known bug when front/body/backmatter
was used ... is there a known fix?

-- 
Giuseppe Oblomov Bilotta

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


[NTG-context] *EXPERIMENTAL* TeX i-Package release

2005-11-25 Thread Gerben Wierda
This release contains a small surprise, mainly created by Thomas A.  
Schmitz. When you install it, you can use (automatically unpacked)  
Apple fonts Hoefler Text, Didot, Optima, Baskerville en Gill Sans in  
PDFTeX.


Setups for LaTeX and ConTeXt are provided.

For this to work you need to have fondu installed. When fondu is  
installed, the fonts are automatically unpacked into the gwTeX tree  
during configuration (currently after install only).


See the Readme of the TeX i-Package for some details.

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


Re: [NTG-context] Two framed texts on the same line

2005-11-25 Thread Hans Hagen

Giuseppe Bilotta wrote:


For what it's worth, I'm now using the following:


\defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=none]
\defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=none]
\definepairedbox[lrepi][location={right,top}]

\noindent
\startlepi[none]
\obeylines
{\bf Coordinatore}
prof. F.~Nicolosi
\stoplepi\hfill\startrepi[none]
\obeylines
{\bf Tutor}
prof. G.~Russo
\stoprepi

The [none] spec is required until the location=none
specification is fixed :)

TeX does complain about underfull boxes, but the output is
just what I need.

 


ok. to get rid of messages, say \dontcomplain

Hans

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


Re[2]: [NTG-context] Empty page at the end of the document

2005-11-25 Thread Giuseppe Bilotta
Friday, November 25, 2005 Hans Hagen wrote:

 beware, if you you nil the page commands, you may need to make sure
 yourself that the pagebreaks between section blocks are forced at the
 right moment in order to reset for instance marks (used in running
 headers);

 think of:

 end of frontpart (no page break)
 some changes to header settings
 begin of bodypart (no page break)
 start of chapter (forcingpage break)

 versus

 end of frontpart (page break)
 some changes to header settings
 begin of bodypart (redundant page break)
 start of chapter (forcing (redundant) page break)

 in the first case, the header may be wrong on the last page of the
 frontpart because it is set before the page break forced by the chapter

 so, the suggested settings are perfectly ok but don't blame me for sync
 problems -)

Yeah, that's the reason why I only used [page=] only on the
last sectionblock.

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] No partial contents for parts after the first

2005-11-25 Thread Giuseppe Bilotta
Thursday, November 24, 2005 Giuseppe Bilotta wrote:

 I'm using the latest ConTeXt reported here, and I'm noticing
 that partial contents for the second, third etc part are not
 available. I have a bunch of files each of which goes like

 \part{some part}

 Some text (not always)

 \placecontent

 \chapter{some chapter}

 Each of this file is \input from the master file. However,
 only in the first part you actually see the (part-specific)
 content: every other part reports

 system  : part,chapter,section,subsection not found/processed


 The setup for the contents is as follows:

 \setupcombinedlist[content]
   [interaction=all,
partnumber=no,
alternative=c,
level=subsection]

 \setuphead[part][alternative=middle,placehead=yes,resetnumber=no]

 The problem is the 'resetnumber': if I take that off,
 everything works perfectly.

Can somebody please look into this? It's the last thing I
need to print my thesis ...

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] How is it possible to include DraTex code in Context?

2005-11-25 Thread Hans Hagen

Fabrice Larribe wrote



Thanks for your help. I have put the two files in context/base, and 
use \usemodule. In the log,
the system inform that the two modules are loaded. But I have the same 
error, No room for a new \dimen.
So this is not working. Unless you have others ideas, I guess I have 
to do my figures in plain tex to obtain
pdf, and then use the pdf in Context. Of course, a better solution is 
to learn metafun!!

Thanks for your help.



can you make a small test file that shows the problem?

(when we have it working i'll ask Eitan to fix this, i.e. adapt dratex 
to etex usage)


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


Re: [NTG-context] How is it possible to include DraTex codein Context?

2005-11-25 Thread Fabrice Larribe

Hans Hagen wrote:


Fabrice Larribe wrote


 Thanks for your help. I have put the two files in context/base, and
 use \usemodule. In the log,
 the system inform that the two modules are loaded. But I have the same
 error, No room for a new \dimen.
 So this is not working. Unless you have others ideas, I guess I have
 to do my figures in plain tex to obtain
 pdf, and then use the pdf in Context. Of course, a better solution is
 to learn metafun!!
 Thanks for your help.


can you make a small test file that shows the problem?

I'm not sure if I can atatch a file to mailing-list, so I paste here a 
piece of code, which works with Tex: (between \Draw and \EndDraw of course).


\usemodule[dratex]
\usemodule[Aldratex]

\starttext

\Draw
 \Ragged(1)
 \MoveTo(0,0)\CircleNode(e0)(--0--)\MarkLoc(e0)
 \MoveTo(120,0)\CircleNode(e1)(--1--)\MarkLoc(e1)
 \MoveTo(60,80)\CircleNode(e2)(--2--)\MarkLoc(e2)
 \ArrowHeads(1)
 
\MoveToLoc(e1)\Rotate(20)\CycleEdgeSpec(40,30)\CycleEdge(e1)\EdgeLabel(--$1-p$--)

 \CurvedEdgeSpec(15,0.2,345,0.2)
 \CurvedEdge(e0,e2)\EdgeLabel(--$1$--)
 \CurvedEdge(e1,e2)\EdgeLabel(--$p$--)
 \CurvedEdge(e2,e0)\EdgeLabel(--$1-p$--)
 \CurvedEdge(e2,e1)\EdgeLabel(--$p$--)
\EndDraw

\stoptext


(when we have it working i'll ask Eitan to fix this, i.e. adapt dratex
to etex usage)
Hans

This would be wonderfull. Dratex is simple and powerfull, and portable 
between plain tex, latex and perhaps one day context !

Thanks for the help. This is much appreciated.
Fabrice.

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


Re: [NTG-context] Re: beginners manual

2005-11-25 Thread VnPenguin
On 25 Nov 2005 14:10:14 +0100, Patrick Gundlach [EMAIL PROTECTED] wrote:
 Hi,

 this is a follow-up to the first message... Are you (Hans) collecting the
 sugesstions from this thread or should they be wikified?

\startOT
I love the verb wikify :-)
\stopOT
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Empty page at the end of the document

2005-11-25 Thread Tobias Burnus

Hi,

Hans Hagen wrote:
beware, if you you nil the page commands, you may need to make sure 
yourself that the pagebreaks between section blocks are forced at the 
right moment in order to reset for instance marks (used in running 
headers);


end of frontpart (page break)
some changes to header settings
begin of bodypart (redundant page break)
start of chapter (forcing (redundant) page break)

in the first case, the header may be wrong on the last page of the 
frontpart because it is set before the page break forced by the chapter
Well, somehow reading this above, it sounds different than I get by the 
current settings:


\starttext
setupheadertexts[FontMatter]
\startfrontmatter \chapter{One}\chapter{Two} \stopfrontmatter
\setupheadertexts[BodyMatter]
\startbodymatter \chapter{Three} \stopbodymatter
\stoptext

Gives [One] [Two] [Three] [empty page].
Reading above I'd expect: [One] [Two][Three] or [One][Two][empty 
page][Three].

I actually want to have [One][Two][Three].

If I now set page=, then I get [One][Two][Three], but on page [Two] is 
the wrong header.
What is the proper way of doing so? Or: Why is there a page(break) added 
_after_ the matter and not - like \chapter{} - a pagebreak before?


Tobias

PS: Fortunally, I needed only \setupheadertexts[chapter] so far, which 
poses no problem.

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


Re: [NTG-context] Structures

2005-11-25 Thread Peter Münster
On Thu, 24 Nov 2005, David Arnold wrote:

 I have book.tex.
 
 \startproject book
 
 \environment bookenv
 
 \product chapter1
 
 \stopproject
 
 1. When I compile:
 
 texexec book

Hello David,

it's considered, that the project-file contains only setup-commands and a
list of products, but no commands, that generate directly output.

This has nothing to do with your questions, but perhaps you will get problems
later on when writing further chapters.

Consider just, that one product is one document, and a component is a kind
of sub-document for example a chapter. And the project-file is just a
list of documents, that should inherit some common setups.

I hope, this helps.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] mfonts.tex from manuals

2005-11-25 Thread David Arnold

Adam,

Goodness gracious! I never saw that.

Meanwhile, with these changes, the document compiled (almost). I have  
a title page with the beautiful background of letters, but I have no  
Fonts in Context, nor Hans Hagen, October 2001.


Log file attached, it that's any help.



mfonts.log
Description: Binary data


David

On Nov 25, 2005, at 2:41 AM, Adam Lindsay wrote:



On 25 Nov 2005, at 01:37, David Arnold wrote:



\startnotmode[atpragma]

  \startMPenvironment[global]
%\usetypescript[handwriting,map][lucida][texnansi]
%\definefontsynonym[TitlePage-Bold][LucidaHandwriting-Italic]
usetypescript[calligraphy,map][chancery][texnansi]
definefontsynonym[TitlePage-Bold][Chancery]
%usetypescript[sans,map][iwona][texnansi]
%definefontsynonym[TitlePage-Bold][Iwona-BoldItalic]
  \stopMPenvironment

\stopnotmode



You need to make sure \usetypescript and \definefontsynonym are  
actually macros/commands: prepend a backslash!


adam
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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

2005-11-25 Thread David Arnold

Patrick,

Perfect. Thanks.

On Nov 24, 2005, at 11:45 PM, Patrick Gundlach wrote:


Hello David,



How can you get the \ShowLayout command with your t-layout module to
reveal the measurements in mm instead of pt?



[don't tell anybody:] It seems that don't have a working ConTeXt
installed at the moment, but perhaps

\ShowLayout
   [units=mm]

works?


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




David


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


Re[2]: [NTG-context] Empty page at the end of the document

2005-11-25 Thread Giuseppe Bilotta
Friday, November 25, 2005 Tobias Burnus wrote:

 Hi,

 Hans Hagen wrote:
 beware, if you you nil the page commands, you may need to make sure
 yourself that the pagebreaks between section blocks are forced at the
 right moment in order to reset for instance marks (used in running
 headers);

 end of frontpart (page break)
 some changes to header settings
 begin of bodypart (redundant page break)
 start of chapter (forcing (redundant) page break)

 in the first case, the header may be wrong on the last page of the
 frontpart because it is set before the page break forced by the chapter
 Well, somehow reading this above, it sounds different than I get by the
 current settings:

 \starttext
 setupheadertexts[FontMatter]
 \startfrontmatter \chapter{One}\chapter{Two} \stopfrontmatter
 \setupheadertexts[BodyMatter]
 \startbodymatter \chapter{Three} \stopbodymatter
 \stoptext

 Gives [One] [Two] [Three] [empty page].
 Reading above I'd expect: [One] [Two][Three] or [One][Two][empty
 page][Three].
 I actually want to have [One][Two][Three].

 If I now set page=, then I get [One][Two][Three], but on page [Two] is
 the wrong header.
 What is the proper way of doing so? Or: Why is there a page(break) added
 _after_ the matter and not - like \chapter{} - a pagebreak before?

 Tobias

I think the problem lies in the fact that there is one
page= setting that is used both in the \startsectionblock
*and* in the \endsectionblock. Maybe it would be better to
have a pagebefore/pageafter thing, with the default being
pagebefore=yes,pageafter=no.

-- 
Giuseppe Oblomov Bilotta

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


Re: [NTG-context] How is it possible to include DraTex codein Context?

2005-11-25 Thread Hans Hagen

Fabrice Larribe wrote:


Hans Hagen wrote:


Fabrice Larribe wrote


 Thanks for your help. I have put the two files in context/base, and
 use \usemodule. In the log,
 the system inform that the two modules are loaded. But I have the same
 error, No room for a new \dimen.
 So this is not working. Unless you have others ideas, I guess I have
 to do my figures in plain tex to obtain
 pdf, and then use the pdf in Context. Of course, a better solution is
 to learn metafun!!
 Thanks for your help.


can you make a small test file that shows the problem?

I'm not sure if I can atatch a file to mailing-list, so I paste here a 
piece of code, which works with Tex: (between \Draw and \EndDraw of 
course).


\usemodule[dratex]
\usemodule[Aldratex]


remove the second line \usemodule

anyhow, your example works ok here

Hans

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


Re: [NTG-context] mfonts.tex from manuals

2005-11-25 Thread Hans Hagen

David Arnold wrote:


Adam,

Goodness gracious! I never saw that.

Meanwhile, with these changes, the document compiled (almost). I have  
a title page with the beautiful background of letters, but I have no  
Fonts in Context, nor Hans Hagen, October 2001.


Log file attached, it that's any help.


that's your next excercise: to get makempy running, i.e. these chars are 
outlines made by pstoedit; is that installed on your system


(i can probably cook up an alternative using low level pdf but ...)

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


Re: [NTG-context] mfonts.tex from manuals

2005-11-25 Thread David Arnold

Hans, Gerben,

No pstoedit on my system.

book $ pstoedit
-bash: pstoedit: command not found

Gerben, how should I proceed?


On Nov 25, 2005, at 12:14 PM, Hans Hagen wrote:


David Arnold wrote:



Adam,

Goodness gracious! I never saw that.

Meanwhile, with these changes, the document compiled (almost). I  
have  a title page with the beautiful background of letters, but I  
have no  Fonts in Context, nor Hans Hagen, October 2001.


Log file attached, it that's any help.



that's your next excercise: to get makempy running, i.e. these  
chars are outlines made by pstoedit; is that installed on your system


(i can probably cook up an alternative using low level pdf but ...)

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




David


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


[NTG-context] Choosing a font for our Math Book

2005-11-25 Thread David Arnold

Adam, Taco, Hans, et al,

This file:

%output=pdf

\startcomponent section1

\project book
\product chapter1

\section{Trinomials}

\input knuth

\placeformula[eq:1]
\startformula
f(x)=x^2+2x-3
\stopformula

We, see in \in{Equation}[eq:1], the historical use of function notation.

\stopcomponent

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

I have no font instructions in my environment file bookenv.tex. This  
component section1 compiles fine and gives me (checking in Acrobat  
Professional) a combination of latin modern and computer modern  
fonts. However, they hardly match in size. The computer modern font  
is much larger than the text in latin modern font.


So, a couple of things.

1. If I wanted to try and see if this would compile with my Lucida  
fonts, what should I try.


2. Do you have a couple of suggestions for body font and math font  
that would look good together and can you provide me with the font  
instructions to include them in my document?


I would be grateful.

David


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


Re: [NTG-context] mfonts.tex from manuals

2005-11-25 Thread Gerben Wierda

On 25 Nov 2005, at 21:26, David Arnold wrote:


Hans, Gerben,

No pstoedit on my system.


If I recall I looked into pstoedit a while back. The fact that I did  
not release a package probably means there were problems getting it  
to compile on OS X.


G



book $ pstoedit
-bash: pstoedit: command not found

Gerben, how should I proceed?


On Nov 25, 2005, at 12:14 PM, Hans Hagen wrote:


David Arnold wrote:



Adam,

Goodness gracious! I never saw that.

Meanwhile, with these changes, the document compiled (almost). I  
have  a title page with the beautiful background of letters, but  
I have no  Fonts in Context, nor Hans Hagen, October 2001.


Log file attached, it that's any help.



that's your next excercise: to get makempy running, i.e. these  
chars are outlines made by pstoedit; is that installed on your system


(i can probably cook up an alternative using low level pdf but ...)

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




David





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


Re: [NTG-context] mfonts.tex from manuals

2005-11-25 Thread Adam Lindsay


On 25 Nov 2005, at 22:42, Gerben Wierda wrote:


No pstoedit on my system.


If I recall I looked into pstoedit a while back. The fact that I  
did not release a package probably means there were problems  
getting it to compile on OS X.


I seem to recall similarly trying and failing about 11 months ago, as  
well!

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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


Re: [NTG-context] mfonts.tex from manuals

2005-11-25 Thread Henning Hraban Ramm
If I recall I looked into pstoedit a while back. The fact that I  
did not release a package probably means there were problems  
getting it to compile on OS X.


I've a working pstoedit from Fink.

BTW, Gerben, your fontforge needs some libs in /lib instead of /usr/ 
local/lib. I symlinked it, but perhaps your build system is a bit  
screwed up? Or is it a problem of the FF sources?


Grüßlis vom 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


Re: [NTG-context] How is it possible to include DraTex codein Context?

2005-11-25 Thread Fabrice Larribe

Hans Hagen wrote:
Re: [NTG-context] How is it possible to include DraTex codein Context?


 \usemodule[dratex]
 \usemodule[Aldratex]

remove the second line \usemodule

anyhow, your example works ok here

Hans



Thanks (again !). But this does not work, at least on my system. [I have 
updated my distribution].
If I remove the second line, as you suggest, then the system does not 
the command
CircleNode() which is defined in the AlDraTex module. And if I keep 
the line, same problem as before...

I wait if Eitan Gurari can  do something...
Fabrice.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Referencing in Project Structure

2005-11-25 Thread David Arnold

All,

I have:

project book in book.tex
environment bookenv book.env.tex
product chapter1 in chapter1.tex
component section1 in section1.tex
component section1 in section2.tex
component section1 in section3.tex

In each section, I would like numbering of theorems, definitions,  
examples, equations, etc, to be consecutive and include the section  
number as a prefix. For example, if a theorem happens to appear  
first, then number it 1.1, the next three equations (1.2), (1.3), and  
(1.4), the next two examples 1.5 and 1.6, the next two equations  
(1.7) and (1.8), the next definition 1.9, the next theorem 1.10, the  
next three equations (1.11), (1.12), and (1.13), the next example  
1.14, etc.


Then this numbering scheme is reset in the next section. So, if the  
first thing to appear is a theorem, then it is numbered 2.1, the next  
definition 2.2, the next three equations (2.3), (2.4), and (2.5), and  
so on.


How do I set this up in bookenv?

David


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


Re: [NTG-context] How is it possible to include DraTex codein Context?

2005-11-25 Thread Hans Hagen

Fabrice Larribe wrote:


Hans Hagen wrote:
Re: [NTG-context] How is it possible to include DraTex codein Context?


 \usemodule[dratex]
 \usemodule[Aldratex]

remove the second line \usemodule

anyhow, your example works ok here

Hans



Thanks (again !). But this does not work, at least on my system. [I 
have updated my distribution].
If I remove the second line, as you suggest, then the system does not 
the command
CircleNode() which is defined in the AlDraTex module. And if I keep 
the line, same problem as before...

I wait if Eitan Gurari can  do something...



it looks like it is not loading the module i sent you but the dratex 
files directly (which is fallback bahaviour)


(did you run mktexlsr?)

can you try it with m-dratex.tex in your current path

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


Re: [NTG-context] mfonts.tex from manuals

2005-11-25 Thread Hans Hagen

Gerben Wierda wrote:


On 25 Nov 2005, at 21:26, David Arnold wrote:


Hans, Gerben,

No pstoedit on my system.



If I recall I looked into pstoedit a while back. The fact that I did  
not release a package probably means there were problems getting it  
to compile on OS X.


there has been troublesome versions (broken) indeed but the 3.33 version 
on my machine is ok


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


Re: [NTG-context] Choosing a font for our Math Book

2005-11-25 Thread Hans Hagen

David Arnold wrote:

I have no font instructions in my environment file bookenv.tex. This  
component section1 compiles fine and gives me (checking in Acrobat  
Professional) a combination of latin modern and computer modern  
fonts. However, they hardly match in size. The computer modern font  
is much larger than the text in latin modern font.


not here; can you send me a minimal pdf file that shows the problem?


So, a couple of things.

1. If I wanted to try and see if this would compile with my Lucida  
fonts, what should I try.


\usetypescript[lucida][texnansi]
\setupbodyfont[lucida]


btw, \showfontstrip gives you a way to analyze ratios



2. Do you have a couple of suggestions for body font and math font  
that would look good together and can you provide me with the font  
instructions to include them in my document?



try:

\usetypescript[palatino][texnansi]
\setupbodyfont[palatino]

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


[NTG-context] beginners manual

2005-11-25 Thread Hans Hagen

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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How is it possible to include DraTex codein Context?

2005-11-25 Thread Fabrice Larribe

Hans Hagen wrote:


Fabrice Larribe wrote:

 Hans Hagen wrote:
 Re: [NTG-context] How is it possible to include DraTex codein Context?


it looks like it is not loading the module i sent you but the dratex
files directly (which is fallback bahaviour)

(did you run mktexlsr?)

can you try it with m-dratex.tex in your current path
Hans


It's my fault. I not followed your instructions... This works great !
Thanks so much ! It's a real pleasure to work with Context.
Fabrice.
[thread finished: Hans had the right answer (again!)]

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


[NTG-context] Showing the page layout

2005-11-25 Thread David Arnold

All,

I am aware of \showlayout and Patrick's \ShowLayout.

In the case of the former, I have this in my environment file:

\showlayout

\definelayout[myCustomLayout][
  header=30mm,
  footer=20mm,
  headerdistance=10mm,
  footerdistance=10mm,
  topspace=30mm,
  bottomspace=25mm,
  height=middle,
  leftmargin=25mm,
  rightmargin=30mm,
  leftmargindistance=10mm,
  rightmargindistance=10mm,
  backspace=50mm,
  width=middle,
]

\setuplayout[myCustomLayout]

But when I compile, the first page reveals these measurements:

header=1.99962 cm  %way off
footer 1.99962 cm %acceptable
headerdistance=0.0 cm  %huh?
footer distance=0.0 cm  %huh?

And the list goes on. These don't seem correct at all. Am I misusing  
this tool?


I've been following the discussion on the beginner's manual with  
interest, biding my time to make my suggestions, thinking about it.  
One thing that really comes to mind is the huge amount of time I  
spent as a beginner trying to figure out what settings in the layout,  
like those above, actually do. And I found the tools for analyzing  
changes to these layout settings did not help very much. Something  
that could help the beginniner's manual very much would be a macro  
that layed the page out accurately with borders around the various  
areas (as in \showframe) that include all parts of the layout, even  
if they wander from the printed page. This would accelerate the  
learning curve for layout dramatically, if it were available.



David


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


Re: [NTG-context] Choosing a font for our Math Book

2005-11-25 Thread David Arnold
Hans,On Nov 25, 2005, at 4:48 PM, Hans Hagen wrote:\usetypescript[lucida][texnansi] \setupbodyfont[lucida] This doesn't work on my system. However, the attached file does compile and gives me Lucida in Acrobat Professional. You'll note thought that all the math is commented out.What do you suggest? I tried this as well:\usetypescript[yandy-lucida][texnansi]\setupbodyfont[lucida]That just caused a font substitution. David

texnansi-yandy-lucida.tex
Description: Binary data
 ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Choosing a font for our Math Book

2005-11-25 Thread David Arnold
Hans,\usetypescript[palatino][texnansi]\setupbodyfont[palatino]This one worked, and looks pretty good. In Acrobat Professional, fonts reported are:LMRoman10-RegualLMTypewriter10-RegularPxsyRpxrURWPalladioL-ItalURWPalladioL-RomaAll Type 1.But this one:\definetypeface[iwona][ss][sans][iwona][default][encoding=texnansi]\definetypeface[iwona][mm][math][iwona][default][encoding=texnansi]\setupbodyfont[iwona][texnansi]Caused:(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)kpathsea: Running mktextfm texnansi-iwonarmktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input texnansi-iwonarThis is METAFONT, Version 2.71828 (Web2C 7.5.5)kpathsea: Running mktexmf texnansi-iwonar! I can't find file `texnansi-iwonar'.* ... mag:=1; nonstopmode; input texnansi-iwonar                                                  Please type another input file name! Emergency stop.* ... mag:=1; nonstopmode; input texnansi-iwonar                                                  Transcript written on mfput.log.grep: texnansi-iwonar.log: No such file or directorymktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input texnansi-iwonar' failed to make texnansi-iwonar.tfm.kpathsea: Appending font creation commands to missfont.log.! Font \*iwona12ptsstf*:=texnansi-iwonar at 12.0pt not loadable: Metric (TFM) file not found.to be read again                    \relax \xxdododefinefont ...tspec {#4}\newfontidentifier                                                   \let \localrelativefontsiz...\fontstrategy ...me \fontclass #2#3#4#5\endcsname                                                   \tryingfontfalse \fi inserted text ...yle \fontalternative \fontsize                                                   \fi \iftryingfont \fontstr...\synchronizefont ...strategy \the \fontstrategies                                                   \relax \fi \iftryingfont \...argument \getvalue [EMAIL PROTECTED]@ \fontstyle }                                           \edef \fontstyle {\fontstyle }\if..l.39 \setupbodyfont[iwona]                          [texnansi]? I'm gonna get that update to Context pretty soon. We'll see if that helps. David ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Iwona font

2005-11-25 Thread David Arnold

All,


Found this link. Helpful reading.

http://www.math.uiuc.edu/~hartke/latex/survey/survey.html

I downloaded:

ftp://tug.ctan.org/pub/tex-archive/fonts/iwona.zip

Unzipped and put only the afm's and the pfb's in ~/tmp/iwona. Ran:

iwona $ sudo texfont --ve=public --co=iwona --ma --in

That seemed to go well and I compiled:

iwona $ texexec --pdf texnansi-public-iwona.tex

That went well. Got a nice pdf. Acrobat Professional reports that I  
have a slew of Iwona fonts in the document. Now, this little test file:


iwona $ cat junk.tex
%output=pdf

\definetypeface[iwona][ss][sans][iwona][default][encoding=texnansi]
\definetypeface[iwona][mm][math][iwona][default][encoding=texnansi]

\setupbodyfont[iwona][texnansi]

\starttext

\input knuth

\stoptext


Stops with:

(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) 
kpathsea: Running mktextfm rm-iwonar
/usr/local/teTeX/share/texmf/web2c/mktexnam: Could not map typeface  
abbreviation -i for rm-iwonar.
/usr/local/teTeX/share/texmf/web2c/mktexnam: Need to update /usr/ 
local/teTeX/share/texmf.tetex/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;  
nonstopmode; input rm-iwonar

This is METAFONT, Version 2.71828 (Web2C 7.5.5)

kpathsea: Running mktexmf rm-iwonar
! I can't find file `rm-iwonar'.
* ...jfour; mag:=1; nonstopmode; input rm-iwonar

Please type another input file name
! Emergency stop.
* ...jfour; mag:=1; nonstopmode; input rm-iwonar

Transcript written on mfput.log.
grep: rm-iwonar.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;  
input rm-iwonar' failed to make rm-iwonar.tfm.

kpathsea: Appending font creation commands to missfont.log.

! Font \*iwona7ptmmmr*:=rm-iwonar at 7.0pt not loadable: Metric (TFM)  
file not

found.
to be read again
   \relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
  \let  
\localrelativefontsiz...


\dodosetmathfamilyB ...amily \fontsize \endcsname
  \else \ifcsname  
\fontclass...


\dosetmathfamily ...athfamily \scriptscriptfont #1
  \let \fontbody #3 
\dodosetm...

inserted text ...ptscriptface \c!mr \mrfallback
  \dosetmathfamily  
\mifam \t...


\synchronizemath ...athfonts \the \mathstrategies
  \fi
...
l.6 \setupbodyfont[iwona]
 [texnansi]
?

I wish I could get a better handle on what is going on. I feel like I  
am spinning my wheels. There's gotta be a typescript file for this  
iwona somewhere in the distribution. Can someone tell me where it is?


David


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


[NTG-context] Where is \typescriptthree documented?

2005-11-25 Thread David Arnold

All,

I don't understand \typescriptthree. Where is it documented? What  
does it mean?


David


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


Re: [NTG-context] Iwona font

2005-11-25 Thread David Arnold
My best guess is the zip file didn't contain all the iwona fonts  
needed. Am I correct?


On Nov 25, 2005, at 7:35 PM, David Arnold wrote:


All,


Found this link. Helpful reading.

http://www.math.uiuc.edu/~hartke/latex/survey/survey.html

I downloaded:

ftp://tug.ctan.org/pub/tex-archive/fonts/iwona.zip

Unzipped and put only the afm's and the pfb's in ~/tmp/iwona. Ran:

iwona $ sudo texfont --ve=public --co=iwona --ma --in

That seemed to go well and I compiled:

iwona $ texexec --pdf texnansi-public-iwona.tex

That went well. Got a nice pdf. Acrobat Professional reports that I  
have a slew of Iwona fonts in the document. Now, this little test  
file:


iwona $ cat junk.tex
%output=pdf

\definetypeface[iwona][ss][sans][iwona][default][encoding=texnansi]
\definetypeface[iwona][mm][math][iwona][default][encoding=texnansi]

\setupbodyfont[iwona][texnansi]

\starttext

\input knuth

\stoptext


Stops with:

(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) 
kpathsea: Running mktextfm rm-iwonar
/usr/local/teTeX/share/texmf/web2c/mktexnam: Could not map typeface  
abbreviation -i for rm-iwonar.
/usr/local/teTeX/share/texmf/web2c/mktexnam: Need to update /usr/ 
local/teTeX/share/texmf.tetex/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;  
nonstopmode; input rm-iwonar

This is METAFONT, Version 2.71828 (Web2C 7.5.5)

kpathsea: Running mktexmf rm-iwonar
! I can't find file `rm-iwonar'.
* ...jfour; mag:=1; nonstopmode; input rm-iwonar

Please type another input file name
! Emergency stop.
* ...jfour; mag:=1; nonstopmode; input rm-iwonar

Transcript written on mfput.log.
grep: rm-iwonar.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1;  
nonstopmode; input rm-iwonar' failed to make rm-iwonar.tfm.

kpathsea: Appending font creation commands to missfont.log.

! Font \*iwona7ptmmmr*:=rm-iwonar at 7.0pt not loadable: Metric  
(TFM) file not

found.
to be read again
   \relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
  \let  
\localrelativefontsiz...


\dodosetmathfamilyB ...amily \fontsize \endcsname
  \else \ifcsname  
\fontclass...


\dosetmathfamily ...athfamily \scriptscriptfont #1
  \let \fontbody #3 
\dodosetm...

inserted text ...ptscriptface \c!mr \mrfallback
  \dosetmathfamily  
\mifam \t...


\synchronizemath ...athfonts \the \mathstrategies
  \fi
...
l.6 \setupbodyfont[iwona]
 [texnansi]
?

I wish I could get a better handle on what is going on. I feel like  
I am spinning my wheels. There's gotta be a typescript file for  
this iwona somewhere in the distribution. Can someone tell me where  
it is?


David


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




David


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