Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

hi Im trying to renew the section cmd to make all sections in capitals.

i have tried stuff like

\newcommand{\tmpsection}[1]{}
\let\tmpsection=\section
\renewcommand{\section}[1]{\tmpsection{\uppercase{#1}}}

but no luck. can anyone help ? :)

share|improve this question

1 Answer 1

up vote 8 down vote accepted

A simple way to achieve the result is by using the sectsty package:

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{sectsty,textcase}
\allsectionsfont{\MakeTextUppercase}

\begin{document}
\section{Here's à la page}
\subsection{Straße}
\end{document}

I used also textcase for \MakeTextUppercase is usually more robust than \MakeUppercase (and \uppercase wouldn't work with accented letters).

This doesn't touch the entries in the table of contents; to get also that some more work should be done.

share|improve this answer

Your Answer

 
discard

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.