更改 envlab 中的字體大小?

更改 envlab 中的字體大小?

我正在使用該envlab環境來建立和列印地址標籤。不幸的是,我有一些很長的名字要寫信給他們,但並不是所有的名字都適合標籤上。我想減小字體大小以進行補償。有誰知道如何做到這一點?我知道的標準技巧(放在\tiny文件的開頭,添加8pt到 的選項\documentclass{letter})似乎不起作用。

答案1

在這種情況下,為了能夠使用大小變更(例如 )\small,需要將它們包含在一個群組中。因此,下面的第二個範例\small Given Name Surname不會產生任何大小變化,但第三個範例{\small Given Name Surname}會產生任何大小變化:

在此輸入影像描述

\documentclass{letter}
\usepackage{envlab}
\SetLabel{63mm}{46mm}{10mm}{8mm}{3mm}{3}{6}

\begin{document}
\startlabels

\mlabel{}{%
    Given Name Surname \\
    Address line \\
    postalcode \\
    Country
}   
\mlabel{}{% This \small has no effect
    \small Given Name Surname \\
    Address line \\
    postalcode \\
    Country
}   
\mlabel{}{% This \small has as effect
    {\small Given Name Surname} \\
    Address line \\
    postalcode \\
    Country
}   
\end{document}

相關內容