I'm trying to create a form for a role-playing game, and I'm having problems creating the effect I'm striving for.
My goal is something like this:*
Here's what I have (ignoring the incredibly convoluted messes that kinda got closer to my goal, but were incredibly fragile):
\documentclass{article}
\begin{document}
\rule{4cm}{1pt}
{\tiny Name}
\rule{4cm}{1pt}
{\tiny Class}
\rule{1cm}{1pt} Strength \rule{4cm}{1pt}
\rule{1cm}{1pt} Dexterity \rule{4cm}{1pt}
\end{document}
I want to control the width and thickness of the lines to be filled in. I'm using \rule in this example for this purpose. Being able to control the shade (to make it grey) would be a nice bonus.
The tiny labels ("Name" and "Class") should be nestled immediately under the line above them. I'll want a small gap that I can control, but certainly far less than in this example. \hrule seems to accomplish what I want; I can just add a \vspace for the desired gap. But I can't control the thickness of the hrule.
When a rule is on the same line as text ("Str" and "Dex"), the top of the rule should be positioned somewhere between where an underline would be, and the font's baseline. In this example it's too high, I believe because the bottom of the line is at the baseline.
I want to control the spacing between a line and whatever is above it. It certainly needs to be larger than in this example.
*The goal image was created in an image editor using the "what I have" image as a basis.





\macro{<name>}{<class>}{<strength>}{<dexterity>}(say) that you feed content...? – Werner Jan 16 '17 at 18:51