Tabelle größer als sie sein sollte

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: Tabelle größer als sie sein sollte

von Johannes_B » Do 4. Jun 2015, 22:17

Ich kann nur davon abraten das so zu tun. Du hast den Abstand außer Acht gelassen, den LaTeX links und rechts jeder Tabellenzelle einfügt, tabcolsep. Im Beispiel habe ich diesen auf 0pt gesetzt. Auch den Absatzeinzug habe ich lokal entfernt, alle Spalten zentriert und die Schrift auf footnotesize gesetzt. Nett ist allerdings was ganz anderes.
% This is a simple template for a LaTeX document using the "article" class.
% See "book", "report", "letter" for other types of document.
% JB: Not simple, but very useless %<------------------------------------
\documentclass[11pt,ngerman]{article} 
\usepackage{babel}
\usepackage[utf8]{inputenc} 
\usepackage{geometry} 
\geometry{a4paper} 
\geometry{top=1.2cm, bottom=1.2cm, left=1.9cm, right=1.6cm} 
\geometry{landscape} 
\usepackage{array} 
\newcolumntype{C}{>{\centering\footnotesize\hbox{}}m}
\usepackage{showframe}
\begin{document}
\noindent\renewcommand{\tabcolsep}{0pt}\begin{tabular}{%
		|C{0.9cm} | C{4.9cm}| C{8.9cm}| C{1.1cm}| C{0.75cm}| C{0.75cm}| C{1.5cm}| C{1.8cm}| C{5.6cm}}
	Lfd. Nr & Name und Vorname & PLZ, Ort/Ortsteil, Straße, Hausnummer & Alter & \multicolumn{2}{c|}{\footnotesize Geschlecht} & Anwesen"-heits"-tage & erstattete Fahrtkosten & eigenhändige Unterschrift\\
\end{tabular}
\end{document}
 

Tabelle größer als sie sein sollte

von sonada » Do 4. Jun 2015, 21:42

Hallo,

Ich möchte eine Tabelle nachbauen. Ich habe also in der ausgedruckten Version nachgemessen wie groß das ganze sein soll.
Jetzt habe ich die Tabelle erstellt. Mit p{} habe ich die entsprechenden Spaltenbreiten angegeben. Aber die Tabelle passt nicht auf einer Seite.

Hier mal das Beispiel. Vielleicht habt ihr ja ne Idee.
Danke schonmal.
% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode

% This is a simple template for a LaTeX document using the "article" class.
% See "book", "report", "letter" for other types of document.

\documentclass[11pt]{article} % use larger type; default would be 10pt

\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)

%%% Examples of Article customizations
% These packages are optional, depending whether you want the features they provide.
% See the LaTeX Companion or other references for full information.

%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{a4paper} % or letterpaper (US) or a5paper or....
\geometry{top=1.2cm, bottom=1.2cm, left=1.9cm, right=1.6cm} % for example, change the margins to 2 inches all round
\geometry{landscape} % set up the page for landscape
%   read geometry.pdf for detailed page layout information

\usepackage{graphicx} % support the \includegraphics command and options

% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent

%%% PACKAGES
\usepackage{booktabs} % for much better looking tables
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
% These packages are all incorporated in the memoir class to one degree or another...

%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
\renewcommand{\headrulewidth}{0pt} % customise the layout...
\lhead{}\chead{}\rhead{}
\lfoot{}\cfoot{\thepage}\rfoot{}

%%% SECTION TITLE APPEARANCE
\usepackage{sectsty}
\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)

%%% ToC (table of contents) APPEARANCE
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!

%%% END Article customizations

%%% The "real" document content comes below...

\title{Brief Article}
\author{The Author}
%\date{} % Activate to display a given date or no date (if empty),
         % otherwise the current date is printed 

\begin{document}
\begin{tabular}{|p{0.9cm} | p{4.9cm}| p{8.9cm}| p{1.1cm}| p{0.75cm}| p{0.75cm}| p{1.5cm}| p{1.8cm}| p{5.6cm}}
Lfd. Nr & Name und Vorname & PLZ, Ort/Ortsteil, Straße, Hausnummer & Alter & \multicolumn{2}{c|}{Geschlecht} & Anwesenheitstage & erstattete Fahrtkosten & eigenhändige Unterschrift\\
\end{tabular}
\end{document}

Nach oben