On Thu, Nov 30, 2000 at 11:47:00AM +0100, Matej Cepl wrote:
> Hi,
> 
> trying to create sectino with line. What I mean is something
> like this
> 
> Section title_______________________________ (to the right edge)
> 

> \usepackage{titlesec}
> \titleformat{\section}[hang]
>      {\ttfamily\huge\bfseries}
>      {}{}{\hrulefill}

Use:

\usepackage{titlesec}
\newcommand{\hruleafter}[1]{#1\hrulefill}
\titleformat{\section}[hang]
    {\ttfamily\huge\bfseries}
        {}{0ex}{\hruleafter}

Reply via email to