Latex Frequently used commands Part -1

1. How to bold a particular text?

\textbf{The text you want to Bold}

2. How to insert line breaks?

a. \\ %{two backslashes}
b. \newline
c. \hfill \break

3. How to insert hyperlinks?

Put \usepackage{hyperref} in your header, and when you want to link to a page, use the following command:

\href{URL}{Anchor Text}

4. If you get *.sty not found in Windows?

Method 1: 

1. Win + R
2. Type mpm to start miketex package manager
3. Find the package you want to install , and install the corresponding package.

The second method is used when you  manually download the file and install it.

Method 2:

1. Create a folder named C:\tex-packages.
2. Copy the following files to the folder C:\tex-packages,


3. Now copy any packages you need from http://www.ctan.org/tex-archive/systems/win32/miktex/tm/packages to your local folder C:\tex-packages.
4. Update your Miketex system: Start-> Programs -> Miketex -> Maintenance(Admin) -> Settings(Admin)
Go to the tab "Package Repository" and choose the folder C:\tex-packages
and click Apply.

5. Go to the miketex package manager and repository select the local one and install it


Comments