与此问题相关通过邮寄方式寄送邮票我看到这里有一个 LaTeX 代码关联:
% Envelope
% Author: Émeric Tourniaire
\documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{calc,decorations.pathmorphing,decorations.text}
\begin{document}
\begin{tikzpicture}
% Contour
\draw[fill=black!10] (2,-1.7) coordinate (a)
rectangle (7,1.7) coordinate (b) ;
% Upper pane
\draw [fill=black!10,rounded corners] (b) -- ++(120:1)
-- ($(a|-b)+(60:1)$) -- (a|-b) ;
% Orange decoration
\coordinate (c) at (3,0.5) ;
\coordinate (d) at (6,0.5) ;
\draw [orange] ($(c)+(0,-.2)$) -- (c) -- ++(0.2,0)
($(d)+(0,-.2)$) -- (d) -- ++(-0.2,0);
\foreach \i in {0,...,4}
\draw[orange] ({3+\i*0.25},-1) rectangle ++(0.2,0.3);
\draw[orange] (4.4,-1) -- (6,-1);
% White lines
\draw [white] (3,-0.5) -- (6,-0.5)
(3,0) -- (6,0);
% Writing
\draw (3,0) node [anchor=base west] {\textsc{Name} Firstname};
\draw (3,-0.5) node [anchor=base west] {Adress};
\draw (4.4,-1) node [anchor=base west] {City};
\foreach[count=\i] \zip in {1,2,3,4,5}
\draw ({3-0.125+\i*0.25},-0.85) node {\zip};
% Stamp
\begin{scope}
\clip (5,1.7) -- (7,1.7) -- (6.9,1) arc (0:360:4mm)
-- (7,0.5) -- (5,0.5) -- cycle ;
\foreach \i in {-3,...,3}
\draw[decorate,decoration={snake,amplitude=0.6mm,segment length=5mm}]
(5.2,1+\i/10) -- (6.5,1+\i/10);
\end{scope}
\draw (6.5,1) circle (4mm);
(6.5,1) circle (2.2mm);
\draw[decorate,decoration={text along path,
text={|\fontsize{3pt}{3pt}\selectfont| Postal stamp}}]
(6.25,1) arc (180:-180:2.5mm) ;
\end{tikzpicture}
\end{document}
我只选择了对我来说重要的部分:
\documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{calc,decorations.pathmorphing,decorations.text}
\begin{document}
\begin{tikzpicture}
% Stamp
\begin{scope}
\clip (5,1.7) -- (7,1.7) -- (6.9,1) arc (0:360:4mm)
-- (7,0.5) -- (5,0.5) -- cycle ;
\foreach \i in {-3,...,3}
\draw[decorate,decoration={snake,amplitude=0.6mm,segment length=5mm}]
(5.2,1+\i/10) -- (6.5,1+\i/10);
\end{scope}
\draw (6.5,1) circle (4mm);
(6.5,1) circle (2.2mm);
\draw[decorate,decoration={text along path,
text={|\fontsize{3pt}{3pt}\selectfont| Postal stamp}}]
(6.25,1) arc (180:-180:2.5mm) ;
\end{tikzpicture}
\end{document}
但使用纸属植物例如,我有这个错误:
Missing chars (,6,.,5,,,1,),c,i,r,c,l,e,(,2,.,2,m,m,),;
输出存在并且是这样的:
是否可以调整最后这段代码,使其具有这种结构的圆圈?我无法做到这一点。非常感谢您的帮助。
答案1
不确定这是否是您想要的,但这是使用第一个模板的第二个示例。我不得不更改测量值并简化代码,因为它太小,无法将所有文本包含在一个圆圈中。
还要注意的是,波浪线实际上经常出现在上面如果你在网上查看邮票的例子,就会发现。
输出
代码
\documentclass{letter}
\usepackage[left=.5in,top=0.15in,papersize={4.125in,9.5in},landscape,twoside=false]{geometry} % envelope size
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usepackage{amssymb} % for the \bigstar
\usepackage[datesep={.},style=dmyyyy]{datetime2} % for the date format
\setlength\parskip{0pt}
\pagestyle{empty}
\usetikzlibrary{calc,decorations.pathmorphing,decorations.text}
\begin{document}\noindent
\begin{tikzpicture}[remember picture, overlay, shift={(current page.north east)}, xshift=-3cm, yshift=-2.5cm]
\begin{scope}
\foreach \i in {-4,...,3}{
\draw[decorate,decoration={snake,amplitude=2mm,segment length=1.2cm}]
(-4.5,.4+\i/4) -- (-1,.4+\i/4);
}
\draw[fill=white] (0,0) circle (1.6cm);
\pgfmathsetmacro\rightind{pi*1.5}
\path[%
postaction={decorate,
decoration={%
text along path,
reverse path,
raise=-3pt,
text align=center,
text align={fit to path stretching spaces},
text={|\scshape\fontsize{6}{4}\selectfont\sffamily|Leonardo da vinci - v centenario della scomparsa}
}}] (-15:1.5cm) arc (-15:195:1.5cm);
\node[font=\fontsize{6}{4}\selectfont] at (200:1.45cm) {$\bigstar$};
\node[font=\fontsize{6}{4}\selectfont] at (-20:1.45cm) {$\bigstar$};
\path[%
postaction={decorate,
decoration={%
text along path,
raise=-.5pt,
text align={fit to path stretching spaces},
text={|\scshape\sffamily\fontsize{6}{4}\selectfont|10121 Spazio Filatelia Torino}
}}] (205:1.5cm) arc (205:335:1.5cm);
%;
%
\path[%
postaction={decorate,
decoration={%
text along path,
text align=center,
text={|\scshape\sffamily\fontsize{6}{4}\selectfont|\today}
}}] (180:1.2cm) arc (180:360:1.2cm);
\node[circle, draw, thick, font=\scriptsize\sffamily\bfseries, inner sep=1pt] at (225:1cm) {PT};
\end{scope}
\end{tikzpicture}%
FROM-NAME
FROM-STREET ADDRESS
FROM-CITY, STATE, \ ZIP
\vspace{1.5in}\large
\setlength\parindent{3.5in}
TO-NAME
TO-STREET ADDRESS
TO-CITY, STATE, \ ZIP
\end{document}