ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* dictionary example
@ 2021-06-12 10:39 jbf
  2021-06-12 13:25 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: jbf @ 2021-06-12 10:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1501 bytes --]

I am wondering if someone has tried a two-column dictionary layout with 
ConTeXt. What is confounding me at the moment is the gap between entries 
in the columns. My MWE is below. Try as I may, I seem unable to get rid 
of those gaps! I obviously want each entry to follow on from the other. 
I'm obviously not doing things right! If someone has already set up a 
dictionary and has a model they could share I'd be grateful. I'm 
attaching a screenshot of the result from the code below.

Julian

----------

\setuphead[subsubject][before=,after=]

\definemarking[subsubject]
\setupheadertexts
[{\getmarking[subsubject][top]–\getmarking[subsubject][bottom]}][][{\getmarking[subsubject][top]–\getmarking[subsubject][bottom]}][]

\setupcolumns[n=2,align=raggedright,balance=no,tolerance={verytolerant,stretch}]
\definedescription[des][headstyle=bold,style=normal,alternative=serried, 
width=fit]
\starttext

\startsubject[title={A}]
\startsubsubject[marking={Term 1}]
\startcolumns
\startdes{term 1}1. bla. 2. bla bla 3. bla bla bla. {\em adjective}. 
\textbullet\hskip 2pt
\input weisman
\rightarrow {\bf something else}.
\stopdes
\stopsubsubject

\startsubsubject[marking={Term 2}]
\startdes{term 2}1. bla. 2. bla bla 3. bla bla bla. {\em noun} 
\textbullet\hskip 2pt \input weisman
\stopdes
\stopsubsubject

\startsubsubject[marking={Term 3}]
\startdes{term 3}1. bla. 2. bla bla 3. bla bla bla. {\em noun} 
\textbullet\hskip 2pt \input weisman
\stopdes
\stopcolumns
\stopsubsubject
\stopsubject


[-- Attachment #2: Screenshot from 2021-06-12 20-36-08.png --]
[-- Type: image/png, Size: 28651 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2021-06-13  9:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-12 10:39 dictionary example jbf
2021-06-12 13:25 ` Wolfgang Schuster
2021-06-12 22:49   ` jbf
2021-06-12 23:52   ` jbf
2021-06-13  7:48     ` Hans Hagen
2021-06-13  9:09       ` jbf
2021-06-13  9:33         ` Hans Hagen

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