tomliew@aix01.aix.rpi.edu (Thomas Liew) (06/05/91)
Sorry for having taken so long to summarize. My orginal posting is reproduce below: Thomas> Sometime ago there was some discussion on whether to indent the Thomas> first paragraph immediately following a section title or header. Thomas> I don't remember if anyone illustrated how to do the indentation. Thomas> I had no luck with /indent. Can some one throw some light on Thomas> how it can be done. Well I have no choice as I need to indent Thomas> that first paragraph to conform to a particular journal style. Thomas> I am using LaTeX to write the paper. And the solutions are as follows: Method 1 : Try \hskip\parindent after the section heading and before the contents of the paragraph. or \hspace{\parindent} at the beginning of the first paragraph. or put \hspace*{\parindent} at the beginning of the first paragraph of each section, subsection, etc., it will do the trick. Credits: douglis@cs.vu.nl ortiz@vela.astro.utoronto.ca DSOLOMON@HMCVAX.CLAREMONT.EDU Method 2: Modify the latex code for sections. change a minus sign to a plus sign to get indentation. and the details Go into your style file, study it, and change the arguments to \@startsection in the appropriate file. For example, if you use article.sty at 10pt, you notice the section % % This is from art10.doc % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} % optional * [ALTHEADING]{HEADING} % Generic command to start a section. % NAME : e.g., 'subsection' % LEVEL : a number, denoting depth of section -- i.e., section=1, % subsection = 2, etc. A section number will be % printed if and only if LEVEL < or = the value of % the secnumdepth counter. % INDENT : Indentation of heading from left margin % BEFORESKIP : Absolute value = skip to leave above the heading. % If negative, then paragraph indent of text following % heading is suppressed. % AFTERSKIP : if positive, then skip to leave below heading, % else - skip to leave to right of run-in heading. % STYLE : commands to set style % If '*' missing, then increments the counter. If it is present, then % there should be no [ALTHEADING] argument. A sectioning command % is normally defined to \@startsection + its first six arguments. \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus .2ex}{\Large\bf}} \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus -.2ex}{1.5ex plus .2ex}{\large\bf}} \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}} \def\paragraph{\@startsection {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}} \def\subparagraph{\@startsection {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}} and so you just change the sign of the BEFORESKIP value and drop it into your own private style file. Credits: ne201ph@prism.gatech.edu raymond@math.berkeley.edu Method 3: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % indentfirst.sty % %%%%%%%%%%%%%%% % % Make the first line of all sections etc be indented by the usual % paragraph indentation. % % David Carlisle % carlisle@uk.ac.man.cs % 2/1/91 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \let\@afterindentfalse\@afterindenttrue \@afterindenttrue Credits also go to those who posted in the newsgroup. Unfortunately by this time the articles have expired. Are they archived somewhere ? I did not try all of them and therefore does not claim that all of them work. As I was modifying the article.sty and art12.sty for my paper I found that method 2 was the most conveinient. Remember though there is the corresponding .doc file where all the arguments to a function(?) are explained. Thanks everyone. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Thomas Liew | Internet : tomliew@rpi.edu % % Physics Dept. RPI | Bitnet : ThomasLiew@rpitsmts % % Troy, NY12180 | Tel[Off]:(518)-276-4807 [Home](518)-276-5665 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%