I am creating worksheets and I would like to have multiple rows with 2 columns.  I would like the numbering to go horizontally, i.e.,   1. math problem              2. math problem 3. math problem              4. math problem 5. math problem              6. math problem 7. math problem              8. math problem   I am working in the article class (although I need this for the exam class as well) and have been playing around with array/tabular, minipage, and creating my own commands... I am still new at this, thank you for your patience.   \documentclass[twoside]{article} \usepackage{amsmath,amsfonts,amssymb,graphicx,mathtools,flexisym, array, multirow, tabularx, enumitem, multicol}  \newlist{mparts}{enumerate}{1} \setlist[mparts]{label*=(\arabic*)} \newcommand{\mpart}{\item}  \SetEnumitemKey{twocol}{   before=\raggedcolumns\begin{multicols}{2},   after=\end{multicols}}  \begin{document} \subsection{Finding Limits Analytically} When a function is defined and continuous at a value $x=a$, how can $\lim  \limits_{x\to a} f(x)$ be found analytically? \vspace{0.5in} \begin{mparts}[twocol]     \mpart $\lim \limits_{x\to 3} \dfrac{1}{2}x^2-2x+3$     \mpart $\lim \limits_{x\to 3} \dfrac{5x+2}{2x-3}$     \mpart $\lim \limits_{x\to 2^{-}} \dfrac{\sqrt{x+2}-1}{x+1}$     \mpart $\lim \limits_{\theta \to \frac{\pi}{2}} \sin{2\theta}$ \end{mparts} \end{document}   As you can see, the numbering goes vertically down as I add more problems.  While this is largely cosmetic, I'd like to know how to change it to look they way I'd prefer it to look.  I also don't know how to insert an image here.  But the format looks generally like this:  1. math problem          3. math problem 2. math problem          4. math problem   Many thanks!
122204
How can I get lists arranged in two columns throughout the document. I would like to make changes only in preamble and not in the list.  I am thinking of this structure  . First item    . second item  . third item   Here is MWE.   \documentclass{article} \usepackage{multicol} \begin{document}     \begin{multicols}{2}         \begin{itemize} \item 1 \item 2 \item 3 \item 4 \item 5 \item 6 \item 7 \item 8 \item 9 \item 10 \item 11 \item 12 \item 13 \end{itemize}     \end{multicols} \end{document}
71984
The following image illustrates what am looking for:    Essentially I want the numbering to occur as shown above but using the multicol and enumitem package. But when I try it by using the following code:  \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{enumitem,multicol} \begin{document} \begin{enumerate} \item Evaluate each of the following if $x$ is a non-zero real number.     \begin{multicols}{2}     \begin{enumerate}[itemsep=1cm]% The item sep is my choice here.     \item $\dfrac{|x|}{x}$     \item $\dfrac{x}{|x|}$     \item $\dfrac{|-x|}{-x}$     \item $|x|-|-x|$     \end{enumerate}      \end{multicols} \end{enumerate} \end{document}   I get:    Essentially, I want the (b) to be where the (c) is. I know this has been done but I can't seem to find it.
71112
I have a two column table with a single multicolumn spanning both of them. The text on that multicolumn is rather long so I need to set its width so it wraps around. I can set the width with \multicolumn{2}{p{whatever}}{text} but what should I set &quot;whatever&quot; to? What is the actual width of a table? Is there a variable holding that value? I first thought to use \textwidth but that's not it. Building the document on draft mode shows that it's going out a tiny bit. The following table should show my problem. In draft mode will display a black box on its side. \begin{tabular}{l l}   \toprule   \multicolumn{2}{p{\textwidth}}{\lipsum[1]} \\   \bottomrule \end{tabular}  I do have more rows, I'm just keeping the example simple. I'm using the memoir document class. The actual text inside the multicolumn is using the seqsplit package. EDIT: I should have been more specific with the question. The only row that would make the table go over the limit is the one that I'm also trying to limit. And by limit I mean, so I don't get an overfull warning. So my question can be better rephrased as how to find the available space for a table so it is not overfull?
20820
I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically.  That is, so that in the output of ${x^2_4}^6_8$, the 2 and 6 were aligned, as were the 4 and 8 (obviously, I'd expect to do this with a macro rather than the super- and subscript commands).  As a bonus, it'd be nice to be able to control whether or not this appeared like $x^{26}_{48}$ or $x^{2\phantom{4}6}_{\phantom{2}4\phantom{6}8}$.  And it would be nice to truly be able to do this incrementally, so that each subscript or superscript could be added without having to know all the previous ones (useful for adding stuff via macros).  Simply writing $x^2_4{}^6_8$ wouldn't work as the latter super and subscripts wouldn't know the difference between x and X and &prod;.  (see also )
26286
How do I code a table to look like this? I'm not the best at LaTeX and can't seem to wrap my head around \multirow. I checked other examples prior to posting but they used \multicolumn and it just confused me even more. Thanks in advance!    \begin{center} \begin{tabular}{ |c|c|c|c|c|}   \hline  TextA &amp; TextB &amp; TextC &amp; TextD &amp; TextE\\  \hline  A &amp; TextF &amp; TextG &amp; TextH &amp; TextI\\  B &amp; TextJ &amp; TextK &amp; TextL &amp; TextM\\  C &amp; \multirow{2}*{TextF} &amp; TextG &amp; TextH &amp; TextI\\  \cline{3-3}  &amp; TextJ &amp; TextK \\ \hline \end{tabular} \end{center}   I was trying something like this.. I'm starting to have problems as I'm trying to multirow within a multirow? I'm not sure of the process here. I would like TextG to be split into 2 and TextH and TextI to be the cells which are split in 3 but not sure how to go about it. Will then TextJ and TextK be the contents of the split TextG cell?
118058
I am trying to create a table which uses both multicolumns and multirows, and I am getting some graphical problems.   As you can see on below image, the top right corner is missing a line and the second horizontal line cuts off in the middle of a cell)    Find the code below.  \documentclass{article}  %Used to create Macro 1 \usepackage{array}  \usepackage{multirow}  %Used for \textsubscript \usepackage{fixltx2e}  %Macro \newcolumntype{"}{@{\hskip\tabcolsep\vrule width 1pt\hskip\tabcolsep}} \makeatother  \begin{document}   \begin{table}        \centering        \begin{tabular}[ht]{|c"c|c|c|c|}                \hline                \multirow{2}{*}{\textbf{Change}}          &amp; \multicolumn{2}{c}{\textbf{Main}}       &amp; \multicolumn{2}{c}{\textbf{Sub}}        \\ \cline{2-5}                       &amp; \textbf{P}                &amp; \textbf{A}                &amp; \textbf{P}                &amp; \textbf{A}         \\ \hline                   1      &amp; U                         &amp; R\textsubscript{ef}       &amp; R\textsubscript{ef}       &amp; U                  \\ \hline               2      &amp; U                         &amp; U                         &amp; R\textsubscript{ef}       &amp; R\textsubscript{ef} \\ \hline               3      &amp; G                         &amp; P                         &amp; P                         &amp; G                  \\ \hline               4      &amp; P                         &amp; P                         &amp; G                         &amp; G                  \\ \hline               5      &amp; A                         &amp; A                         &amp; N/A                       &amp; N/A                \\ \hline               6      &amp; E                         &amp; E                         &amp; N/A                       &amp; N/A                \\ \hline               7      &amp; E                         &amp; E                         &amp; N/A                       &amp; N/A                \\ \hline               8      &amp; E                         &amp; E                         &amp; N/A                       &amp; N/A                \\ \hline               9      &amp; E                         &amp; E                         &amp; N/A                       &amp; N/A                \\ \hline               10     &amp; E                         &amp; E                         &amp; G                         &amp; G                  \\ \hline               11     &amp; E                         &amp; E                         &amp; G                         &amp; G                  \\ \hline               12     &amp; E                         &amp; E                         &amp; G                         &amp; G                  \\ \hline               13     &amp; R\textsubscript{ed}       &amp; R\textsubscript{ed} &amp;     N/A                         &amp; N/A                \\ \hline          \end{tabular}        \caption{X }        \label{table:X} \end{table}   \end{document}   If you need any additional information, please leave a comment and I'll add info.
58921
multicol or memoir would be preferred. \columnseprule, I understand, is responsible for drawing a solid vertical line between columns. Is there a parsimonious way to achieve the following?  -----pretext--- ###### : ###### ###### : ###### ###### : ###### ###### : ###### ###### : ###### ###### : ###### -----posttext--
73208
How can I get Excel to increment ranges arguments by more than one row when I fill down a formula?  For example, if I want Excel to keep averaging the next five numbers in a column, how do I set the average function to keep it in a pattern throughout, without changing it from an increment of one from the first and last number of the previous formula?  Excel keeps giving me this when I fill down:  =Average(A1:A5) =Average(A2:A6) =Average(A3:A7)   I want Excel to do this instead:  =Average(A1:A5) =Average(A6:A10) =Average(A11:A15)   How can I do this by filling down?
28042
I really tried hard to do this on my own, but I keep failing ... Using multi-column and multi-row commands confused me. I know some of you might frown upon such a request but I really need help getting this table implemented .. So I'm sorry if I upset anyone.  My preamble has :   \documentclass[12pt,a4paper]{report} \usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry} \linespread{1.5}     Is there a way I can convert this from excel to LaTeX form ? I tried an add-in before but it didn't work for me. Also online generators cannot combine cells the way I want them (unless I didn't find a better table generator ? )
8914
I wish to be able to have a table (using tabular) that fills the page horizontally with each column using a fraction of that space, for now assume that they are equally sized.  I wish to be able to use enumerations inside of the tabular, so I am using parabox's to achieve this.  Currently I have got:  \begin{tabular}{ | p{0.25\linewidth} |                    p{0.25\linewidth} |                    p{0.25\linewidth} |                    p{0.25\linewidth} | }  %content here after   except this uses all the space from the first margain to the end of the page. Which looks awful. I really want to avoid hard coding in any dimensions because I will want to play around with margins and orientation later.   If I could get it so that I can use a proportion of the text width for each column that would be great.
118949
I am trying to wrap text in the multirow column (1st one) and only have the vertical lines inside the table if that makes sense.   Can anyone help me? `  \begin{table*}[!htbp] \centering \renewcommand{\arraystretch}{1.4} \begin{tabular}{|c| p{2cm}|c|c|c|c|} \cline{3-6} &amp;&amp;\multicolumn{2}{c|}{\textbf{Gravité du Dommage G1}} &amp; \multicolumn{2}{c|}{\textbf{Gravité du Dommage G2}}\\  \cline{3-6} &amp;&amp;\textbf{Fréquence F1} &amp; \textbf{Fréquence F2} &amp; \textbf{Fréquence F1} &amp; \textbf{Fréquence F2}\\ \hline \multirow{ 2}{*}{\textbf{Probabilité Occurence O1}}&amp;\textbf{Possibilité Evitement P1}&amp;&amp;&amp;&amp;\\ \cline{2-6} &amp;\textbf{Possibilité Evitement P2}&amp;&amp;&amp;&amp;\\ \hline \multirow{ 2}{*}{\textbf{Probabilité Occurence O2}}&amp;\textbf{Possibilité Evitement P1}&amp;&amp;&amp;&amp;\\ \cline{2-6} &amp;\textbf{Possibilité Evitement P2}&amp;&amp;&amp;&amp;\\ \hline \multirow{ 2}{*}{\textbf{Probabilité Occurence O3}}&amp;\textbf{Possibilité Evitement P1}&amp;&amp;&amp;&amp;\\ \cline{2-6} &amp;\textbf{Possibilité Evitement P2}&amp;&amp;&amp;&amp;\\ \hline \end{tabular} \end{table*}
29070
I have a similar problem to what is mentioned in . But to make things a little more difficult, the table has approximately 1000 rows and 64 columns. I thought of splitting up the table but the users insist on viewing all the columns at once. Hence I have come up with one option where the first two to three columns with name, ID are set to a freeze state (like in excel) and rest of the columns scroll under these columns; i.e. the table gets a horizontal scroll and to solve the row issue i have given a pagination. I have recommended that the table will be displayed only if there are 100 rows, if there are more than 100 rows the user will get an export to excel/import from excel option.  Is there a better way to handle this?
57318
If I utilize the two columns of multicols for my Kurdish sequence of numbers, it arranges the items in column like the following figure:   But I want to arrange the items in rows splitted by some columns (two columns in this case) alike the following figure:   And for the case of "three columns", the output would be alike the following figure:   How may I achieve the functionality? And I don't want to use the sequence of the following commands:  \begin{multicols}{2}‎ \begin{enumerate}[$1)$,noitemsep] \item ‎ Yek \item ‎ Du \end{enumerate} \end{multicols}‎   Instead, I want to specify the split count of the columns and then have the items arranged in the desired arrangement automatically. For the record, I've check  post, but it's too generalized.
5489
I have this MWE:  \documentclass{article} \usepackage{multirow} \begin{document}     \begin{table}[here]         \begin{center}             \begin{tabular}{|l|l|c|}             \hline              \multicolumn{2}{|c|}{\textbf{SED}} &amp; \multirow{2}{*}{\textbf{\% compressione}} \\             \cline{1-2}             \textbf{MC} &amp; \textbf{DP} &amp; \\              \hline              \hline             0.00016032 &amp; 0.0001750267 &amp; 10\%\\             \hline             \end{tabular}          \end{center}     \end{table} \end{document}   It realizes this image:   The first two columns are correctly formatted to the left, but I want it so that just MC and DP will be centered, how can I do that?
101166
A hopefully very simple question. Why does the multicolumn in my example below screw up the spacing between the columns below? Obviously I would want columns A, B, and C to be spaced evenly (as they are if I comment the multicolumn-row). How to achieve this?  \documentclass{scrbook} \usepackage{booktabs} \usepackage{multirow}  \newcommand{\crule}[1]{\multispan{#1}{\hspace*{\tabcolsep}\hrulefill\hspace*{\tabcolsep}}}  \begin{document}  \begin{table}[!t]     \caption{bla.}      \begin{tabular*}{\textwidth}{@{}l@{\extracolsep\fill}c@{\extracolsep\fill}c@{\extracolsep\fill}c@{}}     \toprule         &amp; \multicolumn{3}{c}{sample number}\\         &amp; \crule{3}\\ % definition should still include some neg. vspace after that         &amp; 1 &amp; 2 &amp; 3\\     \midrule     some longer text here  &amp; A    &amp; B   &amp; C\\     \bottomrule     \end{tabular*}     \end{table} \end{document}   results in
82604
Consider the following scenario illustrating the data I have vs. the data I want. Very simply, I have a single column that represents Field 1, Contents of Field 1,...etc. and is more appropriately formatted as pairs of rows across columns.          I've been experimenting with the TRANSPOSE function, but that one's new to me and I'm not sure it's the right direction. At first glance, it doesn't seem to accomodate my needs. But I could be wrong...  While it would be relatively simple to set up an 'every other row' formula, I also have to account for situations where I may have a foo repeating with a single bar or vice versa, and that's where I'm stuck. What I need is a "next unused cell" function, or something that can add X rows or Y columns to a particular cell.     I can envision a formula that can manipulate the cell label and solve my problem:  =($A1+2rows) or some kind of =$(A+3)$(4+2) that would return cell D6.   Is something like that possible?
90089
Hi I have used a recent suggestion by @leandriis to fix the headers table, but when I tried to use his suggestion to draw another table, I'm getting several issues, here my suggestion, my output and the desired table to produce. My suggestion :     \documentclass{article}     \usepackage{geometry}     \usepackage{rotating}     \usepackage{booktabs, makecell}     \usepackage[referable]{threeparttablex}     \usepackage{siunitx}    \usepackage[skip=1ex]{caption}    \usepackage{xcolor}    \newcommand\tc[1]{\textcolor{blue}{#1}}    \NewExpandableDocumentCommand\mcc{O{1}m}    {\multicolumn{#1}{&gt;{\bfseries}c}{#2}}    \usepackage{multirow}    \renewcommand{\theadfont}{\normalsize}    \begin{document}  \begin{table}[h!]  \centering  \begin{threeparttable}   \caption{Forecasting and encompassing test results for the bagging model and combining methods,     1995:04–2005:03 out-of-sample period}    \label{tab1}    \begin{tabular}{@{} &gt;{\itshape}l                *{8}{S[table-format=1.2]}                 }   \toprule   \multirow{2.1}{*}{Combining method}    &amp; \mcc[4]{$\thead{H_{0}$: BA encompasses CB}}    &amp; \mcc[4]{$\thead{H_{0}$: CB encompasses BA}}   \\    \cmidrule(r){2-5} \cmidrule(l){6-9}   &amp; \mcc{\hat{\lambda}_{CB}} &amp; \mcc{MHLN_{h}} &amp; \mcc{P-value}    &amp; \mcc{\hat{\lambda}_{CB}} &amp; \mcc{MHLN_{h}} &amp; \mcc{P-value}\\   \midrule   BA model&amp;9.13&amp; &amp; &amp; &amp; &amp; \\   Mean            &amp; 0.35&amp; 2.42\tc{**} &amp; 0.01&amp; 0.65&amp; 3.54\tc{**} &amp; 0.00\\          Median          &amp; 0.32&amp; 2.38\tc{**} &amp; 0.01&amp; 0.68&amp; 3.77\tc{**} &amp; 0.00\\          Trimmed mean    &amp; 0.34&amp; 2.39\tc{**} &amp; 0.01&amp; 0.66&amp; 3.67\tc{**} &amp; 0.00\\         DMSE,$\Psi=1.00$&amp; 0.35&amp; 2.42\tc{**} &amp; 1.00&amp; 1.10&amp; 3.54\tc{**} &amp; 0.00\\         DMSE,$\Psi=0.90$&amp; 0.35&amp; 2.41\tc{**} &amp; 1.00&amp; 1.10&amp; 3.55\tc{**} &amp; 0.00\\         C(2, PB)        &amp; 0.34&amp; 2.34\tc{**} &amp; 0.01&amp; 0.66&amp; 3.59\tc{**} &amp; 0.00\\         C(2, PB)        &amp; 0.36&amp; 2.33\tc{**} &amp; 0.01&amp; 0.64&amp; 3.43\tc{**} &amp; 0.00\\         PC              &amp; 0.59&amp; 2.79\tc{**} &amp; 0.00&amp; 0.41&amp; 2.14\tc{**} &amp; 1.00\\                \bottomrule \end{tabular}  \end{threeparttable}  \end{table}  \end{document}  my output:  Desired Table :