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.

Is there a way to have different chapter headings for odd and even starting chapters using fncychap with scrbook class? I'm using a personal style (a mix of Sonny and Bjornstrup) that has a large chapter number on the right that is not clearly visible when chapter starts on even pages.

Edit:

This is style definition in fncychap.sty

%%%%%%PERSONAL DEF

\DeclareOption{Personal}{%
  \ChNameVar{\Large\sf}
  \ChNumVar{ \fontsize{76}{80}\usefont{OT1}{pzc}{m} {n}\selectfont\color{darkgray}}}
  \ChTitleVar{\Large\sf\em\color{Sepia}}
  \ChRuleWidth{0.5pt}
  \ChNameUpperCase
  \renewcommand{\DOCH}{%
   \vskip -100\p@%
    \raggedleft
     \Huge\CNoV\thechapter

}
  \renewcommand{\DOTI}[1]{%
    \CTV\raggedleft\mghrulefill{\RW}\par\nobreak
    \vskip 5\p@
    \CTV\FmTi{#1}\par\nobreak
    \mghrulefill{\RW}\par\nobreak
    \vskip 20\p@}
  \renewcommand{\DOTIS}[1]{%
    \CTV\raggedleft\mghrulefill{\RW}\par\nobreak
    \vskip 5\p@
    \CTV\FmTi{#1}\par\nobreak
    \mghrulefill{\RW}\par\nobreak
    \vskip 5\p@}

And this is a pic of the output (sorry for low quality, only way to post it from netbook)Output

This chapter starts on odd page. I'm searching for a way to move the large chapter number on left when chapter starts on even page.

share|improve this question
    
Please add a minimal example showing your "personal style" and describe how exactly it should be modified for even pages. –  lockstep Sep 4 '12 at 15:58

1 Answer 1

up vote 5 down vote accepted

Here's one possible solution using a conditional test:

\documentclass[openany]{scrbook}
\usepackage[dvipsnames]{xcolor}
\usepackage[Bjornstrup]{fncychap}

\makeatletter
%%%%%%PERSONAL DEF

\DeclareOption{Personal}{%
  \ChNameVar{\Large\sf}
  \ChNumVar{ \fontsize{76}{80}\usefont{OT1}{pzc}{m} {n}\selectfont\color{darkgray}}}
  \ChTitleVar{\Large\sf\em\color{Sepia}}
  \ChRuleWidth{0.5pt}
  \ChNameUpperCase
  \renewcommand{\DOCH}{%
   \vskip -100\p@%
    \ifodd\c@page
    \raggedleft
    \else
    \raggedright
    \fi
     \Huge\CNoV\thechapter

}
  \renewcommand{\DOTI}[1]{%
    \CTV\raggedleft\mghrulefill{\RW}\par\nobreak
    \vskip 5\p@
    \CTV\FmTi{#1}\par\nobreak
    \mghrulefill{\RW}\par\nobreak
    \vskip 20\p@}
  \renewcommand{\DOTIS}[1]{%
    \CTV\raggedleft\mghrulefill{\RW}\par\nobreak
    \vskip 5\p@
    \CTV\FmTi{#1}\par\nobreak
    \mghrulefill{\RW}\par\nobreak
    \vskip 5\p@}
\makeatother

\begin{document}

\chapter{Test Chapter One}
\chapter{Test Chapter Two}

\end{document}

enter image description here

share|improve this answer
    
Thanks, that's just what I was searching for, I didn't know how to format if cicle. –  Gianluigi Sep 4 '12 at 19:38

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.