# Jenor chapter style

Is it possible to get the Jenor chapter style available with the memoir documentclass in the scrreprt documentclass (Koma-script)?

Here is a link to Jenor style.

-

Yes, it is possible; here's one possible solution (some vertical skips might require fine tuning):

\documentclass{scrreprt}
\usepackage{lipsum}
\usepackage{tabularx}
\usepackage{xcolor,fix-cm}

\definecolor{numbercolor}{gray}{0.7}

\makeatletter

\newcommand\chaptitlefont{%
\fontfamily{pbk}\fontseries{db}%
\fontshape{n}\fontsize{25}{35}\selectfont\raggedleft}

\newcommand\chapnumfont{%
\fontfamily{pbk}\fontseries{m}\fontshape{n}%
\fontsize{1in}{0in}\selectfont\color{numbercolor}}

{%
\setlength{\parindent}{\z@}\setlength{\parfillskip}{\fill}%
\normalfont\sectfont\nobreak\size@chapter{}%
\if@chapterprefix
\let\@tempa\raggedsection
\else
\let\@tempa\@hangfrom
\fi
\@tempa{\ifnum \c@secnumdepth >\m@ne%
\if@chapterprefix
\expandafter\size@chapterprefix
\else
\expandafter\size@chapter
\fi
\if@chapterprefix
\size@chapterprefix{}\endgraf\nobreak\vskip.5\baselineskip
\fi
\fi
}%
\begin{tabularx}{\textwidth}{Xl}
{\parbox[b]{\linewidth}{\chaptitlefont #1}}
& \raisebox{-15pt}{\chapnumfont\thechapter}%
\end{tabularx}%
}%
}
{\normalfont\sectfont\nobreak\size@chapter{}%
\setlength{\parindent}{\z@}\setlength{\parfillskip}{\fill}%
\raggedsection \interlinepenalty \@M
\begin{tabularx}{\textwidth}{X}%
{\parbox[b]{\linewidth}{\chaptitlefont #1}%
\vphantom{\raisebox{-15pt}{\chapnumfont 1}}}
\end{tabularx}%
\par}%
}
\makeatother

\begin{document}

\chapter{A test numbered chapter with a really long title}
\lipsum[3]
\chapter*{A test unnumbered chapter with a really long title}
\lipsum[3]

\end{document}


Images of a numbered and an unnumbered chapter:

-
It doesn't seems to work here : no line separator and text starts on the same line as the title. Here is my preamble codeviewer.org/view/code:2940 –  s__C Aug 28 '12 at 16:55
Ok now it's perfect. Thanks for your help Gonzalo. –  s__C Aug 28 '12 at 19:42
@s__C You're welcome! I'm glad I could help. –  Gonzalo Medina Aug 28 '12 at 19:48