I'm having trouble getting the text alignment in the first column of my longtable right.
The problem is, that after a linebreak (automatic) the text is indented. More like reverse indented, since it is aligned more to the left than the first line. I want to avoid that, but can't find a solution that works. I have tried redefining via \newcolumntype and some other stuff for the last three hours and am now officially giving up :D I hope somebody can help.
This is my MWE, where the odd alignment occurs right in the first row:
\documentclass[11pt,a4paper,twoside]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{ragged2e,array,longtable}
\begin{document}
\begin{longtable}{|@{}p{0.35\textwidth}|p{0.15\textwidth}|p{0.5\textwidth}|}
\firsthline
\rule[-1ex]{0pt}{2.5ex} \textbf{Software} & \textbf{Version} &
\textbf{Copyright} \\\hline
\hline
\rule[-1ex]{0pt}{2.5ex} Bio-Formats Package for ImageJ & 5.0.4 & The Open
Microscopy Environment \\
\hline
\rule[-1ex]{0pt}{2.5ex} GraphPad Prism 6 & 6.00 & GraphPad Software Inc., La
Jolla, CA, USA \\
\hline
\rule[-1ex]{0pt}{2.5ex} Heidelberg Eye Explorer & 1.9.13.0 & Heidelberg
Engineering GmbH, Heidelberg, Germany \\
\hline
\rule[-1ex]{0pt}{2.5ex} ImageJ & 1.45s & Wayne Rasband, NIH, Bethesda, MD,
USA \\
\hline
\rule[-1ex]{0pt}{2.5ex} Matlab & R2016a & The MathWorks Inc., Natick, MA,
USA \\
\hline
\rule[-1ex]{0pt}{2.5ex} MC\_Rack & 4.5.9 & Multi Channel Systems MCS GmbH,
Reutlingen, Germany \\
\hline
\rule[-1ex]{0pt}{2.5ex} MC\_DataTool & 2.6.15 & Multi Channel Systems MCS
GmbH, Reutlingen, Germany \\
\hline
\rule[-1ex]{0pt}{2.5ex} Mendeley Desktop & 1.16.1 & Mendeley Desktop Ltd. \\
\hline
\rule[-1ex]{0pt}{2.5ex} NeuroExplorer & 4.125 & Nex Technologies, Madison,
AL, USA \\
\hline
\rule[-1ex]{0pt}{2.5ex} Offline Sorter & 3.3.2 & Plexon Inc., Dallas, TX,
USA \\
\hline
\rule[-1ex]{0pt}{2.5ex} RC\_menu & V6.11.0.20 & Roland Consult Stasche \&
Finger GmbH, Brandenburg a.d. Havel, Germany \\
\hline
\rule[-1ex]{0pt}{2.5ex} SAS statistical analysis software & 9.4 TS Level 1M3
& SAS Institute Inc., Cary, NC, USA \\
\hline
\rule[-1ex]{0pt}{2.5ex} Texmaker & 4.2 & Pascal Brachet \\
\lasthline \\
\caption[Software]{}
\label{tab:Software}
\end{longtable}
\end{document}
Thanks so much!
Mina
\rule[-1ex]{0pt}{2.5ex}
commands, what are they good for?\rule[-1ex]{0pt}{2.5ex}
serve as strut by which is added some vertical space. if you remove space between them and following text, the indentation for one space will disappear. however, instead this rules you can use more elegant solutions, for example gaped cells from the packagemakecell
.