Great forum here, I am a newb so bear with me. I am trying to figure out how to add a horizontal rule before and after the example environment (in the book (AMS) class). So ideally it would look something like
--------------------------
Example 1.1
blah blah
blah blah
--------------------------
I have figured that I could probably use the preamble to modify the environment, but after that I don't know what would need to be done to get it to work. Can anyone give a suggestion?
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
I'd probably just define a custom environment using \newenvironment that added a call to \hrulefill (or \noindent\hrulefill) both before and after a call to the regular definition environment. E.g.:
I think I know what you are saying. Define a new environment that just wraps another environment inside the hrule's? I tried that by just blindly modifying what you wrote and pasting only
Sorry, I didn't realize this was in the LyX subforum. My answer was assuming that you were using coding LaTeX directly. I don't know anything about LyX. Maybe someone else can help.
No problem. I have done some more hunting about this and have found out that the machinery that is doing all of this nice formatting is an .inc file. It sets the styles and all that. I am not sure how they all work but I'll try to test some stuff out. I really would just like to have lyx automatically throw in some lyx code before and after the example, something like this ...
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