[NTG-context] bibl-apa bug?

2008-03-10 Thread Randall Skelton
Hi Taco,

I just noticed that my reference list has a quirk with the
inproceedings entries reading:

Author, A and Author, B. (2000). Article title. In Editor, A., Editor,
B. and Editor, C., editors, Title of book, pages 1-10. Publisher.

Note that it should read ... In Title of book, editors Editor, A.,
Editor, B. and Editor, C, ...

My bib entry reads:

@inproceedings{Test:2000,
Author = {Author, A. and Author, B. and Author, C},
Booktitle = {Title of book},
Pages = {1-10},
Title = {Article Title},
Publisher = {Publisher},
Editor = {Editor, A. and Editor, B. and Editor, C.},
Year = 2000}

I believe the bug is in bibl-apa.tex

\setuppublicationlayout[inproceedings]{%
   \insertauthors{}{ }{}%
   \insertpubyear{(}{). }{}%
   \insertarttitle{\bgroup }{\egroup. }{}%%
   \inserttitle
{In \inserteditors{}%
{, [EMAIL PROTECTED] 1 s\fi, }%
{}%
\bgroup\it}%
{\egroup
 \insertseries
  {\insertvolume{, number }{~in }{ }}%
  {}%
  {}%
 \insertchap{\unskip, }{ }{ }%
 \insertpages
{\unskip, pages~}
{\insertcity{, }{. }{. }}
{\unskip. }%
 \insertorganization
 {}%
 {\insertpubname{, }{. }{. }}%
 {\insertpubname{}{. }{}}% was {, }{. }{}
}%
{In \insertcrossref{}{}{}%
 \insertchap{\unskip, }{ }{ }%
 \insertpages{\unskip, pages~}{. }{\unskip. }%
}%
   \insertnote{ }{.}{}%
}
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bibl-apa bug?

2008-03-10 Thread Randall Skelton
My apology Taco, it seems APA doesn't look as I thought it did.
Apparently I'm looking for ACS or AIP style.

Cheers,
Randall
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] General Float Placement Question

2006-04-24 Thread Randall Skelton
Many thanks for the reply Hans. I'm a little puzzled by what happens when I use \setuppagenumbering[alternative=doublesided]. For example:\showframe\setuppapersize[letter][letter]\setuppagenumbering[alternative=doublesided]
\setuplayout[ grid=no, % grids make a mess of complex float placement topspace=0.50in, % the space at the very top of the page backspace=1.75in, % the space for binding gutter
 header=0.40in, % the space for headers footer=0.40in, % the space for footers leftmargin=0.75in, % the space for margin notes rightmargin=1.00in, % the space for margin notes
 height=fit, width=5.25in]\starttexttest\startspread\placefigure[page][Fig:a] {Figure a caption goes here}{\externalfigure[a][width=0.8\makeupwidth]}
\placefigure[page][Fig:b] {Figure b caption goes here}{\externalfigure[b][width=0.8\makeupwidth]}\stopspread\stoptextCheers,Randall---TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5
) context : ver: 2006.02.03 21:03 cont-en : ver: 2006.02.03 21:03 fmt: 2006.2.10 mes: english cont-nl : ver: 2006.02.03 21:03 fmt: 2006.2.10 mes: dutch total run time : 7 seconds

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


[NTG-context] General Float Placement Question

2006-04-20 Thread Randall Skelton
Hi all,Is it possible to combine placement attributes when specifying a floating figure or table?\placefloat[.1.][ref,..]{.2.}{.3.} 


.1. left right here top bottom inleft inright inmargin margin page opposite always force tall 


.2. text .3. text In my case, I'd like to ensure that figures in a double-sided document appear together, with the first on the left page and the second on the right. What I have reads:
\placefigure [90,opposite]

 [Fig:a] {Figure a caption goes here}

 \externalfigure[a][width=0.8\makeupheight]}

\placefigure
 [90]
 [Fig:b]
 {Figure b caption goes here}
 \externalfigure[b][width=0.8\makeupheight]}For the first figure, will a location of [90,opposite] ensure a rotated left-page figure? Likewise, is it possible to ensure that the second figure is forced to the next right page?
Cheers,Randall

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


[NTG-context] Multi-page tables

2006-03-08 Thread Randall Skelton
Hi all,

I'm having a bit of trouble getting multiple page tables to work when
also using \placetable for captions.  Essentially, I want:
  (1) Captions and the ability to reference with \in[].
  (2) Alignment within a cell at a decimal point.
  (3) Span multiple pages with header/footer.

I think I would prefer to use the standard 'TABLES' method but it
looks like item 2 is only supported in natural tables?

Below are two examples.  I don't get page breaks in either case and
the table runs off the bottom of pages 2 and 3.

Thanks,
Randall

\definepapersize
  [width=8.5in,
   height=11in]

\setupcaption[table]
  [location=top]

\starttext

\section{Testing}
This is a silly table test.

\placetable[page][tbl:sample]
  {Sample table caption goes here}
  {\start
   \switchtobodyfont[small]
   \starttablehead
   \HL
   \VL command  \NC meaning  \NC $\lambda$ (deg.) \VL\SR
   \HL
   \stoptablehead
   \starttabletail
   \HL
   \stoptabletail
   \starttables[|c|l|c|]
   \VL \tex{NC}\NC next column \NC1.15 \VL\FR
   \VL \tex{HL}\NC horizontal line \NC   10.20 \VL\MR
   \VL \tex{VL}\NC vertical line   \NC  -14.30 \VL\MR
   \VL \tex{NR}\NC next row\NC -100.00 \VL\MR
   \VL \tex{SR}\NC single row  \NC2.35 \VL\MR
   \VL \tex{FR}\NC first row   \NC  159.00 \VL\MR
   \VL \tex{MR}\NC middle row  \NC   -1.00 \VL\MR
   \VL \tex{LR}\NC last row\NCnr   \VL\MR
   \VL \tex{NC}\NC next column \NC1.15 \VL\MR
   \VL \tex{HL}\NC horizontal line \NC   10.20 \VL\MR
   \VL \tex{VL}\NC vertical line   \NC  -14.30 \VL\MR
   \VL \tex{NR}\NC next row\NC -100.00 \VL\MR
   \VL \tex{SR}\NC single row  \NC2.35 \VL\MR
   \VL \tex{FR}\NC first row   \NC  159.00 \VL\MR
   \VL \tex{MR}\NC middle row  \NC   -1.00 \VL\MR
   \VL \tex{LR}\NC last row\NCnr   \VL\MR
   \VL \tex{NC}\NC next column \NC1.15 \VL\MR
   \VL \tex{HL}\NC horizontal line \NC   10.20 \VL\MR
   \VL \tex{VL}\NC vertical line   \NC  -14.30 \VL\MR
   \VL \tex{NR}\NC next row\NC -100.00 \VL\MR
   \VL \tex{SR}\NC single row  \NC2.35 \VL\MR
   \VL \tex{FR}\NC first row   \NC  159.00 \VL\MR
   \VL \tex{MR}\NC middle row  \NC   -1.00 \VL\MR
   \VL \tex{LR}\NC last row\NCnr   \VL\MR
   \VL \tex{NC}\NC next column \NC1.15 \VL\MR
   \VL \tex{HL}\NC horizontal line \NC   10.20 \VL\MR
   \VL \tex{VL}\NC vertical line   \NC  -14.30 \VL\MR
   \VL \tex{NR}\NC next row\NC -100.00 \VL\MR
   \VL \tex{SR}\NC single row  \NC2.35 \VL\MR
   \VL \tex{FR}\NC first row   \NC  159.00 \VL\MR
   \VL \tex{MR}\NC middle row  \NC   -1.00 \VL\MR
   \VL \tex{LR}\NC last row\NCnr   \VL\MR
   \VL \tex{NC}\NC next column \NC1.15 \VL\MR
   \VL \tex{HL}\NC horizontal line \NC   10.20 \VL\MR
   \VL \tex{VL}\NC vertical line   \NC  -14.30 \VL\MR
   \VL \tex{NR}\NC next row\NC -100.00 \VL\MR
   \VL \tex{SR}\NC single row  \NC2.35 \VL\MR
   \VL \tex{FR}\NC first row   \NC  159.00 \VL\MR
   \VL \tex{MR}\NC middle row  \NC   -1.00 \VL\MR
   \VL \tex{LR}\NC last row\NCnr   \VL\MR
   \VL \tex{NC}\NC next column \NC1.15 \VL\MR
   \VL \tex{HL}\NC horizontal line \NC   10.20 \VL\MR
   \VL \tex{VL}\NC vertical line   \NC  -14.30 \VL\MR
   \VL \tex{NR}\NC next row\NC -100.00 \VL\MR
   \VL \tex{SR}\NC single row  \NC2.35 \VL\MR
   \VL \tex{FR}\NC first row   \NC  159.00 \VL\MR
   \VL \tex{MR}\NC middle row  \NC   -1.00 \VL\MR
   \VL \tex{LR}\NC last row\NCnr   \VL\LR
   \stoptables
   \stop}

\section{Natural Testing}
This is a silly natural table test.

\placetable[page][tbl:naturalSample]
  {Sample table caption goes here}
  {\start
   \switchtobodyfont[small]
   \bTABLE[split=repeat,
   splitmethod=a]
  % Outside border
  \setupTABLE[frame=off]
  \setupTABLE[column][first][leftframe=on]
  \setupTABLE[column][last][rightframe=on]
  \setupTABLE[row][first][topframe=on]
  \setupTABLE[row][last][bottomframe=on]
  % Heading line bottom rule
  \setupTABLE[row][first][bottomframe=on]
  % Alignment
  \setupTABLE[column][1][width=2.5cm,align=middle]
  \setupTABLE[column][2][width=2.5cm,align=right]
  
\setupTABLE[column][3][width=2.5cm,alignmentcharacter={.},aligncharacter=yes,align=middle]
  % Header
  \bTABLEhead
\bTR\bTD command \eTD\bTD meaning \eTD\bTD $\lambda$ (deg.) \eTD\eTR
  \eTABLEhead
  % Body
  \bTABLEbody
\bTR\bTD \tex{NC}\eTD\bTD next column \eTD\bTD1.15 \eTD\eTR
\bTR\bTD \tex{HL}\eTD\bTD horizontal line \eTD\bTD   10.20 \eTD\eTR
\bTR\bTD \tex{VL}\eTD\bTD vertical line   \eTD\bTD  -14.30 \eTD\eTR
\bTR\bTD \tex{NR}\eTD\bTD next row   

[NTG-context] MnSymbol + Minion?

2006-02-03 Thread Randall Skelton
Just curious if anyone is currently playing with Adobe Minion and MnSymbol in ConTeXt? http://www.ctan.org/tex-archive/help/Catalogue/entries/mnsymbol.html
 http://home.vr-web.de/was/mathfontsCheers,Randall
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Math typescript question

2005-11-22 Thread Randall Skelton
It turns out that this isn't related to my typescript but to the use of 'amsl' package with the Fourier font. Is there a quick fix for this? A short example follows. Note the bracket sizes as well as the the \hat and \dot symbols
Cheers,Randall% Example\usetypescript[fourier]\setupbodyfont[fourier,14pt]%% Comment the 'amsl' module to see the difference%\usemodule[amsl] \starttextMy first test reads:
\startformula F=ma.\stopformulaA good second test is:\startformula \left( a^2 + b^2 = c^2 \right).\stopformulaSometimes hats are funny:\startformula
 \hat x = r \text{d} \dot r.
\stopformula
The final test is:\startformula \theta = \sin^{-1} \left( \frac{a}{c} \right).\stopformulaAll done!\stoptextOn 11/22/05, 
Randall Skelton [EMAIL PROTECTED] wrote:
Hi all, I have created a typescript for one of that defines the Utopia expert font along with a few others and tries to make use of the Fourier math font. The use of my own 'Utopia' typescript is largely historical but it is also that the default one with ConTeXt seems a little off (missing headline/display but defines some variants that Linotype is unaware of?). In any case, below is what I have to define the math section but I'm getting some rather strange results with it. In particular, I'm not getting the correct sized parantheses when using '\left(' or '\biggl(' and math accent characters (
i.e. '\hat' and '\dot') are not above the character, but in the middle of it. I don't really know if this is the best way to define a math font within a typescript but it seems to get me most of the way there. NB, it is based on some of Adam's Euler typescript.
Any and all help is greatly appreciated.Cheers,Randall
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Math typescript question

2005-11-22 Thread Randall Skelton
Thanks to all who have read this thread, but I've come to the conclusion that I can probably live without the 'amsl' module.I originally thought that all of the alignment/gather and similar commands were piled in there but after taking a look, it appears to be mainly font wizardry. Some of the definitions in math-pln are really all I was looking for.
Cheers,Randall
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Math typescript question

2005-11-21 Thread Randall Skelton
Hi all, I have created a typescript for one of that defines the Utopia expert font along with a few others and tries to make use of the Fourier math font. The use of my own 'Utopia' typescript is largely historical but it is also that the default one with ConTeXt seems a little off (missing headline/display but defines some variants that Linotype is unaware of?). In any case, below is what I have to define the math section but I'm getting some rather strange results with it. In particular, I'm not getting the correct sized parantheses when using '\left(' or '\biggl(' and math accent characters (
i.e. '\hat' and '\dot') are not above the character, but in the middle of it. I don't really know if this is the best way to define a math font within a typescript but it seems to get me most of the way there. NB, it is based on some of Adam's Euler typescript.
Any and all help is greatly appreciated.Cheers,Randall--- typescript ---% % Math% \loadmapfile[fourier.map]%% Taken from type-enc.tex\starttypescript [math] [utopia] [default,ec]
 \definefontsynonym [Fourier-Math-Letters] [futr8t] [encoding=ec] \definefontsynonym [Fourier-Math-Other-Letters] [futmi]  \definefontsynonym [Fourier-Math-Letters-Italic] [futmii] \definefontsynonym [Fourier-Math-Symbols] [futsy] 
 \definefontsynonym [Fourier-Math-Extension] [fourier-mex]\stoptypescript\starttypescript [boldmath,bfmath] [utopia] [default,ec] \definefontsynonym [Fourier-Math-Letters-Bold] [futb8t] [encoding=ec]
 \definefontsynonym [Fourier-Math-Other-Letters-Bold] [futmib] \definefontsynonym [Fourier-Math-Letters-Italic-Bold] [futmiib] \definefontsynonym [Fourier-Math-Symbols] [futsy]  \definefontsynonym [Fourier-Math-Extension] [fourier-mex]
\stoptypescript% Taken from type-syn.tex\starttypescript [math] [utopia] [name] \definefontsynonym [MathRoman] [Fourier-Math-Letters] \definefontsynonym [MathGamma] [Fourier-Math-Other-Letters]
 \definefontsynonym [MathItalic] [Fourier-Math-Letters-Italic] \definefontsynonym [MathSymbol] [Fourier-Math-Symbols] \definefontsynonym [MathExtension] [Fourier-Math-Extension]\stoptypescript
\starttypescript [math] [utopia] [name] % todo \definefontsynonym [OldStyle] [Serif-OldStyle] % strange, no oldstyles \definefontsynonym [Fraktur] [eufm10] \definefontsynonym [Blackboard] [msbm10]
 \definefontsynonym [Gothic] [eufm10] \definefontsynonym [Calligraphic] [eusm10]\stoptypescript\starttypescript [boldmath] [utopia] [name] \definefontsynonym [MathRoman] [Fourier-Math-Letters-Bold]
 \definefontsynonym [MathGamma] [Fourier-Math-Other-Letters-Bold] \definefontsynonym [MathItalic] [Fourier-Math-Letters-Italic-Bold] \definefontsynonym [MathSymbol] [Fourier-Math-Symbols] \definefontsynonym [MathExtension] [Fourier-Math-Extension]
\stoptypescript\starttypescript [bfmath] [utopia] [name] \definefontsynonym [MathRomanBold] [Fourier-Math-Letters-Bold] \definefontsynonym [MathGammaBold] [Fourier-Math-Other-Letters-Bold]
 \definefontsynonym [MathItalicBold] [Fourier-Math-Letters-Italic-Bold] \definefontsynonym [MathSymbolBold] [Fourier-Math-Symbols] \definefontsynonym [MathExtensionBold] [Fourier-Math-Extension]\stoptypescript
% Taken from type-exa.tex\starttypescript [Utopia,UtopiaBfm] \definetypeface [Utopia] [rm] [serif] [utopia] [default] \definetypeface [Utopia] [tt] [mono] [utopia] [default] \definetypeface [Utopia] [ss] [sans] [utopia] [default]
\stoptypescript\starttypescript [Utopia] \definetypeface [Utopia] [mm] [math] [utopia] [default]\stoptypescript\starttypescript [UtopiaBoldMath] \definetypeface [UtopiaBoldMath] [rm] [serif] [utopia] [default]
 \definetypeface [UtopiaBoldMath] [tt] [mono] [utopia] [default] \definetypeface [UtopiaBoldMath] [ss] [sans] [utopia] [default] \definetypeface [UtopiaBoldMath] [mm] [boldmath] [utopia] [default]
\stoptypescript\starttypescript [UtopiaBfm,UtopiaBoldMath] \definetypeface [Utopia] [mm] [bfmath] [utopia] [default] \definetypeface [UtopiaBoldMath] [mm] [bfmath] [utopia] [default]\stoptypescript
\starttypescript [Utopia,UtopiaBfm,UtopiaBoldMath] \usemathcollection[fou]\stoptypescript% Taken from type-spe.tex\starttypescript [math,boldmath] [utopia] [special] \usemathcollection[fou]
\stoptypescript%% Default typescript%\starttypescript [Utopia] \definetypeface [Utopia] [rm] [serif] [utopia] [default] [encoding=texnansi] \definetypeface [UtopiaExpert] [rm] [serif] [utopia-expert] [default] [encoding=texnansi]
 \definetypeface [UtopiaOldStyle] [rm] [serif] [utopia-oldstyle] [default] [encoding=texnansi] \definetypeface [UtopiaTitling] [rm] [serif] [utopia-titling] [default] [encoding=texnansi] \definetypeface [Syntax] [ss] [sans] [syntax] [default] [encoding=texnansi]
 \definetypeface [LetterGothic] [ss] [sans] [lettergothic] [default] [encoding=texnansi]\stoptypescript
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Continuous chapter numbering

2005-10-13 Thread Randall Skelton
Hi all,I have a technical manual setup in ConTeXt whereby the manual itself is a ConTeXt 'project' and each chapter is a different component. Within this, I need to group some chapters together so these grouped chapters are products. Thus, I have:
project: MyManual component: Chapter 1 component: Chapter 2 component: Chapter 3 product: Example 1 component: Chapter 4 component: Chapter 5 product: Example 2 component: Chapter 6
 component: Chapter 7 product: Example 3
 component: Chapter 8
 component: Chapter 9 ...Is there a way to have the chapter numbers be continuous rather than resetting at the beginning of each product? I have already disabled product numbers in a setupheader command but I'm stumped at how to make the chapter numbers continuous. I've tried playing with incrementnumber=file but I'm not sure this appropraite... any hints here would be greatly appreciated.
Many thanks!Randall\setuphead [part] [textcommand=\MyPartText, textstyle={\switchtobodyfont[Titling, 11pt]\sc}, placehead=yes, color=black, number=no, page=right,
 continue=no, header=empty, distance=0pt, before=\setups{part:before}, after=\setups{part:after}]\setuphead[Topic,chapter] [ numbercommand=\MyChapterNumberText, incrementnumber=prj_thesis,
 textcommand=\MyChapterText, textstyle={\switchtobodyfont[Titling, 11pt]\sc}, color=black, number=yes, page=right, continue=no, header=empty, distance=0pt, before=\vbox to 3cm\bgroup,
 after=\vss\egroup ]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Help with \setuplayout[grid=yes]

2005-08-31 Thread Randall Skelton
Many thanks for the suggestion Vit. In this case, however, I've
split the \starttable and \stoptable commands in the \startAuthors and
\stopAuthors definitions which may well be the root of my
problem. This means that I cannot easily wrap the whole table
with \placeongrid{ }. I cannot see a way of getting the
\domoveongrid and/or \snaptogrid\vbox to work either.

Does anyone have any suggestions on how I can clean this up so that
\starttable and \stoptable are not in separate definitions but I can
still use variables to define the table elements as is done in the
\Authors definition?

Cheers,
Randall
\placeongrid{%or e.g. \placeongrid[{broad,high}]{%
 your table} %%% Authors and Approvals \def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}} \def\startAuthors{% \blank[2*big]\AuthorsTitle\\\blank[2*big]% \hbox to \hsize\bgroup\hss\SetTableToWidth{
6.5in}% \starttable[|c|c|c|c|c|] \HL \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\HL} \def\stopAuthors{\stoptable\hss\egroup} def\Author[#1]{% \getgparameters[Author][#1]%
 \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared by:}}% \doifundefined{AuthorFunction}{\gdef\AuthorFunction{-}}% \doifundefined{AuthorName}{\gdef\AuthorName{-}}% \doifundefined{AuthorSignature}{\gdef\AuthorSignature{}}%
 \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}% \VL\AuthorRole \VL\AuthorFunction% \VL\AuthorName \VL\AuthorSignature% \VL\AuthorDate% \VL\SR\HL% \gdef\AuthorFunction{ }\gdef\AuthorName{ }%
 \gdef\AuthorSignature{ }\gdef\AuthorDate{ }% }

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


Re: [NTG-context] Help with \setuplayout[grid=yes]

2005-08-31 Thread Randall Skelton
One more quick question. When using a grid, I gather that I
should wrap all floating content (tables  figures in my case) with
\placeongrid to ensure \snaptogrid is being used. Does this also
apply to formulae? i.e. should I be using:

\placeformula
 \placeongrid{%
 \startformula 
 ... 
 \stopformula
 }

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


[NTG-context] Help with \setuplayout[grid=yes]

2005-08-30 Thread Randall Skelton
Hi all,

Attached is an example showing my misunderstanding about grid
alignment. The attached works as expected when
\setuplayout[grid=no] is used or the 'Author table' is commented
out. The inclusion of the little table in the text is
really just to convince myself that I can have a table with the grid
enabled.

Any and all suggestions are greatly appreciated.

Cheers,
Randall


\showframe
%\showmakeup
%\showgrid

%%% Dimensions
\newdimen\PaperWidth \PaperWidth=8.5in
\newdimen\PaperHeight \PaperHeight=11.0in
\newdimen\TextWidth \TextWidth=5.5in
\newdimen\TextHeight \TextHeight=10.0in

\setuppapersize[letter][letter]
% paper size
\definepapersize[width=\PaperWidth,height=\PaperHeight]

\setuplayout
 [location=doublesided, % double-sided printing

grid=yes,
 WHY DOES THIS CAUSE AN ERROR?
 topspace=0.50in, % the space at the very top of the page
 backspace=1.5in, % the space in the gutter 
 header=0.75in, % the space for headers
 footer=0.50in, % the space for footers
 leftmargin=1in, % the space for margin notes
 rightmargin=1in, % the space for right margin notes
 width=\TextWidth, % the width of the body text
 height=\TextHeight] % the height of the body text

%%% Authors and Approvals
\def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}}

\def\startAuthors{%
 \blank[2*big]\AuthorsTitle\\\blank[2*big]%
 \hbox to \hsize\bgroup\hss\SetTableToWidth{6.5in}%
 \starttable[|c|c|c|c|c|]
 \HL
 \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\HL}

\def\stopAuthors{\stoptable\hss\egroup}

def\Author[#1]{%
 \getgparameters[Author][#1]%
 \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared by:}}%
 \doifundefined{AuthorFunction}{\gdef\AuthorFunction{-}}%
 \doifundefined{AuthorName}{\gdef\AuthorName{-}}%
 \doifundefined{AuthorSignature}{\gdef\AuthorSignature{}}%
 \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}%
 \VL\AuthorRole \VL\AuthorFunction%
 \VL\AuthorName \VL\AuthorSignature%
 \VL\AuthorDate%
 \VL\SR\HL%
 \gdef\AuthorFunction{ }\gdef\AuthorName{ }%
 \gdef\AuthorSignature{ }\gdef\AuthorDate{ }%
 }

\starttext

%%% Start: Front 
\startfrontmatter

\startAuthors
 \Author
 [Role={Prepared by:},
 Function={Scientist},
 Name={John Smith},
 Date={2005-08-24}]
 \Author
 [Role={Checked by}:,
 Date={2005-08-24}]
 \Author
 [Role={Approved by:},
 Date={2005-08-24}]
\stopAuthors

%%% Stop: Front
\stopfrontmatter

%%% Start: Body 
\startbodymatter

\section{One}

\dorecurse{3}{\input knuth}

\starttable[|c|c|]
\HL
\VL One \VL Two \VL\FR
\VL Three \VL Four \VL\LR
\HL
\stoptable

\section{Two}

\dorecurse{4}{\input knuth}

%%% Stop: Body part
\stopbodymatter

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


Re: [NTG-context] Bold Greek Math with Fourier Font

2005-07-14 Thread Randall Skelton
Hi all,

Can someone explain what the difference between 'ord' and 'alpha' are
in the following two lines is?

  \definemathsymbol [Gamma]   [ord] [mc] [00]

  \definemathsymbol [Gamma]   [alpha] [mi] [00]

Note that using the first line, in place of the second in math-fou.tex
allows me to get what is shown in the ThisWay document on bold math. 
That is, all calitalized Greek characters are upright, not slanted and
I no longer have missing characters.

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


Re: [NTG-context] Bold Greek Math with Fourier Font

2005-07-11 Thread Randall Skelton
I think I've found my problem (finally).  The problem is in
'type-enc.tex' I referred to the standard text fonts for
Fourier-Math-Letters and Fourier-Math-Letters-Bold instead of the true
math fonts.  I believe this is how ConTeXt is configured in its
default...  In any case, 'type-enc.tex' should contain:

\starttypescript [math] [fourier] [default,ec]
  \definefontsynonym [Fourier-Math-Letters] [futmi] [encoding=ec]
  \definefontsynonym [Fourier-Math-Letters-Italic]  [futmii]
  \definefontsynonym [Fourier-Math-Symbols] [futsy] 
  \definefontsynonym [Fourier-Math-Extension]   [fourier-mex]
\stoptypescript

\starttypescript [boldmath,bfmath] [fourier] [default,ec]
  \definefontsynonym [Fourier-Math-Letters-Bold] [futmib] [encoding=ec]
  \definefontsynonym [Fourier-Math-Letters-Italic-Bold]  [futmiib]
  \definefontsynonym [Fourier-Math-Symbols]  [futsy] 
  \definefontsynonym [Fourier-Math-Extension][fourier-mex]
\stoptypescript


The substitution problem can be seen quite clearly from: 

\starttext

  \loadmapfile[fourier] 

  % Original definition
  
  \definefontsynonym [Fourier-Math-Letters] [futr8t]
  \definefontsynonym [Fourier-Math-Letters-Italic]  [futmii]
  \definefontsynonym [Fourier-Math-Letters-Bold][futb8t]
  \definefontsynonym [Fourier-Math-Letters-Italic-Bold] [futmiib]
  \definefontsynonym [Fourier-Math-Symbols] [futsy] 
  \definefontsynonym [Fourier-Math-Extension]   [fourier-mex]
  
  \section{Fourier-Math-Letters}
  \showfont[Fourier-Math-Letters]
  
  \section{Fourier-Math-Letters-Italic}
  \showfont[Fourier-Math-Letters-Italic]

  \section{Fourier-Math-Letters-Bold}
  \showfont[Fourier-Math-Letters-Bold]

  \section{Fourier-Math-Letters-Italic-Bold}
  \showfont[Fourier-Math-Letters-Italic-Bold]
  
  \section{Fourier-Math-Symbols}
  \showfont[Fourier-Math-Symbols]

  \section{Fourier-Math-Extension}
  \showfont[Fourier-Math-Extension]

  % What about these fonts?

  \section{futmi}
  \showfont[futmi]

  \section{futmib}
  \showfont[futmib]

\stoptext

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


Re: [NTG-context] Bold Greek Math with Fourier Font

2005-07-11 Thread Randall Skelton
Many thanks for pointing this out Michel.  I must admit that this is
proving to be much more complicated than I thought... Reading Hans'
ThisWay document makes it appear that getting usable bold-faced math
fonts is only a few lines of definitions... perhaps I should just look
at buying the lucida collection.

For the moment, I've settled on a compromise of using:

  \definefontsynonym [Fourier-Math-Letters] [futr8t] [encoding=ec]

and 

  \definefontsynonym [Fourier-Math-Letters-Bold] [futmib] [encoding=ec]

With this I can get bold greek symbols (both upper and lower case) but
as you pointed out, operators will be italicized if one isn't careful.
 Sigh.

 Now (one of) the difference between fourier and computer modern is that
 capital greek is in the italic font not in the operators font.
 
 This is handled in math-fou.tex:
 
 \definemathsymbol [Gamma]   [alpha] [mi] [00]
 

In an earlier reply, you suggest that I define:

  \definefontsynonym [Fourier-Math-Letters-Bold] [futb8t] [encoding=ec]

but doing so doesn't work as the capital greek symbols... I'm a little
confused why the substitutions defined in math-fou.tex are not applied
in this case?  I need bold \Gamma and \Xi characters in my equations
which is why I began looking at all this.

I did read through math-fou.tex and mat-lbr.tex but didn't follow some
of the definitions.  I  don't understand why the \definemathsymbol
definitions are not applied in this case?  I tried to find insight in
math-lbr.tex but just got confused.

 Note that futmi, and futmii (or futmib futmiib) are two versions of the
 same font (same encoding): the difference is that in futmmii all is
 slanted (even greek caps), and in futmii caps are upright (roman and
 greek) and lowercase are slanted.

I finally realized that when I remembered the existance of \showfont
earlier today.  This also helped me see where the \definemathsymbol
statements in math-fou.tex come from.

 If you want command definitions in math-fou.tex to be used even in
 boldmath, you must change type-spe.tex by referencing the fou math
 collection in boldmath too.

I'm not sure I follow.  My type-spe.tex contains:

\starttypescript [math,boldmath] [fourier] [special]
  \usemathcollection[fou]
\stoptypescript

Many thanks for your help.

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


Re: [NTG-context] Bold Greek Math with Fourier Font

2005-07-09 Thread Randall Skelton
Thank you Adam!  My problem of the perpetual bold characters is now
solved.  My *last* problem is that I get strange characters in place
of bold upper-case Greek characters (\Gamma, \Xi, etc)?  The
lower-case Greeks work fine.  This has all the halmarks of an encoding
problem but I'm not entirely sure where to look?  Do I need to edit
math-fou.tex?  As long as I don't need to change font-bfm.tex...

Many thanks for the helpful replies.

Cheers,
Randall

In type-enc.tex:

\starttypescript [math] [fourier] [default,ec]
 \definefontsynonym [Fourier-Math-Letters] [futr8t] [encoding=ec]
 %\definefontsynonym [Fourier-Math-Letters] [futmi]
 \definefontsynonym [Fourier-Math-Letters-Italic]  [futmii]
 \definefontsynonym [Fourier-Math-Symbols] [futsy]
 \definefontsynonym [Fourier-Math-Extension]   [fourier-mex]
\stoptypescript

\starttypescript [boldmath,bfmath] [fourier] [default,ec]
 \definefontsynonym [Fourier-Math-Letters-Bold] [futb8t] [encoding=ec]
 \definefontsynonym [Fourier-Math-Letters-Italic-Bold]  [futmiib]
 \definefontsynonym [Fourier-Math-Symbols]  [futsy]
 \definefontsynonym [Fourier-Math-Extension][fourier-mex]
\stoptypescript

In type-syn.tex:

\starttypescript [boldmath] [fourier] [name]
 \definefontsynonym [MathRoman] [Fourier-Math-Letters-Bold]
 \definefontsynonym [MathItalic][Fourier-Math-Letters-Italic-Bold]
 \definefontsynonym [MathSymbol][Fourier-Math-Symbols]
 \definefontsynonym [MathExtension] [Fourier-Math-Extension]
\stoptypescript

\starttypescript [bfmath] [fourier] [name]
 \definefontsynonym [MathRomanBold] [Fourier-Math-Letters-Bold]
 \definefontsynonym [MathItalicBold][Fourier-Math-Letters-Italic-Bold]
 \definefontsynonym [MathSymbolBold][Fourier-Math-Symbols]
 \definefontsynonym [MathExtensionBold] [Fourier-Math-Extension]
\stoptypescript

In type-exa.tex:

\starttypescript [fourier] %[texnansi,ec,8r]
 \definetypeface [fourier] [rm] [serif] [fourier] [default]
%[encoding=\typescripttwo]
 \definetypeface [fourier] [tt] [mono]  [fourier] [default]
%[encoding=\typescripttwo]
 \definetypeface [fourier] [ss] [sans]  [fourier] [default]
%[encoding=\typescripttwo]
\stoptypescript

\starttypescript [fourier] %[texnansi,ec,8r]
 \definetypeface [fourier] [mm] [math]  [fourier] [default]
%[encoding=\typescripttwo]
\stoptypescript

\starttypescript [fourierboldmath] %[texnansi,ec,8r]
 \definetypeface [fourierboldmath] [rm] [serif][fourier]
[default] %[encoding=\typescripttwo] % ?
 \definetypeface [fourierboldmath] [tt] [mono] [fourier]
[default] %[encoding=\typescripttwo] % ?
 \definetypeface [fourierboldmath] [ss] [sans] [fourier]
[default] %[encoding=\typescripttwo] % ?
 \definetypeface [fourierboldmath] [mm] [boldmath] [fourier]
[default] %[encoding=\typescripttwo]
\stoptypescript

\starttypescript [fourierbfm,fourierboldmath] %[texnansi,ec,8r]
 \definetypeface [fourier] [mm] [bfmath] [fourier] [default]
%[encoding=\typescripttwo]
 \definetypeface [fourierboldmath] [mm] [bfmath] [fourier] [default]
%[encoding=\typescripttwo]
\stoptypescript

\starttypescript [fourier,fourierabfm,fourierboldmath] %[texnansi,ec,8r]
 \usemathcollection[fou]
 \quittypescriptscanning
\stoptypescript

 START: test.tex
\usetypescript[fourier]
\usetypescript[fourierbfm]
\usetypescript[fourierboldmath]

\setupformulas[method=bold]

\setupbodyfont[fourier]

\starttext

More testing...

\formula[fourier]
 {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \alpha \beta \Gamma \sigma \Xi 2x}

\formula[fourier]
 {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x {\bfm \alpha \beta \Gamma
\sigma \Xi} 2x}

\formula[fourierboldmath]
 {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \bfm \alpha \beta \Gamma
\sigma \Xi 2x}

\formula[fourierboldmath]
 {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \alpha {\bfm \beta
\Gamma} \sigma \Xi 2x}

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


Re: [NTG-context] Bold Greek Math with Fourier Font

2005-07-09 Thread Randall Skelton
Hi all,

A pdf of my output can be found at:

  http://brutus.uwaterloo.ca/~skelton/ConTeX/test.pdf

Despite more fiddling, I'm at a loss as to what has happend to the
capital greek characters when using bold math?

Cheers,
Randall

NB: I entered:

\usetypescript[fourier]
\usetypescript[fourierbfm]
\usetypescript[fourierboldmath]

\setupformulas[method=bold] 

\setupbodyfont[fourier]

\starttext

More testing...

\formula[fourier]
  {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \alpha \beta \Gamma \sigma \Xi 2x} 

\formula[fourier]
  {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x {\bfm \alpha \beta \Gamma
\sigma \Xi} 2x}

\formula[fourierboldmath]
  {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \bfm \alpha \beta \Gamma
\sigma \Xi 2x}

\formula[fourierboldmath]
  {2x \alpha \beta \Gamma \sigma \Xi 2x = 2x \alpha {\bfm \beta
\Gamma} \sigma \Xi 2x}

\formula[fourier]
  {\Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega  
   \alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \kappa
   \lambda \mu \nu \xi \pi \rho \sigma \tau \upsilon \phi \chi \psi
   \partial} 
   
\formula[fourier]
  {\bfm \Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega  
   \alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \kappa
   \lambda \mu \nu \xi \pi \rho \sigma \tau \upsilon \phi \chi \psi
   \partial} 
  
\formula[fourierboldmath]
  {\Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega  
   \alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \kappa
   \lambda \mu \nu \xi \pi \rho \sigma \tau \upsilon \phi \chi \psi
   \partial} 
   
\formula[fourierboldmath]
  {\bfm \Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega  
   \alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \kappa
   \lambda \mu \nu \xi \pi \rho \sigma \tau \upsilon \phi \chi \psi
   \partial} 

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


[NTG-context] Bold Greek Math with Fourier Font

2005-07-08 Thread Randall Skelton
Hi all,

Does anyone know how to setup fourier to have boldfaced symbols (both
greek and roman) using the Fourier font?  I've read through the 
Mixed Normal and Bold Math  doc, but I cannot seem to get bold to
work at all with the Fourier font.  Heck, I cannot even get the
boldmath definition to stop substituting with cm!

I've changed 'tex/context/base/type-syn.tex' and
'tex/context/base/type-enc.tex' to provide boldmath/bfmath definitions
as below.  Despite 3 hours of fiddling, I'm getting substitution with
computer modern when I try and the boldmath definition in test.tex
(below).

I hope this isn't a case of me not reading the docs carefully
enough... Any and all help greatly appreciated.

Cheers,
Randall

% START tex/context/base/type-enc.tex
...
% Fourier (Utopia)

\starttypescript [math] [fourier] [default,ec]
  \definefontsynonym [Fourier-Math-Letters] [futr8t]
 %\definefontsynonym [Fourier-Math-Letters] [futmi]
  \definefontsynonym [Fourier-Math-Letters-Italic]  [futmii]
  \definefontsynonym [Fourier-Math-Symbols] [futsy] 
  \definefontsynonym [Fourier-Math-Extension]   [fourier-mex]
\stoptypescript

\starttypescript [boldmath,bfmath] [fourier] [default,ec]
  \definefontsynonym [Fourier-Math-Letters-Bold] [fourier-mlb]
  \definefontsynonym [Fourier-Math-Letters-Italic-Bold]  [fourier-mlitb]
  \definefontsynonym [Fourier-Math-Symbols]  [futsy] 
  \definefontsynonym [Fourier-Math-Extension][fourier-mex]
\stoptypescript

% fourier virtual fonts:
% futb8c.vf  futbi9d.vf  futc9c.vf  futr8t.vf  futri8t.vf futroorn.vf
futsi9e.vf
% futb8t.vf  futbi9e.vf  futc9d.vf  futr9c.vf  futri9c.vf futrorn.vf 
futso9c.vf
% futb9c.vf  futbo8c.vf  futc9e.vf  futr9d.vf  futri9d.vf futs9c.vf  
futso9d.vf
% futb9d.vf  futbo8t.vf  futcorn.vf futr9e.vf  futri9e.vf futs9d.vf  
futso9e.vf
% futb9e.vf  futbo9c.vf  futmi.vf   futrc8t.vf futro8c.vf futs9e.vf  
futsoorn.vf
% futbc8t.vf futbo9d.vf  futmib.vf  futrc9d.vf futro8t.vf futsc9d.vf 
futsorn.vf
% futbi8c.vf futbo9e.vf  futmii.vf  futrc9e.vf futro9c.vf futsc9e.vf  futsy.vf 
% futbi8t.vf futboorn.vf futmiib.vf futrd8t.vf futro9d.vf futsi9c.vf   
% futbi9c.vf futborn.vf  futr8c.vf  futri8c.vf futro9e.vf futsi9d.vf  
% map file has:
%fourier-bb Fourier-Math-BlackBoard fourier-bb.pfb
%fourier-mcl Fourier-Math-Cal fourier-mcl.pfb
%fourier-mex Fourier-Math-Extension fourier-mex.pfb
%fourier-ml Fourier-Math-Letters fourier-ml.pfb
%fourier-mlit Fourier-Math-Letters-Italic fourier-mlit.pfb
%fourier-mlb Fourier-Math-Letters-Bold fourier-mlb.pfb
%fourier-mlitb Fourier-Math-Letters-Bold-Italic fourier-mlitb.pfb
%fourier-ms Fourier-Math-Symbols fourier-ms.pfb

\starttypescript [serif] [fourier] [ec]
  \definefontsynonym [Fourier-Regular]  [futr8t]   [encoding=ec]
  \definefontsynonym [Fourier-Slanted]  [futro8t]  [encoding=ec]
  \definefontsynonym [Fourier-Italic]   [futri8t]  [encoding=ec]
  \definefontsynonym [Fourier-RegularCaps]  [futrc8t]  [encoding=ec]
  \definefontsynonym [Fourier-Bold] [futb8t]   [encoding=ec]
  \definefontsynonym [Fourier-BoldSlanted]  [futbo8t]  [encoding=ec]
  \definefontsynonym [Fourier-BoldItalic]   [futbi8t]  [encoding=ec]
  \definefontsynonym [Fourier-BoldCaps] [futbc8t]  [encoding=ec]

  \definefontsynonym [Fourier-Regular-Expert]   [futr9e]   [encoding=ec]
  \definefontsynonym [Fourier-Slanted-Expert]   [futro9e]  [encoding=ec]
  \definefontsynonym [Fourier-Italic-Expert][futri9e]  [encoding=ec]
  \definefontsynonym [Fourier-RegularCaps-Expert]   [futrc9e]  [encoding=ec]
  \definefontsynonym [Fourier-Semi-Expert]  [futs9e]   [encoding=ec]
  \definefontsynonym [Fourier-SemiSlanted-Expert]   [futso9e]  [encoding=ec]
  \definefontsynonym [Fourier-SemiItalic-Expert][futsi9e]  [encoding=ec]
  \definefontsynonym [Fourier-SemiCaps-Expert]  [futsc9e]  [encoding=ec]
  \definefontsynonym [Fourier-Bold-Expert]  [futb9e]   [encoding=ec]
  \definefontsynonym [Fourier-BoldSlanted-Expert]   [futbo9e]  [encoding=ec]
  \definefontsynonym [Fourier-BoldItalic-Expert][futbi9e]  [encoding=ec]
  \definefontsynonym [Fourier-Black-Expert] [futc9e]   [encoding=ec]

  \definefontsynonym [Fourier-Regular-OldStyle] [futr9d]   [encoding=ec]
  \definefontsynonym [Fourier-Slanted-OldStyle] [futro9d]  [encoding=ec]
  \definefontsynonym [Fourier-Italic-OldStyle]  [futri9d]  [encoding=ec]
  \definefontsynonym [Fourier-RegularCaps-OldStyle] [futrc9d]  [encoding=ec]
  \definefontsynonym [Fourier-Semi-OldStyle][futs9d]   [encoding=ec]
  \definefontsynonym [Fourier-SemiSlanted-OldStyle] [futso9d]  [encoding=ec]
  \definefontsynonym [Fourier-SemiItalic-OldStyle]  [futsi9d]  [encoding=ec]
  \definefontsynonym [Fourier-SemiCaps-OldStyle][futsc9d]  [encoding=ec]
  \definefontsynonym [Fourier-Bold-OldStyle][futb9d]   [encoding=ec]
  \definefontsynonym 

Re: [NTG-context] Supress chapter number in sections

2005-05-26 Thread Randall Skelton
I'm bumping my last question here...  As Duncan suggested,

\setupsection[section-3][previousnumber=no]

supresses the chapter section numbers in my section headings.  Is
there an easy way to do likewise for the figure and equation numbers
such that the numbering does not include the chapter number?

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


Re: [NTG-context] Supress chapter number in sections

2005-05-05 Thread Randall Skelton
 Hi Randall. It's a slightly confusing one - this behaviour is actually
 controlled via the \setupsection command, which deals with the
 high-level behaviour of sectioning commands like \chapter and
 (confusingly!) \section. The setup you want is
 
 \setupsection[section-3][previousnumber=no]
 
 The rationale is that \part is section-1, \chapter is section-2 and
 \section is section-3. See the manual entry for \setupsection for more info.

Thanks Duncan, the above does exactly what I want for the section
numbers.  Is there a way to do this for figure and equation numbers as
well?

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


[NTG-context] Supress chapter number in sections

2005-05-03 Thread Randall Skelton
I've fiddled with almost every parameter in sethead but cannot seem to
find the correct one.  I'd like to suppress the chapter numbers in a
relatively large document such that numbering of sections, tables,
figures and equations begins at 1 instead of 1.1.  Is there a simple
way to do this?

Here are how my chapters and sections are currently defined:

\def\MyChapterText#1{\leftaligned{#1}}

\setuphead[Topic,chapter]
  [textcommand=\MyChapterText,
   textstyle={\switchtobodyfont[Titling,20pt]\sc},
   color=black,
   number=no,
   page=right,
   continue=no,
   header=empty,
   distance=0pt,
   before=\vbox to 3cm\bgroup,
   after=\vss\egroup]

\def\MySectionText#1{\switchtobodyfont[12pt]\sc\lowercase{#1}}

\setuphead[Subject, section]
  [textcommand=\MySectionText,
   style={\sc},
   color=black,
   before={\blank[2*big]},
   after={\blank[2*big]}]

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


[NTG-context] Changing Title Font in \completecontent

2005-05-02 Thread Randall Skelton
Is there a way to change the title font being used for a table of
contents page being displayed by \completecontent?  My original
thought was to use the same layout as a regular chapter:

\chapter{Table of Contents}
\placecontents

but after reading the manuals a few times, I realized this was doomed
to fail.  Using \completecontent, I'd like to be able to have
'Contents' or 'Table of Contents' written with my standard
\setuphead[chapter] definition.  As it stands, \completecontent
generates a single roman 'Contents' at the top of the page while all
my other titles are offset in position, aligned right, and in small
caps...

Any ideas?

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


[NTG-context] Step repeat pdf in overlay

2005-04-26 Thread Randall Skelton
Hi all,

I've created a small (15x15 mm) tile image (actually a vector PDF)
that I'd like repeat on a cover page but I'm at a bit of a loss as to
how to step repeat* the image.  Here is what I have:

\useexternalfigure[cover][background]
\defineoverlay[cover][{\externalfigure[cover][repeat=yes]}]
\starttext
\setupbackgrounds[page][background=cover]
\startstandardmakeup
My title goes here
\stopstandardmakeup
\stoptext

As one might expect, I get a tiny tile in the centre of the page.  Any ideas?

Cheers,
Randall

* By 'step repeat' I mean something like:
  http://www.excourse.com/steps/
  http://www.adobe.com/education/pdf/id_tutorials/suzanne/step_and_repeat.pdf
___
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-23 Thread Randall Skelton
Many thanks to all who have offerred help with this.  I'll submit
these and a few more examples to the wiki after the Easter break.

Cheers,
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-22 Thread Randall Skelton
 Use textcommand only for text, numbercommand only for number,
 command for both;
 you can see some examples in sectionVariations in titles .

Thanks for the reply.

The problem with separating the text and number is that the space
separating the text and number still appears in the chapter text.  On
a similar note, why doesn't  'show makeup' display the right margin
number?

\def\MyChapterNumberText#1{ 
  \inright{\begingroup 
\midaligned{#1}
  \endgroup}
}

\def\MyChapterText#1{
  \begingroup 
\leftaligned{#1}
  \endgroup
}

\setuphead
   [Topic, chapter]
   [numbercommand=\MyChapterNumberText,
textcommand=\MyChapterText,
numberstyle={\switchtobodyfont[48pt]},
textstyle={\switchtobodyfont[12pt]},
color=black,
number=yes,
page=right,
continue=no,
header=empty,
before=\vbox to 3cm\bgroup,
after=\vss\egroup]

\starttext

%\showmakeup

\chapter{This is a Chapter Title}
\input tufte

\section{This is a section title}
\input tufte \par \input knuth \par

\subsection{This is a sub-section title}
\input tufte \par \input knuth \par

\stoptext
___
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


[NTG-context] Typesetting products and components

2005-02-14 Thread Randall Skelton
Is it possible to determine if texexec is being run on a product or a
component and have optional processing similar to different modes?

I have a large project comprising quarterly reports and technical
notes.  Essentially, I have the following structure:

project = MyProject
  |- product = Reports
 |- component1 = year2005, chapters 1-n
 |- component1 = year2006, chapters 1-n
 ...
  |- product = TechNotes
 |- component1 = note1, sections 1-n
 |- component1 = note2, sections 1-n
 ...
  ...

I would like to be able to typeset a component differently depending
on whether it is passed directly to texexec or whether I am processing
the complete product.  For instance, in each technical note, I would
like a title page, table of contents, list of abreviations, and list
of references generated if I typeset the component separately. 
Conversely, when processing the product TechNotes I want a master
table of contents, list of abbreviations and list of references
generated for the set of components.  Is it appropriate to want to do
this or have I misunderstood the role of projects, products and
components entirely.

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


Re: [NTG-context] Fourier Expert Fonts

2005-02-09 Thread Randall Skelton
 You mean small caps, I presume? My first guess would be that they're not
 properly referenced in the typescript. As for old-style figures, are you
 sure Utopia is supposed to have them? If so, do you know which font
 contains them?

Yes, small caps with oldstyle figures as per:

  http://www.myfonts.com/fonts/linotype/utopia/

 My experience leads me to think that in general you should reference
 fonts with some encoding prefix. That prefixed name has to correspond to
 a name defined in a map file in your TeX tree; e.g., if your
 texnansi-adobe-utopia.map file defines a name something like
 'texnansi-raw-futr8t.map', then in your typescript, 'texnansi-futr8t'
 should work. Then again, I suspect 'futr8t' might be the wrong name to
 use. Do you have TFM files named 'futr8t.tfm', and so on? Or are they
 named 'utopia'? In the latter case, I think the map file should say,
 e.g., 'texnansi-raw-utopia', and you should say 'texnansi-utopia' in the
 typescript.
 
 If you want to use EC encoding, then I guess you would change every
 instance of 'texnansi' above to 'ec'. By the way, is there a particular
 reason you don't want to use TeXnANSI?

I thought that it would be easiest if I could somehow install the
Utopia expert fonts in such a way that they could be used with
existing typescript in $TEXMF/tex/context/base/type-enc.tex

\starttypescript [math] [fourier] [default,ec]
  \definefontsynonym [Fourier-Math-Letters] [futr8t]   [encoding=ec]
 %\definefontsynonym [Fourier-Math-Letters] [futmi]
  \definefontsynonym [Fourier-Math-Letters-Italic]  [futmii]
  \definefontsynonym [Fourier-Math-Symbols] [futsy]
  \definefontsynonym [Fourier-Math-Extension]   [fourier-mex]
\stoptypescript

\starttypescript [serif] [fourier] [ec]
  \definefontsynonym [Fourier-Regular]  [futr8t]   [encoding=ec]
  \definefontsynonym [Fourier-Slanted]  [futro8t]  [encoding=ec]
  \definefontsynonym [Fourier-Italic]   [futri8t]  [encoding=ec]
  \definefontsynonym [Fourier-RegularCaps]  [futrc8t]  [encoding=ec]
  \definefontsynonym [Fourier-Bold] [futb8t]   [encoding=ec]
  \definefontsynonym [Fourier-BoldSlanted]  [futbo8t]  [encoding=ec]
  \definefontsynonym [Fourier-BoldItalic]   [futbi8t]  [encoding=ec]
  \definefontsynonym [Fourier-BoldCaps] [futbc8t]  [encoding=ec]

  \definefontsynonym [Fourier-Regular-Expert]   [futr9e]   [encoding=ec]
  \definefontsynonym [Fourier-Slanted-Expert]   [futro9e]  [encoding=ec]
  \definefontsynonym [Fourier-Italic-Expert][futri9e]  [encoding=ec]
  \definefontsynonym [Fourier-RegularCaps-Expert]   [futrc9e]  [encoding=ec]
  \definefontsynonym [Fourier-Semi-Expert]  [futs9e]   [encoding=ec]
  \definefontsynonym [Fourier-SemiSlanted-Expert]   [futso9e]  [encoding=ec]
  \definefontsynonym [Fourier-SemiItalic-Expert][futsi9e]  [encoding=ec]
  \definefontsynonym [Fourier-SemiCaps-Expert]  [futsc9e]  [encoding=ec]
  \definefontsynonym [Fourier-Bold-Expert]  [futb9e]   [encoding=ec]
  \definefontsynonym [Fourier-BoldSlanted-Expert]   [futbo9e]  [encoding=ec]
  \definefontsynonym [Fourier-BoldItalic-Expert][futbi9e]  [encoding=ec]
  \definefontsynonym [Fourier-Black-Expert] [futc9e]   [encoding=ec]

  \definefontsynonym [Fourier-Regular-OldStyle] [futr9d]   [encoding=ec]
  \definefontsynonym [Fourier-Slanted-OldStyle] [futro9d]  [encoding=ec]
  \definefontsynonym [Fourier-Italic-OldStyle]  [futri9d]  [encoding=ec]
  \definefontsynonym [Fourier-RegularCaps-OldStyle] [futrc9d]  [encoding=ec]
  \definefontsynonym [Fourier-Semi-OldStyle][futs9d]   [encoding=ec]
  \definefontsynonym [Fourier-SemiSlanted-OldStyle] [futso9d]  [encoding=ec]
  \definefontsynonym [Fourier-SemiItalic-OldStyle]  [futsi9d]  [encoding=ec]
  \definefontsynonym [Fourier-SemiCaps-OldStyle][futsc9d]  [encoding=ec]
  \definefontsynonym [Fourier-Bold-OldStyle][futb9d]   [encoding=ec]
  \definefontsynonym [Fourier-BoldSlanted-OldStyle] [futbo9d]  [encoding=ec]
  \definefontsynonym [Fourier-BoldItalic-OldStyle]  [futbi9d]  [encoding=ec]
  \definefontsynonym [Fourier-Black-OldStyle]   [futc9d]   [encoding=ec]
\stoptypescript

and the map in $TEXMF/tex/context/base/type-map.tex

\starttypescript [map] [fourier] [ec]
  \loadmapfile[fourier.map]
  \loadmapfile[fourier-utopia-expert.map]
\stoptypescript

I took the naming convention from the above definitions in
type-enc.tex which, I thought, would make my life a little easier as I
wouldn't need to write the typescript myself.  This is also why I used
'ec' encoding instead of texnansi.  Of course, the definitions in the
map file fourier-utopia-expert.map, suggests that I should have files
named putb8x.pfb which I most certainly do not.

futb8x UtopiaExp-Bold putb8x.pfb
futbi8x UtopiaExp-BoldItalic putbi8x.pfb
futbo8x UtopiaExp-Bold  .167 SlantFont  putb8x.pfb
futr8x UtopiaExp-Regular putr8x.pfb
futri8x 

[NTG-context] Fourier Expert Fonts

2005-02-08 Thread Randall Skelton
Hi all,

Can someone explain how I go about adding the Adobe Utopia Expert
fonts so that ConTeXt is aware of them?  I have the postscript fonts
from Adobe but cannot figure out what to do with them.  Is there a
document that I've missed somewhere?  Poking around in type-enc.tex
suggests that much of the hard work has already been done...

The type one fonts (Mac) were exported using FontLab and renamed to

  ls *.afm *.pfb
  futb8t.afm  futbi9d.afm futr8t.afm  futri8t.afm
futs9e.afm  futsc9wt.afm
  futb8t.pfb  futbi9d.pfb futr8t.pfb  futri8t.pfb
futs9e.pfb  futsc9wt.pfb
  futb9d.afm  futbi9e.afm futr9e.afm  futri9d.afm
futsc9d.afm futsi9d.afm
  futb9d.pfb  futbi9e.pfb futr9e.pfb  futri9d.pfb
futsc9d.pfb futsi9d.pfb
  futb9e.afm  futc9d.afm  futr9p.afm  futri9e.afm
futsc9dd.afmfutsi9e.afm
  futb9e.pfb  futc9d.pfb  futr9p.pfb  futri9e.pfb
futsc9dd.pfbfutsi9e.pfb
  futbi8t.afm futc9e.afm  futrc9d.afm futs9d.afm  futsc9hd.afm
  futbi8t.pfb futc9e.pfb  futrc9d.pfb futs9d.pfb  futsc9hd.pfb

and tried to run a trivial fontinst script:

  \input fontinst.sty
  \needsfontinstversion{1.926}
  \recordtransforms{fut-rec.tex}
  \latinfamily{fut}{}
  \endrecordtransforms
  \bye

but I don't get any propery list or virtual property list files?  

Apologies if this is trivial... it has been a while since I tinkered
with fonts in TeX.

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


Re: [NTG-context] Fourier Expert Fonts

2005-02-08 Thread Randall Skelton
Thanks Matt... after reading a few more sites, I was led back to trying:

texfont --fontroot=$HOME/Library/texmf --vendor=adobe
--collection=utopia --makepath --install

This creates a tree in ~/Library/texmf/fonts/*/adobe/utopia where * is
either afm, tfm, type1, or vf.  I also get
$HOME/Library/texmf/map/pdftex/context/texnansi-adobe-utopia.map which
I've added to my pdftex.cfg and run texhash.  Unfortunately, I still
get CM fonts for the caps and there are no old-style figures?

---
\usetypescript[fourier][ec] 
\setupbodyfont[fourier]

\starttext
This is Fourier roman, {\it italic,} {\bf bold,} and {\bi bold-italic.}

{\em \bf This is also bold-italic.}

We have {\sc small caps} and old-style figures: {\os 0123456789}.
\stoptext
---

Comparing type-enc.tex and the suggestions on Bill McClain's site, the
typescript definitions are somewhat different and I'm wondering if
this isn't the source of my problems:

\definefontsynonym [Fourier-Regular]  [futr8t]   [encoding=ec]
vs.
\definefontsynonym [Fourier-Regular]  [texnansi-futr8t ] 
[encoding=texnansi]

Any further hints are much appreciated.

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