![使用“Kblocks”包绘制“框图”时出现问题](https://linux22.com/image/428082/%E4%BD%BF%E7%94%A8%E2%80%9CKblocks%E2%80%9D%E5%8C%85%E7%BB%98%E5%88%B6%E2%80%9C%E6%A1%86%E5%9B%BE%E2%80%9D%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98.png)
我的第一个问题是: 如何移动或转移给定链接上的标签(如附图所示)?
我的第二个问题是:
如何将链接弯曲成如图所示的 90 度?我已将代码附加在 中tex
。
\documentclass{article}
\usepackage{kblocks}
\begin{document}
\begin{kblock}
\kStartNodec[$V_1$]{(0,-1.5)}{R1}
\kScaleDistX[1.5]
\kPlusMinusDown{R1}{S1}{0cm}
\kLink[]{R1}{S1}
\kInDown[]{S1}{um}{${V}_{4}$}{0}
\kScaleDistX[1.5]
\kTFRight{S1}{C1}{$0.35$}
\kLink[]{S1}{C1}
\kScaleDistX[3.46]
\kPlusPlusUp{C1}{S2}{1cm}
\kLink []{C1}{S2}
\kStartNodec[]{(0,1)}{R2}
\kScaleDistX[1.5]
\kPlusPlusahm{R2}{S3}{0cm}
\kInUp[]{S3}{um}{$V_2$}{0}
\kInDown[]{S3}{um}{$V_3$}{0}
\kTFRight{S3}{C2}{$\frac{1}{2}$}
\kLink[]{S3}{C2}
\kStartNodec[$I^\ast$]{(0,3)}{R5}
\kScaleDistX[3]
\kPlusMinusDown{R5}{S5}{0cm}
\kLink[]{R5}{S5}
\kLink[$I_{{calculated}}$]{C2}{S5}
\kScaleDistX[1]
\kTFRight{S5}{C3}{$s$}
\kLink[]{S5}{C3}
\kMinusPlusUp{C3}{S6}{0.2cm}
\kLink[]{C3}{S6}
\kInUp[]{S6}{um}{${V}_{dc}$}{0}
\kTFRight{S6}{C7}{$0.2$}
\kLink[]{S6}{C7}
\kTFRight{C7}{C8}{$K_3$}
\kLink[]{C7}{C8}
\kLink[$V_{estimated.}$]{C8}{S2}
\kOutRight{S2}{Y1}{$V_{out}^\ast$}{0cm}
\end{kblock}
\end{document}
答案1
kblocks 包已更新。但是,代码更改可能需要一段时间才能反映在包存档中。不过,您可以从 https://github.com/somefunAgba/kblocks
这可能是你想要实现的图表
\begin{kblock}
% ref
\kJumpCS{spt}
% top blocks
\kMarkNodeRight{0cm}{0cm}{$I^\star$}{spt}{inI}
\kPlusMinusDown{inI}{sb1}{1.cm}
\kTFRight[0.2cm]{sb1}{tfb1}{$s$}
\kTFBelow[0.5cm]{sb1}{tfb2}{$\frac{1}{2}$}
\kPlusDownPlusUpL{tfb2}{sb2}{0cm}
\kMinusPlusUp{tfb1}{sb3}{0cm}
\kTFRight[0cm]{sb3}{tfb3}{$0.2$}
\kTFRight[0cm]{tfb3}{tfb4}{$K_3$}
\kMarkNodeAbove{0cm}{0cm}{$V_{dc}$}{inI}{inVdc}
\kMarkNodeBelow{0cm}{0.3cm}{$V_2$}{inI}{inV2}
\kMarkNodeBelow{0cm}{-0.4cm}{$V_3$}{inV2}{inV3}
% bottom blocks
\kMarkNodeBelow{3cm}{0cm}{$V_1$}{inI}{inV1}
\kPlusPlusUpB{tfb4}{sb4}{3cm}
\kPlusMinusDown{inV1}{sb5}{0cm}
\kTFRight[0cm]{sb5}{tfb5}{$0.35$}
\kOutRight[0]{sb4}{outV}{$V_{out}^{\star}$}{0}
\kMarkNodeBelow{0cm}{0cm}{$V_4$}{inV1}{inV4}
% top links
\kLinkHV[]{inVdc}{sb3}{0}{0}{0}
\kLinkHV[]{inV2}{sb2}{0}{0}{0}
\kLinkHV[]{inV3}{sb2}{0}{0}{0}
\kLink[]{inI}{sb1}
\kLink[]{sb1}{tfb1}
\kLink[$I_{calc}$]{tfb2}{sb1}
\kLink[]{tfb1}{sb3}
\kLink[]{sb2}{tfb2}
\kLink[]{sb3}{tfb3}
\kLink[]{tfb3}{tfb4}
\kLink[$V_{est}$]{tfb4}{sb4}
% bottom links
\kLink[]{inV1}{sb5}
\kLink[]{sb5}{tfb5}
\kLink[]{tfb5}{sb4}
\kLinkHV[]{inV4}{sb5}{0}{0}{0}
\end{kblock}