LaTeX forum ⇒ LyXMaking "Quote" style smaller

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

Making "Quote" style smaller

Postby ednigma » Sun Oct 26, 2008 4:56 pm

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

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

Postby Juanjo » Sun Oct 26, 2008 5:33 pm

A way to do that could be as follows: In Document > Settings > LaTeX Preamble, copy the lines
  1. \let\quoteOLD\quote
  2. \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: 9561
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Oct 26, 2008 5:38 pm

Hi,

Juanjo's code above will work, just a comment, it could be done without to define an additional macro \quoteOLD:
  1. \expandafter\def\expandafter\quote\expandafter{\quote\small}


Stefan
LaTeX.org admin

ednigma
Posts: 2
Joined: Sun Oct 26, 2008 4:42 pm

Postby ednigma » Sun Oct 26, 2008 8:29 pm

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


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 3 guests