Hot answers tagged

10

I wouldn't use \multirow under any circumstance, but perhaps I can understand it in this case. I properly segregated math and let TeX do the intercolumn space computations; if you notice, I split the PIR column into two, for better alignment. Moreover, siunitx is used throughout to ensure consistent usage of the decimal marker. If you remove output-decimal-...


6

Here is a slightly different approach building upon siunitx for the numbers with units less \multiow commands, no nested tabulars and tabular* instead of tabularx: \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{multirow} \usepackage{booktabs,newtxmath} \usepackage{makecell} \usepackage[detect-weight]{siunitx} \sisetup{output-...


6

Like this? You have many possibilities, one of them is use \multicolumn command which hasn't border lines: \documentclass{article} \usepackage[table]{xcolor} \newcommand\mcc[1]{\multicolumn{1}{c}{#1}} % <--- \setlength{\parskip}{\baselineskip} \title{FACTORbox} \author{Algebra Teacher Who Struggles with LaTeX Tables} \date{January 2021} \begin{...


5

As it is only a prototype, I know two ways to do what you ask, with minimal effort. (1) Using excel to build a prototype of the table and export it to LaTeX using the add-on Excel2LaTeX from: https://ctan.org/tex-archive/support/excel2latex?lang=en My only typing was changing the line \begin{tabular}{|c|c|c|c|c|} to expand the columns and adding two ...


5

As I mentioned in my comment, it is not clear, what is your problem. Your table can be easy fit in one column, so I would stick with following solution: \documentclass[twocolumn]{article} % <--- \usepackage[left=2cm, right=2cm, top=2cm, bottom=2cm]{geometry} \usepackage{amsmath} % <--- \usepackage{booktabs, tabularx} % <--- \usepackage{caption} \...


5

With the package nicematrix. \documentclass{article} \usepackage{nicematrix} \usepackage{xcolor} \begin{document} \renewcommand\arraystretch{1.8} $\begin{NiceMatrix}% [ hvlines, columns-width=auto, first-row, code-for-first-row = \color{red}, first-col, code-for-first-col = \color{red} ] & x & +6 \\ x & x^2 & 6x \\ ...


4

\documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[] \begin{tabular}{cc|c|c|} \cline{3-4} & & \multicolumn{2}{c|}{Valori Estimate} \\ \cline{3-4} & & Clasa & Clasa \\ \hline \multicolumn{1}{|c|}{\multirow{2}{*}{Valori reale}} & Clasa & 3 & 2 \\ \cline{2-4} \multicolumn{1}{|c|}{} & ...


3

Some suggestions and comments: To typeset the table across the entire width of text block, use a table* environment, not a table environment. To center-set the "Table I" label, replace \hfil with \centering in the \DeclareCaptionLabelFormat{Wijaya}{...} directive. I would replace the two instance of the old-fashioned \hline\midrule[0.1pt] ...


3

Here is a workaround. \documentclass{aastex63} \usepackage{booktabs} \begin{document} \begin{tabular}{lll} \toprule header0 & $\begin{tabular}{@{}c@{}}header1\\ text after linebreak\end{tabular}$ & header2 \\ \midrule 0 & 1 & 2 \\ \bottomrule \end{tabular} \end{document}


3

Thanks to @leandriis feeedback I modified the table with abbreviations and it's more readable.


3

Edit: After provided more information of desired format of tables, the I adopted proposed solution to them: Above result are produced with your code (first example) and by use of the tabularx package (second example). Both gives expected result, so it is not clear what is your problem. For further help please provide an MWE which reproduce your problem. \...


3

With {NiceTabular} of nicematrix. \documentclass{article} \usepackage{nicematrix} \begin{document} \begin{table}[] \begin{NiceTabular}{ccwc{10mm}wc{10mm}}[hvlines-except-corners=NW] & & \Block{1-2}{Valori Estimate} \\ & & Clasa & Clasa \\ \Block{2-1}{Valori reale} & ...


2

With nicematrix: \documentclass{scrreprt} \usepackage{booktabs} \usepackage{makecell} \renewcommand\theadfont{\bfseries} \usepackage{nicematrix} \begin{document} \begin{table}[ht] \centering \begin{NiceTabular}{@{}wc{\dimexpr 0.0666\textwidth-2\tabcolsep} !{\vrule}*{4}{wc{\dimexpr 0.0666\textwidth-2\tabcolsep}}@{}} \toprule \multicolumn{2}{c}{} &...


2

\documentclass{article} \usepackage{tikz} \newlength{\mylength} \settoheight{\mylength}{S} \tikzset{mybox/.style={draw=black,text width=2cm, align=center}, baseline={([yshift=-\mylength]current bounding box.north)}} \usepackage{booktabs} \usepackage{tabularx} \usepackage{enumitem} \newlist{tabitemize}{itemize}{1} \setlist[tabitemize]{...


2

\documentclass[12pt,a4paper]{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \usepackage[column=0]{cellspace} \setlength{\cellspacetoplimit}{\tabcolsep} \setlength{\cellspacebottomlimit}{\cellspacetoplimit} \usepackage{booktabs}% http://ctan.org/pkg/booktabs \newcommand{\tabitem}{~~\llap{\textbullet}~~} \usepackage{makecell} \begin{document} \...


2

I'm adapting my answer to "How to add arrows to equations and matrices?"; see there for explanations. \documentclass{article} \usepackage{booktabs}% for nicer tables \usepackage{tikz} \usetikzlibrary{calc} \newcommand\tikznode[3][]{% \tikz[remember picture,baseline=(#2.base)] \node[minimum size=0pt,inner sep=0pt,#1](#2){#3};% } \usepackage{...


2

The best tool for vertical centring of cell contents uses the cellspace package: it has commands to define a minimal vertical padding at the top and at the bottom of cells in columns with specifier prefixed with the letter $S by default (or any letter you please with the column=... key). Here is a code, with some simplifications: \documentclass{article} \...


2

It is not shown in the question but is clear in the link shown in comments, the following page break is a forced page break with \clearpage. The purpose of \clearpage is to flush out all pending floats at this point before moving on to the next page, so if, as here, there are pending floats that have not yet been allocated to a position in the documents they ...


2

The enumitem package allows you to customize virtually all aspects of an itemize-like environment. An application of this idea to your formatting objective leads to the following result: \documentclass[12pt]{extarticle} \usepackage{geometry} \usepackage{ragged2e} % for '\RaggedRight' macro \usepackage{enumitem} \newlist{tabitemize}{itemize}{1} % create a ...


2

I wonder, why you insert this table in TikZ node?. Removing it and adjusting images baseline gives: \documentclass[border=2mm]{standalone} \usepackage{makecell, multirow} \usepackage[siunitx, european, straightvoltages, RPvoltages]{circuitikz} \begin{document} \begingroup \makegapedcells \setcellgapes{3pt} \tikzset{every picture/.style={baseline=-0.5ex}} ...


2

The ta’amim of the Hebrew text don’t fit into the \baselineskip distance, and also your fonts aren’t scaled to the same height. You can fix the former with setspace and the latter with Scale=MatchUppercase. \documentclass{standalone} \tracinglostchars=2 \usepackage[german, bidi=basic]{babel} \usepackage{fontspec} \usepackage{microtype} \usepackage[...


2

The tabular lines have a minimum height, which is \ht\strutbox and is larger than the height of a capital letter. You need to remove this difference. However, a vertical space at the top of a page would be removed unless you use \vspace*; this trigger the insertion of \topskip glue and also \lineskip glue because the tabular needs to be typeset with b ...


1

There is an easy way to do it without hacking or guessing. You put the 3 elements that make up the header (a logo plus two tables) in boxes. Then assemble the boxes taking into account their relative positions and alignment. All of this can be accomplished using the package xcoffin that behaves as a graphic layout program (boxes + relative positioning). For ...


1

Here is a way to obtain what you want with pstricks; I defined the relevant nodes, and connected them with \ncbar: \documentclass[12pt, svgnames]{article} \usepackage[T1]{fontenc} \usepackage[spanish]{babel} \usepackage{booktabs} \usepackage{pst-node} \begin{document} Some text. Some more text. \begin{tabular}{ccccc} \\[3ex] \underline{Dí\rnode[...


1

With {NiceTabular} of nicematrix (and in landscape mode). \documentclass[landscape]{article} \usepackage{nicematrix} \usepackage{pifont} \usepackage{caption} \usepackage{xcolor} \begin{document} \begin{table*}[htbp] \caption{AutoML platforms used in the healthcare domain research.} \centering \NiceMatrixOptions{cell-space-limits=3pt} \begin{NiceTabular}{...


1

You should extend your code fragment to an MWE, which we can test and which reproduce your problem. Since you not provide MWE, it is not clear if use of the \begin{table*}[htbp] meaning that you have two column documents and have error in its writing, i.e. it should \begin{table*}, or you have one column document and you should write \begin{table}[htbp]. in ...


1

\documentclass[10pt,a4paper]{article} \usepackage{ multirow, makecell,xcolor} \renewcommand\theadfont{\bfseries} \begin{document} \begin{table*}[!h] \caption{AutoML platforms used in the healthcare domain research.} \centering \noindent\makebox[\textwidth]{% \begin{tabular}{ccccccc} \hline ...


1

You can define your own style for the caption. \documentclass{article} \usepackage{caption} \DeclareCaptionLabelSeparator{par}{\par} \DeclareCaptionLabelFormat{Wijaya}{\hfil\MakeUppercase{#1}\space \Roman{table}} \DeclareCaptionTextFormat{sc}{{\scshape #1}} \captionsetup{labelsep=par, labelformat=Wijaya, textformat=sc} \begin{document} \begin{table} ...


1

I think extreme tables are a convenient way to answer your problem. They split nicely accross pages, as requested in your comment.The stretch option is described in extreme tabulars manual. It can be used to make the table use the whole horizontal space. \definefont[bigfont][name:pagella at 50pt] \define[1]\maketextbig{{\bigfont #1}} \starttext \...


1

I suggest not to put each bit into a tabular column of its own, but to rely on the fact that digits (in particular in typewriter font) are equally spaced. I define a command for each of the eight bit blocks that are moved around together (\Ba, ..., \Bh). I define shortcuts for the six colors (ca,...,cf) such that they can be adjusted in one place. For the ...


Only top voted, non community-wiki answers of a minimum length are eligible