Re: Problem with Horizontal line exceeding page margins

"Michael Koehmstedt, RenPet" <[email protected]>
Newsgroups gmane.comp.type-setting.lout
Message-ID <CAJuzuAFLuvBAE8vK8QJ9Nuu98_QKKFzU4ymToztCHqgU-f9hPw@mail.gmail.com>
I imagine nothing is wrong with it :)

I just wasn't aware of that command. I only started using lout a couple of
days ago and I got that definition of HLine from the Expert's Guide. I now
see that @FullWidthRule is mentioned once in the User's Guide, but it's
buried in an unrelated section on appendixes.

Thanks Mark, I will try this new command.

Michael


On Mon, Apr 30, 2012 at 11:50 PM, Mark Summerfield <[email protected]> wrote:

> Hi Michael,
>
> What's wrong with using @FullWidthRule ?
>
> On Mon, 30 Apr 2012 18:03:06 -0700
> "Michael Koehmstedt, RenPet" <[email protected]> wrote:
> > Hello everyone,
> >
> > I am having a problem drawing a simple horizontal line. All I'd like
> > is a slim horizontal line that goes from left margin to right margin.
> >
> > Here is the relevant code:
> >
> > def @HLine
> >   left size
> > {
> > @BackEnd @Case {
> >   PDF @Yield {
> >     { 0 0 m __xsize 0 l __mul(size, __pt) w S } @Graphic {}
> >   }
> > }
> > }
> >
> > As you can see I am using the PDF back-end.
> >
> > When I look at the PDF in Adobe Acrobat, it looks fine. However, when
> > I print the document, the right end of the horizontal line exceeds
> > the right margin, by a significant amount, around half an inch.
> >
> > Anyone have any ideas? I know the PDF's graphic capabilities are
> > inferior to PostScript, but I have to use PDF. Hopefully as something
> > as simple as a basic horizontal line is possible.
> >
> > Regards,
> > Michael Koehmstedt
>
>
>
> --
> Mark Summerfield, Qtrac Ltd, www.qtrac.eu
>    C++, Python, Qt, PyQt - training and consultancy
>        "Advanced Qt Programming" - ISBN 0321635906
>            http://www.qtrac.eu/aqpbook.html
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.