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
2
votes
1answer
45 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,...
2
votes
1answer
51 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 ...
1
vote
1answer
70 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 - ...
1
vote
2answers
135 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} \...
0
votes
2answers
44 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} \...
0
votes
1answer
31 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} \...
2
votes
1answer
49 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{...
1
vote
1answer
65 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} \...
2
votes
2answers
37 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&...
0
votes
1answer
70 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{...
0
votes
1answer
61 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 ...
1
vote
0answers
312 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 ...
0
votes
0answers
16 views

How to include multiples tables sequentially in the same page

I'm struggling on how can I include a lot of tables sequentially. I'm using \foreach \i in {1,...,23}{ \include{filename\i} } but using the code above, I got one table per page and I would like ...
0
votes
1answer
80 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&...
1
vote
0answers
70 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,...
0
votes
1answer
577 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 <- ...
1
vote
2answers
47 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 \...
0
votes
0answers
92 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 \...
0
votes
1answer
285 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 ...
1
vote
1answer
203 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 ...
0
votes
1answer
254 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} \...
0
votes
1answer
141 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 ...
0
votes
1answer
49 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 ...
1
vote
1answer
132 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 ...
1
vote
1answer
164 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} \...
1
vote
1answer
648 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 ...
0
votes
1answer
166 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 ...
2
votes
1answer
557 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....
1
vote
2answers
613 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\...
1
vote
0answers
421 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 ...
5
votes
2answers
6k 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 ...
2
votes
2answers
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} \...
2
votes
1answer
2k 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 ...
3
votes
1answer
212 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 ...
1
vote
0answers
2k 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 ...
4
votes
1answer
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{...
3
votes
1answer
196 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 ...
0
votes
1answer
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 ...
3
votes
1answer
214 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 ...
2
votes
1answer
111 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? \...
1
vote
1answer
352 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 ...
1
vote
1answer
103 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 ...
1
vote
0answers
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....
3
votes
1answer
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 ...
1
vote
0answers
754 views

general footnotes in xtable

I am using sweave to create pdf. Using xtable, I am trying to insert a general footnotes under the table (i.e: This symbol means bla bla bla). I've tried a lot of things and everything get me an error ...
1
vote
1answer
240 views

make the TeX xtable results well formatted and easier to read

Is there a way to make the TeX xtable source code results well formatted and easier to read. Example: library(xtable) ## Load example dataset data(tli) print(tli.table) gives \begin{table}[ht] \...
1
vote
2answers
3k views

How to avoid page break after table?

I have a small LaTeX table (tabular) created in R with the xtable package and I would like to place a figure underneath the table on the SAME page. I have tried various things (using packages float, ...
0
votes
1answer
663 views

Default low row height of table and tabular environments [duplicate]

Suppose that we have this code: \begin{table} \caption{xxxx.} \centering \begin{tabular}{|c|c|} \hline \rowcolor{Gray} % after \\: \hline or \cline{col1-col2} \cline{col3-col4} ... 1 & ...
0
votes
1answer
131 views

xtable: extend table to both columns

Using the xtable package, is it possible to give some option to xtable function to generate a tex file which will contain following: ``` \begin{table*} ... \end{table*} ```
2
votes
1answer
1k views

Longtable exceeds page length

Situation: I am using rmarkdown and xtable to iterate the creation of several tables, and output them in Latex to create a PDF. Given that most tables are long, Im using Longtable package. Also, i ...