From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Mono font goes inside right inline image
Date: Sat, 28 Oct 2023 15:39:03 +0200 [thread overview]
Message-ID: <1ea36185-d26e-4749-8b07-21397ad580fd@xs4all.nl> (raw)
In-Reply-To: <421f735a-9eb0-432b-9fe2-d2ab5b66a70c@fiee.net>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2023-10-28 13:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-28 12:17 [NTG-context] " 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 [this message]
2023-10-28 15:25 ` Mia Bikey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1ea36185-d26e-4749-8b07-21397ad580fd@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).