'othereditor' help
Name:othereditor
Version:0.1
Last update:2021-05-21 14:43:29






This file documents the command line tool othereditor provided by Alpha. This tool is meant exclusively to enable synchronization between a TeX file and a pdf file when you use the TeXShop front end to typeset your LaTeX documents. This means that you can use Alpha as an external editor with TeXShop: each time TeXShop needs to jump to a given location in your TeX document or to display an error in the log file, it will open the relevant files at the appropriate location using Alpha.
This works with TexShop version 4.24 or greater.
If you are looking for a command line tool that lets you edit files with Alpha from a Terminal window or from a shell script, see the following tools:

Usage

The script can be found inside the application bundle in the $APPLICATION/Contents/Resources/Libraries/Extras directory. Here $APPLICATION designates the path of the Alpha application (click here to place this path in the Clipboard).
It is also distributed with Alpha's ExtraTools: click here to download the ExtraTools.
The general syntax of this script is:
othereditor ?-d? linespec file
othereditor [-h|-v]
The command supports the following options:
-dprint debugging information
-hprint help
-vprint version
The linespec argument lets you specify a region to hilite. The format is:
line1[.col1][,line2[.col2]]
If .col1 is omitted, the selection will start at the beginning of line1. If .col2 is omitted, the selection will stop after the end of line2. If the second part of the linespec (line2[.col2]) is omitted, then it is equal to the first one.

Integration with TeXShop

In order to enable synchronization between Alpha and TeXShop so that TeXShop uses Alpha as an external editor and can go back to the source file when necessary, you must perform the following tasks: That's all there is to it. Now, if an error occurs during typesetting, you may click on the Goto Error button of TeXShop's console to go back to the source file in Alpha at the line where the error was encountered.

Known problems

Please report any problem or bug you encounter to Alpha's Bug Tracker.

License and Disclaimer

Copyright (c) 2019-2021, Bernard Desgraupes.
All rights reserved.
The othereditor package is free software and distributed under the terms of the new BSD license:
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BERNARD DESGRAUPES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.