I'm writing in the document class, and using the align environment from the amsmath package.  My align environment in chapter 2 is giving numbers as (2.2), (2.3) etc (since it's in chapter 2), where I'd like it to appear as just (2), (3) etc.  I've tried using \numberwithin{equation}{document} command, but 'document' isn't accepted.
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?
dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with different file `/usr/lib/xorg/protocol-precise.txt', not allowed I just installed Ubuntu (12.04.4) and I upgraded to 13.10  I have no idea how to fix this :/  $ sudo apt-get install -f  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   xserver-common-lts-saucy 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded. 1 not fully installed or removed. After this operation, 1,718 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 175174 files and directories currently installed.) Removing xserver-common-lts-saucy ... Removing 'diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-saucy' dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with   different file `/usr/lib/xorg/protocol-precise.txt', not allowed dpkg: error processing xserver-common-lts-saucy (--remove):  subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing:  xserver-common-lts-saucy E: Sub-process /usr/bin/dpkg returned an error code (1) "If" and "Whether" - Is interrogative IF always replacable by WHETHER? $(p\!-\!1\!-\!h)!\,h! \equiv (-1)^{h+1}\!\!\pmod{\! p}\,$ [Wilson Reflection Formula] What is syntax highlighting and how does it work? Reading the reviews of the  on Google Play,  said that since Chrome supports HTML5, he had managed to persuade the BBC iPlayer website to play him streams meant for iPad/iPhone devices by spoofing an IOS user agent string on his Nexus 7.  How might I go about getting the same thing to work myself?  I have looked at  and  but both seem to concentrate on the Dolphin browser. Also, please mention if a solution will require me to root my Nexus-7.  Incidentally, I also tried using  with Firefox, but although Firefox supports HTML5 and the iPlayer website shows pages without either install flash or use external app messages, it still won't play the streams (it just sits swirling its progress wheel), hence looking for a solution for Chrome. Can I travel to UK with my Italian national daughter and husband with my permesso di soggiorno? I have an Italian permesso di soggiorno and I want to join my husband in the UK. My baby and my husband are Italian nationals. Can I travel with them with only the permesso di soggiorno? How do I hide an element when printing a web page? I have a link on my webpage to print the webpage. However, the link is also visible in the printout itself.  Is there javascript or HTML code which would hide the link button when I click the print link?  Example:   "Good Evening"  Print (click Here To Print)   I want to hide this "Print" label when it prints the text "Good Evening". The "Print" label should not show on the printout itself. ArcPy importing error after setting path? This questions has been asked before too and I did go through most of the suggestions. Things I have tried so far: setting up correct  path variable environment, installing anaconda 32 bits, python 2.7, or even switching to python 2.7 in cmd while initially using Anaconda 3 , adding Desktop 10.4.pth file with  following path.  C:\Program Files (x86)\ArcGIS\Desktop10.4\bin C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolBox\Scripts   I also added those paths in environment variable   These suggestions help me to reduce the error. But Now I am getting a different error. Looks like python can find arcpy but missing another package.  Getting this error while trying to import arcpy in python 3.6.   File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\__init__.py", line 22, in &lt;module&gt;     from arcpy.geoprocessing import gp    File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in &lt;module&gt;     from _base import *  ModuleNotFoundError: No module named '_base'   Any suggestions? I created a custom counter 'rtaskno' and a command '\rtask' as following:  \newcounter{rtaskno} \newcommand{\rtask}{%    \stepcounter{rtaskno}%    \thertaskno}   I like to use them as following:  \section{Task \rtask. Blah Blah..}  \section{Task \rtask. Blah Blah..}  \section{Task \rtask. Blah Blah..}  \section{Task \rtask. Blah Blah..}   Later in the text, if I want to cross-reference 'Task 3', how can I do it? Where to put label? What does a Terminator do after its mission is accomplished? A Terminator is essentially given a mission or an objective ("Go back in time and kill Sarah Connor" or something of the like).  What does a Terminator do once its mission is accomplished?  We see in Terminator 2: Judgment Day (the live-action movie) that the  (played by Arnold Terminator Schwarzenegger) completed its mission of protecting the Connors, and then sort-of just melted itself into nothingness (presumably to protect the world from discovering Terminators again).  But what would the  or the  (in Terminator 3) have done?   Are they given multiple directives ("Go kill Sarah Connor, then go kill Robert Baratheon, and then have a nice hot bath; you've earned it")?  This question is related, but not a dupe: Which Marvel TV episodes are related to the MCU movies? I've kept up to date with the movies from the MCU, but I am grossly out of date with the TV series, of which I think there is only Agent Carter (not as relevant for the movies I think, besides that scene in Captain America 2), and S.H.I.E.L.D. (which from what I've seen seems more relevant, with  coming in phase 3).   I've gained what I can from . But I can't tell which of the episodes listed are relevant to the movies (clearly, it seems that none are essential), and which movies are relevant to the episodes.  So which episodes are related? Autocovariance of an ARMA(2,1) process - derivation of analytical model for $\gamma( k)$ Can I pay two different costs with the same payment? Say I have a Zombie token, , and  on the battlefield. Can I sacrifice the Zombie token to activate both the Altar's and Seer's abilities?  Similarly, if I have one card in hand, and  and  on the battlefield can I discard the one card to both of their abilities?  If I have a  with 3 charge counters can I activate both of its abilities by tapping it to add a counter, and tapping it to remove 3 counters and destroy a permanent without untapping it in between? Integration of exponential and square root function Print numbered paragraph after title with Biblatex My question is related with Biber and Biblatex (latest versions). I need to quote the number of a paragraph of an old Christian text which is published within a book printed nowadays.   More clearly, I'm working with this Biblatex item (it's in Italian):  @INBOOK{Clemente1984Lettera,   author = {Clemente di Roma},   title = {Lettera di Clemente Romano ai Corinti},   year = {1984},   booktitle = {I Padri apostolici},   editor = {Quaquarelli, Antonio},   location = {Roma},   pages = {41-92},   publisher = {Città Nuova} }   I quote it in a common LaTex file with the BibTex key:  \cite[42]{Clemente1985Lettera}   With a humanistic Biblatex style, the final citation is:  Clemente di Roma, Lettera di Clemente Romano ai Corinti, in "I Padri apostolici", edited by A. Quaquarelli, Roma 1985, p. 42.  Anyway, I need to quote specifically the n. 2 of the letter of Clement, so I have to print this number just after the title "Lettera di Clemente Romano ai Corinti". So, I'd like to have this citation:  Clemente di Roma, Lettera di Clemente Romano ai Corinti, n. 2, in "I Padri apostolici", edited by A. Quaquarelli, Roma 1985, p. 42.  Now, I can find no Biblatex field to store the "n. 2" text, and no way to print it after the title. Of course, I could create a specific item in the bibliographic file in which the title field, or another one which is supposed to follow it, contains the "n. 2" indication. Anyway, this solution is very bad to me, because I should fill my archive with items of specific citations, and not of single titles.  What I'm looking for is what I've already implemented in the Bibfilex citations system (), which is moreover far less powerful that Biber: the possibility to add a pipe in the postnote of a BibTex key to separate a possible indication of a number of a paragraph, to be printed just after the title, from the pages of the volume. So a key like that  \cite[2|42]{Clemente1985Lettera}   should print   Clemente di Roma, Lettera di Clemente Romano ai Corinti, n. 2, in "I Padri apostolici", edited by A. Quaquarelli, Roma 1985, p. 42.  Anybody knows how to do that with Biber and Biblatex?  Thanks. Before the seasonal flu vaccine was recommended for all healthy adults, people in developed countries might get vaccinated against on the order of 10 different pathogens and develop immunity for some more via natural exposure.  Now the same person is expected to take a seasonal flu vaccine for a new strain every year - won't this put them in an uncharted territory as far as effects on the immune systems are concerned within a couple of decades? What are some good tutorials on writing custom styles (classes) that clearly explain commands used and some of the features that TeX has to offer in the way of styles? Can a university revoke one's degree for his minor misconduct? C++ deleting line of text in a file I looked up several tutorials on how to install and they dont work. I do everything correctly but then i get this:     The file   '/home/mike/Downloads/minecraft.jar'   is not marked as executable.  If this   was downloaded or copied from an   untrusted source, it may be dangerous   to run.  For more details, read about   the executable bit.   I run the minecraft.jar with the Sun java runtime 6 but it doesnt work:/. Any help would be greatly appreciated!