I'm trying to write this if statement \def\x{y} if x==y yes else no end  How can I write such a code in latex
I am using \if condition in a custom command in my LaTeX document. I would like to know where I can find some good explanation about \if command. I followed a  but it's just an example; there are not any explanation.
Why isn't $\lim \limits_{x\to\infty}\left(1+\frac{1}{x}\right)^{x}$ equal to $1$? There are many collectable flags throughout the game of Assassin's Creed and every time one is collected, you get a progress indicator (e.g., 33 of 100).  Is there any reason to collect these, other than bragging rights?  I recall getting all available flags in one particular town and never saw any special reward or secret revealed. I am writing my thesis and using latex for first time. I would like to modify the the first page of my thesis, as it shows only name of thesis, my name etc. I would like to move all  text little-bit to right-side, just on the first page, without effecting the other pages of thesis. Any idea how can I do it?  \documentclass[a4paper,      12pt,      twoside,      openright,      cleardoublepage=empty,      numbers=noenddot,      appendixprefix,      BCOR1.5cm,      bibliography=totoc      ]{scrbook}   \thispagestyle{empty} \begin{titlepage} \begin{center}  %xyz  \end{center} \end{titlepage} \clearpage Import a python module without the .py extension I have a question about the following text:     Last week Alex Knapp at Forbes published an article criticizing my Nikola Tesla comic. I don't normally respond to these kinds of thing, but since it's' Forbes I figured a proper response was in order.    I would rather say "this kind of things" rather than the version in the text above. I told my follower (Serana) to wait. But this is different. I told her to go somewhere and wait so it will activate the enemies. Well it did and I killed them. But Serana seems to be not following me anymore. I can't tell her to follow me. And she is constantly in a squatting position. The only thing I can do is tell her to wait somewhere else to move her. And I can't part ways because I'm doing a main quest and she has to be there. Can anybody give me a tip on what to do? I see people say statement as question while speaking by raising their voice at the of it to mean it's a question.   For example consider followings.         You want to stay here? ==> Is used to mean "Do you want to stay here?"   You guys spoke to anyone? ==> Is used to mean "Did you guys speak to anyone?"      Are these really used by native speaker in casual speech? And can I write them in the same way while writing them as dialogue by putting them between quotes? Are there any special grammar rules for these kind of questions? Durrett Example 1.9 - Pairwise independence does not imply mutual independence? I have recently installed ubuntu 11.10. But when i try to install a software it tries to 'updating cache' but after a while, it stops, showing:                            Failed to download repository information                           Check your internet connection   so, now i am totally unable to install any software in my ubuntu.  Please,let me know how to solve the problem. How to pick a specific Pantone color in Photoshop? What about finding a Pantone that is close to a specific CMYK color? How would I select a specific Pantone color in Photoshop, e.g. PMS 5625?  Also, how do you pick a Pantone colour that is similar to a specific CMYK color, e.g. C61, M41, Y58, K16 green?    In this case Pantone 5615C looks closest to the CMYK color. Why is it usually "friend of his", but no possessive apostrophe with "friend of Peter"? As  shows, we nearly always use the possessive form of personal pronouns for friend of mine/his/ours/etc.  But when it comes to actual names, we prefer  without the possessive apostrophe. That preference is even more marked with, say, . Not that I think the usage itself is particularly American - it's much the same with .  Personally, I find friend of him grates. In general I've no strong feelings either way as to whether it's friend of Peter or friend of Peter's (though I deplore the possessive in ), but in line with many others, I really don't like the possessive in relation to things like countries.  Why is this?   Edit: Noting an apparent "progression" (pronoun -> person -> nation) marked by reduction in use of the possessive, I checked at a finer "granularity". NGram shows that although it does occur,  virtually "flatlines" against friend of mine. But the bias reduces through of you, of us, and by the time I get to  it's much less extreme. There seems to be something "egocentric" about the double possessive.  Presumably when babies learn to speak, they soon notice that possessive pronouns, possessive apostrophes, and the word "of", all do the same job. Parents would correct a child who says "of mine's", but probably wouldn't even notice the same "redundancy" in "of Peter's". Younger speakers are unlikely to even be talking about something "of America's". Perhaps as we mature we tend to discard the "double possessive" for the more "distant" things that only adults are likely talk about, but we keep it for "closer" people because that's how we spoke when we were younger.  EDIT2 I note that I'm a great fan of him is vanishingly rare compared to ...fan of his, but with ...fan (of John) the double possessive occurs far less often than ...friend (of John's). Usage seems to be affected by the noun before "of" as well as the one after it. This is getting complicated... How do I perform a biographical interview? I have a couple of elderly relatives who have not kept a journal and refuse to write down their "life story." I really would like to know their stories and who they were and who they are. They have their favorite stories that they rehash every time I see them, but I'd like to get more. I have no experience with "interviewing" and am looking for information on how to get their stories. Any websites, books, and or tips\techniques would be greatly appreciated. Will be flying with easy jet and was wondering for retuning flights the old luggage tag we have on are suitcase. should we take them off before arriving at the airport to return home or leave it as the person will do it for us anyways? Im guessing even at self check in they will have someone who will make sure that old tags are taken off and that the new one is correctly done etc? Finite multiplicative group of matrices with sum of traces equal to zero. Let  $G=\{M_1,M_2,...,M_k\}$ be a finite set such that $ M_i\in M_n(\mathbb R)$ and $(G,\;\cdot\:)$ is a group with matrix multiplication. If $\sum _{i=1}^k \operatorname{tr} (M_i)=0$ then how to prove $\sum _{i=1}^k M_i=0$ ? Choosing research ideas to include in a statement of purpose I have this strange problem with conky. It doesn't show properly on the desktop:    I've tried everything from editing conky widget file to reinstalling conky and conky manager (v.2.4). Who knows how to fix it? Self adjoint operators and trace class property This is a variation of the  questioned some time ago.  For a complex Hilbert space $H$ let $T: H \rightarrow H$ be a bounded operator. We call that $T$ is a trace-class operator if the following sum  $$\sum_{i}{\langle |T|e_{i}, e_{i} \rangle} &lt; \infty$$  converges, where $|T| = (T T^{*})^{\frac{1}{2}}$ is the absolute value of the operator.  Assume that  $$\sum_{i}{\langle Te_{i}, e_{i} \rangle}$$  converges for any basis in the space $H$. How to prove that if the aformentioned property holds then the operator is a trace class operator?  The progress on the problem is the following: Given an arbitrary bounded operator $T: H \rightarrow H$, one can use the following decomposition $$T = \big( \frac{T + T^{*}}{2} \big) ^{*} + i \big( \frac{T^{*} - T}{2i} \big) ^{*}$$  The latter line gives the decomposition $$T = A + i B$$ where $A, B$ are normal operators.  For the normal operators we can apply the spectral theorem that proposes that $T$ is unitary equivalent to  $$(UT U^{-1})(f(x)) = g(x) f(x)$$  where  $$U: H \rightarrow L^{2}(X, \mu)$$ $$g \in L^{\infty}(X, \mu)$$  Though this decomposition classify the operator in a broad sence, i see no direct way to conclude the statement. Are the any hints that may extend the previous argument? If not, are there any ways to conclude the statement? I'm using the beamer miniframes theme (with subsection=false) and the compress option. Currently the navigation shows the dots for each subsection side-by-side. I would prefer if there would be a horizontal space (e.g. with the width of a dot) between the dots of each subsection. Is this possible? Right now it looks like:  Section 1 oooooo  And I would prefer it to look like:  Section 1 ooo ooo  MWE: \documentclass[compress]{beamer}   \useoutertheme[subsection=false]{miniframes}   \begin{document}   \section{Sec 1}   \subsection{}   \begin{frame}[t]     hi   \end{frame} \subsection{}   \begin{frame}[t]     hi   \end{frame} \end{document}` Why isn't Obi-Wan's ghost young? One of the changes made to the Special Editions of Star Wars: Episode VI: Return of the Jedi was at the end of the film.  Luke sees 3 ghosts during the celebration on the forest moon of Endor, Yoda, Anakin, and Obi-Wan.  In the Special Editions, the actor who played Anakin earlier in the film, Sebastian Shaw, is replaced with Hayden Christiansen who played young Anakin in Episodes 2 and 3.  My question is, why is Anakin the only one de-aged?  Shouldn't Obi-Wan also be his younger self, along with Yoda? So, I got some laptop charger from my neighbor and I was thinking about to do something with it. Then one day I feel tiny shock from the output of the charger. I thought ac to dc filtering mechanism maybe shorted. Then I had tested other remaining charger to see if there was any AC current going on. And they all do the same. Is it normal to have flow some AC through DC ? Can I do something about it ? make it safer for work ? It does not feel like comfortable.