# Tag Info

0

The caption must be incorporated in the table, inside the foot specifications, if you want the caption at the bottoms of the table, or in the head soecifications to have it above the table (which is recommended). Also, if you load ltablex, you don't have to load tabularx nor longtable since they're loaded by ltablex. \documentclass[a4paper]{article}% ...

0

use \usepackage{booktabs} \usepackage{ltablex} \setkomafont{disposition}{\normalfont\bfseries} \setkomafont{caption}{\small} \begin{document} \keepXColumns \begin{tabularx}{\textwidth}{Xx}\toprule \textbf{Column 1} & \textbf{Column 2} \\\midrule $R$ & 1This is an example sentence \\ $R$ & 2As well as the line before ...

2


1

Here is another solution with a tabitem environment, which actually is an itemize environment and so also takes care of the indention after a linebreak. Unfortunately it seems that the array packages causes a spurious extra line at the end of the tabitem environment, so I haven't loaded this package and therefore also not the ragged2e package. I want to ...

1

I'm not sure if this is what you looking for: The obtain above picture of table is obtained by your code, where I erase \setlength{\extrarowheight}{10pt} (whic add only space above cells content) and add \renewcommand\arraystretch{1.5}. So, the complete code (with some changes in setting of math expressions), is: \documentclass[a4paper, ...

1

If for some reason you do not want additional packages, you can correct the tabular manually: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{setspace} \usepackage{mathrsfs} \onehalfspacing \usepackage{algorithmic} \textheight=23cm \textwidth=16cm \topmargin=-1cm \oddsidemargin=0cm \parindent=0mm \pretolerance=2000 \tolerance=3000 \title{} ...

4

Add \usepackage{array}, it will connect the lines.

1


4

I suggest you use a tabularx environment instead of the basic tabular environment. Moreover, I think the nine data columns should have equal widths. Use a \settowidth instruction to calculate the required width of the tabularx. You may also want to get rid of all vertical lines, to give the table a more "open" look. \documentclass{amsart} ...

1


2

Even after your edit of question it is still cryptic to me. So on basis of guessing and a bit of considering, how I will wrote similar table, I made the following example: \documentclass{article} \usepackage{tabularx} \usepackage[table]{xcolor} \usepackage{siunitx} \begin{document} \begin{table}[h] \renewcommand{\arraystretch}{1.5} \sffamily ...

0

The table is based on LaTeX. Using Rmarkdown inside the table environment is never going to work, as it doesn't recognise Rmarkdown. Using LaTeX citations is logical idea, however, LaTeX citations don't work the same way Rmarkdown citations work. This is an Rmarkdown document and doesn't provide any instructions for LaTeXtables. As you can see, the YAML ...

1

As percusse and cmhughes have pointed out already in their comments, one can try to accomplish your needs with the pgfplotstable package. Here some code for a starting point, which I think works quite well for vertical tables, but lack for horizontal tables. Although the solution isn't perfect, it hopefully is a good starting point to experiment with. ...

3

The documentation of pgfgantt includes a chapter "Style Examples", starting at page 45. The syntax for ganttbars is: \ganttbar[ options ]{ label }{ start tss }{ end tss }. You can make different settings for most of the available elements. Also, you can adjust the colour of the bars quite easily: \ganttbar[bar/.append ...

1

For exercises and starting point: \documentclass[border=3mm, tikz, preview ]{standalone} \usetikzlibrary{fit, matrix, } \begin{document} \begin{tikzpicture}[ every node/.style = {inner sep=0.5mm} ] \matrix (magic) [matrix of nodes, column ...

5

I can't understand why you use \tabularx if you than not use X column type ... If you like to have table width equal to \textwidth, than exploit tabularx capabilities! Anyway, see if the following solutions is what you looking for: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{newtxtext,newtxmath} ...

3

In addition to providing at least one type-X column in a tabularx environment, you should also use a font family that actually provides bold-smallcaps glyphs (Computer Modern does not), and not use full justification in narrow columns, as doing so will almost certainly create unacceptably large gaps between words; instead, use ragged-right mode in narrow ...

4

You ask for a tabular length of \textwidth but do not adpate the size of the column. You could use X to do so. In tabularx, X will expand the column to fit the required size. For example: \documentclass{article} \usepackage{tabularx} \begin{document} \begin{tabularx}{1\textwidth}{|X||p{4cm}||p{3cm}|} \hline \textsc{\textbf{Nombre}} & ...

0

I tested all other methods above with packages but I found this simple method by David most useful -- actually I got all kind of malfunctioning with other answers such as only one element in a row changed the size of the text and so on, this may be due to rotating's sidewaystable but anyway -- this most simplest method works! \footnotesize ...

4

Being not versed in expl3, I would rater use a shell escape in this case. You have to adapt this to your operating system, but on Unix-like is quite simple; let this file being main.tex: \documentclass[12pt]{scrartcl} \begin{document} abc \input{|"grep -v ^main mwe2.tex"} def \end{document} ...and then run it with pdflatex --shell-escape main-tex ...

1

This still needs some work to be done, but you may start with: % arara: pdflatex \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[spanish]{babel} \usepackage[table]{xcolor} \usepackage{array} \usepackage{microtype} \usepackage{siunitx} \sisetup{range-phrase=--} \usepackage{ragged2e} \begin{document} ...

Top 50 recent answers are included