TeXShop 上的自动完成功能无法正常工作

TeXShop 上的自动完成功能无法正常工作

我刚刚发现TeXShop应该有这个功能,如第节所述1.16 自动完成本手册的。现在,默认情况下我应该有 的自动完成功能",它应该被 替换``#SEL##INS#'',对于 ,应该用 替换,^等等^{#SEL##INS#}

这些替换的规则autocompletion.plist以如下方式包含在文件中:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

<!--  
    Advanced users can change the default auto completions with this file. 

    The file format is very simple. Each entry is a pair. The first entry is the character
    to be modified. The second entry is the string which will replace it. If this string
    contains #SEL#, then this string should replace the current selection; otherwise it
    will be added to the current selection. If the string contains #INS#, then the cursor
    will be placed at this location.

    For example, the character ^ is replaced by ^{ } and the cursor is placed between
    these brackets using the pair

        <key>^</key>
        <string>^{#SEL##INS#}</string>

--> 


<dict>
    <key>"</key>
    <string>``#SEL##INS#''</string>
    <key>^</key>
    <string>^{#SEL##INS#}</string>
    <key>_</key>
    <string>_{#SEL##INS#}</string>
%... and so on %

问题是,如果我在 TeXShop 编辑器上输入", , ^_则无法获得正确的替换,事实上,我根本无法获得自动完成功能。有人知道为什么吗?我该如何解决这个问题?

答案1

为了激活命令完成,您需要确保在 TeXShop 首选项中选择了“键绑定”选项:

偏好面板

相关内容