ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MKIV to LMTX (enumerations)
@ 2020-05-30 19:18 Weber, Matthias
  2020-05-31  8:59 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Weber, Matthias @ 2020-05-30 19:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear List,

After staying with a frozen MKIV version for time-critical work for a while, I took the plunge and ran one of my longer math-heavy documents through LMTX. To my delight, it mostly looks fine or trivially fixable.
There is one problem I have with enumerations. The spacing between them in LMTX is notoriously smaller than in MKIV.

I bet there is a parameter I can set to tweak that? Below is a MWE with output for both engines.
Thanks!

Matthias



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

[-- Attachment #2: Test.tex --]
[-- Type: application/octet-stream, Size: 881 bytes --]

\definecolor[thm]
	[r=0.717189,g=0.789151,b=0.853407]
\definecolor[thmtxt]
	[r=0.113817,g=0.246983,b=0.277211]
	
\defineframedtext	[thmbackground]
				[backgroundcolor=thm,
				background=color,
				corner=round,
				width=broad,
				frame=on,
				framecolor=black,
				location=paragraph,
				color=thmtxt]
				
\setupenumerations	[alternative=hanging,
        			width=fit,
        			right={~},
        			way=bysection,
			prefix=chapter,
			distance=0.1em,
        			prefixsegments={chapter:section}]
			
\defineenumeration	[theorem]
				[text=Theorem,
				before={\startthmbackground},
				after={\stopthmbackground},
        			style=italic,
        			title=yes,
        			titleleft=(,
        			titleright=),
        			]

\starttext

\starttheorem
\input tufte
\stoptheorem

\starttheorem
\input knuth
\stoptheorem

\stoptext

[-- Attachment #3: ATT00001.htm --]
[-- Type: text/html, Size: 208 bytes --]

[-- Attachment #4: Test-LMTX.pdf --]
[-- Type: application/pdf, Size: 14705 bytes --]

[-- Attachment #5: ATT00002.htm --]
[-- Type: text/html, Size: 208 bytes --]

[-- Attachment #6: Test-MKIV.pdf --]
[-- Type: application/pdf, Size: 15191 bytes --]

[-- Attachment #7: ATT00003.htm --]
[-- Type: text/html, Size: 226 bytes --]

[-- Attachment #8: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2020-05-31 15:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-30 19:18 MKIV to LMTX (enumerations) Weber, Matthias
2020-05-31  8:59 ` Wolfgang Schuster
2020-05-31 11:36   ` Hans Hagen
2020-05-31 15:57   ` Hans Hagen

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