Changes

Jump to navigation Jump to search
m
remove unnecessary 10.15 stuff
Since April 2019, there is a new flavor of ConTeXtfew users have encountered difficulties in installing, named « LuaMetaTeX » meant and updating to integrate Lua, Metapost and TeXbeta releases of [[Installation|ConTeXt LMTX]] on macOS, below we describe an installation procedure for macOS. For other platforms the latter meaning ConTeXt.It is going to be self-contained and smaller than previous versions of ConTeXt mkiv and mkiiprocedures are more or less analogous.
See http://www.pragma-ade.com/install.htm [http://www.pragma-ade.com/install.htm] where you can find the installer script for the machine you are using.== Installing LMTX on MacOS ==
Since a few users have encountered difficulties First download [http://lmtx.pragma-ade.nl/install-lmtx/context-osx-64.zip context-osx-64.zip]. Put the unzipped folder {{code|context-osx-64/}} wherever you wish—for instance, in installing, and updating your home directory. Thus the path to, beta releases of LuaMetaTeX your future LMTX directory will be {{code|'''~/context-osx-64/'''}} (from now on MacOS, below this is what we describe an installtion procedure for MacOS. For other platforms the procedures are more or less analogousassume).
 == Installing on MacOS == * First download http://lmtx.pragma-ade.nl/install-lmtx/context-osx-64.zip  * Put the unzipped folder « context-osx-64 « whereever you wish: for instance in your home directory. Thus the path to your future LuaMetaTeX directory will be (and below this is what we assume) ~/context-osx-64/ * Open a Terminal window ({{code|Terminal.app }} is found in {{code|/Applications/Utilities/}}). In the Terminal window type cd '''~/context-osx-64/''' * Then you should be able to execute the command sh install.sh * It may happen that MacOS will not allow you to execute the above shell command, or the mtxrun script which is called by install.sh. In particular this happens beginning with MacOS 10.15 Catalina, where GateKeeper tries to protect you against yourself… In that case, you should open the System Préferences (from the Apple menu) and there choose Security & Privacy, and go to the General pane. There you should be able to authorize the shell script, which has been blocked, to be executed. After that you issue again the command
sh install.sh
and MacOS will ask you again whether you really want to execute mtxrun: you say YES!
* After that, if everything goes smoothly , a complete functionning functioning tree of LuaMetaTeXLMTX, complete with dozens of manuals, will be installed in the folder {{code|'''~/context-osx-64/and whenever '''}}. Whenever you want to update your installation of LuaMetaTeXLMTX, it is enough to go to the above that directory in Terminal and do & run the installation script again:
sh install.sh
* If you want to use LuaMetaTeX == Running LMTX from the Terminal interface you should add the path of your installation to $PATH by adding to your .bashrc(or any other flavor of shell interface you are using) the line export PATH=~/context-osx-64/tex/texmf-osx-64/bin:~/context-osx-64/bin:~/context-osx-64/tex/texmf-osx-64/bin:$PATH(if you have installed « context-osx-64 » elsewhere, please replace the segment « ~/context-osx-64 » with the path to that folder).=
* A better choice is If you want to use TeXShop [https://pagesrun LMTX from the Terminal interface in any directory, you should add the path of your installation to $PATH by adding this to your {{code|.uoregon.edu/koch/texshop/obtaining.html]bashrc}} (10. Once TeXShop is installed, go to ~/Library/TeXShop/Engine14 and there duplicate for instance the file « ConTeXt (LuaTeXearlier)or {{code|.engine » zshenv}} (or any other of the files « 10.engine »15). Name the duplicate LuaMetaTeX.engineand open it in TeXShop (or any text editoranother configuration file, depending on your flavor of shell interface). Replace the content of the file « LuaMetaTeX.engine » with the following lines: #!/bin/bash export PATH=~/context-osx-64/tex/texmf-osx-64/bin:~/context-osx-64/bin$PATH:'''~/context-osx-64/'''tex/texmf-osx-64/bin ~/context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script context --directives="system.showerror" --autopdf "$1" --purgeallthen save and close the file.
* If ''Reminder: if you want to use LuaMetaTeX as your default TeX typesetter in TeXShop, go to TeXShop have installed {{code|context-osx-> Preferences64/}} elsewhere, then under please replace the tab « Typesetting » and segment {{code|'''~/context-osx-64/'''}} in the « Default Command » section choose above code with the radio button « Command listed below « and below path to that type LuaMetaTeXdirectory.''
* In principle, once the above your PATH has been addedmodified, typing in a Terminal window
which context
or
context --version
you should get the path to context the ConTeXt binary and its version. If this is the case, then you can typeset a file named « {{code|myfile.tex » }} from the Terminal by typing:
context myfile.tex
* ---- It may happen that for some reasons reason not everything goes smoothly and & you cannot typeset any document. In that case, try typing in a Terminal window:
which luametatex
in order to see whether {{code|'''~/context-osx-64/'''tex/texmf-osx-64/bin/luametatex}} is present or not. * If not, the download has not been completeis incomplete.
* If {{code|luametatex }} is present, in the Terminal type:
luametatex --version
and see whether it says, among other things:
Functionality : level 20191206
(here {{code|20191206 }} is the date stamp of {{code|luametatex, of course }}; this will change during over time, of course). If not, there might be an issue with the files you have downloaded.
* If yesthere is no issue, in the folder {{code|'''~/context-osx-64/'''tex/}}, remove the folder « directory {{code|texmf-cache » and /}}, then in the Terminal run:
mtxrun --generate
In After that, in principle, after that, the folder directory {{code|texmf-cache is /}} should be present again.
* If this is the case, in the Terminal window type:
context --make --all
If everything goes nicely, you should be able to see LuaMetaTeX functionningLMTX functioning== Running LMTX from TeXShop == Alternatively, you could use a TeX editor such as [https://pages.uoregon.edu/koch/texshop/obtaining.html TeXShop]. Once TeXShop is installed, go to {{code|~/Library/TeXShop/Engine/}}, create a new file named {{code|ConTeXt LMTX.engine}}, open it in your preferred text editor, and add the following lines: #!/bin/bash export PATH=$PATH:'''~/context-osx-64/'''tex/texmf-osx-64/bin '''~/context-osx-64/'''tex/texmf-osx-64/bin/mtxrun --autogenerate --script context --directives="system.showerror" --autopdf "$1" --purgeall ''Reminder: if you have installed {{code|context-osx-64/}} elsewhere, please replace the segment {{code|'''~/context-osx-64/'''}} in the above code with the path to that directory.)'' Save & close the file.  If you want to use LMTX as your default TeX typesetter in TeXShop, go to TeXShop -> Preferences, then under the tab Typesetting, in the Default Command section, choose the radio button "Command listed below", then type {{code|ConTeXt LMTX}} below that.----{{Installation navbox}}[[Category:Installation]][[Category:Standalone]]

Navigation menu