General ⇒ right-justify in table
right-justify in table
thanks in advance.
- Attachments
-
- sam.tex
- (3.96 KiB) Downloaded 328 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
right-justify in table
you could insert \raggedleft, for example:
Code: Select all
\begin{supertabular}{|m{0.8587598in}|m{4.35876in}|>{\raggedleft}
m{0.8587598in}|>{\raggedleft\arraybackslash}m{0.9316599in}|}
Re: right-justify in table
Another question. what is the meaning of the ">" in front of the {ragedgleft group?
regards,
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
right-justify in table
It inserts the command inside the following braces directly before the entry of the column. You can use it for formatting the entries. For instance if you write >{$}c<{$} instead of c for a tabular environment you will get a column in math mode. It is described by the array package documentation if you want to read further.bill wrote:what is the meaning of the ">" in front of the {ragedgleft group?
Stefan
Re: right-justify in table
regards,
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
right-justify in table
have a look at the colortbl package, by using that package you can color cells or rows/ columns. I am not sure if its working together with supertabular, but you could try it.
Stefan
Re: right-justify in table
Tank you.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: right-justify in table

There's a lot of packages for many purposes, using them as ready-made solutions usually saves time and gives good results.
Stefan