[texhax] Tabbing problem

Juan Mari Alberdi wapalgaj at sq.ehu.es
Wed Jun 30 17:28:02 CEST 2004


This one works with me (I've chanched a couple of  typing errors?), but 
perhaps you meant something a little different.

\documentclass{article}
\begin{document}


\begin{tabbing}
    model1\=\hspace{3in}\=\kill
    model1\= $\leftarrow$ lm(weight$\sim$height)\\
                                \>\# Linear model to be used later\\
    plot(weight$\sim$height)\\    \>\# Basic scatterplot\\
    abline(h=mean(weight))\\
                       \>\>\# Horizontal line at mean of weight\\
    abline(v=mean(height))\\
                        \>\>\# Vertical line at mean of height\\
\end{tabbing}


\end{document}

Juan Alberdi




Peter Flom wrote:

>Hello again
>
>Using TeXlive and Winedt on a Windows machine....
>
>When I try to typeset
>
>PREAMBLE OMITTED
>
>\begin{tabbing}
>    model1\=\hspace{3in}\=\kill
>    model1\= $\leftarrow$ lm(weight$\sim$height)\\
>                                \>\# Linear model to be used later\\
>    plot(weight$\sim$height)    \>\# Basic scatterplot\\
>    abline{h=mean(weight))\\
>                       \>\>\# Horizontal line at mean of weight\\
>    abline(v=mean(height))\\
>                        \>\>\# Vertical line at mean of height\\
>\end{tabbing}
>
>using the pdflatex button, I get an error that 'something is missing,
>perhaps a missing \item'
>
>When I try to typeset just this bit with 'compile selected block', 
>everything after the second line is overprinted onto the same line.
>
>
>
>I have a feeling I'm missing something simple, but I've been looking at
>this for 30 minutes, and trying to find help in several books, to no
>avail....
>
>Any help is, as always, appreciated
>
>Peter
>
>Peter L. Flom, PhD
>Assistant Director, Statistics and Data Analysis Core
>Center for Drug Use and HIV Research
>National Development and Research Institutes
>71 W. 23rd St
>www.peterflom.com
>New York, NY 10010
>(212) 845-4485 (voice)
>(917) 438-0894 (fax)
>
>
>_______________________________________________
>TeX FAQ: http://www.tex.ac.uk/faq
>TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
>Mailing list archives: http://tug.org/pipermail/texhax/
>More links: http://tug.org/begin.html
>
>Automated subscription management: http://tug.org/mailman/listinfo/texhax
>Human mailing list managers: postmaster at tug.org
>
>
>  
>



More information about the texhax mailing list