[OS X TeX] TeXShop: keyboard combination for \emph

Herbert Schulz herbs2 at mac.com
Fri Apr 14 15:41:34 EDT 2023

> On Apr 14, 2023, at 2:21 PM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
> Before I did a clean install of TeXShop 5.12, in earlier versions I was able to select some text, say "txt", press Cmd-i, and thereby replace that text with "\emph{txt}".
> Where do I add that keyboard functionality back?
> It doesn't seem to be accomplished by either an autocompletion entry or a CommandCompletion entry.
> (I think I may have had a similar arrangement with Cmd-b, to replace selected text "txt" with "\textbf{txt}")
> ---
> Murray Eisenberg murrayeisenberg at gmail.com
> Mobile (413)-427-5334
> 503 King Farm Blvd #101 
> Rockville, MD 20850-6667 


That was probably a key assignment you did to a stadard macro supplied with TeXShop. Do you have an `emphasize' macro under Macros->Text Styles (I can't remember if I added that al LONG time ago or it come with default TeXShop)?

If you do you need to run the Macro Editor (Macros->Open Macro Editor), open the `Text Styles' "folder", choose that macro and assign `i' to the command (the Cmd key is assumed).

If the `emphasize' isn't define just define a new macro that has \emph{#SEL##INS#} as its content, call it emphasize, assign i to the shortcut (again Cmd is assumed) move it around to where you want it in the Macros Menu (initially it's at the bottom of the list) and Save it.

PS: I also have a macro under the Text Styles item called Bold which is assigned to Cmd-B (i.e. b in the Macro Edditor) and contains \textbf{#SEL##INS#}.

Good Luck,

Herb Schulz
herbs2 at mac.com

More information about the MacOSX-TeX mailing list