Suche Hilfe zur Formatierung von Tabelle

Antwort erstellen


Diese Frage dient dazu, das automatisierte Versenden von Formularen durch Spam-Bots zu verhindern.
Smilies
:D :) :( :o :shock: :? 8) :lol: :-x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

BBCode ist eingeschaltet
[img] ist eingeschaltet
[flash] ist ausgeschaltet
[url] ist eingeschaltet
Smilies sind eingeschaltet

Die letzten Beiträge des Themas

Ich habe die Datenschutzerklärung gelesen und bin damit einverstanden.

   

Wenn du eine Datei oder mehrere Dateien anhängen möchtest, gib die Details unten ein.

Ansicht erweitern Die letzten Beiträge des Themas: Suche Hilfe zur Formatierung von Tabelle

von BlackDevil » Fr 11. Apr 2014, 18:59

Danke. Ich bin jetzt dazu übergegangen den Kopf komplett weg zu lassen. Die notwendige Erklärung steht in einem Satz vor der Tabelle. Ich denke das geht so :)

von esdd » Fr 11. Apr 2014, 00:13

Noch eine Alternative:
\documentclass{scrbook} 
\usepackage{booktabs} 
\usepackage{array} 
\usepackage{siunitx} 

\begin{document} 
\begin{table} 
\centering
\begin{tabular}{p{0.2cm}p{5cm}S} 
     \toprule 
     &Process &{Global Production in \si{\newton\meter\cubed\per a}} \\ 
     \midrule 
     \multicolumn{2}{l}{\textbf{Direct Production}} &\\ 
     & Steam reformation of natural\newline gas or Naphta & 190 \\ \addlinespace 
     & Partial oxidation of heavy oil & 120\\\addlinespace 
     \multicolumn{2}{l}{\textbf{Production as byproduct}} & \\ 
     & Petrochemical industry & 123 \\ \addlinespace 
     & Gasification of coal & 50\\ \addlinespace 
     & Chlorine-Alkali-Electrolysis & 10\\ \addlinespace 
     & Other chemical industries & 7\\ \addlinespace     
     \bottomrule 
\end{tabular} 
\caption{Processes and global production volume of hydrogen} 
\end{table} 

\end{document}
Gruß
Elke

von BlackDevil » Do 10. Apr 2014, 20:26

Vielen Dank :) Ich gebe zu, bezüglich des Einzugs hab ich an eine kompliziertere Lösung gedacht - irgendein mir unbekannter Befehl. Schließlich ist es LaTex :D Der Befehl \addlinesep und die S Spalte sind eine sehr gute Idee.

Ich habe die Tabelle noch etwas weiter Modifiziert und habe nun zwei Lösungen, weiß nur nicht welche ich besser finde. Ich mag den Tabellenkopf bloß nicht - nur ohne fehlt irgendwie was ...

Ich kann mich nicht so recht entscheiden :D
\documentclass{scrbook}

\usepackage{tabu}
\usepackage{booktabs}
\usepackage{array}
\usepackage{siunitx} 
\usepackage{threeparttable}

\begin{document}
\begin{table}
\begin{tabular}{p{0.2cm}p{5cm}S} 
    \toprule 
    \multicolumn{2}{c}{Process} &\multicolumn{1}{m{4cm}}{Global Production\newline in \si{\newton\meter\cubed\per a}} \\ 
    \midrule 
    \multicolumn{2}{l}{\textbf{Direct Production}} &\\ 
    & Steam reformation of natural\newline gas or Naphta & 190 \\ \addlinespace 
    & Partial oxidation of heavy oil & 120\\\addlinespace 
    \multicolumn{2}{l}{\textbf{Production as byproduct}} & \\
    & Petrochemical industry & 123 \\ \addlinespace 
    & Gasification of coal & 50\\ \addlinespace
    & Chlorine-Alkali-Electrolysis & 10\\ \addlinespace
    & Other chemical industries & 7\\ \addlinespace    
    \bottomrule
\end{tabular}
\caption{Processes and global production volume of hydrogen}
\end{table}

\begin{table}
\begin{threeparttable}
\begin{tabular}{p{0.2cm}p{5cm}S} 
    \toprule 
    \multicolumn{2}{c}{Process} &\multicolumn{1}{m{4cm}}{Global Production\tnote{1}} \\ 
    \midrule 
    \multicolumn{2}{l}{\textbf{Direct Production}} &\\ 
    & Steam reformation of natural\newline gas or Naphta & 190 \\ \addlinespace 
    & Partial oxidation of heavy oil & 120\\\addlinespace 
    \multicolumn{2}{l}{\textbf{Production as byproduct}} & \\
    & Petrochemical industry & 123 \\ \addlinespace 
    & Gasification of coal & 50\\ \addlinespace
    & Chlorine-Alkali-Electrolysis & 10\\ \addlinespace
    & Other chemical industries & 7\\ \addlinespace    
    \bottomrule
\end{tabular}
\medskip 
      %\footnotesize\textbf{Unit;}\smallskip 
      \begin{tablenotes}\footnotesize 
      \item[1] [\si{\newton\meter\cubed\per a}]
      \end{tablenotes} 
\end{threeparttable}
\caption{Processes and global production volume of hydrogen}
\end{table}

\begin{table}
\begin{threeparttable}
\begin{tabular}{p{0.2cm}p{5cm}S} 
    \toprule
    \multicolumn{2}{l}{\textbf{Direct Production}} &\\ 
    & Steam reformation of natural\newline gas or Naphta & 190 \\ \addlinespace 
    & Partial oxidation of heavy oil & 120\\\addlinespace 
    \multicolumn{2}{l}{\textbf{Production as byproduct}} & \\
    & Petrochemical industry & 123 \\ \addlinespace 
    & Gasification of coal & 50\\ \addlinespace
    & Chlorine-Alkali-Electrolysis & 10\\ \addlinespace
    & Other chemical industries & 7\\ \addlinespace    
    \bottomrule
\end{tabular}
\medskip  
	All numbers in [\si{\newton\meter\cubed\per a}] 
\end{threeparttable}
\caption{Processes and global production volume of hydrogen}
\end{table}

\end{document}

von esdd » Do 10. Apr 2014, 12:31

Hier ist mal ein Vorschlag:
\documentclass{book} 
\usepackage{amsmath}
\usepackage{booktabs} 
\usepackage{array} 
\usepackage{siunitx}

%\setlength\defaultaddspace{.25em}% Wert für \addlinespace ändern, Standard ist 0.5em

\begin{document} 
\begin{tabular}{p{0.2cm}p{5cm}S} 
    \toprule
    \multicolumn{2}{l}{Verfahren} &\multicolumn{1}{m{3cm}}{ Production Volume\newline Worldwide \si{\newton\meter\cubed\per a}} \\
    \midrule 
    \multicolumn{2}{l}{\textbf{Direct Production}} & $\Sigma$\ 310\\ 
    & Steam reformation of\newline natural gas or Naphta & 190 \\ \addlinespace
    & Partial oxidation of heavy oil & 120\\ \addlinespace
    \multicolumn{2}{l}{\textbf{Production as byproduct}} & $\Sigma$\ 190\\ 
    & Petrochemical industry\newline (reformation of benzine, ehtylene production etc.) & 123 \\ \addlinespace
    & Other chemical industries & 7\\ \addlinespace
    & Chlorine-Alkali-Electrolysis & 10\\ \addlinespace
    & Gasification of coal & 50\\\cmidrule{3-3} 
    & Total production: & 500\\
    \bottomrule 
\end{tabular} 
\end{document}
Gruß
Elke

Suche Hilfe zur Formatierung von Tabelle

von BlackDevil » Mi 9. Apr 2014, 22:30

Ahoi zusammen,

nach längerer Abstinenz auch mal wieder was von mir. Im Augenblick klemmt es bei mir bei einer relativ simplen Tabelle... Ich versuche mein vorhaben mal so zu beschreiben:
Verfahren                        | Worldwide production volume [Nm³/a]
----------------------------------------------------------------------------
Direct Production                |
    Steam reformation of
    natural gas or naphta

    Partial oxidation of
    heavy oil
---------------------------
Production as byproduct
    Petrochemistry (ethylene
    production, reformation of
    benzine etc.)

    Other chemical industries

    Chlorine-Alkali-Electrolysis

    Coal gasification
Ich habe die Linie zwischen den zwei hälften sowie die Linie die die beiden Gruppen trennt bewusst nur angeschnitten und die zweite Spalte bewusst leer gelassen. Die Linie, die die beiden Gruppen trennt, kann man theoretisch auch weg lassen. Die beiden Titel sollen zentriert sein.

Worum es mir geht ist der Abstand zwischen zwei Einträgen (Steam reformation und Partial oxidation zB) sowie das Einrücken der Einträge.

Eventuell kann mir da ja jemand weiter helfen ... und nein, die obige Tabelle muss niemand abmalen, es kann ein Dummy sein.

Mein Versuch:
\documentclass{scrbook}

\usepackage{tabu}

\begin{document}
\begin{tabular}{p{1cm}c|c}
	\multicolumn{2}{c}{Verfahren} & Production Volume Worldwide Nm3/a \\
	\multicolumn{2}{c}{Direkte Productionsverfahren} & Test \\
	& Dampfreformierung von\linebreak Erdgas oder Naphta & 190 \\
\end{tabular}
\end{document}
Das sieht aber alles andere als so aus wie ich das möchte ...

Für sachdienliche Hinweise bin ich dankbar :)


Edit:
Okay ich habe inzwischen einen Grundrahmen gebastelt. Aber so richtig sieht das noch nach nix aus. Die Zeilenabstände zwischen den Einträgen sind zu groß, genauso der Abstand zur Toprule. Die Zahlen gefallen mir auch noch nicht so richtig.

Vielleicht hat jemand eine Idee :)
\documentclass{scrbook}

\usepackage{tabu}
\usepackage{booktabs}
\usepackage{array}

\begin{document}
\begin{tabular}{p{0.2cm}p{5cm}>{\centering\arraybackslash}p{4cm}}
	\multicolumn{2}{c}{Verfahren} & Production Volume\newline Worldwide Nm3/a \\\midrule
	\multicolumn{2}{c}{\textbf{Direct Production}} & $\Sigma 310$ \\
	& Steam reformation of\newline natural gas or Naphta & 190 \\
	& & \\
	& Partial oxidation of heavy oil & 120\\
	& & \\
	\multicolumn{2}{c}{\textbf{Production as byproduct}} & $\Sigma 190$\\
	& Petrochemical industry\newline (reformation of benzine, ehtylene production etc.) & 123 \\
	& & \\
	& Other chemical industries & 7\\
	& & \\
	& Chlorine-Alkali-Electrolysis & 10\\
	& & \\
	& Gasification of coal & 50\\\cmidrule{3-3}
	& Total production: & 500\\\bottomrule
\end{tabular}
\end{document}

Nach oben