Instead of having captions such as Caption 2.1, Caption 2.2 and so on, I would like to have Caption 1, Caption 2 etc. in my document, e.g. the captions which are not related to the chapters. I am using the following code:  \begin{figure}[!ht]   \centering     \includegraphics[width=0.7\textwidth]{prizemlje}     \caption{Osnova prizemlja \cite{5}} \end{figure}
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?
Does the curvature of spacetime theory assume gravity? Whenever I read about the curvature of spacetime as an explanation for gravity, I see pictures of a sheet (spacetime) with various masses indenting the sheet to form &quot;gravity wells.&quot; Objects which are gravitationally attracted are said to roll down the curved sheet of spacetime into the gravity well. This is troubling to me, because, in order for objects on the locally slanted spacetime sheet to accelerate, gravity must be assumed. Therefore I ask; does the explanation of gravity as the curvature of spacetime assume gravity? If yes, what is the point of the theory? If No, what am I missing? In Harry Potter and the philosophers stone Harry was "receiving" his letters in a way that was so labour intensive. First, one was sent in the mail, and the others where then sent, either shoved into the letterbox or through the door cracks. It then it got, "out of hand," as twenty four letters found their way inside the house. The letter sender (Minerva, I do believe, Deputy Headmistress) must, obviously have known they were not getting to Harry, so why keep sending them? I cannot even believe Minerva sending more than thirty letters! Why not either,  A) Send the letters directly to Harry  OR  B) Show up at the house, to explain everything.  Why not do a more logical way of sending/explaining Harry's being? Javascript Remoting - sending sObject as argument Iphone 4 won't update past a 7.1.2 I have a IPhone 4  model number A1349 an it won't update past a 7.1.2 it says my software is up to date but I know the latest software is at the least a 8.4.  Why is that? Can a wizard choose where to place their soul piece when creating a horcrux? My web application has a login page that submits authentication credentials via an AJAX call. If the user enters the correct username and password, everything is fine, but if not, the following happens:   The web server determines that although the request included a well-formed Authorization header, the credentials in the header do not successfully authenticate. The web server returns a 401 status code and includes one or more WWW-Authenticate headers listing the supported authentication types. The browser detects that the response to my call on the XMLHttpRequest object is a 401 and the response includes WWW-Authenticate headers. It then pops up an authentication dialog asking, again, for the username and password.   This is all fine up until step 3. I don't want the dialog to pop up, I want want to handle the 401 response in my AJAX callback function. (For example, by displaying an error message on the login page.) I want the user to re-enter their username and password, of course, but I want them to see my friendly, reassuring login form, not the browser's ugly, default authentication dialog.  Incidentally, I have no control over the server, so having it return a custom status code (i.e., something other than a 401) is not an option.  Is there any way I can suppress the authentication dialog? In particular, can I suppress the Authentication Required dialog in Firefox 2 or later? Is there any way to suppress the Connect to [host] dialog in IE 6 and later?    Edit Additional information from the author (Sept. 18): I should add that the real problem with the browser's authentication dialog popping up is that it give insufficient information to the user.  The user has just entered a username and password via the form on the login page, he believes he has typed them both correctly, and he has clicked the submit button or hit enter. His expectation is that he will be taken to the next page or perhaps told that he has entered his information incorrectly and should try again. However, he is instead presented with an unexpected dialog box.  The dialog makes no acknowledgment of the fact he just did enter a username and password. It does not clearly state that there was a problem and that he should try again. Instead, the dialog box presents the user with cryptic information like "The site says: '[realm]'." Where [realm] is a short realm name that only a programmer could love.  Web broswer designers take note: no one would ask how to suppress the authentication dialog if the dialog itself were simply more user-friendly. The entire reason that I am doing a login form is that our product management team rightly considers the browsers' authentication dialogs to be awful. If I write the following class:  public class Example {        int j;       int k;        public Example(int j, int k) {            j = j;            k = k;       }        public static void main(String[] args) {            Example exm = new Example(1,2);            System.out.println(exm.j);            System.out.println(exm.k);       }  }   The program compiles, but when I run the program, the main method will print out two 0s. I know that in order to say that I want to initialize the instance variables in the constructor I have to write:  this.j = j; this.k = k;   But if I don't write it, then which variable is evaluated (or considered) in the constructor (on the left and on the write hand side of the expressions)? Is is the argument or the instance variable? Does it make a difference?  Are there other cases where the use of this is obligatory? Complex zeros of the polynomials $\sum_{k=0}^{n} z^k/k!$, inside balls this is a question from a Temple prelim exam, and i'm trapped in it! We have $p_n(z)=\sum_{k=0}^n\frac{z^k}{k!}$ and we have to prove that $\forall r&gt;0 \quad \exists N\in\mathbb{N}$ s.t. $p_n(z)$ has no zeros in $B_r(0)$ for $n&gt;N$.  I tried to use Rouche's theorem observing that $1+\frac{z^n}{n!}$ has the nth roots of $n!$ as complex zeros, which are outside a fixed ball for n sufficiently large, but i'm having trouble proving that $|1+\frac{z^n}{n!}|&gt;|z+\cdots+\frac{z^{n-1}}{(n-1)!}|$ in $|z|=r$ (if this is true). If anyone could help.. Use of inequality $1 - \cos (x) \leq x^2 /2$ In  answer the value of $1 - \cos(x)$ has to be evaluated in order to find its upper limit, if it exists.  In particular, $x = 2 \pi / n$. The answer is related to the length of a side of a regular $n$-gon inscribed into a unit-radius circumference; because the perimeter of the $n$-gon is always less than $2 \pi$, the single side must always be less than $2 \pi / n$.  The inequality  $$1 - \cos (x) \leq \displaystyle \frac{x^2}{2}$$ (1)  is used and the proof is completed with   $$2(1 - \cos(x)) \leq (2 \pi / n)^2$$  $$\sqrt{2(1 - \cos(x))} \leq 2 \pi / n$$  But it is well known that the cosine is a function $f(x) \in [-1;1]$, so $1 - \cos (x) \in [0,2]$. By using this information, we would obtain  $$1 - \cos (x) \leq 2$$ (2)  The proof would provide  $$2(1 - \cos(x)) \leq 4$$  $$\sqrt{2(1 - \cos(x))} \leq 2$$  which is a completely different result.   Why in that case it is preferable to use (1) instead of (2)? How to choose when it is convenient to use (1) and when to use (2) in a proof? Why must a computer have a BIOS? The  software is built into the PC, and is the first code run by a   PC when powered on ('boot firmware'). When the PC starts up, the first   job for the BIOS is the power-on self-test, which initializes and   identifies system devices such as the CPU, RAM, video display card,   keyboard and mouse, hard disk drive, optical disc drive and other   hardware. The BIOS then locates boot loader software held on a   peripheral device (designated as a 'boot device'), such as a hard disk   or a CD/DVD, and loads and executes that software, giving it control   of the PC.[2] This process is known as booting, or booting up, which   is short for bootstrapping.   Which requisites determine that a computer system must have a BIOS installed on it?  Why can't the Operational System actually do all of the BIOS work? Following , this is how we correctly make the r sound:   Let the throat vibrate since it is voiced. Round the lip a little. Raise the tip of the tongue towards the hard bump behind the upper front teeth,  but do not let the tip of tongue touch the bump. This also makes the center of the tongue go down. The back part of the tongue is raised because you pull it into a tight ball Fold and raise the sides of the tongue so they touch the upper side-teeth.   If we follow the above requirement, our tongue should have an s shape when we pronounce the r sound as depicted in the following sketch:    Is it possible to raise the tip while raising the back and lowering the center of the tongue when making an r sound?   How do native speakers make an r?  P.S. My tongue is very short anyway! What is the weight equation through general relativity? is piped ls the same as ls -1? ls returns output in several columns, whereas ls|cat returns byte-identical output with ls -1 for directories I've tried. Still I see ls -1 piped in answers, like ls -1|wc -l. Is there ever a reason to prefer ls -1? Why does ...|cat change the output of ls? No 'Open with' option to open/run jar file with openjdk FTP and Apache permission issues Prove that $\frac{ 5^{125}-1}{ 5^{25}-1}$ is a composite number Let $a$ be a non-zero real number. Is it true that the value of $$\int\limits_0^\infty \frac{\mathrm{d} x}{(1+x^2)(1+x^a)}$$  is independent on $a$? Is it possible to to take a screenshot of a webpage with JavaScript and then submit that back to the server?  I'm not so concerned with browser security issues. etc. as the implementation would be for . But is it possible? Copy every 512 bytes and skip next 8 bytes from Input file to a Output file I have an input file which is always a multiple of 520 bytes . i,e Input file 1- 1040 bytes Input file 2- 5200 bytes   I need to copy every 512 bytes from input file and skip the next 8 bytes from input files to output file i.e Output file data = Copy first 512 bytes of input file - Skip 8 bytes - Copy second 512 bytes of input file- Skip 8 bytes --.. Therefore, my output file should always be multiple of 512 bytes Input file 1- 1040 bytes        Output file 1 - 1024 bytes Input file 2- 5200 bytes        Output file 2 - 5120 bytes  I need to do this in shell script, any help here please. $f$ a real, continuous function, is it measurable? Let $f: \mathbb{R} \to \mathbb{R} $ be a continuous function. I need to show that is a measurable function.   I tried working with the definition:  Let $f: X \to \mathbb{R}$ be a function. If $f^{-1}(O)$ is a measurable set for every open subset $O$ of $\mathbb{R}$, then $f$ is called a measurable function.  Since $f^{-1}(O)$ also lies in $\mathbb{R}$, I think it is sufficient to show that every subset of $\mathbb{R}$ is measurable. But is this possible?   So far I concluded that $\mathbb{R}$ itself is measurable, since $$\mu(A) = \mu(A \cap \mathbb{R}) + \mu(A \cap \mathbb{R}^c) = \mu(A) + \mu(\emptyset) = \mu(A).$$ How do I need to approach?