PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : APA-Style und Umlaute in Tabellen



uhla
26-10-2010, 23:05
Hallo zusammen!

Ich habe folgendes Problem: Ich möchte ein englisches Dokument erstellen, dabei kommen hier und da auch Umlaute vor. Im Text ist das kein Problem, in Tabellen bekomme ich allerdings einen Fehler. Ich nutzte den APA-Style.

Bin für jede Hilfe dankbar!


\documentclass[man]{apa}

\usepackage[utf8]{inputenc}
\usepackage{url}
\usepackage{graphicx}
\usepackage{amssymb}

\begin{document}

\begin{figure}[tp]
\begin{center}
\caption{This is the caption of the figure.}
\begin{tabular}{lrrrrr}

tröt & 1 & 1 & 1 & 1 & 3 \\

\end{tabular}
\end{center}
\label{fig:nonline}
\end{figure}

\end{document}

voss
26-10-2010, 23:18
Ich habe folgendes Problem: Ich möchte ein englisches Dokument erstellen, dabei kommen hier und da auch Umlaute vor. Im Text ist das kein Problem, in Tabellen bekomme ich allerdings einen Fehler. Ich nutzte den APA-Style.


und wie wäre es, wenn du mal sagen würdest, welchen Fehler??

Herbert

uhla
27-10-2010, 00:37
Das ist natürlich ein guter Punkt... ^^
Beim Ausführen des oben geposteten Codes bekomme ich folgende Fehlerausgabe. Wenn ich den Umlaut aus der Tabelle entferne, funktioniert alles.


This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./paper.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german, ngerman, loaded.
(./apa.cls
Document Class: apa 2008/12/09 American Psychological Association format v1.3.4


Class apa Warning: Using BibTeX with apacite for citations and references.

(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size11.clo)) (./apacite.sty)
(/usr/share/texmf-texlive/tex/latex/tools/bm.sty)
(/usr/share/texmf-texlive/tex/latex/ltxmisc/endnotes.sty)
(/usr/share/texmf-texlive/tex/latex/endfloat/endfloat.sty) (paper.fff)
(paper.ttt)) (/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
(/usr/share/texmf-texlive/tex/latex/base/utf8.def
(/usr/share/texmf-texlive/tex/latex/base/t1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/ot1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/omsenc.dfu)))
(/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty)
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def)))
(/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty
(/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty)) (./paper.aux)
(./english.apa) (./english.apc)
(/usr/share/texmf-texlive/tex/context/base/supp-pdf.tex
[Loading MPS to PDF converter (version 2006.09.02).]
) AED endfloat: Processing end Figures and Tables (./paper.ttt) (./paper.lof
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd)) [1{/var/lib/texmf/fonts/
map/pdftex/updmap/pdftex.map}] (./paper.fff
! Undefined control sequence.
l.10 tr\unhbox \voidb
@x \bgroup \let \unhbox \voidb@x \setbox \@tempboxa \hb...

! Missing number, treated as zero.
<to be read again>
@
l.10 tr\unhbox \voidb@
x \bgroup \let \unhbox \voidb@x \setbox \@tempboxa \hb...

! A <box> was supposed to be here.
<to be read again>
\@m
l.10 ...x \bgroup \let \unhbox \voidb@x \setbox \@
tempboxa \hbox {o\global \...

! Missing $ inserted.
<inserted text>
$
l.10 ...x \bgroup \let \unhbox \voidb@x \setbox \@
tempboxa \hbox {o\global \...

! Missing number, treated as zero.
<to be read again>
}
l.10 ...hbox {o\global \mathchardef \spacefactor }
\accent 127 o\egroup \spac...

! Please use \mathaccent for accents in math mode.
l.10 ...\global \mathchardef \spacefactor }\accent
127 o\egroup \spacefactor...

! Extra }, or forgotten $.
l.10 ...chardef \spacefactor }\accent 127 o\egroup
\spacefactor t & 1 & 1 & ...

! Missing } inserted.
<inserted text>
}
l.10 ...tor }\accent 127 o\egroup \spacefactor t &
1 & 1 & 1 & 1 & 3 \\
! Extra }, or forgotten $.
<inserted text> }

l.10 ...tor }\accent 127 o\egroup \spacefactor t &
1 & 1 & 1 & 1 & 3 \\
! Missing } inserted.
<inserted text>
}
l.10 ...tor }\accent 127 o\egroup \spacefactor t &
1 & 1 & 1 & 1 & 3 \\
! Extra }, or forgotten $.
<inserted text> }

l.10 ...tor }\accent 127 o\egroup \spacefactor t &
1 & 1 & 1 & 1 & 3 \\
! Missing } inserted.
<inserted text>
}
l.10 ...tor }\accent 127 o\egroup \spacefactor t &
1 & 1 & 1 & 1 & 3 \\
! Extra }, or forgotten $.
<inserted text> }

l.10 ...tor }\accent 127 o\egroup \spacefactor t &
1 & 1 & 1 & 1 & 3 \\
...

Der Fehler wiederholt sich dann so 100 mal.

voss
27-10-2010, 07:43
Das ist natürlich ein guter Punkt... ^^
Beim Ausführen des oben geposteten Codes bekomme ich folgende Fehlerausgabe. Wenn ich den Umlaut aus der Tabelle entferne, funktioniert alles.


This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./paper.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german, ngerman, loaded.
(./apa.cls
Document Class: apa 2008/12/09 American Psychological Association format v1.3.4


Class apa Warning: Using BibTeX with apacite for citations and references.

(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class


Der Fehler wiederholt sich dann so 100 mal.

sieht nach veralteten Dateien aus, denn ich bekomme mit der aktuellen
TeXLive2010 keinen Fehler. Um es genauer zu sagen, müsstest du ein
\listfiles als Zeile in dein Dokument schreiben und die Dateiliste am
Ende des Logfiles schicken.

Herbert

Herbert

uhla
28-10-2010, 09:46
Vielen Dank für die Hilfe!

Hier meine file list:


*File List*
apa.cls 2008/12/09 American Psychological Association format v1.3.4
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
apacite.sty 2005/06/08 APA citation
bm.sty 2004/02/26 v1.1c Bold Symbol Support (DPC/FMi)
endnotes.sty
endfloat.sty 1995/10/11 v2.4i LaTeX2e package puts figures and tables at end
(jdm)
inputenc.sty 2006/05/05 v1.1b Input encoding file
utf8.def 2006/03/30 v1.1i UTF-8 support for inputenc
t1enc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc
ot1enc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc
omsenc.dfu 2006/03/30 v1.1i UTF-8 support for inputenc
url.sty 2005/06/27 ver 3.2 Verb mode for urls, etc.
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
pdftex.def 2007/01/08 v0.04d Graphics/color for pdfTeX
amssymb.sty 2002/01/22 v2.2d
amsfonts.sty 2001/10/25 v2.2f
english.apa 2006/01/01
english.apc 2005/06/01
supp-pdf.tex
umsa.fd 2002/01/19 v2.2g AMS font definitions
umsb.fd 2002/01/19 v2.2g AMS font definitions

voss
28-10-2010, 10:05
Hier meine file list:


*File List*
apa.cls 2008/12/09 American Psychological Association format v1.3.4
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
apacite.sty 2005/06/08 APA citation
bm.sty 2004/02/26 v1.1c Bold Symbol Support (DPC/FMi)
endnotes.sty
endfloat.sty 1995/10/11 v2.4i LaTeX2e package puts figures and tables at

Die apa-Klasse und ein paar Pakete ist bei mir dieselbe Version. Der Rest jedoch komplett neueren Datums.


*File List*
apa.cls 2008/12/09 American Psychological Association format v1.3.4
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
apacite.sty 2009/03/01 v4.05 APA citation
...

uhla
28-10-2010, 23:30
Vielen Dank für die Hilfe! Muss ich mal schauen, wie ich mein Debian Lenny akueller kriege...