Last active
August 3, 2020 22:09
-
-
Save arnabanimesh/3fc94330dfd4eb1fbbd132ba19ea8a3b to your computer and use it in GitHub Desktop.
Latex table using tabular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[11pt]{article} | |
\usepackage[screen]{geometry} | |
\usepackage{titlesec} | |
\usepackage[dvipsnames,table]{xcolor} | |
\usepackage{array} | |
\newcolumntype{x}{>{\global\let\currentrowstyle\relax}} | |
\newcolumntype{^}{>{\currentrowstyle}} | |
\newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}% | |
#1\ignorespaces | |
} | |
\newcolumntype{a}{>{\columncolor{Turquoise!20}}l} | |
\titleformat{\subsection} | |
{\Large\scshape\centering}{\thesubsection}{0pt}{} | |
\begin{document} | |
\topskip0pt | |
\vspace*{\fill} | |
\centering | |
\thispagestyle{empty} | |
\subsection*{\underline{\underline{Hidden Rules Among Classes}}} | |
\medskip | |
\renewcommand{\arraystretch}{1.5} | |
\begin{tabular}{>{\bfseries}xa|@{} *{3}{|^l}} | |
\rowcolor{Orange!20} | |
\rowstyle{\bfseries} | |
Parameters & Poverty & Middle & Wealthy \\ | |
\hline | |
\hline | |
Money & To be spent & To be managed & To be invested \\ | |
\hline | |
Personality & Sense of humour & Achievement & Connections \\ | |
\hline | |
Social Emphasis & Inclusion & Self-sufficiency & Exclusion \\ | |
\hline | |
Food & Quantity & Quality & Presentation \\ | |
\hline | |
Time & In the moment & Against future & Tradition \\ | |
\hline | |
Education & Abstract & Success and money & Maintaining connections \\ | |
\hline | |
Language & Casual register & Formal - Negotiation & Formal - Networking \\ | |
\hline | |
Family Structure & Matriarchal & Patriarchal & Who has money \\ | |
\hline | |
Driving forces & Relationships & Achievement & Financial, Social \\ | |
\hline | |
Destiny & Fate, can't & Choice & Expectations | |
\end{tabular} | |
\vspace*{\fill} | |
% | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Highlighting new features of tabular feature of
LaTeX
. Converted the output to various forms ofSVG
.