following problem: im using longtable and want the caption to be align to the very left, not in the center. i read that the caption-package should do its job also in longtable, but it seems it doesnt work. in the preamble i added the option: justification=RaggedRight
here is my code:
Code: Select all
\documentclass[english,headsepline,headings=normal,bibliography=totocnumbered,version=first,a4paper,numbers=noendperiod]{scrreprt}
\renewcommand{\rmdefault}{phv}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\usepackage[tablewithin=none,figurewithin=none,justification=raggedright,singlelinecheck=false]{caption}
\usepackage[english]{babel}
\usepackage{color}
\usepackage{longtable}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{color}
\usepackage{longtable}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[automark]{scrpage2}
\usepackage{alltt}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{url}
\usepackage{booktabs,tocbasic,natbib}
\usepackage{multirow}
\usepackage{array}
\usepackage{units}
\usepackage{changepage}
\usepackage[colorlinks=true]{hyperref}
\begin{document}
\chapter{TEST}
\section{test page}
this is a test page for various things.
\begin{longtable}{lrlll}
\caption{bla bla bla.} \\
\toprule
Buffer & & Composition & & Comments \\ % \multicolumn{1}{l}{Buffer}
\midrule
\endhead
\textit{Media} \tabularnewline
\cline{1-1} \tabularnewline
2x YT & 31g & 2x yeast tryptone mix & & per liter \\
& \\
TYH -ADD REF. & 20g & tryptone & & per liter; pH 7,2 calibrated with KOH \\
& 10g & yeast extract & & \\
& 11g & HEPES & & \\
& 5g & NaCl & & \\
& 1g & MgSO$_{4}$ & & \\
&\\
2x YT-Agar & 15,5g & 2xYT & & per 500mL \\
& 1\% & glucose & & w/v \\
& 1.5\% & agar & & w/v \\
&\\
\textit{SDS-PAGE \& Western Blot} \\
\cline{1-1} \\
SDS electrophoresis buffer & 25mM & TRIS & & \\
& 192mM & glycine & \\
& 0,1\% & sodium dodecyl sulfate & & w/v \\
&\\
Upper TRIS & 125mM & TRIS & & pH 6.8 \\
& 0.4\% & sodium dodecyl sulfate & & w/v \\
&\\
Lower TRIS & 375mM & TRIS & & pH 8.8 \\
& 0.4\% & sodium dodecyl sulfate & & w/v \\
&\\
5x SDS Sample Buffer & 175mM & TRIS & & pH 6.8 \\
- reducing - & 50\% & glycerol & & v/v \\
& 10\% & sodium dodecyl sulfate & & w/v \\
& 5\% & $\beta$$-$ mercaptoethanol & & v/v \\
& 0.15\% & bromphenol blue & & w/v \\
&\\
5x SDS Sample Buffer & 175mM & TRIS & & pH 6.8 \\
- non-reducing - & 50\% & glycerol & & v/v \\
& 10\% & sodium dodecyl sulfate & & w/v \\
& 10mM & iodacetamid & & v/v \\
& 0.15\% & bromphenol blue & & w/v \\
&\\
Wet Western Blot Buffer & 48mM & TRIS & & pH 9.2 \\
& 39mM & glycine & & \\
& 20\% & methanol & & v/v \\
&\\
\textit{Agarose Gels} \\
\cline{1-1} \\
TAE Buffer & 40mM & TRIS & & \\
& 5mM & sodium acetate & & \\
& 5mM & acetic acid & & w/v \\
& 1mM & Na${_2}$*EDTA*2H${_2}$O & & \\
&\\
6x DNA Loading Buffer & 0,25\% & bromphenol blue & & w/v \\
& 0,25\% & xylene cyanole & & w/v \\
& 40\% & sucrose & & w/v \\
&\\
10x Orange G DNA Buffer & 4,42mM & Orange G & & w/v \\
& 30\% & glycerol & & w/v \\
&\\
\textit{IMAC Purification} \\
\cline{1-1} \\
TBS 400 & 100mM & TRIS & & pH 8 \\
& 400mM & sodium chloride & & \\
&\\
TBS-W & 100mM & TRIS & & pH 8 \\
& 400mM & sodium chloride & & \\
& 20mM & imidazole & & \\
&\\
TBS-W & 100mM & TRIS & & pH 8 \\
& 400mM & sodium chloride & & \\
& 250mM & imidazole & & \\
& 10\% & glycerole & & \\
&\\
\label{tab:test}
\end{longtable}
\end{document}
thanks a lot in advance!
cheers yaakov