# LaTeX

## How to start LaTeX

• [Mac OS] Download and install MacTeX. Install FULL. (MacTeX is a redistribution of TeXLive, so they are pretty much same.)
2. I strongly recommend Visual Studio Code as your LaTeX editor with the LaTeX Workshop extension.
3. Use this sample tex file as a quick start guide.
4. Read this document. (This is available in many languages including English, Korean, Persian, Russian, Vietnamese, and Chinese.
5. Start using it.

You may want to watch this video beginners tutorial.

## Template and Tutorial

One simple template is provided:

## Sample Tasks to Complete for Beginners

After reading this document, you may try to complete the following tasks:

• Produce a final PDF file.
• Include a PDF image file (not JPG, GIF, PNG, EPS, etc.) to the document.
• Write a table.
• Learn how to manage .bib files. I recommend JabRef. (Mac users can use BibDesk.)
• Using .bib and bibtex, cite a reference and create a final PDF file that includes a bibliography.

There are several ways to create a final PDF file and include images. I prefer pdflatex and PDF image formats.

## Useful Tools

• JabRef- Java GUI for managing BibTeX and other bibliographies
• Excel To LaTeX Conversion – You can create LaTeX codes for tables from an Excel spreadsheet directly.
• Detexify – Drawing a symbol will give you the LaTeX code for it.
• HeVeA - A good HTML translator for LaTeX.
• TeX4ht - The best HTML translator for LaTeX that I know of.

## Topics

### Converting to HTML and DOCX

This may not be the best way, but it has worked pretty well to me. No conversion is perfect. If you find any better way, please let me know!!

• Run the following command:
htlatex filename.tex myxhtml

• You will obtain filename.html.
• Open filename.html in Windows(!) and copy all contents and paste in a blank Word document.
• Save it as filename.docx.

The configuration file “myxhtml.cfg” does two things:

• Convert all mathematical expressions to PNG graphical files.
• Convert PDF graphics to PNG files. For this purpose, you should specify the file extension in your .tex file. For example
\includegraphic{graphicfile.pdf}


If your PDF graphic files are not converted, you should install ImageMagick to your system..

If you receive error messages during conversion in Step 2, try to press the enter key several times to ignore errors. To make smoother conversion, try to minimize using packages and create tables as simple as possible. “Standard” packages such as amsmath works good enough.