LaTeX forum ⇒ LyXNo indentation after quote

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

No indentation after quote

Postby johnny7 » Fri Jun 21, 2019 11:45 am

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!

User avatar
Stefan Kottwitz
Site Admin
Posts: 9440
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Jun 22, 2019 1:00 pm

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
Site admin

johnny7
Posts: 20
Joined: Fri Oct 24, 2014 12:25 pm

Postby johnny7 » Mon Jun 24, 2019 3:32 pm

Unfortunately, that's not possible with LyX, it always adds a blank line after quoting.

User avatar
Ijon Tichy
Posts: 92
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Tue Jun 25, 2019 7:43 am

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).


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 2 guests