Jesteś w: Start / Przedsięwzięcia/Projects / TeX Pearls / 2005 Pearls / boguslaw-jackowski / bachotex2005-boguslaw-jackowski-pearl1.tex

bachotex2005-boguslaw-jackowski-pearl1.tex

TeX document icon bachotex2005-boguslaw-jackowski-pearl1.tex — TeX document, 1 KB

Zawartość pliku

%%% Bogus\l{}aw Jackowski: \local \par ameters
% Macro \local changes a value of a parameter locally
% (for one paragraph)

\let\restoreparams\empty
\def\local#1{% 
 \ifx\restoreparams\empty
  \let\oripar\par
  \def\par{\oripar \restoreparams \let\par\oripar \let\restoreparams\empty}%
 \fi
 \edef\restoreparams{\restoreparams#1\the#1}%
 #1}

% example

\local\hfuzz=2pt
\local\hsize=2in
\local\leftskip=1in
\local\parindent=0pt
Some paragraph that is to be different than others.
\par

Some normal paragraph.