Changes

Jump to navigation Jump to search
no edit summary
{{note | You probably will need admin rights to your Windows to manage the installation process. If you don't have that, get somebody who does.}}
This instruction was written 2019 April 13 and is intended to install Context ConTeXt standalone distribution (Mark IV).
My intent is to deliver a up-to-date manual that every noob can use, and not to refer to old versions (e.g. from 2011).
==Chapter 1: Detect Windows 32 or 64 bit Version==At fist, get to know if I’m Running 32-bit or 64-bit Windows.Please follow [https://www.howtogeek.com/howto/21726/how-do-i-know-if-im-running-32-bit-or-64-bit-windows-answers/ https://www.howtogeek.com/howto/21726/how-do-i-know-if-im-running-32-bit-or-64-bit-windows-answers/] or other tutorials. ==Chapter 2: Install ConTeXt==
===Step 1: Download and unzip the installer===
Open Command promt. Do this by using Cortana: Search for cmd.exe. Right click on the search result and select "run as admin".
Command prompt should be in C:\Users\MyUserName\
 Type in "cd.. " -> Enter ->  Once again type in "cd.. " -> Enter Now you are should be at path "C:\". If not, repeat "cd.." Type in "cd context" 
You are now at C:\context
Tpe in <tt>first-setup.bat</tt> -> Enter.
This should print out much output and take a while (maybe 5 mins). 
Check if there is a folder C:\context\tex
 
If no such folder has been created, this step failed. (It failed for me using <tt>C:\Programme\context</tt> and I resolved it by using <tt>C:\context\</tt>
===Step 3: Add ConTeXt to Windows search path===
(Please also note [https://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them]) You will have to go to the system settings of your Windows and add you will have to add <tt>C:\context\tex\texmf-win64\bin</tt> (or <tt>C:\context\tex\texmf-mswin\bin</tt> for using <tt>context-setup-mswin.zip</tt>) to the search path (environment variable <tt>path</tt> under advanced system properties). If you are the only user on the computer needing ConTeXt, you can put it under "user variables", otherwise add it to the existing search path listing"global variables".
Do this by:
Right click on "Dieser PC" or "this PCThis Computer" and select "Eigenschaften/Settings".Then on the left side, click on "erweiterte Systemeinstellungen/extended change my environment variables" or something like "Extended Settings".
In the small popup "Systemeigenschaften/System settings" select the slider "Erweitert/extended".Select the button "Umgebungsvariablen/environment Environment variables".
Select PATH, lick on button "edit" and ad a new row with <tt>C:\context\tex\texmf-win64\bin</tt> (or <tt>C:\context\tex\texmf-mswin\bin</tt> for using <tt>context-setup-mswin.zip</tt>)
This step is an alternative to run setuptex.bat which is located in C:\context\tex\
==Chapter 3: Test ConTeXt==
 
Now you are ready to test ConTeXt. Start a simple text editor (like 'editor', Notepad++, NOT MS WORD)
==Install SciTe==<pre>\starttext
Now you have ConTeXt. To complement itHello, i.e. to easily write and compile ConTeXt files, install the SciTe editor. It is a nifty open source editor that, with some adjustments, will be able to highlight ConTeXt code and run ConTeXt from inside the editor. (And it is pretty useful for e.g. html and php editing, too.)world!
===Step 1: Get SciTe===\stoptext</pre>
There's a SciTe included in your ConTeXt Suite, but you'll get less hassle with user rights and such if you use [httpsSave the document as <tt>C://www\context\helloworld.ebswift.comtex</scite-text-editor-installer.html Windows installer for SciTe]. Keep accepting everything it suggests and you'll get a very standard Windows program installed without any hassle. I recommend not using the 'context menu' during setup (you can right-click any text file (html, php, tex, txt) and give command "Edit with SciTe in New Tab" or "Edit with SciTe in New Window"tt>.)
Open command prompt and go to c:\context (as we did at 'Install ConTeXt' - Step 2)
type in
<pre>
context helloworld.tex
</pre>
===Step 2Open the file explorer and browse to <tt>C: Fetch and install lexer add-in===\context\</tt>.Check if there is a helloworld.pdf. Open it to check its content.
See also https://foicicaAnd that's it, basically.com/scintillua/manualIf you got your pdf and love to write using this editor, you can continue this way.Still I'd recommend using TeXworks.html
The up-to-date ConTeXt version uses ''external lexers'' and for that you have to [http://foicica.com/scintillua/download Download the lexer add-in zip] (just get the top-most file of those listed in the download directory).
Then extract/unzip the contents of the lexer zip into a temporary directory. You get a directory <tt>scintillua''xxx-n''</tt> (e.g. <tt>scintillua375-1</tt>). Insite the temp folder, look for a folder called 'lexers'.==Chapter 4: Install TeXworks==
Locate your SciTE installationNow you have ConTeXt. To complement it, typically C:\Program Files\SciTE\ for Windows for Linuxi.e.Move the 'lexers' directory to easily write and compile ConTeXt files, install the root of your SciTE installationTeXworks editor.
Also leave ===Step 1: Get TeXworks===Browse to [http://www.tug.org/texworks/ http://www.tug.org/texworks/]and download the SciTe program folder openexe file and execute it to install TeXworks. You'll need it next!
==Adjust SciTe During installation, I recommend to work with ConTeXt==register (only) ".tex" files to the application. Disable the other ones.
=== Copy setup files =Step 2: Ready, steady, test!==Start TeXWorks.
Go to <tt>C:\context\tex\tex\texmf-context\context\data\scite\context\lexers</tt>. Copy everything from this folder to your SciTe program lexers folder. If you only plan to use SciTe for ConTeXt, you can replace all files. If you want to keep all In the existing functionalitydropdown, copy the subfolder contents by hand, but make sure you get everything.select "ConTeXt (LuaTex)"
=== Import settings into SciTe ===Now you are ready to go.
Open SciTe. Go to the <code>Options</code> menu and choose <code>Open Global Options File</code>. Scroll all the way to then end of the file and writeType in:
<pre>
import lexers/lpeg\starttextimport scite-context-userHello, world! \stoptext
</pre>
Save the document as <tt>helloworld.tex</tt>. Now click on the green button to build your file. After there are some lines of compiler output, a pdf file should open and save you should see your "hello world". =Other ConTeXt distributions={{note | This part needs to be checked if it is still up-to-date in 2019 }} As a Windows user, you can choose between the filefollowing installation alternatives: * ConTeXt standalone distribution * MikTeX * Texlive * W32TeX  =Literature=[http://meeting.contextgarden.net/2008/talks/2008-08-21-willi-aditya-beginners/Tutorial-text.pdf Aditya Mahajan, Willi Egger: Beginners Tutorial ConTeXt. (PDF; 371 kB) 20.August 2008]
Close[http:/restart SciTe/pmrb.free.fr/contextref.pdf Hans Hagen, Taco Hoekwater: ConTeXt Reference Manual. (PDF; 2,04 MB) 27.September 2013]
21

edits

Navigation menu