General ⇒ Problem whit reference to appendix with letters
Problem whit reference to appendix with letters
In my preable i have written:
\renewcommand{\appendixtocname}{Bilag}
\renewcommand{\appendixpagename}{Bilag}
\newlistentry{Bilag}{bilag}{0}
\newcommand{\Bilagnavn}{Bilag}
\newlistof{listofbilag}{bilag}{\Bilagnavn}
\addcontentsline{bilag}{Bilag}{Bilag \Alph{Bilag}: #1}}
\newcommand{\Bilag}[1]{\refstepcounter{Bilag}\chapter*{Bilag \Alph{Bilag}} \addcontentsline{bilag}{Bilag}{Bilag \Alph{Bilag}: #1}}
Are there someone who can help me so that my references in the text fits the actual name of the appendix?
Thanks in advance
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Problem whit reference to appendix with letters
However, a guess is that the following might do what you want:
Code: Select all
\renewcommand{\appendixtocname}{Bilag}
\renewcommand{\appendixpagename}{Bilag}
\newcommand{\Bilagnavn}{Bilag}
\newlistof{listofbilag}{bilag}{\Bilagnavn}
\newcommand{\Bilag}[1]{\refstepcounter{Bilag}\chapter*{Bilag \theBilag} \addcontentsline{bilag}{Bilag}{Bilag \theBilag: #1}}
\newlistentry{Bilag}{bilag}{0}
\renewcommand{\theBilag}{\Alph{Bilag}}