Latex packages installation offline
Install Miktex
You can download all packages from Miktex iso and use it as local repository.
Install packages
- Go to Your MiKTeX User Directory
C:\Users\ YourUsername>\ AppData\ Roaming\ MiKTeX.This is the default MiKTeX user TEXMF root. - nside the
MiKTeXfolder, manually create the following nested folders:tex\latex\floatso that full path looks likeC:\Users\ <YourUsername>\ AppData\ Roaming\ MiKTeX\ tex\ latex\ float - Find the
.styfile from the package you downloaded (e.g.,float.styfromfloat.zip), and copy it into the folder you just created: - Refresh MiKTeX’s File Name Database
. 1.Open MiKTeX Console from the Start Menu. 2. In the Tasks menu, click Refresh file name database. - You can run the program like
initexmf --update-fndb
- Restart TeXstudio
- Open or create a LaTeX file that uses the package.
\documentclass{article}
\usepackage{float}
\begin{document}
It works!
\end{document}
- Compile with
pdflatex. If you no longer get the "required file could not be found" error, then the package is installed correctly.
TexLive installation
Texlive is a better option for offline tex installation.
When you start installing on target PC, it will automatically start. If you choose full install it will install all 4813 packages. Therefore there is no need to install individual packages or check the dependancies or related packages individually.
This is highly recommended for TEX.
TeX IDE
Popular free IDE are as follows.
- TeXworks
- TeXstudio
- TeXmaker
- WinEdt (paid)
- LyX (WYSIWYM)
TeXcompilers
Various TeX compilers can be used.
- pdflatex is standard LaTeX compiler with pdf input. It shall be used for writing a normal article/thesis/report as it is fast and traditional.
- xelatex for documents with Unicode, system fonts, or non-Latin scripts. It supports OpenType fonts and is great for multilingual. To be used if using special characters (e.g., Arabic, Hindi, Chinese).
- lualatex is usedf for advanced documents, OpenType fonts, programmable TeX (Lua scripting). It is modern and extensible but has slower compile. To be used if including TikZ/PGFPlots or complex graphics.
- for Using bibliography with
biblatex, use lualatex or xelatex. - latexmk is used to automates compilation process (runs multiple passes, handles biblio , index etc.) as it handles everything in one command.
Use this simple rule
- pdflatex – if you're using basic fonts and ASCII or western scripts.
- xelatex – for Unicode, system fonts, or multilingual content.
- latexmk – if you want an all-in-one compiler that handles reruns, biblio, etc.