ݺߣ

ݺߣShare a Scribd company logo
LaTeX آشنایی با
2
‫‌چینی‬‫ف‬‫تاریخچه‌حرو‬
●‌‫‌‌مخترع‌صنعت‌چاپ‬)‫(یوهانس‌گوتنبرگ‬
●‫‌چینی‬‫ف‬‫‌تعریف‌حرو‬(‌Typesettings)
●‫‌چینی‌سرد‬‫ف‬‫انقلب‌صنعتی،‌حرو‬
●‫‌ای‬‫ه‬‫‌چینی‌رایان‬‫ف‬‫‌حرو‬
●‫‌چینی‌متون‌ریاضی‬‫ف‬‫‌حرو‬
‌‫←‌به‌عنوان‌جریمه‌کارکنان‌چاپخانه‬
●‌‫‌پیدایش‬TeX‫‌و‌توسعه‌آن‬
Donald Knuth
3
What is TeX?
●‌‫شامل‬۳۰۰‫‌فرمان‌پایه‬
●‌‫بعدها‬۶۰۰‌‫‌فرمان‌دیگر‌تحت‌عنوان‬Plain‌Tex
●‫مجوز‌نرم‌افزار‌آزاد‌و‌متن‌باز‬
➔
/ˈtɛx/ or /ˈtɛk/
➔
A typesetting system (or "formatting system")
➔
Designed and mostly written by Donald Knuth
➔
Started in 1978
➔
Ended in 1989
➔
Free software
➔
WEB/Pascal
➔
Cross-platform
➔
Low-Level Language
4
Free TeX Distributions
●
TeX Live
●
teTeX
●
fpTeX
●
MiKTeX
●
ProTeXt
●
MacTeX
●
gwTeX
●
OzTeX
●
AmigaTeX
●
PasTeX
●
...
5
‫خانواده‬TeX
6
What is LaTeX?
✔‌‫‌مخفف‬Lamport‌TeX
✔‌‫چینی‌نوشتار‬‫چ‬‌‫ف‬‫‌سازی‌و‌حرو‬‫ه‬‫‌ی‌آماد‬‫ه‬‫‌یک‌سامان‬
‌‫چ‬‫ه‬‫بر‌پای‬TEX
✔‌‫‌یک‬Markup‌Language‌‫‌مثل‬HTML‌،XML‌‫‌یا‬
RTF
✔‌‫‌یک‌اکستنشن‌برای‬TeX
✔‌‫و‬‌‫ی‬ ‫‌به‌طور‌گسترده‌برای‌تولید‌متون‌علم‬
‫تخصصی‬
✔‌‫‌آخرین‌ورژن‌استیبل‬LaTeX2e
✔‌‫‌ورژن‌در‌حال‌توسعه‬LaTeX3e‌‫‌(از‌سال‬۲۰۱۴)
✔(‌‫‌مجوز‬LPPL)Leslie Lamport
7
What is LaTeX?
‫بسته‬ ‫فراخوانی‬ ‫قابلیت‬ ●‌‫ی‬‫‌از‌توانای‬ ‫‌برای‌استفاده‬ ‫یک‌زبان‌سطح‌با‬
‌‫های‬TeX
●‌‫هر‌دستور‬LaTeX‌‫ز‬‫‌ا‬ ‫‌ای‌پیچیده‬‫ه‬‫‌=‌مجموع‬
‌‫دستورات‬TeX
●‫تمرکز‌بر‌روی‌محتوا‌نه‌ساختار‌ظاهری‌متن‬
Layout
Management
Content
Management
8
LaTeX is not a word processor!
9
‌‫فارسی‌نویسی‌با‬TeX
XePersian
usepackage{xepersian}
settextfont{Shabnam}
10
LaTeX Editors
●
Vim with LaTeX-suit
●
TexMaker
●
TeXStudio
●
TeXworks
●
TeXlipse
●
TeXpen
●
TeXnic Center
●
ShareLaTeX
●
Overleaf
●
Authorea
●
…
The list is toooooo long !!!
11
LaTeX: The File Structure

Document Class
Predefined Formats (article, report, book,...).

Packages used
Added Functionality (graphics, reference style,...).

Main Body
●
Text and Bibliography References.
12
LaTeX: The Basics
Document Class
documentclass[options]{class}
options = a4paper, 11pt, 12pt, 10pt, twocolumn, landscape,...
class = article, report, book,…
Packages
usepackage{package name}
Ex:
epsfig = insert PS pictures into the document
fancyhdr = easy definition of footer and header
13
Hello World!
sample.tex
-----------------
documentclass{article}
begin{document}
Hello World!
end{document}
14
Title
sample.tex
-----------------
documentclass{article}
title{My first document}
date{2017-Nov-12}
author{Marie Behzadi}
begin{document}
maketitle
newpage
Hello World!
end{document}
15
‫دستورات‌کاربردی‬
chapter{…}
(With book and report classes only)
 or newline
section{...} newpage
subsection{...} textbf{…} or bf
subsubsection{...} emph{...} or textit{...} or it
paragraph{...} underline{...} or ul
subparagraph{...} tableofcontents
listoftables
input{filename.tex} listoffigures
16
Chapter, Section, Subsection, ...
sample.tex
-----------------
documentclass{book}
title{My document}
date{2017-Nov-12}
author{Marie Behzadi}
begin{document}
maketitle
chapter{first chapter}
section{first section}
subsection{first subsection}
subsubsection{first subsubsection}
subsection{second subsection}
subsection{third subsection}
section{second section}
end{document}
17
Lists
begin{enumerate}
item First thing
item Second thing
begin{itemize}
item A sub-thing
item Another sub-thing
end{itemize}
item Third thing
end{enumerate}
18
Figures
usepackage{graphicx}
begin{figure}[h!]
centering
includegraphics[width=1textwidth]{shirazlug_logo.png}
caption{My test image}
end{figure}
19
Tables
begin{tabular}{...}
…
end{tabular}
● l: a column of left-aligned text
● r: a column of right-aligned text
● c: a column of center-aligned text
● : vertical line|
● hline: horizontal line
● cline: partial horizontal line
20
Tables
begin{tabular}{|r|l|}
hline
8 & here’s 
cline{2-2}
86 & stuff 
hline hline
2008 & now 
hline
end{tabular}
21
Equations

Use $...$ for math mode

For a numbered displayed equation
begin{equation}
…
end{equation}

For a series of equations
begin{eqnarray}
…
end{eqnarray}
22
‫ت‌ریاضی‬ ‫دستورات‌کاربردی‌در‌معاد‬
^ for Powers n^2
_ for Indices a_2
{…} for grouping b_{a-2}
Fractions frac{a}{3}
Square root sqrt{y^2} or sqrt[x]{y^2}
Sum sum_{x=1}^5 y^z
Integral int_a^b f(x)
23
Greek Letters
24
Equations
begin{equation}
int_0^infty e^{-x^2}
dx=frac{sqrt{pi}}{2}
end{equation}
begin{eqnarray*}
e^x & approx & 1+x+x^2/2! + 
&& +x^3/3! + x^4/4! + 
&& + x^5/5!
end{eqnarray*}
25
References
●
Create a BibTeX file (.bib)
●
The same name as your .tex file
●
The same folder as your .tex file
●
BibTeX file is Plain Text
●
Use cite{citationkey, citationkey, ...}
:‫‌شوند‬‫ی‬‫‌در‌انتهای‌فایل‌اضافه‌م‬ ‫این‌دستورات‌معمو‬
●
bibliographystyle{… stylename ...}
●
bibliography{… filename ...}
26
‫منابع‬
mariebehzadi@gmail.com

More Related Content

LaTeX آشنایی با