# Tag Info

0

Here, I use a \Centerstack to construct \cellincell, and also manage the comma parsing. \documentclass[11pt]{article} \usepackage[table]{xcolor} \usepackage{cite} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{censor} \usepackage[a4paper, left=3cm, right=2cm, top=2.5cm, bottom=2.5cm]{geometry} \usepackage{setspace} \usepackage{graphicx} ...

1

Although this is not an answer to your question, your example suggests that some macros I use may help you. They produce two way contingency tables like The code is not as pretty or generic as it might be, but it is all I needed. (I'm sure I found most of the ideas in an answer on this site, which would surely have upvoted at the time - but I can't find ...

1

\cellincell takes three arguments \cellincell{<first>}{<second>}{<third>} and you've only supplied one \cellincell{<first>} So, instead of using \cellincell{test1,test2,test3} use \cellincell{test1}{test2}{test3}. You can also use the method below to update your macro to use the comma-separated format: \documentclass{article} ...

1

The problem lies in your \multirow statements. They're meant to combine multiple rows, not to split an existing single row in multiple lines. If you use \parbox instead, you'll be fine. \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{...

1

The macro takes three arguments, not one argument with a comma separated list. \documentclass[11pt]{article} \usepackage[table]{xcolor} \usepackage{cite} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{censor} \usepackage[a4paper, left=3cm, right=2cm, top=2.5cm, bottom=2.5cm]{geometry} \usepackage{setspace} \usepackage{graphicx} \...

3

The main error is your multirow which are spanning past the end of the table. \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{multirow} \usepackage{hhline} \usepackage{pifont} \usepackage[left=2.00cm, right=2.00cm, top=2.00cm, bottom=2....

2

To scale your picture you can just use key scale for tikzpicture environment. To draw half unite circle rather then \draw [shift={(0.,0.)}] plot[domain=-1.5707963267948966:1.5707963267948966,variable=\t]({1.*1.*cos(\t r)+0.*1.*sin(\t r)},{0.*1.*cos(\t r)+1.*1.*sin(\t r)}); You can simply add \draw (0,-1) arc [start angle=-90, end angle=90, radius=...

0

Something like this? (Observe that I would caution against using an adjustbox environment.) \documentclass{article} \usepackage{tabularx,ragged2e} \begin{document} \begin{table}[h!] \begin{tabularx}{\textwidth}{|l|>{\RaggedRight}X|c|c|c|} \hline 1 & \multicolumn{4}{p{0.9\textwidth}|}{\bfseries Implementation of a Smart and Sustainable Watering ...

2

Another solution with blkarray and \makebox: \documentclass{article} \usepackage{mathtools} \usepackage{blkarray} \newcommand\chd[1]{\makebox[1.33em]{#1}}% \begin{document} \[ \begin{blockarray}{*{16}{c}} & \chd{all} & \chd{dog} & \chd{dogs} & \chd{eat} & \chd{fleas} & \chd{go} & \chd{has} & \chd{heaven} & \chd{in}% ...

5

Create a macro, here \fxtxt, which places the overtext entries in a fixed width box of appropriate width, here chosen as 3.5ex. \documentclass{article} \usepackage{amsmath} \newcommand\fxtxt[1]{\makebox[3.5ex]{#1}} \begin{document} \[ \bordermatrix{\fxtxt{} & \fxtxt{all} & \fxtxt{dog} & \fxtxt{dogs} & \fxtxt{eat} & \fxtxt{fleas} & \...

2

A variant of Werner's solution. The code also fixes the main errors in the typesetting of the original model and you should be look at it carefully. Note, for instance, the ^{} bits that are used for setting subscripts at the same level. Note also the absence of \left and \right that apparently plagued the original. Look, in particular, at the lines with “...

3

A single table environment cannot be broken across pages. Here, I merely remove the table and tabular environments, and move the \caption inside the longtable, followed by a \\. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{longtable} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \vspace*{8cm} \centering \vspace*{1cm} \...

2

This should be a sufficient starter. We create a virtual two-column table. The "first column" is a space of 3em that's inserted in front of every row to make it look like the text follows from a second column (there are other ways of doing this as well): \documentclass{article} \usepackage{booktabs,array} \begin{document} \begin{table} \centering \...

4

It's possible to reproduce the whole composition with two TiKZ matrices: \documentclass[border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix, positioning} \begin{document} \begin{tikzpicture}[ mycell/.style={draw, minimum size=7mm, fill=gray!30}, matrixA/.style={matrix of nodes, nodes={mycell, anchor=center}, column sep=-\pgflinewidth,...

2

1

The pure question number is not directly available but it is possible to add a property to retrieve it. Then, in order to be able to build the table correctly, it is easier to build the table contents in a macro before actually typesetting the table. Something like this maybe: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[...

0

With a convenient \raisebox, you can have the rotated text vertically centred. Please don't use the deprecated \bf. Use \bfseries or \textbf{…}: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[showframe]{geometry} \usepackage{tabularx, booktabs, rotating, caption} \begin{document} \begin{table} \caption{ bababalbablab} \setlength{\...

3

Why not simply put \multirow after \hhline, with a negative number of rows? \documentclass{article} \usepackage[table,svgnames]{xcolor} \usepackage{colortbl} \usepackage{hhline} \usepackage{multirow} \begin{document} \begin{tabular}{|m{5cm}||m{2cm}|} \hhline{|-||-|} Table & \cellcolor{black!10} A \\ \hhline{:=:|>{\doublerulesepcolor{black!...

4

Why are you using \hhline? With \cline there is no problem: \documentclass{article} \usepackage[table,svgnames]{xcolor} \usepackage{hhline} \usepackage{multirow} \begin{document} \begin{tabular}{|m{5cm}||m{2cm}|} \hhline{|-||-|} Table & \cellcolor{black!10} A\\ \hhline{:=:|>{\doublerulesepcolor{black!10}\arrayrulecolor{black!10}}=>{\...

2

\documentclass{article} \usepackage[table,svgnames]{xcolor} \usepackage{colortbl} \usepackage{hhline} \usepackage{multirow} \begin{document} \begin{tabular}{|m{5cm}||m{2cm}|} \hhline{|-||-|} Table & \cellcolor{black!10} A\\ \hhline{:=:|>{\doublerulesepcolor{black!10}\arrayrulecolor{black!10}}=>{\doublerulesepcolor{black! 0}\arrayrulecolor{...

3

Try something like this in your preamble: \usepackage{titletoc,ulem} \titlecontents{chapter}[0em]{\smallskip\bfseries}%\vspace{1cm}% {\contentslabel[\uline{\chaptername~\thecontentslabel}]{0em}\hspace{5.6em}\uline}% {\renewcommand\thecontentslabel{\relax}\itshape\uline}%numberless% {\hfill\contentspage}[\medskip]%

0

So, there is a tablefootnote package. However, it places the description of the footnote somewhere in the text in the same numeration as for normal footnotes. There may be a possibility to change this, but there is another possibility, which I would prefer. With the threeparttable package you can insert modified footnotes and list them where you want. In my ...

3

Here is a solution, using makecell, which defines a \Gape commandn, to add vertical padding at the top and/or bottom of individual cells. Note the table option of scolor spares you loading colortbl: \documentclass{article} \usepackage[table, svgnames]{xcolor} \usepackage{array} \usepackage{hhline} \usepackage{multirow, makecell} \begin{document} \...

4

For some strange reason floatrow sets \LTleft and \LTright to 0pt breaking longtable's default positioning, you could set them back, or simpler just use \begin{longtable}[c]{rr} to force longtable to centre. this is sort of mentioned in the floatrow manual Alignment Settings for longtable. The floatrow expands some settings of table lay- out to ...

1

For multi-rows, you can try this \documentclass{article} \usepackage{array}% \begin{document} \begin{tabular}{c c} $f^{(n)}(x)$ & $f^{(n)}(0)$ \\[1cm] $-2e^{-x^{x^{x}}}$ & 0\\[1cm] 2x&\frac{x}{2}\\[1cm] . . . \end{tabular} \end{document} 3 You can define a new style similar to multiline, but you will have to setup a better labelwidth and you will have to insert empty lines with \\~ if the description text is too short. \documentclass{article} \usepackage{enumitem,calc} \makeatletter \def\enit@align@parright{% \def\enit@align##1{% \nobreak \strut\smash{\parbox[t]\labelwidth{\... 5 For professional look of tables is intended package booktabs, for limit caption width to table width I suggest to use threeparttable packages and environment. With this, and further improvement in numbers align with S column type from package siunitx you can obtain: MWE: \documentclass[3p,onecolumn]{elsarticle} \usepackage[labelfont=bf,singlelinecheck=... 1 With package makecell and its macros \setcellgapes{...} and \makegapedcells you can obtain: \documentclass{article} \usepackage{makecell} \renewcommand\theadfont{\normalsize} \begin{document} \begin{table}[h] \centering \makegapedcells \setcellgapes{5pt} \makegapedcells \begin{tabular}{|l|l|} \hline \thead[l]{Lalalal} & \thead[l]{Papapa}\... 1 I would like to answer you question using the following MWE: \documentclass{article} \usepackage{array} \usepackage{amstext} \begin{document} \def\p#1{(#1)} \def\T#1{\text{#1}} \begin{table}[t] \centering \extrarowheight=3pt \begin{tabular}{|l|l|} \hline Lalalal & Papapa \\[3pt] \hline\p{6^2,m} \hspace{...

2

You want to use p (or b) columns for such a table not m as m loses baseline alignment. Also your specified widths made the table wider than the text width, so I reduced them a bit. \documentclass[a4paper,12pt,numbers=endperiod]{scrartcl} \usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2cm,footskip=1cm]{geometry} \usepackage{graphicx} \usepackage{...

2

Something like this perhaps (The special table design is left to the O.P. -- it depends on personal tastes) I've defined a simple key-value interface that takes the relevant entries as values and typesets. Since all is set in a group and preset to be empty, the default values are all empty. I also added a .lob file to be generated, i.e. a list of ...

2

Here an example of a solution based on tabularx: \documentclass{article} \usepackage{array, booktabs, tabularx, caption} \usepackage[table, svgnames]{xcolor} \begin{document} \begin{table} \centering\captionsetup{labelfont=sc, skip=6pt} \caption{A table} \begin{tabularx}{0.67\linewidth}{|*{3}{>{\centering\arraybackslash}X|}} \hline \...

0

The widths may be different. You should resize to height. \documentclass{article} \usepackage{graphicx} \newcommand{\letters}[9]{% \resizebox{!}{1em}{% \begin{tabular}{ccc} #1 & #2 & #3 \\ #4 & #5 & #6 \\ #7 & #8 & #9 \end{tabular}% }% } \begin{document} \Huge \letters{V}{I}{T}{R}{I}{O}{L}{I}{C} \letters{P}{E}...

2

Please always post code as text not an image however you can not redefine the built in clr column types, you must use a different name so \newcolumntype{C}... then use C{2cm} not c{2cm} in your table.

1

It wasn't clear whether the color was part of the requirement or not, so here it is without, using stacks. \documentclass{article} \usepackage{amsmath} \usepackage{stackengine,graphicx} \stackMath \newcommand\connect{\scalebox{2}[4]{\raisebox{-1pt}{$>$}}} \begin{document} \setstackgap{L}{2.5\normalbaselineskip} \def\stacktype{L} \stackon[2\dimexpr\...

2

You can try to learn a little bit of TikZ \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{positioning, matrix, backgrounds} \usepackage{amsmath} \begin{document} \begin{tikzpicture} \matrix (L) [matrix of nodes, nodes={minimum size=8mm, fill=gray!80}, every odd row/.style={nodes={fill=gray!50}}, row sep=.5mm] {|[minimum height=5mm, font=\...

2

Instead of specifying a per-row spacing adjustment using \\[<len>], we can add a strut to each entry of a particular column. The strut could stretch vertically below and above the baseline in order to stretch the line spacing exactly as needed: \documentclass{article} \usepackage{array} \newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}} \...

3

The following implements a new "draw type", equating (somewhat) \cdashlinelr to \cmidrule(lr) the regular vertical spacing: \documentclass{article} \usepackage{booktabs,arydshln} \makeatletter \def\adl@drawiv#1#2#3{% \hskip.5\tabcolsep \xleaders#3{#2.5\@tempdimb #1{1}#2.5\@tempdimb}% #2\z@ plus1fil minus1fil\relax ...

2

You can add after={\vspace{-\baselineskip}} to the list of enumerate options you currently have. This should revert the empty line following the list.

1

Based on David Carlisle comment and its answer in another post (http://tex.stackexchange.com/a/93810/44284) I succeed, the code is given below. However, I finally follow David recommendation "to refactor the table into smaller chunks based on semantically meaningful divisions", it seems more appropriate. %% Credit : David Carlisle \documentclass{article} ...

1

You can use packages stringstrings and tikz, the first one to extract the letters of the word and the second one to place them uniformly. I have added an optional argument to the command \squareword to have control over the separation between the letters. By default the separation is 1em. The result: And the code: \documentclass{article} \usepackage{...

2

By choosing a TABstack instead of a tabular, I can make column widths uniform across a word. I'm not sure if this is what you need, but I choose to perform the \resizebox across the complete row and not each \letters macro. The macro \setstacktabulargap{<length>} may be used to set the gap between letters within thetabstack, and I have selected a 1em ...

3

Here is an elementary implementation of paradigm that sets up the tabular as well as the first column, based on a redefinition of \\. Note that you should avoid using a terminal \\ before \end{tabular} (or \end{paradigm}): \documentclass{article} \usepackage{array} \newcounter{paradigmlinecnt} \makeatletter \newcommand{\paradigmnewline}{% \...

0


2

Don't put your tables in a floating environment if you don't want them to float! Here is a solution, similar to my answer to one of your previous posts: \documentclass[10pt,a6paper]{book} \usepackage[utf8]{inputenc} \usepackage[main=english,slovak]{babel} \usepackage[cm]{fullpage} \usepackage[a6paper, top=10mm, left=10mm, right=10mm, bottom=10mm,foot=5mm,...

6

First and foremost, get rid of all \begin{table} and \end{table} statements. If you want to top-align the tabular environments with the respective text-bullet symbols, replace all instances of begin{tabular}... with \begin{tabular}[t].... Use \textsuperscript{...} instead of ^{...}. You don't need any of the 352 [!] \$ symbols -- delete them as well. Instead ...

2

For such simple things, plain tex can be nice too \settabs \+x\qquad&RESULT\qquad\cr \+ x&12.1\cr \+ y&12.2\cr

1

You could do \def\startTable{\begin{tabular}{cc}} \def\endTable{\end{tabular}} \def\newTableEntry#1#2{#1&#2\\} although it would be much better better to use standard \begin .. \end environment syntax and so not use the first two lines, you could still use \begin{tabular}{cc} \newTableEntry{x}{12.1} \newTableEntry{y}{11.1} \end{tabular} note ...

1

The easiest is probably to simply insert some space between the columns: \documentclass[landscape]{memoir} \usepackage[table,dvipsnames]{xcolor} \usepackage{booktabs} \usepackage{multirow} \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}!{\hspace{3pt}}} \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\...

3

Here is a solution. It's simpler to use the sidewaystable* environment and tabularx. I removed the vertical lines, replaced \hlines with the rules from booktabs, which have some vertical padding around them, and used some commands from makecell. Furthermore, as most cell contents are repetitive, I introduced some macros to simplify typing them: \...

Top 50 recent answers are included