Anzeige:
Ergebnis 1 bis 3 von 3

Thema: Mal wieder der Neuling: Eine Formel in einer Tabelle

  1. #1
    Registrierter Benutzer
    Registriert seit
    21.01.2007
    Beiträge
    32

    Mal wieder der Neuling: Eine Formel in einer Tabelle

    Hallo,

    ich habe bei einer Tabelle ein Problem mit einer mathematischen Formel.
    Die Tabelle soll so aussehen:

    Code:
    \begin{table}[htbp]
    		\caption[]{blbabalbalb}
    			\begin{tabularx}{\textwidth}{XXXXXX}
    				\cline{1-6}	
    				\textbf{cDNA-Probe} & \textbf{CP-Werte \emph{abc1}} & \textbf{CP-Werte \emph{abc4}} & \textbf{\boldmath$AE^{CP}$\unboldmath\ \emph{abc1}} & \textbf{\boldmath$AE^{CP}$\unboldmath \ \emph{abc4}} & \vspace{0.1pt} \textbf{\boldmath$\frac{AE^{CP} \emph{abc1}} {AE^{CP} \emph{abc4}}$\unboldmath} \\
    				B5 5.1 &	22,60 & 24,18 & \num{2245712} & \num{63610} & 35,3 \\
    				B5 5.2 &	21,86 & 23.26 & \num{1391199} & \num{41760} & 33,3 \\
    				B5 6.1 &	21,94 & 23,77 & \num{1465116} & \num{52733} & 27,8 \\
    				B5 6.2 & 22,21 & 24,2 & \num{1744822} & \num{64195} & 27,2 \\
    				B6 5.2 &	22,17 & 23,52 & \num{1700238} & \num{47034} & 36,1 \\
    				B6 6.1 &	22,89 & 24,81 & \num{2709279} & \num{84856} & 31,9 \\
    				B6 6.2 &	22,75 & 24,76 & \num{2474623} & \num{82937} & 29,8 \\
    				\cline{1-6}									                                                             
    			\end{tabularx}
    \label{tab:ergenisseqrtpcr}
    \end{table}
    Allerdings kommt die Formel in der Kopfzeile nur sehr schlecht rüber.
    Schön wäre es wenn ich gleichzeitig hoch und tiefstellen könnte. Also AE hoch CP und tief mit abc1.
    Dazu kommt dass die Formel zentriert wird und sich kaum von der hline absetzt.
    Kann mir da einer einen Rat geben?
    Ich habe auch schon im Forum gesucht und bin auf die align-Umgebung gestoßen. Leider konnte die mir nicht bei meinem Problem weiterhelfen.

    Danke für eure Hilfe

  2. #2
    Registrierter Benutzer Avatar von bobmalaria
    Registriert seit
    28.11.2006
    Ort
    Düsseldorf
    Beiträge
    4.174
    hi,

    mach doch das naechste mal ein minimalbeispiel, sodass man sich nicht erst den restlichen code aussen herum bauen muss.
    ich weiss nicht so ganz genau was du meinst mit deinen erklaerungen, hier ein versuch

    Code:
    \documentclass{article}
    \usepackage{tabularx,booktabs}
    
    \begin{document}
    
    \begin{table}[htbp]
    		\caption[]{blbabalbalb}
    \renewcommand{\arraystretch}{1.2}
    			\begin{tabularx}{\textwidth}{XXXXXX}
    				\toprule
    				\textbf{cDNA-Probe} & \textbf{CP-Werte \emph{abc1}} & \textbf{CP-Werte \emph{abc4}} & \textbf{\boldmath$\displaystyle AE^{CP}_{\emph{abc1}}$\unboldmath\ } & \textbf{\boldmath$\displaystyle AE^{CP}_{\emph{abc4}}$\unboldmath \ } & \textbf{\boldmath$ \displaystyle\frac{AE^{CP} \emph{abc1}} {AE^{CP} \emph{abc4}}$\unboldmath} \\
    \midrule
    				B5 5.1 &	22,60 & 24,18 & \num{2245712} & \num{63610} & 35,3 \\
    				B5 5.2 &	21,86 & 23.26 & \num{1391199} & \num{41760} & 33,3 \\
    				B5 6.1 &	21,94 & 23,77 & \num{1465116} & \num{52733} & 27,8 \\
    				B5 6.2 & 22,21 & 24,2 & \num{1744822} & \num{64195} & 27,2 \\
    				B6 5.2 &	22,17 & 23,52 & \num{1700238} & \num{47034} & 36,1 \\
    				B6 6.1 &	22,89 & 24,81 & \num{2709279} & \num{84856} & 31,9 \\
    				B6 6.2 &	22,75 & 24,76 & \num{2474623} & \num{82937} & 29,8 \\
    				\bottomrule								                                                             
    			\end{tabularx}
    \label{tab:ergenisseqrtpcr}
    \end{table}
    
    \end{document}
    gruss
    Mein Ball ist umgefallen

  3. #3
    Registrierter Benutzer Avatar von mechanicus
    Registriert seit
    10.07.2008
    Ort
    Hamburg
    Beiträge
    3.944
    Hallo,

    hier ein anderer Versuch.

    Code:
    \documentclass[11pt,ngerman,a4paper]{scrreprt}
    \usepackage{babel}
    \usepackage{amsmath,amsfonts}
    \usepackage{tabularx,booktabs,ragged2e}
    \usepackage{siunitx}
    \DeclareMathOperator{\AEA}{AE}
    \newcommand{\AEO}[2]{\AEA\limits_{#1}^{#2}}
    \begin{document}
    \begin{table}[htbp]
      \caption[]{blbabalbalb}
     \renewcommand{\tabularxcolumn}[1]{m{#1}}
     \newcolumntype{Y}{>{\Centering}X}
     	\begin{tabularx}{\textwidth}{*6{Y}}
    	\toprule
    	 \textbf{cDNA-Probe} & \textbf{CP-Werte \emph{abc1}} & \textbf{CP-Werte \emph{abc4}} & $\boldsymbol{\AEO{abc1}{CP}}$ & $\boldsymbol{\AEO{abc4}{CP}}$ &\boldmath$\dfrac{\AEO{abc1}{CP}}{\AEO{abc4}{CP}}$\unboldmath \\
    	\midrule
    	 B5 5.1 &	22,60 & 24,18 & \num{2245712} & \num{63610} & 35,3 \\
    	 B5 5.2 &	21,86 & 23.26 & \num{1391199} & \num{41760} & 33,3 \\
    	 B5 6.1 &	21,94 & 23,77 & \num{1465116} & \num{52733} & 27,8 \\
    	 B5 6.2 & 22,21 & 24,2\phantom{0} & \num{1744822} & \num{64195} & 27,2 \\
    	 B6 5.2 &	22,17 & 23,52 & \num{1700238} & \num{47034} & 36,1 \\
    	 B6 6.1 &	22,89 & 24,81 & \num{2709279} & \num{84856} & 31,9 \\
    	 B6 6.2 &	22,75 & 24,76 & \num{2474623} & \num{82937} & 29,8 \\
    	\bottomrule			                                                             
    	\end{tabularx}
    \label{tab:ergenisseqrtpcr}
    \end{table}
    
    \end{document}
    Aber bzgl Minimalbeispiel stimme ich bobmalaria zu.

    Gruß
    Marco

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •