bugGNU TeXmacs - Bugs: bug #43199, Defining a new kind of list

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #43199: Defining a new kind of list

Submitter:  Victor Porton <porton>
Submitted:  Thu 11 Sep 2014 07:47:57 PM UTC
   
 
Category:  None Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Closed
Release:  None Release:  1.99.2
Fixed Release:  1.99.12 Fixed Release: 
Keywords: 

Jump to the original submission

Sat 19 Oct 2019 02:54:20 AM UTC, comment #6: 

Hi Victor,

Your code is essentially correct, but you probably use it in an inappropriate way.  First of all, you save your code in a style file (say axioms-list.ts), use the 'source' style (for the style file) and include a line <use-package|generic> to make it a super-style of the 'generic' style.  Please look at the existing style files for further examples of this mechanism.

Assuming that you correctly created the axioms-list.ts style file (maybe do Tools -> Update -> Styles if you did not create your style using TeXmacs) and put it in the style file path (for instance, inside your personal ~/.TeXmacs/styles), you may now select axioms-list as your document style and use the axioms-list macro.  Notice that editing such lists is not as nice as for the standard lists.  In order for '\item return' to work as expected, please use revision 12377 or later.

I hereby close the bug.


Joris van der Hoeven <vdhoeven>
Group administrator
Wed 22 Mar 2017 10:31:29 PM UTC, comment #5: 

If I knew your error I would just write it down! I'm not evil.

I'm trying to help by giving you plausible cause(s) for the problem and, more importantly, a sensible way to try solving it, based on lists that actually work.

Philippe Joyez <pjoyez>
Group Member
Tue 21 Mar 2017 10:59:58 AM UTC, comment #4: 

What do you mean by the "second macro"? do you mean

<new-list|axioms-list|<value|aligned-dot-item>|<value|axiom-item>>

?

What exactly is my error?

Victor Porton <porton>
Tue 21 Mar 2017 07:42:48 AM UTC, comment #3: 

Yeah, right it does NOT seem to follow exactly the documentation (sorry for the confusion): you do not pass any arg to the second macro. However, I'm not that fluent with styles and I don't know if that is correct or not.

Styles are tricky, and it's not because you do not succeed in doing something that there is a bug in the program. One thing is sure, though: Texmacs' own lists styles are defined using new-list, so it is certainly not broken.

I would advise you to try modifying list styles right in std-list.ts or another package where new-list is known to work until you figure what is wrong with your attempt. My uneducated guess is that in your case the issue could be with aligned-dot-item because it strangely appears as <macro|name|name> if you inactivate the new-list; it could be a missing use-package issue.

If you figure it out, maybe you could suggest a piece of information worth adding to the documentation.

Philippe Joyez <pjoyez>
Group Member
Sun 19 Mar 2017 10:04:56 PM UTC, comment #2: 

I didn't mean that it works in previous versions.

You probably have a typo: You mean that it does NOT follow the documentation, right? What is my error then.

Yes, I do mean that it does not work as expected and it is a bug.

Victor Porton <porton>
Sun 19 Mar 2017 08:03:10 PM UTC, comment #1: 

Sorry to come to this after so long.

The report is not entirely clear. Do you mean it worked with earlier versions (the report mentions texmacs 1.0.6) and then broke somewhere, or you simply cannot get your new list to work as you would want?

In any case, what is posted does seem to follow the documentation for new-list in customize-list.en.tm, which could perhaps explain why it does not yield the expected result (Note that I have never used such things, so maybe it is nevertheless correct).


Philippe Joyez <pjoyez>
Group Member
Thu 11 Sep 2014 07:47:57 PM UTC, original submission:  

I attempt to make a list whose items look like $2^\circ$. The following package is supposed to do this. Try to use this package (also attached) with TeXmacs 1.99.2 and you'll see it does not work.

<TeXmacs|1.0.6>

<style|generic>

<\body>
  <assign|axiom-item|<macro|x|<with|mode|math|<arg|x><rsup|\<circ\>>>>>

  <new-list|axioms-list|<value|aligned-dot-item>|<value|axiom-item>>
</body>

<\initial>
  <\collection>
    <associate|language|american>
    <associate|preamble|true>
    <associate|src-special|normal>
  </collection>
</initial>

Victor Porton <porton>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #32074:  axioms.ts added by porton (345B - text/x-texmacs)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by pjoyez (Posted a comment)
  • -email is unavailable- added by porton (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-10-19 vdhoeven StatusNeed Info Fixed
        Assigned toNone vdhoeven
        Open/ClosedOpen Closed
        Fixed ReleaseNone 1.99.12
    2017-03-19 pjoyez StatusNone Need Info
    2014-09-11 porton Attached File- Added axioms.ts, #32074

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code