答案1
- 这是一个简单的代码示例。
- 你是这个意思吗?
- 该代码远非最佳,但也许它可以帮助您提出更具体的问题。
- 我不知道是否
baseline=(char.base)
比baseline=0
(见这里例如)。
\documentclass{article}
\usepackage{tikz}
% Code is loosely based on https://tex.stackexchange.com/questions/295360/
% DRM --> Dungeon Master Runes
% 'em' is a length unit in LaTeX that is relative to the current font.
% See https://tex.stackexchange.com/questions/8260/ for (much) more information
\newcommand\DMRAn{% <-- needed
\tikz[x=0.75em,y=0.75em,baseline=0]
\draw(0,0)--(0,1)--(0.7,0.5)(0,0.5)--(0.7,0.0);% <-- needed
}
\newcommand\DMRBet{% <-- needed
\tikz[x=0.75em,y=0.75em,baseline=0]
\draw(0,0)--(0,1)--(1,0.75)--(0,0.5)--(1,0.25)--(0,0);% <-- needed
}
\begin{document}
ABC \DMRAn\ DEF \DMRBet\
\end{document}
也许你可以稍后将其与模拟手绘线条看起来像手写的:)。