LyX ⇒ Editing example environment
Editing example environment
--------------------------
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?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Editing example environment
Code: Select all
\documentclass{amsbook}
\usepackage{lipsum} % for autogenerating sample text
\theoremstyle{definition}
\newtheorem{defn}{Definition}[chapter]
\newenvironment{ruleddef}{\noindent\hrulefill\begin{defn}}{\end{defn}\noindent\hrulefill}
\begin{document}
\chapter{A chapter}
\lipsum[11-13]
\begin{ruleddef}
My first definition.
\end{ruleddef}
\lipsum[6-8]
\begin{ruleddef}
My second definition
\end{ruleddef}
\lipsum[1-3]
\end{document}
Editing example environment
Code: Select all
\singlerule{ruleddef}{\noindent\hrulefill\begin{defn}}{\end{defn}\noindent\hrulefill}
A huge thanks for a response!
Re: Editing example environment
Editing example environment
Code: Select all
\vspace{1pt}
\hrule
\vspace{15pt}
-
- Posts: 8
- Joined: Fri Dec 04, 2009 1:50 pm
Editing example environment
insert -> formatting -> horizontal line
or
insert -> formatting -> horizontal space -> horizontal fill
then place the example between the two lines?