Setstretch Woes in Floats LaTeX is really not very user-centric when it comes to font-line spacing.  Most users would expect the linespacing to change at the place where invoked.  I have run into issues like this many times, and usually found hacks (uselessly changing font size, for example) to make it happen how it want it.  But it would really be nice to learn how this really ought to be done correctly.  So, here is the example that illustrates the question: \documentclass[11pt]{article}  \usepackage{color} \usepackage{setspace} \setstretch{0.75}  %% at 10pt, min seems to be 0.75;  0.7 is more distant, 0.8 is more distant  \newcommand{\notesclass}[2]{{\par{\setstretch{5}\medskip\noindent\tiny\textbf{#1:} #2}}\par} %% useless overkill: \renewcommand{\notesclass}[2]{\begin{minipage}{\textwidth}{\par{\setstretch{5}\medskip\noindent\tiny\textbf{#1:} #2}}\par\end{minipage}\par}  \providecommand{\source}[1]{\notesclass{Source}{#1}}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \begin{document}  I am trying to define a macro that reliably typesets content (that explains my tables) in a font-size and line-spacing of my preference.  For sake of visual illustration, I have set the main text to ugly 0.75 spacing.  (I also do not  understand why 0.75 is the minimum setstretch spacing when 10pt is my article main font; either  0.7 or 0.8 creates linespacing that is larger.)   \begin{table}\color{blue}    --- Table Blue Starts    \source{I would have wanted the 5 spacing here.  Why does this still have spacing that seems  to be based on the font-size of the main paragraph (10pt)?  LaTeX has recognized that it is in  tiny.}    --- Table Blue Ends  \end{table}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \begin{table}\color{red}    --- Table Red Starts    \source{I understand why this has 5 spacing relative to the actual font size that I used. It  is actually what I wanted.      Alas, despite the par at the end of the notesclass macro, this has the same normalsize- font-related 0.75 separation that I did not want. I would have wanted the 5 spacing here.  Even  stranger, if the documentclass is changed from 11pt to 12pt, table red changes in incongruous fashion.}     --- Table Red Ends  \end{table}  \end{document}   What comes out is  Of course, my intent is not to use 5.0 linespacing, but 0.95 linespacing on a footnotesize font in order to compactly display the source references for my floats.
Uneven line height in XeTeX I'm embarking on a journey to create a conference abstract book using XeTeX and got stuck within five minutes:        The missing 'g' in 'somethin' influences the line height of the following line. How can I correct this?  At the end I want to be able to include the abstracts and corresponding information through our online registration system, so this should be a global setting.  My MWE:  \documentclass[10pt, a5paper]{article} \usepackage{fontspec}  %% GEOMETRY \usepackage[left=2cm, right=1.5cm]{geometry} % to change the page dimensions  \newenvironment{AbsHead} {     \fontsize{16}{22}\headfont\noindent }% {     \vspace{0.5 cm} }  \newenvironment{AbsAuthors} {     \fontsize{12}{14}\authorfont\noindent }% {    \vspace{0.5 cm} }  \begin{document}  ￼￼￼￼\setmainfont{Minion Pro} \newfontfamily\authorfont{Helvetica Neue Light} \newfontfamily\headfont{Helvetica Neue Condensed Bold}  \begin{AbsHead}The XIAP  something something something somethin somethin somethin somethin somethin somethin somethin something something\end{AbsHead}   \begin{AbsAuthors}Somebody Someone\end{AbsAuthors}   \noindent Purpose: Lorem ipsum \end{document}
What is the la command? I just mistyped ls as la. Without noticing, I ran it:  tim@Hairy:~$ la detection.sh   output-2.jpg  output-4.jpg  output-6.jpg  output-8.jpg Test1.pdf output-1.jpg   output-3.jpg  output-5.jpg  output-7.jpg  output-9.jpg          tim@Hairy:~$ ls detection.sh   output-2.jpg  output-4.jpg  output-6.jpg  output-8.jpg Test1.pdf output-1.jpg   output-3.jpg  output-5.jpg  output-7.jpg  output-9.jpg    What's the difference between ls and la? How to control spacing in a TikZ tree? $VAR vs ${VAR} and to quote or not to quote Deployed web parts don't show up in Web Part Gallery Should I test private methods or only public ones? Allow questions to be saved as drafts prior to posting This is a really weird situation. A guy contacted me regarding a business I have. He offered far in excess of my stated fees and even told me he could help me financially if I needed it, which I do. He said he was a doctor. Before he even showed up, he gave me his bank account and routing number and full name, which I used to pay some utility bills. All the payments went through. He also sent me $2500 through PayPal, and I received an email that I had received the payment, though it's been 24 hours and it still hasn't shown up in my "recent activity" in my account. But at the time when I met him, I had no reason to doubt the whole thing was real.   So we met, and through conversation he seemed totally legit. Halfway through our session, he abruptly left — he claimed he was being called in to the hospital. He had already received some, but not all, of the services we had agreed to. He said he would come back in a few hours. Oh yeah, and since the PayPal funds hadn't gone through yet, and I needed cash to pay rent, he said his "financial advisor" would be wiring me $800 a couple hours later. Well, I never heard back from him and never got a call about a wire transfer. In retrospect it all seems very obviously a scam, except for the fact that he gave me a bank account number that actually worked as far as paying some bills!  My question is, assuming the PayPal payment never goes through — I never got an email saying that it was cancelled, but it isn't showing up in my payments either. I'm planning on calling PayPal if it hasn't gone through by tomorrow. But assuming that payment doesn't go through, how can I use the bank account info to get the payment he promised me as far as the services I provided? Other than paying all my utilities in advance? You'd think with an account number and routing number and full name, I would be able to withdraw money somehow, but I really have no idea how. And since it isn't under my name, I can't make a payment on my student loans. I wouldn't take more than he owed me, but it would really be nice to at least get that, even if I didn't get the $2500 he had promised me.   You always hear about not letting people see your account number and stuff like that, but it seems impossible to do anything with this info even though I have it! If scamming people with their bank account number is so easy, how do scammers do it? So I'm wondering two things:   What legal way can I take what I am owed from this guy? What illegal way do people use this info if they had it? I don't want to get in trouble, but I'm just curious because you always hear how easy it is.   (Oh, and I never actually saw his ID so I don't know that the name &amp; bank info he gave me was actually his, he could have stolen it from someone, though he really didn't seem like a hacker — he was a middle aged black man who was very smart-sounding, polite, soft spoken, and he seemed to have a lot of knowledge that a real doctor would have. I have a college degree and am very skeptical in general and careful about not being scammed and I've never had an experience even close to this, and the whole time I kept thinking "is this guy for real?" but since the utility stuff had gone through, it seemed legit. And nothing he did sent up a red flag like he might be a criminal or something. But later I googled the name and couldn't find a doctor by that name, at least not in the state he said he lives in. And since he said he would be contacting me last night, and he never did, it seems obvious that he planned the whole thing, but it just makes no sense to me.) I'm playing around, trying to write some code to use the  APIs to shorten a URL.  After reading , I tried:     TRIM_API_URL = 'http://api.tr.im/api'    auth_handler = urllib2.HTTPBasicAuthHandler()    auth_handler.add_password(realm='tr.im',                              uri=TRIM_API_URL,                              user=USERNAME,                              passwd=PASSWORD)    opener = urllib2.build_opener(auth_handler)    urllib2.install_opener(opener)    response = urllib2.urlopen('%s/trim_simple?url=%s'                               % (TRIM_API_URL, url_to_trim))    url = response.read().strip()   response.code is 200 (I think it should be 202).  url is valid, but the basic HTTP authentication doesn't seem to have worked, because the shortened URL isn't in my list of URLs (at ).  After reading  I also tried:     TRIM_API_URL = 'api.tr.im/api'    password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm()    password_mgr.add_password(None, TRIM_API_URL, USERNAME, PASSWORD)    auth_handler = urllib2.HTTPBasicAuthHandler(password_mgr)    opener = urllib2.build_opener(auth_handler)    urllib2.install_opener(opener)    response = urllib2.urlopen('http://%s/trim_simple?url=%s'                               % (TRIM_API_URL, url_to_trim))    url = response.read().strip()   But I get the same results.  (response.code is 200 and url is valid, but not recorded in my account at .)  If I use query string parameters instead of basic HTTP authentication, like this:     TRIM_API_URL = 'http://api.tr.im/api'    response = urllib2.urlopen('%s/trim_simple?url=%s&amp;username=%s&amp;password=%s'                               % (TRIM_API_URL,                                  url_to_trim,                                  USERNAME,                                  PASSWORD))    url = response.read().strip()   ...then not only is url valid but it's recorded in my tr.im account. (Though response.code is still 200.)  There must be something wrong with my code though (and not tr.im's API), because  $ curl -u yacitus:xxxx http://api.tr.im/api/trim_url.json?url=http://www.google.co.uk   ...returns:  {"trimpath":"hfhb","reference":"nH45bftZDWOX0QpVojeDbOvPDnaRaJ","trimmed":"11\/03\/2009","destination":"http:\/\/www.google.co.uk\/","trim_path":"hfhb","domain":"google.co.uk","url":"http:\/\/tr.im\/hfhb","visits":0,"status":{"result":"OK","code":"200","message":"tr.im URL Added."},"date_time":"2009-03-11T10:15:35-04:00"}   ...and the URL does appear in my list of URLs on .  And if I run:  $ curl -u yacitus:xxxx http://api.tr.im/api/trim_url.json?url=http://www.google.co.uk   ...again, I get:  {"trimpath":"hfhb","reference":"nH45bftZDWOX0QpVojeDbOvPDnaRaJ","trimmed":"11\/03\/2009","destination":"http:\/\/www.google.co.uk\/","trim_path":"hfhb","domain":"google.co.uk","url":"http:\/\/tr.im\/hfhb","visits":0,"status":{"result":"OK","code":"201","message":"tr.im URL Already Created [yacitus]."},"date_time":"2009-03-11T10:15:35-04:00"}   Note code is 201, and message is "tr.im URL Already Created [yacitus]."  I must not be doing the basic HTTP authentication correctly (in either attempt).  Can you spot my problem?  Perhaps I should look and see what's being sent over the wire?  I've never done that before.  Are there Python APIs I can use (perhaps in pdb)?  Or is there another tool (preferably for Mac OS X) I can use? How do I skip specific tests when building an rpm? I am building an RPM of git version 2.13.0. The build has gone ok but one of the tests are failing:  Config variable ${LIB_HTTPD_SVN} is not defined Config variable ${LIB_HTTPD_SVN_PATH} is not defined   I cannot find any info about these variables so I was going to just skip the tests. How can I do that? I was wondering if there is any rule in English that forbids us to say A Happy New Year when we wish someone Happy New Year? I know that we just say it like that, but I was trying to find the rule which would explain this. Thank you for your help. Probability of an even number of sixes We throw a fair die $n$ times, show that the probability that there are an even number of sixes is $\frac{1}{2}[1+(\frac{2}{3})^n]$. For the purpose of this question, 0 is even.   I tried doing this problem with induction, but I have problem with induction so I was wondering if my solution was correct:   The base case: For $n=0$, our formula gives us $\frac{1}{2}[1+(\frac{2}{3})^0] =1$. This is true, because if we throw the die zero times, we always get zero sixes.  Suppose it's true for $n=k$. Then the odds of an even number of sixes is $\frac{1}{2}[1+(\frac{2}{3})^n]$, and thus the odds of an odd number of sixes is $1 - \frac{1}{2}[1+(\frac{2}{3})^n]$.    For $n=k+1$, there are two ways the number of sixes are even:  a. The number of sixes for $n=k$ was even, and we do not throw a six for $n=k+1$: $ \frac{5}{6} \cdot  \frac{1}{2}[1+(\frac{2}{3})^n]$  b. The number of sixes for $n=k$ was odd, and we throw a six for $n=k+1$: $\frac{1}{6}(1 - \frac{1}{2}[1+(\frac{2}{3})^n])$  So the probability $p$ for an even number of sixes at $n=k+1$ is $ \frac{5}{6} \cdot  \frac{1}{2}[1+(\frac{2}{3})^n] + \frac{1}{6}(1 - \frac{1}{2}[1+(\frac{2}{3})^n])$  I have two questions   How do I get from $ \frac{5}{6} \cdot  \frac{1}{2}[1+(\frac{2}{3})^n] + \frac{1}{6}(1 - \frac{1}{2}[1+(\frac{2}{3})^n])$ to $\frac{1}{2}[1+(\frac{2}{3})^n]$? I seem to have done something wrong, I can't get the algebra correct, I get $p = \frac{1}{3}[1+(\frac{2}{3})^n] + \dfrac{1}{6}$ Other than that, is my use of induction correct? Is it rigorous enough to prove the formula? Don't show pending suggested edits to me after I run out of votes Now that I've reached 2k on Stack Overflow, I get access to the "Suggested Edits" review queue.  Although I only have 20 edits per day, the "suggested edit awaiting" icon in the top bar is always there and it bothers me a lot!  My suggestion is to apply one of three solutions:   Remove the suggested edits icon when we reach the maximum (50) edits Remove the Highlight (orange) on the suggested edits Remove the suggested edits part when we click on it   What do you think? How do I change permissions on a FAT32 formatted drive? I am using Microsoft Visual C++ on Windows and Qt Creator on Ubuntu. I can't change permissions on my flash drive (FAT32), even as root.  How can I change permissions on a FAT32 flash-drive? Where is Ubuntu terminal located? I am trying to add terminal as external tool to compile javascript with node.js. I am following this  which is based on windows , and i am stuck at figuring out location of terminal application.  Where is the terminal located in Ubuntu? Constructing a continuous distribution to match $m$ moments A doubt on the definition of limit of a function definition I want to prove the definition of limit of a function from definition (1) to definition (2).  (1) A function $f(x)$ is said to have $f^*$ as the limit as $x$ tends $x^*$ iff for every sequence $\{x_n\}$ with limit $x^*$, the limit $\lim_{n-&gt;\infty}f(x_n)$ exists and is equal to $f^*$. (2) A function is said to have $f^*$ as the limit as $x$ tends $x^*$ iff for each $\epsilon &gt;0$, there exists a $\delta_\epsilon &gt;0$ such that $|f(x)-f^*| &lt;\epsilon \forall |x^*-x|&lt;\delta_\epsilon$  I am confused about the steps. Suppose I am given an $\epsilon &gt; 0$ and $x^*$. I have to show the existence of a $\delta_\epsilon &gt;0$ such that for all $x$ satisfying  $|x^*-x|&lt;\delta_\epsilon$ I can construct a sequence $x_n$ which converges to $x^*$ and $x_n=x$ for some $n \geq N$. Then I can say that $f(x_n)-f^*=f(x)-f^* &lt; \epsilon$. I think I may have made some mistake about the steps.  My main confusion is the following : Suppose I choose $\delta_\epsilon=\epsilon$. Then if a sequence $\{x_n\}$ converges to $x^*$ then $x_n=x$ (where $x$ satisfies $|x-x^*|&lt;\epsilon$) for some $n\geq N$. Now, $\lim_{n-&gt;\infty}f(x_n)$ exists implies there exists an $M$ such that $\forall n\geq M$, $f(x_n)-f^* &lt;\epsilon$. Now, I need to show that for some $n \geq M$ indeed $x_n=x$. How do I show that ? This $M$ and $N$ are different. Let f(t)=2/(t+8)  (a) Simplify the following difference quotient as much as possible: $$[f(t+h)−f(t)]/h$$  MY ANSWER (CORRECT): $-2 / [(t+8)(t+h+8)]$  (b) Use your result from (a) and the limit definition of the derivative to calculate $f′(t)=\lim_{h → 0} [f(t+h)−f(t)]/h=$  MY ANSWER (CORRECT): $-2 / [(t+8)^2]$  (c) Use your answer from part (b) to evaluate $f′(−3)$  MY ANSWER (CORRECT): $-2 / 25$  (d) Find the equation of the tangent line to the curve at the point $(−3,f(−3))$ y=  I have tried the point-slope formula, $y-y_1=m(x-x_1)$, but my answer was incorrect. How to make Unicode charset in cmd.exe by default? How should I unit test multithreaded code? How do you reset the sa password?