TextMate ConTeXt bundle
Hi all, After some years with LaTeX and let's say three or four times trying to start with ConTeXt, I decided to try again. Difficult, there are many manuals and a lot of contradicting ideas (at least for those of us that do not know) in them, but still, I want to try to see if once and for all I can manage to dominate it. I have installed MacTeX 2018. I use TextMate, and the ConTeXt bundle is not working in Mac OS High Sierra. After installing it, when I tried to compile it said something along the lines "your PATH is ... you should have 'context' in your path", so I searched in my computer and changed TextMate PATH to: $PATH:/opt/local/bin:/usr/local/bin:/usr/texbin:/usr/local/texlive/2018/texmf-dist/scripts/context/stubs/unix And this last part is where I think the context binary seems to be /usr/local/texlive/2018/texmf-dist/scripts/context/stubs/unix But now when I run it it says env: texlua: No such file or directory What could be happening? What do I do? Also, the bundle was last updated in 2010, may be there are new things? Where could we learn what things to add? https://github.com/pgundlach/context.tmbundle Any updated documentation that takes you from beginner to intermediate would be apreciated too. Thanks, Manuel
Dear Manuel,
On Wed, 14 Nov 2018 at 11:12, Manuel Blanco
Hi all,
After some years with LaTeX and let's say three or four times trying to start with ConTeXt, I decided to try again. Difficult, there are many manuals and a lot of contradicting ideas (at least for those of us that do not know) in them, but still, I want to try to see if once and for all I can manage to dominate it.
I have installed MacTeX 2018. I use TextMate, and the ConTeXt bundle is not working in Mac OS High Sierra. After installing it, when I tried to compile it said something along the lines "your PATH is ... you should have 'context' in your path", so I searched in my computer and changed TextMate PATH to:
$PATH:/opt/local/bin:/usr/local/bin:/usr/texbin:/usr/local/texlive/2018/texmf-dist/scripts/context/stubs/unix
This path is wrong. First of all, you might run into some troubles if you accidentally install some TeX binaries via MacPorts (then you might get mixed binaries from one and the other, leading to troubles), so I would strongly suggest you to put the MacTeX path *in front of* /opt/local/bin. Second, /usr/texbin probably no longer works on High Sierra (it worked earlier, but no longer does after Apple decided to prohibit creating paths in some of the top level folders, unless you manually switch the protection off, reboot, make the change, etc.). I assume that your binaries are now in /Library/TeX/texbin which is ultimately a symlink to /usr/local/texlive/2018/bin/x86_64-darwin (which you could also use if needed).
And this last part is where I think the context binary seems to be /usr/local/texlive/2018/texmf-dist/scripts/context/stubs/unix
But now when I run it it says
env: texlua: No such file or directory
What could be happening? What do I do?
Also, the bundle was last updated in 2010, may be there are new things? Where could we learn what things to add?
It is. Patrick who wrote the bundle in no longer active in the ConTeXt community, but I keep using his bundle and it works fine. It would certainly be nice if someone took the work over and revised it. If you want to volunteer, that would be awesome :) You would probably need to start reading documentation about TextMate bundles. One thing that might be straightforward to add are more known commands (such a list could be autogenerated). I never compile from within TextMate, so I don't know if that area needs some changes (not sure if Patrick last modified the bundle before or after MKIV was considered "the version you should use").
https://github.com/pgundlach/context.tmbundle
Any updated documentation that takes you from beginner to intermediate would be apreciated too.
For ConTeXt or for the TextMate bundle? Mojca
Thanks Mojca,
El mié., 14 nov. 2018 a las 13:13, Mojca Miklavec
(
Dear Manuel,
...
$PATH:/opt/local/bin:/usr/local/bin:/usr/texbin:/usr/local/texlive/2018/texmf-dist/scripts/context/stubs/unix
This path is wrong.
First of all, you might run into some troubles if you accidentally install some TeX binaries via MacPorts (then you might get mixed binaries from one and the other, leading to troubles), so I would strongly suggest you to put the MacTeX path *in front of* /opt/local/bin.
Second, /usr/texbin probably no longer works on High Sierra (it worked earlier, but no longer does after Apple decided to prohibit creating paths in some of the top level folders, unless you manually switch the protection off, reboot, make the change, etc.).
I assume that your binaries are now in /Library/TeX/texbin which is ultimately a symlink to /usr/local/texlive/2018/bin/x86_64-darwin (which you could also use if needed).
Done, and it now compiles. Great! Thank you.
...
Also, the bundle was last updated in 2010, may be there are new things? Where could we learn what things to add?
It is. Patrick who wrote the bundle in no longer active in the ConTeXt community, but I keep using his bundle and it works fine. It would certainly be nice if someone took the work over and revised it. If you want to volunteer, that would be awesome :)
I wasn't offering as a volunteer, because I don't know about programming and not about TextMate bundles (nor about ConTeXt). The most I can do is edit or duplicate things (like snippets for example) to my liking. But for instance, I would like to change the command so that it behaves like the LaTeX bundle (compiling, calling Skim, autorefreshing when compiled again) and also copying the "watch document" from that bundle, but that's out of my reach. But I agree it would be awesome.
You would probably need to start reading documentation about TextMate bundles. One thing that might be straightforward to add are more known commands (such a list could be autogenerated).
I never compile from within TextMate, so I don't know if that area needs some changes (not sure if Patrick last modified the bundle before or after MKIV was considered "the version you should use").
I've never had a “workflow” with ConTeXt, so how do you work? May be that could work for me. You edit in TextMate, go to terminal, compile, then go to the pdf viewer (which one)?
... Any updated documentation that takes you from beginner to intermediate would be apreciated too.
For ConTeXt or for the TextMate bundle?
ConTeXt, but I don't think there's an _updated_ structured introduction. For instance regarding fonts I read here https://tex.stackexchange.com/questions/448812/the-definitive-guide-to-conte... that the latest documentation is http://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf But going there it goes to much depth and I don't know if I need simplefonts, definefontfamily, setupbodyfont, starttypescript, etc. and even seeing that may be those can coexist, I don't know what's the use case for each one. I remember when I started with LaTeX there was a huge number of beginner-intermediate documents (many of which I now wouldn't recommend even to my worst enemies, but at least there were many to read), but here there are much less, and those that seem complete you see they are from early 2000s (and with how much it changes in ConTeXt you don't know what to believe). I know TeX core enough to know how it works, LaTeX enough to know how it's expected to work (and if I don't know something, I know where to look), but ConTeXt I don't know where to find introductory updated material, and also some text about the whole way context organises everything (how files are organised, project structure, how setups work, etc., kind of a whole idea to know where to look when there's doubt about certain area). Also there's this list, but one does not feel like spamming this list sharing newbie questions with those of people that actually work with this system. And that while showing zero ability to be self-sufficient. Thanks for the solution, now TextMate compiles ;) Manuel
On 11/14/18 1:55 PM, Manuel Blanco wrote:
[...] Any updated documentation that takes you from beginner to intermediate would be apreciated too.
For ConTeXt or for the TextMate bundle?
ConTeXt, but I don't think there's an _updated_ structured introduction. For instance regarding fonts I read here https://tex.stackexchange.com/questions/448812/the-definitive-guide-to-conte... that the latest documentation is http://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf
Hi Manuel, maybe the problem with ConTeXt is that the newcomers that complain about the lack of introductions never write them (even when they learn how to use ConTeXt).
But going there it goes to much depth and I don't know if I need simplefonts, definefontfamily, setupbodyfont, starttypescript, etc. and even seeing that may be those can coexist, I don't know what's the use case for each one.
The simplefonts module is deprecated. I use \definefontfamily and \setupbodyfont, such as in: \definefontfamily[mainface][rm][EB Garamond 12] \setupbodyfont[mainface, 14pt]
I remember when I started with LaTeX there was a huge number of beginner-intermediate documents (many of which I now wouldn't recommend even to my worst enemies, but at least there were many to read), but here there are much less, and those that seem complete you see they are from early 2000s (and with how much it changes in ConTeXt you don't know what to believe).
ConTeXt is not LaTeX and their development roads are rather diverse.
I know TeX core enough to know how it works, LaTeX enough to know how it's expected to work (and if I don't know something, I know where to look), but ConTeXt I don't know where to find introductory updated material, and also some text about the whole way context organises everything (how files are organised, project structure, how setups work, etc., kind of a whole idea to know where to look when there's doubt about certain area).
You can always read the source (http://pragma-ade.com/context/beta/cont-tmf.zip 😉), if you are in the mood.
Also there's this list, but one does not feel like spamming this list sharing newbie questions with those of people that actually work with this system. And that while showing zero ability to be self-sufficient.
Sorry, but you forgot the wiki (https://wiki.contextgarden.net/). If you ever find that something might be missing there, updating the document is always a great idea. If you are a newcomer, sharing questions might be an approach, but asking them is usually a more efficient one 😎. There is nothing wrong about asking in this mailing list, as long as you don’t expect ultra-fast (or even fast 😔) answers. Some of your questions may go unnoticed, but others may get replies. BTW, if you are subscribed to the ES-TEX mailing list, you may also raise your questions about ConTeXt there (as long as you prepend "(ConTeXt)" to the subject of your message). I hope it helps, Pablo -- http://www.ousia.tk
Am 14.11.2018 um 17:57 schrieb Pablo Rodriguez
: On 11/14/18 1:55 PM, Manuel Blanco wrote:
ConTeXt, but I don't think there's an _updated_ structured introduction. For instance regarding fonts I read here https://tex.stackexchange.com/questions/448812/the-definitive-guide-to-conte... that the latest documentation is http://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf
Hi Manuel,
maybe the problem with ConTeXt is that the newcomers that complain about the lack of introductions never write them (even when they learn how to use ConTeXt).
I’m trying to do that, but I’m a slow learner. The version I write is in german, but once it is finished it should be easy to translate it into english. Having a short introduction was a great help when I learned LaTeX, writing an introduction will probably be a great help to learn ConTeXt. There is still a lot missing, but you can get a glimpse at: https://github.com/AKielhorn/Context-Intro Greetings Axel
participants (4)
-
Axel Kielhorn
-
Manuel Blanco
-
Mojca Miklavec
-
Pablo Rodriguez