GeneralSuperposition problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Superposition problem

Post by latexforever »

Hello everybody,

I've got a text-superposition problem in my document.
In the preamble, I simply use

Code: Select all

\setlength{\headheight}{15pt}
\renewcommand{\chaptermark}[1]%
{\markboth{\MakeUppercase{\thechapter.\ #1}}{}}
\renewcommand{\sectionmark}[1]%
{\markright{\MakeUppercase{\thesection.\ #1}}}
\newcommand{\helv}{%
\fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont}
\fancyhf{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.10pt} %untere Trennlinie
\fancyhead[L]{\helv \leftmark} %Kopfzeile links
\fancyhead[C]{} %zentrierte Kopfzeile
\fancyhead[R]{\helv \rightmark}

\fancyfoot[C]{\bfseries Page \No \thepage}
\fancyfoot[R]{\bfseries By me}
.

By this, each page of my document has the following structure:
--
CHAPTER number. CHAPTER[SPACE] SECTION number. SECTION
[Content]
Page N° [] By Me
--

The problem is that, when the section has a long name, it mixes with the chapter title, and it is not quite beautiful.

What can I do ?
Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Superposition problem

Post by localghost »

You could use the optional short forms for your section (and chapter) titles.

Code: Select all

\section[Short title]{Full title}
The short title will also appear in the Table of Contents (ToC).


Best regards and welcome to the board
Thorsten¹
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Re: Superposition problem

Post by latexforever »

Thanks!

I simply didn't know this possibility.
Is there also a thing to do when you use \cite command in a \section environment (e.g. \section{test\cite{paul01}}) ? Because it works, but, in the beginning of my page (upright), it displays "1.0 test[?]".

Thanks!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Superposition problem

Post by localghost »

It's exactly the same procedure of using the short form.

Code: Select all

\section[Short title]{Full title~\cite{key}}
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Re: Superposition problem

Post by latexforever »

Yes, but my problem is that it displays a "?" at the place of the author, only in the top of my page.

Here is an example:
--
CHAPTER 1. CHAPTER ONE [SPACE] 1.1 SECTION ONE[?]

Chapter 1.
1.1 Section ONE[Mozart]

Page no ... By me
--
Furthermore, it appears in the "table of contents" of Acrobat Reader, as a text. So, I would have, for this section: "1.1 SECTION ONEMozart".

What can I do ?

Thanks
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Superposition problem

Post by localghost »

You have to run the compiler at least twice on the code to get everything at its place. If that doesn't help, reduce the problem to a minimal working example (MWE). This MWE would make the issue much more clearer than any description. The second problem is solved by the code I gave in my last reply.
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Re: Superposition problem

Post by latexforever »

Thanks.

The problem is solved.

Thanks!
Post Reply