I have the following piece of code:
Code: Select all
\documentclass[a4paper,12pt,openany,oneside]{memoir}
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\begin{document}
\tableofcontents
\chapter{Test}
\end{document}
Thanks in advance
Code: Select all
\documentclass[a4paper,12pt,openany,oneside]{memoir}
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\begin{document}
\tableofcontents
\chapter{Test}
\end{document}
Code: Select all
\renewcommand{\printtoctitle}{\centering\Huge\bfseries}
Hello,meho_r wrote:You may try this:Note that when redefining \printtoctitle you have to set other attributes too (in the example I set \Huge and \bfseries). For more infos take a look at Chapter 9. in memoir documentation.Code: Select all
\renewcommand{\printtoctitle}{\centering\Huge\bfseries}
Code: Select all
\documentclass[a4paper,12pt,openany,oneside]{memoir}
\renewcommand{\printtoctitle}{\centering\Huge\bfseries}
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\begin{document}
\tableofcontents
\chapter{Test}
\end{document}
Yes you are right. I am sorry for this. I tried it on my full document where it did not work. As an independent document, it is just fine. In my original document I use something like this:meho_r wrote:Strange. On my system (TeXLive 2009), works fine. Here's your code with the additional line from my previous post to test:And in attachment is its output. I tested it with pdflatex and xelatex. Can anyone other test it and confirm if it's working?Code: Select all
\documentclass[a4paper,12pt,openany,oneside]{memoir} \renewcommand{\printtoctitle}{\centering\Huge\bfseries} \renewcommand{\contentsname}{TABLE OF CONTENTS} \begin{document} \tableofcontents \chapter{Test} \end{document}
Code: Select all
\documentclass[a4paper,12pt,openany,oneside]{memoir}
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\begin{document}
\chapter*{\contentsname}
\chapter{Test}
\end{document}