\newcomand로 인해 오류가 발생함

\newcomand로 인해 오류가 발생함

저는 Latex를 처음 접하므로 설명을 쉽게 해주시기 바랍니다. ;) 저는 miktex에서 최신 라텍스 버전을 사용하고 있습니다.

오늘 몇 가지를 시도했는데 \newcommand다음 명령에서 오류가 발생했습니다 \newcommand{\N0}{ n_{0} }. 이 명령을 삭제하면 오류가 사라지므로 버그인 것 같습니다. 하지만 Windows 사용자로서 나는 대부분의 경우 문제가 PC 앞에 있다는 것을 알고 있습니다. 오류 메시지는 다음과 같습니다.

! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.34 \newcommand{\N0}[1]{ n_{0} }
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Missing $ inserted.
<inserted text>
$
l.34 \newcommand{\N0}[1]{ n_{0} }
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
LaTeX Font Info: Try loading font information for U+msa on input line 34.
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\umsa.fd"
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
)
LaTeX Font Info: Try loading font information for U+msb on input line 34.
("C:\Program Files\MiKTeX 2.9\tex\latex\amsfonts\umsb.fd"
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
)
! Extra }, or forgotten $.
\@argdef ...definable #1{\@yargdef #1\@ne {#2}{#3}
}
l.34 \newcommand{\N0}[1]{ n_{0} }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Extra }, or forgotten $.
\@argdef ...efinable #1{\@yargdef #1\@ne {#2}{#3}}
l.34 \newcommand{\N0}[1]{ n_{0} }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
! Missing $ inserted.
<inserted text>
$
l.36
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
("C:\Users\Daniel\Dropbox\Uni\03 SS 2015\ANA\LATEX Skript\ANA-Skript.aux")
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 37.
LaTeX Font Info: ... okay on input line 37.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 37.
LaTeX Font Info: ... okay on input line 37.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 37.
LaTeX Font Info: ... okay on input line 37.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 37.
LaTeX Font Info: ... okay on input line 37.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 37.
LaTeX Font Info: ... okay on input line 37.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 37.
LaTeX Font Info: ... okay on input line 37.
("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count104
\scratchdimen=\dimen116
\scratchbox=\box30
\nofMPsegments=\count105
\nofMParguments=\count106
\everyMPshowfont=\toks23
\MPscratchCnt=\count107
\MPscratchDim=\dimen117
\MPnumerator=\count108
\makeMPintoPDFobject=\count109
\everyMPtoPDFconversion=\toks24
)
LaTeX Font Info: Try loading font information for T1+cmss on input line 39.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1cmss.fd"
File: t1cmss.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info: Try loading font information for OMS+cmr on input line 52.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\omscmr.fd"
File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available
(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 52.

그래서 저는 이것이 무슨 말인지 전혀 모릅니다. 제 라텍스 문서가 여기에 있습니다:

\documentclass[a4paper, 10pt]{scrreprt}

\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{enumitem}
\usepackage{xcolor}
\usepackage{graphicx} 

\title{Erstes Dokument}
\author{ich}
\date{2015}


\newcommand{\changefont}[3]{
\fontfamily{#1} \fontseries{#2} \fontshape{#3} \selectfont}
%Modifikationen
\changefont{ppl}{m}{n}
\parindent 0pt
\parskip 9pt
%Mathematische Kommandos und Abkürzungen
\newcommand{\<}{\lbrace}
\renewcommand{\>}{\rbrace}
\newcommand{\NEN}{n \in \mathbb{N}}
\newcommand{\FANEN}{\< a_{n} \> _{\NEN}}
\newcommand{\FBNEN}{\< b_{n} \> _{\NEN}}
\newcommand{\FGNEN}{\< g_{n} \> _{\NEN}}
\newcommand{\FAKEN}{\< a_{k} \> _{\NEN}}
\newcommand{\FNKEN}{\< n_{k} \> _{\NEN}}
\newcommand{\AN}{ a_{n} }
\newcommand{\BN}{ b_{n} }
\newcommand{\AK}{ a_{k} }
\newcommand{\N0}{ n_{0} }
\newcommand{\NF}{Nullfolge }

\begin{document}
.
.
.

답변1

명령에는 (일반적으로) 숫자가 포함될 수 없습니다. 대신 Noor NO(소문자 및 대문자 'o')를 정의해 보세요 .

\NNo내 서문에서 나는 예 를 들어 정의했습니다 \mathbb N_0.

관련 정보