专业浮雕印章

专业浮雕印章

与我之前的问题相关邮票的特别废止(即取消)采用意大利格式和时区的两行日期时间我创建了另一个 MWE,以便拥有一些不同的选择和更专业的音色。

\documentclass[12pt,margin=3mm,italian]{standalone}
\usepackage{newtxtext}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage[useregional=numeric,showseconds=true,showzone=false]{datetime2}
\usepackage{fontawesome5}

\begin{document}
\begin{tikzpicture}
\draw (0,0) node[minimum size=4cm,
                 draw=black,
                 circle,
                 line width=.5mm, 
                 text width=3cm,
                 align=center] 
                 {\large \bfseries \mbox{\DTMtoday} \DTMcurrenttime};
\draw [black,line width=.35mm] (0,0) circle[radius=1.75cm];
                 {\large \bfseries \mbox{\DTMtoday} \DTMcurrenttime};            
\node at (0,1) (A) {\textcolor{Green}{\large Visto}};
\node at (0,-1) (B) {\small \textsc{Non approvato}};
\end{tikzpicture}
\end{document}

在此处输入图片描述

我会

https://i1.wp.com/images-na.ssl-images-amazon.com/images/I/61aM4kg3x2L.AC_SL1000.jpg?resize=840%2C840&ssl=1

浮雕的圆周,删除中间部分的“non approvato”和“visto”,并将其放在两个圆周之间。

答案1

https://tex.stackexchange.com/a/545988/87678,可能会得到与图片略微相似的效果。您可以进一步调整各种设置以符合您的喜好。

但是编译起来相当慢!使用 ImageMagick 编写脚本可能更快、更简单、更美观。

\documentclass[italian]{standalone}
\usepackage[useregional=numeric,showseconds=true,showzone=false]{datetime2}
\usepackage{tikz}
\usetikzlibrary{decorations.text, shadows.blur}
\pgfmathsetmacro{\shadowangle}{132}
\newlength{\shadowdistance}
\pgfmathsetlength{\shadowdistance}{0.3pt}
\pgfmathsetmacro{\shadowopacity}{0.7}
\pgfmathsetmacro{\shadowspread}{0.02}
\pgfmathsetmacro{\shadowsize}{0}
\pgfmathtruncatemacro{\totshadow}{100}
\begin{document}
\begin{tikzpicture}[
    datetime/.style={
      align=center,
      font=\scriptsize\sffamily\bfseries
    },
    pathtext/.style={
      opacity={\shadowopacity/\totshadow},
      shift={({\shadowangle-180}:\shadowdistance)},
      scale={1+\shadowsize}
    },
    pathblur/.style={
      fill=white,
      blur shadow={%
        shadow xshift=0.3pt,
        shadow yshift=-0.3pt,
        shadow scale=1,
        shadow blur radius=1.5pt
      }
    }
  ]
  \path [use as bounding box] (-45pt,-45pt) rectangle (45pt,45pt);
  \begin{scope}[even odd rule]
    \path [pathblur] (0,0) circle (26pt) circle (24pt); 
    \path [pathblur] (0,0) circle (41pt) circle (39pt); 
  \end{scope}
  \foreach \nshadow [evaluate=\nshadow as \angshadow using \nshadow/\totshadow*360] in {1,...,\totshadow}{
    \path[pathtext,
      rotate=-90,
      postaction={
        decorate,
        decoration={
          transform={shift=(\angshadow:\shadowspread)},
          text effects along path,
          text effects/every character/.style={text along path},
          text effects/font = {\sffamily\bfseries},
          text align/align=center,
          raise=-7pt, 
          reverse path=true,
          text={VISTO}
        }
      }
    ] (0,0) circle (36pt);}
  \path[
      rotate=-90,
      postaction={
        decorate,
        decoration={
          text effects along path,
          text effects/every character/.style={text along path},
          text effects/font = {\sffamily\bfseries},
          text align/align=center,
          raise=-7pt, 
          reverse path=true,
          text effects/color=white,
          text={VISTO}
        }
      }
    ] (0,0) circle (36pt);
  \foreach \nshadow [evaluate=\nshadow as \angshadow using \nshadow/\totshadow*360] in {1,...,\totshadow}{
    \path[pathtext,
      rotate=90,
      postaction={
        decorate,
        decoration={
          transform={shift=(\angshadow:\shadowspread)},
          text effects along path,
          text effects/every character/.style={text along path},
          text effects/font = {\sffamily\bfseries},
          text align/align=center,
          text={NON APPROVATO}
        }
      }
    ] (0,0) circle (36pt);}
  \path[
      rotate=90,
      postaction={
        decorate,
        decoration={
          text effects along path,
          text effects/every character/.style={text along path},
          text effects/font = {\sffamily\bfseries},
          text align/align=center,
          text effects/color=white,
          text={NON APPROVATO}
        }
      }
    ] (0,0) circle (36pt);
  \path[pathtext]
    foreach \nshadow [evaluate=\nshadow as \angshadow using \nshadow/\totshadow*360] in {1,...,\totshadow}
      {node [datetime] at (\angshadow:\shadowspread) {\DTMtoday\\\DTMcurrenttime}};
  \node [datetime, text=white] {\DTMtoday\\\DTMcurrenttime};
  \path [pathblur] (25:32.5pt) circle (2pt); 
  \path [pathblur] (155:32.5pt) circle (2pt); 
\end{tikzpicture}
\end{document}

输出

相关内容