Skip to Content.
Sympa Menu

texmacs-users - Re: TeXmacs: inserting an horizontal separator

Subject: mailing-list for TeXmacs Users

List archive

Re: TeXmacs: inserting an horizontal separator


Chronological Thread 
  • From: TeXmacs <address@hidden>
  • To: address@hidden
  • Subject: Re: TeXmacs: inserting an horizontal separator
  • Date: Tue, 2 Mar 2021 22:20:52 +0100

Hi,

There are several similar shortcuts that are handy for educational purposes:

- - - - -> horizontal rule
. . . . -> horizontal dots
. . tab -> underdotted text
_ _ tab -> underlined text
/ / tab -> deleted text

Etc.

Best wishes, --Joris


On Fri, Feb 12, 2021 at 08:36:59PM +0100, Giovanni Piredda wrote:
> 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
> > >
> >


  • Re: TeXmacs: inserting an horizontal separator, TeXmacs, 03/02/2021

Archive powered by MHonArc 2.6.19.

Top of Page