Sunday, 9 October 2016

Simplest method to convert word file to LaTeX

Simplest method to convert word file to LaTeX

     To convert word file in to LaTeX there are different software are available on internet but all are trial version and having limited features. Here I will show you simplest method to convert files in .tex format.

1.   Basically word file have different format than tex.
2.   .tex file contain LaTeX code and we need to compile this code in LaTeX software.
3.   Following trick are work in Linux (Ubuntu) and this is most simple and free trick to convert files.
4.   First install package Writer2latex
      $ sudo apt-get install writer2latex
5.    After installation convert sample word file.
6.    To convert we need to save word file in .odt format ( Is simple to open word file in LibreOffice and save as sample .odt)
7.    Open terminal
      $ w2l –ultraclean sample.odt sample.tex

This create sample.tex file in your directory just open and run sample.tex 

To know how to install LaTeX in Ubuntu Go 

Installing full LaTeX on Windows 10

Installing LaTeX on Windows

     In this guide, I will show you how to install complete components of LaTeX  on Windows. In this tutorial Windows 7 is used, but the steps will be similar for Windows 8 and Windows 10.

To work Latex in windows we need software’s like:

1.    Tex Live
2.    Tex Editor

What is Tex Live:

     TeX Live is a free software distribution for the TeX typesetting system that includes major TeX-related programs, macro packages, and fonts.

Benefits of Tex Live Over MiKTeX:

1.    If you install Tex Live then no need to install any of Tex packages.
2.    You can run any Tex code without any error.
3.    Tex Live can also run in Linux System (e.g Ubuntu).
4.    To know how to install latex in Ubuntu GO.
5.    Also support for Beamer class to write and run code of PowerPoint  presentation.

How to install Tex Live:

1.    First download Tex Live Setup from Link
2.    After successful download follow steps shown in pictures.












 

After Tex Live installation install Tex Editor:

1.    Download TextStudio from Link.
2.    Install this software and test Latex code.



Simple Latex Code to test:

Just create new file in TextStudio and copy paste this code.

\documentclass{article}
\begin{document}
    \begin{center}
        Hello, Worls!
    \end{center}
\end{document}

Click on run.
Done!