! LaTeX Error: The font size command \normalsize is not defined:

1 개요[ | ]

! LaTeX Error: The font size command \normalsize is not defined:

2 tex 예시[ | ]

\begin{document}
Hello world!
\end{document}
\documentclass{article} 없으면 오류
\documentclass{article}
\begin{document}
Hello world!
\end{document}
→ 앞에 \documentclass{article} 추가하면 해결된다.

3 쉘 실행예시[ | ]

root@localhost:/data# cat a.tex
\begin{document}
Hello world!
\end{document}
root@localhost:/data# pdflatex -halt-on-error a.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./a.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(/opt/texlive/texdir/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
(./a.aux)

! LaTeX Error: The font size command \normalsize is not defined:
               there is probably something wrong with the class file.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.1 \begin{document}
                    
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on a.log.
root@localhost:/data# cat b.tex
\documentclass{article}
\begin{document}
Hello world!
\end{document}
root@localhost:/data# pdflatex -halt-on-error b.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./b.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(/opt/texlive/texdir/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/opt/texlive/texdir/texmf-dist/tex/latex/base/size10.clo))
(/opt/texlive/texdir/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
(./b.aux) [1{/opt/texlive/texdir/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
 (./b.aux) )</opt/texlive/texdir/texmf-dist/fonts/type1/public/amsfonts/cm/cmr1
0.pfb>
Output written on b.pdf (1 page, 11915 bytes).
Transcript written on b.log.

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}