Re: line thickness
vincent douce <[email protected]>
| Newsgroups | gmane.editors.texmacs.user |
|---|---|
| Message-ID | <[email protected]> |
Giovanni thanks i have not managed to adapt your code to my style of shortcut as : > (kbd-commands > (« = - = -" "" (begin (make-hybrid) (insert "tiny") (kbd-return) (make-hybrid) (insert "hrule") (kbd-return) (kbd-right)))) > > did not work i tried : > (kbd-map > (« = - = -" "" (begin (make-hybrid) (insert "tiny") (kbd-return) (make-hybrid) (insert "hrule") (kbd-return) (kbd-right)))) > that empeached TeXmacs to launch (i had to cancel this insctruction opening my-tini-texmacs with an other coding app) - - - - - - > I think it might be sensible to add manually a style file to the models in your "models" folder and to the files you are working on, and then let the automation add a style file to all of your new files. > why not, indeed… is it possible, by defining a style, to choose, for each new file i am creating, not only the thickness of hline, but also : - the style (i mean document>style that is by default to « generic ») - the style of theorems, propositions… (if i want italic, framed text (encadré)…) - the font (that would be the right time for me to endy understand how to install the font euclid) in this case, i could take time and courage to understand how it works… Vinz > > Le 18 nov. 2023 à 11:15, Giovanni Piredda <[email protected]> a écrit : > > > > On 18/11/23 07:56, vincent douce wrote: > >> « This will append a style file (in this case no-solutions-in-html, change this to the style file of your preference) to every new file. It will not operate on existing files. » >> but i never use new files >> most of the time i work on existing files >> but when i need a new file, i go to my folder « models » and i pick up an existing .tm file created by me in this folder > > > I think it might be sensible to add manually a style file to the models in your "models" folder and to the files you are working on, and then let the automation add a style file to all of your new files. > > If you, though, would like to have a new LaTeX-style command defined in your init-file, you could try > > > > (kbd-commands > ("t-hrule" "" (begin (make-hybrid) (insert "tiny") (kbd-return) (make-hybrid) (insert "hrule") (kbd-return) (kbd-right)))) > > > > which I find horrible but I think does what you want (type \t-hrule enter to get the thin horizontal rule) > > > > > > >