I am writing a scientific paper with supplementary information in an additional document. The paper and the supplement share many references, which in the paper are numbered by first appearance in the text.  I would like the references in the supplement to have the same numbers as in the paper. I have additional references there and not all references from the paper show up in the supplement.  I am still working on the documents and the .bib-file is changing. It is generated by .  Is there a way to achieve the numbering the way I like? I haven't tried, but I think, that one way could be to create a .bib-file with all references that I want to use and then number all of them, regardless of their use in the current document. The problem is, that when I change the first appearance of one reference, I have to change the order of the bibtex-entries in the .bib-files, which is not very handy.
This question led to a new package:      I want to reference to citations from other file. Similar to what xr package does to labels, but I want to apply it for the bibliography.  If I'm able to do \cite{someone} in the main file, and it creates let say the number [4], I want to do the same \cite{someone} in a second file, and also create the same number [4]. Similar to what xr does with the labels.  By the way, I tried to add the main.bbl file from the main file. However, that adds all the references to the end of the second file. I want to avoid this.  Is there any package that accomplish this?
Suppose I sold an option on stock X, with strike price Y, and expiry date Z. Suppose I later buy an option on the same stock, with the same strike price, and the same expiry date. Do these two positions cancel out each other (i.e. both contracts cease to exist anywhere), or will I end up with two separate contracts?  Is it the same with the reverse situation? e.g. I bought an option on stock A, with strike price B, and expiry date C. If I later sell an option on the same stock, with the same strike price and expiry date, will I end up with two contracts (one long position, one short position)? Can I transfer trophies and data to a new account? Okay I have created a sub account on my ps3 as a new user. I wanted to change my psn online id. So I have copied all game data from the old account to my new account, but when I go to play the game it still says the trophies and data belong to the old account. I don't want to delete the old one and lose all my saved games and trophies, is there a way to either unlock and allow my new user to own the data and trophies or transfer the trophies and data so that my new account may own it? It's possible to do a array of Matrix in Matlab? Plot x=3 in PGFPlots Where are the outliner toggles in 2.8? The selection toggle arrows in the Outliner disappeared. Is there some preference in the settings that has to be turned on? Is there anything like “cubic formula”? Just like if we have any quadratic equation which has complex roots, then we are not able to factorize it easily. So we apply quadratic formula and get the roots.  Similarly if we have a cubic equation which has two complex roots (which we know conjugate of each other) and one fractional root, then we are not able to find its first root by hit &amp; trial.  So my question is like quadratic formula, is there exist any thing like cubic formula which help in solving cubic equations?  For example, I have an equation $$2x^3+9x^2+9x-7=0\tag{1}$$ and I have to find its solution which I am not able to find because it has no integral solution. Its solutions are $\dfrac {1}{2}$, $\dfrac{-5\pm \sqrt{3}i}{2} $, I know these solutions because this equation is generated by myself.  So how can I solve equations like these?  Also while typing this question, I thought about the derivation of quadratic formula, which is derived by completing the square method.  So I tried to apply ‘completing the cube’ method on the general equation $ax^3+bx^2+cx+d=0$ but it didn't help.  So please help me in finding a cubic formula or to solve the equations like given in example by an alternative method. Recently, my iPhone 5 was stolen, and while I have a new iPhone 6, I received a message from a number of someone claiming to be in possession of the device, with a new number.   All images, contacts, Outlook mail, you name it, are still on the device.  While I realize it's my fault for not having it connected to iCloud to wipe manually, is there anything I can do to have this sensitive information wiped from the device? Examples of the Pigeonhole Principle As most of you might know, the Pigeonhole Principle basically  that      If $n$ items are put into $m$ containers, with $n&gt;m$, then at least one container must contain more than one item   It always surprises me how this trivial - and at the same time powerful - idea might be the key in order to solve extremely complicated math olympiad-problems...  Quick and beautiful solutions are characteristic of pigeonhole problems, which are often a three-part process   Recognize that the problem requires the Pigeonhole Principle Figure out what the pigeons and what the pigeonholes might be After applying the pigeonhole principle, there is often more work to be done   I'll illustrate this with an example I've always liked...     (Example-)Problem: Given a $n\times n$ square, prove that if $5$ points are placed randomly inside the square, then two of them are at most $\frac{n}{\sqrt2}$ units apart.   Step 1: This problem can be solved with the Pigeonhole Principle  Step 2: We divide the $n\times n$ square into four $\frac{n}{2}\times\frac{n}{2}$ squares (pigeonholes). Consequently, at least two points (pigeons) are inside the same $\frac{n}{2}\times\frac{n}{2}$ square.  Step 3: The maximal distance between two points in an $\frac{n}{2}\times\frac{n}{2}$ square is the diagonal, which has the length $\frac{n}{\sqrt2}\qquad\square$  Another problem which can be solved with the Pigeonprinciple is the following:     IMO $1972/1$           Prove that from a set of ten distinct two-digit numbers (in the decimal system), it is possible to select two disjoint subsets whose members have the same sum.      At this point, you might have noticed how useful the Pigeonhole Principle can be, if you know how to recognize and use it.     Question: I would like to work on this amazing principle with my students for a week and was, therefore, gathering problems related to the Pigeonhole Principle with beautiful solutions.   Could you suggest some more? How can I get around giving my mobile phone number to Google? When I want to register an account with Gmail now, it says "Google will send a text message containing a verification code to your mobile phone."  I don't want to give Google my mobile phone number!!  How do I get around this? Having different horizontally  distributed equations inside an align environment, only lines are numbered, but not individual equations.    How can the left equations be numbered using subequations? See also the question   \documentclass{article} \usepackage{amsmath} \begin{document}   \begin{subequations}     \begin{align}        %\label{a}         a &amp;= a ,&amp;       \label{b}         b &amp;= b ,\\       %\label{c}         c &amp;= c ,&amp;       \label{d}       d &amp;= d .     \end{align}   \end{subequations} \end{document}     The solution should be able to either:    attach a label to the left equations, or modify the labels on the right to read (1a,b) and (1c,d)    I couldn't find anything in the documentation of amsmath or other packages. Fibonacci sequence and Euclidean algorithm's connection. Bell's inequality theorem, along with experimental evidence, shows that we cannot have both realism and locality.  While I don't fully understand it, Leggett's inequality takes this a step further and shows that we can't even have non-local realism theories.  Apparently there are some hidden variable theories that get around this by having measurements be contextual.  I've heard there are even inequalities telling us how much quantum mechanics does or doesn't require contextuality, but I had trouble finding information on this.  This is all confusing to me, and it would be helpful if someone could explain precisely (mathematically?) what is meant by: realism, locality (I assume I understand this one), and contextuality.  What combinations of realism, locality, and contextuality can we rule out using inequality theorems (assuming we have experimental data)? MWE:  \documentclass{article} \begin{document} $\wedge{\small\wedge}{\tiny\wedge}$ \end{document}   All the \wedges have the same size... My party bypassed a combat encounter. Should they still get XP? Some thug bandits set up a road block on the main road to extract a toll from passersby. It was twilight when my party encountered them. They used the Rogue to scout ahead, and they ultimately decided to bypass them by taking the long way around with some stealth to avoid the bandits.  Is there RAW justification that I should award XP as if they actually fought and killed the bandits? (5 x 1/8 CR) "BAD ARCHIVE MIRROR" error while installing ubuntu server 12.04 I downloaded the server version of Ubuntu from Ubuntu's official site. Created a Bootable USB from the ISO file I downloaded. I connected through Internet using DHCP in the installation process. While I was installing it on my Desktop Computer (pentium D 1 GB RAM) I have this error "Bad Archive Mirror".   I also found 2-3 questions with same problem on forum but I didn't get solution of my problem from them. Why are there so many different ways to measure disk usage? When I sum up the sizes of my files, I get one figure. If I run du, I get another figure. If I run du on all the files on my partition, it doesn't match what df claims is used. Why are there so many different figures for the total size of my files? Can't computers add?  Speaking of adding: when I add the “Used” and “Available” columns of df, I don't get the total figure. And that total figure is smaller than the size of my partition. And if I add up my partition sizes I don't get my disk size! What gives? How do I mount shared folders in Ubuntu using VMware tools? Was Tracy Mills a part of John Doe's plan from the beginning? In , John Doe is shown as being extremely meticulous and patient while carrying out his plan of murdering and/or torturing people in accordance with the seven deadly sins.  At the end of the film, it is revealed that John Doe had killed and decapitated Tracy Mills, the wife of Detective David Mills.  Was Tracy Mills his intended target from the beginning?  Did John Doe decide to kill Tracy only after Detective Mills and Somerset discovered his residence? I was writing a toString() for a class in Java the other day by manually writing out each element of the class to a String and it occurred to me that using reflection it might be possible to create a generic toString() method that could work on ALL classes. I.E. it would figure out the field names and values and send them out to a String.  Getting the field names is fairly simple, here is what a co-worker came up with:  public static List initFieldArray(String className) throws ClassNotFoundException {      Class c = Class.forName(className);     Field field[] = c.getFields();     List&lt;String&gt; classFields = new ArrayList(field.length);      for (int i = 0; i &lt; field.length; i++) {         String cf = field[i].toString();         classFields.add(cf.substring(cf.lastIndexOf(".") + 1));     }      return classFields; }   Using a factory I could reduce the performance overhead by storing the fields once, the first time the toString() is called. However finding the values could be a lot more expensive.  Due to the performance of reflection this may be more hypothetical then practical. But I am interested in the idea of reflection and how I can use it to improve my everyday programming. With 5 images I have to create a video of 60 seconds in ffmpeg, each image has to display for 15 seconds. after  15 seconds, first image has to fade out and 2nd image has to fade in, after that 2nd image has to fade out, 3rd image has to fade in..etc. Please guide me how can I achieve this using ffmpeg commands.