ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Weber, Matthias" <matweber@indiana.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: MKIV to LMTX (enumerations)
Date: Sat, 30 May 2020 19:18:18 +0000	[thread overview]
Message-ID: <7118949B-475A-4670-862A-EC2FB2FFDC99@indiana.edu> (raw)


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

             reply	other threads:[~2020-05-30 19:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-30 19:18 Weber, Matthias [this message]
2020-05-31  8:59 ` Wolfgang Schuster
2020-05-31 11:36   ` Hans Hagen
2020-05-31 15:57   ` Hans Hagen

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=7118949B-475A-4670-862A-EC2FB2FFDC99@indiana.edu \
    --to=matweber@indiana.edu \
    --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).