New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Left aligned text in cells overflows to the next cell #3
Comments
Thanks for the report! I think the issue can not be easily solved.
I'm a bit surprised about non-centering. I expect that it should happen even in case of overflow. I'll look at it. In any case, I consider that special cases should be handled manually. I think if you put Also, I think it is possible to define |
Thank you for the feed back. You will see that the text in an Interesting, If |
Dear @olpa , Thank you for providing About your comment that
I understand that your point is that a parbox takes its second argument as a macro argument, and as such content such as My point is rather the following one: I haven't looked as the implementation, but if you are using |
It was an oversight from my side. In my production code on top of cals, I use something like
It helps. I've just noticed in the definition of
The
The What is important: the argument of |
Do you mean that the github repo is more up-to-date than the CTAN? I was using the CTAN code… |
No, sorry for confusion. I use the line with |
In left aligned cells (
\alignL
) with several lines of text, the text overflows to the next (right) cell. cals also always set left aligned cells justified and do not respect for example a\raggedright
-command, whether or not this command is given outside the tabular or inside the cell.You can avoid the bug by enclose the cell content in a
\parbox
with the width of the column less the left and right padding. Suchparbox
will also respect araggedright
-command.Here is some code that demonstrate the problem:
`\documentclass[a4paper, norsk , 11pt]{article}
\usepackage{cals, babel, mathpazo}
\begin{document}
\begin{calstable}
\colwidths{{\dimexpr(\columnwidth)/185\relax}
{\dimexpr(\columnwidth)/185\relax}
{\dimexpr(\columnwidth)/18*5\relax}
}
\makeatletter
% R1
\thead{\bfseries
\brow
\alignL\cell{Test av lange tekster i venstrestilte celler i en cals-tabell. Vi må se hvordan det går med ulike alternativer. Dette er egentlig en tullesetning.}
\alignC\cell{Test av lange tekster i venstrestilte celler i en cals-tabell. Vi må se hvordan det går med ulike alternativer. Dette er egentlig en tullesetning.}
\alignR\cell{Test av lange tekster i venstrestilte celler i en cals-tabell. Vi må se hvordan det går med ulike alternativer. Dette er egentlig en tullesetning.}
\erow
\mdseries
}
% R2 Body
\brow
\alignL\cell{Test av lange tekster i venstrestilte celler i en cals-tabell. Vi må se hvordan det går med ulike alternativer. Dette er egentlig en tullesetning.}
\alignC\cell{Test av lange tekster i venstrestilte celler i en cals-tabell. Vi må se hvordan det går med ulike alternativer. Dette er egentlig en tullesetning.}
\alignR\cell{Test av lange tekster i venstrestilte celler i en cals-tabell. Vi må se hvordan det går med ulike alternativer. Dette er egentlig en tullesetning.}
\erow
% R3 Body
\brow
\alignL\cell{\parbox{\dimexpr(\columnwidth)/18*5-(2\cals@paddingR)\relax}{Test av lange tekster i venstrestilte celler i en cals-tabell. Vi må se hvordan det går med ulike alternativer. Dette er egentlig en tullesetning.}}
\alignC\cell{Test av lange tekster i venstrestilte celler i en cals-tabell. Vi må se hvordan det går med ulike alternativer. Dette er egentlig en tullesetning.}
\alignR\cell{Test av lange tekster i venstrestilte celler i en cals-tabell. Vi må se hvordan det går med ulike alternativer. Dette er egentlig en tullesetning.}
\erow
\makeatletter
\end{calstable}
\end{document}`
The text was updated successfully, but these errors were encountered: