Graphics, Figures & Tableswhat is the causies of this problem (sample provided)

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
man2011
Posts: 43
Joined: Tue Jan 11, 2011 4:19 am

what is the causies of this problem (sample provided)

Post by man2011 »

Dear All,

I really got stuck with this problem....I could not figure out what the causes are... The idea is that I drawed two tree structures which face each other.. the sample is here..

Code: Select all

\documentclass{article}
\usepackage{tikz}
\tikzstyle{every picture}+=[remember picture]
\usetikzlibrary{shapes,arrows}
\tikzstyle{decision} = [diamond, draw, text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, text width=5em, text centered, rounded corners, minimum height=4em]
\usetikzlibrary{positioning}
\raggedbottom
\usepackage{tikz-qtree}
\usepackage{tree-dvips}
\begin{document}

\begin{tikzpicture}
\tikzstyle{level 1}=[sibling distance=45mm]
\tikzstyle{level 3}=[sibling distance=28mm]
\tikzstyle{level 4}=[sibling distance=20mm]
\node{\shortstack{$\textbf{c-structure}$\\IP}}
child {node {NP} child {node {\shortstack{N}} child { child { child {node {Lee}}}}}}
child {node {I$'$}
child {node {I} child { child { child {node {may}}}}}
child {node {VP}
child {node {V} child { child  {node {MIMIC}}}}
child {node {NP}
child {node {DET}
child {node{my}}}
child {node {N}
child {node {niece}}}}}
};
\end{tikzpicture} 

\begin{tikzpicture}
\tikzstyle{level 1}=[sibling distance=60mm]
\tikzstyle{level 2}=[sibling distance=19.9mm]
\node {\shortstack{utterance\\$\textbf{p-structure}$}} [grow'=up]
child { child {node {\shortstack{PW\\$\nearrow=\swarrow$}} child {node {}}} child {node {\shortstack{PW\\$\nearrow=\swarrow$}} child {node {}}}}
child {node {\shortstack{Focus contour\\$\nearrow=\swarrow$}} { child {node {\shortstack{PW\\$\swarrow$ PR=e\\ $\nearrow$$\in$($\swarrow$ FOCUS)$}} child {node {d}}} child {node {\shortstack{PW\\$\swarrow$ PR=c\\ $\nearrow=\swarrow$}} child {node {}}} child {node {\shortstack{PW\\$\swarrow$ PR=c\\ $\nearrow$=$\swarrow$}}child {node {}}}}};
\end{tikzpicture}


\end{document}



the source of the problem is this:

Code: Select all

This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010)
 restricted \write18 enabled.
entering extended mode
(./glue.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, farsi, finnish, french,
 galician, german, ngerman, swissgerman, monogreek, greek, hungarian, icelandic
, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, oriya, panja
bi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji, lao, lati
n, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, polish, portu
guese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedis
h, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size10.clo))
(/Users/zaidi/Library/texmf/tex/latex/pgf/frontendlayer/tikz.sty
(/Users/zaidi/Library/texmf/tex/latex/pgf/basiclayer/pgf.sty
(/Users/zaidi/Library/texmf/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te
x)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
(/usr/local/texlive/2010/texmf-dist/tex/latex/ms/everyshi.sty))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex))
(/Users/zaidi/Library/texmf/tex/latex/pgf/basiclayer/pgfcore.sty
(/Users/zaidi/Library/texmf/tex/latex/graphics/graphicx.sty
(/Users/zaidi/Library/texmf/tex/latex/graphics/keyval.sty)
(/Users/zaidi/Library/texmf/tex/latex/graphics/graphics.sty
(/Users/zaidi/Library/texmf/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/xelatex/xetex-def/xetex.def)))
(/Users/zaidi/Library/texmf/tex/latex/pgf/systemlayer/pgfsys.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c
ode.tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-xetex.de
f
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-p
df.def)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-p
df-via-dvi.def)))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.
code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.
code.tex)) (/usr/local/texlive/2010/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/color.cfg))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.
tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigo
nometric.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.rando
m.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.compa
rison.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.
code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.
code.tex)))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex)
)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.co
de.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconst
ruct.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage
.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.co
de.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicst
ate.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransform
ations.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.cod
e.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.c
ode.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathproce
ssing.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.co
de.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.cod
e.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.cod
e.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.
code.tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.co
de.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretranspare
ncy.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.
code.tex)))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.cod
e.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.
tex)
(/Users/zaidi/Library/texmf/tex/latex/pgf/compatibility/pgfcomp-versi
on-0-65.sty)
(/Users/zaidi/Library/texmf/tex/latex/pgf/compatibility/pgfcomp-versi
on-1-18.sty))
(/Users/zaidi/Library/texmf/tex/latex/pgf/utilities/pgffor.sty
(/Users/zaidi/Library/texmf/tex/latex/pgf/utilities/pgfkeys.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex)
) (/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.cod
e.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothan
dlers.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.cod
e.tex)
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie
s/tikzlibrarytopaths.code.tex)))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie
s/tikzlibraryshapes.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie
s/tikzlibraryshapes.geometric.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibrary
shapes.geometric.code.tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie
s/tikzlibraryshapes.misc.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibrary
shapes.misc.code.tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie
s/tikzlibraryshapes.symbols.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibrary
shapes.symbols.code.tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie
s/tikzlibraryshapes.arrows.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibrary
shapes.arrows.code.tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie
s/tikzlibraryshapes.callouts.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibrary
shapes.callouts.code.tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie
s/tikzlibraryshapes.multipart.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibrary
shapes.multipart.code.tex)))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie
s/tikzlibraryarrows.code.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/libraries/pgflibraryarrows.
code.tex))
(/usr/local/texlive/2010/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie
s/tikzlibrarypositioning.code.tex)
(/usr/local/texlive/2010/texmf-dist/tex/latex/tikz-qtree/tikz-qtree.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/tikz-qtree/pgftree.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/tikz-qtree/pgfsubpic.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/tikz-qtree/pgfsubpic.tex))
(/usr/local/texlive/2010/texmf-dist/tex/latex/tikz-qtree/pgftree.tex))
(/usr/local/texlive/2010/texmf-dist/tex/latex/tikz-qtree/tikz-qtree.tex))
(/Users/zaidi/Library/texmf/tex/latex/tree-dvips/tree-dvips.sty)
No file glue.aux.
ABD: EveryShipout initializing macros
! Extra }, or forgotten $.
<recently read> }
                 
l.36 ...$\nearrow$=$\swarrow$}}child {node {}}}}};
                                                  
? 
Thank you for your help in advance
Last edited by man2011 on Wed May 11, 2011 1:14 am, 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
shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

what is the causies of this problem (sample provided)

Post by shadgrind »

In the last tikzpicture, change the node tree to this:

Code: Select all

\node {\shortstack{utterance\\$\textbf{p-structure}$}} [grow'=up]
child { child {node {\shortstack{PW\\$\nearrow=\swarrow$}} child {node {}}} child {node {\shortstack{PW\\$\nearrow=\swarrow$}} child {node {}}}}
child {node {\shortstack{Focus contour\\$\nearrow=\swarrow$}} { child {node {\shortstack{PW\\$\swarrow$ PR=e\\ $\nearrow\in$($\swarrow$ FOCUS)}} child {node {d}}} child {node {\shortstack{PW\\$\swarrow$ PR=c\\ $\nearrow=\swarrow$}} child {node {}}} child {node {\shortstack{PW\\$\swarrow$ PR=c\\ $\nearrow=\swarrow$}}child {node {}}}}};
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
man2011
Posts: 43
Joined: Tue Jan 11, 2011 4:19 am

Re: what is the causies of this problem (sample provided)

Post by man2011 »

thank you very much for your help... :D
Post Reply