As a follow-up to my previous question: In my table / tabular,
\cline{1-1}gives me the correct vertical position but not the right horizontal length .- In contrast,
\rule{\mycustomlength}{0.4pt}gives me the right (horizontal) length but not at the correct/desired vertical position.
How to solve? How to fine-tune? E.g. by adjusting
- either the lenght of
\cline - or the vertical position of
\rule(but without introducing uneven line spacing further down ! )
Edit
- Do not want to change tabular's column widths.
- Do want to apply my custom length derived from a (randomly chosen) string, e.g. "blaaaaaa".
Here's a generic/random MWE:
\documentclass[a4paper]{article}
\newlength{\mycustomlength}
\settowidth\mycustomlength{blaaaaaaaaa}
%\usepackage{booktabs}
\begin{document}
\begin{tabular}{ccc}
aaaaaa &bbbb &ccc\\
\cline{1-1}
%%%%%
% The full syntax of the command is
% \cmidrule[ wd ]( trim ){a–b}
% \cmidrule[\mylength]{1-1}
dddd &e &f \\
\rule{\mycustomlength}{0.4pt}
\\
dddd &e &f \\
\end{tabular}
\end{document}




\rule{\mylength}{0.4pt}. It should be placed along the baseline of the context where it is called from. But you're not even calling it in your example. So not sure how to help you. – A.Ellett Jul 07 '13 at 21:16\setlength{\mylength}{0.4pt}. The way you've written it, you're setting\mylengthto the length of0.4ptas text, not as a measurement. – A.Ellett Jul 07 '13 at 21:21\rule...is not the same thing as an\hruleor\cline. Thetabularenvironment sees the\rule...as something that inhabits a cell in your table. – A.Ellett Jul 07 '13 at 21:28