# [texhax] environment with smaller typeface and narrower margins

Axel E. Retif axretif at igo.com.mx
Mon Sep 4 18:32:00 CEST 2006

El 9/4/06 10:33 AM, "Axel E. Retif" <axretif at igo.com.mx> escribió:

> El 9/4/06 8:25 AM, "Jonathan Myles" <jonathan.myles at cancer.org.uk> escribió:
>
>> Is there a way of defining an environment, {query} say,
>> so that I can write
>>
>> %%%%%%%%%%%%%
>> Bloggs et al explain that.....
>>
>> \begin{query}
>> is my understanding of this correct? Can we improve it by....
>> \end{query}
>>
>> They then go on ....
>>
>> %%%%%%%%%
>>
>> and my query will come out in a different typeface with narrower margins?
>
> I use this:
>
> \newenvironment{myquote}{\list{}{\setlength{\leftmargin}{1.5em}}{\setlength{
> \rightmargin}{0pt}}\relax\item\ignorespaces\fontsize{10}{12}\selectfont}{\un
> skip\endlist}%
>
> As you can see, I have 1.5em for left margin and 0pt for right margin ---you
> can change these to your needs, as well as the font size and baseline skip.

I tried and it didn't work with a right margin; this works:

\newenvironment{myquote}{\list{}{%
\setlength{\leftmargin}{1.5em}%
\setlength{\rightmargin}{1.5em}}%
\relax\item\ignorespaces\fontsize{10}{12}\selectfont}{\unskip\endlist}%

Best regards,

Axel