使用 dot2texi 和 TikZ 截断图表

使用 dot2texi 和 TikZ 截断图表

我正在使用dot2texi和创建概念图TiKz。但是,对于更复杂的地图,当前样式有时会导致地图被切断。尽管理论上实际上有足够的空间。我阅读了dot2texiTikZ手册,但我仍然不清楚如何自动调整。这对我来说非常重要:我不想手动调整图表。因为它们是源块的结果org-mode:参见。这里

以下是右侧被切断的地图的示例:

截止图

以下是LaTeX通过Org-mode LaTeX导出创建的相关源代码:

\documentclass[11pt]{article}
\usepackage{dot2texi}
\usepackage{tikz}
\usetikzlibrary{shapes, arrows}
\usepackage[a4paper,margin=0.8in,landscape]{geometry}
\begin{document}

\section{Chapter 3}


\begin{center}

\begin{dot2tex}[scale=0.8, tikz, options={-t raw --tikzedgelabel --nodeoptions='every node/.style={text width=2cm, text centered, rounded corners, fill=black!10}' --edgeoptions="every node/.style={fill=white, inner sep=1pt}"}]


digraph G {

node [shape=box];

"Chapter 3" -> "general jurisdiction" [label="has", lblstyle="pos=0.35"];
"Chapter 3" -> "special jurisdiction" [label="has", lblstyle="pos=0.35"]; 
"Chapter 3" -> "particular issues" [label="has", lblstyle="pos=0.35"];

"special jurisdiction" -> "tort" [label="is", lblstyle="pos=0.35"];
"special jurisdiction" -> "contract" [label="is", lblstyle="pos=0.35"]; 
"special jurisdiction" -> "exclusive jurisdiction" [label="is", lblstyle="pos=0.35"];
"special jurisdiction" -> "submission" [label="is", lblstyle="pos=0.35"];


"special jurisdiction" -> "multiple defendants" [label="is", lblstyle="pos=0.35"];

"special jurisdiction" -> "presence" [label="is", lblstyle="pos=0.35"];

"presence" -> "branch, ageny or other establishment" [label="can be", lblstyle="pos=0.35"];


"contract" -> "general contract" [label="is", lblstyle="pos=0.35"];
"contract" -> "special contracts" [label="is", lblstyle="pos=0.35"]; 

"special contracts" -> "consumer contracts" [label="can be", lblstyle="pos=0.35"];
"special contracts" -> "employment contract" [label="can be", lblstyle="pos=0.35"];


"submission" -> "regular submission" [label="can be", lblstyle="pos=0.35"];
"submission" -> "choice of court agreements" [label="can be", lblstyle="pos=0.35"];


"particular issues" -> "anti-suit injunctions" [label="can be", lblstyle="pos=0.35"];
"particular issues" -> "forum non conveniens" [label="can be", lblstyle="pos=0.35"]; 
"particular issues" -> "freezing injunctions" [label="can be", lblstyle="pos=0.35"];


"particular issues" -> "reform of Brussels regulation" [label="can be", lblstyle="pos=0.35"];


}


\end{dot2tex}
\end{center}
\end{document}

编辑

我使用的示例概念图似乎具有误导性,因为它表明每个概念图都会或应该看起来像一棵自上而下的树。情况可能如此,但需要如此。这是一个更复杂的例子,它表明不同级别/分支上的节点之间可以存在多个连接。这个新示例也被截断了。为了演示目的,我只是将纸张尺寸更改为 A3,然后截取了屏幕截图:

在此处输入图片描述

相关内容