Tom:
Sorry I haven't responded to your earlier email today.
The first two questions are very related. In LateX what you are writing is a
plain ASCII text file with all your formatting codes. Then you need to
"typeset" or "process" your file. Then there should be produced a pdf
or
postscript (assuming no errors). So are you using some sort of interface to
type up your code (I use TexShop on my mac, kile on my CS linux machine,
there are many options)? If so there should be a way to perform that
operation easily.
For a general rundown of latex, I would look through
http://isites.harvard.edu/fs/docs/icb.topic507101.files/Latex/lshort.pdf (or
just google "lshort" which is a short introduction to LaTeX). It is very
useful for an introduction to key environments, and has a table of symbols,
I always forget for example how to do not equals.
To make a table it is actually more useful to use an environment called
tabular. So to make a very simple table you might want to do something like
\begin{tabular}{| l | c |} % this is declaring to begin a table, have a
line then a left justified column, another line, a center justified column,
and then another line
\hline % this is creating a horizontal line
$\beta s$ & values\\ % column values are separated by & signs, lines are
ended by two \s
\hline
$\hat{\beta}_0 $ & 0\\
$\hat{beta}_1 $ & 0\\
$\hat{\beta}_2 $ & 0\\
$\hat{beta}_3 $ & 0\\
$\hat{sigma}^2 $ & 0\\
\hline
\end{tabular}
Table itself is actually a floating body, for example I could put my above
tabular table into a table
\begin{table}[!h] % this is saying I want this table to be typeset here
(other options include b for bottom of the page or p for floating page and
I'm really sure I want it where I've said (!) and don't care if it looks
terrible.
\begin{tabular}{| l | c |}
\hline
$\beta s$ & values\\
\hline
$\hat{\beta}_0 $ & 0\\
$\hat{beta}_1 $ & 0\\
$\hat{\beta}_2 $ & 0\\
$\hat{beta}_3 $ & 0\\
$\hat{sigma}^2 $ & 0\\
\hline
\end{tabular}
\end{table}
Cheers,
Zac
On Thu, Feb 12, 2009 at 2:51 PM, Thomas Sander <tom_sander at harvard.edu>wrote:
It's a steep learning curve this week between R
and LaTeX . I successfully
downloaded LaTeX through the ProTexnic Center. And tried using it.
If people have used LaTeX before, is there an easy way to
1) preview what you are doing (without all the formating codes)
2) how to print from LaTeX into a PDF without all the formatting codes? I
think if I could figure out #1 I could figure out #2, but if I try to do a
PDF now it keeps all the formatting codes in.
3) create a table. When I do Insert - Table I get a lot of code like \begin
\table (etc.) but I don't see any choices other than 1 or 2 columns and
nothing that enables me to see the table as I'm creating it.
Any one out there an experienced LaTeX user?
Many thanks.
Best.
Tom
_______________________________________________
gov2001-l mailing list
gov2001-l at
lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l