How to get every first letter of a word in uppercase and others are in lowercase only. For example, when typing "LATEX FOR DOCUMENT SETTING" or "latex for document setting" or "LateX foR Document SeTTing", LaTeX should produce "Latex For Document Setting" in every case.
I was just reviewing my "capitalization standards" for titles and such and was wondering if there's a macro to do the same thing I'm forced to do by hand nowadays. My personal rules (feel free to disagree/comment on them) are as follows:   the first letter (a number is a letter too for the sake of these rules) always gets capitalized, every word gets capitalized individually, the exception to the rule above (and just the rule above) are  such as prepositions and the like.   In other words: I'd like a capitalization command (like \MakeUppercase) that will capitalize every word not included in a list of words and that will always capitalize the first word of its argument.  Doable?  PS: one such "list" of closed class words (also known as "function words") can be found .
My question is simple, why do we believe  to be absurd? Is the Ultra-violet catastrophe incorrect or is it only because we can not create or know of a perfect emitter? I am a bit confused as to why Quanta was necessary. Limit Ordinal Question how to prove this result.     $\alpha$ is limit ordinal if and only if $\beta&lt;\alpha$ implies $\beta+1&lt;\alpha$ for any $\beta$.   I am getting confused because of the definition of limit ordinal. it says     $\alpha=\sup\{\beta: \beta&lt;\alpha\}=\bigcup\alpha$    for sup I am ok but for $\alpha=\bigcup\alpha$ how ?? What are the differences between a multidimensional array and an array of arrays in C#? How to do multiple joins when using groupby in linq Redirecting stdout to a file you don't have write permission on Using Apex Managed Sharing to share an opportunity Here's the use case. When a lead is converted to an Opportunity, I want to automatically share the opportunity with the previous owner of the lead. This is needed because upon conversion, the opportunity ownership is granted to someone else but the original lead owner needs ongoing access to the opportunity.  So:   A partner submits/creates a lead and is the lead owner Lead is converted to opportunity and internal sales person gains ownership Original partner needs to have view/edit access on this opportunity   I know you can use Apex Managed Sharing to share a custom object, but I'm hitting a wall trying to do this with an opportunity since the fields in OpportunityShare are not writable. The following won't even compile as a result:  List&lt;OpportunityShare&gt; oppShares = new List&lt;OpportunityShare&gt;(); for(Id i : oppIds) {    OpportunityShare os = new OpportunityShare(OpportunityId = i);    os.OpportunityId = i; // *** ERROR - not writable ***    os.OpportunityAccessLevel = 'Read/Write';    os.UserOrGroupId = oppIdToLead.get(i).OwnerId;    os.RowCause = 'Manual Sharing';    oppShares.add(os); }  Database.SaveResult[] result = Database.insert(oppShares, false); Can I ignore coefficients for non-significant levels of factors in a linear model? Which story is true at end of the movie "Life of Pi"? At the end of the movie  Pi tells us two stories. One with the tiger (unrealistic) and one without the tiger (realistic).  I believe that he was metaphorically referring himself as the tiger who enters the forest (world) after being rescued.  Is my thinking correct? can you explain me the ending?  At the end did Irfan Khan (older Pi/narrator) say that "even God chose the first story"? Does it mean that the first story was indeed real? Show an Ideal is the principal ideal for some polynomial. Let $F$ be a ﬁeld and $R = F[X]$. Suppose $I$ is an ideal of $R$. Show that $I = (p(X))$ for some $p(X)$ in $F[X]$. (Hint: consider a polynomial $p(X)$ of least degree in $I$.)  I'm trying to do this question but can't seem to start. if anyone could give me a hint that would be appreciated.  My instinct was to take a monic polynomial (which exists since we are in a field) of degree $1$ and divide given the first two parts of the question were about polynomial division.  Thanks. improper integral calculation I do not know how to solve this integral and then expand the result in powers of $t$  $$(1-t)^{-1/2}\int_{-\infty}^{\infty}\frac{\exp\left(\frac{2x^2t}{1+t}\right)}{1+x^2}dx=?,~~~~|t|&lt;1.$$  any idea? Why $\lim\limits_{n\to \infty}\left(1+\frac{1}{n}\right)^n$ doesn't evaluate to 1? I am trying to identify what the flaw is exactly when reasoning about a limit such as the definition of $\mathbf e$:  $$ \lim_{n\rightarrow \infty}\left(1+\frac{1}{n}\right)^n={e} $$  Now, I know there are ways of proving this limit, such as by considering the binomial expansion of $(1+\frac{1}{n})^n$ and comparing that to the Maclaurin series of $e$. So to make this clear, I am not looking for a proof of the limit definition of $e$.  I tried searching for "limit laws/rules" but none of the rules I found described the above case. Hence, I am looking for a specific rule (or perhaps a certain perspective) that will help me realize why the above does not in fact evaluate to 1.  My train of thought is as follows: at a first glance, if I wasn't already familiar with what the limit evaluates to, I probably would evaluate the expression inside the brackets first, and then apply the limit to the power. So, $$\displaystyle\lim_{n\to\infty}\frac{1}{n}=0\quad\text{and then}$$  $$\displaystyle\lim_{n\rightarrow \infty}\left(1+0\right)^n=\lim_{n\to\infty}1^n=1$$  Why is my reasoning flawed? Select multiple faces at once I have a .STL file and all of the faces have been converted to triangles so there are hundreds of long thin triangles.  Is there a effective way to select all of the faces in a small area? Something like a circle and when you click every face under that circle is selected. What off-camera flash solution should I use with an entry-level Nikon? I have asked more than 100 questions on SO. The problem with asking so many questions is that it's sometimes very hard to navigate to the question I want.  Is there any way to improve the interface further? Why can't certain programs (like readlink) take input from a pipe? $H_0(X,A) = 0 \iff A \cap X_i \neq \emptyset \forall $ path-components $X_i$ I've been doing some more exercises in , in particular the following:  Show that $H_0(X,A) = 0$ iff $A$ meets each path-component of $X$.  "$\Leftarrow$": Let $x_i \in A \cap X_i \neq \emptyset \forall $ path-components $X_i$. Then for any $x \in X_i$ there is a path $\gamma$ from $x_i$ to $x$. They therefore differ by a boundary: $\partial \gamma = x - x_i$ and therefore $\{&#160;x \} = \{ x_i \}$ in $H_0(X,A) $. Therefore $H_0(X,A) = 0$.  "$\Rightarrow$" Now for this direction I'm not so sure and I'd be glad if you could give me a hint. Let $H_0(X,A) = 0$. By definition, the relative homology group is calculated from the following sequence of chain groups:  $$ 0 \rightarrow C_0(A) \rightarrow C_0(X) \xrightarrow{\partial_1} C_0(X) / C_0(A) \xrightarrow{\partial_0} 0$$  Then $H_0(X, A) = H_0(C_0(X) / C_0(A)) = ker \partial_0 / im \partial_0 = (C_0(X) / C_0(A) ) / im \partial_1 = 0$.  There are two cases where this equality holds:  (i) $C_0(X) / C_0(A) = 0$  (ii) $im \partial_1 = C_0(X) / C_0(A)$  In case (i), $A \cap X_i \neq \emptyset$ for all $X_i$.  In case (ii) I'm not sure how to proceed. Can you give me a hint? Many thanks for your help!  Edit Or maybe I could do the second direction like this:  $$0 = H_0(X,A) = \oplus_i H_0(X_i, A) \implies  H_0(X_i, A) = 0 \forall i$$  $$ \implies A \cap X_i \neq \emptyset \forall i$$? Double and triple substitution in bash and zsh Follow-up to the background part in .  In bash I can use ${!FOO} for double substitution, in zsh ${(P)FOO}. In both, the old-school (hack-y) eval \$$FOO works.  So, the smartest and most logical thing for me would be ${${FOO}}, ${${${FOO}}}… for double/triple/n substitution. Why doesn’t this work as expected?  Second: What does the \ do in the eval statement? I reckon it’s an escape, making something like eval \$$$FOO impossible. How to do a triple/n substitution with that that works in every shell? Statistical inference when the sample "is" the population Why is there conservation of kinetic energy in elastic collision and not in inelastic collision? Obtaining zero-length string from strtok()