1

This is a bit of a strange one, but I want to be able to base the values of parskip and \parindent on the other (so I can change one and it will change both). I have a way of making them both the same:

\setlength{\parskip}{6pt} \setlength{\parindent}{\parskip}

But that looks a bit odd. I want to be able to make \parindent a multiple of \parskip. I tried something like:

\setlength{\parskip}{6pt} \setlength{\parindent}{2*\parskip}

But that didn't work.

Could someone help me please?

  • 3
    It should be 2\parskip; but are you really sure you want both paragraph spacing and indent? – egreg May 14 '17 at 11:11
  • Ah. Thanks, I thought it would be easy. And yes :) – JSharpee May 14 '17 at 11:22
  • why would you want the vertical (and stretchy) parskip value to be the same as the horizontal and not stretchy parindent (or ever have both of them non-zero)? – David Carlisle May 14 '17 at 13:24
  • 1
    Note that lengths, unlike \defs, are set at the time of definition, not at the time of invocation. See tex.stackexchange.com/questions/123443/… – Steven B. Segletes May 14 '17 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.