Open main menu

Changes

282 bytes added ,  18:54, 8 March 2017
no edit summary
== Step 1: Install / Update '''ConTeXt''' ==
Installation and update of ConTeXt works work the sameway. If you only want to update ConTeXt you can start directly from point 3.
1. [http://standalone.contextgarden.net/setup/ Download] ConTeXt.
3. Method 1: Write a batch file
Since at this point the installation and update of ConTeXt work the sameway, the most effective solution is to create a batch file. To do so
* use Windows Explorer to navigate to your ConTeXt directory. In there should be a file called <code>first-setup.bat</code>.
* Wait until the download / update is complete. Afterwards you can close the command prompt by entering <code>exit</code> and pressing <code>Enter</code>-key or by simply closing the window.
== Step 2: Add ConTeXt's executables folder to Windows search PATH Path ==
'''Note''': you will need admin rights for this. On public machines for example you most probably won't be able to add ConTeXt to that machine's path. In that case skip this step and go to Step 3 respectively Step 4.1 directly.
* Win x86 / 32 bit:
DX:\CTXConTeXt\tex\texmf-mswin\bin
* Win x64 / 64 bit:
DX:\CTXConTeXt\tex\texmf-win64\bin
8. Save your changes. Usually no restart or re-login is needed after this operation, but to make sure, that the folder was added, you should restart your machine.
* A message with ConTeXt's version number should apear.
* If a message like '''context' is not recognized as an internal or external command...'' appears, you should restart your machine, make sure that you added the correct location oder or re-try the operation by starting from Step 2.1.
== Step 3: Install '''Textadept''' ==
== Step 4: Tweak '''Textadept''''s settings ==
 
'''Note''' that almost all changes to Textadept are saved in the file <code>init.lua</code>. There is two of them, of which you should edit only one:
 
* One of them is in the extracted Textadept main folder. It is '''not recommended''' to edit this file as your changes will be lost when you update Textadept. Instead:
* When you start Textadept for the first time a new folder <code>SYSDRIVE:\users\USERNAME\.textadept</code> gets created. It also contains the file called <code>init.lua</code>. This is the file and location where you should save all your Textadept settings. This way you can make a copy and use it on several computers. When you open it for the first time it should be empty.
=== Step 4.1: Bind a PDF build command into Textadept ===
1. Use your freshly installed Textadept to open Textadept's main configuration file called <code>init.lua</code>.* After extraction of the downloaded Textadept archive there is a file called <code>init.lua</code> in the main program folder. It is '''not recommended''' to edit this file as your changes will be lost when you update Textadept. Instead:* When you start Textadept for the first time a new folder <code>SYSDRIVE:\users\USERNAME\.textadept</code> gets created. It also contains the file called <code>init.lua</code>. It's the file and location where you should save all your Textadept settings. This way you can make a copy and use it on several computers. When you open it for the first time it should be empty.
2. Add an execute command for ConTeXt to Textadept's menu:
* If your ConTeXt executables folder is already in the Windows search PATHPath:
textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script context --autopdf --purge --synctex=-1 "%f"'
* If for some reason you can't add the folder to PATH, for example on public machines, you have to add the full path to your ConTeXt executables. For example:
* There are more settings which you can look up in Textadept's [https://foicica.com/textadept/manual.html#Themes manual].
 
* Many ''base16'' themes for Textadept can be found at [https://github.com/rgieseke/textadept-themes Robert Gieseke's GitHub]. You can preview them [https://chriskempson.github.io/base16/ here] (partially).
=== Snippets ===
194

edits