\documentclass[DIV8,10pt]{scrbook}
\usepackage[T1]{fontenc}
\usepackage{txfonts,german,scrpage}

\renewpagestyle{headings}{(\textwidth,0pt)%
{\bfseries\thepage\hfill\bfseries\headmark}%
{\bfseries\headmark\hfill\bfseries\thepage}%
{\bfseries\headmark\hfill\bfseries\thepage}%
(\textwidth,0.5pt)}{(\textwidth,0pt)%
{\hfill}{\hfill}{\hfill}(\textwidth,0pt)}
\renewpagestyle{plain}{(0mm,0pt){\hfill}{\hfill}%
{\hfill}(0mm,0.5pt)}{(0mm,0pt){\hfill}{\hfill}{\hfill}(0mm,0pt)}

\pagestyle{headings}

\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}{2.3ex \@plus.2ex}%
{\centering\normalfont\Large\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}{1.5ex \@plus .2ex}%
{\centering\normalfont\large\bfseries}}
\makeatother

\newcommand{\praeambel}[1]{\section*{#1}\addcontentsline{toc}{section}{#1}}
\newcommand{\maerchentitel}[1]{\section*{#1}\addcontentsline{toc}{section}{#1}}
\newcommand{\anhangmaerchen}[1]{\section*{#1}\addcontentsline{toc}{section}{#1}}
\newcommand{\untertitel}[1]{\subsection*{#1}\addcontentsline{toc}{subsection}{#1}}
\newcommand{\buchtitel}[1]{\emph{\textbf{#1}}}
\newcommand{\anhang}[1]{\begin{center}#1\end{center}}
\newcommand{\verfasser}[1]{\begin{flushright}\textit{\textbf{#1}}\end{flushright}}
\newcommand{\ortzeit}[1]{\begin{flushleft}#1\end{flushleft}}
\newcommand{\dasheisst}{d.\,h.\ }
\newcommand{\zumbeispiel}{z.\,B.\ }
\newcommand{\dasist}{d.\,i.\ }

\title{Kinder- und Hausm"archen}
\author{Br"uder Grimm}
\date{\today}
\begin{document}
\maketitle
\clearpage{\pagestyle{empty}\cleardoublepage}
\frontmatter
\tableofcontents
\clearpage
\markboth{}{}
\noindent
\input bg_praezitat_1857.txt
\clearpage{\pagestyle{empty}\cleardoublepage}
\mainmatter
\chapter*{Pr"aambel}
\addcontentsline{toc}{chapter}{Pr"aambel}
\markboth{Pr"aambel}{}
\clearpage{\pagestyle{empty}\cleardoublepage}
\input bg_bettina_1857_ck.txt
\clearpage
\input bg_vorrede_1857_nolig_ck.txt
\clearpage{\pagestyle{empty}\cleardoublepage}
\chapter*{Kinder- und Hausm"archen}
\addcontentsline{toc}{chapter}{Kinder- und Hausm"archen}
\markboth{Kinder- und Hausm"archen}{}
\clearpage{\pagestyle{empty}\cleardoublepage}
\input bg_khm_1857_001_nolig_ck.txt
\input bg_khm_1857_002_ck.txt
\input bg_khm_1857_003_ck.txt
\input bg_khm_1857_004_ck.txt
\input bg_khm_1857_005_ck.txt
\input bg_khm_1857_006_ck.txt
\input bg_khm_1857_007_ck.txt
\input bg_khm_1857_008_ck.txt
\input bg_khm_1857_009_ck.txt
\input bg_khm_1857_010_ck.txt
\input bg_khm_1857_011_ck.txt
\input bg_khm_1857_012_ck.txt
\input bg_khm_1857_013_ck.txt
\input bg_khm_1857_014_ck.txt
\input bg_khm_1857_015_nolig_ck.txt
\input bg_khm_1857_016_nolig_ck.txt
\input bg_khm_1857_017_nolig_ck.txt
\input bg_khm_1857_018_ck.txt
\input bg_khm_1857_019_ck.txt
\input bg_khm_1857_020_nolig_ck.txt
\input bg_khm_1857_021_nolig_ck.txt
\input bg_khm_1857_022_ck.txt
\input bg_khm_1857_023_nolig_ck.txt
\input bg_khm_1857_024_nolig_ck.txt
\input bg_khm_1857_025_ck.txt
\input bg_khm_1857_026_ck.txt
\input bg_khm_1857_027_ck.txt
\input bg_khm_1857_028_ck.txt
\input bg_khm_1857_029_ck.txt
\input bg_khm_1857_030_ck.txt
\input bg_khm_1857_031_ck.txt
\input bg_khm_1857_032_ck.txt
\input bg_khm_1857_033_ck.txt
\input bg_khm_1857_034_ck.txt
\input bg_khm_1857_035_ck.txt
\input bg_khm_1857_036_ck.txt
\input bg_khm_1857_037_nolig_ck.txt
\input bg_khm_1857_038_ck.txt
\input bg_khm_1857_039_ck.txt
\input bg_khm_1857_040_ck.txt
\input bg_khm_1857_041_ck.txt
\input bg_khm_1857_042.txt
\input bg_khm_1857_043_ck.txt
\input bg_khm_1857_044_ck.txt
\input bg_khm_1857_045_ck.txt
\input bg_khm_1857_046_ck.txt
\input bg_khm_1857_047_nolig_ck.txt
\input bg_khm_1857_048_ck.txt
\input bg_khm_1857_049_nolig_ck.txt
\input bg_khm_1857_050_ck.txt
\input bg_khm_1857_051_ck.txt
\input bg_khm_1857_052_ck.txt
\input bg_khm_1857_053_ck.txt
\input bg_khm_1857_054_ck.txt
\input bg_khm_1857_055_ck.txt
\input bg_khm_1857_056_ck.txt
\input bg_khm_1857_057_nolig_ck.txt
\input bg_khm_1857_058_ck.txt
\input bg_khm_1857_059_ck.txt
\input bg_khm_1857_060_nolig_ck.txt
\input bg_khm_1857_061_ck.txt
\input bg_khm_1857_062_ck.txt
\input bg_khm_1857_063_ck.txt
\input bg_khm_1857_064_ck.txt
\input bg_khm_1857_065_nolig_ck.txt
\input bg_khm_1857_066.txt
\input bg_khm_1857_067.txt
\input bg_khm_1857_068_ck.txt
\input bg_khm_1857_069_ck.txt
\input bg_khm_1857_070_ck.txt
\input bg_khm_1857_071_ck.txt
\input bg_khm_1857_072_ck.txt
\input bg_khm_1857_073_ck.txt
\input bg_khm_1857_074_ck.txt
\input bg_khm_1857_075_ck.txt
\input bg_khm_1857_076_ck.txt
\input bg_khm_1857_077_nolig_ck.txt
\input bg_khm_1857_078_ck.txt
\input bg_khm_1857_079.txt
\input bg_khm_1857_080_ck.txt
\input bg_khm_1857_081_ck.txt
\input bg_khm_1857_082_ck.txt
\input bg_khm_1857_083_ck.txt
\input bg_khm_1857_084_ck.txt
\input bg_khm_1857_085_ck.txt
\input bg_khm_1857_086_nolig_ck.txt
\input bg_khm_1857_087_ck.txt
\input bg_khm_1857_088_ck.txt
\input bg_khm_1857_089_ck.txt
\input bg_khm_1857_090_ck.txt
\input bg_khm_1857_091_ck.txt
\input bg_khm_1857_092_ck.txt
\input bg_khm_1857_093_ck.txt
\input bg_khm_1857_094_ck.txt
\input bg_khm_1857_095_nolig_ck.txt
\input bg_khm_1857_096_ck.txt
\input bg_khm_1857_097_ck.txt
\input bg_khm_1857_098_ck.txt
\input bg_khm_1857_099_ck.txt
\input bg_khm_1857_100_ck.txt
\input bg_khm_1857_101_ck.txt
\input bg_khm_1857_102_ck.txt
\input bg_khm_1857_103.txt
\input bg_khm_1857_104_nolig_ck.txt
\input bg_khm_1857_105_ck.txt
\input bg_khm_1857_106_ck.txt
\input bg_khm_1857_107_ck.txt
\input bg_khm_1857_108_ck.txt
\input bg_khm_1857_109_nolig_ck.txt
\input bg_khm_1857_110_nolig_ck.txt
\input bg_khm_1857_111_ck.txt
\input bg_khm_1857_112_ck.txt
\input bg_khm_1857_113_ck.txt
\input bg_khm_1857_114_nolig_ck.txt
\input bg_khm_1857_115.txt
\input bg_khm_1857_116_ck.txt
\input bg_khm_1857_117.txt
\input bg_khm_1857_118_ck.txt
\input bg_khm_1857_119_ck.txt
\input bg_khm_1857_120_nolig.txt
\input bg_khm_1857_121_ck.txt
\input bg_khm_1857_122_nolig_ck.txt
\input bg_khm_1857_123_nolig_ck.txt
\input bg_khm_1857_124_ck.txt
\input bg_khm_1857_125_nolig_ck.txt
\input bg_khm_1857_126_nolig_ck.txt
\input bg_khm_1857_127_ck.txt
\input bg_khm_1857_128_ck.txt
\input bg_khm_1857_129_ck.txt
\input bg_khm_1857_130_ck.txt
\input bg_khm_1857_131_ck.txt
\input bg_khm_1857_132_nolig_ck.txt
\input bg_khm_1857_133_nolig_ck.txt
\input bg_khm_1857_134_nolig_ck.txt
\input bg_khm_1857_135_ck.txt
\input bg_khm_1857_136_nolig_ck.txt
\input bg_khm_1857_137_ck.txt
\input bg_khm_1857_138_ck.txt
\input bg_khm_1857_139.txt
\input bg_khm_1857_140.txt
\input bg_khm_1857_141_ck.txt
\input bg_khm_1857_142_ck.txt
\input bg_khm_1857_143_ck.txt
\input bg_khm_1857_144_ck.txt
\input bg_khm_1857_145.txt
\input bg_khm_1857_146_ck.txt
\input bg_khm_1857_147_nolig.txt
\input bg_khm_1857_148_ck.txt
\input bg_khm_1857_149_ck.txt
\input bg_khm_1857_150.txt
\input bg_khm_1857_151.txt
\input bg_khm_1857_151a_ck.txt
\input bg_khm_1857_152_nolig_ck.txt
\input bg_khm_1857_153_ck.txt
\input bg_khm_1857_154_ck.txt
\input bg_khm_1857_155.txt
\input bg_khm_1857_156_ck.txt
\input bg_khm_1857_157_nolig_ck.txt
\input bg_khm_1857_158_ck.txt
\input bg_khm_1857_159_ck.txt
\input bg_khm_1857_160.txt
\input bg_khm_1857_161_ck.txt
\input bg_khm_1857_162.txt
\input bg_khm_1857_163_nolig_ck.txt
\input bg_khm_1857_164_ck.txt
\input bg_khm_1857_165_ck.txt
\input bg_khm_1857_166_ck.txt
\input bg_khm_1857_167.txt
\input bg_khm_1857_168_ck.txt
\input bg_khm_1857_169_ck.txt
\input bg_khm_1857_170_ck.txt
\input bg_khm_1857_171_ck.txt
\input bg_khm_1857_172.txt
\input bg_khm_1857_173.txt
\input bg_khm_1857_174_ck.txt
\input bg_khm_1857_175_ck.txt
\input bg_khm_1857_176_ck.txt
\input bg_khm_1857_177_ck.txt
\input bg_khm_1857_178_nolig_ck.txt
\input bg_khm_1857_179_ck.txt
\input bg_khm_1857_180_ck.txt
\input bg_khm_1857_181_ck.txt
\input bg_khm_1857_182_ck.txt
\input bg_khm_1857_183_ck.txt
\input bg_khm_1857_184.txt
\input bg_khm_1857_185_ck.txt
\input bg_khm_1857_186_nolig_ck.txt
\input bg_khm_1857_187_ck.txt
\input bg_khm_1857_188.txt
\input bg_khm_1857_189_ck.txt
\input bg_khm_1857_190_ck.txt
\input bg_khm_1857_191_ck.txt
\input bg_khm_1857_192_nolig_ck.txt
\input bg_khm_1857_193_nolig_ck.txt
\input bg_khm_1857_194.txt
\input bg_khm_1857_195_ck.txt
\input bg_khm_1857_196.txt
\input bg_khm_1857_197_ck.txt
\input bg_khm_1857_198_ck.txt
\input bg_khm_1857_199_ck.txt
\input bg_khm_1857_200_ck.txt
\clearpage{\pagestyle{empty}\cleardoublepage}
\chapter*{Kinderlegenden}
\addcontentsline{toc}{chapter}{Kinderlegenden}
\markboth{Kinderlegenden}{}
\clearpage{\pagestyle{empty}\cleardoublepage}
\input bg_klg_1857_01_ck.txt
\input bg_klg_1857_02_ck.txt
\input bg_klg_1857_03_ck.txt
\input bg_klg_1857_04_ck.txt
\input bg_klg_1857_05.txt
\input bg_klg_1857_06_nolig_ck.txt
\input bg_klg_1857_07.txt
\input bg_klg_1857_08.txt
\input bg_klg_1857_09.txt
\input bg_klg_1857_10.txt
\clearpage{\pagestyle{empty}\cleardoublepage}
\chapter*{Anhang}
\addcontentsline{toc}{chapter}{Anhang}
\markboth{Anhang}{}
\begin{center}
\Large
In der Ausgabe letzter Hand (1856/57) \\
nicht mehr enthaltene M"archen fr"uherer Auf"|lagen
\end{center}
\clearpage{\pagestyle{empty}\cleardoublepage}
\input bg_anh_1857_01.txt
\input bg_anh_1857_02_ck.txt
\input bg_anh_1857_03_ck.txt
\input bg_anh_1857_04.txt
\input bg_anh_1857_05_ck.txt
\input bg_anh_1857_06_ck.txt
\input bg_anh_1857_07_ck.txt
\input bg_anh_1857_08_ck.txt
\input bg_anh_1857_09_ck.txt
\input bg_anh_1857_10.txt
\input bg_anh_1857_11_ck.txt
\input bg_anh_1857_12_ck.txt
\input bg_anh_1857_13.txt
\input bg_anh_1857_14_ck.txt
\input bg_anh_1857_15.txt
\input bg_anh_1857_16_nolig_ck.txt
\input bg_anh_1857_17_ck.txt
\input bg_anh_1857_18_nolig_ck.txt
\input bg_anh_1857_19_ck.txt
\input bg_anh_1857_20_ck.txt
\input bg_anh_1857_21_ck.txt
\input bg_anh_1857_22_ck.txt
\input bg_anh_1857_23_ck.txt
\input bg_anh_1857_24_ck.txt
\input bg_anh_1857_25.txt
\input bg_anh_1857_26_ck.txt
\input bg_anh_1857_27_ck.txt
\input bg_anh_1857_28_nolig_ck.txt
\end{document}