-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Table headers top aligned instead of bottom aligned #7347
Comments
Is there way a way to get bottom alignment without using minipages? |
I think it might work to enclose the contents of each heading cell in a Question: is bottom alignment or center (vertical) alignment better? The latter is default for HTML headers. |
For me, \begin{longtable}[]{@{}
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.20}}
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.15}}
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.15}}
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.50}}@{}}
\caption{A test table \label{tbl:tab1}}\tabularnewline
\toprule
\vbox{\textsc{Auspicious Statue/deities}} & \vbox{\textsc{Moved from}} & \vbox{\textsc{Moved
to/resides in}} & \vbox{\textsc{Sources/remarks}} \\
\midrule
\endfirsthead
\toprule
\vbox{\textsc{Auspicious Statue/deities}} & \vbox{\textsc{Moved from}} & \vbox{\textsc{Moved
to/resides in}} & \vbox{\textsc{Sources/remarks}} \\
\midrule
\endhead
\end{longtable} What issues did you notice? Similarly, I actually think bottom alignment is nice, but I see that some people prefer vertical centering. My idea was mainly to restore the previous behaviour. |
|
Oh, yes, I see. Unfortunately, I couldn’t find an easier non-minipage solution. (Some seem to use a fake one-cell Are there major problems with |
I don't think there's a big problem using minipage. |
The change in #6883 leads to nicer output, but it has a side-effect that might be undesired (or at least unexpected for users): Previously, the minipage for table header cells would use a bottom vertical alignment
[b]
(while using top vertical alignment[t]
for regular cells):The new output no longer produces minipages in most cases. However, this changes the alignment of table header cells from bottom to top.
In my personal opinion, the previous behaviour leads to nicer output. But more importantly, the change alters the output in an unexpected way.
From what I understood, pandoc still uses minipages where necessary. Would it be possible to output minipages also for table headers and restore the previous behaviour of bottom alignment?
The text was updated successfully, but these errors were encountered: