1

I defined a custom length for horizontal separation of subfloats through

\DeclareFloatSeparators{halfgap}{\hskip0.5\columnsep}

and use it on a float by float basis with

\thisfloatsetup{subfloatrowsep=halfgap}

but I also need to use such length in a \fpeval calculation, is it possible?

1
  • Sorry to have misled you! I comment instead of answer when I haven't tested the solution... Jun 10 at 12:32
3

You might say

\newcommand{\halfgap}{0.5\columnsep}
\DeclareFloatSeparators{halfgap}{\hspace{\halfgap}}

Then you can use \halfgap wherever you need to refer to the length.

Don't follow the suggestion to say

\newlength{\halfgap}
\setlength{\halfgap}{0.5\columnsep}

because this would fix the value as it is computed when processing the document preamble, whereas \columnsep might change later.

0

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.