Questions tagged [xtable]

A library for R that exports tables from R data in LaTeX (and/or html) format. Please do not use this for xtables in ConTeXt which should be tagged extreme-tables.

Filter by
Sorted by
Tagged with
1 vote
1 answer
78 views

Create a landscape-mode table that comprises 12 columns and 500+ rows

I want to create a table that contains 12 columns and 500+ rows in landscape mode (A4 paper size) and also has repeated table headers on subsequent pages for the below table with header \toprule ...
heavendew's user avatar
1 vote
0 answers
59 views

Best way to create a table for data in R?

Main question: What is the best way to create a table in a LaTeX document for data from R? At first glance, two possibilities seem conceivable: Let R create the table and "paste" it into ...
user1's user avatar
  • 2,166
0 votes
1 answer
32 views

Fit the table into the page

I am trying to fit this table into the page but unfortunately it is not working. The problem is, it is a supplemantry table, so I am using: \DeclareFloatingEnvironment[name={Supplementary Table},...
narmin's user avatar
  • 1
1 vote
1 answer
61 views

Control table height

I'm trying to create a table with mailing adresses to print so what I need is to match my table dimensions to the pre-cut sticker paper. So far I've managed to control column width with p{\dimexpr 0....
wernor's user avatar
  • 113
-1 votes
1 answer
77 views

how to fit the table? dont cutting table

\documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \maketitle \section{Introduction} % latex table generated in R 4.2.1 by xtable 1.8-4 package % Tue Sep 13 11:07:50 2022 \begin{...
cj456's user avatar
  • 1
0 votes
1 answer
64 views

Making space between two tables

How can we make space between two tables, arranged in columns, where each table contains four columns? I have two tables with three columns each, but want four columns.
supragyan priyadarshinee's user avatar
3 votes
2 answers
347 views

Grouping Table Rows

I'm trying to incorporate groups row-wise for my following table: The current version is achieved with the following code: \documentclass{article} \usepackage[margin=25mm]{geometry} \usepackage{...
bpmler's user avatar
  • 61
2 votes
1 answer
101 views

Add a vertical line in tabularx{}

I have a table like below which works without any error in my main.tex. I would like to add to a vertical line and maybe need some touch about the lines. Many thanks in advance. \documentclass[11pt,...
Seyma Kalay's user avatar
3 votes
1 answer
312 views

Latex pop up error Misplaced \omit. \multispan ->\omit@multispan for Table in Elsevier cas-sc template

\documentclass[a4paper,fleqn]{cas-sc} \usepackage{booktabs, makecell} \usepackage{siunitx} \usepackage{longtable} \begin{document} \begin{table}%[!htbp] \centering \caption{{Week ahead forecasted ...
Ghulam Hafeez's user avatar
1 vote
1 answer
281 views

Make a tcolorbox table, using tabularx, fit the \linewidth

I have a pretty formatted table with tcolorbox, which uses tabularx under the hood. But, I don't know how I would configure it, as is possible with tabularx, to make the table fit the linewidth - ...
BuddhiLW's user avatar
  • 177
1 vote
2 answers
181 views

table is not working

Hello Community can any one help me? Why table is showing me like this? Any idea please Code are below: \renewcommand\theadfont{\normalsize\bfseries} \definecolor{myblue1}{rgb}{0.776,0.851,0.945} \...
Sagarkumar Zalavadiya's user avatar
0 votes
2 answers
51 views

Tabularx: Adjusting column-names to entries

I have the following MWE: \documentclass[12pt, a4paper]{article} \usepackage[english]{babel} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{tabularx} \usepackage{array} \...
Tyler D's user avatar
  • 301
0 votes
1 answer
40 views

page width long table

Is there a better way to set this long table? something better than >{\raggedright\arraybackslash}p{6cm}? many thanks in advance. \documentclass[11pt,authoryear,sort&compress]{report} \...
Seyma Kalay's user avatar
2 votes
1 answer
86 views

alignment in multicolumn

taking the code from Here and Here but I can not fit it to the page properly . \documentclass[11pt,authoryear,sort&compress]{report} \usepackage{booktabs,tabulary,array,tabularx} \usepackage{...
Seyma Kalay's user avatar
1 vote
1 answer
169 views

page width table with a specific column length

Hello Community, I have a table as follows and I want to set as page width like here many thanks in advance. \documentclass[11pt,authoryear,sort&compress]{report} \usepackage{booktabs} \...
Seyma Kalay's user avatar
2 votes
2 answers
70 views

add a line in multicolumn

I have a table that looks as follows and I want to add a row Income 2 properly shown in the photo, many thanks in advance. The code was taken from Here. \documentclass[11pt,authoryear,sort&...
Seyma Kalay's user avatar
0 votes
1 answer
102 views

Align multicolumn in .text

I want to align values in the green box to the left and need some suggestions for the line spacing . many thank in advance, \documentclass[11pt,authoryear,sort&compress]{report} \usepackage{...
Seyma Kalay's user avatar
0 votes
1 answer
255 views

Break up horizontal longtable

I tried to figure this out on my own. However, nothing seemed to work. I have a super long table, but its formatted differently than a normal table as it is oriented horizontally. If i can i would ...
DrBrabbel's user avatar
1 vote
0 answers
636 views

Rmarkdown chunk with xtable() stopped rendering LaTeX table

I have a data analysis Rmarkdown file that I will use to knit a .pdf results section for my thesis. I had beautiful working LaTeX table code when I knit a pdf together in Rstudio using the knit button ...
Skiea's user avatar
  • 11
0 votes
1 answer
141 views

remove extra space in xtable in latex

in the following table there are either no space, space, or lots of space, problem is about the alignment {p{}}? how to have a single space only. \documentclass[11pt,authoryear,1p,times,sort&...
Seyma Kalay's user avatar
1 vote
0 answers
141 views

remove extra dot before \ref{} in latex

When I cross-reference a longtable (with label x.big) using \ref{x.big}, I get .tablenumber rather than tablenumber. How to get rid of the dot? Many thanks in advance. \documentclass[11pt,authoryear,...
Seyma Kalay's user avatar
0 votes
1 answer
1k views

long xtable() with align and footnote

have a long table and I would like to do a custom column width, with a footnote, the R code looks like below and align() to specific column width does not working? many thanks in advance, x <- ...
Seyma Kalay's user avatar
1 vote
2 answers
112 views

illegal character in array

have a table like below with a custom width, but i can not run it, any ideas? many thanks in advance \documentclass{article} \usepackage{array} \begin{document} \begin{table}[ht] \centering \...
Seyma Kalay's user avatar
0 votes
0 answers
152 views

no space after xtable in latex

Hello Community I am using print(xtable) for 2 different tables, the spacing is ok in one and in the other table there is not enough space between rows. I am calling the directory same way too \...
Seyma Kalay's user avatar
0 votes
1 answer
720 views

For IEEE ACCESS Template Error encountered in table code when complied. Error message: Undefined control sequence. \sisetup

\documentclass{ieeeaccess} \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em ...
Ghulam Hafeez's user avatar
1 vote
1 answer
567 views

Formatting xtable with different digit sizes

I have a data.frame in R with three columns, A=cbind(c(1,2),c(10^4,10^3),c(4535.45,324.252)) is there a way to generate a LaTeX table, using xtable, such that: The first appears like 1 $ 2 \\ The ...
ABIM's user avatar
  • 322
0 votes
1 answer
534 views

This code is not executable for IEEE ACCESS document Class \documentclass{ieeeaccess}. Generates error like this: 1.23}?

\documentclass{ieeeaccess} \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{algorithmic} \begin{document} \...
Ghulam Hafeez's user avatar
0 votes
1 answer
220 views

Table code generate error in IEEE class latex file. Please help

\begin{table} \centering \caption{{Evaluation of actual and predicted load (P.load) in terms of MAPE of our proposed FCRBM based model and existing models (AFC-ANN, Bi-level, MI-ANN) on Dayton grid ...
Ghulam Hafeez's user avatar
0 votes
1 answer
85 views

How to replace numbers with centered strings in dcolumn table?

In a table produced by the texreg::texreg() function in R I want to replace numerical values with strings. The purpose is to summarize values of a bunch of control variables with a single line and a ...
jay.sf's user avatar
  • 435
1 vote
1 answer
987 views

R studio cannot make xtable

library(xtable) library(magrittr) library(moonBook) options(ztable.type="html") a=mytable(head(iris)) a x = xtable(a) x i cannot make xtable, just use mytable... want to use xtable, but output like ...
youngjae jung's user avatar
1 vote
1 answer
176 views

This code is not executing in the documentclass [journal]{IEEEtran}?

\documentclass[journal]{IEEEtran} \hyphenation{Smart Grid} \usepackage{subfloat} \usepackage{subcaption} \usepackage{graphicx} \usepackage{color} %for colors \usepackage{epstopdf} \usepackage{url} \...
Ghulam Hafeez's user avatar
1 vote
1 answer
1k views

How to put table in full page when paper format is double column

I am using the double-column paper format, and I've two requirements as follows. First, I need my table to be spanned over the whole width of the document not just one column. Second, if a table is ...
usman1644's user avatar
0 votes
1 answer
330 views

Scaling output from stable output

print(xtable(x, type = "latex"), floating = FALSE, tabular.environment = "longtable", file = "/Path/Filename.tex") I am using the above code to output a table directly from R. I am using ...
user3504322's user avatar
2 votes
1 answer
849 views

Getting R xtable to display within a LaTex 'minipage'

I have the following piece of R-markdown / latex / minipage combo code. What I am trying to do is get the xtable output to display within the minipage, along with other text paragraphs surrounding it....
Gopala's user avatar
  • 93
1 vote
2 answers
791 views

Runaway argument constructing a tabularx simple table

I want to reproduce this kind of table: I tried writing down this code: \documentclass{article} \usepackage{tabularx,booktabs} \begin{document} \newcolumntype{Y}{>{\centering\...
user avatar
1 vote
0 answers
479 views

R Sweave: print very large dataframe sample which spans on multiple pages inside a floating environment

I'm using R Sweave to output an R document into a LaTeX file through R Studio on a Windows 7. I have a very large data frame from which I have to put a sample at the begin of my document. I use xtable ...
GaryDe's user avatar
  • 11
5 votes
2 answers
8k views

How to manually make tables using booktabs

I am really new in the use of LaTex and would like some help to make this table using booktabs formatting. I use R and would ideally generate it using xtables package. However, I could not deal with ...
Arthur Carvalho Brito's user avatar
2 votes
2 answers
2k views

Missing $ inserted. ^^I^^I &\square

I am new to LaTeX and I am using it to write a questionnaire like this: My current code is the following: \begin{enumerate} \item Statement one. \begin{tabular}{c c c c c c c} \...
AshKan's user avatar
  • 921
2 votes
1 answer
3k views

Splitting table in multiple pages in Elsevier journal format (elsarticle.cls)

I am not able to accommodate my table in Elsevier journal manuscript format, so I need to split the table. Since the table has too many columns I rotate the table 90 degree(anticlockwise). And also ...
M. kalita's user avatar
3 votes
1 answer
247 views

Increment Regression Models

I often show regressions tables during presentation and I was wondering if there is a simple way to increment regression models. For instance, I would like to first display model 1 (1) and then ...
giac's user avatar
  • 133
1 vote
0 answers
3k views

Specify multiple notes of a table by xtable

I want to create a table which may contain multiple notes like : which I found here. This works fine in a pure LaTeX context, yet I'm using knitr to convert my Rnw files (under R) to pdf, because ...
user133510's user avatar
5 votes
1 answer
1k views

Removing all hlines in xtable generated longtables

Even by setting hline.after = NULL, a longtable generated by the R package xtable still mantains an hline at the very end of the table. \documentclass{article} \usepackage{longtable} \begin{...
Francesco's user avatar
  • 4,564
3 votes
1 answer
396 views

Is it possible to use cite inside xtable?

If I had a table stored in a data frame: library(xtable) tbl <- data.frame(Name=c("A", "B"),Source=c("\\cite{a}", "\\cite{b}")) tab <- xtable(tbl) print(tab) how would I go about producing a ...
chao's user avatar
  • 135
0 votes
1 answer
2k views

Including greek letters when saving matrix from R to .tex table

How does one save a table with Greek letters in R, so that LaTeX recognizes and outputs the Greek letters when the table is called in LaTeX ? I am using R to output a table of results, save the ...
Dr. Beeblebrox's user avatar
2 votes
1 answer
259 views

Context - TABLE commands in body of document affecting TABLEs in header

I am trying to use a TABLE as a header in Context (see Using a table as a header in Context). However, the \setupTABLEs and \bTABLE[head|foot]s commands in the body of the document affect the TABLE in ...
shasderias's user avatar
1 vote
1 answer
121 views

IEEEtran: Inserting a table into an 2 column document

I'm trying to insert a table into my IEEEtran document. Following tables I have created with Excel. Here is my IEEEtran code. Can someone tell me how I can create my table into following code? \...
maxmin's user avatar
  • 101
1 vote
1 answer
445 views

How to make multirow "footnote row" for dominating cell in LaTeX Table?

I want to minimise the dominating effect of big cells in tables within a table by the following have two major rows for each row where a dominating row such that the dominating cell will take place ...
Léo Léopold Hertz 준영's user avatar
1 vote
1 answer
113 views

Problem with some \omit and a table within itemize

Good morning/afternoon/evening I have got this source code, below. The result is on the picture on the left. Why is the mark (the black circle) below the table? How to fix it? I want to have got the ...
Ľubomír Masarovič's user avatar
1 vote
0 answers
1k views

R xtable and table width

I have to fit a table with many columns to the width of a page, using xtable and longtable environment. My R code is library(xtable) data <- matrix( data = 1000000000, ncol=14, nrow = 100) x....
Patrick L.'s user avatar
3 votes
1 answer
2k views

How to change row height within xtable environment?

I would like to change row height such that all rows except the header row will have fix height x and the header row will have eight y. I would like to do this within xtable environment because I ...
kamila's user avatar
  • 69