这会很棒
- 仅使用
\medcirc
和\circledtimes
来自pxfonts
或 - 用其他技术设计类似的符号。
来自的符号pxfonts
非常好,但是当我连接包时,文本中的所有符号都被来自的符号替换pxfonts
。
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{pxfonts}
\begin{document}
1. Only medcirc and cirledtimes symbols are required from pxfonts: \par
$\cdot^{\medcirc}$ and $\cdot^{\circledtimes}$.\par
2. The problem is that all symbols are substituted by pxfonts package,
for example, just look at the text and formula $g(f)=a$.
\end{document}
也有类似的问题pxfonts
,但似乎没有解决。也许用其他方式设计符号更好。
答案1
如果您只想使用这两个符号而不pxfonts
加载它,请在序言中添加以下几行:
\DeclareSymbolFont{symbolsC}{U}{pxsyc}{m}{n}
\SetSymbolFont{symbolsC}{bold}{U}{pxsyc}{bx}{n}
\DeclareFontSubstitution{U}{pxsyc}{m}{n}
\DeclareMathSymbol{\medcirc}{\mathbin}{symbolsC}{7}
\DeclareSymbolFont{symbolsZ}{OMS}{pxsy}{m}{n}
\SetSymbolFont{symbolsZ}{bold}{OMS}{pxsy}{bx}{n}
\DeclareFontSubstitution{OMS}{pxsy}{m}{n}
\DeclareMathSymbol{\circledtimes}{\mathbin}{symbolsZ}{10}
梅威瑟:
\documentclass{article}
\usepackage[T1]{fontenc}
%\usepackage{pxfonts}
\DeclareSymbolFont{symbolsC}{U}{pxsyc}{m}{n}
\SetSymbolFont{symbolsC}{bold}{U}{pxsyc}{bx}{n}
\DeclareFontSubstitution{U}{pxsyc}{m}{n}
\DeclareMathSymbol{\medcirc}{\mathbin}{symbolsC}{7}
\DeclareSymbolFont{symbolsZ}{OMS}{pxsy}{m}{n}
\SetSymbolFont{symbolsZ}{bold}{OMS}{pxsy}{bx}{n}
\DeclareFontSubstitution{OMS}{pxsy}{m}{n}
\DeclareMathSymbol{\circledtimes}{\mathbin}{symbolsZ}{10}
\begin{document}
1. Only medcirc and cirledtimes symbols are required from pxfonts: \par
$\cdot^{\medcirc}$ and $\cdot^{\circledtimes}$.\par
2. The problem is that all symbols are substituted by pxfonts package,
for example, just look at the text and formula $g(f)=a$.
\end{document}
输出:
答案2
既然您特别提到使用其他技术设计符号,那么这里有一个替代方案。我导入了 Karl 接受的解决方案,只是为了展示两者的比较。
在目前的解决方案中,我使用堆栈来覆盖字形,并使用scalerel
包来允许事物扩展到不同的数学样式。
\documentclass{article}
%\usepackage{pxfonts}
%Karls import font solution, for comparison
\DeclareSymbolFont{symbolsC}{U}{pxsyc}{m}{n}
\SetSymbolFont{symbolsC}{bold}{U}{pxsyc}{bx}{n}
\DeclareFontSubstitution{U}{pxsyc}{m}{n}
\DeclareMathSymbol{\medcirc}{\mathbin}{symbolsC}{7}
\DeclareSymbolFont{symbolsZ}{OMS}{pxsy}{m}{n}
\SetSymbolFont{symbolsZ}{bold}{OMS}{pxsy}{bx}{n}
\DeclareFontSubstitution{OMS}{pxsy}{m}{n}
\DeclareMathSymbol{\circledtimes}{\mathbin}{symbolsZ}{10}
%Current solution
\usepackage{graphicx}
\usepackage{stackengine}
\usepackage{scalerel}
\def\mcirc{\scalebox{.7}{$\bigcirc$}}
\def\nmediumcircle{\kern-.1pt\mcirc\kern-6.9pt\mcirc}
\def\ntimesincircle{\mathbin{%
\stackengine{-.74pt}{\nmediumcircle}{\scalebox{.96}{$\times$}}{O}{c}{F}{T}{L}}}
\def\mediumcircle{\mathbin{%
\ThisStyle{\scalebox{.87}{$\SavedStyle\scalerel*{\nmediumcircle}{b}$}}}}
\def\timesincircle{\mathbin{%
\ThisStyle{\scalebox{.87}{$\SavedStyle\scalerel*{\ntimesincircle}{b}$}}}}
\begin{document}
$x\medcirc\circledtimes
\scriptstyle\medcirc \circledtimes
\scriptscriptstyle\medcirc \circledtimes$
Karl's Solution
$x\mediumcircle\timesincircle
\scriptstyle\mediumcircle \timesincircle
\scriptscriptstyle\mediumcircle \timesincircle$
Present Solution
\end{document}