Chào mừng quý vị đến với Thầy giáo làng.
Các lệnh latex
Các thủ thuật Latex
- Goi lệnh tạo tạo watermark cho latex đã tim được 2 cách sau:
+ Cách 1: nếu la kiểu : \documentclass[11pt,twoside]{article}
Thì dùng khai báo: \AddToShipoutPicture{\AtTextCenter{\makebox(0,0)[c]{\resizebox{\textwidth}{!}{\rotatebox{60}{\textsf{\textbf{\color{lightgray}Nguyễn Tài Tuệ}}}}}}}
Cụ thể :
\documentclass[11pt,twoside]{article}
\usepackage[centertags]{amsmath}
\usepackage[utf8]{vietnam}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\usepackage[left=20mm,right=15mm,top=10mm,bottom=15mm,a4paper]{geometry}
\renewcommand{\baselinestretch}{1.5} % lệnh dãn cách các dòng
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead[]{}\chead[]{}\rhead[]{}
\lfoot[\thepage]{ Giáo Viên:Nguyễn Tài Tuệ }\cfoot[]{}\rfoot[Giáo Viên: Nguyễn Tài Tuệ ]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\usepackage{fancyhdr}
\usepackage[unicode]{hyperref}
\hypersetup{colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=blue}
\usepackage{wallpaper}
\newtheorem{bt}{{Bài Tập} }
\newcommand{\chm}{\textbf{\textit{Chứng minh:}}}
\newcommand{\lgi}{\textbf{\textit{Lời giải:}}}
\newcommand{\gi}{\textbf{\textit{Giải:}}}
\newcommand{\chy}{\textbf{\textit{Chú ý:}}}
\newcommand{\bpf}{\begin{proof}[\chm]}
\newcommand{\epf}{\end{proof}}
\newcommand{\bdly}{\begin{theorem}}
\newcommand{\edly}{\end{theorem}}
\newcommand{\bmc}{\begin{multicols}{2}}
\newcommand{\emc}{\end{multicols}}
\newcommand{\cl}[1]{\centerline{#1}}
\newcommand{\hop}[1]{\noindent\begin{tabular}{|p{0.97\textwidth}|}\hline\begin{minipage}{0.96\textwidth}
{#1}
\end{minipage}\\ \hline \end{tabular}}
\font\abc=ugqbo8v at 17pt
\numberwithin{equation}{section}
\setcounter{page}{1}
\def\headrulewidth{0pt}
\begin{document}
\AddToShipoutPicture{\AtTextCenter{\makebox(0,0)[c]{\resizebox{\textwidth}{!}{\rotatebox{60}{\textsf{\textbf{\color{lightgray}Nguyễn Tài Tuệ}}}}}}}
\end{document}
+Cách 2 : Nếu kiểu : \documentclass[10pt,a4paper,openany,oneside]{report}
Thì dung mã
\usepackage{draftwatermark}
%\usepackage[firstpage]{draftwatermark}
\SetWatermarkText{Nguyễn Tài Tuệ}
\SetWatermarkLightness{0.5}
%\SetWatermarkScale{1.7}
\SetWatermarkAngle{45}
\SetWatermarkFontSize{80pt}
CỤ thể
\documentclass[10pt,a4paper,openany,oneside]{report}
\usepackage{amsmath, amsthm, amssymb,amsxtra,latexsym,amscd,graphics,graphpap,makeidx}
\usepackage{array,tabularx,longtable,multicol,indentfirst}%
\usepackage[mathscr]{eucal}
\usepackage[utf8]{vietnam}
\usepackage[top=2.3cm, bottom=2.5cm, left=3cm, right=2cm] {geometry}
\usepackage{fancyhdr}
\usepackage{draftwatermark}
%\usepackage[firstpage]{draftwatermark}
\SetWatermarkText{Nguyễn Tài Tuệ}
\SetWatermarkLightness{0.8}
%\SetWatermarkScale{1.7}
\SetWatermarkAngle{45}
\SetWatermarkFontSize{80pt}
% trongđóangle : là góc nghiêng của chữ, fonts kick cỡ phông, đạm nhạt của chứ : lighness
\pagestyle{fancy}
\lhead[]{}\chead[]{}\rhead[]{}
\lfoot[\thepage]{ Giáo Viên:Nguyễn Tài Tuệ }\cfoot[]{}\rfoot[Giáo Viên: Nguyễn Tài Tuệ ]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%========================================================================âmmoo ô
%--------------------Định dạng đánh số đầu trang-----------------------
\makeatletter
\renewcommand{\ps@plain}{
\renewcommand{\@oddhead}{\hfil{\thepage}\hfil}
\renewcommand{\@evenhead}{\@oddhead}
\renewcommand{\@oddfoot}{\empty}
\renewcommand{\@evenfoot}{\@oddfoot} }
\makeatother\pagestyle{plain}
\newcommand{\R}{\mathbb R}
\newcommand{\N}{\mathbb N}
\newcommand{\C}{\mathbb C}
\newcommand{\Z}{\mathbb Z}
\newcommand{\Q}{\mathbb Q}
%-----------------------------------------------------------------------
\newtheorem{dl}{Định lý}[chapter]
\newtheorem{dn}{Định nghĩa}[chapter]
\newtheorem{bt}{Bài toán}[chapter]
\newtheorem{bta}{Bài tập}[chapter]
\newtheorem{tc}{Tính chất}[chapter]
\newtheorem{md}{Mệnh đề}[chapter]
\newtheorem{bd}{Bổ đề}[chapter]
\newtheorem{hq}{Hệ quả}[chapter]
\newtheorem{nx}{Nhận xét}[chapter]
\newtheorem{cy}{Chú ý}[chapter]
\newtheorem{vd}{Ví dụ}[chapter]
\renewcommand{\chaptername}{Chương}
\renewcommand\bibname{Tài liệu tham khảo}
\def\en{\enskip}
\def\n{\noindent}
\def\m{\medskip}
\def\RR{\mathbb R}
\def\NN{\mathbb N}
\def\const{\mbox{\rm const }}
\def\RR{{{\mathbb R}}}
\def\CC{{{\mathbb C}}}
\def\NN{{{\mathbb N}}}
\def\LL{{{\mathbb L}}}
\def\QQ{{{\mathbb Q}}}
\def\ZZ{{{\mathbb Z}}}
\def \sign {\mbox{ sign\,}}
\def \ch {\cosh }
\def \sh {\sinh }
\def \arctan {\hbox{\rm arctan }}
\def\hcm{\hfill $\square$\\}
\begin{document}
\end{document}
2. Thủ thuật và gói lện chia thành nhiều cột
Luu ys trong khai bao o treen phai co :
\usepackage{multicol}
Cách 1: Câu lênh:
\begin{multicols}{3} % sô 3 chính là cột
\begin{enumerate}
\item anh
\item yeu
\item em
\end{enumerate}
\end{multicols}
Cách 2:
2. Khai bao chuan cua toi trong latex
\documentclass[13pt,twoside]{article}
\usepackage[centertags]{amsmath}
\usepackage[utf8]{vietnam}
\usepackage{multicol}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\usepackage[left=20mm,right=15mm,top=10mm,bottom=15mm,a4paper]{geometry}
\renewcommand{\baselinestretch}{1.2}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead[]{}\chead[]{}\rhead[]{}
\lfoot[\thepage]{Ths Nguyễn Tài Tuệ - Lương Thế Vinh -NamĐịnh }\cfoot[]{}\rfoot[Ths Nguyễn Tài Tuệ -NamĐịnh]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\usepackage{fancyhdr}
\usepackage[unicode]{hyperref}
\hypersetup{colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=blue}
\usepackage{wallpaper}
\newtheorem{bt}{Bài Tập}
\newcommand{\chm}{\textbf{\textit{Chứng minh:}}}
\newcommand{\lgi}{\textbf{\textit{Lời giải:}}}
\newcommand{\gi}{\textbf{\textit{Giải:}}}
\newcommand{\chy}{\textbf{\textit{Chú ý:}}}
\newcommand{\bpf}{\begin{proof}[\chm]}
\newcommand{\epf}{\end{proof}}
\newcommand{\bdly}{\begin{theorem}}
\newcommand{\edly}{\end{theorem}}
\newcommand{\bmc}{\begin{multicols}{2}}
\newcommand{\emc}{\end{multicols}}
\newcommand{\cl}[1]{\centerline{#1}}
\newcommand{\hop}[1]{\noindent\begin{tabular}{|p{0.97\textwidth}|}\hline\begin{minipage}{0.96\textwidth}
{#1}
\end{minipage}\\ \hline \end{tabular}}
\font\abc=ugqbo8v at 17pt
\numberwithin{equation}{section}
\setcounter{page}{1}
\def\headrulewidth{0pt}
\begin{document}
3. các kí hieuj trong latex
Sau đây là các lệnh cơ bản và gõ được trong trang Web này.
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\le |
\ge |
\neq |
|||
|
\sim |
\ll |
\gg |
|||
|
\doteq |
\simeq |
\subset |
|||
|
\supset |
\approx |
\asymp |
|||
|
\subseteq |
\supseteq |
\cong |
|||
|
\smile |
\sqsubset |
\sqsupset |
|||
|
\equiv |
\frown |
\sqsubseteq |
|||
|
\sqsupseteq |
\propto |
\bowtie |
|||
|
\in |
\ni |
\prec |
|||
|
\succ |
\vdash |
\dashv |
|||
|
\preceq |
\succeq |
\models |
|||
|
\perp |
\parallel |
\| |
|||
|
\mid |
|
|
|
|
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\nmid |
\nleq |
\ngeq |
|||
|
\nsim |
\ncong |
\nparallel |
|||
|
\not< |
\not> |
\not= |
|||
|
\not\le |
\not\ge |
\not\sim |
|||
|
\not\approx |
\not\cong |
\not\equiv |
|||
|
\not\parallel |
\nless |
\ngtr |
|||
|
\lneq |
\gneq |
\lnsim |
|||
|
\lneqq |
\gneqq |
|
|
Chữ cái Hy Lạp
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\alpha |
\beta |
\gamma |
\delta |
||||
|
\epsilon |
\varepsilon |
\zeta |
\eta |
||||
|
\theta |
\vartheta |
\iota |
\kappa |
||||
|
\lambda |
\mu |
\nu |
\xi |
||||
|
\pi |
\varpi |
\rho |
\varrho |
||||
|
\sigma |
\varsigma |
\tau |
\upsilon |
||||
|
\phi |
\varphi |
\chi |
\psi |
||||
|
\omega |
|
|
|
|
|
|
Chữ Hy Lạp hoa
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\Gamma |
\Delta |
\Theta |
\Lambda |
||||
|
\Xi |
\Pi |
\Sigma |
\Upsilon |
||||
|
\Phi |
\Psi |
|
|
|
|
Các mũi tên
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\gets |
\to |
||
|
\leftarrow |
\Leftarrow |
||
|
\rightarrow |
\Rightarrow |
||
|
\leftrightarrow |
\Leftrightarrow |
||
|
\mapsto |
\hookleftarrow |
||
|
\leftharpoonup |
\leftharpoondown |
||
|
\rightleftharpoons |
\longleftarrow |
||
|
\Longleftarrow |
\longrightarrow |
||
|
\Longrightarrow |
\longleftrightarrow |
||
|
\Longleftrightarrow |
\longmapsto |
||
|
\hookrightarrow |
\rightharpoonup |
||
|
\rightharpoondown |
\leadsto |
||
|
\uparrow |
\Uparrow |
||
|
\downarrow |
\Downarrow |
||
|
\updownarrow |
\Updownarrow |
||
|
\nearrow |
\searrow |
||
|
\swarrow |
\nwarrow |
Các dấu chấm
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\ldots 2 |
\vdots |
\cdots 2 |
\ddots |
Dấu mũ
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\hat{x} |
\check{x} |
\dot{x} |
|||
|
\breve{x} |
\acute{x} |
\ddot{x} |
|||
|
\grave{x} |
\tilde{x} |
\mathring{x} |
|||
|
\bar{x} |
\vec{x} |
|
|
Dấu trên i và j
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\vec{\jmath} |
\tilde{\imath} |
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\widehat{3+x} |
\widetilde{abc} |
Kí hiệu khác
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\infty |
\triangle |
\angle |
|||
|
\aleph |
\hbar |
\imath |
|||
|
\jmath |
\ell |
\wp |
|||
|
\Re |
\Im |
\mho |
|||
|
\prime |
\emptyset |
\nabla |
|||
|
\surd |
\partial |
\top |
|||
|
\bot |
\vdash |
\dashv |
|||
|
\forall |
\exists |
\neg |
|||
|
\flat |
\natural |
\sharp |
|||
|
\backslash |
\Box |
\Diamond |
|||
|
\clubsuit |
\diamondsuit |
\heartsuit |
|||
|
\spadesuit |
\Join |
\blacksquare |
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\{ |
\} |
\| |
|||
|
\backslash |
\lfloor |
\rfloor |
|||
|
\lceil |
\rceil |
\langle |
|||
|
\rangle |
|
|
|
|
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\uparrow |
\downarrow |
\updownarrow |
|||
|
\Uparrow |
\Downarrow |
\Updownarrow |
|
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
Kí hiệu |
Lệnh |
|
\sum |
\int |
\oint |
|||
|
\prod |
\coprod |
\bigcap |
|||
|
\bigcup |
\bigsqcup |
\bigvee |
|||
|
\bigwedge |
\bigodot |
\bigotimes |
|||
|
\bigoplus |
\biguplus |
|
|
Đánh chữ trong $ thì dung lệnh \mbox{ văn bản}$
Lện tạo hộp : \hop
Khoảng cạh: Cho nên tự giải quyết bằng cách chèn hình xong, sử dụng \vspace{...} [... là khoảng cách bao nhiu cm
Tạo hai cột:
Dùng align cũng sử dụng được khi gõ nhiều phương trình mà để hai cột
Ví dụ
\begin{align} \cos^2x+\sin^2x & = 1 & \cosh^2x-\sinh^2x & = 1\\ \cos^2x-\sin^2x & = \cos 2x & \cosh^2x+\sinh^2x & = \cosh 2x \end{align}
Kết quả
Ngoài ra có thể dùng các lệnh sau để gõ công thức gồm nhiều dòng và đánh số theo nhu cầu
\[\begin{split} code \end{split}\]
và
\begin{multline} code \end{multine}
Tạo một đường kẻ ngang trong latex thì dùng lệnh
\hrule
+ Lệnh tao cột
Khai báo:
\usepackage{multicol}
\setlength{\columnseprule}{0.7 pt}% nếu không có cái này thì không có đưogn kẻ ở giũa
Trong bài thì:
\begin{multicols}{3}
Văn bản
\end{multicols}
Nguyễn Tài Tuệ @ 00:07 10/07/2012
Số lượt xem: 4249
Các ý kiến mới nhất