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

Murray Eisenberg murrayeisenberg at gmail.com
Fri Apr 14 18:29:31 EDT 2023



> On Apr 14, 2023, at 3:41 PM, Herbert Schulz via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
> 
> 
> 
>> 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}")
>> 
> 
> 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#}.
> 

I forgot about macros being the place to look! Yes, macros for both \emph and \textbf are, indeed, in the Text Styles section of the Macro Editor list. I just had to add the keyboard shortcuts for them.  Thank you.
---
Murray Eisenberg		murrayeisenberg at gmail.com
Mobile (413)-427-5334
503 King Farm Blvd #101		
Rockville, MD 20850-6667	



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20230414/8b18cdb5/attachment.htm>


More information about the MacOSX-TeX mailing list