Skip to Content.
Sympa Menu

texmacs-users - Re: Why isn't it possible to have two list items on the same line ?

Subject: mailing-list for TeXmacs Users

List archive

Re: Why isn't it possible to have two list items on the same line ?


Chronological Thread 
  • From: Basile Audoly <address@hidden>
  • To: <address@hidden>
  • Cc: texmacs-users <address@hidden>
  • Subject: Re: Why isn't it possible to have two list items on the same line ?
  • Date: Tue, 29 Dec 2020 20:12:56 +0100

Hi Nicolas,
This feature will be included in the next release. What follows is from a recent discussion on the list. 
Basile. 

Hi Pierre-Henri,

Each list environment (e.g. enumerate) comes with two variants
enumerate* and enumerate-continued.  For the moment, they are not
exposed in the interface though.  For the next release, I added
a style package prefix-enumerate with a global setting to make
what you want the default.

Best wishes, --Joris



On Fri, Nov 20, 2020 at 08:36:21AM +0100, Pierre-Henri Jondot wrote:
Hi,

A couple of weeks ago I wanted to try editing in TeXmacs a math test for my students, and I renounced it because of nested enumeration style and used latex instead.

TeXmacs gave me this :
1.

  a.

  b.

when I would have liked this instead :
1.a)

1.b)

Of course there might be times when I would want to write :
1. In this question, f is supposed to be… and we’ll show that…

then the question would be subdivided into subquestions but, most of the time, I just want the second presentation quoted before.

Of course I tried to find the answer in the documentation, and by experimenting. I am slowly learning, but despite having spent quite some time, I am not there yet.

From what I could understand, customizing enumerations appearance might be done with redefining render-list macro. Being such a newbie, it took me some time to understand how I would add this macro at the top of my document (entering source mode et al), and I struggled a bit with the inactive tag before finding the answer in the documentation, that is, I have to hit return key, and this inside the command itself to get rid of the inactive tag… (I know this might sound stupid to many of you, but I think it might be good to document the difficulties I am encountering while slowly getting accustomed to TeXmacs, hence the learning curve I wrote about…)

Introducing this as a preamble to my document :
<assign|render-list|<macro|body|<surround|||body>>> 
I obviously managed to change enumeration appearance (and of course, it is garbage with everything stuck to the left with no margin whatsoever), but I am a bit surprised to see that there still is a vertical separation between the top and the inside enumerate items, so it makes me think this might not be the solution I am looking for…

So am I in the right direction ? (I suppose not…)

Regards,

Pierre-Henri

Le 29 déc. 2020 à 16:24, <address@hidden> a écrit :


Dear Texmacs users,

Currently, when you insert a list environment, and then a second list environment within this one, an undeletable line-break is automatically inserted between the two :
<image.png>


I know that two lists beginning on the same line is not aesthetically pleasing, and can even be considered a typography heresy.
But sometimes, especially for exams or exercises you redact on the go, it is best to go straight to the point and not to add unnecessary introductory sentences only to fill that line-break. See this example :
<Same line list example_1.jpg>


Is it possible to supress this automatically added line ?

Thank you for your help,
Nicolas.



Archive powered by MHonArc 2.6.19.

Top of Page