Re: [NTG-context] hyphenation not working

2005-03-21 Thread Christopher Creutzig
Hans Hagen wrote:
I do have a file called hyphen.tex. On Hans' suggestion, I copied this
to ushyph1.tex and ushyph2.tex. That didn't help. I also  changed my 
cont-usr.tex file, changing all lines that had ushyp* to hyphen. This 
also didn't work.

did you run mktexlsr ?
 And in case that's unexpected: You need to run texexec --make, since 
patterns are loaded at format generation.

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


Re: [NTG-context] Temporarily turning off hyphenation?

2005-03-21 Thread Duncan Hothersall
Gerben Wierda wrote:
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\def\ChQuoteFormat#1{\starttext%
 \startalignment[left]%
 \startnarrower[4*left] \noindent{\nohyphens\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]
You should definitely not have the \starttext / \stoptext pair in there. 
There should only be one of those in an entire run - they come at the 
start of your content and the end.

The following, tested on Live, produces something which looks like it 
might be what you're after:

--
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\def\ChQuoteFormat#1{%
 \startalignment[{left,nothyphenated}]%
 \startnarrower[4*left]\em #1%
 \stopnarrower\stopalignment\blank}
\setuphead[chapter]
 [page=left,
 before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
 \page[right]\blank[2*big]},
 after={\ClearChapterQuote\blank[3*big]}%
 \noheaderandfooterlines]
\starttext
\def\ChapterQuote{Something quite long so that we can tell whether or 
not hyphenation has occurred, hopefully this will do.}
\chapter{test}
Some text
\stoptext
--

Duncan

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


[NTG-context] Re: how to use Times Roman font

2005-03-21 Thread Patrick Gundlach
Hello,


[...]

>  TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002

your ConTeXt is way too old. It doesn't have type-akb included. Either
update your ConTeXt or get type-akb from http://levana.de/context/ .

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: Available fonts

2005-03-21 Thread Patrick Gundlach
Hello Idris,


> Is there a list of prepackaged fonts/typescripts that comes with 
> (fp/MiK/gw/te)TeX/ConTeXt? 

Not that I know of. The distributions should supply a list of
available fonts.


> I think it is important for that info to be made very public.

I agree completely.


I always wanted to start a section "fonts" on contextgarden with
samples and instructions on how to use the supplied fonts.

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: how to use Times Roman font

2005-03-21 Thread Patrick Gundlach
Hello Idris,

>>\usetypescript [adobekb][\defaultencoding]
>>\setupbodyfont[pos]
>>
>>\usetypescript[times][\defaultencoding]
>>\setupbodyfont[times,12pt]
>>
>>\starttext
>>\input knuth
>>\bigskip
>>
>>\stoptext
>
> On my system, using the above, the following happens (why??):

You don't have psnfss installed. (Wild guess)

Patrick

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


AW: [NTG-context] Export from Excel/Openoffice Calc to ConTeXt naturaltables ??

2005-03-21 Thread Michael Fuchs
Hi Luigi!

Did you write the XSL from scratch? Or did you have an example
to start with? If you found one I would like to have a look
for it as well. 

Regards Michael


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag von luigi.scarso
> Gesendet: Montag, 21. März 2005 08:57
> An: mailing list for ConTeXt users
> Betreff: Re: [NTG-context] Export from Excel/Openoffice Calc 
> to ConTeXt naturaltables ??
> 
> Michael Fuchs wrote:
> 
> >Hi!
> >
> >Does anybody have an idea how I can get a Openoffice Calc
> >table in such a way exported, that I can directly use it
> >in ConTeXt? Does anybody had a similar problem earlier?
> >
> >Thanks for your help in advance
> >
> >Michael
> >
> >___
> >ntg-context mailing list
> >ntg-context@ntg.nl
> >http://www.ntg.nl/mailman/listinfo/ntg-context
> >
> >  
> >
> For Excel, i save file as XML and then process with an xslt 
> stylesheet to
> produce context code (i wrote by my self this stylesheet; it's not 
> really complicated).
> For OpenOffice...it's the same because OO saves file as xml (they are 
> compress with zip); but in OO you can apply a stylesheet in a 
> clean way 
> using xml filter.
> 
> luigi
> 
> ___
> 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: Layout stuff

2005-03-21 Thread h h extern
Paul Tremblay wrote:
There is, of course, \parshape. And I know that Hans does a lot of
paragraph trickery (see for example coloumns).
 
If you can get pages with different widths to work, please let me know!
Like I said, I posted the problematic code in the wiki. It would be
great to get this to work.
for controlled situations it's doable by setting the parshape
so, for novels you can use:
\startsetups [grid] [*default]
  \nopenalties
\stopsetups
\setuppagenumbering
  [alternative=doublesided]
\setuplayout
  [grid=yes]
\definelayout
  [odd]
  [width=10cm,
   lines=40]
\definelayout
  [even]
  [width=8cm,
   lines=40]
\setuplayout
  [odd]
\setuptolerance
  [verytolerant]
\showframe
\def\SetLineWidths
  {\scratchtoks \emptytoks
   \ifdim\pagegoal=\maxdimen
 \scratchdimen\textheight
 \ifodd\realpageno
   \noflines\namedlayoutparameter{odd}{lines}%
 \else
   \noflines\namedlayoutparameter{even}{lines}%
 \fi
   \else
 \scratchdimen\dimexpr\pagegoal-\pagetotal\relax
 \advance\scratchdimen-\topskipgap
 \getnoflines\scratchdimen
   \fi
   \ifdim\scratchdimen<\lineheight
 \page
   \else
 \scratchcounter\noflines\relax
 \ifodd\realpageno
   \doSetLineWidths{odd}{even}%
 \else
   \doSetLineWidths{even}{odd}%
 \fi
 \parshape \scratchcounter \the\scratchtoks \relax \ignorespaces
   \fi}
\def\doSetLineWidths#1#2%
  {\dorecurse\noflines
 {\appendetoks 0cm \namedlayoutparameter{#1}{width} \to\scratchtoks}%
   \dorecurse{2}
 {\advance\scratchcounter\namedlayoutparameter{#2}{lines}\relax
  \dorecurse{\namedlayoutparameter{#2}{lines}}
{\appendetoks 0cm \namedlayoutparameter{#2}{width} \to\scratchtoks}%
  \advance\scratchcounter\namedlayoutparameter{#1}{lines}\relax
  \dorecurse{\namedlayoutparameter{#1}{lines}}
{\appendetoks 0cm \namedlayoutparameter{#1}{width} \to\scratchtoks}}}
\dontcomplain
\EveryPar{\SetLineWidths}
\starttext
\dorecurse{25}{\dorecurse{4}{\input tufte }\par}
\stoptext
no guarantees, no kernel stuff either, maybe some fun module
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] Title-page overlay / wiki example

2005-03-21 Thread h h extern
Nikolai Weibull wrote:
* Willi Egger (Mar 20, 2005 18:00):
May be you should try a buffer to put the typing in. In the overlay
you can call the buffer with \typebuffer[...]

\startbuffer[title]
...
\stopbuffer
\defineoverlay
  [TitleGraphic]
  [{\startcolor[titlegraphic]\typebuffer[title]\stopcolor}]
\setupbackgrounds[page][background=TitleGraphic]
The problem with that is that everything winds up on one line for some
reason,
a good reason: it's a hbox, so you need ...[\vbox{...}]...
alternative regexp title page (nice example for wiki)
% \startbuffer[title]
% /(.*?)testexpr/io
% /t(.*?)estexpr/io
% /te(.*?)stexpr/io
% /tes(.*?)texpr/io
% /test(.*?)expr/io
% /teste(.*?)xpr/io
% /testex(.*?)pr/io
% /testexp(.*?)r/io
% /testexpr(.*?)/io
% \stopbuffer
\definetype[ytyp][color=yellow]
\startbuffer[title]
\type{/(}\ytyp{h}\type{*?)testexpr/io}\par
\type{/t(}\ytyp{a}\type{*?)estexpr/io}\par
\type{/te(}\ytyp{n}\type{*?)stexpr/io}\par
\type{/tes(}\ytyp{s}\type{*?)texpr/io}\par
\type{/test(}\ytyp{h}\type{*?)expr/io}\par
\type{/teste(}\ytyp{a}\type{*?)xpr/io}\par
\type{/testex(}\ytyp{g}\type{*?)pr/io}\par
\type{/testexp(}\ytyp{e}\type{*?)r/io}\par
\type{/testexpr(}\ytyp{n}\type{*?)/io}\par
\stopbuffer
\setupcolors[state=start]
\definelayer
  [TitleGraphic]
  [width=\paperwidth,
   height=\paperheight]
\setlayer
  [TitleGraphic]
  [preset=lefttop]
  {\scale
 [width=\paperwidth,
  height=\paperheight]
 {\framed
[frame=off,
 offset=overlay,
 background=color,
 backgroundcolor=blue,
 foregroundcolor=red,
 align=normal]
% {\setuptyping[before=,after=]\typebuffer[title]}}}
{\getbuffer[title]}}}
\setupbackgrounds[page][background=TitleGraphic]
\starttext
\startstandardmakeup
\stopstandardmakeup
\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] Re: Two problems with my chapter quote setup

2005-03-21 Thread h h extern
Gerben Wierda wrote:
On 20 Mar 2005, at 18:05, Patrick Gundlach wrote:
[...]
http://mail.rna.nl/~gerben/problem-test.tar.gz

I get only a blank page.

If you open problem-test/products/prd_book.pdf from the archive you will 
see that on the page numbered 7 (the 9th page in the PDF file) there is 
text. At that stage the frontmatter ends and the first chapter should 
start. It should start with the quote on page 8 (without a page number) 
and the start of the chapter on page 9. But what actually happens is 
that 8 and 9 are empty pages with a page number and the quote is on page 
10 and the chapter starts on 11.

I suspect that \stopfrontmatter forces a page. Hans?
indeed
  \setupsectionblock [frontpart] [page=] % yes by default
the reason is that marks needs to be synchronized; if you add your own \page 
command, make sure that you do it at the right moment

page changes are always a bit tricky esp since one wants header etc to be nicely 
in sync as well; also,

\page  \page
can introduce empty pages (tex related, not so much context)
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] Temporarily turning off hyphenation?

2005-03-21 Thread Hans Hagen
Duncan Hothersall wrote:
You should definitely not have the \starttext / \stoptext pair in there. 
There should only be one of those in an entire run - they come at the 
start of your content and the end.
indeed; at the document level it does not hurt
\starttext
   
   \starttext
   
   \stoptext
   
\stoptext
since nesting is handled (this permits to include docs that have their own start 
stop pair);

but at the macro level or inside another structured element iit should be 
avoided
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] how to use Times Roman font

2005-03-21 Thread Hans Hagen
Matthias Weber wrote:
Xue,
 I am not a font expert at all, and we are on different platforms.
If I understand correctly, the font mechanism in TeXExec has been
changing, and different  ConTeXt versions rely on different versions of
pdfeTeX (not only for font reasons, but also for pdf features).
not really, they try to adapt themselves invisible
It should be imperative to use compatible versions of both, even though
I have no clue how to achieve this -- (on the Mac, Gerben's iinstaller
is nicely taking care of this, but I don't know about Windows)
normally this is no problem, i run old and new versions alongside; teh biggest 
change in the latest pdftex is that the locations of the enc/map files have 
changed (not context related, more tds/texmf); context never used the pdftex cfg 
file so no problems should be expected there

In my recent experience, it was not a good idea to use the latest 
(March) ConTeXt beta
without making sure that your remaining TeX installation (including 
fonts) is completely
up-to-date. As I don't know how easy it is to move to some other  
'release' on Windows,
I don't know how feasible this recommendation is. Maybe somebody on 
Windows for whom
times works can give you some information which versions he is using, 
and how to get them.
for the transition to latim modern one indeed needs latin modern fonts (zip on 
our website); making this change has to happen anyway; also, when one uses latin 
modern as well as context pattern files; one can use more font encodings with 
regards to hyphenation

I also wonder why the pdf made at ConTeXtgarden opens in Acrobat with 
font substitution -- the fonts should be
universally available, I believe.
strange, this should not happen with an embedded font
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: how to use Times Roman font

2005-03-21 Thread Patrick Gundlach

[...]

> I also wonder why the pdf made at ConTeXtgarden opens in Acrobat with
> font substitution -- 

I wonder why. Which fonts are substituted? What is your input file?

Patrick

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


Re: AW: [NTG-context] Export from Excel/Openoffice Calc to ConTeXt naturaltables ??

2005-03-21 Thread luigi.scarso
Michael Fuchs wrote:
Hi Luigi!
Did you write the XSL from scratch? Or did you have an example
to start with? If you found one I would like to have a look
for it as well. 

Regards Michael
 

I write the XSL from scratch (so its errors are mine ..).
If you want, i will send to you an example, just to give an idea.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Repost: Two problems with my chapter quote setup (Modified by Gerben Wierda)

2005-03-21 Thread h h extern
Gerben Wierda wrote:
I forgot one part at the end. Here it is again.
I've got this in my environment file:
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\def\ChQuoteFormat#1{\starttext%
   ^^ no
\startalignment[left]%
\startnarrower[4*left] \noindent{\hyphenpenalty 1\em #1}%
    see below
\stopnarrower\stopalignment\stoptext\blank}
   no
\setuphead[chapter]
[page=left,
before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\page[right]\blank[2*big]},
  ^^ space at top is discarded, use [force,2*big]
after={\ClearChapterQuote\blank[3*big]}%
\noheaderandfooterlines]
I've got two problems with this setup:
a bit more readable (less code in key/val)
\setuphead
  [chapter]
  [page=,
   before=\setups{chapter:before},
   after=\setups{chapter:after}]
\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\noindent \em \setups[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
\noheaderandfooterlines
\blank[force,2*big]
\stopsetups
\startsetups [chapter:after]
\blank[3*big]
\stopsetups
\setupheadertexts[header]
\setupfootertexts[footer]
\starttext
\startsetups [chapter:quote]
For what can a man accomplish that has not been done
a million times before? What can he say that he will not
find in Lao-Tse or the Bhagavadgita or the Prophet Isaiah?
\stopsetups
\chapter{TEST}
\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


[NTG-context] footnote placement

2005-03-21 Thread Idris Samawi Hamid
Dear gang,
I think this may have been missed, so I'm sending it again.
Best
Idris
=
Thu, 17 Mar 2005 21:24:43 -0700==
Dear syndicate,
1. When I place footnotes as endnotes, they overflow the page, like an 
oversize \vbox.

2. E.g.
\input tufte
does not work from inside \footnote{}
Here is a test file.
Best
Idris
==test-notes===
\setupoutput[pdftex]
\setupfootnotes[location=text]
\starttext
\dorecurse{14}
{\input tufte\footnote{Here is a footnote.\par Here is a footnote.\par 
Here is a footnote.}
\par
\input knuth\footnote{Here is a footnote.\par Here is a footnote.\par Here 
is a footnote.}
\par}

%\dorecurse{14} % THIS DOES NOT WORK!!!
%{\input tufte\footnote{\input tufte}
%\par
%\input knuth\footnote{\input knuth}
%\par}
\section{notes}
\placefootnotes[location=text,split=tolerant]
% the split option does not help:-(
\stoptext
===
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Going crazy with font conversion (diaeresis)!

2005-03-21 Thread Steffen Wolfrum
Hi,
using HelveticaNeue (came with OSX) was fine.
But using Helvetica (from OSX system fonts) just won't work:
- when I have converted the .dfont to .pfb with 
FontLab the diaeresis of the german Umlaute (äöü) 
are too far to the right.

- when I have converted the .dfont to .pfb with 
FontForge the diaeresis of the german Umlaute 
(äöü) are OK, but all other elements like Macron, 
Cedilla or Ogonek are too far to the left (!).

Anybody knows this strange behaviour?
And even better what to do to avoid this mess??
Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: [NTG-context] Re: how to use Times Roman font

2005-03-21 Thread Stefano
Patrick,

I tried the following both on the latest (2005-03-16) complete ConTeXt for
Windows mswincontext.zip and on live.contextgarden.net ...

\usetypescript[times][texnansi]
\setupbodyfont[times,12pt]
\starttext
\showfontstrip
\showbodyfont[times]
Roman \bf bold \it italics
\stoptext

On my system, the times font is completely blank and the log file complains
of missing characters (see my post from yesterday), while opening the
Acrobat file produced from live.contextgarden.net produces the following
message:

"Could not find a font in the Resources dictionary - using Helvetica
instead."

In both cases, the roman font "times" is missing or incomplete to some
degree.  Am I using the correct syntax?  The times typescript is defined in
the ConTeXt files ...

Regards,

Stefano

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Patrick Gundlach
> Sent: Monday, March 21, 2005 05:07
> To: ntg-context@ntg.nl
> Subject: [NTG-context] Re: how to use Times Roman font
>
>
>
> [...]
>
> > I also wonder why the pdf made at ConTeXtgarden opens in Acrobat with
> > font substitution --
>
> I wonder why. Which fonts are substituted? What is your input file?
>
> Patrick
>
> --
> ConTeXt wiki: http://contextgarden.net
> ___
> 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


Fwd: RE: Configuring 2 trees [was RE: [NTG-context] Times New Roman]

2005-03-21 Thread Idris Samawi Hamid
I have not installed the 3-16 mswincontext.zip yet but could you check 
this Hans (resend in case you missed it;->)?

Idris
--- Forwarded message ---
From: ishamid <[EMAIL PROTECTED]>
To: mailing list for ConTeXt users 
Subject: RE: Configuring 2 trees [was RE: [NTG-context] Times New Roman]
Date: Thu, 17 Mar 2005 11:41:19 -0700
= Original Message From Hans Hagen <[EMAIL PROTECTED]> =
1. Remember that I need both aleph and pdfetex formats; can you do 
that?
--engine
could you give me an example of its use in building a format?
or in texexec.ini (rme):
set UseEnginePath to  true
Ok, now I have
\texmf-mswin\web2c\aleph
\texmf-mswin\web2c\pdfetex
but aleph is looking in the wrong directory:
This is Aleph, Version 3.141592-1.15-2.1-0.0-rc4 (Web2c 7.5.3)
 \write18 enabled.
Copyright (c) 2002--2004 the Aleph task force
---! c:\CONTEXT\texmf-mswin/web2c/pdfetex/cont-en.fmt was written by 
pdfetex
(Fatal format file error; I'm stymied)

Is there a configuration option I'm missing?
Best
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] footnote placement

2005-03-21 Thread Hans Hagen
Idris Samawi Hamid wrote:
Dear gang,
I think this may have been missed, so I'm sending it again.
replace your core-not.tex by the attached file and regenerate the format
\starttext
\dorecurse{100}{test \footnote{test} \endnote{eee}\endgraf}
\page
\placenotes[endnote]
\stoptext
should work then
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
-


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


[NTG-context] kerning and TFM problems

2005-03-21 Thread Steffen Wolfrum
Hi,
I want to use OSX HelveticaNeue font.
So I open it in FontForge and - because I'd like to use the kerning 
information - generate the Font with its PFB, AFM and TFM files.

According to Bill's help page it should work by (renaming and) 
placing the phnr8r.tfm in its tfm folder, the phnr8a.afm and 
phnr8a.pfb in its respective folders (within my texfm-font tree).

Then I need a mapfile texnansi-helveticaneue.map with the line:
phnr8r HelveticaNeue 4 < phnr8a.pfb texnansi.enc
And my test file looks like this:
\loadmapfile[texnansi-adobe-helveticaneue.map]
\definefontsynonym[HelveticaNeue][phnr8r][encoding=texnansi]
\definefont[MySecondFont][HelveticaNeue]
\starttext
\MySecondFont I sang of leaves, of leaves of gold, and leaves of gold 
there grew.
\stoptext

But it results in problems with the TFM file. Why?
! Font \**MySecondFont**=phnr8r at 12.0pt not loadable: Bad metric (TFM) 
file.

   \relax
\dododefinefont ...ontspec {#2}\rawfontidentifier
  \let \localrelativefontsiz...
\redodefinefont #1#2#3->\dododefinefont {#1}{#2}
\doifsetupselse {#3} {\setup...
l.7 \MySecondFont
  I sang of leaves, of leaves of gold, and leaves of gold th...
?

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


Re: [NTG-context] kerning and TFM problems

2005-03-21 Thread luigi.scarso
Steffen Wolfrum wrote:
Hi,
I want to use OSX HelveticaNeue font.
So I open it in FontForge and - because I'd like to use the kerning 
information - generate the Font with its PFB, AFM and TFM files.

According to Bill's help page it should work by (renaming and) placing 
the phnr8r.tfm in its tfm folder, the phnr8a.afm and phnr8a.pfb in its 
respective folders (within my texfm-font tree).

Then I need a mapfile texnansi-helveticaneue.map with the line:
phnr8r HelveticaNeue 4 < phnr8a.pfb texnansi.enc
And my test file looks like this:
\loadmapfile[texnansi-adobe-helveticaneue.map]
\definefontsynonym[HelveticaNeue][phnr8r][encoding=texnansi]
\definefont[MySecondFont][HelveticaNeue]
\starttext
\MySecondFont I sang of leaves, of leaves of gold, and leaves of gold 
there grew.
\stoptext

But it results in problems with the TFM file. Why?
! Font \**MySecondFont**=phnr8r at 12.0pt not loadable: Bad metric 
(TFM) file.

   \relax
\dododefinefont ...ontspec {#2}\rawfontidentifier
  \let 
\localrelativefontsiz...

\redodefinefont #1#2#3->\dododefinefont {#1}{#2}
\doifsetupselse {#3} 
{\setup...
l.7 \MySecondFont
  I sang of leaves, of leaves of gold, and leaves of 
gold th...

?

Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
Did you re-hash (mktexlsr or something similar) ?
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Going crazy with font conversion (diaeresis)!

2005-03-21 Thread Patrick Gundlach
Hello Steffen,

> But using Helvetica (from OSX system fonts) just won't work:

using? With ConTeXt? With LaTeX? With TeX? Is this a ConTeXt related
problem? Or is the problem with your font?

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] Available fonts

2005-03-21 Thread Willi Egger
Hi Idris,
Yes indeed there sould be a file to test the "built-in" fonts.
Recently I was working on that. The file is in the meantime sent to 
Hans, so that he can give me advice how to finalize it.- May be within 
short notice we will have a demo file.

Kind regards
Willi
ishamid wrote:
Dear crew,
Is there a list of prepackaged fonts/typescripts that comes with 
(fp/MiK/gw/te)TeX/ConTeXt? I think it is important for that info to be made 
very public. showfonts.pdf has at least some of them (plus a couple of 
non-free ones) but I don't know if this is an exhaustive set. A new ConTeXt 
user (especially one from a non-TeX background) should be able to easily find 
a list of the fonts/typescripts available in a full 
(fp/MiK/gw/te)TeX/ConTeXt system.

If I am totally clueless and missed this info, then I apologize:-)
Best
Idris

Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Available fonts

2005-03-21 Thread Idris Samawi Hamid
On Mon, 21 Mar 2005 19:28:47 +0100, Willi Egger <[EMAIL PROTECTED]> wrote:
Hi Idris,
Yes indeed there sould be a file to test the "built-in" fonts.
Recently I was working on that. The file is in the meantime sent to 
Hans, so that he can give me advice how to finalize it.- May be within 
short notice we will have a demo file.
That sounds like great news; looking forward to it!
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How do I create a table like this in ConTeXt?

2005-03-21 Thread Gerben Wierda
On 19 Mar 2005, at 20:38, Willi Egger wrote:
Hi Gerben,
There are different options.
first of all I would have a look into \bTABLE ...\eTABLE constructs 
see enatab.pdf manual.
Where do I find this manual?
Thanks,
G
secondly you might use \starttabulate ..\stoptabulate look at MAPS22 
Voorjaar 1999, pp 153.

Willi
Gerben Wierda wrote:
In LaTeX, a tabular environment produces a box which then can be part 
of another tabular. I tried to do the same with ConTeXt, but failed.
Can someone tell me how to produce
http://mail.rna.nl/~gerben/latex-table.pdf
with ConTeXt?
Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How do I create a table like this in ConTeXt?

2005-03-21 Thread Gerben Wierda
On 19 Mar 2005, at 20:38, Willi Egger wrote:
secondly you might use \starttabulate ..\stoptabulate look at MAPS22 
Voorjaar 1999, pp 153.
I did look at that. I cannot see how that helps me recreating the 
example I posted, sorry.

G
PS. Is it me or is tabulating in ConTeXt a bit counterintuitive? For 
instance, take the exampl efrom MAPS:

\starttabulate[|l|k2c|r|]
\NC this and that \NC left and right \NC here and there \NC \NR
Why 4(!) \NC's here? There are only 3 columns...
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How do I create a table like this in ConTeXt?

2005-03-21 Thread Thomas A . Schmitz
You can download it here:
https://www.pragma-pod.com/dir/general/manuals/enattab.pdf
Best
Thomas
On Mar 21, 2005, at 8:18 PM, Gerben Wierda wrote:
Where do I find this manual?
Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How do I create a table like this in ConTeXt?

2005-03-21 Thread Tobias Burnus
Hi,


Gerben Wierda wrote:
> On 19 Mar 2005, at 20:38, Willi Egger wrote:
>> There are different options.
>> first of all I would have a look into \bTABLE ...\eTABLE constructs
>> see enatab.pdf manual.
> Where do I find this manual?
As always: Go to http://www.pragma-ade.com/dir/  and look around.
http://www.pragma-ade.com/general/manuals/enattab.pdf


> \starttabulate[|l|k2c|r|]
> \NC this and that \NC left and right \NC here and there \NC \NR
>
> Why 4(!) \NC's here? There are only 3 columns... 
Well, in prinziple two \NC would be enough "col1 \NC col2 \NC col3 \NR";
but the idea is seeming as follows:
anytime a new column begins/ends the \NC is added,  add it always when
you would add a vertical line in a table (though nice-looking tables
shan't have that many "|").

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


Re: [NTG-context] footnote placement

2005-03-21 Thread Gerben Wierda
I have been trying to do this for a test with larger notes, but this 
fails:

\starttext
\startbuffer[tufte]
\input tufte
\stopbuffer
\startbuffer[knuth]
\input knuth
\stopbuffer
\dorecurse{100}{test \footnote{\typebuffer[knuth]} 
\endnote{eee}\endgraf}

\page
\placenotes[endnote]
\stoptext
But I get "\input tufte" in my footnotes. Putting the \input directly 
in the \footnote also fails because TeX cannot open the fiile.

G
On 21 Mar 2005, at 17:42, Hans Hagen wrote:
Idris Samawi Hamid wrote:
Dear gang,
I think this may have been missed, so I'm sending it again.
replace your core-not.tex by the attached file and regenerate the 
format

\starttext
\dorecurse{100}{test \footnote{test} \endnote{eee}\endgraf}
\page
\placenotes[endnote]
\stoptext
should work then
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How do I create a table like this in ConTeXt?

2005-03-21 Thread Gerben Wierda
On 21 Mar 2005, at 21:05, Thomas A.Schmitz wrote:
You can download it here:
https://www.pragma-pod.com/dir/general/manuals/enattab.pdf
That link did not work, but going one dir higher and then selecting 
worked. Thanks.

G
Best
Thomas
On Mar 21, 2005, at 8:18 PM, Gerben Wierda wrote:
Where do I find this manual?
Thanks,
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to place figures next to each other

2005-03-21 Thread Peter
Matthias Weber wrote:
The best I can get is
\starttext
\useexternalfigure[myfigure][filename][width=1in]
\placetable[here][tab:2figures]{none}
> [...]
Thanks for the try. I've also tried columns. But the floating mechanism 
and columns/tables doesn't cooperate very well...

Maybe there is a way to increment the figure counter by hand? And to add 
a label for the added figurenumber? Then I can make the 
[2*1]-combination appear as two independent figures.

the only problem then is the caption of the combination. I don't want 
that caption, and I don't want the space that is occupied by that caption.

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


Re: [NTG-context] How do I create a table like this in ConTeXt?

2005-03-21 Thread Hans Hagen
Tobias Burnus wrote:
Well, in prinziple two \NC would be enough "col1 \NC col2 \NC col3 \NR";
interesting thought -)
as with most table mechanism that use halign, some separator is needed; also, in 
context actually there are (hidden) extra columns used for spacing issues;

i once had a bunch of macros that took the ibm line/corner chars as separators, 
kind of ascii wysiwyg

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] How do I create a table like this in ConTeXt?

2005-03-21 Thread Hans Hagen
Gerben Wierda wrote:
On 19 Mar 2005, at 20:38, Willi Egger wrote:
secondly you might use \starttabulate ..\stoptabulate look at MAPS22 
Voorjaar 1999, pp 153.

I did look at that. I cannot see how that helps me recreating the 
example I posted, sorry.

G
PS. Is it me or is tabulating in ConTeXt a bit counterintuitive? For 
instance, take the exampl efrom MAPS:

\starttabulate[|l|k2c|r|]
\NC this and that \NC left and right \NC here and there \NC \NR
Why 4(!) \NC's here? There are only 3 columns...
to keep it kind of code-compatible with the starttable mechanism where each 
column is separated by NC or VL or .. ; just consider NC to be a column boundary 
mark

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] 5 major problems with mswincontext.zip

2005-03-21 Thread ishamid
Dear conglomerate,

Ok, I've installed mswincontext.zip, dated 3-16, refreshed fndb, 
set  UseEnginePath   to  true
and so forth.

4 Problems:

1. Zapf Chancery has disappeared (the other free fonts in showfonts.pdf still 
work):

==
\definetypeface [zapf] [cg] [calligraphy] [chancery]
\switchtotypeface [zapf] [12pt,cg]

Zapf Chancery

\input tufte.tex
==

Log file:

===
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3) (format=cont-en 
2005.3.21)  21 MAR 2005 17:38
entering extended mode
\write18 enabled.
 (c:\CONTEXT\tex\texmf-local/web2c/natural.tcx)
**&pdfetex/cont-en typescripts2.tex
(./typescripts2.tex



(c:\CONTEXT\tex\texmf-local/tex/context/base/type-buy.tex)
Missing character: There is no Z in font texnansi-uzcmi8a!
Missing character: There is no a in font texnansi-uzcmi8a!



Missing character: There is no . in font texnansi-uzcmi8a!
)
fonts   : using map file: texnansi-base
fonts   : using map file: texnansi-urw-zapfchan
[1.1
Warning: pdfetex.exe (file pdftex.map): cannot open font map file


===

2. aleph is still searching its format in the wrong directory; its format is 
properly installed in 
\texmf-mswin/web2c/aleph/

===
This is Aleph, Version 3.141592-1.15-2.1-0.0-rc4 (Web2c 7.5.3)
 \write18 enabled.
Copyright (c) 2002--2004 the Aleph task force
---! c:\CONTEXT\tex\texmf-mswin/web2c/pdfetex/cont-en.fmt was written by 
pdfetex
===

3. If I replace the pdfetex format with 
aleph.fmt, the latter works. It copiles fine on the following file, but 
neither dvips, odvips, or dvipdfm can find the fonts:

===
% output=aleph interface=en

\starttext

Latin Modern

\input tufte

\definetypeface [times] [rm] [serif] [times] [default] [encoding=ec]
\switchtotypeface [times] [12pt,rm]

Times

\input tufte.tex

\stoptext
===

Also, aleph displays the strange "HASH" message:
===
 TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005

Opt=HASH(0x1c44160)executable : aleph
===

4. That trick with the footnotes and endnotes is interesting, but the endnotes 
still spill over the page (I double-checked that core-not was replaced and the 
format regenerated):

===
% output=pdftex interface=en

\starttext

\dorecurse{100}{test \footnote{test} \endnote{eee}\endgraf}

\page

\placenotes[endnote]

\stoptext
===

5. I'm still concerned about getting ConTeXt to search my old \TeXLive tree 
secondarily. changing

C:\ConTeXt\tex\texmf-local\web2c\texmf.cnf

does not seem to do anything (sigh  )
==

I really hope I can get everything working soon, because I've lost about a 
week's worth of deadlined writing fooling around with configuring ConTeXt  
(which is exactly what I was afraid would happen):-(

Thnx in advance, and forgive my frustration-)
Idris


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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


Re: [NTG-context] 5 major problems with mswincontext.zip

2005-03-21 Thread ishamid
I just checked:

Not only aleph, but pdftex does not work with (o)dvips/dvipdfmx:

===
\starttext

Latin Modern

\input tufte.tex

\stoptext
===

If I run (o)dvips from TeXLive, I get

===
This is dvips(k) 5.94a Copyright 2003 Radical Eye Software 
(www.radicaleye.com)
' TeX output 2005.03.21:1943' -> lm.ps
kpathsea: Running mktexpk --mfmode ljfour --bdpi 8000 --mag 1+0/8000 --dpi 
8000
ec-lmr12
mktexmf: empty or non-existent rootfile!
mktexpk: don't know how to create bitmap font for ec-lmr12.kpathsea: Appending 
f
ont creation commands to missfont.log.
dvips.exe: Font ec-lmr12 not found, characters will be left blank.
===

If I run it from  C:\ConTeXt I get

===
This is dvips(k) 5.94b Copyright 2004 Radical Eye Software 
(www.radicaleye.com)
dvips: ! Couldn't find header file tex.pro
===

Best
Idris


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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


Re: [NTG-context] Available fonts

2005-03-21 Thread Xue Ruini
Hi Willi!


On Monday, 21 Mar 2005, Willi Egger wrote:

> Hi Idris,
> 
> Yes indeed there sould be a file to test the "built-in" fonts.
> Recently I was working on that. The file is in the meantime sent to 
> Hans, so that he can give me advice how to finalize it.- May be within 
> short notice we will have a demo file.
> 


So nice!


> Kind regards
> 
> Willi
> 
> 
> ishamid wrote:
> >Dear crew,
> >
> >Is there a list of prepackaged fonts/typescripts that comes with 
> >(fp/MiK/gw/te)TeX/ConTeXt? I think it is important for that info to be 
> >made very public. showfonts.pdf has at least some of them (plus a couple 
> >of non-free ones) but I don't know if this is an exhaustive set. A new 
> >ConTeXt user (especially one from a non-TeX background) should be able 
to 
> >easily find a list of the fonts/typescripts available in a full 
> >(fp/MiK/gw/te)TeX/ConTeXt system.
> >
> >If I am totally clueless and missed this info, then I apologize:-)
> >
> >Best
> >Idris
> >
> >
> >Professor Idris Samawi Hamid
> >Department of Philosophy
> >Colorado State University
> >Fort Collins, CO 80523
> >
> >___
> >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

Best Regards!

---
Xue Ruini
Institute of High Performance Computing
Tsinghua University
Beijing, 100084 China
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Bold item separator?

2005-03-21 Thread dw
Greetings,

I can't seem to get an itemize list to have bold item separators, namely the "R" — UC Roman Numeral series. I bet it's really obvious *grinding teeth*. Anyone give me a clue?

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


[NTG-context] Chapter numbers in the right margin

2005-03-21 Thread Randall Skelton
Hi all,

Does anyone have a setuphead snipit and definition to place a large
chapter number in the right margin of the page on the first page of
each chapter?  I believe this should be similar (but simplier) than
what is done in 'ConTeXt an Excursion' but I wasn't able to find a
definition for that.  I'd be quite willing to put this up on the wiki
when I figure it out...

What I have so far doesn't really lead to much flexibility in terms of
positioning.  I'd like to be able to set both the horizontal and
vertical position of the chapter number.  I'd also like to have the
number shift vertically downwards for each new chapter.

\def\MyChapterText#1{#1 
  \inright{ \switchtobodyfont[MyTitling, 72pt] \rm \headnumber[chapter] }
}

\setuphead
   [Topic, chapter]
   [textcommand=\MyChapterText,
style={\switchtobodyfont[MyTitling, 16pt]\sc},
color=black,
number=no,
page=right,
continue=no,
header=empty,
before=\vbox to 4cm\bgroup,
after=\vss\egroup]

Many thanks,
Randall
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chapter numbers in the right margin

2005-03-21 Thread luigi.scarso
Randall Skelton wrote:
Hi all,
Does anyone have a setuphead snipit and definition to place a large
chapter number in the right margin of the page on the first page of
each chapter?  I believe this should be similar (but simplier) than
what is done in 'ConTeXt an Excursion' but I wasn't able to find a
definition for that.  I'd be quite willing to put this up on the wiki
when I figure it out...
What I have so far doesn't really lead to much flexibility in terms of
positioning.  I'd like to be able to set both the horizontal and
vertical position of the chapter number.  I'd also like to have the
number shift vertically downwards for each new chapter.
\def\MyChapterText#1{#1 
 \inright{ \switchtobodyfont[MyTitling, 72pt] \rm \headnumber[chapter] }
}

\setuphead
  [Topic, chapter]
  [textcommand=\MyChapterText,
   style={\switchtobodyfont[MyTitling, 16pt]\sc},
   color=black,
   number=no,
   page=right,
   continue=no,
   header=empty,
   before=\vbox to 4cm\bgroup,
   after=\vss\egroup]
Many thanks,
Randall
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
 

From cont-eni.pdf, chapter Text elements:
\setuphead[...][..,..=..,..]
:
command\command#1#2
numbercommand\command#1
textcommand\command#1
:
Use textcommand only for text, numbercommand only for number,
command for both;
you can see some examples in sectionVariations in titles .
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context