I am pasting some lines that are working using WinEdt. Unfortunately,
I cannot center the second section. It currently has
\section{SECOND SECTION}
If I replace this with
\begin{center}
\section{SECOND SECTION}
\end{center}
as I do with the other two sections, this gives me the following error:
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.39 \end{center}
?
Thanks,
Juliet
% Here is my document
\documentclass[fleqn,12pt]{article}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\pagestyle{plain}
\setlength{\parindent}{.2in}
\setlength{\parskip}{8pt}
\setlength{\mathindent}{18pt}
\setlength{\oddsidemargin}{0in}
\setlength{\textwidth}{6.5in}
\setlength{\topmargin}{-.4in}
\setlength{\textheight}{9in}
\renewcommand{\baselinestretch}{1.5}
\newcommand{\mypar}{\vspace{4mm}}
\begin{document}
\newpage
\newpage
\setcounter{page}{1}
\begin{center}
\section{INTRODUCTION}
\end{center}
Intro
\section{SECOND SECTION}
Here is another section
\begin{center}
\section{THIRD SECTION}
\end{center}
Here is another section
\section*{REFERENCES}
\begin{list} %no label
{\mbox{}} %note that the next 7 lines are within { }
{ \setlength{\leftmargin} {20pt}
\setlength{\rightmargin} {0pt}
\setlength{\labelsep} {5pt}
\setlength{\labelwidth} {15pt}
\setlength{\listparindent} {-20pt}
\setlength{\parsep} {.15ex}
\setlength{\itemsep} {-3ex} }
\item \ \par
Stephens, M. A. (1986), ``Tests Based on EDF Statistics'' in
D'Agostino, R. B. (ed.) and Stephens, M. A.,
{\it Goodness-of-fit Techniques}, Marcel Dekker Inc (New York), 97-193.
\end{list}
\end{document}
Alternatively, if you *really* want to get rid of the warning, remove
"\ \par" from the line "\item \ \par." This should help somewhat. I
would recommend the use of BibTeX for bibliographies; it allows for
negative indentation of the first line without intruding on the
margins. Try using the jurabib biliography style.
If on the other hand, you don't mind about the margins (a bit ugly in
my opinion), simply try setting \parindent to the desired negative
value, for example (I repeat despite noticing your use of it),
\setlength{\parindent}{-.2em}.
Hope this helps,
Cédric Cordenier
If you're interested, here's a way to centre your section commands,
following the example of Vincent Zoonekynd on the website:
http://zoonek.free.fr/LaTeX/LaTeX_samples_section/0.html
See his example "02".
Werner
--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.
I wasn't sure how to do my references in another way. The requirements are on:
http://pubs.amstat.org/page/styleguide?cookieSet=1
Also pasted below. The citation depends on how many authors there are
and is different for the first time you use the citation as compared
to later in the text (see #5)? Can Latex do that. I had less than 10
references, so I just did it by hand to avoid this confusion.
Also, what do you think they mean by this:
Each figure must have a figure caption, including the figure number.
Figures are numbered consecutively, using arabic numerals, as they are
cited in text. Prepare the captions on a separate sheet and place them
after the tables. They will be typeset and placed beneath the figures.
On a separate sheet? I am assuming the Figures go right into the text
(they didn't say otherwise).
Thanks,
Juliet
Reference Citations. All references included in the References at the
end of an article must be cited in the text of the article. For text
citations, ASA uses the author's surname and date of publication,
according to the following style.
1. A direct citation of a reference places only the date within parentheses.
Gentleman (1978) explored this in greater detail.
2. An indirect citation of a reference as an example places both the
name and the date within parentheses with no punctuation between them:
Other recent suggestions include the use of Chernoff faces (Smith 1980).
3. Citation of a particular page, section, or equation of a work
should follow the date and be preceded by a comma. Use sec., chap,
app., eq., p., and pp. in such citations.
We rely on an algorithm of Das Gupta (1965, pp. 115-120).
This distribution is known to be normal (Smith and Smith 1958, chap. 5).
4. References following direct quotations must include the page
number(s) of the quote:
"This was found to be fallacious thinking upon closer investigation"
(Smith and Smith 1958, p. 209).
5. For works with multiple authors, use the full form of citation at
all times for two authors. Use the full form the first time only for
three to five authors; thereafter use the first author's surname
followed by the phrase "et al." (not underlined). Use the first
author's surname followed by the phrase "et al." for citations of
references with six or more authors.
Thanks Everyone.
I wasn't sure how to do my references in another way.
The requirements are on:
http://pubs.amstat.org/page/styleguide?cookieSet=1
Also pasted below. The citation depends on how many authors there are
and is different for the first time you use the citation as compared
to later in the text (see #5)? Can Latex do that. I had less than 10
references, so I just did it by hand to avoid this confusion.
Also, what do you think they mean by this:
Each figure must have a figure caption, including the figure number.
Figures are numbered consecutively, using arabic numerals, as they are
cited in text. Prepare the captions on a separate sheet and place them
after the tables. They will be typeset and placed beneath the figures.
On a separate sheet? I am assuming the Figures go right into the text
(they didn't say otherwise).