Skip to Content.
Sympa Menu

texmacs-users - Re: TeXmacs: how to stretch the spaces

Subject: mailing-list for TeXmacs Users

List archive

Re: TeXmacs: how to stretch the spaces


Chronological Thread 
  • From: Frank <address@hidden>
  • To: address@hidden
  • Subject: Re: TeXmacs: how to stretch the spaces
  • Date: Fri, 28 May 2021 16:47:36 +0200

Hi all,

I am not sure whether they correspond to the following functionality: for
example, I need to put two spaces, of length 2*l and 3*l like

x (2*l spaces) x (3*l spaces) x

Then the first x and the last x are at the left margin and the right margin,
and the l is calculated so that 5*l+(length of three x's) = 1par, for example.

This is realized by "x\hspace{\stretch2}x\hspace{\stretch3}x", if I am not
mistaken.

I am now trying to mimic some behavior of LaTeX because I plan to understand
whether it is possible to emulate this behavior in TeXmacs instead of
inserting a precompiled PDF from LaTeX. These kinds of stretches are not used
in main articles.

Best wishes,
Frank

On 5/28/21, TeXmacs wrote:
Hi Frank,

On Fri, May 28, 2021 at 04:18:14PM +0200, Frank wrote:
I wonder whether it is possible to stretch the horizontal and vertical spaces
with respect to a ratio, similar to \hfill and \vfill or \hspace{\stretch 2}
and \vspace{\stretch 3}, etc. in LaTeX?

All spaces are stretchable in TeXmacs;
you can specify a minimum, default, and maximum space.
There are also horizontal tabs.

Contrary to LaTeX, you can also have stretchable vertical spaces by the way,
which is useful for global page breaking (which LaTeX cannot do).

Best wishes, --Joris




Archive powered by MHonArc 2.6.19.

Top of Page