I use hyperref for referencing all my figures and it works great for everything except figures tikzpicture. For figures containing a graphic, the reference outputs Figure N. for tikz, it outputs section N of the nearest parent section.  Here is my sample code given:  \documentclass{article} \usepackage[utf8]{inputenc}  \usepackage{tikz} \usepackage{hyperref}   \begin{document} \section{my-section} \begin{figure} \centering \begin{tikzpicture}     \node(n) {$n$}; \end{tikzpicture} \label{my-label} \caption{my caption}  \end{figure}  aa \autoref{my-label} bb  \end{document}   It outputs aa section 1 bb. My desired output is aa Figure 1 bb.
\documentclass{article} \usepackage{algorithm}  \begin{document} \setcounter{section}{54} \section{A section with no label} \begin{algorithm} \label{myalg} \caption{An algorithm with the label `myalg'.} \end{algorithm} Reference to myalg: \ref{myalg}. \end{document}   With this code, the reference givens 55 (the section number); if I move the label after the caption command, I get the correct reference (1).  Why should this be the case? I find it confusing: when thinking about an algorithm as an environment, you expect to be able to label it right after you began it. At the very least I would expect some kind of error or "??" to appear, rather than the previous environment or reference-able entity being used.
How to use the Extended Euclidean Algorithm manually? I've only found a recursive algorithm of the extended Euclidean algorithm. I'd like to know how to use it by hand. Any idea? How do you update an Excel file (Data Refresh and update formulas) WITHOUT opening the file? I have an Excel file that want to update and save automatically with out having to open it or manually interact with.  Manually, I open the file up and hit data refresh which goes and does a SQL query and then hit F9 for the formulas to update and then I just close/save.    (I then would mail the file out to people using a perl script or use SAS JMP to run some numbers/charts and also mail them out.  Basically I need to script some things which require the XLS file to be updated.) Quantum entanglement vs classical analogy Consider that we have two balls, one white and one black, and two distant observers A and B with closed eyes. We give the first ball to the observer A and the second ball to the observer B. The observers don't know the exact color (state) of their balls, they know only the probability of having one or another color, until they look at them (measure). If the observer A looks at his ball he will see its color, which is white, so he immediately knows the color of the second ball. Lets call this “classical entanglement”.  My question is: What is the difference between this “classical entanglement” and the quantum entanglement, for example, of two entangled electrons with opposite spins states? Can this analogy be used to explain the quantum entanglement? I would have expected the correlation coefficient to be the same as a regression slope (beta), however having just compared the two, they are different. How do they differ - what different information do they give? Let me add or change edit summary during edit window (grace period) I am stuck with a rather irritating problem I ran into after installing 11.10 on my macbook pro 5,5.  I did a clean install efi booting into the setup using the desktop cd. Upon the first reboot I was presented with the "invalid arch independent ELF magic" and grubs rescue console.  I have read  but the solution is no solution for me since installing grub via live cd only means installing the mbr version and I can't seem to find any manual on how to install grub-efi while booted into the live cd.  So my question is: How can I either edit the grubx64.efi file in my EFI Partition, reinstall grub-efi with a live CD / DVD or use grub rescue commands to fix this issue? I am auditing a Linear Algebra class, and today we were taught about the rank of a matrix. The definition was given from the row point of view:      "The rank of a matrix A is the number   of non-zero rows in the reduced   row-echelon form of A".   The lecturer then explained that if the matrix $A$ has size $m  \times n$, then $rank(A) \leq m$ and $rank(A) \leq n$.   The way I had been taught about rank was that it was the smallest of    the number of rows bringing new information the number of columns bringing new information.    I don't see how that would change if we transposed the matrix, so I said in the lecture:  "then the rank of a matrix is the same of its transpose, right?"   And the lecturer said:   "oh, not so fast! Hang on, I have to think about it".   As the class has about 100 students and the lecturer was just substituting for the "normal" lecturer, he was probably a bit nervous, so he just went on with the lecture.  I have tested "my theory" with one matrix and it works, but even if I tried with 100 matrices and it worked, I wouldn't have proven that it always works because there might be a case where it doesn't.  So my question is first whether I am right, that is, whether the rank of a matrix is the same as the rank of its transpose, and second, if that is true, how can I prove it?  Thanks  :) Renaming files in lexicographical order with a numerical pattern that increases sequentially with fixed padding I have files such as  a bb ccc abc emrls   I would like to rename them so that, after sorting them (for example, lexicographically), each file gets the following name:  00001 00002 00003 etc   where the # of digits for the 0 padding is specified a priori, e.g. 6 in the case above (assuming that we know how many digits are needed).  Since the shell I am most comfortable with is zsh, I'm interested in solutions that benefit from features on zsh (maybe using zsh's zmv?). I would also be interested in solutions that are compatible with Bash. "He was neither seer nor prophet" How would you explain the absence of an article? Here's a fragment from Jack London's Star Rover:     Wordsworth knew. He was neither seer nor prophet, but just ordinary man like you or any man. What he knew you know, any man knows. But he most aptly stated it in his passage that begins "Not in utter nakedness, not in entire forgetfulness.   To the best of my — admittedly sketchy — knowledge of grammar, the second sentence should read neither a seer nor (a) prophet, but just an ordinary man. Even if we accept the seer and the prophet as "poetic entities" ("father and son," "robber and robbed," "man to man," or whatever), logic would still dictate that ordinary man should be preceded by an an.  It is a well-known fact that Jack London's usage wasn't always up to par; his grammar, on the other hand, was always top-notch.  Logically, the sentence is grammatically incorrect (correct me if I'm wrong: no pun intended).  Illogically, it reads smoothly: intuitively, a native speaker understands that there's nothing wrong here.  However, those to whom English is not the first language cannot be expected to be intuitive in this case and would want an explanation. Any suggestions? Are omniscience and omnipotence mutually inconsistent? I see this in The God Delusion by Richard Dawkins:       If God is omniscient, he must already know how he is going to intervene to change the course of history using his omnipotence. But   that means he can't change his mind about his intervention, which   means he is not omnipotent.   Is this argument sound? What's the deepest reason why QCD bound states have integer charge? What's the deepest reason why QCD bound states have integer electric charge, i.e. equal to an integer times the electron charge?  Given that the quarks have the fractional electric charges they do, this is a consequence of color confinement. The charges of the quarks are constrained in the context of the standard model by anomaly cancellation, and can be explained by grand unification. The GUT explanation for the charges doesn't care about the bound state spectrum of the QCD sector, so it just seems to be a coincidence that hadrons (which are composite) have integer charge, and that leptons (which are elementary) also have integer charge.   Now maybe there's some anthropic argument for why such a coincidence is useful (in the case of proton and electron, it gives us atoms as we know them). Or maybe you can argue that GUTs naturally produce fractionally charged particles and strongly coupled sectors, and it's just not much of a coincidence.   But I remain curious as to whether Seiberg duality, anyons, some UV/IR relationship... could really produce something like the lepton-hadron charge coincidence, for deeper reasons. I suppose one is looking for a theory in which properties of bound states in one sector have a direct and nontrivial relationship to properties of elementary states in another sector. Is there anything like this out there?   (This question was prompted by muster-mark's many recent questions about fractional charge, and by a  that the hadron-lepton charge coincidence is a "semi-coincidence", which assured me that I wasn't overlooking some obvious explanation.) Mark a comment as the answer to a question I have a question and have seen others to which the best and most relevant answer (at least the one that solved my particular problem) is placed in the comments to the question as opposed to the answers:   I would like to recognize the commenter as the person who correctly answered the question, but there doesn't seem to be any way to do that. The only thing I could think of was to ask the commenter to repost his comment as an answer, but I cannot figure out a way to contact him. In the meantime the question is sitting unanswered and I am getting other "answers" (leading me to believe that people are not reading the comments and answers already posted before trying to answer it themselves).  How are we supposed to do this?  Note: I don't want to accept the comment as an answer (I agree completely with the answers to this question that comments are comments and answers are answers and they should stay that way). I do wonder if there should be some way to contact people in a reasonable manner (comments on their profile that they must opt in to receiving in email?). Word: how to show hidden ribbon tabs? How can I control which tabs are available to be opened in the MS Word 2010 ribbon?  Under Word Options > Customize Ribbon > Main Tabs there are several groups checked (Blog Post, Insert (Blog Post), Outlining, Background Removal), but they don't appear on the ribbon even though there is space for them. How is one supposed to turn them on or get to them?  The one in particular I'm after today is the Blog Post tab, which I know I can get to in a round about way via File > New > Blog Post Template. However I don't want a new post, rather an old one, which means File > New > Blog Post Template > Open existing > [select from list] > [close new blog post window] > [slap No I don't to save darn it]. Extra work for nothing is irritating; how do I get Blog Post (or Outlining or ...) to show up in that nice empty space next to AddIns? Algorithm to match one input file with given numbers of file Is it possible to install an old version of Mac OS on a new Mac? I know that Apple doesn't want me to run a version of Mac OS older than the one my Mac came with, but is there a way around this?  For example: if I buy a new Retina MacBook Pro, is there a way to run OS 10.6 on it without a VM? "A friend of my father" vs. "a friend of my father's" — which one is right? Why? I have seen them both in my reference book, which is written by a native speaker. I wonder why there are two different phrases to describe the same meaning and am looking forward to some reasonable details to explain why this is so. How do I update Ubuntu manually? I wanted to update Ubuntu manually, because I used CDMA USB modem and connected using wvdial, but it won't able to update Ubuntu via Update Manager, because my Ubuntu won't showing "Connected" message via network-manager.  Can I update Ubuntu manually? Am I should download separate files, or use terminal instead? What is the term for taking it out on someone even though you will be harmed by this too? When you are so mad at someone that you make a bad decision, even though you will be harmed by it as well, in order to harm that person; is there a good term for this?   For example burning $100 because he owns $20 of it. (currently deleted (visible only to 10kers)) is a great example of a duplicate question that should not be deleted. [Note: this question was later merged into , which resulted in the original being hard-deleted. This issue with merging  ] The titles of the duplicates are completely different.  Having duplicates around greatly aids search hits on the site. We need to keep questions like this around for the benefit of the community. Both questions have around 4K views.  They are both relevant.  I cannot believe that a question with over 3K views is being deleted. Edit Search for python continue line and python line break in google.  Both answers are top hits.  They should both be open. a / an - adjective - noun The article a becomes to an when the following noun starts with a vowel.     Not a adventure but an adventure.   But how is it, when there's an adjective before the noun?     Not a thrilling adventure or not an thrilling Adventure?   And how is it, when the adjective starts with a vowel but the noun does not?     Not a exciting tournament or not an exciting tournament?