LyXNo indentation after quote

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
johnny7
Posts: 21
Joined: Fri Oct 24, 2014 12:25 pm

No indentation after quote

Post by johnny7 »

Hello,

I want to redefine the short quote environment so that there appears no indentation in the standard text after the quote. (I also don't want the first quoted paragraph to be indented, as in the long quote environment.)
In my preamble I have already the following, to get single spaced quotes and to have proper gaps (I got this from a thread somewhere):
\let\oldquote\quote
\let\oldendquote\endquote
\renewenvironment{quote}
{\vspace{\dimexpr-12pt-\topsep+\baselineskip\relax}\begin{spacing}{1.2}\oldquote}
{\oldendquote\end{spacing}\vspace{\dimexpr-12pt-\topsep+\baselineskip\relax}}


Can someone adjust the code in order to remove the indentation after the quote? Thank you!

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

No indentation after quote

Post by Stefan Kottwitz »

Just don't make a paragraph break after the quote. Continue normal text. The paragraph break (or empty line) causes the indentation as with any new paragraph.

Alternatively, you could use the quoting package that provides configuration options, but perhaps it's not directly supported by LyX.

Stefan
LaTeX.org admin
johnny7
Posts: 21
Joined: Fri Oct 24, 2014 12:25 pm

No indentation after quote

Post by johnny7 »

Unfortunately, that's not possible with LyX, it always adds a blank line after quoting.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

No indentation after quote

Post by Ijon Tichy »

johnny7 wrote:Unfortunately, that's not possible with LyX, it always adds a blank line after quoting.
If this is really the case, you should report this bug. However you still can use ERT to add \begin{quote} and \end{quote} inside a paragraph (without an empty line before and after).
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply