有人能告诉我如何画这样的东西吗?我想用类似的字体写一段引言,但不知道从哪里开始。
答案1
首先,你可以看看LaTeX 字体目录寻找类似的字体,也许使用pgfornament
用于绘制装饰物的软件包。(请注意,您必须pgfornament
从指示的链接手动下载软件包并复制到您的“项目文件夹”。)
另外我还提出了一个小解决方案,因此您可以按照这个方式开始。
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
% Zapf Chancery font: http://www.tug.dk/FontCatalogue/zapfchan/
\usepackage{chancery}
\usepackage[T1]{fontenc}
\usepackage{tikz}
% pgfornament package: http://altermundus.com/pages/tkz/ornament/index.html
\usepackage{pgfornament}
\usepackage[active, tightpage]{preview}
\usetikzlibrary{calc}
\PreviewEnvironment{tikzpicture}
\setlength{\PreviewBorder}{1mm}
\begin{document}
\begin{tikzpicture}
% some necessary lengths for the
% calculation of the length of the ornament
\newdimen\SWXcoord
\newdimen\SWYcoord
\newdimen\SEXcoord
\newdimen\SEYcoord
\newdimen\ornamentwidth
% text
\node[align=center,%
anchor=base,
inner xsep=3em,
inner ysep=0pt,
outer sep=0pt] (text-node) at (0, 0) {
Virgo
};
% calculate the width of the ornament
\path (text-node.south west);
\pgfgetlastxy{\SWXcoord}{\SWYcoord}
\path (text-node.south east);
\pgfgetlastxy{\SEXcoord}{\SEYcoord}
\ornamentwidth=\SEXcoord-\SWXcoord
% ornament
\node[align=center,
anchor=south,
inner sep=0pt,
outer sep=0pt,
yscale=-1,
xscale=-1] (ornament-node) at (0, 0) {
\pgfornament[width=\ornamentwidth]{79}
};
% line between the text and the ornament
\draw ($(ornament-node.south west) + (1em, 0)$) -- ($(ornament-node.south east) + (-1em, 0)$);
\end{tikzpicture}
\end{document}