| 
 |  
On Sat, 25 Jun 2011 16:59:42 +0300, Юра Полищук  <CyrTeX-ru@vsu.ru> wrote: 
 
Для рисунков использую как wrapfigure так и \includegraphics. 
Для удобства через такое макро- 
 
 
% Рисунок 
%   [1] -- Размер, доля ширины страницы 
% {2} -- Название файла без расширения (и Метка одновременно) 
%   [3] -- Пояснения к рисунку 
% {4} -- Подпись к рисунку 
%     Обтекаемый рисунок 
%   [5] -- Число строк для обтекания (высота) 
 
\newcommand{\tmp@FotoA}{\relax} 
\newcommand{\tmp@FotoB}{\centering} 
 
\newcommand{\foto}[2][1.0]{% 
\@ifnextchar[{\foto@ii[#1]{#2}}{\foto@ii[#1]{#2}[]}%] 
} 
\def\foto@ii[#1]#2[#3]#4{% 
\@ifnextchar[{\foto@iii[#1]{#2}[#3]{#4}}{\foto@iii[#1]{#2}[#3]{#4}[0]}%] 
} 
\def\foto@iii[#1]#2[#3]#4[#5]{% 
\def\tmpVarFOTO{#5}% 
\ifnum\tmpVarFOTO>0 
\begin{wrapfigure}[#5]{p}{#1\textwidth}% 
\centerline{\includegraphics[width=1\textwidth]{#2}}% 
{\centering\small\withoutlastpunct{#3}% 
\caption{\withoutlastpunct{#4}}% 
\label{#2}}% 
\end{wrapfigure}% 
\else% 
\begin{figure}[!h]% 
\tmp@FotoA 
\centerline{\includegraphics[width=#1\textwidth]{#2}}% 
{\tmp@FotoB\small\withoutlastpunct{#3} 
\caption{\withoutlastpunct{#4}}% 
\label{#2}}% 
\end{figure} 
\fi% 
} 
  
Спасибо. А можно несколько примеров использования. У меня что-то не хочет работать. 
================================================ 
CyrTeX-ru mailing list Archives and Information: 
https://info.vsu.ru/Lists/CyrTeX-ru/List.html 
 |  
 
 |