[OS X TeX] Customize brackets/braces/parens/delimiters TexShop matching
Herbert Schulz
herbs at wideopenwest.com
Sun Feb 11 15:55:13 CET 2018
> On Feb 11, 2018, at 7:34 AM, Juan Acevedo <juan.acevedo at gmx.net> wrote:
>
> I wonder if it’s possible to make TeXShop recognise other delimiters than the current {}[]()<>, and match and highlight pairs of guillemets «» for instance, or double question marks “”.
>
> I have been looking at the Help panel, hidden preferences but couldn’t find anything.
>
> Thanks,
> Juan
Howdy,
While not a real answer to you query I want to point out a way to ``guarantee'' pairs are created. While using paired guillemets, «», might be reasonable doing paired double quotes, "", is not reasonable for the same reason that paired dollar signs, $$, are difficult; in both cases it is reasonable to have an unpaired single " or $ so the start and stop delimiter are not well defined.
One way to prevent a problem is to either use a Key Binding (e.g., typing " produces ``•'' (where • is the position of the the insertion point) or creating a simple macro that always puts them in pairs. The Key Binding will only work if there is a single key press to create the result (i.e., you DON'T have to press a dead key before pressing another key---e.g., to get é on a US keyboard you first press Opt-e and then press e).
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives
mailing list