I have the below code, and I want to center the col. elemnts so I used {||&gt;{\centering}p{0.5\textwidth}||&gt;{\centering}&gt;p{0.3\textwidth}|}, but I got this error &quot;\misplaced noalign&quot; for the \hline command .. any idea how to fix the problem?. \begin{table}[h]         \label{1}         \begin{tabular}{|p{0.5\textwidth}|&gt;p{0.3\textwidth}|}             \hline             \rowcolor{Gainsboro!60}             Student Name &amp;Student ID \myhash \\             \hline             &amp; \\             \hline         \end{tabular} \end{table}
The following code gives me an error:  \documentclass[12pt]{article} \usepackage[margin=2cm]{geometry} \usepackage [english]{babel} \usepackage{amsmath, amssymb} \usepackage{enumitem, array} \begin{document} {\begin{minipage}[t]{\textwidth} \begin{enumerate}[label=(\roman*)] {\setlength\itemindent{10pt}\item  \begin{equation*} \begin{array}{&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}}  \hline x &amp; l_{[x]} &amp; d_{[x]} &amp; l_{x+1} &amp; \mathring{e}_{[x]} \\ \hline \end{array} \end{equation*}} \end{enumerate} \end{minipage}} \end{document}   Note: for various reasons, I have to keep minipage there. For some reason, this code gives me an error when it compiles. It gives the following output:     The errors either say there is a } missing or a $ missing. My eyes don't see such a thing!
$x_{1}...x_{n}$ are independent continuous random variables with common distribution function $F(x)$,consider the order statistics $(x_{(1)},...,x_{(n)})$, compute $E(F(x_{(n)})-F(x_{(1)}))$  I have no idea to this problem, anyone could help me? Thanks! Uniform convergence for sequences of functions The nose of Tom Riddle (as a student) was fine, as I have seen in the movies. But, Voldemort's nose doesn't look like a normal human nose. What really happened? I have to prove that $$\lim_{n\to\infty} \left(1+n^2\right)^{\frac1n}$$ converges and give its limit. What I did was the following: $$\lim_{n\to\infty} \left(1+n^2\right)^\frac{1}{n} = \lim_{n\to\infty}(n^2)^{\frac1n}\lim_{n\to\infty}\left(\frac1{n^2} + 1\right)^\frac1n= \lim_{n\to\infty}(n^2)^{\frac1n}$$ Now that is where I am stuck - how to I continue with $\lim_{n\rightarrow\infty}(n^2)^{\frac{1}{n}}$? I really don't have any ideas left... Thank you very much! FunkyPeanut Why doesn't the Sun appear green to our eyes? Remove Archives in category title How I can remove word "Archives" in head title in category page? I'm using the Twenty Twelve theme and WordPress 4.   &lt;head&gt; &lt;title&gt;"name of category" Archives  | "name of sites"&lt;/title&gt; &lt;/head&gt; Where do I use delegates? What are some real world places that call for delegates?  I'm curious what situations or patterns are present where this method is the best solution.  No code required. What is truecm? In examples found around the web, some people specify lengths such as width=5truecm with \includegraphics or the geometry package. How is this different from regular 5cm? Why three-phase power? Why not a higher number of phases? Is there a reason, beyond historical reasons, that three phases has become the dominant number of phases?  I am aware of the advantages against one phase and two phase, namely the reduced amount of conductor needed, and that motors can provide torque when stalled (and less pulsation).  Is this solely due to diminishing returns, with only a small increase in smoothness of torque application, at the cost of increased complexity (increased number of wires (albeit of smaller CSA)).  To be clear, the phases are all evenly distributed, that is, five phases separated by 72 degrees. Output of which command used for input to cd I would like to take the output of a which command, and cd to the parent directory. For example, say I have the following:  which someprogram   With output:  /home/me/somedirectory/someprogram   And I would like to cd to the directory that someprogram lives in:  cd /home/me/somedirectory   I'd like to accomplish this in one line. What is the most elegant, tricky, short way to do this? How do I determine if a number is prime?  I'm writing a program where a user inputs any integer and from that the program determines whether the number is prime, but how do I go about that? Controlling the direction of curve extrusion Is there an easy way to control how the extruded width of a curve object is oriented, for example like this     or this     The curve in the images above has only two control points, and I got the effect by rotating one of the points. However, for a curve with lots of control points it would be somewhat difficult or at least tedious to achieve this. Is there a simpler way? Java: how do I check if a Date is within a certain range? How do I join two separate objects so I can edit them as one mesh? An example of a sequence of Riemann integrable functions $(f_n)$ that converges pointwise to a function $f$ that is not Riemann integrable. Launch Debian and Windows Suspended user cannot award bounty Transpose/Unzip Function (inverse of zip)? Windows 7's PATH and environment variables are corrupted How do Natures work? In at least some Pokemon games there are modifiers called "Natures" which affect pokemon stats. What do they do and how do it work? Also, what specific games possess it?