1

how can I get rid of the space above the itemize environment in a (long)table cell? I use

" \begin{itemize}[noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt] "

but it doesnt do the trick.

\documentclass[
12pt,
a4paper,
parskip=half,
toc=bibliography,
numbers=noendperiod
]{scrbook}

\usepackage[
left=3cm,
right=2.5cm,
top=2.5cm,
bottom=2.0cm,
includehead,
includefoot
]{geometry}

\usepackage[UKenglish]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{scrlayer-scrpage}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{lscape}

\usepackage{makecell}

\usepackage[onehalfspacing]{setspace}

\usepackage[inline]{enumitem} 
\usepackage{float}
\usepackage{caption}
\usepackage{booktabs} 
\usepackage{tabularx, ragged2e} 
\usepackage{siunitx} 
\usepackage{longtable} 
\usepackage[longtable]{multirow}
\usepackage{multicol}
\addtokomafont{caption}{\scriptsize}
\usepackage[font={normal}]{caption}
\captionsetup[table]{labelsep=space, justification=raggedright, singlelinecheck=off}
\usepackage[flushleft]{threeparttable}

\setkomafont{captionlabel}{\bfseries\rmfamily}


\renewcommand*\dictumwidth{0.72\linewidth}
\usepackage[skip=10pt]{parskip}

\usepackage{array}

\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}

\newcommand{\abbrlabel}[1]{\makebox[4cm][l]{\textbf{#1}\ \tocfill}}
\newcommand{\rr}{\raggedright}
\newcommand{\tn}{\tabularnewline}
\raggedbottom
\singlespacing\label{key}

\begin{document}
    \begin{landscape}
        \footnotesize
        {\def\arraystretch{2}\tabcolsep=10pt
            \begin{longtable}
                {
                    >{\raggedright\arraybackslash}p{4cm}
                    >{\raggedright\arraybackslash}p{4cm}
                    >{\raggedright\arraybackslash}p{4cm}
                    >{\raggedright\arraybackslash}p{4cm}
                    >{\raggedright\arraybackslash}p{4cm}
                }
                \caption[Characteristics of pressure driven membrane processes]{Characteristics of pressure driven membrane processes}
                \label{tab:pressuredriven}\\
                \toprule
                &Microfiltraton&Ultrafiltration&Nanofiltration&Reverse Osmosis\\
                \midrule
                \endfirsthead
                \caption[Characteristics of pressure driven membrane processes]{Characteristics of pressure driven membrane processes (continued)}\\
                \toprule    
                &   Microfiltraton                              &   Ultrafiltration                 &   Nanofiltration                              &   Reverse Osmosis                     \\
                \midrule
                \endhead
                Membrane material                           &       
                \begin{itemize}[noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]
                    \item hydrophobic polymeric (PTFE, PVDF, PP, PE)
                    \item hydrophilic polymeric (cellulose, PC, PSU/PES, PI/PEI, PA, PEEK)
                    \item ceramic (Al2O3, ZrO2, TiO2, SiC) 
                    \item glass (SiO2), carbon, metals (stainless steel, palladium, tungsten, silver)
                \end{itemize}
                &
                \begin{itemize}[noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]
                    \item polymeric (PSU/PES, PVDF, PAN, cellulose, PE/PEI, PA, PEEK) 
                    \item ceramic (Al2O3, ZrO2)
                \end{itemize}
                &
                %   \multicolumn{2}{c}{
                    \begin{itemize}[noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]
                        \item   integral-asymmetric:\newline
                        cellulose esters (CDA, CTA),\newline
                        aromatic PA,\newline
                        PBI, PAH, PI
                        \item composites 
                    \end{itemize}
                    &
                    \\
                    Characterisation                    & 
                    \begin{itemize}[noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]
                        \item SEM
                        \item bubble-point method
                        \item mercury porometry
                        \item permeation
                    \end{itemize}
                    &
                    \raggedright
                    \begin{itemize}[noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]
                        \item cuff-off method
                        \item thermoporometry
                        \item liquid displacement
                        \item permporometry
                        \item gas ad-/desorption
                        \item permeation
                    \end{itemize}
                    & 
                    %\multicolumn{2}{c}{
                        \begin{itemize}[noitemsep,leftmargin=*,topsep=0pt,partopsep=0pt]
                            \item   permeation methods (gas/liquids) 
                            \item   DSC/DTA methods 
                            \item   density measurements 
                            \item   WAXS 
                            \item   plasma etching 
                            \item   surface analysis
                        \end{itemize}               
                        & 
                        \\
                        \bottomrule
                        \multicolumn{5}{p{\dimexpr0.93\linewidth+4\tabcolsep}}{\scriptsize footnote}\\
                    \end{longtable}
                }
            \end{landscape}
        \end{document}

enter image description here

2 Answers 2

0

Before longtable insert the following:

\setlist[itemize]{nosep,
    leftmargin=*,
    label=\textbullet,
    before={\begin{minipage}[t]{\hsize}},%https://tex.stackexchange.com/questions/531952/
    after ={\end{minipage}}
                  }

For columns use L columns as yiu defined. So MWE can be:

\documentclass[12pt,a4paper]{scrbook}
\usepackage[hmargin={3cm,2.5cm},
            vmargin={2.5cm,2cm},
            includehead, includefoot
            ]{geometry}

\usepackage[UKenglish]{babel}
\usepackage[T1]{fontenc}
\usepackage{scrlayer-scrpage}

\usepackage{pdflscape}
\usepackage{array, booktabs, longtable}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\usepackage{mhchem}

\usepackage{enumitem}

\begin{document}
    \begin{landscape}
\begingroup
\small
\renewcommand\arraystretch{2}
\setlength\tabcolsep{4pt}
\setlist[itemize]{nosep,
    leftmargin=*,
    label=\textbullet,
    before={\begin{minipage}[t]{\hsize}},%https://tex.stackexchange.com/questions/531952/
    after ={\end{minipage}}
                  }
    \begin{longtable}{@{} *{5}{L{44mm}} @{}}
\caption[Characteristics of pressure driven membrane processes]%
         {Characteristics of pressure driven membrane processes}
\label{tab:pressuredriven}\\
    \toprule
    & Microfiltraton & Ultrafiltration & Nanofiltration & Reverse Osmosis       \\
    \midrule
\endfirsthead
\caption[]{Characteristics of pressure driven membrane processes (continued)}   \\
    \toprule
    & Microfiltraton & Ultrafiltration & Nanofiltration & Reverse Osmosis       \\
    \midrule
\endhead
    \midrule
    \multicolumn{5}{r}{\scriptsize continue on next page}                       \\
\endfoot
    \bottomrule
\endlastfoot
    bottomrule
Membrane material                           
    &   \begin{itemize}
    \item hydrophobic polymeric (PTFE, PVDF, PP, PE)
    \item hydrophilic polymeric (cellulose, PC, PSU/PES, PI/PEI, PA, PEEK)
    \item ceramic (\ce{Al2O3}, \ce{ZrO2}, \ce{TiO2}, \ce{SiC})
    \item glass (SiO2), carbon, metals (stainless steel, palladium, tungsten, silver)
        \end{itemize}
        &   \begin{itemize}
        \item polymeric (PSU/PES, PVDF, PAN, cellulose, PE/PEI, PA, PEEK)
        \item ceramic (\ce{Al2O3}, \ce{ZrO2})
            \end{itemize}
            &   \begin{itemize}
            \item   integral-asymmetric: 
                    
                    cellulose esters (CDA, CTA), 
                
                    PBI, PAH, PI
            \item composites
                    \end{itemize}
                    &
                    \\
Membrane material
    &   \begin{itemize}
    \item hydrophobic polymeric (PTFE, PVDF, PP, PE)
    \item hydrophilic polymeric (cellulose, PC, PSU/PES, PI/PEI, PA, PEEK)
    \item ceramic (\ce{Al2O3}, \ce{ZrO2}, \ce{TiO2}, \ce{SiC})
    \item glass (SiO2), carbon, metals (stainless steel, palladium, tungsten, silver)
        \end{itemize}
        &   \begin{itemize}
        \item polymeric (PSU/PES, PVDF, PAN, cellulose, PE/PEI, PA, PEEK)
        \item ceramic (\ce{Al2O3}, \ce{ZrO2})
            \end{itemize}
            &   \begin{itemize}
            \item   integral-asymmetric:

                    cellulose esters (CDA, CTA),

                    PBI, PAH, PI
            \item composites
                    \end{itemize}
                    &
                    \\
     \end{longtable}
    \endgroup
    \end{landscape}
\end{document}

enter image description here

However, using tabularray package code can be much simpler and concise. IN MWE use it I took some liberty and little bit redesign table (that to my opinion looks nicer):

enter image description here

\documentclass[12pt,a4paper]{scrbook}
\usepackage[hmargin={3cm,2.5cm},
            vmargin={2.5cm,2cm},
            includehead, includefoot
            ]{geometry}

\usepackage[UKenglish]{babel}
\usepackage[T1]{fontenc}
\usepackage{scrlayer-scrpage}

\usepackage{pdflscape}
\usepackage{tabularray}
\UseTblrLibrary{booktabs, varwidth}
\usepackage{mhchem}

\usepackage{enumitem}

\begin{document}
    \begin{landscape}
\small
\setlist[itemize]{nosep,leftmargin=*}
\SetTblrStyle{contfoot}{font=\footnotesize\itshape}
    \begin{longtblr}[
caption = {Characteristics of pressure driven membrane processes},
  entry = {Characteristics of pressure driven membrane processes},
  label = {tab:pressuredriven},
                    ]{colspec = {@{} X[0.6,l] *{4}{X[l]} @{}},
                      stretch = -1, %<--- remove extra space above and below lists
                                    % with nosep option; doc p.51 tabularray
                       rowsep = 5pt,
                       rowhead  = 1,
                        measure = vbox,
                      }
    \toprule
    &   Microfiltraton 
        &   Ultrafiltration 
            &   Nanofiltration 
                &   Reverse Osmosis         \\
    \midrule
Membrane material                           
    &   \begin{itemize}
    \item hydrophobic polymeric (PTFE, PVDF, PP, PE)
    \item hydrophilic polymeric (cellulose, PC, PSU/PES, PI/PEI, PA, PEEK)
    \item ceramic (\ce{Al2O3}, \ce{ZrO2}, \ce{TiO2}, \ce{SiC})
    \item glass (SiO2), carbon, metals (stainless steel, palladium, tungsten, silver)
        \end{itemize}
        &   \begin{itemize}
        \item polymeric (PSU/PES, PVDF, PAN, cellulose, PE/PEI, PA, PEEK)
        \item ceramic (\ce{Al2O3}, \ce{ZrO2})
            \end{itemize}
            &   \begin{itemize}
            \item   integral-asymmetric: 
                    
                    cellulose esters (CDA, CTA), 
                
                    PBI, PAH, PI
            \item composites
                    \end{itemize}
                    &
                    \\
Membrane material
    &   \begin{itemize}[nosep]
    \item hydrophobic polymeric (PTFE, PVDF, PP, PE)
    \item hydrophilic polymeric (cellulose, PC, PSU/PES, PI/PEI, PA, PEEK)
    \item ceramic (\ce{Al2O3}, \ce{ZrO2}, \ce{TiO2}, \ce{SiC})
    \item glass (SiO2), carbon, metals (stainless steel, palladium, tungsten, silver)
        \end{itemize}
        &   \begin{itemize}[nosep]
        \item polymeric (PSU/PES, PVDF, PAN, cellulose, PE/PEI, PA, PEEK)
        \item ceramic (\ce{Al2O3}, \ce{ZrO2})
            \end{itemize}
            &   \begin{itemize}[nosep]
            \item   integral-asymmetric:

                    cellulose esters (CDA, CTA),

                    PBI, PAH, PI
            \item composites
                    \end{itemize}
                    &
                    \\
                    \\
Membrane material
    &   \begin{itemize}[nosep]
    \item hydrophobic polymeric (PTFE, PVDF, PP, PE)
    \item hydrophilic polymeric (cellulose, PC, PSU/PES, PI/PEI, PA, PEEK)
    \item ceramic (\ce{Al2O3}, \ce{ZrO2}, \ce{TiO2}, \ce{SiC})
    \item glass (SiO2), carbon, metals (stainless steel, palladium, tungsten, silver)
        \end{itemize}
        &   \begin{itemize}[nosep]
        \item polymeric (PSU/PES, PVDF, PAN, cellulose, PE/PEI, PA, PEEK)
        \item ceramic (\ce{Al2O3}, \ce{ZrO2})
            \end{itemize}
            &   \begin{itemize}[nosep]
            \item   integral-asymmetric:

                    cellulose esters (CDA, CTA),

                    PBI, PAH, PI
            \item composites
                    \end{itemize}
                    &
                    \\
    \bottomrule
\end{longtblr}
    \end{landscape}
\end{document}
1
0

Tried to find an answer again and found this: Itemize inside longtable

using P column type (\newcolumntype{P}[1]{>{\endgraf\vspace*{-\baselineskip}}p{#1}}) worked even when not all entries in the table are lists (that statement kept me from trying this before).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .