You are not logged in.

#1 2013-04-07 10:55:48

alf
Member
From: Tromsø, Norway
Registered: 2010-07-05
Posts: 35

wraptable in LaTeX

Hello, fellow archers!

I'm writing a science report, and been writing them in LaTeX, for some time now. Learning something new every time I write another report.
This time it seems that my problem is with the wrapfigure package. I'm trying to do this:

\begin{wraptable}{r}{0.38\textwidth}
\begin{tabular}{|c|c|c|}
\hline
Hull & Usikker $lT^2$ & Usikker $l^2$\\ 
\hline
1 & 0.0008701372 & 0.0002795157\\ 
\hline
2 & 0.0007999804 & 0.0002259553\\ 
\hline
3 & 0.000776756 & 0.0001900993\\ 
\hline
4 & 0.0007827364 & 0.0001520973\\ 
\hline
5 & 0.0009779304 & 0.000086465666536\\ 
\hline
6 & 0.0014829391 & 0.000051772100232\\ 
\hline
7 & 0.0008076346 & 0.000134214\\ 
\hline
8 & 0.0007762293 & 0.0001880427\\ 
\hline
9 & 0.0008098201 & 0.0002363276\\ 
\hline
10 & 0.0009175971 & 0.0003126892\\ 
\hline
\hline\end{tabular}
\label{table:table}
\caption{\small{Usikkerhetene for $lT^2$ og $l^2$.}} 
\end{wraptable}

But it does not work.. the compiling gives me an error at the /caption.
If I do this with wrapfigure instead of wraptable, the caption works correctly. However, I want this to be noted as a TABLE, and I cannot understand why the wraptable doesn't accept the caption..

Can somebody help me out?
(Sorry if this is the wrong subforum btw).

alf

Last edited by alf (2013-04-07 10:56:17)

Offline

#2 2013-04-07 13:10:56

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,485
Website

Re: wraptable in LaTeX

It works fine here - what error are you getting?  What is in the rest of your .tex document?  I just copied this into an otherwise blank .tex file with only 4 other lines (class, include, begin, end).


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#3 2013-04-07 13:20:52

alf
Member
From: Tromsø, Norway
Registered: 2010-07-05
Posts: 35

Re: wraptable in LaTeX

/tmp/gummi_V4WLVW:55: Undefined control sequence.
\@tempf ... \@parboxrestore \normalsize \@fs@capt 
                                                  {\@nameuse {fnum@#1}}{\ign...
l.55 ...small{Usikkerhetene for $lT^2$ og $l^2$.}}

it says that just before I get the fatal error:

/tmp/gummi_V4WLVW:55:  ==> Fatal error occurred, no output PDF file produced!
Transcript written on /tmp/gummi_V4WLVW.log.

Offline

#4 2013-04-07 13:48:28

alf
Member
From: Tromsø, Norway
Registered: 2010-07-05
Posts: 35

Re: wraptable in LaTeX

I'm using gummi as my latex editor. May that be the issue?

Offline

#5 2013-04-07 13:57:25

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,485
Website

Re: wraptable in LaTeX

Not sure, can you try compiling the document from the command line with latex or pdflatex?  Also, have you tried the minimal document with just that table, the document class, the begin/end document lines, and the package include?

I've never used gummi, does it do these things for you?  If so try (pdf)latex from the command line with a .tex file with just the following content with what you have posted above in place of <INSERT>:

\documentclass{article}
\usepackage{wrapfig}

\begin{document}
<INSERT>
\end{document}

Last edited by Trilby (2013-04-07 13:57:48)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#6 2013-04-07 14:13:06

alf
Member
From: Tromsø, Norway
Registered: 2010-07-05
Posts: 35

Re: wraptable in LaTeX

Strange.. That actually works, and it works with gummi as well.. it's just my other document that won't compile..

Maybe it could be some overlapping in my packages?

I use many packages:

\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{tikz}
\usepackage{wrapfig}
\usepackage{float}
\usepackage{rotating}
\usepackage{epstopdf}
\usepackage{epsfig}
\restylefloat{table}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{epsfig}
\usepackage{fix-cm}
\usepackage{framed}
\usepackage[a4paper]{geometry}
\usepackage{textcomp}
\usepackage{pdflscape}

\newcommand{\unit}[1]{\ensuremath{\, \mathrm{#1}}}
\newcommand{\degrees}{^\circ}

Offline

#7 2013-04-07 14:18:06

alf
Member
From: Tromsø, Norway
Registered: 2010-07-05
Posts: 35

Re: wraptable in LaTeX

Ok, my problem was the

\restylefloat{table}

I got that from my university to make the front page.. So i guess this problem is solved.

Thanks,
alf

Offline

Board footer

Powered by FluxBB