Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This is what I'm trying to do:

enter image description here

share|improve this question

1 Answer 1

up vote 6 down vote accepted

An option using titlesec; the idea is to place the counter inside a box of width equal to the value for \parindent:

\documentclass{article}
\usepackage{titlesec}
\usepackage{indentfirst}
\usepackage{lipsum}

\setlength\parindent{30pt}
\newlength\mylen
\setlength\mylen{\parindent}

\renewcommand\thesection{\Alph{section}}
\titleformat{\section}
  {\normalfont\Large\bfseries}
  {\makebox[\mylen][l]{\thesection.}}
  {0pt}
  {}

\begin{document}

\section{Test section}
\lipsum[4]

\end{document}

enter image description here

Most probably you won't need the line

\setlength\parindent{30pt}

I used it in my example code to have a generous value for \parindent, which apparently your class already provides. Since your class seems to be a non-standard one (seeing the font size for section titles), please consider changing the \Large in the second mandatory argument of

\titleformat{\section}
  {\normalfont\Large\bfseries}
  {\makebox[\mylen][l]{\thesection.}}
  {0pt}
  {}

to conform to your class definitions.

share|improve this answer
    
Great answer. Thanks! –  Joe Mornin Apr 20 at 4:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.