tabularx macht nur manche tabellen auf textbreite...
Verfasst: Di 15. Dez 2015, 01:26
Hallo Freunde, ich werde sicherlich gleich wieder gebasht,dass ich das Forum nicht durchsucht habe, aber da habe ich bisher auf Anhieb nichts gefunden... Mein Problem ist, dass ich tabularx umgebung für ein paar tabellen nutzen möchte. So weit so gut. Nun funktioniert es bei manchen tabellen, aber bei einer nicht und ich habe keine Ahnung woran es liegt. Ich hoffe mein minimalbeispiel ist so annehmbar
Die erste Tabelle passt latex nicht die spaltenbreite der textbreite an, bei der letzten wohl. Woran liegts ? [/code]
\documentclass[paper=a4]{scrartcl} \setkomafont{titlehead}\huge \usepackage[ngerman, english]{babel} \usepackage{graphicx} \usepackage{tabularx} \usepackage{epstopdf} \usepackage{subfigure} \usepackage[utf8]{inputenc} \addtokomafont{titlehead}\center \usepackage{prettyref} \usepackage{natbib} \usepackage{amssymb} \usepackage{subfiles} \usepackage{natbib} \usepackage{here} \begin{document} \blindtext \begin{table} \caption{blablup} \begin{tabularx}{\textwidth}{X|XXll} Probe/Gene name + size & FW Primer & RV Primer & expected product length & various \\ \hline Meox1 Full length (FL) & CTCTCCTGTCGAGGAACCC & CACCCTCTCCAAGCATCTCTTT & 793 bp & \\ Meox1 short length(sh) & CAAGGCGGATTTTGCTGCTT & ACTTTGACCTGTCTCTCGGTG & 474 bp & \\ Meox2 Full length (FL) & TGCCATGGATCACACACTCT & CGATGCCTGTAGTAAGGCTTG & 981 bp & \\ Meox2 short length (sh) & TGCATGGAAGATCCGACCAC & TTGGGAATCTGAACTGTCGC & 434 bp & \end{tabularx} \end{table} \blindtext \begin{table} \begin{tabularx}{\textwidth}{l|XXXX} Probe & Promotor & Restriction enzyme and Polymerase & insert sequence position \& length & Mutations \\ \hline Meox1 FL & rv & XbaI \& T3 & 676 - 1462 (787) & Gap (681) \& Nucleotide Swap A $\rightarrow$ G \\ Meox1 sh & Fw & XbaI \& T3 & 676 - 1171 (496) & Nucleotide Swap A $\rightarrow $ G(775), A $\rightarrow$ G(920), T $\rightarrow $C (1087) \\ Meox2 FL & Fw & XhoI \& T7 & 676 - 1685 (1010) & Gaps: Nucleotide Swap: Insertion: \\ Meox2 sh & Fw & XhoI \& T7 & 676 - 1133 (457) & none \\ \end{tabularx} \end{table} \end{document}