Open main menu

Changes

919 bytes added ,  16:35, 2 March 2017
m
no edit summary
** textadept.run.compile_commands.tex = 'mtxrun --autogenerate --script context --autopdf --purge --synctex=-1 "%f"'
*** '''Note''' that it's only a single line, so you might need to re-format it when you copy and paste it from here into your document. Also '''note''' that your ''mtxrun.exe'' has to be in the Windows PATH (see above) in order to work, otherwise you have to add the full path to mtxrun. For example:
**** textadept.run.compile_commands.tex = 'C\:/CTX\/tex\/texmf-win64\/bin\/mtxrun --autogenerate --script context --autopdf --purge --synctex=-1 "%f"'***** '''Note''' that you have to use slash ( / ) instead of backslash ( \ ) in the file path, since Lua (same as ConTeXt) interprets a \ as the beginning of a command, while for Windows is doesn't make a change.* restart Textadept and open or create a ConTeXt test document:** \starttext hello world! \stoptext* use Textadept's '''Tools''' -> '''Compile''' to build a PDF with the options added to the line* that's it, you're done.* further options that can be added to you '''user/init.lua** As of v9 (at least) Textadept seems to have an own ConTeXt lexer. So you can add the following lines to your ''init.lua'' to let Textadept choose it when you open a ''.tex'' document.*** textadept.file_types.extensions.tex = 'context'**** if you plan to use ConTeXt mkiv alone, or use another ending to seperate ConTeXt from LaTeX documents, for example ''.ctx'':*** textadept.file_types.extensions.ctx = 'context'
194

edits