[texhax] newb question - line after section heading
Joe P King
jp at joepking.com
Thu Feb 10 08:58:54 CET 2011
So I want to have on line between a section heading
Instead of
Section
Text
I want
Section
Text
My code is, I am using the packages that a friend recommended but there
might be a conflict, I am using my abstract as testing page, I centered the
first line so I can see the spacing better:
\documentclass[letterpaper,12pt]{article} % this must go first, there are
many different classes
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\usepackage{fancyhdr} %Used for headers and footers.
\usepackage{amsmath} %Must have for writing equations
\usepackage{setspace}
\usepackage{parskip}
\usepackage{graphicx} % accepts png and pdf graphics
\usepackage{color, soul} % I use this for highlighting. \hl{}
\usepackage{array}
\usepackage{dcolumn} % Used to align tables to decimal points. A little
complicated
\usepackage{longtable} % for tables that go beyond a page
\usepackage{verbatim} %Used for commenting out as well as putting in
verbatim notes
\usepackage{listings} %Similar to Verbatim, can import R code with this
package
%\usepackage{cite} %Used for bibtexB
\usepackage{wrapfig} % Wrapping text around pictures
\usepackage[lmargin=1.0in,
rmargin=1.0in,tmargin=1.0in,bmargin=1.0in]{geometry}
\usepackage[small,compact]{titlesec}
%\bibliography{C:/Users/Joe/Misc/library}
\usepackage{titlesec}
%appear.
%\headheight{15pt}
\renewcommand\headrulewidth{0pt}
%\tolerance = 1500 %
\hyphenpenalty=10000
\parindent = 0 cm %can adjust this to indent all paragraphs to a certain
specification
\linespread{1}
\voffset=-.75in
\pagestyle{fancy} % Determines basic page format; often refers to headers
and footers
%\titleformat{\section}{\normalfont\bfseries\centering}{}{0em}{}
\titlespacing{\section}{0pt}{-1pt}{0pt}
\titleformat{\section}{\normalfont\large\bfseries}{}{1em}{}
%\titlecontents{chapter}[0pt]
\DeclareLanguageMapping{american}{american-apa}
\begin{document}
\section{Abstract}
\begin{center}
stuff
\end{center}
stuff
\newpage
\end{document}
-------------------------------------------
Joe King, M.A.
Ph.D. Student
University of Washington - Seattle
206-913-2912
<mailto:jp at joepking.com> jp at joepking.com
-------------------------------------------
Ad astra per aspera - "Through hardships to the stars"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110209/eefd143e/attachment.html>
More information about the texhax
mailing list