Subject: mailing-list for TeXmacs Users
List archive
From : Giovanni Piredda <address@hidden>- To: Ibrahima Fall <address@hidden>
- Cc: texmacs-users <address@hidden>
- Subject: Re: TeXmacs: inserting an horizontal separator
- Date: Fri, 12 Feb 2021 20:36:59 +0100
I realized that there is an important difference: the "-" four times (which is the hrule macro) draws the line till the margin (minus 5 mm), while the assignment I wrote (which is perhaps better written as a macro: <assign|minus-sep|<macro|<with|line-width|1.25ln|<line|<point|0par|0.50ex>|<point|1par|0.50ex>>>>>) draws a line of 1par length regardless from where the line begins (so it can go beyond the margin).
So the hrule macro, the one invoked pressing four times the "-" key, may be better. It can also be adapted, e.g. <assign|red-hrule|<macro|<with|color|red|<hrule>>>>, but probably to change line style and dashing one needs to change the hrule itself (which is in turn based on the datom macro).
G.
On 12.02.21 18:51, Ibrahima Fall wrote:
Yes Giovanni, It's quite the same except this is just a kind of shortcut.
best
Le ven. 12 févr. 2021 à 14:59, Giovanni Piredda <address@hidden <mailto:address@hidden>> a écrit :
This shortcut is very nice.
I figured out that it is either the same or almost the same as
<assign|minus-sep|<with|line-width|1.5ln|<line|<point|0par|0.5ex>|<point|1par|0.5ex>>>>
On 12.02.21 15:32, Ibrahima Fall wrote:
> Hi;
> Just type the "-" (minus sign or hyphen) four times.
> "----"
>
> best regards
>
> Le ven. 12 févr. 2021 à 14:02, Giovanni Piredda
<address@hidden <mailto:address@hidden>
> <mailto:address@hidden <mailto:address@hidden>>> a écrit :
>
> Waiting that someone else gives a better answer, you can use
this
> function
>
> (lambda ()(stree->tree '(line (point "0par" "0par") (point
"1par"
> "0par"))))
>
> which you can conveniently put in an extern macro and assign
to a
> "separator" macro:
>
> <assign|separator|<extern|(lambda ()(stree-\<gtr\>tree '(line
> (point "0par"
> "0par") (point "1par" "0par"))))>>
>
> G.
>
>
> On 12.02.21 14:53, Frank wrote:
> > Dear all,
> >
> > I wonder how to insert an horizontal separator. For
example, when I
> > prepare a set of problems, I want to put a separator so
that the
> > exercises in each group are closely related.
> >
> > Best,
> > Frank
>
- TeXmacs: inserting an horizontal separator, Frank, 02/12/2021
- Re: TeXmacs: inserting an horizontal separator, Giovanni Piredda, 02/12/2021
- Re: TeXmacs: inserting an horizontal separator, Giovanni Piredda, 02/12/2021
- Re: TeXmacs: inserting an horizontal separator, Ibrahima Fall, 02/12/2021
- Re: TeXmacs: inserting an horizontal separator, Frank, 02/12/2021
- Re: TeXmacs: inserting an horizontal separator, Giovanni Piredda, 02/12/2021
- Re: TeXmacs: inserting an horizontal separator, Ibrahima Fall, 02/12/2021
- Re: TeXmacs: inserting an horizontal separator, Giovanni Piredda, 02/12/2021
- Re: TeXmacs: inserting an horizontal separator, Ibrahima Fall, 02/12/2021
- Re: TeXmacs: inserting an horizontal separator, Giovanni Piredda, 02/12/2021
Archive powered by MHonArc 2.6.19.