I am wondering if it is recommended to adhere to a convention of defining labels before or after captions. Moreover, if that is the case, why?
\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.
What is the unisex form of a word like fisherman? Do you have to use fisherman and fisherwoman separately, or is fisherperson acceptable? I couldn’t find a dictionary with the word …  In general, what do you do when a word does not have a unisex form? “between” vs. “among” Today I was cut off in the middle of the following sentence:     Between Cook, Strauss, and Pietersen—   My friend said I was wrong. He said that for more than two entities, among/amongst are used, and that between is only for two entities.   I vaguely remember some rule like this, but I asked him to hear the whole sentence, which was:     Between Cook, Strauss, and Pietersen, they’ve notched up 56 centuries in Test cricket.   Should I have used among here? Seems correct to me to use between, but my friend was certain.   Another friend pointed out the following sentence:     I’m still choosing between Harvard, Yale, and MIT.    Certainly among doesn’t seem to fit here, and she, to me, was correct in using between. Do photons have acceleration? Photons travel at the fastest speed in our universe, the speed of light.  Do photons have acceleration? Analyzing a sentence Do my analyze is correct? If don't then correct it.  Sentence: The tsunami and the undersea earthquake which triggered it, the largest ever recorded in the region, killed nearly 20,000 people, destroyed over 100,000 homes and threw the lives of tens of millions into turmoil.  Subject: The tsunami and the undersea earthquake Principal verb: triggered Adjective clause of subject:the largest ever recorded in the region, killed nearly 20,000 people, destroyed over 100,000 homes Use of parallelism:threw the lives of tens of millions into turmoil. I want to know by an example how prices in stock market changes Let us assume there is a listed company x. Currently it has 100 shares issued to trade in free float market. Current price of stock is let say 10. Now please let me know if I purchase one share of company x at the market price of 10. How it will effect the stock price. And please add and exemplify some other scenarios whichever you find good to explain more. For more information let say promoters of the company holds 100 shares with them like 50% of the company is with promoters and the other half is with people who invest or trade in that company. If I've missed to tell or assume any other vital info. needed please assume it yourself while mentioning it. Thank You Does an ability or spell grant me the bonus action with which to use it? The  description of casting times says that spells with a casting time of &quot;bonus action&quot; require a bonus action to cast (p. 79, emphasis mine):  Most spells require a single action to cast, but some spells require a bonus action, a reaction, or much more time to cast. Bonus Action A spell cast with a bonus action is especially swift. You must use a bonus action on your turn to cast the spell, provided that you haven't already taken a bonus action this turn. You can't cast another spell during the same turn, except for a cantrip with a casting time of 1 action.  It's pretty clear that bonus actions aren't automatic (p. 69):  You can take a bonus action only when a special ability, spell, or other feature of the game states that you can do something as a bonus action. You otherwise don't have a bonus action to take.  So to cast a spell like Healing Word (p. 93), do I  need to be granted a bonus action that I can use, or do I have a bonus action I can use?  I guess I'm unclear on whether I need to have a bonus action before I can spend it on something, or whether having an ability, spell, or whatnot that can be done as a bonus action grants me the bonus action I need to use it. How do I fix the left mouse opening the menu instead of breaking blocks? Proof of -(-v)=v in a vector space The exercise is: Prove that $-(-v)=v$ for every $v \in V$  Proof Suppose  $v \in V$ and $V$ is a vector space. Then $-(-v) \in V$ as result of the scalar multiplication property and $-(-v)=-(-1\cdot v)=-1 \cdot(-1\cdot v) =(-1 \cdot-1)\cdot v = 1 \cdot v = v $ The desired result $-(-v)=v$ holds.  The solution manual gives the proof:  Proof   I just wanted to make sure that the way I did the proof isn't missing anything?Thanks What is postselection in quantum computing? A quantum computer can efficiently solve problems lying in the complexity class . I have seen a claim the one can (potentially, because we don't know whether BQP is a proper subset or equal to PP) increase the efficiency of a quantum computer by applying postselection and that the class of efficiently solvable problems becomes now postBQP = .  What does postselection mean here? utf8 and ISO 8859-1 encoding references trouble I have to use one particular template ( am obliged to use it for my thesis) it uses \bibliographystyle{plain} Ihave both english and frensh text on it (for abstract and résumé) there is no problem for characters like ( é, ç...) but some of references does not appear they are replaced by [?] knowing that foe encoding \RequirePackage[latin1]{inputenc} how to fix this problem please!   \documentclass{article}   \RequirePackage[latin1]{inputenc}   \RequirePackage{fancyhdr}     blabla \cite{nayak2015comprehensive, byun2002applications, shah2004sequential, fletcher2009support, cornuejols2011apprentissage, byun2002applications}   @article{nayak2015comprehensive,    title={A comprehensive survey on support vector machine in data mining     tasks: applications \&amp; challenges},    author={Nayak, Janmenjoy and Naik, Bighnaraj and Behera, HS},    journal={International Journal of Database Theory and Application},    volume={8},    number={1},    pages={169--186},    year={2015}    }      @inproceedings{shah2004sequential,     title={Sequential k-nearest neighbor pattern recognition for usable      speech classification},     author={Shah, Jashmin K and Smolenski, Brett Y and Yantorno, Robert E      and Iyer, Ananth N},     booktitle={Signal Processing Conference, 2004 12th European},     pages={741--744},     year={2004},     organization={IEEE}     }      @misc{fletcher2009support,      title  = {Support vector machines explained},     author = {Fletcher, Tristan},     journal= {University College London, London},     year   = {2009},     howpublished = "\url{http://sutikno.blog.undip.ac.id/files/2011/11/SVM-     Explained.pdf}",     note   = {Accessed: 2017-04-30}     }      @inbook{cornuejols2011apprentissage,      title={Apprentissage artificiel: concepts et algorithmes},      author={Cornu{\'e}jols, Antoine and Miclet, Laurent},      year={2011},      pages={279--309},      publisher={Editions Eyrolles}       }      @incollection{byun2002applications,      title={Applications of support vector machines for pattern recognition:       A survey},      author={Byun, Hyeran and Lee, Seong-Whan},      booktitle={Pattern recognition with support vector machines},       pages={213--236},      year={2002},      publisher={Springer}      }    \end{document}  knowing that my references work well on other template but this one no how to fix this problm please! here is the error I got   Edited here is the link to the template  in fact I have created a littele example ( since I could not publish my thesis ...) the error has disappeared but my references still [?] Hi I can compute a Basic Loan Amortization Schedule, But now I'm trying to Calculate a Seasonal Loan Amortization Schedule . So for example A loan starts at January And Will go on for 3 years, with Monthly Payments. Interest is at 3% Annually and is compounded Annually. During the months of September, October, November, December It'll only accumulate Interest But no payments and principal. Principal is 100000. How Do I calculate Payments and interest. When I'm connected to two networks with separate routers using Wifi and Ethernet, how does my Mac know what connection to use when I visit a website? Copy a DVD in Windows 7 Is there any built-in way of copying DVDs in Windows 7 or do I need to install a third party tool? Calculate last day of month If you provide 0 as the dayValue in Date.setFullYear you get the last day of the previous month:  d = new Date(); d.setFullYear(2008, 11, 0); //  Sun Nov 30 2008   There is reference to this behaviour at . Is this a reliable cross-browser feature or should I look at alternative methods? Proving with induction $(1-x)^n<\frac 1 {1+nx}$ Prove using induction that $\forall n\in\mathbb N, \forall x\in \mathbb R: 0&lt;x&lt;1: (1-x)^n&lt;\frac 1 {1+nx}$   My attempt:   Base: for $n=1: 1-x&lt;\frac 1 {1+x}\iff 1-x^2&lt;1$, true since $0&lt;x&lt;1$.  Suppose the statement is true for $n$, prove for $n+1$:  $(1-x)^{n+1}=(1-x)(1-x)^{n}\overset{i.h}&lt;\frac{(1-x)}{1+nx}$  Now I got stuck, maybe another induction to show that $1+nx+x&lt;1+nx$? Is there another way?  Moreover, I was told it's wrong to begin with $(1-x)^{n+1}$ and reach to $\frac 1 {1+(n+1)x}$ but why? Is it assuming what I need to prove? How to install KDE along Unity? I have just installed the latest Ubuntu 14.04 and I would like to install KDE along side my Gnome/Unity that I have now. How can I do this?  Thanks! I want the entries in the TOC for the indices to align with the Chapter entries. I can do this with \addcontents. \printindex also puts an entry in the TOC but it is aligned with the section entries.   So I want to:    change how printindex makes its entry into the TOC or  to eliminate printindex entry.   MWE:  \documentclass{book} \usepackage{multind}        % create the indices \makeindex{names}            \makeindex{subject} \newcommand{\Ndx}[1] { \index{names}{#1} }     % define the type of entry \newcommand{\Sdx}[1] { \index{subject}{#1} }   % to the indices \usepackage[headings]{fullpage}         % 8-1/2, 11 page with 1" margins \usepackage{fancyhdr} \pagestyle{fancy} \begin{document} \fancyhead{} \fancyfoot{} \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} \fancyhead[LE,RO]{\rightmark} \fancyhead[RE,LO]{\thepage} \tableofcontents        % put table of contents here  \chapter{\bf Logic, Plausibility, and Probability} \label{Ch:Logic} \section{Logical Arguments and Reasoning } It is obvious that logical arguments are essential to the judicial system. The logic must be able to treat syllogisms\Sdx{syllogism} that range from deductive\Sdx{syllogism!deductive} to abductive\Sdx{syllogism!abductive}, that is from strong to weak syllogisms \Sdx{syllogism!weak}\Sdx{syllogism!strong} as illustrated in the table taken from Author \Ndx{Author} \Ndx{Cohen} \Sdx{Cohen on probability} \clearpage \addcontentsline{toc}{chapter}{Subject Index} \printindex{subject}{Subject Index} \addcontentsline{toc}{chapter}{Name Index} \printindex{names}{Name Index} \end{document} Why isn't a virus "alive"? The recent  about a new supermassive virus being discovered got me thinking about how we define viruses as non-living organisms whilst they are bigger than bacteria, and much more complex than we first gave them credit for.   What biological differences between viruses and cellular organisms have made viruses be deemed non-living? How to add startup applications in lubuntu? Is there a 'Startup applications' app for lubuntu? Or how do I add apps to startup? I attempted a tutorial to add entries to ~/.config/autostart, but it did not work. Isn't there an easy way? Any ideas please? Some irreducible character separates elements in different conjugacy classes Let $x$ and $y$ be elements that are not conjugate in $G$.  Then there is some irreducible character $\chi$ such that $\chi(x) \not = \chi(y)$.   Clearly the "irreducible" part isn't important, since any character can be written as the sum of irreducible characters, but I'm having trouble going beyond that.  I'd appreciate a good hint over a full answer, and I'd be most interested in a way to construct a group representation $\varphi:G \to GL(V)$ of $G$ such that the character of the representation takes different values on $x$ and $y$.