On Wednesday 31 January 2007 15:33, Jeremy C. Reed wrote:
> On Wed, 31 Jan 2007, Nick Hopton wrote:
> > > But your example doesn't show any section at the top or bottom of the
> > > page, so I can't tell if the hrule is not shown at top or bottom.
> > >
> > > For example, if your page 2 began with "DVD player (DVD)" section
> > > header at top, I don't want to see any horizontal rule at top of that
> > > page or at bottom of preceding page.
> >
> > [...]
> >
> > Okay, I think that if the PDF showed a horizontal rule in the wrong
> > place you'd have to go back into LyX and try deleting the offending
> > \hrule statement. This worked here in the example I tried, but of course
> > it might not *always* work. They don't call it 'Evil Red Text' for
> > nothing, I think.
>
> Okay. I was looking for an automatic solution as I have well over a 100
> sections (and over 200 pages) and the content changes daily -- so I can't
> manually redo this every day :)

Yeah, that would be crazy.

There's an ifthenelse package or something like that, to give you branching 
capabilities. From there, you need to be able to detect top of page. It must 
be possible, because IIRC some paragraphs don't indent if they're at the top 
of the page. Once you find how to read whether you're at the top of the page, 
you put the \hline in an if statement, and theoretically you've got what you 
want.

SteveT

 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/

(Legal Disclaimer) Follow these suggestions at your own risk.

Reply via email to