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.

So I'm a student writing chapter summaries for final exam preparation. I'm using the 'article' documentclass and am using separate documents for each chapter. How can I have \section{...} numbered as if it were a \subsection{...}, but keep the same font size/style. Just a note, I will be removing numbering from all instances of \subsection{...}and \subsection{...} too.

Here is a working example (per Werner's request). I want...

\documentclass{article}
\setcounter{secnumdepth}{1} 

\begin{document}
\section{The Nature of Chemical Energy and Redox Reactions}
\subsection{The Structure and Function of ATP}
\subsubsection{Term Defintions}
\end{document}

to print...

1.1 The Nature of Chemical Energy and Redox Reactions

The Structure and Function of ATP

Term Definitions

(edited for clarity)

share|improve this question
    
Would you be able to publish a minimal working example (MWE) that should your current single document and setup? We want to know, for example, what 1 in 1.2 represents? Also, why should \section be numbered, but not \subsection and \subsubsection? Have you made specific settings to have this so? –  Werner Dec 1 '12 at 2:47
    
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces or enclose words in backticks `, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it). –  doncherry Dec 1 '12 at 4:05
    
The outcome of the numbering does depend on the class you're using. For example, for a report class, \thesection is already printed as 1.1 (= \thechapter.\arabic{section}). The counter secnumdepth helps with the un-numbering part of your question (i.e. \setcounter{secnumdepth}{1}). –  Qrrbrbirlbel Dec 1 '12 at 4:35
    
Sorry to bother you, but I noticed that although you have up-voted answers (which is great), you still haven't accepted any of them; accepting answers is a different action and can be done for those answers you consider best solved your problems by clicking the checkmark to their left. In case of doubt, please see How do you accept an answer?. –  Gonzalo Medina Mar 2 at 4:32

1 Answer 1

up vote 5 down vote accepted

Here is a way:

\documentclass{article}

\newcommand{\summarynumber}{1} % adjust for the other summaries
\renewcommand{\thesection}{\summarynumber.\arabic{section}}

\setcounter{secnumdepth}{1} % only sections are numbered

It's better to have an explicitly defined \summarynumber rather than burying the number in the redefinition of \thesection, for better ease of use.

You should be able to use any class you like, not anly article.

share|improve this answer
    
Thank you, egreg. That solved it. Thanks also to Werner, doncherry and Qrrbrbirlbel. I've edited the question for formatting and will keep your tips in mind for further posts. –  Far Zin Dec 1 '12 at 14:18

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.