LyXMaking "Quote" style smaller

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
ednigma
Posts: 2
Joined: Sun Oct 26, 2008 4:42 pm

Making "Quote" style smaller

Post by ednigma »

Hi,

This is probably a noobish question, but how do I override the default "Quote" paragraph environment in LyX, and make all text of the "Quote" type smaller than the default Quote size?

I know that I can select each quote manually and change the font size, but that would be tedious and go against the whole idea of LaTeX/LyX.

Thank you.

- Ed

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

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Making "Quote" style smaller

Post by Juanjo »

A way to do that could be as follows: In Document > Settings > LaTeX Preamble, copy the lines

Code: Select all

\let\quoteOLD\quote
\def\quote{\quoteOLD\small}
and save. Instead of \small, you could use \footnotesize, \scriptsize or \tiny to get even smaller sizes.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Making "Quote" style smaller

Post by Stefan Kottwitz »

Hi,

Juanjo's code above will work, just a comment, it could be done without to define an additional macro \quoteOLD:

Code: Select all

\expandafter\def\expandafter\quote\expandafter{\quote\small}
Stefan
LaTeX.org admin
ednigma
Posts: 2
Joined: Sun Oct 26, 2008 4:42 pm

Re: Making "Quote" style smaller

Post by ednigma »

Thank you both very much! It works like a charm :-)
Post Reply