2

I am customizing a scrlttr2 template. I'd like to use some pseudo-length values to define other ones.

For example, I defined \@setplength{firstheadhpos}{2.10cm} and I'd like to define the pseudo-lengthfirstfoothpos equal to firstheadhpos.

Of course, I could use \@setplength{firstfoothpos}{2.10cm}, but it is not robust. And neither \@setplength{firstfoothpos}{\value{firstheadhpos}} nor \@setplength{firstfoothpos}{\firstheadhpos} works.

Question: How to get the value of a pseudo-length?

1
  • PS: \@getplength{<pseudo-length>} is not defined neither.
    – ebosi
    Mar 30, 2017 at 15:30

1 Answer 1

3

As you didn't provide a MWE, I only can guess that you are looking for the command \useplength{name}. Does this work?:

\@setplength{firstfoothpos}{\useplength{firstheadhpos}}
1
  • Yes indeed. I didn't add a MWE since I though this was a 'trivial' question... and the fact I couldn't find the right macro also made me too lazy. My bad.
    – ebosi
    Mar 30, 2017 at 15:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .