Changes

Jump to navigation Jump to search
134 bytes added ,  10:38, 4 March 2017
no edit summary
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.
 
* use Windows Explorer to navigate to your ConTeXt directory. In there should be a file called <code>first-setup.bat</code>.
* Use Windows Notepad or <code>Right-click</code> -> '''New''' -> '''Textfile''' to create such.
* Write or paste the following line into the new and empty batch file:
first-setup -engine=luatex -modules=all
* Save the batch file and name it something like <code>update.bat</code>.
** Now Windows command prompt should pop up with the correct location.
* Otherwise you can start your Windows command prompt like this:
** by using the key shortcut <code>Windows-Key + R</code>, entering <code>cmd</code> and pressing <code>ENTEREnter</code>-key.
** Alternatively you can use <code>Start</code> -> <code>Programs</code> -> <code>Accessories</code> -> <code>Command Pompt</code>.
* Some DOS commands you might need:
* Now your command prompt should look like this:
X:\ConTeXt>_
* Enter the following lineand press <code>Enter</code>-key:
** If you only want ConTeXt mkiv (highly '''recommended'''):
first-setup -engine=luatex -modules=all
== Step 4: Tweak '''Textadept''''s settings ==
 
=== 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>.
6. When you have a popular PDF reader installed already, it should pop up at the end of the process and show the created PDF output. [https://www.sumatrapdfreader.org/free-pdf-reader.html '''Sumatra PDF'''] is highly recommended for this.
== Optional: Additional '''Textadept''' tweaks == === Lexing (command highlighting & code folding) ===
A lexer is a file that defines command highlighting. Since Textadept comes with an own ConTeXt lexer, it is a good idea to bind <code>*.tex</code> files to Textadept's ConTeXt lexer. To do so:
3. Open a ConTeXt document and check Textadept's status bar in the lower right corner. It should say '''context'''. If it says '''latex''' make sure it really is a ConTeXt file or repeat the procedure.
 
== Optional: Additional '''Textadept''' tweaks ==
=== Themes & editor font changes ===
* After adding snippets, you have to restart Textadept first.
* Then you can use <code>Alt Ctrl + K</code> (by default on Windows machines) to choose from the list of snippets, when a ConTeXt document is opened in the active tab.
194

edits

Navigation menu