I can't find any guide about how to make a tornado plot in latex/overleaf. Does anybody know how to make one?   I'm working on an economical analysis and want to show how changes will affect the production cost.   Inspiration pictures:    Edit: The question was marked to have a duplicate question, but I tried to use this one () as a base, but I'm not satisfied unfortunately, and I'm stuck.    There is still a lot until I have it more equal to my two inspiration pictures, for instance:    The % values represent the % of the total. How do I remove them and rather show the change from the main value (?), as shown in the two example pictures? How do I insert x- and y-axis?   I removed the header/title, it's not necessary as I will have a figure text underneath.  I'm sorry if I fail to explain my question, I'm as I mention very new to latex/overleaf :) I appreciate your feedback and answers!  (I also tried to use this:  but I found that one to be even more difficult to understand. I want the y-axis not to be numbered, but with text, and don't know how to change that.)  \documentclass{standalone} \usepackage[svgnames]{xcolor} \usepackage{tikz} \usepackage{pgfplotstable} \usepackage{wasysym} \begin{document}  \pgfplotstableread[col sep=comma]{ unit,min,max Lipid content,1000,1300 Growth rate,800,1000 Main equipment cost basis,500,500 Operating factor,50,400 }\loadedtable  \newlength{\dy}\setlength{\dy}{\baselineskip} \newlength{\dx}\setlength{\dx}{0.007em} \newlength{\temp}  \pgfplotstablegetrowsof{\loadedtable} \pgfmathparse{\pgfplotsretval-1} \edef\rows{\pgfmathresult} % compute total for percentages \setlength{\temp}{0pt} \foreach \y in {0,1,...,\rows}{%   \pgfplotstablegetelem{\y}{min}\of\loadedtable   \global\advance\temp by \pgfplotsretval pt   \pgfplotstablegetelem{\y}{max}\of\loadedtable   \global\advance\temp by \pgfplotsretval pt } \pgfmathparse{0.01\temp} \edef\total{\pgfmathresult}  \noindent\begin{tikzpicture}  \foreach \y in {0,1,...,\rows}{%   \pgfplotstablegetelem{\y}{unit}\of\loadedtable   \node[left] at (-19em,-\y\dy) {\strut\pgfplotsretval};   \pgfplotstablegetelem{\y}{min}\of\loadedtable   \node[left] at (-15em,-\y\dy) {\strut\pgfplotsretval};   \node[left,fill=Navy,text width=\pgfplotsretval\dx,text height=.8\dy,inner sep=0]     at (0,-\y\dy+0.1\dy) {};   \pgfmathparse{\pgfplotsretval/\total}   \pgfmathprintnumberto[fixed,precision=2]{\pgfmathresult}{\per}   \node[left] at (-\pgfplotsretval\dx,-\y\dy) {\small\strut\per\%};   \pgfplotstablegetelem{\y}{max}\of\loadedtable   \node[left] at (17em,-\y\dy) {\strut\pgfplotsretval};   \node[right,fill=HotPink,text width=\pgfplotsretval\dx,text height=.8\dy,inner sep=0]     at (0,-\y\dy+0.1\dy) {};   \pgfmathparse{\pgfplotsretval/\total}   \pgfmathprintnumberto[fixed,precision=2]{\pgfmathresult}{\per}   \node[right] at (\pgfplotsretval\dx,-\y\dy) {\small\strut\per\%}; }  \end{tikzpicture} \end{document}
121788
To display a sensitivity analysis I want to produce a . In the plot a specific base case value is compared to the values produced after changing parameters in the model. I started from this . With this I was able to get this MWE:   \usepackage{pgf} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{positioning} \usetikzlibrary{calc} \usetikzlibrary{intersections,backgrounds} \usetikzlibrary{decorations.pathmorphing}  \pgfplotsset{     TornadoPlot/.style={% Overall settings         width = 1\textwidth,     line width=1pt,     tick style={line width=0.8pt},     xmin = -50, xmax = 50,     xtick       = {-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50},     xticklabels = {-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50},     xmajorgrids = true,     minor x tick num = 1,     tick align = outside,     xtick pos = left, ytick pos = left,     xbar, bar shift=0pt,     height = 7cm,     enlarge y limits = 0.1, ytick = {0,1,2,3,4,5,6},     nodes near coords={         \pgfkeys{/pgf/fpu=true}%         \pgfmathparse{\pgfplotspointmeta}%         \pgfmathprintnumber{\pgfmathresult}     },     nodes near coords align = {horizontal},     before end axis/.code={         \draw ({rel axis cs:0,0}-|{axis cs:0,0}) -- ({rel axis cs:0,1}-|{axis    cs:0,0});     }              } }  \begin{document} \begin{tikzpicture}     \begin{axis}[TornadoPlot, legend style={at={(0.975,0.25)}}]             \addplot[fill=green!40] coordinates{(-3.5,0) (-16,1) (-17.5,2) (-19,3) (-34,4) (-27,5) (-22,6)};             \addplot[fill=red!40] coordinates{(4,0) (19,1) (12.5,2) (28.5,3) (34,4) (82,5) (38,6)};             \legend{upside, downside}      \end{axis} \end{tikzpicture} \end{document}   However, one of the bars (82, 5) has a positive x value that is outside the range of the domain of the plot. Can I restrict the length of that bar and force a break, while still displaying the original value of x? I have seen  for vertical bar-charts, but so far I have not been able to reproduce this for my tornado plot.
112494
I am new to TeX and I am trying to create a document which has regular text, paragraphs etc and also a timing diagram somewhere in between. I am using the TikZ timing package.  Here is an example of what I am trying to do.  Create a section. Write some text. Add a timing diagram. End section and on to the next section.  Here is the code sample I tried.  \documentclass{article} \usepackage{tikz-timing}[2009/12/09] \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength{\PreviewBorder}{1mm} \pagestyle{empty}  \begin{document} % % Defining foreground (fg) and background (bg) colors \definecolor{bgblue}{rgb}{0.41961,0.80784,0.80784}% \definecolor{bgred}{rgb}{1,0.61569,0.61569}% \definecolor{fgblue}{rgb}{0,0,0.6}% \definecolor{fgred}{rgb}{0.6,0,0}% %   \begin{section}  1.  Timing diagram of SR Flip Flop     Here is the timing diagram of SR flip flop.     \begin{tikztimingtable}[     timing/slope=0,         % no slope     timing/coldist=2pt,     % column distance     xscale=2.05,yscale=1.1, % scale diagrams     semithick               % set line width   ]   \scriptsize clock     &amp; 7{C}                              \\   S                     &amp; [fgblue] .75L h 2.25L H LLl       \\   R                     &amp; [fgblue]  1.8L .8H 2.2L 1.4H 0.8L \\   Q                     &amp;          L .8H 1.7L 1.5H LL       \\   $\overline{\mbox{Q}}$ &amp;          H .8L 1.7H 1.5L HH       \\   Q                     &amp; [fgred]  HLHHHLL                  \\   $\overline{\mbox{Q}}$ &amp; [fgred]  LHLLLHH                  \\ \extracode  \makeatletter  \begin{pgfonlayer}{background}   % Draw shaded backgrounds   \shade [right color=bgblue,left color=white]      (7,-8.45) rectangle (-2,-4.6);   \shade [right color=bgred,left color=white]      (7,-12.8) rectangle (-2,-8.6);   % Add background grid lines   \begin{scope}[gray,semitransparent,semithick]     \horlines{}     \foreach \x in {1,...,6}       \draw (\x,1) -- (\x,-12.8);     % similar: \vertlines{1,...,6}   \end{scope}   % Add labels   \node [anchor=south east,inner sep=0pt]     at (7,-8.45) {\tiny clocked};   \node [anchor=south east,inner sep=0pt,fgred]     at (7,-12.8) {\tiny positive edge triggered};  \end{pgfonlayer} \end{tikztimingtable}% % \end{section}  \end{document}   I am expecting the pdf to show the text first and then the timing diagram, but only the timing diagram is being generated.  Can somebody please help me?  Thanks
25535
I tried to draw this in latex.     But not successful. How could I draw this quiver in latex? Thank you very much.
98688
I've been trying to figure out how to change the chart from scientific notation to just show the 5 digit numbers. I've tried scale and scale ticks with not success.  How can I change the y-axis and data values to show the decimals not in scientific notation?  \begin{tikzpicture} \centering \begin{axis}[     width=300pt,     height=250pt,     axis lines*=left, % Don't display the top and right lines     ybar, % Display it as a bargraph     enlarge y limits={upper,value=0.2},     legend style={at={(0.5,-0.20)}, % -.20 y-axis     anchor=north,legend columns=-1},     ylabel={Densities},     nodes near coords,     every node near coord/.append style={ anchor=mid west, rotate=90},     symbolic x coords={Class1,Class3,Class5,Class7,Class9,Class11,Class13,Class15,Class17,Class19,Class21,Class23},     xtick=data,     xticklabel style={ inner sep=0pt, anchor=north east, rotate=70 },     nodes near coords align={vertical}, ] \addplot coordinates { (Class1,0.0968) (Class3,0.0887) (Class5,0.1452) (Class7,0.0726)     (Class9,0.0403) (Class11,0.0081) (Class13,0.0161) (Class15,0.0000)     (Class17,0.0161) (Class19,0.0081) (Class21,0.0000) (Class23,0.0081) }; \end{axis} \end{tikzpicture}
17101
I am writing an essay on a certain type of representation theory and I would be very grateful if someone can tell me how I can make these diagrams in LaTeX. Any and all help is much appreciated!
41267
I need to plot f(x) = 1 / x in LaTeX and am trying to with Tikz. I haven't found a way to set the vertical range, so the values go out of bound around x=0.  Using gnuplot directly doesn't seem to be an option because the fix presented  fails.  \begin{frame}     \begin{tikzpicture}         \draw[-&gt;] (-10, 0) -- (10, 0) node[right] {$x$};         \draw[-&gt;] (0, -10) -- (0, 10) node[above] {$y$};         \draw[color=red, domain=-10:10] plot[id=x] function{1/x} node[right] { $f(x) = x$ };     \end{tikzpicture} \end{frame}   I'm not set on Tikz, if there are other options I am open to them.
85537
Because I often use the same options for multiple axes in my LaTeX documents, I use the following code to simplify my life.  \documentclass{article} \usepackage{pgfplots} \newcommand{\linecolora}{blue} \newcommand{\marka}{o} \newcommand{\plotoptsa}{color=\linecolora,mark=\marka} \newcommand{\xlabela}{Test test 123} \newlength\figurewidth \setlength{\figurewidth}{\columnwidth} \newcommand{\axisoptsa}{width=100,xlabel=\xlabela} \newcommand{\axisoptsb}{ymin=-8,ymax=-3} \begin{document}     \begin{tikzpicture}         \begin{axis}[\axisoptsa,\axisoptsb]             \expandafter\addplot\expandafter[\plotoptsa] coordinates                 {                     (2,-2.8559703)                     (3,-3.5301677)                     (4,-4.3050655)                     (5,-5.1413136)                     (6,-6.0322865)                     (7,-6.9675052)                     (8,-7.9377747)                 };          \end{axis}          \end{tikzpicture} \end{document}   It works like a charm! However, if I change width=100 into the defined width=\figurewidth, I get Missing \endcsname inserted. error. Using  \expandafter\begin{axis}\expandafter[\axisoptsa,\axisoptsb]   does not help.
99179
I am new to Latex. Cann some one tell me how can I plot two graphs in a single page and How can resize the legend. I have attached the picture how the legend looks. I need it out from the plot and how can i have gridded lines in the plot. Please help me. My code is as follows: \documentclass[12pt, a4paper]{report} \usepackage{filecontents,pgfplots}  \begin{filecontents}{mydata.dat} m0_FEED, AT 773.15K, AT 823.15K, AT 873.15K, AT 923.15K, AT 973.15K 0.005, 1.30E+04, 12959.71536,12959.71536,12959.71536,12959.71536 0.007, 1.81E+04, 18145.78478,18145.78478,18145.78478,18145.784 0.009, 2.33E+04, 23333.9541,23333.9541,23333.9541,23333.9541 0.011, 2.85E+04, 28524.71381,28524.71381,28524.71381,28524.71381 0.013, 3.37E+04, 33718.48576,33718.48576,33718.48576,33718.48576 0.015, 3.89E+04, 38915.61947,38915.61947,38915.61947,38915.61947 0.017, 4.41E+04, 44116.39602,44116.39603,44116.39603,44116.39603 0.019, 4.93E+04, 49321.02848,49321.02848,49321.02878,49321.02849 0.021, 5.45E+04, 54529.67237,54529.67238,54529.67238,54529.67238 \end{filecontents}  \begin{document}   \pgfplotstableread[col sep=comma]{mydata.dat}{\mydata} \begin{tikzpicture}[scale=1.8] \begin{axis}[minor tick num=1, xlabel=Degrees, ylabel = temperature] \addplot [black,very thick] table [x={m0_FEED}, y={AT 773.15K}] {\mydata}; \addplot [red,very thick] table [x={m0_FEED}, y={AT 823.15K}] {\mydata}; \addplot [blue,very thick] table [x={m0_FEED}, y={AT 873.15K}] {\mydata}; \addplot [green,very thick] table [x={m0_FEED}, y={AT 923.15K}] {\mydata}; \addplot [dashed,yellow,very thick] table [x={m0_FEED}, y={AT 973.15K}] {\mydata}; \legend{AT773.15K, AT823.15K, AT873.15K, AT923.15K, AT973.15K} \end{axis} \end{tikzpicture}  \begin{filecontents}{mydatax.dat} m0_FEED AT 773.15K  AT 823.15K  AT 873.15K  AT 923.15K  AT 973.15K 0.005   4.06E+03    4601.511738 5147.966831 5703.120845 6267.035737 0.007   5.69E+03    6439.241858 7204.278989 7981.494608 8625.923 0.009   7.31E+03    8274.205759 9257.824928 10257.10215 11272.14896 0.011   8.92E+03    10105.75535 11307.95656 12529.29539 13769.90815 0.013   1.05E+04    11933.33165 13354.1149  14797.51533 16263.69405 0.015   1.21E+04    13756.46929 15395.83457 17061.29661 18753.04129 0.017   1.37E+04    15574.79159 17432.7389  19320.26254 21237.57317 0.019   1.53E+04    17388.009   19464.53834 21574.12348 23717.00014 0.021   1.69E+04    19195.90581 21491.01717 23822.664   26191.10653 \end{filecontents}  \pgfplotstableread{mydatax.dat}{\mydatax} \begin{tikzpicture}[scale=2] \begin{axis}[minor tick num=1, xlabel=Degrees, ylabel = temperature] \addplot [black,very thick] table [x={m0_FEED}, y={AT 773.15K}] {\mydatax}; \addplot [red,very thick] table [x={m0_FEED}, y={AT 823.15K}] {\mydatax}; \addplot [blue,very thick] table [x={m0_FEED}, y={AT 873.15K}] {\mydatax}; \addplot [green,very thick] table [x={m0_FEED}, y={AT 923.15K}] {\mydatax}; \addplot [dashed,yellow,very thick] table [x={m0_FEED}, y={AT 973.15K}] {\mydatax}; \legend{AT773.15K, AT823.15K, AT873.15K, AT923.15K, AT973.15K} \end{axis} \end{tikzpicture}   \end{document}
31219
It's the first time I'm using Tikz on Latex. I have to draw this block diagram (this is a low resolution snip from a paper)   In Tikz I have done this:   That is very similar but I need some adjustments, like the u_i arrow and the node sum after the H(s) block.  Is there anybody that can help me with this?  my code:      \tikzstyle{block} = [draw, fill=white, rectangle,  minimum height=2em, minimum width=3em] \tikzstyle{sum} = [draw, fill=white, circle, radius=1mm, node distance=1.5cm] \tikzstyle{input} = [coordinate] \tikzstyle{output} = [coordinate] \tikzstyle{pinstyle} = [pin edge={to-,thin,black}]  \begin{tikzpicture}[auto, node distance=2cm,&gt;=latex'] \node [input, name=input] {}; \node [input, above of=input](input1) {}; \node [sum, right of=input] (sum) {}; \node [block, right of=sum] (controller) {$K(s)$}; \node [sum, right of=controller] (sum1) {}; \node [block, right of=sum1] (filterinv) {$H^{-1}(s)$}; \node [block, right of=filterinv] (system) {$G(s)$}; \node [output, right of=system] (output) {}; \node [output, above of=output] (output1) {}; \node [block, below of=filterinv] (filter) {$H(s)$}; \node [block, above of=controller] (delay) {$D(s)$}; \node [sum, below of=sum1] (sum2) {};  \draw [-&gt;] (filterinv) -- node[name=u] {$u_{i}$} (system); \draw [draw,-&gt;] (input) -- node {$s_{i-1}$} (sum); \draw [-&gt;] (sum) -- node {$e_{i}$} (controller); \draw [-&gt;] (system) -- node [name=q] {$q_{i}$}(output); \draw [-&gt;] (q) |- (filter); \draw [-&gt;] (filter) -- node {} (sum2); \draw [-&gt;] (controller) -- node {} (sum1); \draw [-&gt;] (sum1) -- node[name=xi] {$\xi_{i}$} (filterinv); \node [input, below of=sum1](input2) {}; \draw [draw,-&gt;] (input2) -- node {$r_{i}$} (sum2); \draw [-&gt;] (sum2) -| node[pos=0.99] {$-$}      node [near end] {$\tilde{s}_i$} (sum); \draw [-&gt;] (delay) -| node[] {}      node [near end] {} (sum1); \draw [draw,-&gt;] (input1) -- node[pos=0.15] {$u_{i-1}$} (delay); \draw [-&gt;] (u) |- node[pos=0.99] {$u_i$}      node [near end] {} (output1);  \end{tikzpicture}
115581
I want to create a horizontal bar chart with different labels on the y-axis for each bar. Also, the value should be displayed on the right-hand side of each bar.  Fx:   "Test A" ... red bar ... 400  "Test B" ... orange bar...150 etc.  Current output    Current code  \documentclass{article}  \usepackage{xcolor} \usepackage{tikz} \usepackage{pgfplots}  \newlength{\xdim}  \definecolor{findOptimalPartition}{HTML}{D7191C} \definecolor{storeClusterComponent}{HTML}{FDAE61} \definecolor{dbscan}{HTML}{ABDDA4} \definecolor{constructCluster}{HTML}{2B83BA}  \begin{document} \begin{figure} \centering \begin{tikzpicture} \begin{axis}[     xbar stacked,     legend style={     legend columns=4,         at={(xticklabel cs:0.5)},         anchor=north,         draw=none     },     ytick=data,     axis y line*=none,     axis x line*=bottom,     tick label style={font=\footnotesize},     legend style={font=\footnotesize},     label style={font=\footnotesize},     xtick={0,100,200,300,400,500,600},     width=.9\textwidth,     bar width=6mm,     yticklabels={{Test A},      {Test B},      {Test C},      {Test D},      {Test E},      {Test F}},     xmin=0,     xmax=600,     area legend,     y=8mm,     enlarge y limits={abs=0.625}, ] \addplot[findOptimalPartition,fill=findOptimalPartition] coordinates {(400,0) (0,0) (0,0) (0,0) (0,0) (0,0)}; \addplot[storeClusterComponent,fill=storeClusterComponent] coordinates {(0,0) (150,1) (0,0) (0,0) (0,0) (0,0)}; \addplot[dbscan,fill=dbscan] coordinates {(0,0) (0,0) (250,2) (0,0) (0,0) (0,0)}; \addplot[constructCluster,fill=constructCluster] coordinates {(0,0) (0,0) (0,0) (50,3) (0,0) (0,0)}; \addplot[blue,fill=blue] coordinates {(0,0) (0,0) (0,0) (0,0) (350,4) (0,0)}; \addplot[green,fill=green] coordinates {(0,0) (0,0) (0,0) (0,0) (0,0) (100,5)}; \end{axis}   \end{tikzpicture} \caption{X} \label{fig:stats} \end{figure} \end{document}
109958
I need some help with this diagram:   I would like to combine two entries in the “meta=” section. It should contain the {y*100}–value and the Label-value. Is it possible to add them somehow? In the end there should be the value in percentages and a star above each bar. I would like to change the color of the stars and error bars to black. Is it possible to extend the y-axis a tiny bit so it doesn’t end with a horizontal markline?   .  \documentclass{article}  \usepackage[libertine]{newtxmath} \usepackage{pgfplots} %\pgfplotsset{compat=1.11} \usepackage{filecontents}  \usepackage{tikz}  \usepackage{pgfplotstable} \usetikzlibrary{positioning} \usetikzlibrary{decorations.pathmorphing} \usetikzlibrary{arrows} \usetikzlibrary{patterns}  \begin{document}    \begin{filecontents}{data1.dat}     X Y Y_error Label     a 1 0 \\     b .155 .038 $\star$     c 0.80 0.019 $\star$     d 0.54 0.027 \\   \end{filecontents}      \begin{figure}     \begin{tikzpicture}        \begin{axis}[  bar width=1cm, % Width of the bar     x=2cm, % Distance between the centers of the bars     enlarge x limits={abs=1cm}, % The distance between the center of the first bar and the left edge     enlarge y limits=false,         symbolic x coords={a,b,c,d},             ymin=0,         xtick=data,         ybar,             axis x line*=bottom,     axis y line=left,     clip=false,   %  point meta={y*100}, %y-Werte mal 100 für Prozent      point meta=explicit symbolic,    yticklabel={\pgfmathparse{\tick*100}\pgfmathprintnumber{\pgfmathresult}\%} ,         nodes near coords,         nodes near coords align={vertical},         visualization depends on=abs(y)/y*(0.1+\thisrow{Y_error}) \as \myshift,         every node near coord/.append style={           anchor=center,shift={(0,transformdirectiony(\myshift))},         }]         \addplot+[draw=black, fill=white, error bars/.cd, y dir=both, y explicit, ]                   table[x=X, y=Y, y error=Y_error, meta=Label,] {data1.dat};                         \end{axis}       \end{tikzpicture}   \end{figure}   \end{document}
50451
I found  presentation document by D. J. Bernstein. Is it possible to create it in latex?  Screenshot
20990
I'm new to LaTex, and would like to create a table that looks as follows:    How can this be done in LaTex?  Thanks.
16921
Can anyone help me in giving commands for commutative diagrams in LaTeX ? It doesn't seem to appear properly in the LaTeX guides that I have. A command for a simple triangular diagram with arrows associated to maps would be good enough, or maybe some appropriate reference.
111606
I use data1 = Table[] in Mathematica 9 (M9) to generate a table of values. The thing is that when I read the data file, there's only one column! How can I plot this data file in LaTeX using pgfplots? Here's a ME  \documentclass[border=1]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.5} \begin{document} \begin{tikzpicture}     \begin{axis}             \addplot table {TestTable.csv};      \end{axis} \end{tikzpicture} \end{document}   I also tried TestTable.txt instead of .csv but without any success.  TestTable.csv is generated in M9 with the following code   Export[NotebookDirectory[] &lt;&gt; "TestTable.csv", data1]  where data1 is defined earlier in M9 is some data e.g. numerical integration or similar. A smaller version of data1 in textform (i.e. TestTable.txt) looks like this   1.1 2.3 3.0 4.1 5.3 6.2 7.3 8.4 9.6 10.3
93167
I am looking into using TikZ to represent pitch patterns over a phrase or sentence (intonation).  I've got it to produce some useful results, already, as in the attached MWE (although in 1.1 the baselines don't seem to level up).  %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode \documentclass[a4paper,12pt, oneside]{article}  \usepackage{fontspec} \defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase} \setmainfont{Charis SIL}  \usepackage{tikz}  \begin{document}  \section{Marking intonation using TikZ}  \subsection{Setting words on different levels}  \begin{table}[hbtp] \begin{tabular}{ll} \cline{1-1} \noalign{\smallskip} \tikz[x=1mm,y=1mm,baseline=12] \draw (0,10) node {\underline{Where}} (10,2) node {are} (20,2) node {you} (30,6) node {\underline{go}} (40,0) node{ing?}; &amp; \textit{neutral/default - stress represented by underlining}\\ \cline{1-1} \noalign{\smallskip} \tikz[x=1mm,y=1mm,baseline=12] \draw (0,0) node {Where} (10,10) node {\underline{are}} (20,5) node {you} (30,2) node {go} (40,0) node{ing?}; &amp; \textit{ e.g. in response to ``I'm not going to the shops after all.''}\\ \cline{1-1} \end{tabular} \end{table}  Why do ``are'' and ``you'' in the first example appear on slightly different levels, even though they are both set to 1mm on the y axis?  Likewise for ``where'' and ``ing'' in the second example.  I'm not sure I'm using ``baseline'' properly here!  \subsection{As above, but boxed}  \begin{tikzpicture} \node[draw] at (0,1) {\underline{Where}}; \node[draw] at (1,0.1) {are}; \node[draw] at (2,0.1) {you}; \node[draw] at (3,0.6) {\underline{go}}; \node[draw] at (4,0) {ing?}; \end{tikzpicture}\ Still have to figure out the difference between ``\textbackslash draw node'' and ``\textbackslash node[draw]''!  \subsection{Graphical contour}  \begin{table}[hbtp] \begin{tabular}{l} \tikz[x=1mm,y=1mm,rounded corners=2mm] \draw[very thick, gray](0,10)--(10,2)--(20,2){[red]--(30,6)--(40,0)}; \\ Where are you~~~going? \end{tabular} \end{table}  \begin{table}[hbtp] \begin{tabular}{l} \tikz[x=1mm,y=1mm,rounded corners=2mm] \draw[very thick, gray](0,10)--(12,2)--(23,2){[red]--(26,6)--(35,0)}; \\ Where are you going? \end{tabular} \end{table}  This is preferable to setting the individual words on different levels, but requires trial and error in (i) matching the length of the whole contour to the utterance, and (ii) spreading the parts of the contour to match the words of the utterance, either by spacing the words (first example) or adjusting the contour points (second example).  \end{document}   However, my main query is whether anyone has a method for dealing with the issue in 1.3.  This involves trial-and-error in fitting the contour to the words, and I was wondering if there is any way to somehow anchor particular contour coordinates to particular syllables.  I know that lines can be attached to nodes, but I haven't been able to find a way of getting the lines to "float" above the nodes.  Any suggestions for allowing a line of text to be marked with anchor points as it is typed, with the contour then being drawn between these?
91221
The follwing LaTex lines don't print out what I hope to see:  calculate $\rho_i^{t} = \| \mathcal{w}_{i}^{t} - \mathcal{w}_{i}^{t-1} \|_2$   what I get instead of the two w is that:    Can anyone help me please?  Thank you!