Re: [NTG-context] Streams

2008-04-11 Thread Bert Trüger
On 4/11/08, Roman Sigg [EMAIL PROTECTED] wrote:

 Hello

 For a publication project in phonetics and dialectology I'd like to
 print the phonetic transcription and the dialect text in a two column
 setup. I would be interested to use context for that (more
 flexibility than LaTeX), but every new paragraph is printed on a new
 page (as Henning Hraban Ramm posted earlier). Is there a work around
 other than using two pages?

 Thanks,
 Roman

 Universität Zürich
 Phonogrammarchiv
 Roman Sigg
 Rämistr. 71
 8006 Zürich

 Fon +41 44 634 39 90
 Fax +41 44 634 49 68
 [EMAIL PROTECTED]

 http://www.phonogrammarchiv.uzh.ch



Hi,

perhaps the streams module can help you? I use it to set texts and
theirs translations on
facing pages. You can find an example below. (It came over this list a while
ago.)

Kind regards

Chris



%%%
\usemodule[streams]

\def\StartCouple{\page\SwitchToNormal}
\def\StopCouple {\SwitchToNormal \SynchronizeLeftAndRight
\FlushLeftAndRight}
\def\Original {\SwitchToNormal\SynchronizeLeftAndRight\SwitchToLeft}
\def\Translation{\SwitchToRight}

%%So you put the part of your document where synchronization should
%%take place between \StartCouple and \StopCouple. After that ,
%%\Original and \Translation switches between even and odd pages.
\starttext

\scale[width=\textwidth,height=\textheight,factor=fit]{\ss m-streams}
\page

\StartCouple

\Original
this is an original text \crlf
\input knuth
%\blank[1cm]

\Translation
THIS IS THE TRANSLATION \crlf
\input tufte

\Original
\ss this is an original text \crlf
\input knuth

\Translation
\ss THIS IS THE TRANSLATION \crlf
\input tufte

\StopCouple

\stoptext
___
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] cv templates

2007-09-14 Thread Bert Trüger
Hi frantisek,

this Context-CV-Example was send over this mailing list a year or so ago..

Kind regards,

Chris





%% Ein Context-Skript als Vorlage für einen Lebenslauf

%D \module

\setuppapersize[letter][letter]

\setuplayout[backspace=1.5in,width=5.5in,margin=2.5em]

\setuppagenumbering[location=footer]

\setupinmargin[align=right]

\setupitemize[1][paragraph,atmargin,unpacked][symbol=n,indentnext=no,]
\setupitemize[2][symbol=a][indentnext=no]
%\setupitemize[3][symbol=a][indentnext=no]

\definehead[CVHEAD][subject]
\setuphead[subject][style=\bfa,after={\blank[medium]}]

\definehead[SUBCVHEAD][subsubject]
\setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}]

\defineparagraphs[ContactColumns][n=2]
\setupparagraphs[ContactColumns][each][rule=off,distance=0pt]

\define[2]\CVTITLE{\midaligned{\framed[frame=off,align=middle]
{{\bfa
#1}\blank[medium]{\tfb#2}}}\blank[small]}

\define[1]\CVEMAIL{{\bf Email:}{ \type{#1}}\blank}

% \framed is good for testing or fine-tuning \CONTACT
\define[2]\CONTACT{%\framed[frame=off,width=broad,align=right,strut=no,
 %offset=none,height=fit]
 %{%
\startalignment[middle]
\startContactColumns
 {\bf Office:}\crlf
 {#1}
 \ContactColumns
 {\bf Home:}\crlf
 {#2}
\stopContactColumns
\stopalignment}
%}

% \framed is used to prevent pagebreaks within an \ITEM

\define[5]\EDUITEM{\framed[frame=off,align=right,width=broad]
 {{\bf #1}\inmargin{\it #2}\ (#3).\crlf
 {\bf #4}, #5.\blank[small]}}
\define[6]\EDUITEMMA{\framed[frame=off,align=right,width=broad]
 {{\bf #1}\inmargin{\it #2}\ (#3).\crlf
 {\bf #4}, #5.\crlf
 {\bf Thesis:} {\em #6}.
 \blank[small]}}
\define[7]\EDUITEMPHD{\framed[frame=off,align=right,width=broad]
 {{\bf #1}\inmargin{\it #2}\ (#3).\crlf
 {\bf #4}, #5.\crlf
 {\bf Dissertation:} {\em #6}.\crlf
 {\bf Advisor:} #7.
 \blank[small]}}

\define[4]\ACADITEM{\framed[frame=off,align=right,width=broad]
 {{\bf Location:}\inmargin{\it #1}\ #2.\crlf
 {\bf Position:} #3.\crlf
 {\bf Responsibilities:} #4.
 \blank[small]}}

\define[2]\GRANTITEM{\framed[frame=off,align=right,width=broad]
 {\inmargin{\it #1} #2.}}

\setupbodyfont[11pt] % 11pt seems pretty standard for cv's

\endinput
=

===cv-resume.tex=
\usemodule[resume]

\starttext

\CVTITLE{Curriculum Vitae}{Idris Samawi Hamid}

\CONTACT{Department of \TeX\ Studies\crlf
  % 221 Eddy Hall\crlf
  \TeX\ State University\crlf
  Fort Collins, CO 80523 \crlf USA\crlf
  (970) 491-2406/6315
 }
 {1234 \TeX\ Road\crlf
  \TeX{}ville, CO 80555 \crlf USA\crlf
  (800) TEX-\crlf}

[EMAIL PROTECTED]

\CVHEAD{Education}

\EDUITEMPHD
 {PhD}
 {2007}
 {\TeX\ Studies}
 {\TeX\ University}
 {Amherst, NY}
 {Arabic Critical Editions}
 {\TeX\ Distinguished Professor Hans Hagen}

\EDUITEMMA
 {MA}
 {1996}
 {Physics}
 {University at Buffalo, State University of New York}
 {Amherst, NY}
 {G\{o}del's Universe, the Mach Principle, and the Cosmological
Principle:
 Considerations for the Philosophy of Physics}

\EDUITEM{BSc}{1990}{Physics; minor, Mathematics}{Georgia State
University}{Atlanta, GA}


%% positions
% academic positions
\CVHEAD{Academic Positions}

\ACADITEM
 {2001--2007}
 {\TeX\ State University, \TeX{}ville, CO}
 {Associate Professor}
 {Instruction and research, especially
 the development of upper-level courses in \TeX\ and \Context}

\CVHEAD{Areas of Specialization}

Metaphysics of \TeX, Islamic Philosophy, Philosophy of Mysticism,
Philosophy of Science.

\CVHEAD{Philosophic Interests}

\TeX\ Logic, Category Theory, Chinese Philosophy.

% other skills

\CVHEAD{Languages and Technical Skills}

Arabic, French, and the professional computer typesetting language
\TeX, including the major dialects \LaTeX, \Context, as well as
the minor dialects Arab\TeX (for typesetting in Arabic script) and
EDMAC (for critical edition typesetting). I am also developing a
new Arabic-script system for scholarly typesetting, {\sc Oriental
\TeX}, based upon \TeX\ and \Context.

% patents

\CVHEAD{Publications}

\SUBCVHEAD{Books Authored}

\startitemize

\item Idris Samawi Hamid, 2006, {\it The Cosmology of \TeX}, \TeX\
University Press, 240 pp.

\stopitemize

\SUBCVHEAD{Articles}

\startitemize

\item Idris Samawi Hamid,  2005, {\it Installing Expert Fonts:

[NTG-context] Underline the headertext with a thinrule

2007-05-13 Thread Bert Trüger

Hi again,

luigi, thanks for your tips. I simply want to put a \thinrule
underneath the headertext in textwidth. My setup is:

\setupheadertexts[chapter][\pagenumber][section][\pagenumber]
\setupheader[after=\thinrule]
\setuphead[subsubsection][number=no,alternative=text,indenttext=yes,textstyle=bold]
\definetext[chapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=chapter,page=yes]
\setuphead[blank][state=empty]

This way I get a \thinrule starting in the left margin in textwidth
under an odd page. I would like the headertext with chapter and
pagenumber underlined with \thinrule on every odd page, except it
is blank or the beginning of a new chapter, and the same with
section and pagenumber in the header for every even page, except it
is blank or the beginning of a new chapter -- a simple underlined
headtext like in many books.

Thanks for your help

Bert
___
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
___


[NTG-context] Add a headrule to the header and reduzie interlinespacing in narrower

2007-05-10 Thread Bert Trüger

Hi,

I have two problems. Firstly, I'd like to insert a headrule in textwidht
under the headertext and secondly I am using the narrower-environement for
citation, but instead of big interlinespace I'd prefer medium interlinespace
for the citation. Probably it is the wrong way to use narrower for
citations, what would be better? Further it would be fine, if I could
disable indenting in the citations.

Kind regards and thanks in advance

Bert
___
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] Pagebreak only after stanzas

2007-04-15 Thread Bert Trüger

Hi again,

I have tried to implement Adityas suggestions. Now pagebreaks are correct.
But how can I minimize the whitespace between stanzas. There shouldn't be
much more than a \smallskip.  I tried to look it up in the contextgarden
wiki, but an entry on verses seems to be missing, so I could wikify the
solutions.

Thanks in advance

Chris

A minimal example looks like:

\setuppapersize[A6][A6]
\setuplayout[
topspace=1cm,backspace=1cm,header=0pt,footer=0pt,margin=.5cm,height=middle,width=middle,]

\usetypescriptfile[type-gyr]
\usetypescript[times][texnansi]
\mainlanguage[de]
\enableregime[utf]
\setupbodyfont[times,9pt]

\setupindenting[medium, no]

\setupframedtexts[width=\textwidth,height=fit,frame=on]

\starttext
\subsection{Novalis—An Tieck}
\obeylines
\startframedtext
Ein Kind voll Wehmut und voll Teue,
Verstoßen in ein fremdes Land,
Ließ gern das Glänzende und Neue,
Und blieb dem Alten zugewandt.
\stopframedtext
\startframedtext
Nach langem Suchen, langem Warten,
Nach manchem mühevollen Gang,
Fand es in einem öden Garten
Auf einer längst verfallenen Bank
\stopframedtext
\startframedtext
Ein altes Buch mit Gold verschlossen,
Und nie gehörte Worte drin;
Und, wie des Frühlings zarte Sprossen,
So wuchs in ihm ein innrer Sinn.
\stopframedtext
\startframedtext
Und wie es sitzt, und liest, und schauet
In den Kristall der neuen Welt,
An Gras und Sternen sich erbaut,
Und dankbar auf die Kniee fällt:
\stopframedtext
\startframedtext
So hebt sich sacht aus Gras und Kräutern
Bedächtiglich ein alter Mann,
Im schlichten Rock, und kommt mit heiterm
Gesicht ans fromme Kind heran.
\stopframedtext
\startframedtext
Bekannt, doch heimlich sind die Züge
So kindlich und so wunderbar;
Es spielt die Frühlingsluft der Wiege
Gar seltsam mit dem Silberhaar.
\stopframedtext
\startframedtext
Das Kind fasst bebend seine Hände,
Es ist des Buches hoher Geist,
Der ihm der sauren Wallfahrt Ende
Und seines Vaters Wohnung weist.
\stopframedtext
\startframedtext
Du kniest auf meinem öden Grabe,
So öffnet sich der heilge Mund,
Du bist der Erbe meiner Habe,
Dir werde Gottes Tiefe kund.
\stopframedtext
\startframedtext
Auf jenem Berg als armer Knabe
Hab ich ein himmlisch Buch gesehn,
Und konnte nun durch diese Gabe
In alle Kreaturen sehn.
\stopframedtext
\startframedtext
Es sind an mir durch Gottes Gnade
Der höchsten Wunder viel geschehn;
Des neuen Bunds geheime Lade
Sahn meine Auge offen stehn.
\stopframedtext
\startframedtext
Ich habe treulich aufgeschrieben,
Was innre Lust mir offenbart,
Und bin verkannt und arm geblieben,
Bis ich zu Gott gerufen ward.
\stopframedtext
\startframedtext
Die Zeit ist da, und nicht verborgen
Soll das Mysterium mehr sein.
In diesem Buche bricht der Morgen
Gewaltig in die Zeit hinein.
\stopframedtext
\startframedtext
Verkündiger der Morgenröte,
Des Friedens Bote sollst du sein.
Sanft wie die Luft in Harf und Flöte
Hauch ich dir meinen Atem ein.
\stopframedtext
\startframedtext
Gott sei mit dir, geh hin und wasche
Die Augen dir mir Morgentau.
Sei treu dem Buch und meiner Asche,
Und bade dich im ewgen Blau.
\stopframedtext
\startframedtext
Du wirst das letzte Reich verkünden,
Das tausend Jahre soll bestehen;
Wirst überschwänglich Wesen finden,
Und Jakob Böhmen wieder sehn.
\stopframedtext

\stoptext


On 4/14/07, Aditya Mahajan [EMAIL PROTECTED] wrote:


On Sat, 14 Apr 2007, Bert Trüger wrote:

 Hi,

 i am a fresh convert to Context from Latex and deeply impressed by
 it's ability to set multiple pages on one page, even doublesided
 ones.
 For setting a collection of poems I use \obeylines and \smallskip
 to arrange them on the page. Pagebreaks should only be possible
 between stanzas at the \smallskip-mark. Could somebody tell me, how
 to achieve this?

Probably, the easiest way to do that will be to add a bit of a markup.
Something like (untested)

\setuplines[after={\blank[small]}] %or after=\smallskip

\defineframedtext[stanza][width=\textwidth,before=\startlines,after=\stoplines]

\startstanza


\stopstanza

Since framedtext is a box, it will not break across pages.

Aditya
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Pagebreak only after stanzas

2007-04-14 Thread Bert Trüger

Hi,

i am a fresh convert to Context from Latex and deeply impressed by
it's ability to set multiple pages on one page, even doublesided
ones.
For setting a collection of poems I use \obeylines and \smallskip
to arrange them on the page. Pagebreaks should only be possible
between stanzas at the \smallskip-mark. Could somebody tell me, how
to achieve this?

Thanks in advance

Chris
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] GFS Fonts, especially GFS Bodoni, Didot and Porson

2007-01-17 Thread Bert Trüger

Hi,

a few days ago Alan Bowen wrote about his problem using GFS Bodoni. I'm
looking for GFS fonts. The link
http://www.greekfontsociety.org/pages/en_typefaces.html seems to be dead. So
can anybody provide me with these fonts or send me a working link? It would
help a lot if he could add all the needed afm, vf, map etc. files to use
them with context.

Thanks in advance

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