LaTeX forum ⇒ Page LayoutAcknowledgements Section

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
phoneticist
Posts: 15
Joined: Sat Jul 25, 2009 12:54 am

Acknowledgements Section

Postby phoneticist » Sun Jul 26, 2009 12:49 am

Hello all,

I have encountered a bit of a problem while putting together a master file for my thesis project. I am using a documentclass{report} and it doesn't seem to generate the Acknowledgements Section (to be inserted AFTER 'Abstract' and BEFORE 'Contents' sections). I tried to make it a separate chapter* but the formatting looks drastically different from that of an abstract. I would really prefer them to be uniform.

If anyone has a solution to this, I would very much appreciate your help.

Thanks.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm
Location: Colombia

Postby gmedina » Sun Jul 26, 2009 4:25 am

Hi,

the standard document classes do not have a native acknowledgments environment predefined; however, you can buid one (imitating the abstract environment). The following sample code ahows how to proceed:

  1. \documentclass{report}
  2. \usepackage{lipsum}% just to automatically generate text
  3.  
  4. \makeatletter
  5. \newcommand\ackname{Acknowledgements}
  6. \if@titlepage
  7. \newenvironment{acknowledgements}{%
  8. \titlepage
  9. \null\vfil
  10. \@beginparpenalty\@lowpenalty
  11. \begin{center}%
  12. \bfseries \ackname
  13. \@endparpenalty\@M
  14. \end{center}}%
  15. {\par\vfil\null\endtitlepage}
  16. \else
  17. \newenvironment{acknowledgements}{%
  18. \if@twocolumn
  19. \section*{\abstractname}%
  20. \else
  21. \small
  22. \begin{center}%
  23. {\bfseries \ackname\vspace{-.5em}\vspace{\z@}}%
  24. \end{center}%
  25. \quotation
  26. \fi}
  27. {\if@twocolumn\else\endquotation\fi}
  28. \fi
  29. \makeatother
  30.  
  31. \begin{document}
  32.  
  33. \begin{abstract}
  34. \lipsum[1]
  35. \end{abstract}
  36.  
  37. \begin{acknowledgements}
  38. \lipsum[1]
  39. \end{acknowledgements}
  40.  
  41. \end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...

Link:
BBcode:
HTML:
Hide post links
Show post links

phoneticist
Posts: 15
Joined: Sat Jul 25, 2009 12:54 am

Postby phoneticist » Sun Jul 26, 2009 2:23 pm

Thank you ever so much! You're a real blessing.

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests