Dear group,
I met a nine-year-old who claimed she could write Context. I asked her to try,
but her code had errors. I’m a Context beginner, finding it daunting to learn.
Can someone please look at her Context below and advise me if I should ask her
for help with learning Context?
Regards,
Peter Hopcroft
=====
Here is what I asked her to create:
One A4 page, 2 cm margins to the text area. The text area has a 3 cm wide
column on the left for comments, a 5 mm gutter, then the rest is a single
column for running text. Compose the running text in German, describing two
aspects of childraising in Vietnam. Each aspect has a heading in IBM Plex Sans
and body text in Charter. To the left of the second aspect, put a comment
“Beware of AI taking away typographer’s jobs”. Choose suitable typography, font
size, line spacing.
=====
Here is the Context she wrote:
\setuppapersize[A4]
% Layout: 2 cm margins
\setuplayout[
backspace=2cm,
topspace=2cm,
width=middle,
height=middle,
]
% Define columns inside the text area
\definecolumnset[maincolumns][n=2]
\setcolumnset[maincolumns][
width={3cm,5mm,\dimexpr\textwidth-3cm-5mm\relax},
distance=0pt
]
% Fonts
\definefontfamily[mainface][rm][Charter]
\definefontfamily[mainface][ss][IBM Plex Sans]
\setupbodyfont[mainface,11pt]
% Typography tuning
\setupinterlinespace[line=15pt]
\setupalign[hanging,hz,flushleft]
% Heading style
\defineparagraphs[Aspekt]
\setupparagraphs[Aspekt][
before={\blank[medium]},
after={\blank[small]},
style=\ss\bfb,
]
% Comment style
\defineparagraphs[Kommentar]
\setupparagraphs[Kommentar][
style=\it\tfx,
color=darkgray,
]
\starttext
\startcolumnset[maincolumns]
% First aspect (no comment)
\column % left comment column (empty)
\column % main text column
\Aspekt{Familiäre Verbundenheit und Respekt}
In Vietnam spielt die Großfamilie eine zentrale Rolle in der Erziehung.
Kinder wachsen häufig in engem Kontakt mit Großeltern, Tanten und Onkeln
auf. Respekt gegenüber Älteren wird früh vermittelt und zeigt sich in
Sprache, Gestik und alltäglichen Ritualen. Gehorsam wird weniger als
blinde Unterordnung verstanden, sondern als Ausdruck sozialer Harmonie.
Entscheidungen werden oft gemeinschaftlich getragen, wodurch Kinder
lernen, ihre eigenen Bedürfnisse im Kontext der Familie zu sehen.
% Second aspect with comment
\column
\Kommentar{beware of AI taking away typographer's jobs}
\column
\Aspekt{Bildungseifer und Leistungsorientierung}
Bildung besitzt in Vietnam einen außerordentlich hohen Stellenwert.
Eltern investieren viel Zeit und Ressourcen in die schulische
Entwicklung ihrer Kinder. Fleiß, Disziplin und Ausdauer gelten als
Tugenden, die nicht nur individuelle Erfolge ermöglichen, sondern auch
zum Ansehen der Familie beitragen. Gleichzeitig entstehen dadurch hohe
Erwartungen, die Kinder motivieren, aber auch unter Druck setzen können.
Die Balance zwischen Förderung und Überforderung ist daher ein
zentrales Thema moderner Erziehung in urbanen wie auch ländlichen
Regionen.
\stopcolumnset
\stoptext
=====
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________