Changes

Jump to navigation Jump to search
1,779 bytes added ,  12:09, 3 March 2017
Added ConTeXt quick installation guide for Windows users
[https://foicica.com/textadept/ Textadept] is a programmable text editor for Linux, Mac OSX and Windows. It is fully extensible using [https://www.lua.org/ Lua].
=3rd party projects=
A = How to ConTeXt module for textadept is being developed at with Textadept (MS Windows) =(updated 2017/03) == Step 1: Install '''ConTeXt''' == 1. [http://standalone.contextgarden.net/setup/ Download] ConTeXt.* Windows x86 / 32 bit users: [httpshttp://githubstandalone.comcontextgarden.net/stephengaitosetup/tacontext-setup-mswin.zip context-setup-mswin.zip]* Windows x64 / 64 bit users: [http://standalone.contextgarden.net/setup/context-latex tasetup-win64.zip context-latexsetup-win64.zip]** Download the x64 / 64 bit version only when you are really sure, that you '''need''' it. 2. Extract the archive to a location of your choice.* You might want to change the name of the extracted directory to a shorter one as it will be the final location for ConTeXt.
Note though3. Start your Windows command prompt.* Use can start it by using the key shortcut <code>Windows-Key + R</code>, that if entering <code>cmd</code> and pressing <code>ENTER</code>-key.* Alternatively you plan to can use Textadept without LaTeX with ConTeXt mkiv only (recommended), then you might not need the package mentioned above as it comes with literally only a hand full of ConTeXt snippets. It's almost more comfortable to create own ConTeXt snippets with the ease of Textadept (see below).<code>Start</code> -> <code>Programs</code> -> <code>Accessories</code> -> <code>Command Pompt</code>
= How 4. Navigate to where you extracted the ConTeXt archive.* The easiest way to do so is to :** use Windows Explorer to navigate to your ConTeXt directory,** click in the upper white field with Textadept =the locationMS ** enter <code>cmd</code> and press <code>Enter</code>-key.** Now Windows machines; updated 2017command prompt should pop up with the correct location.* Otherwise do it the old fashioned way. Some DOS commands you might need:** <code>X:</03code> change to drive X:** <code>dir</code> list the content of the current directory** <code>cd DIRECTORY</code> change to directory with name DIRECTORY** <code>cd..</code> change to superior directory** <code>cd\</code> change to root drive* Now your command prompt should look like this: X:\ConTeXt>_
== Step 15. Enter the following line: Install * If you only want ConTeXt mkiv (highly '''ConTeXtrecommended''' ): first-setup -engine=luatex -modules=all
work in progress6. Wait until the download is complete.
== Step 2: Add ConTeXt's executables folder to Windows search PATH ==
* 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 PATH:
textadept.run.compile_commands.tex = 'C:/ctx/tex/texmf-mswin/bin/mtxrun --autogenerate --script context --autopdf --purge --synctex=-1 "%f"'
* '''Note''' that you have to use slash <code>/</code> instead of backslash <code>\</code> in the file path, since Lua (same as ConTeXt) interprets a <code>\</code> as the beginning of a command, while for Windows it doesn't make any difference.
 
3. Restart Textadept to reload the modified <code>init.lua</code>.
* If you plan to use LaTeX and ConTeXt, you should use different file extensions. For example <code>*.tex</code> for LaTeX and <code>*.cxd</code> for ConTeXt documents. In that case you only have to bind your new ConTeXt extension to Textadept's ConTeXt lexer, since <code>.tex</code> files are automatically recognized as LaTeX documents:
textadept.file_types.extensions.cxd = 'context'
 
2. Restart Textadept to reload <code>init.lua</code>.
* Then you can use <code>Alt + K</code> (by default on Windows machines) to choose from the list of snippets, when a ConTeXt document is opened in the active tab.
 
 
=3rd party projects=
 
A ConTeXt module for textadept is being developed at [https://github.com/stephengaito/ta-context-latex ta-context-latex].
 
Note though, that if you plan to use Textadept without LaTeX with ConTeXt mkiv only (recommended), then you might not need the package mentioned above as it comes with literally only a hand full of ConTeXt snippets. It's almost more comfortable to create own ConTeXt snippets with the ease of Textadept (see above).
194

edits

Navigation menu