New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using box dimensions in fp expressions #83
Comments
In particular, this issue forbids the This means that we should only apply |
Fix at the coffin level |
@blefloch Seems to me there are two slightly different issues here. If you look at \cs_new_protected:Npn \@@_design_names:N #1
{
\dim_set:Nn \l_@@_height_dim { \coffin_ht:N #1 }
\dim_set:Nn \l_@@_depth_dim { \coffin_dp:N #1 }
\dim_set:Nn \l_@@_width_dim { \coffin_wd:N #1 }
\dim_set:Nn \l_@@_totalheight_dim
{ \l_@@_height_dim + \l_@@_depth_dim }
\cs_set_eq:NN \Height \l_@@_height_dim
\cs_set_eq:NN \Depth \l_@@_depth_dim
\cs_set_eq:NN \Width \l_@@_width_dim
\cs_set_eq:NN \TotalHeight \l_@@_totalheight_dim
} which means As an artificial example that \documentclass{article}
\usepackage{expl3}
\usepackage{xcoffins}
\NewCoffin\CoffinA
\begin{document}
\SetHorizontalCoffin\CoffinA{\rule{10pt}{10pt}}
\ExplSyntaxOn
\SetHorizontalPole\CoffinA{a}
{\fp_to_dim:n{0.666\Width}}
\ShowCoffinStructure\CoffinA
\end{document} gives
|
Box dimensions can be used directly in dimension expressions but not floating point expressions.
The text was updated successfully, but these errors were encountered: