How can I align the small, large and user columns under every multicolumn. Alignment gets lost when using multicolumn. Code below:  \begin{table}[] \centering \resizebox{\columnwidth}{!}{ \begin{tabular}{l|c|c|c|c|cccccccccccccccccccccccc} \toprule \multirow{3}{*}{\color{red}{\textbf{SAD}}} &amp; \multicolumn{4}{c}{} &amp; \multicolumn{3}{c}{\textbf{Troll}} &amp; \multicolumn{3}{c}{\textbf{Doll}} &amp; \multicolumn{3}{c}{\textbf{Donkey}} &amp; \multicolumn{3}{c}{\textbf{Elephant}} &amp; \multicolumn{3}{c}{\textbf{Plant}} &amp; \multicolumn{3}{c}{\textbf{Pineapple}} &amp; \multicolumn{3}{c}{\textbf{Plastic bag}} &amp; \multicolumn{3}{c}{\textbf{Net}} \\  &amp; overall &amp; avg. small &amp; avg. large &amp; avg. medium &amp; \multicolumn{3}{c}{(Strongly Transparent)} &amp; \multicolumn{3}{c}{(Strongly Transparent)} &amp;      \multicolumn{3}{c}{(Medium Transparent)} &amp; \multicolumn{3}{c}{(Medium Transparent)} &amp; \multicolumn{3}{c}{(Little Transparent)} &amp; \multicolumn{3}{c}{(Little Transparent)} &amp; \multicolumn{3}{c}{(Highly Transparent)} &amp; \multicolumn{3}{c}{(Highly Transparent)} \\  &amp; rank &amp; rank &amp; rank &amp; rank &amp; small &amp; large &amp; user &amp; small &amp; large &amp; user &amp; small &amp; large &amp; user &amp; small &amp; large &amp; user &amp; small &amp; large &amp; user &amp; small &amp; large &amp; user &amp; small &amp; large &amp; user &amp; small &amp; large &amp; user \\  \rowcolor{blue!10} GAN &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ &amp; $1.0_{\color{blue}1}$ \\  \bottomrule \end{tabular} } \label{tab:my_label} \end{table}
I'm trying to typeset a table that would have a header in the first row (I'm not looking for a different/better solution to adding a header, but for a fix to this solution. Thanks). I want to achieve this by having a multicolumn cell spanning all the columns of the first row. The problem is that if the text is too long, the column widths are uneven, with the last column accumulating excess width. I would expect all of the columns to be of approximately the same width (although I cannot find a decent source that would say they should), given the fact that all the text in the second row is of approximately the same width.  I find this behaviour quite puzzling and have no idea what the cause could be. I know I could perhaps remedy this by manually setting the column widths, but am curious as to how to fix this without doing that (I do not need or indeed want the columns to be of the same width, but roughly proportional to the length of their content), preferably but not necessarily by using the tabular environment only (some other conflict with the document class I am using).   What is it that I'm doing or assuming wrong? And why?  MWE:  \documentclass{article} \begin{document}  \begin{tabular}{ccccc} \multicolumn{5}{c}{This is a piece of text. The longer it is, the longer the last column.} \\  1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 \\ \hline \end{tabular}  \end{document}   Resulting table. Notice how the last column of the second row accumulates excess width.
Create a .desktop file that opens and execute a command in a terminal Why is the even root of a number always positive? Let $n \in \mathbb N$ be a natural number and $a \in \mathbb R$ be a real number. The $n$-th root of the number $a$ is defined as follows:  Case I: $n$ is an odd number. In this case the $n^{\text{th}}$ root of $a$ is defined to be that number $b \in \mathbb R$ such that $b^n = a$.  Case II: $n$ is an even number. In this case the $n^{\text{th}}$ root of $a$ is defined to be that number $b \geq 0$ such that $b^n = a$.  Why is it that when $n$ is even, we only consider $b \geq 0$. For example, both $+2$ and $-2$ squared equal $4$, but when we say the square root of $4$ is $2$. Is there a reason for this? Is it possible to have a rate of change of acceleration? I know this may seem a weird question, but it always bothers me. My physics book (Resnick,Halliday,Walker), and also various sites never say anything beyond acceleration.   But when a moving body is being acted by a variable force , its acceleration will definitely change: it will either increase or decrease. Then there will be rate of change of acceleration with respect to time. So, why don't books mention this? What is the cause for not measuring $\frac{d\vec{a}}{dt}$ ? If it exists, what is the use of it? Rolle's Theorem and the Mean Value Theorem Let $f\colon \mathbb{R} \to \mathbb{R}$ have derivatives of all orders. Suppose that $a &lt; b$ and that $f(a)=f(b)=f'(a)=f'(b) =0$. Prove that $f'''(c) = 0$ for some $c$ in $(a,b)$. How to add tags to files in Windows 7 so that they appear in search results In Windows 7, I want to add tags to my files (PDF, Word, Images etc) so that they appear directly in the search results, regardless of their content, title etc.    shows how to search by tag, but it does not tell how to add a tag in any file.  In the long term, I'm planning to add such tags programmatically as well. There is a sentence:     No sooner had he sat down than he fell asleep.   I just do not understand, is this an inversion? And if so, I still do not understand the sentence. Typical Japanese style anime art, it was a series.   It has been around for more than 6 years. I think it mixed fantasy and sci-fi. It was certainly not Isekai and it has no magic, it feels more like revered science. A boy gets a gem embedded into his arm after a terrorist attack and transforms into a white and orange humanoid being. There are more people able to transform into these beings. There is also a red flying ship with a dark yellow underbelly that throws boxes with parachutes. There is also this top-secret laboratory where the scientists study how to battle against the beings. There are some other flying ships of varying colors. If I remember correctly, the protagonist gets amnesia near the end of the plot. How to connect to wifi using just the terminal? Non-trivial cyclic group with unique generator Let $G$ be a non-trivial cyclic group with an unique generator. Show that $G$ has exactly two elements.   Let $g$ be a generator of $G$. My first idea to approach the problem was to show that if $|G|=n &gt; 2$ then there is an integer $k$ between 1 and $n$ such that $\langle g^k \rangle = G$ or, equivalently, $g \in \langle g^k \rangle$. My second idea was to analyse the problem in 2 separate cases. For the first one, if $n$ is prime, let $k$ be a positive integer then, by Lagrange's Theorem, $|g^k| \mid n$ and, therefore, $\langle g^k \rangle = n$. Hence, we must conclude that, if $n &gt; 2$ the generator cannot be unique. For the second case, where $n$ is composite, I was hoping to get to a contradiction, but could not advance any further. Is there a way to develop either of these ideas or is it necessary a new approach? I took a look at  but my question is not the same.  I have unique keys encrypting each plaintext (in CBC mode, AES-256) and I do not use a key to encrypt more than one plaintext. Is it insecure to use null IVs in this case? If it is insecure, why? Given the function: $$f(x) = \begin{cases} x\cdot\sin(\frac{1}{x}) &amp; \text{if $x\ne0$} \\ 0 &amp; \text{if $x=0$} \end{cases}$$  Question 1: Is $f(x)$ continuous at $x=0$?  Question 2: What is the derivative of $f(x)$ at $x=0$ and how do I calculate it? Why linear and logistic regression coefficients cannot be estimated using same method? I read in a machine learning book that parameters of linear regression can be estimated (among other methods) by gradient descent, while parameters of logistic regression are usually estimated by maximum likelihood estimation.  Is it possible to explain to a novice (me) why we need different methods for linear/logistic regression. a.k.a why not MLE for linear regression and why not gradient descent for logistic regression? Difference between "not equal" operators  and != in PHP Adding execute permission in opt folder I am trying to install oracle database in Ubuntu 16.04 LTS. I had unzipped the oracle database file in opt folder,but now when I am trying to give execute right to the sqldeveloper file using chmod +x sqldeveloper.sh, it's throwing this error:  chmod: changing permissions of 'sqldeveloper.sh': Operation not permitted Proof for Property of Complex Numbers Is the inequality $\lvert z_1 + z_2 \rvert \ge \lvert z_1 \rvert - \lvert z_2 \rvert$ incorrect, where $z_1$ and $z_2$ are any two complex numbers? I need an example to prove that it is. And in case it is correct, can you please give the proof? Thanks for any help. How to have separated but vinculated multiple Ubuntu One accounts? Text editor to edit large (4.3 GB) plain text file Is there any text editor, which can edit such file?  I've  tried:   gedit kate nano vim mcedit   without success. How can I prevent my mail from being classified as spam? When sending or forwarding emails using a personal or company domain using a  website or email client, how do I prevent the email from being incorrectly marked as spam? What are the consequences of "copying" a data set for OLS? Can I still use logistic regression if some variables are not applied to all the observational units? Some of the variables are questions that are not being asked to every single person in the questionaire depending on how they answered previous question(s). So would I still be able to use a logistic regression if some of the questions (the independent variables) are only measuring the responses of SOME of the respondents?