* Helvetica ?
@ 2005-03-11 16:59 Steffen Wolfrum
2005-03-11 17:29 ` Adam Lindsay
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Steffen Wolfrum @ 2005-03-11 16:59 UTC (permalink / raw)
Hi,
I used to install the fonts that I need for contexing.
But for the current project only Helvetica is needed, and so I
remembered Patrick saying:
> using Helvetica works for me:
> --------------------------------------------------
> \usetypescript [adobekb][\defaultencoding]
> \usetypescript [postscript][\defaultencoding]
> \setupbodyfont[pos,ss,12pt]
>
> \starttext
> foo
> \stoptext
But not for me. The same file as above results in:
> Warning: pdfetex (file ec-urw-times.map): cannot open font map file
>
>{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original-youngryu-
> tx.map}
> Warning: pdfetex (file ec-urw-helvetica.map): cannot open font map file
>
> Warning: pdfetex (file ec-urw-courier.map): cannot open font map file
> ]
> systems : end file helve at line 25
> )
> Warning: pdfetex (file phvr8r): Font phvr8r at 86 not found
What is missing? I am working (under OSX) with Hans' recent Beta,
with Gerbens latest tex i-package, and I also saw various helvetica
pfb files being installed with Gerbens distro.
So, shouldn't contexing with Helvetica work just out-of-the-box, as
Patrick said?
Steffen
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Helvetica ?
2005-03-11 16:59 Helvetica ? Steffen Wolfrum
@ 2005-03-11 17:29 ` Adam Lindsay
2005-03-11 17:43 ` A (my) OTR problem luigi.scarso
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Adam Lindsay @ 2005-03-11 17:29 UTC (permalink / raw)
Steffen Wolfrum said this at Fri, 11 Mar 2005 17:59:30 +0100:
>> \usetypescript [adobekb][\defaultencoding]
>> \usetypescript [postscript][\defaultencoding]
>> \setupbodyfont[pos,ss,12pt]
I'm taking a leap with this, because I don't have my gwTeX box at hand,
but try
\usetypescript [adobekb] [8r]
\usetypescript [postscript] [8r]
\setupbodyfont [pos,ss,12pt]
gwTeX (IIRC) has a full complement of adobe 8r metrics. Note that
helvetica in the postscript typescript is scaled at 90% so "12pt"
actually means 10.8pt.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk
Lancaster University, InfoLab21 +44(0)1524/510.514
Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 10+ messages in thread
* A (my) OTR problem
2005-03-11 16:59 Helvetica ? Steffen Wolfrum
2005-03-11 17:29 ` Adam Lindsay
@ 2005-03-11 17:43 ` luigi.scarso
2005-03-13 22:56 ` h h extern
2005-03-13 23:05 ` h h extern
2005-03-11 20:24 ` Helvetica ? Otared Kavian
2005-03-13 16:41 ` Patrick Gundlach
3 siblings, 2 replies; 10+ messages in thread
From: luigi.scarso @ 2005-03-11 17:43 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 1328 bytes --]
I have the following code:
\showframe
\setuplayout[topdistance=0mm,topspace=10mm,header=10mm,headerdistance=10mm,
footerdistance=5mm,footer=20mm,bottomspace=2mm,
backspace=25mm,
rightmargin=10mm,rightmargindistance=1mm,rightedge=0mm,rightedgedistance=0mm,
leftmargin=15mm,leftmargindistance=1mm,leftedge=9mm,leftedgedistance=0mm,
width=fit,height=fit,
location=middle]
\newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
\def\PageNumber#1{\vbox to \footerheight{\vss\hbox
to\RightMarginWidth{\hss #1 \hss}\vss}}
\setuppagenumbering[location={margin},alternative=doublesided,command={\PageNumber}]
\newbox\ContinueNextPage \setbox\ContinueNextPage=\vbox{\strut\hbox
to\textwidth{\hfill\mathematics{\blacktriangleright}\mathematics{\blacktriangleright}\quad}}
\starttext
\dorecurse{20}%
{\framed[width=\textwidth,height=3em,align={middle,lohi}]{\hfil
\CONTEXT --\recurselevel \hfil}}%
\stoptext
I would like to put \copy\ContinueNextPage after the last \framed in
every page
(in this example, after CONTEXT--18 at page 1 and CONTEXT--36 at page 2).
I don't want use tables/tabular, i try to use \vsplit.
I try to read page-ini, i find useful things like \everyafterpagebody
but i'm still confused.
Thanks in advance,
luigi
[-- Attachment #1.2: Type: text/html, Size: 2232 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Helvetica ?
2005-03-11 16:59 Helvetica ? Steffen Wolfrum
2005-03-11 17:29 ` Adam Lindsay
2005-03-11 17:43 ` A (my) OTR problem luigi.scarso
@ 2005-03-11 20:24 ` Otared Kavian
2005-03-13 16:41 ` Patrick Gundlach
3 siblings, 0 replies; 10+ messages in thread
From: Otared Kavian @ 2005-03-11 20:24 UTC (permalink / raw)
Cc: ntg-context
At 17:59 +0100 11/03/05, Steffen Wolfrum wrote:
>Hi,
>
>I used to install the fonts that I need for contexing.
>
>But for the current project only Helvetica is needed, and so I
>remembered Patrick saying:
>
>> using Helvetica works for me:
>> --------------------------------------------------
>> \usetypescript [adobekb][\defaultencoding]
>> \usetypescript [postscript][\defaultencoding]
>> \setupbodyfont[pos,ss,12pt]
>>
>> \starttext
>> foo
>> \stoptext
>
>
For me the following works fine:
%%%% begin
\usetypescript [adobekb][\defaultencoding]
\setupbodyfont[pos]
%% for helvetica uncomment this
\usetypescript[helvetica][\defaultencoding]
\setupbodyfont[helvetica,ss,12pt]
%% for times uncomment this
%\usetypescript[times][\defaultencoding]
%\setupbodyfont[times,12pt]
\starttext
\input knuth
\bigskip
And this should be some maths with PostScript fonts (but not with
Helvetica\dots).
\startformula
{a \over b} = {c \over d} \iff ad - bc = 0, \qquad \int_0^{2\pi}
\sin(x)^2dx =\pi, \qquad {\rm e}^{{\rm i}\pi} + 1 = 0.
\stopformula
\stoptext
%%%% end
Somehow, unlike Adam's suggestion, I can't replace [\defaultencoding] by [8r].
Cheers: OK
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Helvetica ?
2005-03-11 16:59 Helvetica ? Steffen Wolfrum
` (2 preceding siblings ...)
2005-03-11 20:24 ` Helvetica ? Otared Kavian
@ 2005-03-13 16:41 ` Patrick Gundlach
3 siblings, 0 replies; 10+ messages in thread
From: Patrick Gundlach @ 2005-03-13 16:41 UTC (permalink / raw)
Hello Steffen,
do you have psfnss (LaTeX) installed?
Patrick
--
ConTeXt wiki: http://contextgarden.net
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A (my) OTR problem
2005-03-11 17:43 ` A (my) OTR problem luigi.scarso
@ 2005-03-13 22:56 ` h h extern
2005-03-13 23:05 ` h h extern
1 sibling, 0 replies; 10+ messages in thread
From: h h extern @ 2005-03-13 22:56 UTC (permalink / raw)
luigi.scarso wrote:
> \newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
> \def\PageNumber#1{\vbox to \footerheight{\vss\hbox
> to\RightMarginWidth{\hss #1 \hss}\vss}}
> \setuppagenumbering[location={margin},alternative=doublesided,command={\PageNumber}]
why don't you use \rightmarginwidth directly?
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A (my) OTR problem
2005-03-11 17:43 ` A (my) OTR problem luigi.scarso
2005-03-13 22:56 ` h h extern
@ 2005-03-13 23:05 ` h h extern
2005-03-14 7:21 ` luigi.scarso
1 sibling, 1 reply; 10+ messages in thread
From: h h extern @ 2005-03-13 23:05 UTC (permalink / raw)
luigi.scarso wrote:
> I have the following code:
>
> \showframe
> \setuplayout[topdistance=0mm,topspace=10mm,header=10mm,headerdistance=10mm,
> footerdistance=5mm,footer=20mm,bottomspace=2mm,
> backspace=25mm,
>
> rightmargin=10mm,rightmargindistance=1mm,rightedge=0mm,rightedgedistance=0mm,
>
> leftmargin=15mm,leftmargindistance=1mm,leftedge=9mm,leftedgedistance=0mm,
> width=fit,height=fit,
> location=middle]
>
> \newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
> \def\PageNumber#1{\vbox to \footerheight{\vss\hbox
> to\RightMarginWidth{\hss #1 \hss}\vss}}
> \setuppagenumbering[location={margin},alternative=doublesided,command={\PageNumber}]
>
> \newbox\ContinueNextPage \setbox\ContinueNextPage=\vbox{\strut\hbox
> to\textwidth{\hfill\mathematics{\blacktriangleright}\mathematics{\blacktriangleright}\quad}}
>
>
> \starttext
> \dorecurse{20}%
> {\framed[width=\textwidth,height=3em,align={middle,lohi}]{\hfil
> \CONTEXT --\recurselevel \hfil}}%
>
> \stoptext
>
>
> I would like to put \copy\ContinueNextPage after the last \framed in
> every page
> (in this example, after CONTEXT--18 at page 1 and CONTEXT--36 at page 2).
>
> I don't want use tables/tabular, i try to use \vsplit.
>
> I try to read page-ini, i find useful things like \everyafterpagebody
> but i'm still confused.
This needs to happen in the normal text flow (unless you want to use more dirty
tricks)
\startsetups [continue]
\strut\hbox to \textwidth
{\hfill\mathematics{\blacktriangleright\blacktriangleright}\quad}
\stopsetups
\def\LetsCheckItOut
{\dowithnextbox
{\ifdim\dimexpr\pagetotal+\ht\nextbox+\dp\nextbox+\lineheight\relax>\pagegoal
\endgraf\nobreak\setups[continue]\page
\fi
\box\nextbox}
\vbox}
\starttext
\dorecurse{40}
{\LetsCheckItOut
{\framed
[width=\textwidth,height=3em,align={middle,lohi}]
{\hfil\CONTEXT--\recurselevel\hfil}}}
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A (my) OTR problem
2005-03-13 23:05 ` h h extern
@ 2005-03-14 7:21 ` luigi.scarso
2005-03-14 8:29 ` Hans Hagen
0 siblings, 1 reply; 10+ messages in thread
From: luigi.scarso @ 2005-03-14 7:21 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 2722 bytes --]
h h extern wrote:
> luigi.scarso wrote:
>
>> I have the following code:
>>
>> \showframe
>> \setuplayout[topdistance=0mm,topspace=10mm,header=10mm,headerdistance=10mm,
>>
>> footerdistance=5mm,footer=20mm,bottomspace=2mm,
>> backspace=25mm,
>>
>> rightmargin=10mm,rightmargindistance=1mm,rightedge=0mm,rightedgedistance=0mm,
>>
>>
>> leftmargin=15mm,leftmargindistance=1mm,leftedge=9mm,leftedgedistance=0mm,
>>
>> width=fit,height=fit,
>> location=middle]
>>
>> \newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
>> \def\PageNumber#1{\vbox to \footerheight{\vss\hbox
>> to\RightMarginWidth{\hss #1 \hss}\vss}}
>> \setuppagenumbering[location={margin},alternative=doublesided,command={\PageNumber}]
>>
>>
>> \newbox\ContinueNextPage \setbox\ContinueNextPage=\vbox{\strut\hbox
>> to\textwidth{\hfill\mathematics{\blacktriangleright}\mathematics{\blacktriangleright}\quad}}
>>
>>
>>
>> \starttext
>> \dorecurse{20}%
>> {\framed[width=\textwidth,height=3em,align={middle,lohi}]{\hfil
>> \CONTEXT --\recurselevel \hfil}}%
>>
>> \stoptext
>>
>>
>> I would like to put \copy\ContinueNextPage after the last \framed in
>> every page
>> (in this example, after CONTEXT--18 at page 1 and CONTEXT--36 at page
>> 2).
>>
>> I don't want use tables/tabular, i try to use \vsplit.
>>
>> I try to read page-ini, i find useful things like \everyafterpagebody
>> but i'm still confused.
>
>
> This needs to happen in the normal text flow (unless you want to use
> more dirty tricks)
>
> \startsetups [continue]
> \strut\hbox to \textwidth
> {\hfill\mathematics{\blacktriangleright\blacktriangleright}\quad}
> \stopsetups
>
> \def\LetsCheckItOut
> {\dowithnextbox
> {\ifdim\dimexpr\pagetotal+\ht\nextbox+\dp\nextbox+\lineheight\relax>\pagegoal
>
> \endgraf\nobreak\setups[continue]\page
> \fi
> \box\nextbox}
> \vbox}
>
>
> \starttext
>
> \dorecurse{40}
> {\LetsCheckItOut
> {\framed
> [width=\textwidth,height=3em,align={middle,lohi}]
> {\hfil\CONTEXT--\recurselevel\hfil}}}
>
> \stoptext
>
Not only it works, it's also very nice:
thanks Hans.
(
I know that
/\newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
/it's strange (after all i use \footerheight at the next line...).
Some time ago i wrote something like
\/MyDimension/=0.87\/rightmarginwidth ///
During some corrections/enhancement i made a mistake and i wrote
\/rightmarginwidth =0.87/\/MyDimension///
A nightmare.
When i feel insecure (will i use this dimensions as readonly or
read/write variables ?)
i prefer a safe copy
(in this case i'm sure that i use \footerheight as a readonly var).
)
luigi
[-- Attachment #1.2: Type: text/html, Size: 4228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A (my) OTR problem
2005-03-14 7:21 ` luigi.scarso
@ 2005-03-14 8:29 ` Hans Hagen
2005-03-14 8:41 ` luigi.scarso
0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2005-03-14 8:29 UTC (permalink / raw)
luigi.scarso wrote:
> When i feel insecure (will i use this dimensions as readonly or
> read/write variables ?)
> i prefer a safe copy
> (in this case i'm sure that i use \footerheight as a readonly var).
> )
read-only; then adapt themselves, so there is no need to store their values; can
even be dangerous since they may change odd/even
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A (my) OTR problem
2005-03-14 8:29 ` Hans Hagen
@ 2005-03-14 8:41 ` luigi.scarso
0 siblings, 0 replies; 10+ messages in thread
From: luigi.scarso @ 2005-03-14 8:41 UTC (permalink / raw)
Hans Hagen wrote:
> luigi.scarso wrote:
>
>> When i feel insecure (will i use this dimensions as readonly or
>> read/write variables ?)
>> i prefer a safe copy
>> (in this case i'm sure that i use \footerheight as a readonly var).
>> )
>
>
> read-only; then adapt themselves, so there is no need to store their
> values; can even be dangerous since they may change odd/even
Ok, that's right, many thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-03-14 8:41 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-11 16:59 Helvetica ? Steffen Wolfrum
2005-03-11 17:29 ` Adam Lindsay
2005-03-11 17:43 ` A (my) OTR problem luigi.scarso
2005-03-13 22:56 ` h h extern
2005-03-13 23:05 ` h h extern
2005-03-14 7:21 ` luigi.scarso
2005-03-14 8:29 ` Hans Hagen
2005-03-14 8:41 ` luigi.scarso
2005-03-11 20:24 ` Helvetica ? Otared Kavian
2005-03-13 16:41 ` Patrick Gundlach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).