Quantcast
Channel: Active questions tagged bullets - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 97

How do I insert sub-bullets in a table environment?

$
0
0

I am having difficulty making bulleted points in tables using TeXMaker.

This is a sample of the table I am working on.

This is moreorless what it looks likeintended table

-I want to be able to introduce sub-bullets but I don't know how (if possible, while maintaining the $\RHD$ (or right hand diamond; see figure above) symbol);

-Tried itemize to introduce these sub-bullets unsuccessfully;

-Even a simple itemize does not compile for some reason and I get a number of error messages;

Here is where I would like help:

-I would like to understand why itemize does not work below and how I might introduce sub-bullets using the RHD symbol;

Sample of the code

Temporary bit (trying to implement Mico's answer here.)

\documentclass[12pt,a4paper, twoside]{article}\usepackage{times}\linespread{1.5}\usepackage{geometry} \geometry{ a4paper, left=1in, right=1in, top=1in, bottom=1in }\usepackage{setspace} % allows you to change spacing inside document - for e.g for tables, relevant for tables\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb} % AMS symbols\usepackage{wasysym} % more symbols - \RHD (arrow)\usepackage{pifont} % for dingbat symbols \usepackage{longtable}\usepackage{booktabs}% Pretty tables\newcommand{\tabitem}{~~\llap{\textbullet}~~}\usepackage{dcolumn}  \newcolumntype{d}[1]{D{.}{.}{#1}} \usepackage{sectsty} % want sigle spacing in subheadings and headings \allsectionsfont{\singlespacing}\usepackage{lipsum}\usepackage{float}% To get landscape in between pages\usepackage{lscape}\usepackage{pdflscape}\usepackage{parskip} % allows space between paragraphs\setlength{\parindent}{3em} % sets indentation of paragraph\setlength{\parskip}{0em} % allows space between paragraphs \usepackage{indentfirst}\usepackage[british]{babel}\usepackage{enumitem, ragged2e,array}\newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}% 'btr': short for 'black triangle right'\newlist{btr}{itemize}{2} % setup for 2 list levels% elements common to both level-l and level-2 lists:\setlist[btr]{nosep, left=0pt,              before=\begin{minipage}{\linewidth},              after =\end{minipage}}% level-1 and level-2 items differ (only) in size of \blacktriangleright symbol:\setlist[btr,1]{label=$\scriptstyle\blacktriangleright$}\setlist[btr,2]{label=$\vcenter{\hbox{$\scriptscriptstyle\blacktriangleright$}}$}\begin{document}\begin{landscape}\begin{spacing}{1}\begin{longtable}{p{1.5in}p{1in}p{2in}p{1.5in}p{2.5in}}\topruleStudy & Country & Characteristic/Component & Methodology & Findings\\ \midrule\endfirsthead\topruleStudy & Country & Characteristic/Component & Methodology & Findings\\ \midrule\endhead % all the lines above this will be repeated on every page\bottomrule % puts bottomrule @ end of table on every page\endfoot\bottomrule % puts bottomrule @ end of final page \endlastfootsample study name&sample country&\begin{tabular}{p{2in}}$\RHD$ sample intervention;\\$\RHD$ sample methodology.\end{tabular}&\begin{tabular{@{}p{\linewidth}@{}}%\begin{tabular}{p{1.5in}}\begin{btr}\item sample methodologies    \begin{btr}    \item hello    \end{btr}\end{btr}\end{tabular}&\begin{tabular}{p{2.5in}}$\RHD$ sample findings;\\$\RHD$ finding 2;\\$\RHD$ finding 3;\\\end{tabular}\\\midrule\addlinespace\end{longtable}\end{spacing}\end{landscape}\end{document}

(I know that this contains a very long list of packages; this is a joint project with someone else and I removed as many excess packages as I could ... there may be more nonessential packages but was not sure which these were. Also, in case it is helpful, the original table spans 10+ pages)

\documentclass[12pt,a4paper, twoside]{article}\usepackage{times}\linespread{1.5}\usepackage{geometry} \geometry{ a4paper, left=1in, right=1in, top=1in, bottom=1in }\usepackage{setspace} % allows you to change spacing inside document - for e.g for tables, relevant for tables\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb} % AMS symbols\usepackage{wasysym} % more symbols - \RHD (arrow)\usepackage{pifont} % for dingbat symbols \usepackage{longtable}\usepackage{booktabs}% Pretty tables\newcommand{\tabitem}{~~\llap{\textbullet}~~}\usepackage{dcolumn}  \newcolumntype{d}[1]{D{.}{.}{#1}} \usepackage{sectsty} % want sigle spacing in subheadings and headings \allsectionsfont{\singlespacing}\usepackage{lipsum}\usepackage{float}% To get landscape in between pages\usepackage{lscape}\usepackage{pdflscape}\usepackage{parskip} % allows space between paragraphs\setlength{\parindent}{3em} % sets indentation of paragraph\setlength{\parskip}{0em} % allows space between paragraphs \usepackage{indentfirst}\usepackage[british]{babel}\usepackage{enumitem}\begin{document}\begin{landscape}\begin{spacing}{1}\begin{longtable}{p{1.5in}p{1in}p{2in}p{1.5in}p{2.5in}}\topruleStudy & Country & Characteristic/Component & Methodology & Findings\\ \midrule\endfirsthead\topruleStudy & Country & Characteristic/Component & Methodology & Findings\\ \midrule\endhead % all the lines above this will be repeated on every page\bottomrule % puts bottomrule @ end of table on every page\endfoot\bottomrule % puts bottomrule @ end of final page \endlastfootsample study name&sample country&\begin{tabular}{p{2in}}$\RHD$ sample intervention;\\$\RHD$ sample methodology.\end{tabular}&\begin{tabular}{p{1.5in}}\begin{itemize}\item sample methodologies; \\\end{itemize}\end{tabular}&\begin{tabular}{p{2.5in}}$\RHD$ sample findings;\\$\RHD$ finding 2;\\$\RHD$ finding 3;\\\end{tabular}\\\midrule\addlinespace\end{longtable}\end{spacing}\end{landscape}\end{document}

(A section of the table would ideally look like either of these (with the arrow representing the $\RHD$; couldn't find it on word)):

v1enter image description here

Thank you for taking the time to read this. Am grateful for any help and guidance on this.


Viewing all articles
Browse latest Browse all 97

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>