I'm using texmaker (on OS X Mavericks). This is my first report I'm writing with LaTeX so I'm not that quite familiar with LaTeX.
I get a strange behaviour but do not have any clue how to move on...
This is a minimal example:
Code: Select all
\documentclass[12pt,english,a4paper,oneside]{scrreprt}
\usepackage{babel}
\makeatletter
\renewcommand{\@makechapterhead}[1]{
\vspace*{4 pt}
{{\setlength{\parindent}{0 pt}
\raggedright \LARGE \chaptername~\thechapter
}
{\setlength{\parindent}{0 pt}
\raggedright \huge \bfseries #1
}}
\vspace{30 mm}
}
\makeatother
\usepackage[numbered]{mcode}
\begin{document}
\chapter{Test}
Here is a reference to appendix: \ref{appendix:data}. Hello World!
\begin{appendix}
\chapter{Data}
\label{appendix:data}
Test
\end{appendix}
\end{document}
If I delete the line \usepackage{mcode} everything is good except for my custom header style. But with this line, there are two things bothering me:
- see attached screenshot: there's a little "chapter" before my "Chapter 1"
- the reference to the appendix is not printed, there should a "(...) appendix: A. Hello world!"
I tried to extract code from mcode.sty into my example (what I think LaTeX is processing within). But than everything is good, no little "chapter", no missing reference.
Can anyone assist? That would be awesome!