ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Mono font goes inside right inline image
@ 2023-10-28 12:17 Mia Bikey
  2023-10-28 12:25 ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 5+ messages in thread
From: Mia Bikey @ 2023-10-28 12:17 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 415 bytes --]

Hi,
I was using mono font as my default font but it appears to have issues with
right side inline images.

Here is a Minimal Working Example:

ConTeXt  ver: 2023.09.26 18:19 LMTX

\setupbodyfont[mono]

\starttext

Image on the right side gets issues.
\placefigure[right]{}{\externalfigure[dummy]}
\input tufte \\

Image on the left side is fine.
\placefigure[left]{}{\externalfigure[dummy]}
\input tufte

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 550 bytes --]

[-- Attachment #2: This is how it looks.pdf --]
[-- Type: application/pdf, Size: 11268 bytes --]

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

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

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

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

* [NTG-context] Re: Mono font goes inside right inline image
  2023-10-28 12:17 [NTG-context] Mono font goes inside right inline image Mia Bikey
@ 2023-10-28 12:25 ` Henning Hraban Ramm
  2023-10-28 12:39   ` Mia Bikey
  2023-10-28 13:39   ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Henning Hraban Ramm @ 2023-10-28 12:25 UTC (permalink / raw)
  To: ntg-context

Am 28.10.23 um 14:17 schrieb Mia Bikey:
> Hi,
> I was using mono font as my default font but it appears to have issues 
> with right side inline images.
> 
> Here is a Minimal Working Example:
> 
> ConTeXt  ver: 2023.09.26 18:19 LMTX
> 
> \setupbodyfont[mono]
> 
> \starttext
> 
> Image on the right side gets issues.
> \placefigure[right]{}{\externalfigure[dummy]}
> \input tufte \\
> 
> Image on the left side is fine.
> \placefigure[left]{}{\externalfigure[dummy]}
> \input tufte
> 
> \stoptext

I fear there’s something generally wrong with mono font calculations, 
also affecting line breaking, since I get overfull hboxes with code 
examples all the time.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

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

* [NTG-context] Re: Mono font goes inside right inline image
  2023-10-28 12:25 ` [NTG-context] " Henning Hraban Ramm
@ 2023-10-28 12:39   ` Mia Bikey
  2023-10-28 13:39   ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Mia Bikey @ 2023-10-28 12:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1479 bytes --]

Ah that sucks, I really like how the font looks.
I guess I will use some other font then.
Thank You

On Sat, Oct 28, 2023 at 5:56 PM Henning Hraban Ramm <texml@fiee.net> wrote:

> Am 28.10.23 um 14:17 schrieb Mia Bikey:
> > Hi,
> > I was using mono font as my default font but it appears to have issues
> > with right side inline images.
> >
> > Here is a Minimal Working Example:
> >
> > ConTeXt  ver: 2023.09.26 18:19 LMTX
> >
> > \setupbodyfont[mono]
> >
> > \starttext
> >
> > Image on the right side gets issues.
> > \placefigure[right]{}{\externalfigure[dummy]}
> > \input tufte \\
> >
> > Image on the left side is fine.
> > \placefigure[left]{}{\externalfigure[dummy]}
> > \input tufte
> >
> > \stoptext
>
> I fear there’s something generally wrong with mono font calculations,
> also affecting line breaking, since I get overfull hboxes with code
> examples all the time.
>
> Hraban
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2380 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

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

* [NTG-context] Re: Mono font goes inside right inline image
  2023-10-28 12:25 ` [NTG-context] " Henning Hraban Ramm
  2023-10-28 12:39   ` Mia Bikey
@ 2023-10-28 13:39   ` Hans Hagen
  2023-10-28 15:25     ` Mia Bikey
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2023-10-28 13:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/28/2023 2:25 PM, Henning Hraban Ramm wrote:
> Am 28.10.23 um 14:17 schrieb Mia Bikey:
>> Hi,
>> I was using mono font as my default font but it appears to have issues 
>> with right side inline images.
>>
>> Here is a Minimal Working Example:
>>
>> ConTeXt  ver: 2023.09.26 18:19 LMTX
>>
>> \setupbodyfont[mono]
>>
>> \starttext
>>
>> Image on the right side gets issues.
>> \placefigure[right]{}{\externalfigure[dummy]}
>> \input tufte \\
>>
>> Image on the left side is fine.
>> \placefigure[left]{}{\externalfigure[dummy]}
>> \input tufte
>>
>> \stoptext
> 
> I fear there’s something generally wrong with mono font calculations, 
> also affecting line breaking, since I get overfull hboxes with code 
> examples all the time.
mono runs way to wide for decent linebreaks so use

\setupalign[verytolerant,stretch]



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

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

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

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

* [NTG-context] Re: Mono font goes inside right inline image
  2023-10-28 13:39   ` Hans Hagen
@ 2023-10-28 15:25     ` Mia Bikey
  0 siblings, 0 replies; 5+ messages in thread
From: Mia Bikey @ 2023-10-28 15:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1925 bytes --]

 Thanks, that works great.


On Sat, Oct 28, 2023 at 7:10 PM Hans Hagen <j.hagen@xs4all.nl> wrote:

> On 10/28/2023 2:25 PM, Henning Hraban Ramm wrote:
> > Am 28.10.23 um 14:17 schrieb Mia Bikey:
> >> Hi,
> >> I was using mono font as my default font but it appears to have issues
> >> with right side inline images.
> >>
> >> Here is a Minimal Working Example:
> >>
> >> ConTeXt  ver: 2023.09.26 18:19 LMTX
> >>
> >> \setupbodyfont[mono]
> >>
> >> \starttext
> >>
> >> Image on the right side gets issues.
> >> \placefigure[right]{}{\externalfigure[dummy]}
> >> \input tufte \\
> >>
> >> Image on the left side is fine.
> >> \placefigure[left]{}{\externalfigure[dummy]}
> >> \input tufte
> >>
> >> \stoptext
> >
> > I fear there’s something generally wrong with mono font calculations,
> > also affecting line breaking, since I get overfull hboxes with code
> > examples all the time.
> mono runs way to wide for decent linebreaks so use
>
> \setupalign[verytolerant,stretch]
>
>
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3119 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________

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

end of thread, other threads:[~2023-10-28 15:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-28 12:17 [NTG-context] Mono font goes inside right inline image Mia Bikey
2023-10-28 12:25 ` [NTG-context] " Henning Hraban Ramm
2023-10-28 12:39   ` Mia Bikey
2023-10-28 13:39   ` Hans Hagen
2023-10-28 15:25     ` Mia Bikey

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