ConTeXt installation and configuration on Win 10 x64
i downloaded ConTeXt from contextgarden and so far i saw three options to download first i found folders setup and setup2? which one should i use? in one of them there are win32 and win64 zips. and in the other are win32, win64 plus a mswin zip. which one is the correct one? since i am on Win10x64 i downloaded context-setup-win64.zip. i unzipped the file, started command as admin and went to Con dir. there i entered: first-setup.bat --modules=all everything went fine and i added the win64 folder which Con installer showed me at the end to my system paths. as far as i know, an update is done the same way. please correct me if i am wrong. in TeXnicCenter i added a new profile. on (La)TeX register i have activated: Run LaTeX in this profile. in the path to compiler field i entered: F:\Sandbox\ConTeXt\tex\setuptex.bat & F:\Sandbox\ConTeXt\tex\texmf-win64\bin\texmfstart.exe question: do i need both entries? in the command line field i entered: texexec.rb --batch --nonstop --pdf --color "%bm" --synctex=-1 BibTeX is deactivated, MakeIndex isn't used either. well and it works. but not without ruby: why do i need ruby? i would use mkiv only if i could. i also worked with Hex color codes but then everything is black untill i add \setupcolor[hex] to the document. i read that this line is only needed in mkiv, so again i am wondering why i am obviously using mkii instead of mkiv... the last question for now is: how can i stop pdfTeX.exe from warning me that no GlyphToUnicode entry has been inserted yet. i read somewhere that this can be ignored but nobody explains what this is and how it works. i just don't want to read this every time but fix it. and what is meant with bad boxes? i read "Underfull \hbox (badness 10000) in paragraph..." but don't know how to fix this. i would also have questions related to SciTE, because i can't make UTF-8 work following the desctiption on contextgarden, but for now i would be happy if i could take the most out of context within TeXnicCenter. Thanks in advance, Sebastian
On 03/09/2016 10:57 PM, L.S.-Soc&Gam wrote:
i downloaded ConTeXt from contextgarden and so far i saw three options to download
first i found folders setup and setup2? which one should i use? in one of them there are win32 and win64 zips. and in the other are win32, win64 plus a mswin zip. which one is the correct one? since i am on Win10x64 i downloaded context-setup-win64.zip.
Hi Sebastian, I’m not on Win10, but I guess this was the right file.
i unzipped the file, started command as admin and went to Con dir. there i entered: first-setup.bat --modules=all everything went fine and i added the win64 folder which Con installer showed me at the end to my system paths. as far as i know, an update is done the same way. please correct me if i am wrong.
Yes, updates may be performed invoking the same command.
in TeXnicCenter i added a new profile. on (La)TeX register i have activated: Run LaTeX in this profile.
in the path to compiler field i entered: F:\Sandbox\ConTeXt\tex\setuptex.bat & F:\Sandbox\ConTeXt\tex\texmf-win64\bin\texmfstart.exe
question: do i need both entries?
I don’t think so. The second entry isn’t required at all.
in the command line field i entered: texexec.rb --batch --nonstop --pdf --color "%bm" --synctex=-1
BibTeX is deactivated, MakeIndex isn't used either.
MakeIndex isn’t required in ConTeXt. (Indices aren’t generated using MakeIndex in ConTeXt, afaIk.) BibTeX may work, but there is a much better bibliographic module being developed.
well and it works. but not without ruby: why do i need ruby? i would use mkiv only if i could. i also worked with Hex color codes but then everything is black untill i add \setupcolor[hex] to the document. i read that this line is only needed in mkiv, so again i am wondering why i am obviously using mkii instead of mkiv...
The command line for MkIV should read "context source-file.tex". BTW, ruby isn’t required for MkIV.
the last question for now is: how can i stop pdfTeX.exe from warning me that no GlyphToUnicode entry has been inserted yet. i read somewhere that this can be ignored but nobody explains what this is and how it works. i just don't want to read this every time but fix it. and what is meant with bad boxes? i read "Underfull \hbox (badness 10000) in paragraph..." but don't know how to fix this.
Warnings fron pdftex will dissapear when you switch to MkIV :-). "Underfull \hbox" may be caused by wrong hyphenation? Would it be possible that you were compiling a German (or non-English text)? In such case, please add "\mainlanguage[de]" in the first line of your source document.
i would also have questions related to SciTE, because i can't make UTF-8 work following the desctiption on contextgarden, but for now i would be happy if i could take the most out of context within TeXnicCenter.
Never used SciTE in Windows. Notepad++ works fine for me on Win7 (but I’m no ConTeXt expert). Just in case it helps, Pablo -- http://www.ousia.tk
hey Pablo, thanks a lot for pointing some things out. i finally managed to get mkiv working!!! Am 09.03.2016 um 23:49 schrieb Pablo Rodriguez:
On 03/09/2016 10:57 PM, L.S.-Soc&Gam wrote:
in TeXnicCenter i added a new profile. on (La)TeX register i have activated: Run LaTeX in this profile.
in the path to compiler field i entered: F:\Sandbox\ConTeXt\tex\setuptex.bat & F:\Sandbox\ConTeXt\tex\texmf-win64\bin\texmfstart.exe
question: do i need both entries? I don’t think so. The second entry isn’t required at all.
almost! the first one wasn't required. *setuptex.bat* only initializes the context folder sub-tree to the system. this is not necessary if *...**\ConTeXt\tex\texmf-win64\bin\* has been added to the system path. in case of TeXnicCenter it might be not necessary at all, unless *context.exe* doesn't call any other executable or batch files. but even then it would look in its own folder first. i will check that out in the future.
in the command line field i entered: texexec.rb --batch --nonstop --pdf --color "%bm" --synctex=-1
BibTeX is deactivated, MakeIndex isn't used either. MakeIndex isn’t required in ConTeXt. (Indices aren’t generated using MakeIndex in ConTeXt, afaIk.)
BibTeX may work, but there is a much better bibliographic module being developed.
it's not that i would need any of these so i didn't bother about those options being deactivated in the first place anyway. but thanks for pointing out what those are there for.
well and it works. but not without ruby: why do i need ruby? i would use mkiv only if i could. i also worked with Hex color codes but then everything is black untill i add \setupcolor[hex] to the document. i read that this line is only needed in mkiv, so again i am wondering why i am obviously using mkii instead of mkiv... The command line for MkIV should read "context source-file.tex". BTW, ruby isn’t required for MkIV.
here's the point why it works now: TeXnicCenter has a location field and a console command field. this is what i entered in the compiler LOCATION field before: F:\Sandbox\ConTeXt\tex\setuptex.bat & F:\Sandbox\ConTeXt\tex\texmf-win64\bin\texmfstart.exe like you pointed out before: *setuptex.bat* is not needed and the second path with texmfstart.exe is for i don't know what!?! but it always used mkii as compiler... anyway this is from a tutorial from the contextgarden wiki: http://wiki.contextgarden.net/TeXnicCenter that's why i got frustrated. the article was last updated 2012 and honestly i was quiet sure that's it's up to date. so i simply changed the compiler location to F:\Sandbox\ConTeXt\tex\texmf-win64\bin\context.exe and as you also pointed out i had to tell context which file. and therefor is the console command field. in my quotation above there is the following command: "%bm" i didn't realize that %bm is TeXnicCenter specific to handle over the name of the current project to the command line. it's that easy; one just has to know...^^ so my location is now F:\Sandbox\ConTeXt\tex\texmf-win64\bin\context.exe and command is %bm and it finally works!!! so again Pablo thanks for taking me to this.
the last question for now is: how can i stop pdfTeX.exe from warning me that no GlyphToUnicode entry has been inserted yet. i read somewhere that this can be ignored but nobody explains what this is and how it works. i just don't want to read this every time but fix it. and what is meant with bad boxes? i read "Underfull \hbox (badness 10000) in paragraph..." but don't know how to fix this. Warnings fron pdftex will dissapear when you switch to MkIV :-).
"Underfull \hbox" may be caused by wrong hyphenation?
Would it be possible that you were compiling a German (or non-English text)?
In such case, please add "\mainlanguage[de]" in the first line of your source document.
yes, i had \language in my document before but i also added \mainlanguage too now. didn't know about this one, so thanks yet again. and you were right, i now don't have any errors or warnings anymore. but unfortunately now console also doesn't show the quantity of pages compiled anymore. i tried before with *context.exe* compiler location (the long described case above) but it always showed 0 pages so i thought nothing got compiled.^^ i didn't bother anymore and changed back to *texmfstart.exe*. maybe i should have checked the pdfs first. :D so yeah, i finally got ConTeXt mkiv up and running and can't wait to continue learning this beast. thanks a bunch Pablo. you helped me a lot. Greetings, Sebastian
On 3/10/2016 2:53 AM, L.S.-Soc&Gam wrote:
hey Pablo, thanks a lot for pointing some things out. i finally managed to get mkiv working!!!
Am 09.03.2016 um 23:49 schrieb Pablo Rodriguez:
On 03/09/2016 10:57 PM, L.S.-Soc&Gam wrote:
in TeXnicCenter i added a new profile. on (La)TeX register i have activated: Run LaTeX in this profile.
in the path to compiler field i entered: F:\Sandbox\ConTeXt\tex\setuptex.bat & F:\Sandbox\ConTeXt\tex\texmf-win64\bin\texmfstart.exe
question: do i need both entries? I don’t think so. The second entry isn’t required at all.
almost! the first one wasn't required. *setuptex.bat* only initializes the context folder sub-tree to the system. this is not necessary if *...**\ConTeXt\tex\texmf-win64\bin\* has been added to the system path. in case of TeXnicCenter it might be not necessary at all, unless *context.exe* doesn't call any other executable or batch files. but even then it would look in its own folder first. i will check that out in the future.
in the command line field i entered: texexec.rb --batch --nonstop --pdf --color "%bm" --synctex=-1
BibTeX is deactivated, MakeIndex isn't used either. MakeIndex isn’t required in ConTeXt. (Indices aren’t generated using MakeIndex in ConTeXt, afaIk.)
BibTeX may work, but there is a much better bibliographic module being developed.
it's not that i would need any of these so i didn't bother about those options being deactivated in the first place anyway. but thanks for pointing out what those are there for.
well and it works. but not without ruby: why do i need ruby? i would use mkiv only if i could. i also worked with Hex color codes but then everything is black untill i add \setupcolor[hex] to the document. i read that this line is only needed in mkiv, so again i am wondering why i am obviously using mkii instead of mkiv... The command line for MkIV should read "context source-file.tex". BTW, ruby isn’t required for MkIV.
here's the point why it works now: TeXnicCenter has a location field and a console command field.
this is what i entered in the compiler LOCATION field before: F:\Sandbox\ConTeXt\tex\setuptex.bat & F:\Sandbox\ConTeXt\tex\texmf-win64\bin\texmfstart.exe
like you pointed out before: *setuptex.bat* is not needed and the second path with texmfstart.exe is for i don't know what!?! but it always used mkii as compiler... anyway this is from a tutorial from the contextgarden wiki: http://wiki.contextgarden.net/TeXnicCenter that's why i got frustrated. the article was last updated 2012 and honestly i was quiet sure that's it's up to date.
so i simply changed the compiler location to F:\Sandbox\ConTeXt\tex\texmf-win64\bin\context.exe and as you also pointed out i had to tell context which file. and therefor is the console command field. in my quotation above there is the following command:
"%bm"
i didn't realize that %bm is TeXnicCenter specific to handle over the name of the current project to the command line. it's that easy; one just has to know...^^
so my location is now F:\Sandbox\ConTeXt\tex\texmf-win64\bin\context.exe and command is %bm
and it finally works!!! so again Pablo thanks for taking me to this.
the last question for now is: how can i stop pdfTeX.exe from warning me that no GlyphToUnicode entry has been inserted yet. i read somewhere that this can be ignored but nobody explains what this is and how it works. i just don't want to read this every time but fix it. and what is meant with bad boxes? i read "Underfull \hbox (badness 10000) in paragraph..." but don't know how to fix this. Warnings fron pdftex will dissapear when you switch to MkIV :-).
"Underfull \hbox" may be caused by wrong hyphenation?
Would it be possible that you were compiling a German (or non-English text)?
In such case, please add "\mainlanguage[de]" in the first line of your source document.
yes, i had \language in my document before but i also added \mainlanguage too now. didn't know about this one, so thanks yet again.
and you were right, i now don't have any errors or warnings anymore. but unfortunately now console also doesn't show the quantity of pages compiled anymore. i tried before with *context.exe* compiler location (the long described case above) but it always showed 0 pages so i thought nothing got compiled.^^ i didn't bother anymore and changed back to *texmfstart.exe*. maybe i should have checked the pdfs first. :D
context.exe is a stub (like mtxrun --script context) that loads a script mtx-context, initializes itself and then knows where to look for the rest so indeed you only need to set the path (which has a well defined place in the tex tree)
so yeah, i finally got ConTeXt mkiv up and running and can't wait to continue learning this beast. thanks a bunch Pablo. you helped me a lot.
Greetings, Sebastian
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
L.S.-Soc&Gam
-
Pablo Rodriguez