All my listings labels appear with prefix 1. in all sections, such as the following example, where the second listing of my paper in section 2 appears with the prefix 1. rather than 2.  I have already realized that \maketitle is the root of this behavior. If I remove \maketitle the labels appear correctly with 1 and 2, rather than 1.1 and 1.2.   How can we keep consistent numbering with the following llncs template:  \documentclass[runningheads]{llncs}  \usepackage{listings}  \begin{document}  \title{PetClinic Sample}  \maketitle  \section{Intro} \label{sec:alternatives}  We will use the PetClinic Spring~\ref{lst:input}  \begin{lstlisting}[language={HTML}, caption={Button}, label={lst:button} ]     &lt;button&gt;&lt;/button&gt; \end{lstlisting}  \section{Idioms}  \begin{lstlisting}[language={HTML},caption={Input},label={lst:input}]     &lt;input&gt; \end{lstlisting}   \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?
Where to get 2010 Census Block data? I would like to download 2010 Census Block Data for several towns and I can't seem to find it on American Factfinder.   Is it there? And if not, does anyone know where I could find it? Center figure that is wider than \textwidth I have a figure that is wider than the \textwidth of my document. (I don't want to change the \textwidth.) As a result, the leftmost part of the figure is flush with the left margin, while the rightmost part spills into the right margin too much. I'd like to center the figure, so that it will exceed the \textwidth equally on both sides. Undefined Symbol ___gxx_personality_v0 on link I've been getting this undefined symbol building with this command line:  $ gcc test.cpp Undefined symbols:   "___gxx_personality_v0", referenced from:   etc...   test.cpp is simple and should build fine.  What is the deal? How do you concatenate matrices? And how do you make block matrices? How to use GCC 4.7 in place of 4.6? So I'm working on a project and I wanted to use some C11 features for C. To use those features GCC 4.7 is required, so I went to synaptic and looked up 4.7, and I found the packages gcc-4.7-base so I installed it[1].   So now that gcc-4.7-base is installed I expected to be able to use 4.7, but no, when I do gcc --version it still shows 4.6.3 even more, when I try to directly call 4.7(via /usr/bin/gcc-4.7) it doesn't exist, though a gcc-4.6 executable does exist.  How do I "activate" GCC 4.7? I read , you do some crazy stuff with update-alternatives, but it doesn't work for me as the gcc-4.7 executable doesn't actually exist on my machine.   Notes: 1. I also saw gcc-4.6-base, so I figured I'd uninstall it, but synaptic attempted to remove every package I had installed and install a Java runtime, so for obvious reason I decided not to remove it. Percentage of overlapping regions of two normal distributions I was wondering, given two normal distributions with $\sigma_1,\ \mu_1$ and $\sigma_2, \ \mu_2$   how can I calculate the percentage of overlapping regions of two distributions? I suppose this problem has a specific name, are you aware of any particular name describing this problem?  Are you aware of any implementation of this (e.g., Java code)? I noticed that when I had a helium filled, latex balloon inside of my car, it moved forward in the cabin as I accelerated forward. The faster I accelerated forward, the faster the balloon went from the back of the car to the front of the car. The balloon didn't have a string.  This became a game with my 4 year old as we drove home. We figured out where the balloon would go based on how fast I accelerated, turned corners etc.  I expected that it would act a lot like the water in a cup does, but it was the total opposite it seemed.  What forces caused this behavior?  I assumed it has something to do with the fluid dynamics in the closed cabin, but I can't figure it out. Is there a video that explains how Stack Overflow works and can be used? Is there a video that explains how Stack Overflow works and can be used? I.e. a short tutorial to get new users started. If there isn't, then the people behind this site or others who know how it works should make one, because it's overwhelmingly different from other sites and thus difficult for beginners. How do I show that a two-qubit state is an entangled state? The Bell state $|\Phi^{+}\rangle = \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle )$ is an entangled state. But why is that the case? How do I mathematically prove that? My phone was just stolen an hour or so ago. Are there any options for tracking? How does a  work? If seen from the outer side, we can see through thinking it is transparent, while if seen from the inside, the glass acts as a mirror. How? try+gerund/infinitive (Difference in meaning) Returning multiple values from a C++ function How do I find this conditional expectation? A generalization for Serret's integral $\int_0^a \frac{\ln(1+ax)}{1+x^2}dx$ (I am not asking how to block my posts on my timeline.)  I am asking how I can block my activity, such as posting in open groups, making comments on people's posts, adding a friend, liking a photo, liking a post, etc., from people seeing it in their news feeds?  I don't want people seeing my interactions with other people. I think this is just something I've grown used to but can't remember any proof.  When differentiating and integrating with trigonometric functions, we require angles to be taken in radians. Why does it work then and only then? Gparted: move extended partition on the left I have some free disk space on the left of my ubuntu (sda5)  What is best solution to extend sda5 ?  I can    copy sda3 or sda5 with dd to bigger disk. delete sda3,5,swap create sda3,5,swap dd original partition.   Not sure how to do it properly.  May be there is a simpler solution. Problem writing aux file I have named him/he who shall not be named. Which of these is correct? I think it should be "him" because "him" is a direct object in this context. In this context, "him/he who shall not be named" is not a proper noun.