From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Instalation ConTeXt to MAC - newbie problem
Date: Sun, 17 Jan 2016 17:57:49 +0100 [thread overview]
Message-ID: <BAFE69CD-9448-4784-AEC4-C1C99D2875FA@gmail.com> (raw)
In-Reply-To: <569BB9BE.5070905@gyza.cz>
[-- Attachment #1.1: Type: text/plain, Size: 8714 bytes --]
Hi Jaroslav,
On Mac, you can use TeXShop and your standalone Context very easily.
First create a specific « .engine » file for this and then in TeXShop use that engine.
Here is what I have when I typeset a file in TeXShop using mkiv ConTeXt:
%%%%% begin file mkiv.engine
#!/bin/bash
export PATH=/Volumes/OK/context-minimal/tex/texmf-osx-64/bin:$PATH
context --synctex=zipped --autogenerate "$1" --purgeall
%%%%% end file mkiv.engine
you should replace the line « export PATH=…. » by the path to your installation of ConTeXt. More precisely you should replace
/Volumes/OK/context-minimal
with the path going to the folder where your Context installation sits (in your case it is where you have put the file first-setup.sh).
Then this file « mkiv.engine » should be put in the folder
Library/TeXShop/Engines
Once this is done, you have three solutions in order to use TeXShop with your standalone Context. Here they are:
Solution 1: add the following line at the top of your source file:
%!TEX TS-program = mkiv
Note that in the above you may replace « mkiv » with whatever engine name known to your TeXShop installation (for instance « ContextSuite», or any other name you have, or (may God forgive both of us…) even « latex »…).
When you typeset with ConTeXt, then TeXShop will use the chosen engine.
Solution 2: when your source file is open, you should have, at the top of your window, a small menu named « Program ». Click on that menu and among the programs (that is the engines) choose the one you want.
Solution 3: open the TeXShop Preferences and in the « Typesetting » pane , on the upper left part of the resulting window, choose the radio button « Command listed below » and type the name of your preferred engine. This method makes a general default, so if you use some other typesetting packages for some files you have to modify things for those files.
Best regards: OK
> On 17 Jan 2016, at 16:56, Jaroslav Hajtmar <hajtmar@gyza.cz> wrote:
>
> Hello.
> Thanks to Otared and Matthias too for their solutions. Otared's method is working, Mathias method unfortunaly not working. ConTeXt is already installed on my MacBookAir. I dont know why, but It seems that for some reason rsync does not download the first-setup.sh file into my installation directory. After I put first-setup.sh file manually into install directory and then I run the installation script, then everything is all right till the end. At this moment, I still struggle with settings an appropriate environment variables so that everything worked like on my Windows PC installation. Running at (for me) an unfamiliar OS-X it is for me still long run (but adventurous) :-).
> However installation on my MAC is currently commissioned and operational. Thanks for the advices.
>
> Jaroslav Hajtmar
>
>
>
> Dne 17.01.16 v 14:38 Otared Kavian napsal(a):
>> Hello Jaroslav,
>>
>> Here is what I do on my Mac:
>>
>> 1) While in the Finder, create a folder named Context-standalone
>>
>> 2) Put the attached file « first-setup.sh » in the folder Context-standalone
>>
>> 3) Open Terminal and issue the command
>>
>> cd [Path-to-the-folder-Context-standalone]
>>
>> 4) Then in Terminal issue the command
>>
>> ls first-setup.sh
>>
>> you should see something beginning with:
>>
>> -rwxr-xr-x
>>
>> that is the file has an « x » in its or your rights, that is it is executable.
>>
>> If this not the case, using the command below make sure it has that right:
>>
>> chmod +x first-setup.sh
>>
>> 5) Once this is done, issue the command
>>
>> sh first-setup.sh
>>
>> 6) In principle you should end up with all files necessary for Context working in the folder Context-standalone
>>
>> 7) If this is not the case, please report at which step things do not work as expected.
>>
>> Best regards: OK
>>
>>
>>
>>
>>
>>
>>> On 17 Jan 2016, at 14:08, Jaroslav Hajtmar <hajtmar@gyza.cz> wrote:
>>>
>>> Hello Matthias.
>>> Thank you for the quick response. During installation, no error occurs, even seems that rsync copied without error message first-setup.sh to my %HOME/context directory. When then I look into this directory, then there is no file. Subsequently command sudo sh ./first-setup.sh reports nonexistent file or directory. I tried to install it into your Applications folder too (I have administrative access), but not in this way I have not done.
>>>
>>> (As you say: home directory should be safe and path no occure any problematic characters. My home directory is "hajtmar")
>>>
>>> Thanx Jaroslav
>>>
>>> Dne 17.01.16 v 13:27 Weber, Matthias napsal(a):
>>>> Hi Jaroslav,
>>>>
>>>> could you explain a bit more what you mean by "the installation will fail”?
>>>>
>>>> What error message do you get at what stage?
>>>>
>>>> You need to make sure that you have write permission to the installation directory; anything inside your home directory should be safe.
>>>> Also, as a general precaution, make sure the path to your installation directory doesn’t contain unusual characters.
>>>>
>>>> Matthias
>>>>
>>>>
>>>>> On Jan 17, 2016, at 7:19 AM, Jaroslav Hajtmar <hajtmar@gyza.cz> wrote:
>>>>>
>>>>> Hello ConTeXist.
>>>>> I am trying to install a standalone ConTeXt on MacBook. I am doing everything exactly as instructed on contextgarden.net, but the installation will fail. It seems that the problem is with rsync, with copying the installation script first-setup.sh into my Mac. Since I am a longtime Windows user and I'm a newbie on OS X, I'd like to find out what the problem may be. I dont know nothing about OS X, but I suppose that might be a problem with the firewall settings or access rights to the directories which I use to install ConTeXt etc. Can someone please advise how to perform the installation? There is an option to download the installation package and install ConTeXt differently?
>>>>> Thanks for replies.
>>>>>
>>>>> Jaroslav Hajtmar
>>>>>
>>>>> ___________________________________________________________________________________
>>>>> 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
>>>>> ___________________________________________________________________________________
>>>> ___________________________________________________________________________________
>>>> 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
>>>> ___________________________________________________________________________________
>>> ___________________________________________________________________________________
>>> 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
>>> ___________________________________________________________________________________
>>
>>
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 15352 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-01-17 16:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-17 12:19 Jaroslav Hajtmar
2016-01-17 12:27 ` Weber, Matthias
2016-01-17 13:08 ` Jaroslav Hajtmar
2016-01-17 13:20 ` Weber, Matthias
2016-01-17 13:38 ` Otared Kavian
2016-01-17 15:56 ` Jaroslav Hajtmar
2016-01-17 16:57 ` Otared Kavian [this message]
2016-01-17 17:32 ` Jaroslav Hajtmar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAFE69CD-9448-4784-AEC4-C1C99D2875FA@gmail.com \
--to=otared@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).