Re: itemize
vincent douce <[email protected]> Wed, 31 Jul 2024 21:29:26 +0200
| Newsgroups | gmane.editors.texmacs.user |
|---|---|
| Message-ID | <[email protected]> |
very fine Giovanni
thank you very much for your work
the shortcurt - tab works fine
but now, i dont really understand how i can edit this macro
a) my first question is : do you think all this work could be programmed into my-init-texmacs instead of ~/.TeXmacs.plugins ?
b) i dont really understand in your code (below) how i can customize the thing because :
i) if i type [- tab] and again and again i obtain a list with only the — symbol (minus) : how can i get what your code seems to programm (minus, dot, arrow…)
ii) how can i put the symbol i want behind the « itemize-perso » instruction at the end of your code ?
(texmacs-module (itemize-perso))
(menu-bind itemize-menu
(former)
---
("Perso" (make-tmlist 'itemize-perso)))
(kbd-map
("- tab" (make-tmlist 'itemize-perso)))
(define-group itemize-tag
itemize itemize-minus itemize-dot itemize-arrow itemize-perso)
thank you again for your time
Vincent
> Le 30 juil. 2024 à 06:30, Giovanni Piredda <[email protected]> a écrit :
>
> Hi again Vincent.
>
> Attached you will find two files. These two files, together, form a plugin; if you put them in the plugin folder of your .TeXmacs directory, you will be able to select the plugin from the list of packages and use the new list types.
>
> You have to add a subdirectory in the "plugin" folder; call it new-list-types. Inside this subdirectory add two subdirectories; one has to be called "packages" and the other has to be called "progs".
>
> The .ts file goes in the packages subdirectory, the .scm file into the progs subdirectory.
>
> After this, start TeXmacs and (if everything works ;-) ) you will find a new-list-types package in the list of packages. If you select that, you will have a list type with dashes and with shortcut "- tab".
>
> Please let me know if you are able to follow the above steps and if they work.
>
> Giovanni
>
> On 22/07/24 21:46, Giovanni Piredda wrote:
>> Hi Vincent,
>>
>> I think I can build an example for you but pls. give me a little time.
>>
>> There have been discussions on how to assign a shortcut to a macro but I have forgotten, I think that if I go through past messages I might figure it out but for a list it might be enough a shortcut for
>>
>> (make-tmlist 'itemize-perso)
>>
>> where itemize-perso is the name of your custom list. Please let me know if this makes sense.
>>
>> Separately, I might, but not immediately, write a version of the blog post on lists as a "recipe" and post that too.
>>
>> Giovanni
>>
>>
>> On 18/07/24 07:19, vincent douce wrote:
>>> hello Giovanni
>>> thanks for your answer
>>> it is very theorical
>>> if you had an example, just substitute the current symbols (i just verify, by default it is • then o then —) by any other symbol just to see how you do
>>> also the few i can understand on this page let me to a question :
>>> i am used (thanks to you) to modify my-init-texmacs
>>> so every newly creaty or newly launched TeXmacs document is concerned by my new shortcuts
>>> but with a macro how can i proceed : can i assigne a short cut to my customized list ?
>>> Vincent
>>>
>>>> Le 13 juil. 2024 à 16:56, Giovanni Piredda <[email protected]> a écrit :
>>>>
>>>> Please see if this blog post helps you:
>>>>
>>>> https://texmacs.github.io/notes/docs/new-lists.html
>>>>
>>>> Il 13.07.2024 16:54, vincent douce ha scritto:
>>>>> hello
>>>>> how can i customize the symboles for itemize ?
>>>>> at some level, for example, there is a — which can be ambiguous for typing maths
>>>>> i would like to replace it with something i like, maybe a little square…
>>>>> which file do i have to modify i this purpose ?
>>>>> Vincent
> <itemize-perso.scm><new-list-types.ts>