我简直不敢相信。
我正在查看和阅读...第 23 页中的多个示例pstricks-添加-doc.pdf 我无法达到我想要的效果。即使复制和粘贴 PDF 中的任何示例
我知道如何将支架指向上方。
但我不断尝试,却没有找到解决办法。
这是一个 MWE
\documentclass[12pt,a4paper,x11names]{article}
\usepackage{pstricks,pst-node,pst-blur,pstricks-add}
\usepackage{subcaption}
\usepackage[utf8]{inputenc}
\usepackage{eurosym}
\newpsobject{psframegray}{psframe}{fillcolor=lightgray,linestyle=none,shadow,blur}
\definecolor{azultenue}{RGB}{65,170,193}
\definecolor{rojotenue}{RGB}{192,2,3}
\definecolor{naranjatenue}{RGB}{241,101,35}
\definecolor{verdetenue}{RGB}{144,169,61}
\definecolor{gris135}{RGB}{135,135,135}
\begin{document}
\begin{figure}[h!]
\centering
%\resizebox{8cm}{!}{
\psset{framearc=0.2, shadowcolor=black!70, shadowangle=-90, unit=1.0cm,nodesep=0.12cm}
%
\def\pscolhookii{\hskip 1cm}
\def\pscolhookiii{\hskip 1cm}
\begin{psmatrix}[rowsep=2.2, colsep=5.2]% defines the distance between two frames
[name=Inicio]
\psframegray(-2.5,-3.2)(2.5,2.5)
%
\rput(-1.1,1.5){\circlenode[fillstyle=solid,fillcolor=azultenue]{p1}{\textcolor{black}{$p_1$}}}
\rput(-0.3,1.5){\circlenode[fillstyle=solid,fillcolor=azultenue]{p2}{\textcolor{black}{$p_2$}}}
\psdots[dotsize=0.06](0.2,1.5)
\psdots[dotsize=0.06](0.4,1.5)
\psdots[dotsize=0.06](0.6,1.5)
\rput(1.1,1.5){\circlenode[fillstyle=solid,fillcolor=azultenue]{pmu}{\textcolor{black}{$p_\mu$}}}
%
\psbrace(-1.5,1.2)(1.5,1.2){}
\pnode(0,0.58){nfantasma}
%%%%%%%%%%% HOW TO PUT THIS BRACE POINTING UP %%%%%%%%%% %%%%%%%%%% %%%%%%%%%% %%%%%%%%%%
\psbrace(-2.1,-0.8)(2.1,-0.8){A} %%%%%%%%%%
%%%%%%%%%% %%%%%%%%%% %%%%%%%%%% %%%%%%%%%% %%%%%%%%%% %%%%%%%%%% %%%%%%%%%%
\psbrace*[rot=90,ref=rC](-2.1,-1.8)(2.1,-1.8){AA}
\psbrace[rot=180,nodesep=-0.8cm](-2.1,-2.8)(2.1,-2.8){AAA}
\psbrace*[ref=lb](-1,1)(1,1){I} %%% copy from the page 23. where you can see pointing UP
\pnode(0,-1.75){nfantasma2}
&[name=Conjunto]
\psframegray(-2.5,-3.2)(2.5,2.5)
\pspolygon[fillstyle=solid,fillcolor=gris135,linestyle=dashed,linecolor=red,linewidth=0.06cm,linearc=0.4](-2.4,-1.5)(-2.4,-0.5)(2.4,-0.5)(2.4,-1.5)(-2.4,-1.5)
&[name=EM]
\psframegray(-2.5,-3.2)(2.5,2.5)
\end{psmatrix}
\vspace{3.1cm}
\caption{Esquema $(\mu , \lambda)$}\label{mucomalambda-ilustracion}
\end{figure}
\end{document}
答案1
支架很简单,从 A 点到 B 点画一条线。如果要改变方向,就必须改变方向。因此,不要从 A 到 B,而要从 B 到 A。
\documentclass[12pt,a4paper,x11names]{standalone}
\usepackage{pstricks,pst-node,pst-blur,pstricks-add}
\begin{document}
\begin{pspicture}(-3,-3)(3,3)
\psbrace(-1.5,1.2)(1.5,1.2){A}
\psbrace(1.5,-1.2)(-1.5,-1.2){B}
\end{pspicture}
\end{document}
答案2
第 18 行中的全局 nodesep 更改了 psbrace two 中的标签,因此您必须明确编写
\psbrace[ref=Ct,rot=90,nodesep=0](-2.1,-1.8)(2.1,-1.8){\fbox{AA}}
如果您想让标签居中。