Open main menu

Changes

2,138 bytes added ,  06:52, 10 September 2023
Hi guys,= Preamble =
since I am a student Here is the place to get everything that is important to get started with little time, yet a passionate ''ConTeXt user, I'd love to contribute to ConTeXt's reputation on the wiki (and with a german beginner's guide document, which is private until finished).So I'd like to use this space here for my ideas on creation of wiki posts. This all is work in progress..MS Windows'' operating system.
Thanks to especially ''Donald Knuth'', ''Hans Hagen'', ''Taco Hoekwater'' and too many other coders and users to mention here!
= Introduction =
== ConTeXt (beta 2017[http:/02/19) with Textadept (9wiki.contextgarden.3) ===Intstallation & net ConTeXt Integration in Windows ] (pronounced '''ConTehht''' as of 2017derived from Dutch) is a [http://en.wikipedia.org/03)=wiki/TeX TeX] macro package created and maintained by [http://www.pragma-ade.com Pragma ADE].
* = Setup ConTeXt = == Download & Install (i.e. download, extract ConTeXt == Installation and update) '''of ConTeXt''' (mkiv)** work in progress* Add the same way. If you only want to update ConTeXt's executables folder , you can go to Windows PATHpoint 3.** work in progress* 1. Download [httpshttp://foicicastandalone.comcontextgarden.net/textadeptsetup/download/textadept_LATESTConTeXt].win32.zip Download] and extract * [https://foicicadistribution.comcontextgarden.net/textadeptsetup/ '''Textadept'''context-setup-mswin.zip context-setup-mswin.zip]  2. Extract the archive to a folder location of your choice.* Edit Textadept's ''initYou might want to change the name of the extracted directory to a shorter one as it will be the final location for ConTeXt. 3. Install / Update ConTeXt * Use Windows Explorer to navigate to your ConTeXt directory. In there should be a file called <code>install.bat</code>.* Execute by double-clicking on it. A command prompt window should pop up.lua''** '''Note''' If it appears for only a few seconds, chances are high that the download server is down. In that there are two ''initcase you might want to re-try the procedure at some other time.* Wait for the download / update to finish. After it is done, the command window should disappear by itself.lua'' of certain importancy Alternatively, from the command prompt: *Use Windows Explorer to navigate to your ConTeXt directory.** one Click into the upper white field where the current location is located in Textadept's program folder: don't edit this onedisplayed.** Enter <code>cmd</code> and press <code>Enter</code>-key.** Now Windows command prompt should pop up with the correct location.* Otherwise, as you will lose can start your changes when you update TextadeptWindows command prompt*** second is created by Textadept when you start it for using the first time key shortcut <code>Windows-key + R</code>, entering <code>cmd</code> and itpressing <code>Enter</code>-key.** Alternatively, you can use <code>Start</code> -> <code>Programs</code> -> <code>Accessories</code> -> <code>Command Pompt</code>.* Some important 's located at 'MS DOS''SYSDRIVEcommands:\users\USERNAME\** <code>dir</code> list the content of the current directory** <code>cd DIRECTORY</code> change to directory with name DIRECTORY** <code>cd..textadept</code> change to superior directory** <code>cd\init.lua'''</code> change to drive root* add the following line * <code>X:</code> change to the blank init.luadrive X:** textadeptalso possible: <code>cd directory\subdirectory\subsubdir.run.compile_commands.tex </code>* In the end your command prompt should look like this: X:\ConTeXt>_ == Add ConTeXt'mtxrun --autogenerate --script context --autopdf --purge --synctexs executables folder to Windows search Path ==-1 "%f"'*** '''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 itmachine's only a single line, so you might need to repath. 1. Open Windows' '''System''' dialog* either by <code>Right-format it when you copy and paste it from here into your document. Also click</code>ing on '''This PC''' / '''noteMy Computer''' that on your Desktop and then clicking on '''Properties'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 = or by clicking '''Start'''C:/CTX/tex/texmf-win64/bin/mtxrun > '''Settings''' -> '''About''' -autogenerate > '''System Info'''* or on older Windows Machines by going to '''Control Panel''' --script context --autopdf --purge --synctex=-1 "%f"> '''System'''.***** 2. Click on '''NoteAdvanced System Settings''' that you have to use slash ( / ) instead of backslash ( \ ) in the file path, since Lua (same as ConTeXt"System Properties") 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 3. Click on '''ToolsAdvanced''' -> Tab. 4. Click on '''CompileEnvironment Variables...''' . 5. Choose where to build a PDF with the options added add ConTeXt's executables folder to:*Either to '''User variables for USER''' for the linecurrent user only* thator to '''System variables''s it, you're donefor all users.* further options that can be added to you 6. Double-click on the respective variable called ''Path''user/init.lua 7. Add your ConTeXt executables to Windows path.** As of v9 (at least) Textadept seems '''Note''' that the position, to have an own ConTeXt lexer. So where you can add the following lines location is sorted by importancy. The most important directories will be searched first. This might be taken into account when using ConTeXt together with MiKTeX for example. It's safest to your place ConTeXt's path at the very beginning.* In '''User'init.lua'' Path variable you might need to let Textadept choose add the location and seperate it when you open from the existing ones by using a semikolon (<code>;</code>).* In '''System'.tex'' documentPath variable you probably only have to add a new lineThe location should look like this: *Win x86 / 32 bit: X:\ConTeXt\tex\texmf-mswin\bin** textadeptWin x64 / 64 bit: X:\ConTeXt\tex\texmf-win64\bin 8.file_typesSave your changes.extensionsUsually no restart or re-login is needed after this operation.tex = ' Opt 1. You can test whether it worked by starting your Command prompt and entering the following line, while being in a directory other than the one you just added.  context-version * A message with ConTeXt's version number should apear.**** if you plan to use ConTeXt mkiv alone, or use another ending to seperate ConTeXt from LaTeX documents, for example If a message like '''context'is not recognized as an internal or external command...ctx'':*** textadeptappears, you should make sure that you added the correct location of ConTeXt's executables (context.file_typesexe) path to Windows' search path.extensions.ctx  = Text Editors === 'context'CudaText'' ==See my article here [[CudaText]].
194

edits