Skip to main content
edited body
Source Link

I have the following code:

\documentclass[a4paper,12pt]{article} \renewcommand{\proofname}{\textbf{Beweis}} \newtheorem{Satz}{Satz}[section] \newtheorem{code}[Satz]{MATLAB-Code} \begin{document} \section*{Anhang} \renewcommand\thesection{\hspace{-1em}} \sectionmark{Anhang} \addcontentsline{toc}{section}{Anhang} \begin{code} ... \end{code} \end{document} 

The problem is that the number of the code overlaps with the word MATLAB-Code in the appendix (Anhang). I guess it has something to do that there is no section number for the appendix. How can I fix that? If I write

\newtheorem{code}{MATLAB-Code} 

then the number of the newtheorem and the word MATLAB-Code don't overlap, but then the codes get numberes from 1 on instead of using the chaptersection number. Thanks a lot!!!

I have the following code:

\documentclass[a4paper,12pt]{article} \renewcommand{\proofname}{\textbf{Beweis}} \newtheorem{Satz}{Satz}[section] \newtheorem{code}[Satz]{MATLAB-Code} \begin{document} \section*{Anhang} \renewcommand\thesection{\hspace{-1em}} \sectionmark{Anhang} \addcontentsline{toc}{section}{Anhang} \begin{code} ... \end{code} \end{document} 

The problem is that the number of the code overlaps with the word MATLAB-Code in the appendix (Anhang). I guess it has something to do that there is no section number for the appendix. How can I fix that? If I write

\newtheorem{code}{MATLAB-Code} 

then the number of the newtheorem and the word MATLAB-Code don't overlap, but then the codes get numberes from 1 on instead of using the chapter number. Thanks a lot!!!

I have the following code:

\documentclass[a4paper,12pt]{article} \renewcommand{\proofname}{\textbf{Beweis}} \newtheorem{Satz}{Satz}[section] \newtheorem{code}[Satz]{MATLAB-Code} \begin{document} \section*{Anhang} \renewcommand\thesection{\hspace{-1em}} \sectionmark{Anhang} \addcontentsline{toc}{section}{Anhang} \begin{code} ... \end{code} \end{document} 

The problem is that the number of the code overlaps with the word MATLAB-Code in the appendix (Anhang). I guess it has something to do that there is no section number for the appendix. How can I fix that? If I write

\newtheorem{code}{MATLAB-Code} 

then the number of the newtheorem and the word MATLAB-Code don't overlap, but then the codes get numberes from 1 on instead of using the section number. Thanks a lot!!!

added 1 characters in body
Source Link

I have the following code:

\documentclass[a4paper,12pt]{article} \renewcommand{\proofname}{\textbf{Beweis}} \newtheorem{Satz}{Satz}[section] \newtheorem{code}[Satz]{MATLAB-Code} \begin{document} section*\section*{Anhang} \renewcommand\thesection{\hspace{-1em}} \sectionmark{Anhang} \addcontentsline{toc}{section}{Anhang} \begin{code} ... \end{code} \end{document} 

The problem is that the number of the code overlaps with the word MATLAB-Code in the appendix (Anhang). I guess it has something to do that there is no section number for the appendix. How can I fix that? If I write

\newtheorem{code}{MATLAB-Code} 

then the number of the newtheorem and the word MATLAB-Code don't overlap, but then the codes get numberes from 1 on instead of using the chapter number. Thanks a lot!!!

I have the following code:

\documentclass[a4paper,12pt]{article} \renewcommand{\proofname}{\textbf{Beweis}} \newtheorem{Satz}{Satz}[section] \newtheorem{code}[Satz]{MATLAB-Code} \begin{document} section*{Anhang} \renewcommand\thesection{\hspace{-1em}} \sectionmark{Anhang} \addcontentsline{toc}{section}{Anhang} \begin{code} ... \end{code} \end{document} 

The problem is that the number of the code overlaps with the word MATLAB-Code in the appendix (Anhang). I guess it has something to do that there is no section number for the appendix. How can I fix that? If I write

\newtheorem{code}{MATLAB-Code} 

then the number of the newtheorem and the word MATLAB-Code don't overlap, but then the codes get numberes from 1 on instead of using the chapter number. Thanks a lot!!!

I have the following code:

\documentclass[a4paper,12pt]{article} \renewcommand{\proofname}{\textbf{Beweis}} \newtheorem{Satz}{Satz}[section] \newtheorem{code}[Satz]{MATLAB-Code} \begin{document} \section*{Anhang} \renewcommand\thesection{\hspace{-1em}} \sectionmark{Anhang} \addcontentsline{toc}{section}{Anhang} \begin{code} ... \end{code} \end{document} 

The problem is that the number of the code overlaps with the word MATLAB-Code in the appendix (Anhang). I guess it has something to do that there is no section number for the appendix. How can I fix that? If I write

\newtheorem{code}{MATLAB-Code} 

then the number of the newtheorem and the word MATLAB-Code don't overlap, but then the codes get numberes from 1 on instead of using the chapter number. Thanks a lot!!!

added 84 characters in body
Source Link

Number of newtheorem overlaps with newtheorem in the Appendix

I have the following code:

\documentclass[a4paper,12pt]{article} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt}} \renewcommand{\baselinestretch}{1.3} \renewcommand{\proofname}{\textbf{Beweis}} \newtheorem{Satz}{Satz}[section] \newtheorem{code}[Satz]{MATLAB-Code} \begin{document} section*{Anhang} \renewcommand\thesection{\hspace{-1em}} \sectionmark{Anhang} \addcontentsline{toc}{section}{Anhang} \begin{code} ... \end{code} \end{document} 

The problem is that the number of the code overlaps with the word MATLAB-Code in the appendix (Anhang). I guess it has something to do that there is no section number for the appendix. How can I fix that? If I write

\newtheorem{code}{MATLAB-Code} 

then the number of the newtheorem and the word MATLAB-Code don't overlap, but then the codes get numberes from 1 on instead of using the chapter number. Thanks a lot!!!

Number of newtheorem overlaps with newtheorem

I have the following code:

\documentclass[a4paper,12pt]{article} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt}} \renewcommand{\baselinestretch}{1.3} \renewcommand{\proofname}{\textbf{Beweis}} \newtheorem{Satz}{Satz}[section] \newtheorem{code}[Satz]{MATLAB-Code} \begin{document} \begin{code} ... \end{code} \end{document} 

The problem is that the number of the code overlaps with the word MATLAB-Code. How can I fix that? Thanks a lot!!!

Number of newtheorem overlaps with newtheorem in the Appendix

I have the following code:

\documentclass[a4paper,12pt]{article} \renewcommand{\proofname}{\textbf{Beweis}} \newtheorem{Satz}{Satz}[section] \newtheorem{code}[Satz]{MATLAB-Code} \begin{document} section*{Anhang} \renewcommand\thesection{\hspace{-1em}} \sectionmark{Anhang} \addcontentsline{toc}{section}{Anhang} \begin{code} ... \end{code} \end{document} 

The problem is that the number of the code overlaps with the word MATLAB-Code in the appendix (Anhang). I guess it has something to do that there is no section number for the appendix. How can I fix that? If I write

\newtheorem{code}{MATLAB-Code} 

then the number of the newtheorem and the word MATLAB-Code don't overlap, but then the codes get numberes from 1 on instead of using the chapter number. Thanks a lot!!!

added 171 characters in body
Source Link
Loading
Source Link
Loading