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.

In latex when we write section include the chapter, on the top of pages it write as a capital letter, for example

\section{Solution in R^{n}}, on the top write SOLUTION IN R^N, my question is, who we control it especially I want to wrote " R^n " instead " R^N "

share|improve this question
1  
Welcome to TeX.sx! please add a minimal working example (MWE) to understand your problem. See also how mark your inline code in your question. –  Fran Jan 3 '13 at 9:33
1  
Check this answer tex.stackexchange.com/a/4761/23688 –  mreq Jan 3 '13 at 9:36
1  
BTW, your code \section{Solution in R^{n}} is wrong (Missing $ inserted). Perhaps it must be \section{Solution in $R^{n}$} ? –  Fran Jan 3 '13 at 9:43
    
dear Fran, even with '$ R^{n} $' not work, also i try to use the Petr Marek, but its another things, i need just how i write the section title i get the same things in the top of the page –  Mathcal Jan 3 '13 at 9:55
    
By top of the page, do you mean headers? If so are you using fancyhdr? –  Harish Kumar Jan 3 '13 at 13:51
show 1 more comment

2 Answers

up vote 2 down vote accepted

Try this:

\documentclass{book}
\usepackage{lipsum}
 \begin{document}
\tableofcontents
\chapter{Lipsum}
\section{S\lowercase{olution in} $R^{\lowercase{n}}$}
\lipsum[1-15]
\end{document}
share|improve this answer
add comment

This is not a general solution, but for this particular example, the following will work. Define the command \Rn at the preamble as:

\newcommand{\Rn}{$R^n$}

and use it when required in your document as \Rn{}, except at sections or chapters, where you have to \protect it to prevent the uppercase conversion:

\section{Solution in \protect\Rn}

This is a MWE:

\documentclass{book}
\usepackage{lipsum}
\def\Rn{$R^{n}$}
\begin{document}
\tableofcontents
\chapter{Lipsum}
\section{Solution in \protect\Rn{}}
\lipsum[1-15]
\end{document}

And these are some exceprts of the resulting pdf, showing the relevant parts:

Table of contents:

Table of contents

Section title:

Sections

Page header:

Headers

share|improve this answer
add comment

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.