Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longtable huxtable #29

Open
Nicktz opened this issue Oct 17, 2017 · 8 comments
Open

Longtable huxtable #29

Nicktz opened this issue Oct 17, 2017 · 8 comments

Comments

@Nicktz
Copy link

Nicktz commented Oct 17, 2017

Hi, great package.

Would just like to know if there is a way of specifying a long-table in huxtable from rmarkdown without having to hack the tex file for pdf output?

Nico

@hughjonesd
Copy link
Owner

hughjonesd commented Oct 17, 2017 via email

@matton2
Copy link

matton2 commented Sep 12, 2019

Hi, really like this package!

The set_tabular_environment works to include 'longtable' in the Latex but unfortunately the \begin{longtable} is below the caption now thus the caption is not being generated.

No caption:

 \providecommand{\huxb}[2]{\arrayrulecolor[RGB]{#1}\global\arrayrulewidth=#2pt}
  \providecommand{\huxvb}[2]{\color[RGB]{#1}\vrule width #2pt}
  \providecommand{\huxtpad}[1]{\rule{0pt}{\baselineskip+#1}}
  \providecommand{\huxbpad}[1]{\rule[-#1]{0pt}{#1}}

\begin{table}[H]
\begin{raggedright}
\begin{threeparttable}
\captionsetup{justification=raggedright,singlelinecheck=off}
\caption{Summary Table}
\begin{longtable}{p{0.25\textwidth} p{0.75\textwidth}

Caption generated:

\providecommand{\huxb}[2]{\arrayrulecolor[RGB]{#1}\global\arrayrulewidth=#2pt}
  \providecommand{\huxvb}[2]{\color[RGB]{#1}\vrule width #2pt}
  \providecommand{\huxtpad}[1]{\rule{0pt}{\baselineskip+#1}}
  \providecommand{\huxbpad}[1]{\rule[-#1]{0pt}{#1}}

\begin{table}[H]
\begin{raggedright}
\begin{threeparttable}
\captionsetup{justification=raggedright,singlelinecheck=off}
\begin{longtable}{p{0.25\textwidth} p{0.75\textwidth}}
\caption{Summary Table}

Any suggestions on how to ensure the caption comes after the \begin{longtable}?

@hughjonesd
Copy link
Owner

hughjonesd commented Sep 12, 2019 via email

@mikebader
Copy link

It looks like @hughjonesd fixed this issue by adding table_environment() in 0773fed.

@hughjonesd
Copy link
Owner

Comments welcome on whether this actually works!

@lvjr
Copy link

lvjr commented Jun 22, 2022

Any interest in using my tabularray package for LaTeX long (and short) table output? This package is much more powerful than traditional table packages, and it is able to separate contents and styles of tables like html and css.

@hughjonesd
Copy link
Owner

hughjonesd commented Jun 22, 2022

Possibly. It looks quite good.

  • Can it cope with horizontal/vertical borders that don't span the whole table?
  • Is there a way to specify padding within cells?
  • Does it have "longtable" facilities?

Most importantly, are you interested in working on it? That will definitely improve its changes of happening.

@lvjr
Copy link

lvjr commented Jun 22, 2022

Possibly. It looks quite good.

  • Can it cope with horizontal/vertical borders that don't span the whole table?

Yes, see the documentation.

  • Is there a way to specify padding within cells?

Paddings are only for rows and columns in LaTeX tables.

  • Does it have "longtable" facilities?

Yes, see the documentation.

Most importantly, are you interested in working on it? That will definitely improve its changes of happening.

Sorry, I am not an R user (never use it before). I know only LaTeX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants