Am 12.10.2025 um 04:06 schrieb Thangalin:
Hi list,

How would you set the width of the columns in the code below?

Currently, I have:

https://i.sstatic.net/O8YyiT18.png <https://i.sstatic.net/O8YyiT18.png>

I'm trying to shrink the left-hand column to achieve something closer to the following:

https://i.sstatic.net/0kAa9MgC.png <https://i.sstatic.net/0kAa9MgC.png>

Alternative method 1:

%%%% begin example
\showframe

\setuplayout
  [backspace=8cm,
   leftmargin=6cm,
   leftmargindistance=5mm,
   width=10cm]

\definenarrower
  [outdent]
  [left=\dimexpression{-\leftmarginwidth-\leftmargindistance},
   default=left]

\starttext

\startnarrow[outdent]
\samplefile{ward}
\stopnarrow

\inmargin
  [stack=yes,
   style=normal]
  [align=flushleft]
  {\samplefile{dijkstra}}

\inmargin
  [stack=yes,
   style=normal]
  [align=flushleft]
  {\samplefile{jojomayer}}

\samplefile{lorem}

\stoptext
%%%% end example

Alternative method 2:

%%%% begin example
\showframe

\defineparagraphs
  [Columns]
  [n=2,
   distance=5mm]

\setupparagraphs
  [Columns:1]
  [width=6cm]

\starttext

\samplefile{ward}

\startparagraphs[Columns]

  \startparagraphscell
    \samplefile{dijkstra}\par
    \samplefile{jojomayer}
  \stopparagraphscell

  \startparagraphscell
    \samplefile{lorem}
  \stopparagraphscell

\stopparagraphs

\stoptext
%%%% end example

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to