It includes the command \newtheorem{teo}{Theorem}[section] in my code, but theorem 0.1 appears when I do \begin{teo}, how to change?
Suppose I define a new theorem "Theorem" and declare that its counter should be reset whenever the subsection counter is incremented or reset:  \newtheorem{theorem}{Theorem}[subsection]   At some point in my (article) document I start a new \section (say, section 2) without starting a \subsection. I expect the first theorem in this section to be numbered with "2.0.1" (which may be considered bad style). However, the theorem is numbered "2.0.2".  Is this "by design" (technically, I didn't start a new \subsection) or a bug? Moreover, what would be a proper workaround? (Such a workaround should not involve manually resetting the theorem counter, and it should work for whatever theorem type I may define in addition to "Theorem".)  \documentclass{article}  \newtheorem{theorem}{Theorem}[subsection]  \begin{document}  \section{bla}  \subsection{blubb}  \begin{theorem} Some text. \end{theorem}  \subsection{foo}  \begin{theorem} Some text. \end{theorem}  \section{bar}  \begin{theorem} Some text. \end{theorem}  \end{document}   EDIT: In response to Seamus' comment: The unexpected counter value also occurs with amsthm and ntheorem.
Do photons truly exist in a physical sense or are they just a useful concept like $i = \sqrt{-1}$? Reading about photons I hear different explanations like "elementary particle", "probability cloud", "energy quanta" and so forth. Since probably no one has ever seen a photon (if "seen" it supposedly - and rather conveniently - ceases to exist) but many experiments seem to verify its properties (or are they maybe adjusted to fit the experiment). I thus can't help wondering if the "photon" is then just a physical/mathematical tool with inexplicable properties (like zero mass - but affected by gravity fields - and constant speed c in space) invented to explain some otherwise unexplainable phenomem and to supplement the elementary particles and their interactions. In short: Are they real or imaginary!  Does anybody know? Or maybe the answer is "blowing in the wind" because to most physicist it probably just does'nt matter as long as it works (as the alternative healers say). Sorry if I seem a little sarcastic here and there. i m using ubuntu 10.10. please tell me how to type in hindi fonts in open office word. please help SQL Server Escape an Underscore How do I escape the underscore character?  I am writing something like the following where clause and want to be able to find actual entries with _d at the end.  Where Username Like '%_d' How do I have a camera follow my object in Unity? I have an object that automatically moves by itself and I want the main camera to automatically follow it.(Like in games such as geometry dash and jetpack joyride)  This is the code for the automatic moving object in case it is needed:  using UnityEngine; using System.Collections; public class automove : MonoBehaviour { public static int movespeed = 5; public Vector3 userDirection = Vector3.right;    public void Update() {     transform.Translate(userDirection * movespeed * Time.deltaTime);  } }   So does anyone know any good scripts I could add to the main camera to follow this object that automatically moves? Thanks in advance! Hey I want to connect the bottom loop with the top loop so that it forms a solid.  I have tried selecting multiple vertices and pressing F but that just creates a large face which I do not want. I have tried using grid fill bu that doesn't work either. The solution that seems to work is by selecting four vertices and pressing F and then selecting the next 4 and pressing F and on and on. That just takes too long. Logistic regression is predicting all 1, and no 0 I am running an analysis on the probability of loan default using logistic regression and random forests.    When I use logistic regression, the prediction is always all '1' (which means good loan).  I have never seen this before, and do not know where to start in terms of trying to sort out the issue.  There are 22 columns with 600K rows.  When I decrease the # of columns I get the same result with logistic regression.   Why could the logistic regression be so wrong?  **Actual from the data**  0 :   41932  1 :   573426  **Logistic regression output**   prediction for 1 when actually 0: 41932 prediction for 1 when actually 1:573426  A**s you can see, it always predicts a 1**   **Random forests does better:**  actual 0, pred 0 : 38800  actual 1, pred 0 : 27  actual 0, pred 1 : 3132 actual 1, pred 1 : 573399 This is a question thats been bothering me a while. I don't even know if it makes sense or not (like if it is a physics question or becoming a philosophical one). But here it goes. The crux of my question basically is that we all know that we can't see light (like in its photon or electromagnetic wave form) directly when it is traveling past us. However, we also know that the way we see objects is by light reflecting off them. This then means that we are "seeing" the light reflecting from the object which then sends the signal to our brain saying that we are seeing a particular object. We know that both light traveling past us and light reflected from objects are made of photons (so they are the same kind)? So then my question is that what is happening to the photon of a light after it is reflected from the objects, that causes us to see it or the object, but on the other hand we can't see light as it is directly traveling past us. Points of a Measure Zero Sets Covered by Intervals Infinitely Many Times Given a measure zero set $E$, by definition we have forall $\varepsilon &gt; 0$, a covering of $E$ by intervals whose lengths sum to $&lt; \varepsilon$.  I want to prove that we can cover $E$ in intervals such that the sum of the lengths the intervals is $&lt; 1$ and each point in $E$ is contained in infinitely many of the intervals.  Do you know how to prove this? Thank you How to export data files using specific number format Density of finite rank operator in compact operators on Hilbert spaces Allow Documentation in other Stack Exchange communities I'm a Salesforce developer and would love Documentation to be available in other Stack Exchange communities. The reason is  a lot of Salesforce developers get help, especially newer ones like myself. The developer forums and documentation on  is mediocre. It would be nice to allow users to create their own and give pack on Isn't $HOME supposed to be the location of the user's home directory? I'm having trouble with a web application I'm writing: The web application, which runs as user nobody, needs to launch an inkscape process to manipulate some SVG files. Because this runs as user nobody, there is no home directory. What I am doing is creating a temporary directory under /tmp and trying to set that as the home directory via export HOME=/tmp/someUniqueId. I then set a few things in that "temporary" home directory, like a symlink .fonts to the folder for the font files to use.  I know this works for finding the ~/.fonts directory. But when I launch Inkscape, all I get is a message that Inkscape could not create the .inkscape directory:    Doesn't $HOME set the location of my home directory? Why is Inkscape still trying to access / as my home directory? Multiple logistic regression power analysis I have a logistic regression model and output an $R^2$ value. I then go and add another predictor variable to fit a second model. I can output a new $R^2$ value associated with the second model. When I run an ANOVA test, I see no significant improvement in the second model, but I want to assess the power associated with including the additional variable in model 2.  I have found  for linear regression that uses an $F$-Test. I want to do something similar for a logistic regression using G*Power.   But there appears to be very little documentation on multiple logistic regression models like my situation. .  From what I understand, in G*Power I set Test Family == z tests and statistical test == logisitic regression. But I am not sure what to set R² other X equal to. Is that the improvement in $R^2$?  Reading the tutorial in 27.4 from the  makes no variation of $R^2$, whereas , does not discuss the improvements made from $R^2$. Virtualbox not seeing any usb devices in the usb filters settings I was following this question but found a problem.   I used guvcview to test the camera, it works. I installed the 12.04 virtualbox release from their website and installed the extension pack. But when I click the usb with the green plus sign it says no devices available. A problem of Schwarz-Pick theorem in complex analysis Set $f \in H(B(0,1)),f(B(0,1)) \subset B(0,1)$，prove that $$|f(z)-\frac{f(0)(1-|z|^2)}{1-|f(0)|^2||z|^2}| \le \frac{|z|(1-|f(0)|^2)}{1-|z|^2|f(0)|^2}$$  I think this problem is supposed to be proved by Schwarz-Pick theorem, I tried hard but failed to build a function to prove it. I even doubted that this problem is wrong, so I want to whether this problem can be proved or be falsified, and how.  Any help would be appreciated. General formula of $\sum_{n\ge1}{\binom{2n}{n}^{-k}}$. If $k=1$, we have \begin{align} \sum_{n\ge1}\frac{1}{\binom{2n}{n}}&amp;=\frac12\sum_{n\ge1}n\mathrm{B}(n,n)\\ &amp;=\frac12\int _{0}^{1}\sum_{n\ge1}n(t-t^2)^{{n-1}}{\mathrm  d}t\\ &amp;=\frac12\int _{0}^{1}\frac{1}{(t-t^2-1)^2}{\mathrm  d}t\\ &amp;=\frac13+\frac{2\sqrt3\pi}{27} \end{align} I wonder if there exists a general formula of $\sum_{n\ge1}{\binom{2n}{n}^{-k}}$ with $k\in\Bbb N^*$. This may involve some ${}_pF_q$ functions. I'm programming a presentation in LaTeX using the beamer class.  However, it defaults to 4:3 aspect ratio slides, while everything I use is 16:9. Is there an easy way to change this using a command or two? Multiple Image in Canvas ItemsControl Condition for a tensor to be decomposable Evaluate  $$\int\frac{e^xdx}{(e^{2x}-1)(e^x+1)}$$  I tried to decompose the integrand into A and B partial fractions.  No success.