Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preview Latex files IntelliJ (Idea, PyCharm..)

How to preview latex (.tex) files in IntelliJ like at https://www.sharelatex.com/ ?

like image 645
sleepyhead Avatar asked Jul 10 '18 09:07

sleepyhead


People also ask

How do I compile LaTeX files in IntelliJ?

The full instructions to compile .tex (LaTeX) files are in the GitHub readme. A very short summary of those instructions in the case you know what you're doing: Install a LaTeX distribution and IntelliJ, then install the TeXiFy plugin and restart IntelliJ.

How do I edit or preview a PyCharm project?

Editing and preview modes reflect the currently selected PyCharm user interface appearance. You can open any existing file with the restructured text or create a new one from scratch. Right-click in the Project tool window and select New | File. In the opened dialog, specify any file name with the .rst extension and click OK.

Does the IDE have LaTeX support by default?

The IDE doesn’t have LaTeX support by default, but there are some useful plugins that I used: The most important plugin is Texify which provides tons of LaTeX-related functionality. From highlighting and syntax prompting to compiling files into PDF.

How to edit ReStructured Text in PyCharm?

In the opened dialog, specify any file name with the .rst extension and click OK. PyCharm recognizes the file type and marks it with the corresponding icon. The newly created file opens in the Editor window. When no text is added, the Preview is disabled. Let us add some content to see how PyCharm assists editing restructured text.


1 Answers

You can try the TeXiFy plugin. The full instructions to compile .tex (LaTeX) files are in the GitHub readme.

A very short summary of those instructions in the case you know what you're doing:

  1. Install a LaTeX distribution and IntelliJ, then install the TeXiFy plugin and restart IntelliJ.
  2. You can compile .tex files using the button which appears next to the \begin{document} line.

[Edit] Automatic compilation is also supported: https://github.com/Hannah-Sten/TeXiFy-IDEA/wiki/Automatic-compilation

like image 139
PHPirate Avatar answered Oct 21 '22 01:10

PHPirate