4

I am trying to scale both the font and the baseline of a text but only the font gets scaled.

This is the code I wrote:

{\typoscale[500/500] my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text} 

I obtain the same result with \lipsumtext:

{\typoscale[500/500] \lipsumtext[1]} 

However, for some reason, with \lipsum, both the font and the baseline are scaled as expected:

{\typoscale[500/500] \lipsum[1]} 

How can I make my text to have both the font and the baseline scaled?

Here is my example code as a whole:

\fontfam[Termes] {\bf Normal text} \lipsum[1] {\bf Scales font and baseline as expected:} {\typoscale[500/500] \lipsum[1]} {\bf Why doesn't it scale the baseline but only the font here ...?} {\typoscale[500/500] \lipsumtext[1]} {\bf ... and here?} {\typoscale[500/500] my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text my text} \bye 

enter image description here

1
  • 3
    in all tex formats the baseline is determined at the end of the paragraph so you need a blank line or \par before the closing } Commented Mar 22 at 8:53

1 Answer 1

4

The page 8 of the OpTeX manual says:

The commands for font size setting described in this section have local validity. If you put them into a group, the settings are lost when the group is finished. If you set something relevant with paragraph shape (baselineskip given by \typosize for example) then you must first finalize the paragraph before closing the group: {\typosize[12/14] ...⟨text of paragraph⟩... \par}.

The \lorem macro inserts \par after the generated text but \loremtext doesn't insert it (section 2.38 of the OpTeX manual).

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.