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

Template breaks ctable sideways #101

Open
matthiaswelz opened this issue Dec 13, 2018 · 1 comment
Open

Template breaks ctable sideways #101

matthiaswelz opened this issue Dec 13, 2018 · 1 comment

Comments

@matthiaswelz
Copy link

I downloaded scientific-thesis-template-3.0.0-beta.3.zip.

In main-english.tex I added the following two packages:

\usepackage{ctable}
\usepackage{lipsum}

and replaced the content with:

\chapter{ABC}
\lipsum

\section{DEF}
\lipsum

\subsection{GHI}

\ctable[
caption={CAPTION},
label={table:tab},
sideways
]
{lXlll}
{}
{
	\toprule
	A & B & C & D & E \\
	\midrule
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	A & B & C & D & E \\
	\bottomrule
 }
 
\autoref{table:tab} is a table
\lipsum

main-english.txt
main-english.pdf

As you can see in the attached PDF, the table is "broken" as it is placed at the wrong position:

grafik

In order to fix this, I had to remove the following lines from config.tex

%%%
%ensure that floats covering a whole page are placed at the top of the page
%see http://tex.stackexchange.com/a/28565/9075
\makeatletter
\setlength{\@fptop}{0pt}
\setlength{\@fpbot}{0pt plus 1fil}
\makeatother
%%%

Now the table looks good:

main-english.pdf

grafik

Any idea how to fix this without losing the intended behaviour?

@Vogel612
Copy link
Collaborator

Preliminary testing suggests to manually rotate the table with \rotatebox. I'm not perfectly sure how to preserve the behavior with titles and references yet...

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

No branches or pull requests

2 participants