我需要在 Latex 中绘制以下结构:
Information systems
Data management systems
Database design
Relational DB
Graph-based DB
Hierarchical data models
Network data models
Physical data models
Data model extensions
Semi-structured data
Incomplete data
Temporal data
Inconsistent data
Data structures
Database management system engines
Database query processing
Query optimization
Query operators
Query planning
Parallel and distributed DBMSs
Key-value stores
MapReduce-based systems
Triggers and rules
Query languages
Relational DBQL
SQL
XML
XPath
XQuery
Information systems applications
Decision support systems
Expert systems
Data analytics
Data mining
Collaborative filtering
Association rules
Clustering
Digital libraries and archives
我查看了一下,发现配额树包就是这样做的。但问题是我甚至还没有完成 25-30% 的层次结构,我就退出了页面。而且,另一方面,括号真的很令人困惑。还有其他方法可以在 LaTex 中绘制层次结构吗?
\Tree[.\fbox{Information Systems} [.\fbox{Data Management Systems}
[.\fbox{DB Design} [[.\text{Relational DB} ] [.\text{Graph-based DB} [[.\text{Hierarchical} ] [.\text{Network} ] ] ] ] ]
[.\fbox{DBMS} [.N ]]
[.\fbox{Data Structures} [.N ]]
]
[.I\1 ]
]
答案1
这是否合适你的页,我不知道。适合矿但事实上,这确实有可能。
\documentclass[border=10pt]{standalone}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
for tree={folder,font=\sffamily,grow'=0, s sep'=0pt},
[Information systems
[Data management systems
[Database design
[Relational DB]
[Graph-based DB
[Hierarchical data models]
[Network data models]]
[Physical data models]
[Data model extensions
[Semi-structured data]
[Incomplete data]
[Temporal data]
[Inconsistent data]]]
[Data structures]
[Database management system engines
[Database query processing
[Query optimization]
[Query operators]
[Query planning]]
[Parallel and distributed DBMSs
[Key-value stores]
[MapReduce-based systems]]
[Triggers and rules]]
[Query languages
[Relational DBQL
[SQL]]
[XML
[XPath]
[XQuery]]]
]
[Information systems applications
[Decision support systems
[Expert systems]
[Data analytics]]
[Data mining
[Collaborative filtering]
[Association rules]
[Clustering]]
[Digital libraries and archives]
]
]
\end{forest}
\end{document}