虚线或点线括号或方括号

虚线或点线括号或方括号

我需要在等式中添加虚线或点括号或方括号。但我没有找到任何类似的符号(使用 detexify 或综合 LaTeX 符号列表)。

你知道该怎么做吗?

答案1

可以使用 TikZ 通过将虚线与括号装饰相结合来绘制,如下所示:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
\draw [dashed, decorate, decoration={brace, amplitude=10pt}] (0,0) -- (0,2);
\draw [dashed, decorate, decoration={brace, amplitude=10pt}] (2,2) -- (2,0);
\end{tikzpicture}
\end{document}

虚线括号

答案2

我最终找到了使用 Metafont 创建这些虚线括号的解决方案。

这是我的代码(当然可以改进),用于 12pt 字体:

u#:=23.5/36pt#;
define_pixels(u);

beginchar(40,7u#,16u#,5u#);"left dashed parenthesis";
x1=x9=6.5u;
x2=x8;x3=x7;
x4=x6;
bot y1=-5u; 
top y9=h;
z10=(17u,5.5u);
(x2,y2)=(x1,y1) rotatedaround (z10,-8.5);
(x3,y3)=(x1,y1) rotatedaround (z10,-17);
(x4,y4)=(x1,y1) rotatedaround (z10,-33);
(x5,y5)=(x1,y1) rotatedaround (z10,-45);
(x6,y6)=(x1,y1) rotatedaround (z10,-57);
(x7,y7)=(x1,y1) rotatedaround (z10,-73);
(x8,y8)=(x1,y1) rotatedaround (z10,-81.5);
penpos1(1.5u,0);
penpos2(1.5u,0);
penpos3(1.5u,0);
penpos4(1.5u,0);
penpos5(1.5u,0);
penpos6(1.5u,0);
penpos7(1.5u,0);
penpos8(1.5u,0);
penpos9(1.5u,0);
  pickup pencircle;
 penstroke z1e..z2e..z3e; 
penstroke z4e..z5e{up}..z6e;
 penstroke z7e..z8e..z9e;
 labels(range 1 thru 10);
 endchar;


beginchar(41,7u#,16u#,5u#);"right dashed parenthesis";
x1=x9=0.5u;
x2=x8;x3=x7;
x4=x6;
bot y1=-5u; 
top y9=h;
z10=(-10u,5.5u);
(x2,y2)=(x1,y1) rotatedaround (z10,8.5);
(x3,y3)=(x1,y1) rotatedaround (z10,17);
(x4,y4)=(x1,y1) rotatedaround (z10,33);
(x5,y5)=(x1,y1) rotatedaround (z10,45);
(x6,y6)=(x1,y1) rotatedaround (z10,57);
(x7,y7)=(x1,y1) rotatedaround (z10,73);
(x8,y8)=(x1,y1) rotatedaround (z10,81.5);
penpos1(1.5u,0);
penpos2(1.5u,0);
penpos3(1.5u,0);
penpos4(1.5u,0);
penpos5(1.5u,0);
penpos6(1.5u,0);
penpos7(1.5u,0);
penpos8(1.5u,0);
penpos9(1.5u,0);
  pickup pencircle;
 penstroke z1e..z2e..z3e; 
penstroke z4e..z5e{up}..z6e;
 penstroke z7e..z8e..z9e;
 labels(range 1 thru 10);
 endchar;
  end

您可以在 LaTeX 中看到结果 在此处输入图片描述

谢谢本教程来自 Christophe Grandsire

相关内容