General ⇒ How to change the tickness of \hrulefill ?
How to change the tickness of \hrulefill ?
I want to change the tickness of \hrulefill to 0.01pt.
How to do that?
If it is impossible, I have another idea, i.e., using \rule{width}{0.01pt}.
Unfortunately, I don't know how to get the width of \hfill.
Thank you in advance.
regards,
Yuko.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
How to change the tickness of \hrulefill ?
the following command lets you control the height of the rule while having variable width, as the standard \hrulefill:
Code: Select all
\documentclass{minimal}
\makeatletter
\def\vhrulefill#1{\leavevmode\leaders\hrule\@height#1\hfill \kern\z@}
\makeatother
\begin{document}
text \vhrulefill{3pt} text
text \vhrulefill{10pt} text
text \vhrulefill{1pt} text
\end{document}
Re: How to change the tickness of \hrulefill ?
Perfectly done.