Graphics, Figures & Tables ⇒ Tikz multiline matrix
-
reisgabrieljoao
- Posts: 5
- Joined: Sat Sep 26, 2009 6:11 am
Tikz multiline matrix
Thanks in advance.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Tikz multiline matrix
Code: Select all
\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) node[text width=4cm] {The quick brown fox jumps over the lazy dog.};
\end{tikzpicture}
\end{document}For more specific help it requires a minimal example.
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
reisgabrieljoao
- Posts: 5
- Joined: Sat Sep 26, 2009 6:11 am
Tikz multiline matrix
Code: Select all
\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\matrix {
& \node (node1) [draw] {Node number 1}; \\
\node (node2) [draw, minimum height=3em] {Node number 2}; & \node (node3) [draw] {Node number 3}; \\
};
\end{tikzpicture}
\end{document}
Tikz multiline matrix
Code: Select all
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{fit}
\begin{document}
\begin{tikzpicture}
\matrix {
\node (node0) {\phantom{Node number 2}}; & \node[draw] (node1) {Node number 1};\\
\node (node2) {\phantom{Node number 2}}; & \node [draw] (node3) {Node number 3};\\
};
\node[draw, fit = (node0) (node2),inner sep=0pt] {Node number 2};
\end{tikzpicture}
\end{document}
-
reisgabrieljoao
- Posts: 5
- Joined: Sat Sep 26, 2009 6:11 am