Mac par LaTeX document banana kuch kadam ka kaam hai. Ye rahi shuru karne ke liye step-by-step guide:

1. Ek TeX Distribution Install Karen:

Ek TeX distribution mein LaTeX documents ko compile karne ke liye zaroori tools aur binaries hote hain. macOS ke liye, sabse popular distribution MacTeX hai.

  1. MacTeX website par jaen: http://www.tug.org/mactex/
  2. Latest MacTeX distribution download karen.
  3. Download ho jaane par, installation process shuru karne ke liye .pkg file ko open karen aur screen par dikhaye gaye instructions ko follow karen.

2. Ek LaTeX Editor Install Karen:

Jabki aap LaTeX code likhne ke liye kisi bhi text editor ka use kar sakte hain, dedicated LaTeX editor ka use karna convenient hota hai kyunki wo typically syntax highlighting, live preview, aur integrated compilation jaisi features offer karte hain. macOS ke liye kuch popular options mein shamil hain:

  • TeXShop: Ye MacTeX distribution ke saath aata hai. Ye ek basic, user-friendly editor hai aur beginners ke liye bahut achha hai.
  • TeXstudio: Ye ek feature-rich aur open-source editor hai jo macOS sahit various platforms ke liye available hai.
  • Overleaf: Ye ek standalone editor nahi balki ek online platform hai. Ye collaborative writing ke liye bahut achha hai.

3. Apna Pehla LaTeX Document Banaen:

Is example ke liye, main TeXShop ka use karke process describe karunga:

  1. TeXShop open karen.
  2. Ek naya document shuru karen.
  3. Niche diye gaye sample LaTeX code ko likhen ya paste karen:
\documentclass[12pt]{article}
\usepackage{amsmath}

	itle{Mera Pehla LaTeX Document}
\author{Aapka Naam}
\date{	oday}

\begin{document}
    \maketitle
    \section{Introduction}
    Mac par mere pehle LaTeX document mein aapka swagat hai!
    \section{Equations}
    Ye raha quadratic formula:
    \[
    x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}
    \]
\end{document}
  1. File ko .tex extension ke saath save karen.
  2. TeXShop mein, document ko compile karne ke liye “Typeset” button par click karen. Isse ek PDF output produce hoga.

Bas itna hi! Aapne Mac par apna pehla LaTeX document bana aur compile kar liya hai. Jaise-jaise aap LaTeX ke aadi hote jaenge, aapko apne documents ko apni marzi ke anusaar format aur structure karne mein madad karne ke liye available packages aur tools ka ek bhandar milega.