two latex tips

1. how to use symbol (~) in latex?  simple, just use \textasciitilde.  Somebody use $\sim$, that’s not correct. if you  copy it in Acrobat Reader and paste it out, you will find that’s another char.

2. how to use right-alignment and top-alignment in a tabular. Here is how: http://texblog.wordpress.com/2008/05/07/fwd-equal-cell-width-right-and-centre-aligned-content/
to summarize, define:\newcolumntype{x}[1]{>{\raggedleft\hspace{0pt}}p{#1}}  and use it in tabular \begin{tabular}{|l|x{4.5cm}|x{4.5cm}|}. but you cannot use \\ to end lines. Instead, use \tabularnewline.

Related Post

No comments yet. Be the first.