This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
1
How to center a rotatebox table-cell?
Post Flair (click to view more posts with a particular flair)
Post Body
I have created a table, and I have fixed its width, but the problem is that when I rotate the text of the cell by using \rotatebox
, the text did not place in the center of the cell. who can I change its place ? My table:
\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{natbib} \usepackage{graphicx} \usepackage{amsmath} \begin{document} \begin{center} \begin{table*}[htp] %\scriptsize \centering %\begin{tabular}{|l|l|l|l|l|l|l|l|l|} \begin{tabular} {|p{0.04\textwidth}|p{0.04\textwidth}|p{0.12\textwidth}|p{0.12\textwidth}|p{0.12\textwidth}|p{0.12\textwidth}|p{0.12\textwidth}|p{0.12\textwidth}|p{0.02\textwidth}|} \hline Text text text text & Text text text text & Text text text text & Text text text text & Text text text text \\ \hline {\multirow [c]{2}{*}{\rotatebox{90}{ {Example 1} }}} & %[origin=c] {\multirow [c]{3}{*}{\rotatebox{90}{ Example 2 }}} & Text text text text & Text text text text & %\begin{tabular} {@{}l@{}} %\begin{tabular}[c]{@{}l@{}} Text text text text Text text text text %\end{tabular} & %\begin{tabular}{@{}l@{}} Text text text text Text text text text Text text text text %\end{tabular} & Text text text text Text text text text Text text text text Text text text text & Text text text text & r1 \\ \cline{3-9}& & Text text text text & Text text text text & %\begin{tabular}{@{}l@{}} Text text text text Text text text text %\end{tabular} & Text text text text & Text text text text& Text text text text & r2 \\ \cline{1-1} \cline{3-9} {\rotatebox[origin=c]{90}{ Feedback }} & & Text text text text & Text text text text & Text text text text & Text text text text & Text text text text & %\multicolumn{1}{c|}{ // %} & r3 \\ \hline {\rotatebox[origin=c]{90}{ Example 3 }} & {\rotatebox[origin=c]{90}{ Example 4 }} & Text text text text & Text text text text & %\begin{tabular} {@{}l@{}} Text text text text Cost. %\end{tabular} & Text text text text & Text text text text & Text text text text & r4 \\ \hline \end{tabular} \end{table*} \end{center} \end{document}
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/LaTeX/comme...