I have two tabular environments containing functions.  The height of the boxes containing some of these functions is taller than the inter-line spacing in text mode.  So, the appearance is cramped.  I want to have \\ [1.2\baselineskip] separating the rows.  This command is ignored.  I tried using \\ [12\baselineskip] in one row.  That is ignored, too.  In the following code, only \\ [1cm] was not ignored.  How do I get TeX to compile the code?  (I want to keep the tabular environments.)  \documentclass[10pt]{amsart}  \begin{document}   \noindent {\textbf{Example}} \vskip1.25mm The following functions are increasing on the interval $[0, \, \infty)$. \vskip1.25mm \begin{tabular}{r @{\ }l} {\textbf{i.)}}   &amp;       $x^{2} + x$ \\[1.2\baselineskip] {\textbf{ii.)}}  &amp;       $x^{3} + 2x^{2} + 3x - 7$ \\[1.2\baselineskip] {\textbf{iii.)}} &amp;       $x^{2} + \sqrt{x}$ \end{tabular} \vskip0.25in  \noindent {\textbf{Example}} \vskip1.25mm The following functions are also increasing on the interval $[0, \, \infty)$. \vskip1.25mm \begin{tabular}{r @{\ }l} {\textbf{i.)}}   &amp;       $\sqrt{x^{2} + x}$ \\[12\baselineskip] {\textbf{ii.)}}  &amp;       $\sqrt[\uproot{1} \leftroot{-1} 3]{x^{3} + 2x^{2} + 3x - 7}$ \\[1cm] {\textbf{iii.)}} &amp;       $\bigl(x^{2} + \sqrt{x}\bigr)^{3}$ \end{tabular}  \end{document}
121324
I have a table that is typeset using a tabular environment.  (I want to keep it in a tabular environment.)  The contents of each row is an expression involving radicals. The inter-line spacing is inconsistent with other tables in my file and with the inter-line spacing of the text in my file.  I seem to recall that the inter-line spacing should be 1.2 times the height of the current line or current row.  Is that right?  \documentclass[10pt]{amsart}  \begin{document}  \noindent {\textbf{Example}} \vskip1.25mm The following functions are increasing on the interval $[0, \, \infty)$. \vskip1.25mm \noindent \hspace*{1em} \begin{tabular}{r l} i.)     &amp;       \hspace*{-0.5em}$x^{2} + x$ \\ ii.)    &amp;       \hspace*{-0.5em}$x^{3} + 2x^{2} + 3x - 7$ \\ iii.)   &amp;       \hspace*{-0.5em}$x^{2} + \sqrt{x}$ \end{tabular} \vskip0.25in  \noindent {\textbf{Example}} \vskip1.25mm The following functions are increasing on the interval $[0, \, \infty)$. \vskip1.25mm \noindent \hspace*{1em} \begin{tabular}{r l} i.)     &amp;       \hspace*{-0.5em}$\sqrt{x^{2} + x}$ \\ ii.)    &amp;       \hspace*{-0.5em}$\sqrt[\uproot{1} \leftroot{-1} 3]{x^{3} + 2x^{2} + 3x - 7}$ \\ iii.)   &amp;       \hspace*{-0.5em}$(x^{2} + \sqrt{x}){\vphantom{x^{2} + \sqrt{x}}}^{3}$ \end{tabular}  \end{document}
78636
How to make table caption left-aligned.  I tried \usepackage[singlelinecheck=off]{caption} but it did not work out. In other words it gives an error:   \DeclareFloatFont                       {tiny}{\tiny}% "scriptsize" is defined by floatrow, "t...       \documentclass[a4paper]{article}     \usepackage{graphicx}     \usepackage[cmex10]{amsmath}     \usepackage{mathtools}     \usepackage[usenames]{color}     \usepackage[table]{xcolor}     \usepackage[left=2cm, right=2cm]{geometry}     \usepackage{authblk}      \usepackage{floatrow}     \usepackage[labelsep=space]{caption}      \DeclareFloatFont{tiny}{\tiny}     \floatsetup[table]{font=footnotesize,capposition=top}      \linespread{1.6}     \renewenvironment{abstract}{%     \noindent\bfseries\abstractname:\normalfont}{}      \newcommand{\affilmark}[1]{\rlap{\textsuperscript{\itshape#1}}}      \begin{document}      \centerline{\LARGE Title}     \vspace*{3ex}     \begin{flushleft}\large     A.B \affilmark{a},\quad     A.D\affilmark{b}\\[2ex]     \normalsize\itshape     \textsuperscript{a}\,University of nowhere,\     \upshape Corresponding author's email: \texttt{A.D@ieee.org}     \end{flushleft}     \date{}      \begin{abstract}     abstract goes here     \end{abstract}       \section{Introduction}     some text goes here.      \begin{figure}[!t]     \includegraphics[width=0.4\textwidth, height=0.2\textwidth]     \ffigbox[\FBwidth]     \caption{Conventional  (a) ABCD. (b) EFGH.}     \label{ABCDEFGH}     \end{figure}      \begin{table}[!t]      \caption{performance of .}     \label{tableII}     \centering     \definecolor{latexbl}{RGB}{28,220,240}     \rowcolors{12}{black}{latexbl}      \begin{tabular}  {|m{0.8cm}|m{0.6cm}|m{1.35cm}|m{1.1cm}|m{1.5cm}|m{1.1cm}|m{1.4cm}|m{0.7cm}|m{1.75cm}|m{1.2cm}|m{0.5cm}|}     \hline     \center Ref. &amp; A &amp;  B&amp; C &amp; D&amp; E&amp; F &amp;G &amp;H&amp;I &amp;J\\     \hline     \end{tabular}     \begin{flushleft}     some explanation     \end{flushleft}     \end{table}     \end{document}   EDIT BY LOCKSTEP (moved from separate "answer"):  Here's a compilable example that doesn't show the problematic behaviour mentioned by you. Please use it as start-up aid to post a compilable example which does show the behaviour.  \documentclass{article}  \usepackage{floatrow} \usepackage[singlelinecheck=off]{caption}  \begin{document}   \begin{table} (Table content) \caption{A table} \end{table}  \end{document}
54827
I am trying to write a few systems of equations, and I want the terms to be nicely spaced as below  2x  +   y  +  3z  =  10   \\   x  +   y  +   z  =   6   \\  x  +  3y  +  2z  =  13    Now, using some very ugly code, I was able to produce the results above.  \documentclass[10pt,a4paper]{article} \usepackage{mathtools} \usepackage{amsmath}  \begin{document}  \begin{align*} \begin{bmatrix} \begin{tabular}{r c r c r c r } $2x$ &amp; $+$ &amp; $ y$ &amp; $+$ &amp; $3z$ &amp; $=$ &amp; $10$ \\ $ x$ &amp; $+$ &amp; $ y$ &amp; $+$ &amp; $ z$ &amp; $=$ &amp; $ 6$ \\ $ x$ &amp; $+$ &amp; $3y$ &amp; $+$ &amp; $2z$ &amp; $=$ &amp; $13$ \end{tabular} \end{bmatrix} \end{align*}  \section{Another system of equations, now without the brackets}  \begin{table}[!htpb] \centering \begin{tabular}{r c r c r c r } $2x$ &amp; $+$ &amp; $ y$ &amp; $+$ &amp; $3z$ &amp; $=$ &amp; $10$ \\ $ x$ &amp; $+$ &amp; $ y$ &amp; $+$ &amp; $ z$ &amp; $=$ &amp; $ 6$ \\ $ x$ &amp; $+$ &amp; $3y$ &amp; $+$ &amp; $2z$ &amp; $=$ &amp; $13$ \end{tabular} \end{table}  \end{document}       I would very much want a more automatic way to do this, and a simple method for controlling the spacing between elements. I have looked at earlier posts like     It seems that I am looking for a simple version of this one. I have no need to use side-by-side equations, nor have numbers in front of them.  Using ideas from the post above, I guess the result is done by redefining commands such as - and + inside of the table? I tried to do something like this, but the code looked rather complex =(  To sum it up: Is there a way to define a simple System of Equations enviroment, with proper alignment and a optional command for defining the spacing?
115509
Consider the following table example, the text in the second row is wrapped.  \documentclass[a4paper]{article}  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{tabu} \usepackage{booktabs}  \usepackage{array} \setlength{\extrarowheight}{5pt}  \begin{document}    \begin{tabu} to \linewidth {X[.5,c] X[1,l] X[1,l] X[2,l]}     \toprule     \rowfont{\bfseries}     Row &amp; Head 1                   &amp; Head 2 &amp; Head 3 \\\hline     1.  &amp; short text               &amp; ? &amp; ? \\\hline     2.  &amp; long long long long text &amp; ? &amp; ? \\\hline     3.  &amp; short text               &amp; ? &amp; ? \\\hline     4.  &amp; short text               &amp; ? &amp; ? \\     \bottomrule   \end{tabu}  \end{document}   It renders like:    Why is there so little space between the text in the second row and the rule below it?  How can I fix it?  What comes to my mind is to use \\[1ex] instead of \\, is there a better solution?
119513
I need to display fractions within a table and it requires to set  \renewcommand{\arraystretch}{2.3}   The problem is that not all rows contain fractions, and in this cases the white space below and above is too big. I can tweak it manually with something like \\[-2ex]. This works for the middle cases, though its a little inconvenient, but I have no idea how to reduce the absolute top space.   Something like   \vspace{-2ex}   has no effect.  The best would be to be able to change the arraystretch for a single table row, but the command has no effect after \begin{tabular}. How can I solve this issue?    MWE  \documentclass{article}  \usepackage{amsmath} \usepackage{booktabs}  \begin{document}  \begin{table}     \renewcommand{\arraystretch}{2.3}      \begin{tabular}{@{}c|l@{}}             \bfseries $R_x$ &amp; Symbol\\             \hline\hline             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             \hline     \end{tabular} \end{table}  \end{document}   MWE with siunitx  \documentclass{article}  \usepackage{amsmath} \usepackage{booktabs} %\usepackage{siunitx} \usepackage{wrapfig}  \usepackage{cellspace} \setlength\cellspacetoplimit{4pt} \setlength\cellspacebottomlimit{4pt}  \begin{document}  \begin{wrapfigure}[14]{R}{8.5cm}     \renewcommand{\arraystretch}{2.3}      \begin{tabular}{@{}Sc|Sl@{}}             \bfseries $R_x$ &amp; Symbol\\             \hline\hline             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             some text &amp; some other text \\             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             $\dfrac{a}{b}$ &amp; $ \dfrac{A}{B} $\\             \hline     \end{tabular} \end{wrapfigure}  \end{document}
45652
I would like to create the following table bases on the answer of @Zarko  since i use the same code for another kind of table     \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[table]{xcolor} \usepackage{tabularx} \usepackage{enumitem} \usepackage{etoolbox} \AtBeginEnvironment{center}{%     \setlist[itemize,1]{nosep,                         topsep     = 0pt,                         partopsep  = 0pt,                         leftmargin = *,                         label      = \textendash,                         before     = \vspace{-0.6\baselineskip},                         after      = \vspace{-\baselineskip}                         }     \setlist[itemize]{  nosep,                         leftmargin=*,                         label = $\bullet$                       } }  \begin{document}     \begin{center} \bfseries \begin{tabularx}{\linewidth}{ | l | X |X| }     \hline \multicolumn{2}{|&gt;{\centering\arraybackslash}%                  p{\dimexpr\linewidth-2\tabcolsep-2\arrayrulewidth\relax}|}{\cellcolor{gray!30}     Very long text here and centered     Very long text here and centered     Very long text here and centered}    \\     \hline \multicolumn{3}{c}{}                    \\     \hline Year &amp;   Cycle &amp; Issues     \\     \hline 2018-2019   &amp; High School &amp; very \\     \hline \end{tabularx}     \end{center} \end{document}
45740
I need every amsmath equation to place at the top of the page. So I use \noindent to do that. Everything is fine except equation+split environment. Than formula is placed a bit higher (by \vskip-\lineskiplimit (it's -3pt) from asmmath.sty \@display@init macro). align+split is ok. The glue is discardable item but it's in a box so it's not discarded.  ....\glue(\topskip) 0.0 ....\hbox(21.00012+16.0001)x430.00462, direction TLT .....\vbox(21.00012+16.0001)x430.00462, direction TLT ......\glue -3.0 ......\glue 0.0   MWE:  \documentclass{article} \usepackage[showframe,paperwidth=10cm,paperheight=5cm]{geometry} \usepackage{amsmath}  \begin{document}  \noindent \[ \begin{split} \left(a^{B^{B^{B}}}\right) \\ bb \end{split} \]  \clearpage \noindent \begin{align} \begin{split} \left(a^{B^{B^{B}}}\right) \\ bb \end{split} \end{align}  \end{document}   Result:   Questions:   Is there a way to test am I on the top of page? Then I could fix that \vskip. I tried leaders but its very tricky.  Is there an other way to place formulas forcing \topskip?
20304
I am trying to build a table inside a LaTeX 3 command. A MWE:  \documentclass{article} \usepackage{xparse}  \ExplSyntaxOn \NewDocumentCommand{\createTable}{ m m }{     \begin{tabular}{|c*{#2}{|c}|}         \hline         \int_step_inline:nnnn {1} {1} {#1} {             ##1             \int_step_inline:nnnn {1} {1} {#2} {                 &amp; x             }             \\\hline         }     \end{tabular} } \ExplSyntaxOff  \begin{document}      \createTable{5}{4}  \end{document}   This gives me following ouput in which the column lines of the first column are too long:    In order to solve this problem I read questions         Though I still did not understand the actual nature of the problem (or its given solutions), I was able to reproduce the solution from .  \documentclass{article} \usepackage{xparse}  \ExplSyntaxOn \DeclareDocumentCommand{\fillRow}{ m m }{     #1     \int_step_inline:nnnn {1} {1} {#2} {     &amp; x     }     \\\hline }  \DeclareDocumentCommand{\BuildTable}{ m }{     \begin{tabular}{|c*{#1}{|c}|}     \hline }  \def\endBuildTable{     \end{tabular} } \ExplSyntaxOff  \begin{document}      \begin{BuildTable}{4}         \fillRow{1}{4}         \fillRow{2}{4}         \fillRow{3}{4}         \fillRow{4}{4}         \fillRow{5}{4}     \end{BuildTable}  \end{document}   This code outputs the desired result. But I don't like it because it needs 3 commands instead of 1 (minor issue). But most of all because of the verbose, redundant and inflexible syntax to generate the table. Therefore I decided to make an abstraction by putting the table-generating-commands in another command:  \documentclass{article} \usepackage{xparse}  \ExplSyntaxOn \DeclareDocumentCommand{\fillRow}{ m m }{     #1     \int_step_inline:nnnn {1} {1} {#2} {     &amp; x     }     \\\hline }  \DeclareDocumentCommand{\BuildTable}{ m }{     \begin{tabular}{|c*{#1}{|c}|}     \hline }  \def\endBuildTable{     \end{tabular} }  \DeclareDocumentCommand{\putTogether}{ m m }{     \begin{BuildTable}{#2}         \int_step_inline:nnnn {1} {1} {#1} {             \fillRow{##1}{#2}         }     \end{BuildTable} } \ExplSyntaxOff  \begin{document}      \putTogether{5}{4}  \end{document}   But this brought me back to my original problem because the column lines of the first column are too long again.  Could anyone   explain to me what exactly is wrong with my original code; what the difference is between the second and the third code fragments; how to edit my (original) code in order to solve my problem?
81303
I have a code that prints a table with 2 rows. I want to keep format of it and change 2 rows into 3.   \documentclass[conference]{IEEEtran}  \usepackage{pgfplots} \usepackage{siunitx} \usepackage{multirow} \begin{document}  \begin{table}[h] \caption{Family data set results} \label{tbl::Fam} \centering \begin{tabular}{|l|l|c|c|c!{\vrule width 2pt}l|l|c|c|c|} %\noalign{\hrule height 2pt} \hline \textbf{Column}&amp;\textbf{Algorithm}&amp;\textbf{min}&amp;\textbf{max}&amp;\textbf{std}l&amp;\textbf{Column}&amp;\textbf{Algorithm}&amp;\textbf{min}&amp;\textbf{max}&amp;\textbf{std}\\\hline \multirow{2}{*}{age}&amp;Original&amp;9&amp;2.8&amp;100&amp;\multirow{2}{*}{employer\_type}&amp;Original&amp;13&amp;2&amp;10\\ \cline{2-5} \cline{7-10}&amp;PrivBayes&amp;2&amp;95&amp;96&amp;&amp;PrivBayes&amp;2&amp;100&amp;100\\\hline \multirow{2}{*}{education\_level}&amp;Original&amp;7&amp;2&amp;98&amp;\multirow{2}{*}{marital\_status}&amp;Original&amp;10&amp;2&amp;100\\ \cline{2-5} \cline{7-10}&amp;PrivBayes&amp;2&amp;6&amp;96&amp;&amp;PrivBayes&amp;2&amp;6&amp;100\\\hline \hline %\noalign{\hrule height 2pt} \end{tabular} \end{table}  \end{document}   In this picture, I have 2 algorithms {Original, PrivBayes}. I want to change 2 algorithms into 3 algorithms with keeping the format of table. Can you please help me to do it?
14603
In my preamble, you'll find:  \renewcommand{\baselinestretch}{1} \renewcommand{\familydefault}{\sfdefault} \usepackage[sfmath]{kpfonts} \usepackage[mathrmOrig]{sfmath} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{animate} \usepackage{anysize} \usepackage{arcs} \usepackage{array} \usepackage[scale=0]{background} \usepackage{blindtext} \usepackage{calc} \usepackage{cancel} \usepackage{chngcntr} \usepackage{CJK} \usepackage{CJKspace} \usepackage{CJKpunct} \usepackage{colortbl} \usepackage{enumitem} \usepackage{epstopdf} \usepackage{etoolbox} \usepackage{fancybox} \usepackage{fancyhdr} \usepackage{float} \usepackage{framed} \usepackage{graphicx} \usepackage{hyphenat} \usepackage{ifthen} \usepackage{latexsym} \usepackage{lmodern} \usepackage{multicol} \usepackage{multirow} \usepackage{mwe} \usepackage{pgffor} \usepackage{rotating} \usepackage{tabularx} \usepackage{textcomp} \usepackage{tgheros,tgtermes,tgcursor} \usepackage{tikz} \usepackage{times} \usepackage{tipa} \usepackage{varwidth} \usepackage{wasysym} \usepackage{wboiboites} \usepackage[abs]{overpic} \usepackage[breaklinks,colorlinks=true,linkcolor=red,citecolor=red, urlcolor=blue]{hyperref} \usepackage[framemethod=TikZ]{mdframed} \usepackage[breakable, theorems, skins]{tcolorbox,empheq} \usepackage[default]{gillius} \usepackage[document]{ragged2e} \usepackage[latin1]{inputenc} \usepackage[spanish]{babel} \usepackage[T1]{fontenc} \usepackage[total={18.59cm,26.5cm},left=1.5cm,top=2.5cm]{geometry} \usetikzlibrary{matrix,arrows, positioning,shadows,shadings,backgrounds,calc, shapes, tikzmark} \usetikzlibrary{shadows.blur} \usetikzlibrary{shapes.symbols} \usetikzlibrary{patterns,fadings} \tcbuselibrary{skins,breakable,listings,theorems}    I'm trying to draw an arrow for X axis and Y axis.   \begin{tikzpicture} \draw[yellow!10, fill=blue!5](-1, -1) rectangle (7, 5); \draw[dotted] (-0.75,-0.75) grid (6.75,4.75); \node[below] at (-0.25,0){$O$}; \draw[-&gt;,black, thick] (-0.75,0)--(6.75,0); \end{tikzpicture}   But I get this error:    Additionally, if I remove -> from the options of \draw the tikz picture compiles normally.
54412
My code are as follows:   \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{lipsum}     \usepackage{booktabs}     \input{insbox}     \makeatletter     \@InsertBoxMargin = 12pt     \makeatother     \usepackage{nccmath}     \usepackage[showframe, nomarginpar]{geometry}     \usepackage{etoolbox} \usepackage{graphicx}     \newcommand*{\wrapitem}{\apptocmd{\labelenumi}{\hskip\leftmargin}{}{}\item\apptocmd{\labelenumi}{\hskip-\leftmargin}{}{}}     %     \newcommand{\InsertListL}[3][]{%     \setlength{\leftskip}{\leftmargin}\mbox{}\vspace*{-\baselineskip}%     \InsertBoxL{#2}{#3}[#1]\par \hspace{\itemindent}     }%     \newcommand{\InsertListR}[3][]{%     \mbox{}\vspace*{-\baselineskip}\setlength{\leftskip}{\leftmargin}%     \InsertBoxR{#2}{\hskip-\leftmargin#3\hskip\leftmargin}[#1]     }%      \begin{document}      \begin{enumerate}%      \wrapitem%     \InsertListL[2]{2}{\includegraphics{./images/c01uf006.pdf}}%     \lipsum[1]       \item     \InsertListR[12]{-40}{\includegraphics{./images/c01uf007.pdf}}     \lipsum[2]      \wrapitem%     \InsertListL[2]{2}{\includegraphics{./images/c01uf006.pdf}}%     \lipsum[1]      \end{enumerate}      \end{document}   Please suggest the below:   How can I move the wrap images vertically (upper and down movement)? How can I control unnecessary vertical white spaces?   Also, please correct any errors in coding.
95456
Possible Duplicate:          I want to make a table where one column heading has superscript which overlaps with hline above it. How can I increase the height of just that row so that it does not overlap? I tried commands such as \arraystretch, but this increases the whole table which then looks odd in the document. The exact code is copied below (MWE).  \documentclass{article} \usepackage{amsmath} \begin{document} \begin{table}[htbp] \caption{Some values} \begin{center} {  %\renewcommand{\arraystretch}{1.35} \begin{tabular}{|c|c|c||c|c|c|} \hline &amp; \multicolumn{2}{c||}{L2 Unit} &amp;  \multicolumn{3}{c|}{SUB} \\ \cline{2-6}   Unit &amp; $E^{\text{Dyn}}_{\text{L2}}$&amp;  $P^{\text{SUP}}_{\text{L2}}$ &amp;  Number  &amp;$E^{\text{Dyn}}_{\text{SUB}}$ &amp;$P^{\text{SUP}}_{\text{SUB}}$ \\ Size &amp; (unit) &amp; (unit) &amp;  ($N$) &amp;(unit) &amp; (unit) \\\hline 4MB&amp; 0.289&amp; 1.39 &amp;2 &amp; .005 &amp;.006\\\hline \end{tabular} } \end{center} \end{table} \end{document}
19420
I have the following (Non-working) example.  \renewcommand*{\arraystretch}{1.8} \begin{longtable}{lcl}     \caption{Summary of proven determinants for falling}\\ \toprule     \label{tab:FallPredictionVariables}     \textbf{Author} &amp;\textbf{Subject count (M:F)} &amp; \textbf{Determinants}\\     \midrule      \noindent Author 1 &amp;     1780 (?) &amp;      \begin{itemize}%[label={--},noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]         \item Recent falls (last 2 months)         \item Agitation         \item Frequent toileting         \item Visual impairment     \end{itemize}\\      \noindent Author 2 &amp;     311 (?) &amp;     \begin{itemize}%[label={--},noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]         \item Posture sway         \item Two or more falls in previous year         \item Low hand grip strength         \item Depressive state of mind     \end{itemize}\\         \bottomrule  \end{longtable}   However, it works OK outside a longtable environment:  \renewcommand*{\arraystretch}{1.8} \begin{table} \centering     \caption{Summary of proven determinants for falling}      \label{tab:FallPredictionVariables}     \begin{tabular}{lcp{60mm}}     \toprule     \textbf{Author} &amp;\textbf{Subject count (M:F)} &amp; \textbf{Determinants}\\     \midrule      \noindent Author 1 &amp;     1780 (?) &amp;      \begin{itemize}[label={--},noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]         \item Recent falls (last 2 months)         \item Agitation         \item Frequent toileting         \item Visual impairment     \end{itemize}\\      \noindent Author 2 &amp;     311 (?) &amp;     \begin{itemize}[label={--},noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]         \item Posture sway         \item Two or more falls in previous year         \item Low hand grip strength         \item Depressive state of mind     \end{itemize}\\         \bottomrule          \end{tabular}  \end{table}   As you can see in the picture below, it does what I'm expecting (except there is some vertical space over the first item that I would like to remove, and the solutions posted in  only seem to work for tabularx environments).    I'm unable to make my code work inside longtable, and I really need it (the complete table is very long).  Any ideas for both things:   To be able to have itemize inside longtable environment Eliminate the extra space for the first item   PS: This is the preamble for both examples:  \documentclass[a4paper,twoside,11pt,openright]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{longtable}   \usepackage[inline]{enumitem}    \usepackage{booktabs}  \begin{document} ... \end{document}
75207
Does anyone know how to get line spacing in a paragraph to be greater than one and half spacing and less than double spacing? I tried \renewcommand{\baselinestretch}{value} but it did not work.
57287
I am trying to make a LaTeX table that includes special headers. My code for the table is shown below: \begin{table}[ht] \centering \scalebox{0.70}{ \begin{tabular}{lddcdd} \toprule  &amp;\multicolumn{2}{c}{M1} &amp;   &amp; \multicolumn{2}{c}{M2} \\ \cmidrule{2-3} \cmidrule{5-6}  &amp; \multicolumn{1}{c}{1-2}   &amp; \multicolumn{1}{c}{7-8} &amp;   &amp; \multicolumn{1}{c}{1-2}   &amp; \multicolumn{1}{c}{7-8} \\  \midrule A &amp;   \textbf{0.0021} &amp; \textbf{0.0033} &amp; &amp; -2.37 &amp; 0.00 \\  B &amp; \textbf{0.0052} &amp; \textbf{0.0042} &amp; &amp; -1.23 &amp; 0.67 \\  C &amp; \textbf{0.0082} &amp; \textbf{0.0057} &amp; &amp; -0.21 &amp; 1.08 \\  D &amp; 0.0107 &amp; 0.0097 &amp; &amp;  0.74 &amp; 1.41 \\  E &amp; \textbf{0.0080} &amp; 0.0088 &amp; &amp;  5.05 &amp; 5.05 \\  F &amp; 0.0140 &amp; 0.0148 &amp; &amp; -2.37 &amp; 0.00 \\  G &amp; 0.0128 &amp; 0.0176 &amp; &amp; -1.23 &amp; 0.67 \\  H &amp; 0.0157 &amp; 0.0164 &amp; &amp; -0.62 &amp; 1.10 \\  I &amp; 0.0145 &amp; 0.0155 &amp; &amp; -0.21 &amp; 1.08 \\  K &amp; 0.0236 &amp; 0.0225 &amp; &amp;  5.05 &amp; 5.05 \\  \bottomrule \end{tabular}} \smallskip \caption{My Caption} \label{tab:table1} \end{table}  it creates a table like this:  but I want the bolded numbers to align nicely with un-bolded numbers...How can I make the bolded numbers to align the other numbers in the right way? Thank you,
35335
I'm making a tabular and I'd like to automatically do a like break rather than going beyond the page.   This is my tabular code:  \begin{table}[h] \begin{tabular}{|l|l|l|} Use Case Navn:          &amp; \multicolumn{2}{l}{Opret Server} \\ Scenarie:               &amp; \multicolumn{2}{l}{At oprette en server med bestemte regler som tillader folk at spille sammen. More Text more text More Text} \\ \end{tabular} \end{table}   This is my preamble:  \documentclass[danish,a4paper,twoside,11pt]{report} \usepackage{babel} \usepackage[utf8x]{inputenc} \usepackage{natbib} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{titling} \usepackage{color} \usepackage{xcolor} \usepackage{nag} \usepackage{tabularx}  \newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\}   This is how it looks right now:
53423
I am trying to build a table, and inside the tabularx environment I would like to have a loop, something like (here is a MWE):  \documentclass[10pt,a4paper]{article} \usepackage{tabularx} \usepackage{tikz} \newcommand{\nRows}{5} \begin{document}   \begin{tabularx}{\textwidth}{@{}&gt;{\raggedright}p{2.2cm}@{}&gt;{\raggedright}X@{}&gt;{\raggedright}X@{}&gt;{\raggedright}X@{}&gt;{\raggedright}X@{}}     \foreach \r in {1,...,\nRows}{  % https://stackoverflow.com/questions/2561791/iteration-in-latex         \textbf{column1} &amp; two &amp; three &amp; four &amp; five      } \end{tabularx}  \end{document}   This doesn't work, because the ampersands (&amp;) are causing problems. If I escape the &amp;s, then the entire line gets printed in the first column, along with the literal ampersands, kind of like:  \documentclass[10pt,a4paper]{article} \usepackage{tabularx} \usepackage{tikz} \newcommand{\nRows}{5} \begin{document}   \begin{tabularx}{\textwidth}{@{}&gt;{\raggedright}p{2.2cm}@{}&gt;{\raggedright}X@{}&gt;{\raggedright}X@{}&gt;{\raggedright}X@{}&gt;{\raggedright}X@{}}     \foreach \r in {1,...,\nRows}{  % https://stackoverflow.com/questions/2561791/iteration-in-latex         \textbf{column1} \&amp; two \&amp; three \&amp; four \&amp; five      } \end{tabularx}  \end{document}   This yields:  |column1 &amp;      | | | | | two &amp; three &amp; | | | | | four &amp; five   | | | |   Whereas what I want is:  |column 1 | two | three | four | five | |column 1 | two | three | four | five | |column 1 | two | three | four | five |   ....  Any ideas on how I can achieve this? I'm actually NOT looking to make identical rows - the rows will be different. This is just a MWE. Thanks!  Edit: I have tried implementing Herbert's answer as recommended in the comments section. It results in no output - just a blank PDF. Here is how I implemented it:  \documentclass[10pt,a4paper]{article} \usepackage{tabularx} \usepackage{tikz} \newcommand{\nRows}{5}  \makeatletter \newtoks\@tabtoks \newcommand\addtabtoks[1]{\@tabtoks\expandafter{\the\@tabtoks#1}} \newcommand*\resettabtoks{\@tabtoks{}} \newcommand*\printtabtoks{\the\@tabtoks} \makeatother  \begin{document}      \resettabtoks     \foreach \r in {1,...,\nRows}{  % https://stackoverflow.com/questions/2561791/iteration-in-latex         % \textbf{column1} \&amp; two \&amp; three \&amp; four \&amp; five          \addtabtoks{\textbf{column1} &amp; two &amp; three &amp; four &amp; five \\\hline}%     }  \begin{tabularx}{\textwidth}{@{}&gt;{\raggedright}p{2.2cm}@{}&gt;{\raggedright}X@{}&gt;{\raggedright}X@{}&gt;{\raggedright}X@{}&gt;{\raggedright}X@{}} \printtabtoks \end{tabularx}  \end{document}   Any ideas on what I am doing wrong? Thanks!