Code: Select all
documentclass {article}
\newcommand {\keyword}{1}{\textbf{#1}}
\begin {document}
\keyword{Grouping} by curly braces limits the
\keyword{scope} of \keyword{declarations}
\end {document}
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 2.9.7440 64-bit)
entering extended mode
("Page 42.tex"
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-05-15>
("C:\Program Files\MikTex\tex/latex/base\article.cls"
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
("C:\Program Files\MikTex\tex/latex/base\size10.clo"))
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.2 \newcommand {\keyword}{1}{\textbf{#1}
}
? [/doc]