# Numbering problems in chapter running head and TOC

I have this numbering problem for days, checking this website to find these http://tex.stackexchange.com/a/25212/34618 and http://tex.stackexchange.com/a/5694/34618

but these are not what I want really, because their directions would means to renew many commands for user-defined theorems, lemmas, exercises and problems, not to mention other default setting that \thechapter hack carries over to equations, figures and tables.

Here is my question.

In the chapter running head, I have

I. Chapter for heading
and what follows are many sections in the chapter body.

and many sections ...

and many sections ...

In TOC, I would like the following style.

A. Chapter name,
1.1 section,
1.2 section,

B. Chapter name,
2.1 section,
2.2 section,

C. Chapter name,
3.1 section,
3.2 section,


In short, all numbering styles (Romanic, alphabetic, numeral) are different. I can figure out how to tackle the heading problem by redefining command @makechapterhead but don't know how to deal those in TOC. Flipping through definition of l@chapter, numberline, etc, never hit me with how, thus needing guru helps.

I can foresee solving this problem may benefit different numbering styles available for non-English languages.

PS. I also know some prevailing packages may achieve this goal, but those are not what I want either.

-
Welcome to TeX.SX! –  Papiro Aug 4 '13 at 17:51

At first, I considered this numbering schema as confusing since the same object is being denoted using three different representations: Roman, Alphabetic, Arabic. However, in a comment to my answer, Jesse has explained that this is for a Chinese text in which this schema is logically sound.

Here's a possible solution:

\documentclass{book}

\makeatletter
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\renewcommand\thechapter{\Alph{chapter}}
{\protect\numberline{\thechapter.}#1}%
\renewcommand\thechapter{\Roman{chapter}}
\else
\fi
\else
\fi
\chaptermark{#1}%
\if@twocolumn
\else
\fi}
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\huge\bfseries\thechapter.
\fi
\fi
\interlinepenalty\@M
#1\par\nobreak
\vskip 30\p@
}}
\renewcommand*\l@section{\@dottedtocline{1}{0em}{2.3em}}
\makeatother

\renewcommand\thechapter{\Roman{chapter}}
\renewcommand\thesection{\arabic{chapter}.\arabic{section}}

\begin{document}

\tableofcontents

\chapter{First test chapter}
\section{Test section}
\section{Test section}
\section{Test section}
\chapter{Second test chapter}
\section{Test section}
\section{Test section}
\section{Test section}

\end{document}


An image of the resulting TOC:

An image of a chapter in the document body:

-
The initial notions was intended to use (Roman, alphabetic, arabic) to represent (壹,壹,1.1) in Chinese context, but I expanded a little bit to (壹,一,1.1) to generalize the notions when posted my question. Literally in Chinese 壹 = 一 = 1. Furthermore, in order not to confuse the audience with Chinese characters, I use notational expression (I,A,1.1) instead. Yes, it sounds odd to English, but in Chinese, it is logically sound. Sorry for the confusion. Indeed, curiosity lures me to ask because I spent days in vain, eager to known an answer. Thanks for the speedy response –  Jesse Aug 5 '13 at 0:48
@Jesse Ah, I see. It's confusing not only in English but also in Spanish (my native tongue); thanks for explaining that this was for a Chinese text and that, in this context, this is logically sound. I'll add a little note about this to my answer, so other readers can also understand the context. –  Gonzalo Medina Aug 5 '13 at 0:52
I achieved the intended objective (壹,一,1.1) with xeCJK and zhnumber packages easily, thus, whishing to express my thanks toward you for sharing the info and the litte note. Thank you very much. –  Jesse Aug 5 '13 at 4:44