ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Migrating from old ConTeXt to new
@ 2011-11-13 11:23 Gerben Wierda
  2011-11-13 11:40 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Gerben Wierda @ 2011-11-13 11:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello folks,

I have been putting this off for years, but I think somewhere the coming months I'll want to migrate from my current ConTeXt setup to the most recent one so that when I encounter typesetting/ConTeXt problems, I will be asking for solutions in the current actively maintained environments.

When I compile a book project, it currently looks like this:

> texexec --pdf --mode=editor  ../products/prd_book.tex
> MTXrun | kpse fallback with progname 'context' initialized in 0.047062 seconds
> TeXExec | processing document '../products/prd_book.tex'
> TeXExec | no ctx file found
> TeXExec | tex processing method: context
> TeXExec | TeX run 1
> TeXExec | writing option file prd_book.top
> TeXExec | using randomseed 1038
> TeXExec | tex engine: pdftex
> TeXExec | tex format: cont-en
> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
>  restricted \write18 enabled.
>  (/usr/local/texlive/2010/texmf/web2c/natural.tcx)
> entering extended mode
> (../products/prd_book.tex
> 
> ConTeXt  ver: 2010.05.24 13:05 MKII  fmt: 2010.7.21  int: english/english

As I understand, I need to setup a different way to run tex. (BTW, I'm going to migrate to MacTeX 2011 first)

Important for me is the use of Optima, which is now done in an environment file. Will this still work?

> % Bypassing type-gtamacfonts.tex
> \starttypescript [sans,serif] [optima] [texnansi,ec]
> \definefontsynonym [Optima-Regular] [\typescriptthree-OptimaRegular]
> [encoding=\typescriptthree]
> \definefontsynonym [Optima-Italic] [\typescriptthree-OptimaItalic]
> [encoding=\typescriptthree]
> \definefontsynonym [Optima-Bold] [\typescriptthree-OptimaBold]
> [encoding=\typescriptthree]
> \definefontsynonym [Optima-BoldItalic] [\typescriptthree-OptimaBoldItalic]
> [encoding=\typescriptthree]
> \definefontsynonym [Optima-ExtraBlack] [\typescriptthree-OptimaExtraBlack]
> [encoding=\typescriptthree]
> \stoptypescript
> \starttypescript [sans,serif] [optima] [name]
> \setups            [font:fallback:\typescriptone]
> \definefontsynonym [\typescriptprefix\typescriptone] [Optima-Regular]
> \definefontsynonym [\typescriptprefix\typescriptone Italic] [Optima-Italic]
> \definefontsynonym [\typescriptprefix\typescriptone Bold]       [Optima-Bold]
> \definefontsynonym [\typescriptprefix\typescriptone BoldItalic]
> [Optima-BoldItalic]
> \definefontsynonym [\typescriptprefix\typescriptone Black] [Optima-ExtraBlack]
> \stoptypescript
> \definetypeface[allsans][rm][serif][optima][default][encoding=texnansi]
> \definetypeface[allsans][ss][sans][optima][default][encoding=texnansi]
> \loadmapfile [gtamacfonts.map]
> \setupbodyfont[allsans,12pt]

Yours,

G
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Migrating from old ConTeXt to new
  2011-11-13 11:23 Migrating from old ConTeXt to new Gerben Wierda
@ 2011-11-13 11:40 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-11-13 11:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 13.11.2011 um 12:23 schrieb Gerben Wierda:

> Important for me is the use of Optima, which is now done in an environment file. Will this still work?
> 
>> […]


With LuaTeX and XeTeX you can use the predefined typescript to use Optima.

LuaTeX (context <file>):

\usetypescriptfile[type-mac]

\setupbodyfont[optima]

\starttext
\input zapf
\stoptext

XeTeX (“context --xetex <file>” or ”texexec --xtx <file>”):

\usetypescriptfile[type-mac]

\usetypescript[optima]
\setupbodyfont[optima]

\starttext
\input zapf
\stoptext

Wolfgang

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-13 11:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-13 11:23 Migrating from old ConTeXt to new Gerben Wierda
2011-11-13 11:40 ` Wolfgang Schuster

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).