Portál AbcLinuxu, 8. května 2025 21:20
{\setbox0\hbox{\includegraphics{figure.foo}}\ifdimem\wd0>\textwidth\then\includegraphics[width=\textwidth]{figure.foo}\else\unhbox0\fi}případně to zaobalit do makra, asi takhle
\def\figureNoWiderThanText#1{\setbox0\hbox{\includegraphics[#1} % etc
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.