📜 ⬆️ ⬇️

Configuring LaTeX in Sublime Text


Below is a guide to installing a text editor Sublime Text , followed by the addition of the possibility of using the computer layout system LaTeX . As a bonus, let's teach him to understand the language of Julia .


Install MiKTeX


  1. On the site, click the All downloads tab.
  2. Select the item Net Installer depending on the bitness of your system.
  3. Click Download and wait for the online installer to load.
  4. Carefully unread the user agreement check the box under Download MiKTeX
  5. When using a proxy, enter your add-ins in Connection settings ...
  6. In the next step, select Complete MiKTeX
  7. Selecting a server (preferably one of the top Russian) and specifying a directory, wait for the required files to load
  8. Repeat step 4 again, but this time choosing Install MiKTeX
  9. After installation is complete, launch TeXworks via Start
  10. Open any document in .tex format or create a new one.
  11. In the drop-down menu, select pdfLaTeX and click the adjacent triangle in the green circle.

The compile and create the PDF file will occur. Using TeXworks, you can get down to full-fledged work, for example, using LaTeX you can very effectively assemble a diploma or dissertation ( Ready-made templates )


It is much more convenient to use LaTeX through Sublime Text. In addition to convenient backlighting and autocompletion, here you can see the image or typed formula without compiling, that is, to see the result while typing. By the way, in Sublime Text you can type (and if you add the appropriate plug-ins, then execute) the program codes of many programming languages ​​and markup: C / C ++, Java, MATLAB, PHP, HTML ...


Sublime Text 3 installation


  1. Download and install Sublime Text 3
  2. Download and install Sumatra PDF . This lightweight program allows you to view PDF documents, DJVU, FB2, etc.
  3. Start Sublime Text, open the command line by pressing Ctrl + shift + p and start typing Package Control: Install Package , and when it appears, click and wait for the connection to the repositories to be established
  4. If for some reason there is no Package Control, open the console by pressing * ctrl + ` (E) and copy the spell on the parcelanga that can be found on the page of the Package Control plugin, press Enter and restart Sublime Text.
  5. In the list of plugins, enter LaTeXTools and, when it appears in the list, click and wait until the installation is completed.
  6. Next, we initiate the default settings: Preferences / Package Settings / LaTeXTools / Reset user settings to default , and then Check System
    If all the labels are green, then Sublime Text has made friends with Sumatra and LaTeX, and now you can create or edit tex documents. Pressing ctrl + B translates and, if there are no errors, the PDF is opened. Ctrl + shift + B - select the type of assembly.

More about LaTeXTools


Finding online LaTeX manuals will not be difficult for you (for example: Tutorial , Wiki ). It will also be useful to use the online formula editor until the commands are stored in memory.


Julia in Sublime Text


In Package Control: Install Package, type Julia , download the plugin, and now Julia appeared in the View / Syntax tab among other languages, which means you can now type programs in this language with illumination and Greek letters (\ delta + press tab ), and also save files in .jl format.


When saving files, it will be convenient to internally divide modules into:


 module somename # functions, variables # and some things end 


Code typed in Sublime text and saved in the .jl format can be executed in the REPL


 #     cd("C:\\Users\\User\\Desktop") #   include("MDPSO.jl") #       #      PSO.parabol([2,3,5]) 


At the end of a small guide. All convenient layout and pleasant backlighting!


')

Source: https://habr.com/ru/post/447476/


All Articles