TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently working on several projects, where the authors are read from a textfile. I'm also displaying the authors in the header using fancyhdr. This works great if there are just 2 or 3 contributors, but if there are more, the text starts overlapping.


The overlapping is also dependent on the document title, which is shown the left.

Is there a way to detect whether the text overlaps, and if it does, use a fallback text (an URL) instead of the authors instead?

Header specification looks like this at the moment:

\usepackage{fancyhdr} % Fancy headers

% Capture title and author

% Fancy headers configuration
\fancyhead{} % Clear all header fields
\fancyhead[LO,LE]{\bfseries \Title}
\fancyfoot{} % Clear all footer fields
\fancyfoot[CO,CE]{Page \thepage}
share|improve this question
up vote 6 down vote accepted

I'd say


This will use <whatever> if there's not at least a quad of space between the title and the list of authors.

share|improve this answer

Your Answer


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.