使用 microtype 或其他软件包缩小段落

使用 microtype 或其他软件包缩小段落

我需要一点帮助来设置微类型包:我需要缩小页脚中的一个句子(而不是整个文档)(我使用 fancyhdr 作为页面样式)。

文档对我来说有点复杂(http://ctan.mirror.garr.it/mirrors/CTAN/macros/latex/contrib/microtype/microtype.pdf),所以我找不到如何完成我的任务。

我使用 pdflatex

先感谢您

\fancyfoot[C]{
\begin{tikzpicture}[overlay, remember picture]%
    \fill[gray] (current page.south west) rectangle ($(current page.south east)+(0,.5in)$);
    \node[anchor=south west, text=white, font=\normalsize, minimum size=.5in] at (current page.south west) {\thepage};
    \node[anchor=south east, text=white, font=\normalsize, minimum size=.5in, inner xsep=5mm] at (current page.south east) {%
    A VERY LONG SENTENCE THAT NEED TO BE SHRINKED HERE!!!%
};
\end{tikzpicture}
}

正如 Gustavo Mezzetti 所建议的,更好的软件包是带有 的图形\resizebox{...}{\height}{Some text}。我会尝试一下(谢谢)


更新:resizebox 运行正常。请相应更新代码。

\fancyfoot[C]{
\begin{tikzpicture}[overlay, remember picture]%
    \fill[gray] (current page.south west) rectangle ($(current page.south east)+(0,.5in)$);
    \node[anchor=south west, text=white, font=\normalsize, minimum size=.5in] at (current page.south west) {\thepage};
    \node[anchor=south east, text=white, font=\normalsize, minimum size=.5in, inner xsep=5mm] at (current page.south east) {%
    \resizebox{0.8\textwidth}{10pt}{A VERY LONG SENTENCE THAT NEED TO BE SHRINKED HERE!!!}%
};
\end{tikzpicture}
}

相关内容