[comp.text.tex] Re: \hlines with PSTricks?

Denis Girou Denis.Girou at idris.fr
Tue Sep 2 22:34:51 CEST 1997


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

------- Start of forwarded message -------
From: Denis Girou <Denis.Girou at idris.fr>
Newsgroups: comp.text.tex
Subject: Re: \hlines with PSTricks?
Date: 02 Sep 1997 22:29:50 +0200

  >From: m9418 at abc.se (Jonas Bofjall)
  >Date: 18 Aug 1997 11:06:33 GMT

  Jonas.Bofjall> I want a pspicture to be put over a \hline. This would be easiest if there
  Jonas.Bofjall> was a command like \qline(0,5)(\paperwith,0), then I could use it to obtain
  Jonas.Bofjall> the horisontal line. Is this possible?

  Jonas.Bofjall> I have also been experimenting with including
  Jonas.Bofjall> \makebox[0pt]{\raisebox{5pt}{\hline}} but this does not work:
  Jonas.Bofjall>   ! Misplaced \noalign.
  Jonas.Bofjall>   \hline ->\noalign
  Jonas.Bofjall>                     {\ifnum 0=}\fi \hrule \@height \arrayrulewidth

  Jonas.Bofjall> but it would be easier to do with all PSTricks of course.

  It's easy, but you can't used directly a dimension register as parameter.
You must used a macro definition. The following do what you want:

\documentclass{article}

\usepackage{pstricks}

\newcommand{\PaperWidth}{\paperwidth}
\newcommand{\TextWidth}{\textwidth}

\begin{document}

\qline(0,0)(\PaperWidth,-2)

\qline(0,-3)(0.3\PaperWidth,-8)

\qline(0,-8)(0.3\TextWidth,-10)

\end{document}

Denis Girou
------- End of forwarded message -------

-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list