I'm having issues with the placement of the values in my tree, i'm not quite sure whats the cause of it. Any help is appreciated.  \documentclass{article} \usepackage{mathtools} \usepackage{newfloat}  \usepackage{caption} \usepackage{subcaption} \usepackage{tikz} \usepackage{tikz-qtree}  \begin{document}  \begin{figure} \centering \begin{tabular}[t]{|c|c|}\hline   \begin{subfigure}{.5\textwidth}     \centering     \Tree[.1 [.5 ][.2 ][.1 ]]     \caption{i=1, (Q = \{5, 2\})}   \end{subfigure} &amp;   \begin{subfigure}{.5\textwidth}     \centering     \Tree[.1 [.5 [.5 ][.6 ][.5 ]][.2 ][.1 ]]     \caption{i=2, (Q = \{2, 6\})}   \end{subfigure} \\\hline   \begin{subfigure}{.5\textwidth}     \centering     \Tree[.1 [.5 [.5 ][.6 ][.5 ]][.2 ][.1 ]]     \caption{i=3, (Q = \{6, 4\})}   \end{subfigure} &amp;   \begin{subfigure}{.5\textwidth}     \centering     \Tree[.1 [.5 [.5 ][.6 [.8(GOAL) ]][.5 ]][.2 [.4 ][.2 ][.1 ]][.1 ]]     \caption{i=4, (Q = \{4\})}   \end{subfigure} \\\hline \end{tabular} \caption{BFS S,R,L} \end{figure}  \end{document}
I have a graph. This is my code.    \documentclass[10pt]{article}     \usepackage{pgf,tikz}     \usetikzlibrary{arrows,patterns}     \pagestyle{empty}      \definecolor{ttqqcc}{rgb}{0.2,0,0.8}     \definecolor{ffqqtt}{rgb}{1,0,0.2}     \definecolor{ttqqff}{rgb}{0.2,0,1}     \definecolor{uququq}{rgb}{0.25,0.25,0.25}      \begin{document}      \begin{tikzpicture}[line cap=round,line join=round,&gt;=triangle 45,x=1.0cm,y=1.0cm]      \draw[-&gt;] (-3.63,0) -- (3.67,0);     \foreach \x in {-3,-2,-1,1,2,3}       \draw[shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt)          node[below] {\footnotesize $\x$};     \draw[color=black] (3.48,0.07) node [anchor=south west] { $x$};      \draw[-&gt;] (0,-1.93) -- (0,5.57);     \foreach \y in {-1,1,2,3,4,5}       \draw[shift={(0,\y)}] (2pt,0pt) -- (-2pt,0pt)          node[left] {\footnotesize $\y$};     \draw[color=black] (0.06,5.19) node [anchor=west] { $y$};      \draw (0pt,-10pt) node[right] {\footnotesize $0$};      \clip(-3.63,-1.93) rectangle (3.67,5.57);     \draw[pattern color=ffqqtt,pattern=north east lines,fill opacity=0.1, smooth,samples=50,domain=0:1.0]      plot(\x,{\x^4-4*\x^2+3}) -- (1,0) -- (0,0) -- cycle;     \draw[pattern color=ttqqcc,pattern=crosshatch,fill opacity=0.1, smooth,samples=50,domain=1.0:1.7320508075688772]      plot(\x,{\x^4-4*\x^2+3}) -- (1.73,0) -- (1,0) -- cycle;      \begin{scope}[xscale=-1]     \draw[pattern color=ffqqtt,pattern=north east lines,fill opacity=0.1, smooth,samples=50,domain=0:1.0]        plot(\x,{\x^4-4*\x^2+3}) -- (1,0) -- (0,0) -- cycle;     \draw[pattern color=ttqqcc,pattern=crosshatch,fill opacity=0.1, smooth,samples=50,domain=1.0:1.7320508075688772]        plot(\x,{\x^4-4*\x^2+3}) -- (1.73,0) -- (1,0) -- cycle;     \end{scope}      \draw[smooth,samples=100,domain=-3.6342419080068153:3.665758091993186] plot(\x,{(\x)^4-4*(\x)^2+3});      \fill [color=uququq] (-1.73,0) circle (1.5pt);      \fill [color=uququq] (-1,0) circle (1.5pt);      \fill [color=uququq] (1,0) circle (1.5pt);      \fill [color=uququq] (1.73,0) circle (1.5pt);      \end{tikzpicture}     \end{document}   When I see the DVI output DVI, I have    And if I look at the PDF file, I have
I would like to be able to transpose a tabular(x) table like in the following example. It is not necessary to be completely automated, but I don't want to change the data order, which is a painful and stupid. By "not completely automated" I mean that e.g. the headers can be done seperately etc.  Let's see the MWE:  \documentclass{article}  \usepackage{booktabs} \def\Midrule{\midrule[\heavyrulewidth]}  \begin{document}  \centering  \begin{tabular}{*6c}\toprule \bfseries Name &amp; Alice &amp; Bob &amp; Chuck &amp; Dave &amp; Eve\\\Midrule \bfseries Sex &amp; Female &amp; Male &amp; Male &amp; Male &amp; Female\\\midrule \bfseries Age &amp; 18 &amp; 19 &amp; 20 &amp; 21 &amp; 22\\\bottomrule \end{tabular}  \bigskip  Which I want to look like  \bigskip  \begin{tabular}{*3c}\toprule \bfseries Name &amp; \bfseries Sex &amp; \bfseries Age\\\Midrule Alice &amp; Female &amp; 18\\\midrule Bob &amp; Male &amp; 19\\\midrule Chuck &amp; Male &amp; 20\\\midrule Dave &amp; Male &amp; 21\\\midrule Eve &amp; Female &amp; 22\\\bottomrule \end{tabular}   \end{document}     Note: I know that , but I would like to get it without expl3 (mostly because people would might use my code quite often have an old LaTeX installed and I cannot be convincing them to change this). What is the sign of the work done on the system and by the system? What is the sign of the  done on the system and by the system?  My chemistry book says when work is done on the system, it is positive. When work is done by the system, it is negative.  My physics book says the opposite. It says that when work is done on the system, it is negative. When work is done by the system, it is positive.  Why do they differ? Search using symbols is broken We used to be able to , but that now appears to be broken.  I'd expect a  to return a result, but instead the search engine appears to put quotes around the whole request; the search box shows the search has been replaced with "[python] += list" and the  I was looking for doesn't appear among the returned questions.  Using quotes around the symbols do not seem to help here;  returns an empty result. The latest beta update made the app crash a lot:   when I press 'Add comment'. after deleting a comment. after up/down/unvoting a post (happened when I upvoted an answer) after editing a post (but the edit is applied).   Spec: Nexus 5 on Lollipop 5.1.1, SE App v1.0.66 (beta) How to get distance when acceleration is not constant? I have a background in calculus but don't really know anything about physics.  Forgive me if this is a really basic question.  The equation for distance of an accelerating object with constant acceleration is:  $$d=ut        +\frac{1}{2}at^2$$  which can also be expressed  $$d=\frac{\mathrm{d}x}{\mathrm{d}t}t+\frac{\mathrm{d^2}x}{\mathrm{d}t^2}\frac{t^2}{2}$$  (where x(t) is the position of the object at time t)  That's fine for a canonball or something like that, but what about a car accelerating from 0 to cruising speed?  The acceleration is obviously not constant, but what about the change in acceleration?  Is it constant?  I suspect not.  And then what about the change in the change of acceleration, etc. etc.?  In other words, how does one know how many additional terms to add in the series?  $$d=\frac{\mathrm{d}x}{\mathrm{d}t}t+\frac{\mathrm{d^2}x}{\mathrm{d}t^2}\frac{t^2}{2}+\frac{\mathrm{d^3}x}{\mathrm{d}t^3}\frac{t^3}{3}+\frac{\mathrm{d^4}x}{\mathrm{d}t^4}\frac{t^4}{4}\cdot etc. \cdot ?$$ How do they express the time, in American and British English? Solve for $A,B$: $\mathrm{LCM}(A,B)=168$, $\mathrm{HCF(A,B)}=12$ I am reading the book Darth Plagueis, and when an assassination attempt is made on him by use of a nuclear bomb, the book states that nuclear weapons are scarcely available.   I searched briefly but found nothing on this and wondered if an explanation is available. Why would nuclear weapons be rare in a universe with such advanced technology across the board? UnboundLocalError: local variable 'url_request' referenced before assignment In 1D why are vectors, such as, e.g., velocity $v$ and acceleration $a$, not written with a vector arrow? In my textbook instantaneous velocity and acceleration are wrote only as $v$ and $a$ in the chapter of One dimensional motion. Instead, in two dimensional motion chapter they are written with the "arrow" symbol upon them, $\vec{v}$ and $\vec{a}$.  Why if they are both vectors they don't have an arrow in that particular chapter? I just can't get it. To get rid of dust that had gathered near the fan, I put a vacuum cleaner to the air intake (with the computer turned off).  This removed the dust.  It also caused the fan to rotate at a fairly high speed. Quite faster than normal speed, judging from the sound.  Do I risk destroying stuff by doing this? How to connect to Android through SSH over 3G/4G public IP? Electric shock - was I stupid, unlucky, or a combination of both? One of the double sockets in our garage needed replacing (damaged after a washing pole hit it) - a pretty trivial job that I'd done before. So I flipped the MCB for the ring main, used a non-contact voltage tester to check nothing was there, and set to work. I disconnected the old socket fine, and was lining the cables up to fit into the new socket when... ow.  My finger bridged the live and earth pins, and suffice to say the live wire was very much alive. Bar a few finger spasms I was fine fortunately, and believe me I realise I was very lucky in that respect (I'm in the UK, so that was 240V.) Before finishing the job I then shut off the entire property's electrics - I was taking no more chances.  Further inspection confirmed two things I immediately suspected at this point - the MCB in the garage (installed before we moved into the house) was shutting off power via the neutral, not the live, and the voltage tester was dodgy (I had tested it on the same socket earlier and it seemed fine, further testing showed it presumably had a loose connection internally and only worked sporadically.) Needless to say it's now in the bin, and an electrician has been called to sort the MCB and check the rest of the house for similar issues.  Unsurprisingly this has shaken me up a bit - I would say I'm a rather safety conscious person, and in this case thought I'd done all the checks properly (including taping over the relevant trip switch to ensure no-one flipped it back on while I was working.) In some ways I can't help feeling I was unlucky that the MCB was wired by a cowboy, in combination with the voltage tester failing in the way that it did, at the time that it did. However, I'm not one to solely blame tools - clearly some, if not most of the blame here lies with myself also.  So in short, what should I have done differently - and was I primarily being stupid, or really quite unlucky? What exactly is an environment variable? I know that VARIABLE=value creates an environment variable, and export VARIABLE=value makes it available to processes created by the current shell. env shows the current environment variables, but where do they live? What comprises an environment variable (or an environment, for that matter)? Are the tags shown in a particular order? I noticed that, sometimes, the tags I add to a question are not shown in the same order I wrote them, when the question is saved. Are they shown in a particular order? If they are, in which order they are shown? This is by far the weirdest problem I've come across,  My mac can perfectly access internet through safari web browser, but when I tried to do   ping www.google.com   through the terminal, it's requests is being timed out.  None of the other apps are able to reach internet either. Dropbox, Skype, Spotify all showing offline, except the browser itself  I'm guessing something bad with the DNS, but spend 2 hours trying to fix this with no luck I've read through the elementary proof of why there exists a solution $x$ to $x^2\equiv -1\pmod p$ iff $p\equiv 1 \pmod 4$ for $p$ an odd prime. Is there a group theory generalization for this fact as well? Looking for Scifi Short Story in a Jerry Pournelle edited Anthology I'm looking for the title of the short story, and any of the volumes of anthology it may have appeared in. I know for SURE it's in one of Jerry Pournelle's anthologies, either Star Empires and There will be War, but as I have all the eBook version of THere will be war, I'm almost certain it wasn't there.   Anyway, the book is about a Commodore who went back to the academy to visit. I'm not sure what his name was, but I'm pretty sure he lived at "Mercer Hall". He had 2 roommates, and a butler to take care of all their needs, like putting away their stuff. (He even tried to argue with the hall monitor) The butler once took away their bottle of booze UNTIL they study for mid-term, and only gave it back AFTER they wrote to their mother AFTER the exam.   The book also goes heavily into "Bless you!" or the translated version, "May the great cosmic magnificence be benevolent toward you" or something like that. Basically, it's about as inoffensive as possible, and if you say it enough, and the aliens are reasonable, they will give up and things will resolve peacefully.   My Google-fu is weak and I can't find this particular story, or which volume of anthology was it in.   Little help? Adding a script to the page dynamically with jQuery never uses the cached file I have just upgraded to Ubuntu 17.10 and found out there is no option to have 2 by 2 workspaces. I was able to configure 4 "static" workspaces using , but I would like to have them in 2 rows by 2. Any ideas?