某些 LaTeX 包中是否有“螺丝感”字形?

某些 LaTeX 包中是否有“螺丝感”字形?

我想知道是否有任何 LaTeX 包为两种螺丝感提供了字形,例如:

右旋螺旋感左旋螺旋感

(比较 Schouten 的§II.8:物理学家的张量分析,Dover 第 2 版,1989 年)。

我搜索过全面的 LaTeX 符号列表搜索“螺丝”、“右手”、“gyr”以及类似的,但什么也没找到。

或者有人有什么建议可以让这些符号更容易使用吗?目前我使用的宏\dextro定义为

\newcommand*{\dextro}{\includegraphics[totalheight=\heightof{O}]{screw-sense_posi.png}}

\laevo替代品类似。

谢谢你!

答案1

使用 TikZlibrary 即可实现自行解决hobby

如果您更喜欢圆形尾部,您可以添加\filldraw[black] (.1,.85) circle (1.8pt);到的定义中\mydx,正如JuoleV指出的那样,或者使用像中的适当节点\jdx

为了创建间隙,您可以使用选项[blank=soft],就像在中一样\gapdx

\documentclass{article}
\usepackage{calc}
\usepackage{tikz}
\usetikzlibrary{hobby, arrows.meta,bending}

\newcommand*{\dextro}{\includegraphics[totalheight=\heightof{O}]{screw-sense_posi.png}}

\newcommand*{\laevo}{\includegraphics[totalheight=\heightof{O}]{screw-sense_neg.png}}

\newcommand*{\mydx}[1][1]{%
\begin{tikzpicture}[baseline, xscale=#1]
\draw[black, -{To[angle=90:.3cm 1,length=9mm, flex'=.86]}, line width=4pt] (.1,.85) to [curve through={(.79,.18) .. (1.45,.7) .. (1.2,1.6) .. (.9,1.6) .. (1.9,1.6)}]
(2.1,2.5);
\end{tikzpicture}}

\newcommand*{\jdx}[1][1]{%
\begin{tikzpicture}[baseline, xscale=#1]
\draw[black, -{To[angle=90:.3cm 1,length=9mm, flex'=.86]}, line width=4pt] (.1,.85) to [curve through={(.79,.18) .. (1.45,.7) .. (1.2,1.6) .. (.9,1.6) .. (1.9,1.6)}]
(2.1,2.5);
\node[circle, minimum width=4pt, fill=black,
  inner sep=0pt, outer sep=0pt] at (.1,.85) {};
\end{tikzpicture}}

\newcommand*{\gapdx}[1][1]{%
\begin{tikzpicture}[baseline, xscale=#1]
\draw[black, -{To[angle=90:.3cm 1,length=9mm, flex'=.86]}, line width=4pt] (.1,.85) to [curve through={(.79,.18) .. (1.45,.7) 
(1.48,.8) .. 
([blank=soft]1.43,1.4)
.. (1.2,1.6) .. (.9,1.6) .. (1.9,1.6)}]
(2.1,2.5);
\node[circle, minimum width=4pt, fill=black,
  inner sep=0pt, outer sep=0pt] at (.1,.85) {};
\end{tikzpicture}}


\newcommand*{\mydextro}{\resizebox{!}{\heightof{O}}{\mydx}}

\newcommand*{\mylaevo}{\resizebox{!}{\heightof{O}}{\mydx[-1]}}

\newcommand*{\jdextro}{\resizebox{!}{\heightof{O}}{\jdx}}

\newcommand*{\jlaevo}{\resizebox{!}{\heightof{O}}{\jdx[-1]}}

\newcommand*{\gapdextro}{\resizebox{!}{\heightof{O}}{\gapdx}}

\newcommand*{\gaplaevo}{\resizebox{!}{\heightof{O}}{\gapdx[-1]}}

\begin{document}
Your PNGs: 

screw-sense\_posi.png \includegraphics
{screw-sense_posi.png} 
screw-sense\_neg.png \includegraphics
{screw-sense_neg.png}

\vspace{10pt}My TikZpictures: 

\verb|\mydx|: \mydx
\verb|\mydx[-1]|: \mydx[-1]

\vspace{10pt}Your commands:
\verb|\dextro|: \dextro ~
\verb|\laevo|: \laevo

\vspace{10pt}My commands:
\verb|\mydextro|: \mydextro ~
\verb|\mylaevo|: \mylaevo

\vspace{10pt}Or, if you prefer a rounded tail:

\verb|\jdx|: \jdx
\verb|\jdx[-1]|: \jdx[-1]

\vspace{10pt}\verb|\jdextro|: \jdextro ~
\verb|\jlaevo|: \jlaevo

With gap:
\verb|\gapdx|: \gapdx
\verb|\gapdx[-1]|: \gapdx[-1]

\vspace{10pt}\verb|\gapdextro|: \gapdextro ~
\verb|\gaplaevo|: \gaplaevo

\end{document}

在此处输入图片描述

相关内容