Loading web-font TeX/Math/Italic




28/3/15

bùi sang thọ | 28.3.15 | |

\LaTeX là một cỗ máy tự động. Nếu chúng ta biết cách thiết lập thì cỗ máy này thực hiện cho chúng ta rất nhiều điều. Bài viết này hướng dẫn các bạn tạo các môi trường như Định nghĩa, định lý ,...trong LaTeX.
1. Bạn phải khai báo trong file TeX như sau
\usepackage[amsmath,standard,thmmarks]{ntheorem}
2. Bạn chèn các dòng lệnh sau trước  \begin{document}
%Môi trường Định lý
\theoremstyle{plain} 
\theoremheaderfont{\normalfont\bfseries} 
\theorembodyfont{\slshape} 
\theoremseparator {.}         
\renewtheorem{theorem}{Định lý}[chapter] 
\newcommand{\dly}[1]{\begin{theorem}#1\end{theorem}}

%Môi trường Hệ quả
\theoremstyle{plain} 
\theoremheaderfont{\normalfont\bfseries} 
\theorembodyfont{\slshape} 
\theoremseparator {.}         
\renewtheorem{corollary}{Hệ quả}[chapter] 
\newcommand{\hqu}[1]{\begin{corollary}#1\end{corollary}}

%Môi trường Định nghĩa
\theoremstyle{plain} 
\theoremheaderfont{\bfseries} 
\theorembodyfont{\normalfont} 
\theoremseparator {.}         
\renewtheorem{definition}{Định nghĩa}[chapter] 
\newcommand{\dng}[1]{\begin{definition}#1\end{definition}}

%Môi trường Ví dụ
\theoremstyle{plain} 
\theoremheaderfont{\normalfont\bfseries} 
\theorembodyfont{\slshape} 
\theoremseparator {.}         
\renewtheorem{example}{Ví dụ}[chapter] .
\newcommand{\vdu}[1]{\begin{example}#1\end{example}}

%Môi trường Chứng minh
\theoremstyle{nonumberplain} 
\theoremheaderfont{\bfseries\slshape} 
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{_\blacksquare}} 
\renewtheorem{proof}{Chứng minh}
\newcommand{\chm}[1]{\begin{proof}#1\end{proof}}

%Môi trường Lời giải
\theoremstyle{nonumberplain} 
\theoremheaderfont{\bfseries\slshape} 
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{_\square}} 
\newtheorem{solution}{Lời giải}
\newcommand{\lgi}[1]{\begin{solution}#1\end{solution}}

%Môi trường Bài tập
\theoremstyle{plain} 
\theoremheaderfont{\bfseries} 
\theorembodyfont{\normalfont} 
\theoremseparator {.}         
\theoremsymbol{\NoEndMark} 
\newtheorem{exercise}{Bài tập}[chapter]
\newcommand{\btp}[1]{\begin{exercise}#1\end{exercise}}

%Môi trường Nhận xét
\theoremstyle{plain} 
\theoremheaderfont{\bfseries} 
\theorembodyfont{\normalfont} 
\theoremseparator {.}         
\theoremsymbol{\NoEndMark} 
\renewtheorem{remark}{Nhận xét}[chapter] 
\newcommand{\nhx}[1]{\begin{remark}#1\end{remark}}
Vậy là xong! Sau này sử dụng bạn sẽ có các Định nghĩa, định lý,...được đánh số hoàn toàn tự động.