Re: line thickness

Hammer Hu <[email protected]>
Newsgroups gmane.editors.texmacs.user
Message-ID <[email protected]>
Vincent,

Of course you could do that. Use

(kbd-map
  (:mode in-text?)
  ("h l i n e" (insert '(with "font-size" ".4pt" (hrule)))))

if you want.

Best,
Hammer

---------------------------------------------
From: vincent douce <[email protected]>
Sent: 17.11.2023 16:53
To: texmacs-users <[email protected]>
Subject: Re: line thickness

Giovanni & Hammer

i can’t manage to concretize your solutions
i dont understand good how to type your codes
i am sorry…

what i have found is simply :
really-tiny | hrule
but i can’t find out how to write it precisely in my-init-texmacs
i have tried to « copy to Texmacs Scheme » such a very tiny hline
and « paste from TeXmacs Scheme » into my-init-temxacs
but the result does not fit i get something like <really-tiny|<hrule>> that is not the way things are written in my-init-texmacs

i think we’re not far from the solution

Vincent

> Le 16 nov. 2023 à 19:57, Hammer Hu <[email protected]> a écrit :
> 
> An easier non-solution:
> 
> <with|font-size|.4pt|<hrule>>
> 
> Start with backslash, this can be typed within seconds.
> 
> Best,
> Hammer
> 
> ---------------------------------------------
> From: vincent douce <[email protected]>
> Sent: 16.11.2023 10:42
> To: texmacs-users <[email protected]>
> Subject: Re: line thickness
> 
> thanks very much both of you Hammer and Giovanni
> 
> 
> 
> really efficient !
> 
> 
> 
> i have attached a screenshot :
> 
> on the left the thickness by default
> 
> on the middle thicnkess 0.5ln, exactly what i wanted
> 
> 
> 
> ![](cid:1701C8A7-EE94-4BFD-B597-A6E0E12693EF@lan)
> 
> thought, some questions please :
> 
> a) on the right side (third screenshot) i have put 0.2ln (and of course
> recorded my-init-texmacs and left the app and relaunched)
> 
> but curiously the thickness between 0.5ln (middle picture) and 0.2ln (right
> picture) seem not to be different : why ?
> 
> b) is it possible to parameter the same for horizontal lines (Hrule) ?
> 
> c) the link Giovanni gives leads to 12.4 of
> <https://www.texmacs.org/tmweb/documents/manuals/texmacs-manual.en.pdf> but i
> can’t find the document where you found the lines you cote : where did you
> find them ?
> 
> 
> 
> Vincent  
> 
> 
> 
>> Le 15 nov. 2023 à 20:34, Hammer Hu
>> <[[email protected]](mailto:[email protected])> a écrit :
>> 
>> 
>> 
>> 
>> Several lines behind  
>> 
>> (define cell-current-pen-width "1ln")  
>> 
>> there's a function `cell-set-pen-width'. It should work if you put in init
>> file:  
>> 
>> (use-modules (table table-edit))  
>> (cell-set-pen-width "0.5ln")  
>> 
>> Best,  
>> Hammer  
>> \---------------------------------------------  
>> From: Giovanni Piredda <[[email protected]](mailto:[email protected])>  
>> Sent: 15.11.2023 19:18  
>> To: [[email protected]](mailto:[email protected])  
>> Subject: Re: line thickness  
>> 
>> I have investigated a bit (following the ideas in  
>> <<https://texmacs.github.io/notes/docs/menu-shortcuts.html>>) and found out
>> in  
>> progs/table/table-edit.scm the definition  
>> 
>> (define cell-current-pen-width "1ln")  
>> 
>> This is local to the module. I tried it together with the with-module form  
>> shown in <<http://forum.texmacs.cn/t/advanced-user-tip-interacting-with-
>> scheme->  
>> modules/1497>, as  
>> 
>> 
>> 
>> (with-module (resolve-module '(table table-edit)) (define cell-current-pen-  
>> width "0.5ln"))  
>> 
>> 
>> 
>> It works in a Scheme session, but it does not yet work for me in the init  
>> file. For today I have to stop: perhaps someone has an idea?  
>> 
>> Giovanni  
>> 
>> 
>> 
>> On 15/11/23 16:43, vincent douce wrote:  
>> 
>> 
>> 
> 
>>> hello all  
>> 
>> is it possible in TeXmacs to have finer line that the lines by default ?  
>> 
>> 
>> ![]([cid:[email protected]](cid:[email protected]))  
>> 
>> thanks  
>> 
>> 
>> 
>> 
>> Vincent
> 
> 
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.