0
\documentclass{article}
\usepackage{pdfpages}

\begin{document}
\chapter{RAA renal hormones} \label{06222014204556} \includepdf[pages={-}]{06222014204556.pdf}
\end{document} 

I get formatting of RAA renal hormones as plain text.

If I change documentclass to book, then right format.

What is the right way to make the chapter look like a heading in the article?

3
  • 6
    The document class article doesn't provide the command \chapter: See Regarding the book, report, and article document classes: what are the main differences? Jun 29, 2014 at 7:51
  • 1
    Do you mean the font size of chapter heading RAA renal hormones? Apart from the fact what Marco Daniel already mentioned, it is just \section{\Huge RAA renal hormones}. In book.cls, \huge and \Huge provide the same font size...
    – user31729
    Jun 29, 2014 at 7:52
  • And your document is not compilable, as it contains a \includepdf command for a file not available to users here.
    – user31729
    Jun 29, 2014 at 7:55

1 Answer 1

2

The simple answer is like Christian Hupfer implicitly writes: Change the \chapter{RAA...} to \section{RAA...}.

Your MNWE will be:

\documentclass{article}
\usepackage{pdfpages}

\begin{document}
  \section{RAA renal hormones} \label{06222014204556}
  \includepdf[pages={-}]{06222014204556.pdf}
\end{document}

If you want more easy options, I will suggest switching to the KomaScript bundle. Then you can easily switch between small, medium and big headings, see page 86-88 in the manual.

\documentclass[headings=big,% or normal or small
               fontsize=12pt]% or 10pt or 11pt - 12pt give huge headings
  {scrartcl}

\usepackage{pdfpages}

\begin{document}
  \section{RAA renal hormones} \label{06222014204556}
  \includepdf[pages={-}]{06222014204556.pdf}
\end{document}

If you really want to add the word Chapter in front of the section number, and have the section title on its own line, i.e.

Chapter 1

RAA renal hormones

(text on new page)

you have to redefine the section command. That is an advance exercise.

2
  • As such you should at least \Huge to your solution ;-)
    – user31729
    Jun 29, 2014 at 9:39
  • @ChristianHupfer I had not finished the proofing. :-]
    – Sveinung
    Jun 29, 2014 at 9:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .