Generalinserting elements based on layout placement

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
angelixd
Posts: 15
Joined: Thu Jul 26, 2007 4:53 pm

inserting elements based on layout placement

Post by angelixd »

Hello everyone,

I am trying to insert some elements in between groups, but only if they are not starting the page. Specifically, I would like to put a line between two pieces of text if they are both in the same column on the same page, so that it is clear that they are separate elements. I can imagine this problem might be fairly common, as one may wish to insert an hrule at the beginning of a section before a header, but not if the section starts a new page. Does anyone have any insight into this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

msgj
Posts: 9
Joined: Tue Nov 20, 2007 3:12 pm

inserting elements based on layout placement

Post by msgj »

So, you are placing your text in columns? Using the multicol package?

In most circumstances I believe it is better to leave the formatting to LaTeX to do automatically. In this case, if you start a new paragraph which happens to be at the top of a new column, I think LaTeX would not put in an extra line space. Or is the default formatting producing something which is unnatural?
Post Reply