SmarterQuotes

-- compatible with WinEdt version(s) 10, 9, 8, 7 --

Description

This package provides two macros for smart double quotes and smart single quotes.

The first macro allows to insert opening and closing double quotes (language-dependant) simply by pressing one time " at the beginning or at the end of a word, respectively. Further, it is possible to insert the character " by pressing the key " twice.

The second macro allows to insert opening and closing single quotes (language-dependant) simply by pressing one time ' at the beginning or at the end of a word, respectively. Further, it is possible to insert the character ' by pressing the key ' twice.

Installation

Open the macro file Install.edt in WinEdt, and execute it by choosing Macros | Execute Current Macro.

Uninstallation

Open the macro file Uninstall.edt in WinEdt (also available in %b\Uninstall\SmarterQuotes folder), and then execute it by choosing Macros | Execute Current Macro.

Usage

The macros act differently depending on the document's mode. For example, if the document's mode is TeX:DE, the macro for double quotes inserts, respectively, "` and "' for opening and closing quotes and the macro for single quotes inserts, respectively, \glq and \grq{} for opening and closing quotes.

If the comment

% SQ: UNICODE

is found in the preamble of your document, then the unicode version of quotes are inserted, e.g. for German language, and , and .

Typing twice " or ' you get the respective characters.

If the comment

% SQ: EN-single

is found in the preamble, then SmarterQuotes is forced to activate the English single quotes, even in a different document's mode.

If for some reason you want to disable SmarterQuotes, write in the preamble

% SQ: disabled

or

% SQ: single-disabled
% SQ: double-disabled

if you want to disable only single or double quotes.

Download

For WinEdt 7.x:   SmarterQuotes_7.zip

For WinEdt 8.x, 9.x:   SmarterQuotes_8.zip

For WinEdt 10.x:   SmarterQuotes_10.zip


Package contributed by Riccardo Dossena <riccardo.dossena@gmail.com>