[OS X TeX] Sync with ConTeXt
Peter Dyballa
Peter_Dyballa at Web.DE
Mon Sep 19 01:31:23 CEST 2005
Am 18.09.2005 um 21:50 schrieb Herbert Schulz:
> Is the \import{} command the ConTeXt equivalent of \include{} in
> LaTeX? If not, what is the equivalent in ConTeXt? Do you always use
> \input{}? How about the braces?
>
Hello Herb!
The \import rather starts to include a textfile inside a \verbatim
environment.
ConTeXt is more TeX than LaTeX. So it understands only
\input file.tex
or
\input file
But to make use of ConTeXt you need so many extra \this-or-that's
(they're rather \start{this} and \startthat) in front of any \input ...
for example:
\setupoutput[pdftex]
\setuppapersize[A4][A4]
\enablemode[paper,a4]
\setupfonthandling [hz] [min=20,max=20,step=5]
\definetypeface[palatino][rm][serif][ppl][default]
\setupbodyfont[palatino]
\setupalign[hz] % THIS IS MICROSTYLE
%You can also combine these features. For that you need to define a
handling that
%combines protruding and hz:
%\definefonthandling [quality] [hz,pure]
\definebodyfont[15pt]
\mainlanguage[de]
\setupcolors[state=start]
\definecolor [hellblau] [r=.75, g=.875, b=.9375]
\definecolor [hellgruen][r=.75, g=.875, b=.5]
\definecolor [altrosa] [r=.9375, g=.75, b=.75]
\setupcolor[rgb]
%\setupbackground[]
\setuppagenumbering[command=\inframed]
\setupbackgrounds
[text]
[header,text,footer]
[background=color,backgroundcolor=hellgruen]
\setupbackgrounds
[header,footer]
[leftmargin,text,rightmargin]
[background=color,backgroundcolor=altrosa]
\setupbackgrounds
[top,text,bottom]
[leftedge,leftmargin,rightmargin,rightedge]
[background=color,backgroundcolor=hellblau]
\setuplayout[width=middle,height=middle,location=middles,marking=on]
\setuphead
[chapter]
[header=high,
style=smalltype,
textstyle=cap,
alternative=middle]
\definesymbol[1][$\diamondsuit$]
\definesymbol[2][$\bullet$]
\definesymbol[3][$\ast$]
\definesymbol[4][$\star$]
\starttext
\startframedtext
\setupitemize[each][stopper][align=right,stopper=finis]
\startitemize[2,broad]
\item der Geometrie der Gestalt der Glyphen
\item der Eigenschaften des \quotation{Druckwerks}
%\item der \quote{Meta}--Information zur Unterscheidung der
Entwurfsgrö{\SS}en einer Font--Famillje
\stopitemize
\stopframedtext
\stoptext
(I just copied excerpts, they might be syntactically incorrect.)
--
Greetings
Pete
The future will be much better tomorrow.
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list