Re: [NTG-context] Keep the right margin in [nothyphenated, flushleft] columns

2022-08-13 Thread Marcin Ciura via ntg-context
Thank you, Denis.
\setupalign[nothyphenated,flushleft,stretch] fixes the problem of overfull
lines.
Marcin

sob., 13 sie 2022 o 00:17 Denis Maier via ntg-context 
napisał(a):

> Also stretch might be useful as an additional option for align.
>
> Denis
>
> 
> Von: ntg-context  im Auftrag von Aditya
> Mahajan via ntg-context 
> Gesendet: Freitag, 12. August 2022 23:11:21
> An: Marcin Ciura via ntg-context
> Cc: Aditya Mahajan
> Betreff: Re: [NTG-context] Keep the right margin in [nothyphenated,
> flushleft] columns
>
> On Fri, 12 Aug 2022, Marcin Ciura via ntg-context wrote:
>
> > Dear list,
> >
> > I am typesetting [nothyphenated,flushleft] text in two columns. Some
> words
> > stick through the right margin of the left column, sometimes even
> > overlapping the right column. How can I make Context obey the right
> margin?
>
> (Untested): Try adding 'tolerant' or 'verytolerant' to the align options.
>
> Aditya
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Keep the right margin in [nothyphenated, flushleft] columns

2022-08-12 Thread Marcin Ciura via ntg-context
Dear list,

I am typesetting [nothyphenated,flushleft] text in two columns. Some words
stick through the right margin of the left column, sometimes even
overlapping the right column. How can I make Context obey the right margin?

The MWE is below.

Here is the output PDF:
https://live.contextgarden.net/cgi-bin/result.cgi?id=UnSfnS


Best regards,

Marcin


\setupalign[nothyphenated,flushleft]

\starttext

\startitemize[n,nowhite,columns,two]

% The word '(boków' sticks through the right

% margin of the left column.

\item {\bf Wielokąt} to figura na płaszczyźnie,

której brzeg składa się z~odcinków

({\bf boków wielokąta}).

Końce boków nazywamy wierzchołkami wielokąta.

Czasem wyróżniamy jeden bok,

nazywając go podstawą wielokąta.

\stopitemize

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] align=nothyphenated in \defineparagraphs

2022-07-30 Thread Marcin Ciura via ntg-context
Dear list,
I would like to typeset two columns with different widths and no hyphenation.
The columns in the output PDF overlap:
https://live.contextgarden.net/cgi-bin/result.cgi?id=JnPVEM
How to make the columns non-overlapping? My attempt is below.
I do not see a solution at
https://wiki.contextgarden.net/Command/setupparagraphs
Best regards,
Marcin Ciura

\mainlanguage[pl]
\defineparagraphs[proposition][n=2,align=nothyphenated]
\setupparagraphs[proposition][1][width=0.56\textwidth]
\setupparagraphs[proposition][2][width=0.41\textwidth]

\starttext
\startproposition

Jeśli w trójkącie $ABC$
pole kwadratu skonstruowanego na jednym boku
jest równe sumie pól kwadratów skonstruowanych
na dwóch innych bokach:
$BC^2 = AC^2 + AB^2$,
to kąt $BAC$
między tymi dwoma bokami jest prosty.

\proposition

Jeśli odcinek stykający się z innym odcinkiem
tworzy z~nim dwa równe kąty przyległe,
to oba kąty przyległe nazywamy {\bf kątami prostymi},
a~o~obu odcinkach mówimy, że są {\bf prostopadłe}.

\stopproposition
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] [Bug] Two-column text: Larger top spacing in inline images

2022-06-26 Thread Marcin Ciura via ntg-context
Dear Hans and ConTeXt developers,

When you compile the following code with ConTeXt ver: 2021.10.28 10:19, you
will see that:
* in 1-column text the top spacing of the circle is normal,
* in 2-column text, the top spacing of the circle is too large.
Here is the link to the output PDF:
https://live.contextgarden.net/cgi-bin/result.cgi?id=7K5tLW

\def\example{%
Lorem ipsum. Lorem ipsum. Lorem ipsum.
Lorem ipsum. Lorem ipsum. Lorem ipsum.
Lorem ipsum. Lorem ipsum. Lorem ipsum.
Lorem ipsum. Lorem ipsum. Lorem ipsum.
Lorem ipsum. Lorem ipsum. Lorem ipsum.
Lorem ipsum. Lorem ipsum. Lorem ipsum.
\startMPcode draw fullcircle scaled 1cm; \stopMPcode\
Lorem ipsum. Lorem ipsum. Lorem ipsum.}

\starttext
\example
\startcolumns
\example
\stopcolumns
\stoptext

Best regards,
Marcin Ciura
___
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
___