~~DISCUSSION~~

Mathematics CUI: LaTeX Resources

Department of Mathematics, COMSATS University Islamabad, Attock Campus

This page contains LaTeX template of CIIT Mathematics, MSc Project and MS Thesis templates.

Download a zip file given below and extract it by right clicking on the file.

BS Project Template: cui-math-project-v1-15.zip (Version 1.5, Uploaded: Sep 29, 2022)

MSc Project Template: cui-math-project-v1-13.zip (Version 1.3, Uploaded: Sep 28, 2021)

MS Synopsis Template: cui-synopsis-v2-1.zip (Version 2.1, Uploaded: January 10, 2024) NEW

MS Thesis Template: cui-ms-thesis-v1-16.zip (Version 1.6, Uploaded: Oct 10, 2022)

Two separate software and installation are needed to run the LaTeX on windows.

To activate forward and inverse search via SumartraPDF, go in TeXstudio and Option > Configure TeXstudio > Commands > External PDF viewer

Replace it with following code:

For 32bit Operating System

"C:/Program Files/SumatraPDF/SumatraPDF.exe" -forward-search "?c:am.tex" @ -inverse-search '"C:/Program Files/TeXstudio/texstudio.exe" "%%f" -line %%l' "?am.pdf"

For 64bit Operating System (if 64bit SumatraPDF is installed)

"C:/Program Files/SumatraPDF/SumatraPDF.exe" -forward-search "?c:am.tex" @ -inverse-search '"C:/Program Files/TeXstudio/texstudio.exe" "%%f" -line %%l' "?am.pdf"

For 64bit Operating System (if 32bit SumatraPDF is installed)

"C:/Program Files/SumatraPDF (x86)/SumatraPDF.exe" -forward-search "?c:am.tex" @ -inverse-search '"C:/Program Files (x86)/TeXstudio/texstudio.exe" "%%f" -line %%l' "?am.pdf"

In above code, we considered that windows in installed in C drive. If it is installed in different drive then, please use the respective code instead of C. Also it was considered that programs are installed on their default location.

In the Build select “PDF Viewer: External PDF Viewer”

  • To write inline equation

Use a $\$ $ (dollar) sign to write equation or symbols in between statements or sentences, e.g.
Let $I$ be an interval in $\mathbb{R}$ and $f:I\to \mathbb{R}$ be a function

Let $I$ be an interval in $\mathbb{R}$ and $f:I\to \mathbb{R}$ be a function
  • To write an equation

Use double dollar $(\$\$)$ to write dedicated equation, e.g.,
$$\sin^2 \theta + \cos^2 \theta =1$$

$$ \sin^2 \theta + \cos^2 \theta =1 $$

If you wish that equation number appear automatically to this equation, then write in the following way:

\begin{equation}
\sin^2 \theta + \cos^2 \theta =1
\end{equation}

\begin{equation} \sin^2 \theta + \cos^2 \theta =1 \end{equation}

For more tips and tricks related to TeXStudio, please visit: http://www.texstudio.org/#features