<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Comic Sans MS">Hi,</font></p>
<p><font face="Comic Sans MS">I don't think that it is possible with
a shortcut*, but you could have a script to do that, like this
one:</font></p>
<p><font face="Comic Sans MS">================================
chapter.lua<br>
--[[TeXworksScript<br>
Title: d: chapter \c&hapter<br>
Description: Encloses the current selection in \chapter{}<br>
Author: Alain Delmotte from Stefan Löffler & Jonathan Kew<br>
Version: 0.1<br>
Date: 2011-11-01<br>
Script-Type: standalone<br>
Context: TeXDocument<br>
Shortcut: Alt+W, Alt+&<br>
]]<br>
<br>
txt = TW.target.selection<br>
if (txt == nil) then txt = "" end<br>
TW.target.insertText("\\chapter{" .. txt .. "}")<br>
TW.target.selectRange(TW.target.selectionStart - string.len(txt)
- 1, string.len(txt))<br>
============================</font></p>
<p><font face="Comic Sans MS">To create a \chapter{xyz} instruction
I type "xyz", select this and type Alt+W& (the key where is
"1", but on my belgian keyboard it has & as lower case). If
I selct nothing I just have \chapter{}.</font></p>
<p><font face="Comic Sans MS">You have to put the script file in the
scripts folder.<br>
</font></p>
<p><font face="Comic Sans MS">Regards,</font></p>
<p><font face="Comic Sans MS">Alain</font><br>
</p>
* to be confirmed by the specialists<br>
<br>
<div class="moz-cite-prefix">Le 14/03/2017 à 14:15, Z Br a écrit :<br>
</div>
<blockquote
cite="mid:CA+ThvQ22boJkkA3WA+6+9oW5RZ-ormFeysUnsp7y4r9RpQXMJg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi:</div>
<div><br>
</div>
<div>I am using a shortcuts.ini file to create some custom
shortcuts. I would like to have shortcuts which involve
multiple letters, e.g. the familiar Alt+F+S to save the file.
But when I include lines like this in shortcuts.ini,</div>
<div>actionSave = Alt+F+S</div>
<div>they do not work (literally nothing happens). Shortcuts
with just one letter like</div>
<div>actionSave = Alt+S</div>
<div>do work.</div>
<div><br>
</div>
<div>Is there a way to create shortcuts with multiple letters? </div>
<div><br>
</div>
<div>Regards,</div>
<div>Zach<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>My setup:</div>
<div>Win7 Enterprise x64</div>
<div>TexWorks 0.6.1</div>
</div>
</blockquote>
<br>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="https://www.avast.com/antivirus">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
<br><a href="https://www.avast.com/antivirus">www.avast.com</a>
</p>
</td>
</tr>
</table>
<br />
</body>
</html>