goLaTeX - Mein LaTeX-Forum

Mein LaTeX-Forum


Login  | Registrieren
Bücher:

LaTeX. Das Praxisbuch


Forenstatistik:
Beiträge: 41290
Seitenaufrufe:
342140 PIs (Mai 2012)

Top-Poster: KOMA (2637)

Wir begrüßen unseren neuesten Benutzer BrEin.

Partner:

KOMA-Script



TeXblog



LaTeX Community




Forum
      Option
[Erweitert]
  • Diese Seite weiterempfehlen
     


Gehe zu:  
Neues Thema eröffnen Neue Antwort erstellen

ltablex in Kombination mit tabularx

 

Max Grabner
Gast

Beiträge: ---
Anmeldedatum: ---
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 08.05.2012, 12:15     Titel: ltablex in Kombination mit tabularx
  Antworten mit Zitat      
Folgendes "minimalbeispiel"

Code:

\documentclass[11pt]{scrartcl}
.
.
.
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage{float}
\usepackage{lmodern}
\usepackage{picinpar}
\usepackage{color}
\usepackage{colortbl}  
\usepackage{fix-cm}
%\usepackage{tabularx}
\usepackage[textheight=620pt, footskip=90pt]{geometry}
\usepackage{ltablex}
\newcommand{\changefont}[3]{
\fontfamily{#1
} \fontseries{#2} \fontshape{#3} \selectfont}
.
.
.
\begin{document}
.
.
.
\begin{flushleft}
\begin{tabularx}{\textwidth}[H]{@{\extracolsep{\fill}}|l|X|}
   \hline
   \cellcolor{dunkelgrau}\textbf{Blaaaa} & blaaaaaaaaaaaaaaaaaaaa\\
   \hline
   \cellcolor{dunkelgrau}\textbf{Blaaaa} & blaaaaaaaaa\\
   \hline
   \cellcolor{dunkelgrau}\textbf{Blaaaa} & blaaaaaaaaaaaa\\
   \hline
   \cellcolor{dunkelgrau}\textbf{Blaaa} & blaaaaaaaaaaaaaaa\\
   \hline
   \cellcolor{dunkelgrau}\textbf{Blablabla} & blaaaaaaaaaaaaaaa\\
   \hline
\end{tabularx}
\end{flushleft}
 



Leider bekomme ich stets für jede Tabellenzelle eine Fehlemeldung:


Code:

! Missing \endgroup inserted.
<inserted text>
                \endgroup
l.183 \end{tabularx}
                   
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

! Missing \endgroup inserted.
<inserted text>
                \endgroup
l.183 \end{tabularx}
                   
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.


! Missing \cr inserted.
<inserted text>
                \cr
l.183 \end{tabularx}
                   
I'm guessing that you meant to end an alignment here.

! Missing { inserted.
<inserted text>
                {
l.183 \end{tabularx
}
                   
I've put in what seems to be necessary to fix
the current column of the current alignment.
Try to go on, since this might almost work.

! Missing { inserted.
<inserted text>
                {
l.183 \end{tabularx
}
                   
I've put in what seems to be necessary to fix
the current column of the current alignment.
Try to go on, since this might almost work.

! Missing } inserted.
<inserted text>
                }
l.183 \end{tabularx}
                   
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

! Missing } inserted.
<inserted text>
                }
l.183 \end{tabularx}
                   
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

! Missing } inserted.
<inserted text>
                }
l.183 \end{tabularx}
                   
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

! Missing \cr inserted.
<inserted text>
                \cr
l.183 \end{tabularx}
                   
I'm guessing that you meant to end an alignment here.

! Misplaced \cr.
<inserted text> \cr
                   
l.183 \end{tabularx}
                   
I can't figure out why you would want to use a tab mark
or \cr or \span just now. If something like a right brace
up above has ended a previous alignment prematurely,
you're probably due for more error messages, and you
might try typing `S' now just to see what is salvageable.

! Missing \cr inserted.
<inserted text>
                \cr
l.183 \end{tabularx}
                   
I'm guessing that you meant to end an alignment here.
 

...usw...
hatt jemand eine ahnung wieso???
Danke schonmal im Voraus[color=#][/color]

Max Grabner
Gast

Beiträge: ---
Anmeldedatum: ---
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 08.05.2012, 12:17     Titel:
  Antworten mit Zitat      
Code:

\definecolor{dunkelgrau}{rgb}{0.8,0.8,0.8}
\definecolor{hellgrau}{rgb}{0.95,0.95,0.95}
 


hab ich im codebeispiel vergessen....

Sepp99
Forum-Meister
Forum-Meister


Beiträge: 1489
Anmeldedatum: 29.08.10
Wohnort: Offenhausen/OÖ
Version: TXC 2.0 Beta 1-MiKTeX2.9 / TeXstudio2.5-Texlive 2012
     Beitrag Verfasst am: 08.05.2012, 15:24     Titel:
  Antworten mit Zitat      
Die Fehlermeldungen können aber nicht aus deinem Beispiel stammen, denn dieses läuft bei Ergänzung mit der Farbdefinition und mit
Code:
\end{document}
fehlerfrei durch.
Sepp.-
_________________

[1] Wichtige Dokumente [2] Knigge und Regelwerk
[3] TeXnicCenter und MiKTeX
[4] Minimalbeispiel und Fehlersuche [5] Status und Statusänderung
Private Nachricht senden Benutzer-Profile anzeigen

Max Grabner
Gast

Beiträge: ---
Anmeldedatum: ---
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 08.05.2012, 15:55     Titel:
  Antworten mit Zitat      
Mhhh...komisch...

habs jetzt so gelöst:

Code:
\usepackage{forloop}
\newcounter{count}
\setcounter{count}{1}


und für die tabellen:

Code:

\begin{filecontents*}{TAB\arabic{count}.tex}
\begin{longtable}{@{\extracolsep{\fill}}|X|X|}
   \hline
   TEXT & TEXT\\
   \hline
   TEXT & TEXT\\
   \hline
   TEXT & TEXT\\
   \hline
   TEXT & TEXT\\
   \hline
   TEXT & TEXT\\
   \hline
\end{longtable}
\end{filecontents*}
\LTXtable{\textwidth}{TAB\arabic{count}}
 


Ich kann mir nicht erklären wieso es vorher nicht geklappt hat.
Schade ist noch, dass mit der aktuellen Lösung zwar Zeilenumbrüche innerhalb einer Zelle gut gehen und Seitenumbrüche innerhalb der Tabelle,
Seitenumbrüche innerhalb einer Zelle aber leider nicht.
Bleibt wohl nur der mauelle Seitenumbruch. Oder hat noch wer eine bessere Idee??

Max Grabner
Gast

Beiträge: ---
Anmeldedatum: ---
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 08.05.2012, 15:57     Titel:
  Antworten mit Zitat      
Ja und natürlich

Code:

\usepackage{ltxtable,filecontents}
 


nicht zu vergessen

Neues Thema eröffnen Neue Antwort erstellen



Options and Permissions
Beiträge der letzten Zeit anzeigen:

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum nicht posten
Du kannst Dateien in diesem Forum herunterladen
.

goLaTeX ist ein Teil des goForen-Labels
goForen.de goMATLAB.de goLaTeX.de goPCB.de


  Impressum | Werbung/Mediadaten | FAQ | goLaTeX RSS Button RSS-Feed

Copyright © 2008 - 2013 goLaTeX.de
Partner: LabVIEWforum.de