Graphics, Figures & TablesTree in a scaled Bracket

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
lericjee
Posts: 1
Joined: Sun Sep 15, 2013 6:57 pm

Tree in a scaled Bracket

Post by lericjee »

I try to enclose my syntax tree in a growing double bracket using \left \llbracket ... \right \rrbracket. However, the tree always sits in the lower half and leaving the upper half blank, which is very ugly. What's more, I cannot make the angle bracket grow with the tree.

Code: Select all

\documentclass{article}
\usepackage{stmaryrd}
\usepackage{qtree}
\usepackage{tikz-qtree}
\begin{document}

$\left \llbracket \textbf{\Tree [.S [.S [ [.NP [.N Ann ] ] [.VP [.V smokes ] ] ] ] and [.S [ [.NP [.N John ] ] [.VP [.V drinks ] ] ] ] ]} \right \rrbracket$ \\
$\left \langle \left ( \Tree [.S [.NP [.N Ann ] ] [.VP [.V smokes ] ] ] \right ) \right \rangle$

\end{document}
Attachments
Screen Shot 2013-09-15 at 1.07.39 PM.png
Screen Shot 2013-09-15 at 1.07.39 PM.png (20.74 KiB) Viewed 3613 times
Last edited by localghost on Sun Sep 15, 2013 7:31 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Tree in a scaled Bracket

Post by localghost »

Just for information to other users for awareness of possibly already existing solutions. The question has also been posted to {TeX} SX and already got an answer. Please read what our administrator thinks about that.
Board Rules wrote:A crossposting is always contra-productive. But there is nothing really against it as long as it is mentioned. This means that a direct link has to be added. So other users who want to help are preserved from double efforts and waste of time.
Post Reply