Table Error: no rulers visible

Hi guys,

still new in the Scrivener / LaTeX business but this forum helped me a lot so far. So first of all thanks everybody.

Now my current problem is that a table shows no rulers after compiling in the output PDF.

Scrivener (test) code:

| A | B |
| :-- | :-- |
| 1 | 2 |
| 3 | 4 |
[Table]

Compiled LaTeX code:

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{Table}
\label{table}
\begin{tabulary}{\textwidth}{@{}LL@{}} \toprule
A&B\\
\midrule
1&2\\
3&4\\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

PDF Output (no rulers shown):

Tabelle 0.1: Table
AB 
12 
34

Error Message after compiling from LaTeX into PDF:

I’m using the tabulary package with tex live and Scrivener 2.3.1 with MMD3.

Hopefully you got any ideas or it’s just a stupid noob fail. Anyways, thanks in advance!

Best
Timo

Hmm. There doesn’t seem to be anything wrong with the MMD, or with the latex it produces. I’ve pasted your MMD into MMD composer and exported it to latex and typeset it – all fine. I’ve pasted the latex into your example into an existing tex file – and it typesets fine. (The warning about no suitable columns always comes up, even if everything is working fine. I think – after a quick look at the tabulary documentation – it is something to do with the process of calculating the minimum column width: but don’t quote me on that.)

That leaves me wondering about your Tex set up, the tex files you are calling via the \input{} commands and anything that might be happening in the rest of the tex file.

Hi MrGruff,

thanks for your reply!

Well, the only problem is, that the table shows no rulers/lines…

My latex-input.tex seems like that:

\documentclass[a4paper,12pt,twoside,toc=bib,toc=listof,DIV=calc,BCOR=10mm,pdftex]{scrreprt}
% BCOR -> Bindekorrektur
% DIV -> Zeilenlänge
\usepackage{scrhack}

% Encoding
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

% German Language 
\usepackage[ngerman]{babel}

%use line breaks instead of indentation
\usepackage[parfill]{parskip}

\usepackage{natbib} % Citation Package
\setcitestyle{aysep={},notesep={: }}

\usepackage[top=3cm, left=3cm, includefoot, a4paper]{geometry}

\usepackage{multirow}
\usepackage{tabulary}

% Layout Header and Footer
\usepackage{fancyhdr}
\pagestyle{fancy}

\fancyhead{} % clear all header fields
\fancyfoot{} % clear all footer fields

%% Header
\fancyhead[RO,LE]{\includegraphics[width=1cm]{test.pdf} \\ \mdseries test} % Right Odd / Left Even
\setlength\headheight{40pt} % Header height
\setlength\headsep{25pt} % Distance header to text 

\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
\renewcommand{\subsectionmark}[1]{\markright{#1}}
\rhead{\leftmark\\\rightmark}

%% Footer
\fancyfoot[LE,RO]{test} % Left Even / Right Odd
\fancyfoot[LO,RE]{test} % Left Odd / Center Even
\fancyfoot[CO,CE]{\thepage} % Center Odd / Right Even

\renewcommand{\headrulewidth}{0.4pt} % Header Line
\renewcommand{\footrulewidth}{0.4pt} % Footer Line


% Use Helvetica 
\usepackage{helvet}

% Euro-Symbol
\usepackage{textcomp}
\usepackage{appendix}


\usepackage{hyperref}

% Surround parts of graphics with box
\usepackage{boxedminipage}

% Package for including code in the document
\usepackage{listings}

% This is now the recommended way for checking for PDFLaTeX:
\usepackage{ifpdf}

\ifpdf
\usepackage[pdftex]{graphicx}
\else
\usepackage{graphicx}
\fi

\linespread{1.2}

%%%%%%%%%%%%%%%%%%%%%%%% CONTENT START %%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document} 

% Title Page
\input{latex-titlepage}

% TOC
\pagenumbering{roman}
\tableofcontents
\listoffigures

\pagebreak

\pagenumbering{arabic}

and my latex-footer.tex like that:

% ============
% = Appendix =
% ============

\pagebreak
\appendix

% Bibliographie
\bibliographystyle{harvard} % Citation Style - Harvard
\bibliography{../literatur.bib} % Citation Database

Is there perhaps a command for table line thickness or something similar, which could be accidentally set to 0 ?

Thanks for your help!

Bye

Hi guys,

so I’ve tried the 2.3.5 Scrivener beta but still no change. Resulting table shows no lines/rulers.

But! After changing the inner tabulary code with an example from the tabulary package itself:

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{Table}
\label{table}
\begin{tabulary}{10cm}{L|R|C|J}
\hline
Diese Tabelle & hat genau die & Breite & von 10cm \\
\hline
Und wie man & dabei leicht erkennen kann & reicht diese Breite nicht bei allen
& Spalten aus um den gesamten Text darzustellen. \\
\hline
Dabei ist der Text in der ersten Spalte Links & in der zweiten Rechts & in der
dritten Zentriert & und in der letzten als Blocksatz dargestellt.\\ 
\hline
\end{tabulary}
\end{minipage}
\end{table}

it works fine!! Furthermore all the error messages disappeared. So, I guess the error has to be in the table or minipage environment…

Any ideas?