I am writing a thesis document in Latex. I have already written several pages in it but suddenly at one page the spacing between paragraphs is too much (3-4 lines).   As its a long documents so, its a bit difficult for me to provide the working example. I was wondering if somebody has also faced the similar problem or know the possible reason of this weird results.  By the was, I am writing the paragraphs in the following way:  Here the para-1 ends.   The para-2 begins here after a gap of one line. Now, it ENDS here.  Para-3 has started with a gap of one line.   PS: it is a single sided document   UPDATE:  I have found that if I remove the line below the equation then everything become ok but if i put the line below the equation then, the problem of weird spacing comes. I have used the same method of putting equation and paragraphs in other sections but did not face any problem.  \begin{gather} \text{positional distance component, } d_p(i,j) = \sqrt{            (   n_x^i - n_x^j   )^2 + ( n_y^i - n_y^j   )^2     } \\ \text{and color distance component, } d_c(i,j) = \sqrt{         (   n_L^i - n_L^j   )^2 + ( n_a^i - n_a^j   )^2 + ( n_b^i - n_b^j   )^2     } \end{gather}  The weightage of the two distance components can be varied by chaning the value of two multiplying constants ($\mathit{w_p}$ and $\mathit{w_c}$) for position and color components of distance measure.
I have a problem. I have several large equations within the text. And when LaTeX does not manage to put the equation on the same page and moves it to the next one, he spreads the paragraphs of the text in the first page. How could I prevent this? I know about \pagebreak and \newpage, but I do not want to force the \newpage, as the text may move (if I add something later or so on) and the pagebreaks may not be valid. I would like to make LaTeX not to spread the paragraphs over a page automatically. Is it possible?  I tried to make an example:  \documentclass[a4paper,12pt,twoside]{book} \usepackage{amsmath} \begin{document}  LaLaLa\\\  LaLaLa\\\  LaLaLa\\\  LaLaLa\\\  \begin{eqnarray} 123&amp;+&amp;123 \\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ \end{eqnarray}  LaLaLa\\\  LaLaLa\\\  \begin{eqnarray} 123&amp;+&amp;123 \\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ \end{eqnarray}  \end{document}
I know you can create a rounded-corner rectangle; but, how do you create a triangle with rounded corners in Photoshop?  I am actually interested in making it from scratch, not basing it on a custom shape that is available in Photoshop. Thanks. Can we get x comment votes per y minutes, rather than one vote per 5 seconds? It would be nice if backticked code in question titles were rendered the same way they are in question bodies. Since there are so many questions with code in them I feel it would be a big plus. .  This would look a lot nicer in listings and on the page itself if the code strings were rendered as such.  Similar ideas discussed . I have a number of tiff files named:    sw.001.tif sw.002.tif ...   and I want to remove the .tif at the end of each of the files.  How can I use the rename command to do this? Correct usage of will and would Presumably after an update, google chrome has very serious problems with page rendering. I want to downgrade it. (Switching to vmlinuz.old and initrd.img.old did not help).  $ apt-cache policy google-chrome-stable google-chrome-stable:   Installed: 35.0.1916.153-1   Candidate: 35.0.1916.153-1   Version table:  *** 35.0.1916.153-1 0         500 http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages         100 /var/lib/dpkg/status   on a computer where google chrome works ok:  $ apt-cache policy google-chrome-stable google-chrome-stable:   Installed: 34.0.1847.132-1   Candidate: 35.0.1916.153-1   Version table:      35.0.1916.153-1 0         500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages  *** 34.0.1847.132-1 0         100 /var/lib/dpkg/status   (If I had the .deb on the 2nd computer, everything would be easier. But there's no .deb. And no old .deb's on the google site.)  So I try:  $ sudo aptitude install google-chrome-stable=34.0.1847.132-1 Unable to find a version "34.0.1847.132-1" for the package "google-chrome-stable" Unable to find a version "34.0.1847.132-1" for the package "google-chrome-stable" No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used.   You see, it does not work. The Synaptic manager also shows no version that I could set.  So, how do I downgrade google-chrome-stable?  Probably someone knows an archive of old google-chrome .deb's? I am able to use the split command successfully to split large file into multiple smaller files. This is being achieved by following command  split -b 1G $temp_path $final_filepath   But only caveat is that these files many times contain last line which is split across 2 files. Is there any way to avoid that using split or any other command ? Sort an Array by keys based on another Array? Is it possible in PHP to do something like this? How would you go about writing a function? Here is an example. The order is the most important thing.  $customer['address'] = '123 fake st'; $customer['name'] = 'Tim'; $customer['dob'] = '12/08/1986'; $customer['dontSortMe'] = 'this value doesnt need to be sorted';   And I'd like to do something like   $properOrderedArray = sortArrayByArray($customer, array('name', 'dob', 'address'));   Because at the end I use a foreach() and they're not in the right order (because I append the values to a string which needs to be in the correct order and I don't know in advance all of the array keys/values).  I've looked through PHP's internal array functions but it seems you can only sort alphabetically or numerically. How do you empty the buffers and cache on a Linux system? How to resolve a hostname to an IP address in Metro/WinRT? Comma use with nonessential appositives Sorry, I do not know the language terminology. Is this a case of nonessential appositive?  Which of the following sentence has a correct comma use? Comma before &quot;should&quot;  Importantly, two frail subgroups of stroke population, long-term residential care and cognitive impairment patients, should not be excluded from the rehabilitation.  No comma before &quot;should&quot;  Importantly, two frail subgroups of stroke population, long-term residential care and cognitive impairment patients should not be excluded from the rehabilitation. ASP.NET Stress Testing Is there a way to test an application where you simulate a hundred different clients connecting to a IIS server and asking the same data? At the customer where our project is running they have 400 computers and they often do stress tests with all computers. I on the other hand have only got my laptop... (and a development server).  (In my case the data is asked through a WebORB Gateway). How to change the chapter number to display as text (One, Two, ...)? Adding parentheses around subfig references Say I have a figure with two subfloats inserted using the subfig package.  When I reference them with \ref{myLabel} I get this     Figure 3.5a and 3.5b.     But what I want is this:     Figure 3.5(a) and 3.5(b).   How can I add the parentheses? How can I easily encrypt a file? Is there any simple (IE: right click in Nautilus) way to password protect a particular folder/file in Ubuntu? I've got a few files containing sensitive info and I'd much prefer that if/when I leave my computer alone, they aren't accidentally accessed by someone else.  The secruty does not have to be extremely tight. My only concern is that when family/friends come over, I don't really like the idea of them looking at my bank details, accounts or, you guessed it, porn collection.  A simple, effective way to let me put my machine in the hands of someone else knowing that said machine can not cause me embarresment is the sole reason why I'd like to see this in Ubuntu. Singular or plural following a list Can anyone tell me if I should use inspire or inspires in this phrase?     An extraordinary leader whose vision, values, integrity and boundless curiosity inspires all who follow in his footsteps. Filter subscription email is not being delivered (June 2019 - Feb 2020) I have created a custom filter in  and specified that I would like to get email updates:  However, I never got a confirmation mail nor any notifications based on my filter. I tried the &quot;resent confirmation mail&quot; button on the right hand sidebar:  But again nothing happens. The mail address should be fine  I used it for all kinds of notifications from Stack Exchange. For example the rep recalculation email arrived just fine on this address.  I retyped it several times to make sure there really isn't any typo  I double checked that it did not end up in the spam filter  I don't think it is a problem with my particular email provider, users with other mail providers seem to have the same problem, see     This is possibly related to , but this claims to be &quot;status complete&quot;.   EDIT: Although the &quot;status-completed&quot; tag was added, the problem still persists  EDIT 2: As of Feb 2020, it finally works How to block sites with iptables Stack Exchange doesn't allow me to answer protected questions because I gave away earned rep in bounties How to get past a forgotten iPhone passcode?