如何使用 ticket.sty 更改票证大小?

如何使用 ticket.sty 更改票证大小?

我似乎无法在 LaTeX 中更改票证大小。

%%%%
%
% ticket.sty example file for a pin for conferences
%
%%%%
% use the corresponding paper size for your ticket definition
%\hoffset=-16.2mm
%\voffset=-6.6mm

\documentclass[a4paper,10pt]{letter}

% load ticket.sty with the appropriate ticket definition
\usepackage[freepin,crossmark]{ticket}
\unitlength=1mm
\ticketSize{77}{45}

我尝试了 \ticketSize{77}{45) 选项的几个不同位置。
我在这里找到了这个包:自动创建活动名牌.
任何帮助都将不胜感激 -- 谢谢!

答案1

ticket软件包似乎有太多用户可配置的参数。例如,如果您使用 更改票证大小,则\ticketSize{97}{65}还必须相应地增加 的线条尺寸,\put( 5, 13){\line(1,0){90}}也许还要增加徽标,以便\put(80, 3){\includegraphics[..]{...}完美地适应所有内容。以下是我为扩大整个图片所做的操作:

\documentclass[a5paper,10pt]{letter}

% load ticket.sty with the appropriate ticket definition
\usepackage[freepin,crossmark]{ticket}


\unitlength=1mm
\ticketSize{97}{65}

% load misc stuff
\usepackage{graphicx}

% make your default ticket. \ticketdefault is somewhat like a background
\renewcommand{\ticketdefault}{%
\put(80,  3){\includegraphics[width=14mm]{ifmlogoc}}
\put( 5, 13){\line(1,0){90}}
\put( 7,  9){\footnotesize Annual General Meeting (AGM)}
\put( 7,  6){\footnotesize Eden Gardens, Kolkata}
\put( 7,  3){\footnotesize January 21, 2019}
}

% now what do you like to put in your ticket
\newcommand{\confpin}[2]{\ticket{%
    \put(49,42){\makebox[0mm]{\bfseries\LARGE #1}}
    \put(49,32){\makebox[0mm]{\bfseries\Large #2}}%
}}


%% the pins for the partipiciants ... ;-)
%% you can generate this part from a database!
\begin{document}
 \sffamily
  \confpin{Ritwik Ghatak}{India}
  \confpin{Ingmar Bergman}{Sweden}
\end{document}

从而产生输出:

在此处输入图片描述

与以下输出相反原始设置两种纸张尺寸便于a5paper比较:

在此处输入图片描述

相关内容