ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unwanted space with \startframedtext
@ 2022-12-22  2:24 Max Chernoff via ntg-context
  0 siblings, 0 replies; only message in thread
From: Max Chernoff via ntg-context @ 2022-12-22  2:24 UTC (permalink / raw)
  To: ntg-context; +Cc: Max Chernoff

Hi Hans,

There's an uncommented linebreak in the definition of
\pack_framed_text_start that's introducing an unwanted space just before
\startframedtext. 

Minimal example:

   \showmakeup[space]
   \starttext
   \hbox{.\startframedtext.\stopframedtext}
   \stoptext
   
Patch:

   --- texmf-context/tex/context/base/mkxl/pack-rul.old	2022-12-21 19:12:14.790830416 -0700
   +++ texmf-context/tex/context/base/mkxl/pack-rul.mkxl	2022-12-21 19:12:26.193652551 -0700
   @@ -2693,7 +2693,7 @@
    
    \tolerant\protected\def\pack_framed_text_start[#1]#*[#2]#*[#3]% or #1#*[#2]#*[#3]% and pass {#1}
      {\bgroup
   -   \edef\currentframedtext{#1}
   +   \edef\currentframedtext{#1}%
       \doifelseassignment{#2}
         {\pack_framed_text_start_indeed\empty{#2}}
         {\pack_framed_text_start_indeed{#2}{#3}}}

(originally reported at https://tex.stackexchange.com/q/669296/270600)

Thanks,
-- Max
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-22  2:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-22  2:24 Unwanted space with \startframedtext Max Chernoff via ntg-context

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