< ConTeXt Standalone
< ConTeXt Standalone
TeXShop is a popular TeX editor for Mac OS X. To install it, download the disk image from and put this app in the Applications folder alongside your ConTeXTStandalone folder. MacTeX installs Ghostscript, an open source version of Postscript. An optional package installs libgs, the dynamical library for Ghostscript. That library is used by only one program in TeX Live, dvisvgm. So it is not installed by default, but can be obtained using the ``custom install' option in MacTeX.
This page describes an alternative of installing ConTeXt Standalone on Mac OS X. In particular it describes how to configure some GUI applications to work well with standalone.
(It is enough to follow the steps described in ConTeXt Standalone. Some instructions on this page may cause difficulties that are hard to overcome.)
Mac newbie installation and configuration
The following assumes that you want to use ConTeXt and you are a not inside UNIX world (otherwise, see before and after). It guides you to install ConTeXt standalone installation under Mac in the typical Applications folder. Then it gives you some informationabout how to configure Smultron and TeXShop to work as an editor for ConTeXt.Smultron is a Mac-only, open source text editor which is very easy to use and at the same time powerful (see also [1]).
ConTeXt installation
1. Create a folder inside the Applications folder (in the Finder, press Command-Shift-A, Command-Shift-N) and name it “ConTeXtStandalone”
(BEWARE: Installing in the Applications folder may cause permission problems!) Cities skylines mac download code.
2. Open a Terminal window (i.e., open the Terminal.app in your Utilities folder: a little window pops up)
3. Type this:
cd /Applications/ConTeXtStandalone , which means “change directory to ConTeXtStandalone”. Now you are working in the folder you have just created.
4. Type this:
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . and press Return.
This calls
rsync , a program which goes to the contextgarden site (--> you must be connected to internet) and downloads the denoted file(s). To start, it simply downloads the little file first-setup.sh : this shell script contains a set of instructions which allow for automatic downloads (e.g., it selects the right files depending on which platform you are).
To get the rest of the ConTeXt standalone, you have to execute this script by typing in Terminal
./first-setup.sh .
This will start the download and install process. Now (well, after a while) you have all the required files in the /Applications/ConTeXtStandalone folder.
Configuring ConTeXT
1. Open a text editor and create a file that has in it the following line:
. /Applications/ConTeXtStandalone/tex/setuptex /Applications/ConTeXtStandalone/tex . Save this file as “.bash_profile” (see Where to put files, below). (BEWARE: That might overwrite an existing .bash_profile!)
Note: this file will be hidden, so make sure that you save it in the right place before completing the SAVE command.
![]()
(There is a small utility for working with hidden files on the Mac called 'Show/Hide Invisible Files': it is available at
http://www.macupdate.com/info.php/id/22318 .)You can find out more on how to view hidden files on mac on the official site of MacHow.
2. Create a new folder named “texmf-local” inside ConTeXtStandalone/tex.
3. Create another folder “web2c” inside this texmf-local folder.
4. Inside your ConTeXtStandalone folder, locate the file named
texmf.cnf that is in tex/texmf/web2c. Copy this file to ConTeXtStandalone/tex/texmf-local/web2c. Open this new texmf.cnf file, find the line
TEXMFHOME = /nonexist
and replace it with the single line
TEXMFHOME = ~/texmf
(WHY? Just use the newly created texmf-local and forget about the following steps! HrabanHraban)
Again, replace the line
TEXMF = {!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!with the single line
TEXMF = {$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}
(See Where to put files below. These instructions assume that your personal texmf folder is in your Home folder. Windows excel download for mac. If you want it elsewhere, be sure to adjust the instructions in section 4 above accordingly.)
5. In Terminal, type
luatools --generate and press Enter/Return.
6. In Terminal, type
context --make and press Enter/Return.
Where to put files
.bash_profile
There are several places that this file may go. One possibility is in your Home folder.You can also use the name '.profile'.
personal texmf
Put your personal texmf folder where it will not get clobbered by future updates. Some possibilities:
(a) inside your Home folder. (Your Home folder is the one that has the house icon.)
(b) inside the Library folder in your Home folder.
Smultron installation and configuration
1. Smultron is a Mac application. To install it, simply download the dmg and put the app under the Applications folder (as usual)
2. Open Smultron and go under Tools-->Handle Commands-->Show Commands Window
3. The resulting window allows you to define some commands which can be executed by Smultron. Substantially, this means that Smultron opens for you a Terminal, types the code you want and presses return. https://trendyskiey876.weebly.com/blog/download-epson-scan-mac-yosemite.
4. Create a new command by pressing the 'New Command' button and type a name (e.g. 'standaloneTexexec'). Then, write in the text field at the bottom:
texexec is the command you should call from the Terminal to run ConTeXt.Now Smultron can do it for you.
5. Write your ConTeXt file with Smultron and save it. When you want to compile it, simply go under Tools-->Commands-->Other-->standaloneTexexec. This will generate a pdf file in the same folder of your .tex file.
6. If you want to experiment with LuaTeX (ConTeXt MkIV) simply add another command (you can name it e.g. 'standaloneLua') with this text in its text field:
6b. If you explore the Commands window, you will see that clicking under the Shortcut tab you can insert a shortcut.
6c. If you want to see what ConTeXt is telling you (which is fundamental in case of unexpected behaviors) you can select Tools-->Handle Commands-->Show Command Result Window. This will open a window mirroring the content of the Terminal (i.e. what ConTeXt is communicating you)
7. If you want an automatic update of the pdf you are workin on you can use another mac app, pdfview. You have simply to install it, open your pdf file and choose the automatic update option. Every time you recompile form Smultron (or by another editor), it updates the displayed pdf
Here we are not using the famous TeXShop editor, because it is slightly more complicated, and typically you grab it bundled with a TeX distribution (like MacTeX), and opportunely configured. By using Smultron, we have created a completely autonomous and lightweight ConTeXTStandalone installation which can work aside MacTeX/TeXShop installation. More, by pdfview we have auto update, which is one of the very relevant feature of TeXShop (If you do not know about all this stuff, see Mac installation
TeXShop installation and configuration
TeXShop is a popular TeX editor for Mac OS X.
1. To install it, download the disk image from
http://www.uoregon.edu/~koch/texshop/obtaining.html and put this app in the Applications folder alongside your ConTeXTStandalone folder.
2. Launch TeXShop. It will automatically create the necessary support files.
3. Create an empty text document with your favorite text editor or TeXShop. Then, insert the following text into the document:
4. SAVE this document in your Home folder in “Library/TeXShop/Engines/” AS “ConTeXt-MKII.engine”. (TeXShop offers the .engine file format). After you have saved the file, open Terminal, navigate to /Library/TeXShop/Engines in your Home folder using
cd ~/Library/TeXShop/Engines/ . Then, run chmod +x ConTeXt-MKII.engine .
5. Repeat steps 3 and 4, by creating a file named “ConTeXt-MKIV.engine” that contains the lines: Texshop Download Mac Os X 10.13
Please note that the directory might be called texmf-osx-64 on your computer.
6. Repeat steps 3 and 4 once more, by creating a file named “ConTeXt-XeTeX.engine” that contains the lines:
Typesetting with TeXShop
1. Close all open documents in TeXShop, open a new one, go the the Engine menu (immediately to the right of the “Typeset” button in the Toolbar), and select one of Sims 3 online download mac.
This will instruct TeXShop to use this engine to compose your documents.
2. Edit your ConTeXt document with TeXShop. In the TeXShop toolbar, in the “Typeset” menu, choose “ConTeXt” and “Pdftex”. (Check the TeXShop preferences for more settings.) When you want to typeset the document, simply hit Command-T press or “Typeset” at the top of the document window. This will generate a PDF file in the same folder of your .tex file.
Notes
All the process requires that you have installed on your machine rsync, ruby and perl. But if you are on MacOS X, Apple should already have provided it, so at 99% there should not be problems.
Retrieved from 'https://wiki.contextgarden.net/index.php?title=ConTeXt_Standalone/Mac_Installation&oldid=22220'
Reference: http://pages.uoregon.edu/koch/texshop/obtaining.htmlShortcut for New Users Who Want To Test Drive TeX
TeXShop is a front end to TeX and LaTeX, but when TeXShop typesets, it calls command line programs in an underlying TeX distribution. This distribution must be obtained separately. The TeX distribution contains the actual typesetting programs by Knuth and others, various fonts used by TeX, and a vast array of support style files and other auxiliary files.
A small distribution adequate for beginners is available by going to http://www.tug.org/mactex/morepackages.html. Click on the link titled “BasicTeX.pkg.zip” to download. The result will be an Apple install package which will install BasicTeX when double clicked. Obtain TeXShop separately. No further configuration is needed, so run TeXShop and try some simple examples from the internet or the TeXShop Help Menu.
Texlive Mac OsObtaining TeXShop and TeX Live
The standard TeX distribution on the Macintosh is called TeX Live. BasicTeX is a small subset of TeX Live, but anyone serious about TeX should obtain the full distribution. The MacTeX Working Group from the Tex User Group (TUG) constructed an install package which installs TeX Live and everything else needed to run TeX on Mac OS X in one step. This package is free, and uses Apple’s standard installer; installation takes four to eight minutes and is automatic. The package installs TeX Live, the complete reference edition of TeX produced in cooperation by TeX User Groups across the world. It also installs Ghostscript and several GUI utilities for TeX including TeXShop, so it is not necessary to get the front end separately. One of the GUI programs it installs is “TeX Live Utility,” which can keep TeX Live up to date. Everything is completely configured and ready to use once the installer finishes its job.
MacTeX is a large download, over a gigabyte. To obtain it, click on the following link: MacTeX.pkg.
About MacTeX and TeX Live
For more details about MacTeX, go to the MacTeX web page, www.tug.org/mactex.
TeX Live runs on almost all modern operating systems, including Mac OS X, Windows, GNU/Linux, and various forms of BSD Unix. The distribution is the same on all of these systems; nothing has been added, subtracted, or modified to make it work on OS X. The distribution contains essentially every TeX tool in common use today: Plain TeX, LaTeX, AMS-TeX, ConTeXt, XeTeX, and others, as well as a complete array of packages, style files, and fonts.
Another way to get MacTeX is to join TUG; the package is on the DVD sent immediately to new members and once a year to continuing members. This DVD contains extra front-ends for Mac OS X and many other useful TeX utilities. It also contains complete TeX distributions for Windows, GNU/Linux, and other Unix systems.
Texshop Download Mac Os X 10.10
TUG membership benefits include three issues of TUGBoat, the journal of the organization, and additional CD’s containing the CTAN TeX archive of style files, packages, fonts, documentation, etc. For details on joining, see http://www.tug.org.
Texshop DownloadSummaryInstall Texshop
Let’s summarize. To use TeX on Mac OS X, it suffices to install TeXShop and BasicTeX. For a more complete installation, install MacTeX.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |