Negative width vrule ignored in LuaMETATeX
Hi, As I'm beginning to use ConTeXt LMTX, I experimented with it a little and noticed some of my old documents different. After some examination I found the following example: \starttext a\vrule width -5pt height 0pt depth 0pt b \stoptext In LMTX, the result looks as if there is no `\vrule' between `a' and `b'. And if I run with `context --engine=luatex', the expected result is back. I have checked the luametatex manual but it doesn't seem to mention the difference. My luametatex version is mkiv lua stats > used engine: luametatex version: 2.0502, functionality level: 20200413, format id: 493, compiler: clang. Is the behaviour expected? Or shall I use other method to get non-discardable negative space? Ao Shen
SAO Ocean schrieb am 24.04.2020 um 16:42:
Hi,
As I'm beginning to use ConTeXt LMTX, I experimented with it a little and noticed some of my old documents different. After some examination I found the following example:
\starttext a\vrule width -5pt height 0pt depth 0pt b \stoptext
In LMTX, the result looks as if there is no `\vrule' between `a' and `b'. And if I run with `context --engine=luatex', the expected result is back. I have checked the luametatex manual but it doesn't seem to mention the difference. My luametatex version is
mkiv lua stats > used engine: luametatex version: 2.0502, functionality level: 20200413, format id: 493, compiler: clang.
Is the behaviour expected? Or shall I use other method to get non-discardable negative space?
\starttext a\kern-5pt\relax b \stoptext or \starttext a\nobreak\hskip-5pt\relax b \stoptext Wolfgang
On 4/24/2020 4:42 PM, SAO Ocean wrote:
Hi,
As I'm beginning to use ConTeXt LMTX, I experimented with it a little and noticed some of my old documents different. After some examination I found the following example:
\starttext a\vrule width -5pt height 0pt depth 0pt b \stoptext
In LMTX, the result looks as if there is no `\vrule' between `a' and `b'. And if I run with `context --engine=luatex', the expected result is back. I have checked the luametatex manual but it doesn't seem to mention the difference. My luametatex version is
mkiv lua stats > used engine: luametatex version: 2.0502, functionality level: 20200413, format id: 493, compiler: clang.
Is the behaviour expected? Or shall I use other method to get non-discardable negative space?
no, but i must admit that it's kind of a border case ... i'll fix it but also wonder if *no* visual rule showing up is intended (i would then also expect an engine to show a rule .. could be an interesting new (luametatex) option as it saves kerns in some cases) see Wolfgangs mail for a better solution using kerns Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
SAO Ocean
-
Wolfgang Schuster