Given a macro  % bold task titles \newcommand{\mypar}[1]{{\bf #1:}}  %task decription template \newcommand{\task}[3]{     \mypar{#1} #2 \\     \emph{Solution:} #3\\ }   I should like for the text generated by a task macro to be an atomic unit. I.e. it either fits entirely into the space left on a page or all of it (and everything following it) is pushed to the next page.  What can I do to this macro to enforce this?
I want to do something like the following in TeX:  \begin{nobreak}    Text here will not split over pages, it will remain as one continuous chunk. If there isn't enough room for it on the current page a pagebreak will happen before it and the whole chunk will start on the next page.    \end{nobreak}   Is this possible?
Is it possible to see cp speed and percent copied? I'm having problems when copying large files using nautilus (it gets stuck). I need to copy, using cp. I would like to know if there are any parameters that shows the % copied and also the transfer speed. What is wrong with defining \bal as \begin{align}? Verbatim Environment in Figure Caption Who is / was the "Lord of the Rings"? Who is the Lord, as referred to in the title? Frodo? Sauron? Someone else? Or is it more of an abstract title, not referring to a single person, like "He who wields the One Ring"? How to pass an argument to event handler in tkinter? I was solving a few problems from a textbook and I came across this one:     Find the tangent lines to the graph of $x^2+4y^2 = 36$ that go through   the point $P=(12,3)$   I could find the tangency points $$ but my solution was completely messy (I had four equations that I had to go back-and-forth with.  Is there an elegant/simple solution to that?  Tangency points:  $$P_1 = (0,3)$$ $$P_2 = \left( \frac{24}{5} , 3-\frac{24}{5} \right)$$ How to fix a stripped pedal crank The threads on my bike's pedal crank just became fully stripped and the pedal fell off, though the pedal itself is fine. Is there any way I can fix this without fully replacing the pedal crank? Born rule and unitary evolution Is the  a fundamental , or can it be inferred from unitary evolution? Loopy integral $\int xe^x\sin(x)$ When to use Path in WPF Binding? how long does the care take to reach the last pole algebra word problem There are 20 poles with a constant distance between each pole. A car takes 22 seconds to reach the 12th pole starting from the first pole, with a constant speed between each pole. how many seconds will it take to reach the last pole?   Is the answer 36 seconds?   since $\frac{22} {12}  = 1.83 $  $1.83 \times 20 = 36.67 $ Book where human thoughts are affecting the universe Basically our thoughts are ruining everything. Like when humans are taught stars are giant balls of gas. To the rest of the universe they aren't but humans think it and destroy alien planets. I think they come to seal us off from the rest of the universe. Silverlight - how do I get the text of the selected item in a combobox Is there any research or data on horizontal vs. vertical navigational menus? I've seen many sites using both horizontal (top) navigation, vertical (left) navigation, and both across web sites for a long time. My understanding is that they're both conventions, but I would assume there must be some data out there supporting one route over the other.   My question is: are any studies or data for or against horizontal or vertical navigation (as suggested above) with regards to primary navigation (specifically on a smaller site or web app).  I've read some interesting things that are flipping me back and forth between liking horizontal more than vertical and vice versa. For example if you look at Jacob Nielsen's post on  you get the feeling that more important content should be on the left -- but you could take that as it being more important for the navigation (the user's escape routes) to be in that valuable space. When selecting components, is there a way to control the "selection distance/area"? I don't want to select a component, even if I click ~20 pixels away from it.    Thanks in advance! Bag-of-Words for Text Classification: Why not just use word frequencies instead of TFIDF? A common approach to text classification is to train a classifier off of a 'bag-of-words'. The user takes the text to be classified and counts the frequencies of the words in each object, followed by some sort of trimming to keep the resulting matrix of a manageable size.  Often, I see users construct their feature vector using TFIDF.  In other words, the text frequencies noted above are down-weighted by the frequency of the words in corpus.  I see why TFIDF would be useful for selecting the 'most distinguishing' words of a given document for, say, display to a human analyst.  But in the case of text categorization using standard supervised ML techniques, why bother downweighting by the frequency of documents in the corpus?  Will not the learner itself decide the importance to assign to each word/combination of words?  I'd be grateful for your thoughts on what value the IDF adds, if any. How to generate a random number between 1 and 10 with a six-sided die? I wanted to know if there is difference in terms of charging the battery when a MacBook Pro 16" is connected to two monitors via USB-C, both with Power Delivery capability.   In this specific case I am talking about the LG 27UK850-W monitors. The MacBook Pro 16" will be connected via USB-C to both of them and use them as external monitors. Since both can charge it as well, will the MacBook Pro  charge faster while being connected to both or will just one monitor be able to deliver the charge at a time? I would like to format a price in JavaScript. I'd like a function which takes a float as an argument and returns a string formatted like this: &quot;$ 2,500.00&quot;  What's the best way to do this? How to show that $\det(AB) =\det(A) \det(B)$? Given two square matrices $A$ and $B$, how do you show that $$\det(AB) = \det(A)\det(B)$$ where $\det(\cdot)$ is the determinant of the matrix?