I want to show table number starting from 1 to so on seprately on each chapter. I am trying to use setcounter, but its not giving the desired results.  \documentclass[english]{book} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{array} \usepackage{enumitem}  \makeatletter \providecommand{\tabularnewline}{\\} \makeatother  \usepackage{babel}  \begin{document} \setcounter{table}{4}  \chapter{One}  \begin{table}[htbp] \centering  \caption{I want to give number Table-1}  \begin{tabular}{l&gt;{\raggedleft}p{50pt}r} \hline  \textbf{Province} &amp; \textbf{Import }\textbf{\scriptsize{}('000' USD)} &amp;  \textbf{Percent}\tabularnewline \hline  Punjab &amp;  393.8  &amp; 21.35\tabularnewline Sindh &amp;  521.4  &amp; 72.53\tabularnewline \hline  \textbf{Grand Total} &amp; \textbf{ 321.2 } &amp; \textbf{ 100.00 }\tabularnewline \hline  \end{tabular}  \end{table}  \begin{table}[htbp] \centering  \caption{I want to give number Table-2}  \begin{tabular}{l&gt;{\raggedleft}p{50pt}r} \hline  \textbf{Province} &amp; \textbf{Import }\textbf{\scriptsize{}('000' USD)} &amp;  \textbf{Percent}\tabularnewline \hline  Punjab &amp;  393.8  &amp; 21.35\tabularnewline Sindh &amp;  521.4  &amp; 72.53\tabularnewline \hline  \textbf{Grand Total} &amp; \textbf{ 321.2 } &amp; \textbf{ 100.00 }\tabularnewline \hline  \end{tabular}  \end{table}  \chapter{Two}  \begin{table}[htbp] \centering  \caption{I want to give number Table-1}  \begin{tabular}{l&gt;{\raggedleft}p{50pt}r} \hline  \textbf{Province} &amp; \textbf{Import }\textbf{\scriptsize{}('000' USD)} &amp;  \textbf{Percent}\tabularnewline \hline  Azad Jammu \&amp; Kashmir &amp;  2.1  &amp; 0.03\tabularnewline Balochistan &amp;  1.6  &amp; 0.08\tabularnewline EPZ &amp;  9.7  &amp; 0.41\tabularnewline \hline  \textbf{Grand Total} &amp; \textbf{ 321.2 } &amp; \textbf{ 100.00 }\tabularnewline \hline  \end{tabular}  \end{table}  \end{document}
Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)?  And vice versa: Some document elements (e.g., figures in the article class) are numbered continuously. How can I achieve per-section numbering?  \documentclass{book}% for "vice versa" variant, replace `book` with `article`  \begin{document}  \chapter{foo}% for "vice versa" variant, replace `\chapter` with `\section`  \begin{figure} \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure}  \end{document}   Bonus question: Is it possible to adjust the numbering of the sectioning headings themselves? Can I, e.g., switch from per-chapter to continuous numbering of sections in the book class?
Based on the following interchange between Harry and Dumbledore in the pivotal &quot;King's Cross&quot; chapter of Deathly Hallows, I was wondering when exactly Dumbledore put together that Harry would have to die in order to bring about Voldemort's ultimate demise:  &quot;And you knew this? You knew--all along?&quot; &quot;I guessed. But my guesses have usually been good,&quot; said Dumbledore (Deathly Hallows, 599, hardcover).  The conversation that spurred Harry's question includes material dating back to Halloween '81, but also specifically mentions the events of the graveyard from GoF. So, &quot;knowing all along&quot; could refer to everything (i.e., Harry must die, Voldemort ignorantly tethered him to life, etc.) or just that Voldemort tethered him to life. Other important information pertaining to this question can be found in OOTP, when Dumbledore confirms (if he didn't already know) that Harry contains part of Voldemort's soul. He uses the silver instrument to find out that Harry is just like Nagini, having the ability to share mind and soul with Voldemort. He also says the following:  &quot;I guessed, nearly fifteen years ago,&quot; said Dumbledore, &quot;when I saw the scar upon your forehead, what it might mean. I guessed that it might be the sign of a connection forged between you and Voldemort&quot; (Order of the Phoenix, 826-827, hardcover).  While confirming that he guessed that Harry might share a connection with Voldemort from the very beginning, Dumbledore does not confirm with this statement that he knew Harry would ultimately have to give up his life. In Philosopher's Stone, when Dumbledore drops off Harry on the Dursley's doorstep, we know he is not entirely truthful with McGonagall.  McGonagall asks: &quot;How in the name of heaven did Harry survive?&quot; &quot;We can only guess,&quot; said Dumbledore (Philosopher's Stone, 12, hardcover).  Of course, this was a lie. Dumbledore already knew how Harry survived, otherwise he wouldn't be delivering Harry to Lily's sister to extend the blood sacrifice. By proxy, he also knows that Voldemort will return b/c of Horcruxes, otherwise he wouldn't be so worried about Harry. Finally, when asked in the same scene if he could remove the scar, Dumbledore says:  &quot;Even if I could, I wouldn't. Scars can come in handy&quot; (Philosopher's Stone, 15, hardcover).  So, did Dumbledore know at this very moment that Harry would have to die? Did he at least guess it to be true during this scene? We know he gains perfect confirmation in OOTP, but did he know it &quot;all along,&quot; as a particular reading of the King's Cross interchange in DH would have us believe? How can I check if an application is running from a batch (well cmd) file?  I need to not launch another instance if a program is already running. (I can't change the app to make it single instance only.)  Also the application could be running as any user. How can I correct a reviewer's opinion? This one-liner removes duplicate lines from text input without pre-sorting.  For example:  $ cat &gt;f q w e w r $ awk '!a[$0]++' &lt;f q w e r $    The original code I have found on the internets read:  awk '!_[$0]++'  This was even more perplexing to me as I took _ to have a special meaning in awk, like in Perl, but it turned out to be just a name of an array.  Now, I understand the logic behind the one-liner:  each input line is used as a key in a hash array, thus, upon completion, the hash contains unique lines in the order of arrival.  What I would like to learn is how exactly this notation is interpreted by awk. E.g. what the bang sign (!) means and the other elements of this code snippet.  How does it work? how to extract multiple zipped and rar files recursively? I have a folder ExampleFolder which contains many zipped folders. These zipped folders also contains multiple zipped folders. How to go through ExampleFolder and extract all of its zipped folders recursively?   Note that ExampleFolder itself, is not zipped, it's just a normal folder  Okay now I know what's happening Rinzwind and nux answers are both correct (except that I have to keep pressing Y or A forever)  But it's seems that some of the zipped files, contained zipped files and rar files as well, the rar files will not be extracted by   while [ "`find . -type f -name '*.zip' | wc -l`" -gt 0 ]; do find -type f -name "*.zip" -exec unzip -- '{}' \; -exec rm -- '{}' \;; done    or whatever  Edit 2 Some files are named .r00 and r01, .r02 up to r14, they are rar files, but not .rar How to disable the touchpad? I want my touchpad to be disabled when I use my mouse. How can I do that? touchpad-indicator has stopped working on 11.10. It used to work on 11.04. Gnome3 is not a solution as I don't like it and find it buggy. It would seem that LIGO measures wibbles in the metric (not manifold) of spacetime:    It would seem that the expansion of the universe is an expansion of the metric of spacetime:    Imagine for a moment that LIGO is not an interferometer. (So, it just plain times speed changes, rather than using phase shift of orthogonal directions.)  If the ends of one of the arms was indeed receding away from each other, at a speed consistent with the expansion of the universe, is the sensitivity of real-world LIGO of the needed sensitivity of a machine which could measure that shift?  On other words: ideally I'd like to know these two meters:  (A) The left arm of LIGO is about 4km. It was stretched/shrunk (a few times) for roughly .01 seconds by the gravitational wave.  How many meters was it stretched/shrunk in .01 seconds?  (B) Assuming the same abstract LIGO arm was affectable and affected by the expansion of the Universe. How many meters is it stretch/shrunk every .01 seconds?    Note - of course, an interferometer is an ingenious device to measure extremely small changes in speed - assuming the changes are orthogonal. Of course, an interferometer, per se, can't at all measure the expansion of the universe since that is uniform in both directions. The sense of my question is, can something that measures distance changes > as accurately as &lt; the LIGO does, measure the expansion of the universe?  How big or small is the ongoing expansion of the universe compared to the wibble from the black hole system in question? Smaller membership symbol To mean that x is an element of X, we can write x \in X. However, in the standard packages, the membership symbol that results is too big; it draws too much attention to itself. This is especially evident when we're doing set theory and writing sets as lowercase, as in x \in y. Does anyone one how to draw a less attention-seeking membership symbol? Is it possible to unwrap materials made in Vertex Paint? I painted an group of objects in Blender using the Vertex Paint and was wondering if it would be possible to unwrap the mutliple materials(when the objects are joined together using Ctrl+J)? Do I have to paint it all over again? One page website - Effect on SEO I'm considering re-designing my personal website to promote my web services in my local area.  My issue is whether to do a one page website with a scroll-to navigation system. What effect does this have on SEO. As i understand it, you set stuff like h1's and meta description on specific page content. How does this work when all of your different content is on one page? Same update keeps showing up everyday Extracting phone number from string Automatically inserting "Section", "Subsection", etc MySQL sort after argument in IN() What is the order when doing $x^{y^z}$ and why? In a Poisson model, what is the difference between using time as a covariate or an offset? I recently discovered how to model exposures over time using the log of (e.g.) time as an offset in a Poisson regression.  I understood that the offset corresponds to having time as covariate with coefficient 1.  I'd like to better understand the difference between using time as an offset or as a normal covariate (therefore estimating the coefficient). In which situation should I want to use one method or the other?  UPGRADE: I don't know if it is interesting, but I ran a validation of the two methods using randomly split data repeated 500 times and I noticed that using the offset method leads to a larger test error. How to show that the nth power of a $n \times n$ nilpotent matrix equals to zero $A^n=0$ I normally dual-boot with 12.04 and Win XP pro sp3 on a Thinkpad R60.  I needed to reinstall windows because of problems piling up, so I ran the computer's built-in hard-disk recovery software.  I told it not to mess with the other partitions, but somehow it deleted the Linux partition.  That's what I was using to backup all of my windows files, so now everything I have is gone.  I just ran the USB setup with linux, and the partition is deleted - it just shows it as empty space.    Is there ANY way to get all of my files back? Sensitivity to initial conditions and topological transitivity An annulus in $\mathbb R^2$ is path connected Let $A = \{(x,y) \in\mathbb{R}^2: a \leq (x-c)^2+(y-d)^2 \leq b\}$ for given $a,b,c, d$ real numbers. I want to show that $A$ is path-connected.  How can I do that?  I know that every open subset of $\mathbb R^2$ that is connected is path connected. But this is obviously not open so I cannot use that. Then I thought of multiple cases. If we take arbitrary $x$ and $y$ and draw the line between them and they do not intersect with the circle centred at $(c,d)$ then we can obviously draw a line between the points which is still in the set, so we can then define the function. I am stuck on the other case.