TeX re-encoding with TeXShop
$\rm \TeX$ re-encoding with TeXShop (OS X, 10.9)
Please read this page first.
For the TeXShop editor (tested on Mac OS 10.9), here is a tool which helps with this task.
If the applescript is installed and the wiki text file for an old EoM page with png images is displayed in the front document of TeXShop, then one keystroke (Ctrl-Command-S) removes all the png encodings and replaces them by $·$ (resp. $$·$$), prompting the user to fill in the appropriate $\rm\TeX$ code. The user can navigate between the placeholders $·$ and $$·$$ by pressing Ctrl-Command-F (forward) and Ctrl-Command-G (backward). The script also cleans up the references list.
Installation Instructions
This has been tested with Mac OS 10.9 only. I assume that you have TeXShop installed.
- Create a folder called EOM_Scripts inside your Documents folder. (You can also use a different folder, but then you need to change one line in the script.)
- Open your favourite text editor (for example TextEdit) and copy these contents into a new document. Save this document (as a Plain Text file) with title eom_replace_for_mac.pl in the folder EOM_Scripts.
- Then copy these contents into a new document. Save this document (as a Plain Text file) with title eom_refs.pl in the folder EOM_Scripts.
- The two files you just created are perl scripts and need to be made executable. In order to do this,
- open the Terminal app and type
- cd Documents/EOM_Scripts/
- then press Enter and type
- chmod u+x eom_replace_for_mac.pl
- then press Enter and type
- chmod u+x eom_refs.pl
- then press Enter
- Now you can quit the Terminal app.
- Open the TeXShop app, go to TexShop>Preferences and set encoding to Unicode (UTF-8).
TeX re-encoding with TeXShop. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=TeX_re-encoding_with_TeXShop&oldid=32261