如何更改树设置以显示 tex 文件中使用的包?我正在使用这个,但效果不太好:
END="\usepackage[?]"
ITEM="\usepackage[?]"
// Disabled: Change Mode from ? to TeX to enable this item
MODE_FILTER="TeX"
CASE_SENSITIVE=1
BEGINNING_OF_LINE_ONLY=1
CURRENT_DOCUMENT_ONLY=1
ALL_OPENED_DOCUMENTS=0
COMPLETE_PROJECT_TREE=1
ICON="Figure"
LEVEL=96
CAPTION="%[!|Exe('%b\Macros\Gather\FigTab.edt');|];%$('FigTabGather');"
MAX_LINE_SPAN=99
ON_CTRL_CLICK_MACRO="GlobalMark;TreeTrack(2);"
ON_CLICK_MACRO="TreeTrack(2,1);"
ON_DBL_CLICK_MACRO="TreeTrack(2,2);"
ACTION="Find"
IMAGE="Find"
MACRO="TreeTrack(2);"
SUBSTITUTION="\label{*}"
SUB_FIND="\\label\{*\}"
SUB_REPLACE=""
SUB_REG_EX=1
SUB_CASE_SENSITIVE=1
SUBSTITUTION=" "
SUB_FIND=" +{ }"
SUB_REPLACE=" "
SUB_REG_EX=1
SUB_CASE_SENSITIVE=1
SUBSTITUTION="\dots"
SUB_FIND="\dots"
SUB_REPLACE="..."
SUB_REG_EX=0
SUB_CASE_SENSITIVE=1
SUBSTITUTION="\ldots"
SUB_FIND="\ldots"
SUB_REPLACE="..."
SUB_REG_EX=0
SUB_CASE_SENSITIVE=1
END="\usepackage[?]"
答案1
请删除您添加的行Tree.ini
以及该行之后的行
[NAVIGATION_BAR]
添加以下内容
BRANCH="Packages-TeX"
BRANCH_CAPTION="Packages"
BRANCH_MODE_FILTER="TeX|DTX;INS;STY;AUX"
BRANCH_ICON="Gather"
BRANCH_SORTED=0
BRANCH_CASE_SENSITIVE=1
BRANCH_IGNORE_COMMENTS=1
BRANCH_IGNORE_VERBATIM=1
BRANCH_EXPANDED=0
ITEM="\usepackage[?]{?}"
ALT="\usepackage{?}"
MODE_FILTER="TeX"
CASE_SENSITIVE=1
BEGINNING_OF_LINE_ONLY=1
CURRENT_DOCUMENT_ONLY=1
ALL_OPENED_DOCUMENTS=0
COMPLETE_PROJECT_TREE=1
ICON="Package"
LEVEL=0
CAPTION="%?"
BALANCED="{}\"
MAX_LINE_SPAN=10
ON_CTRL_CLICK_MACRO="GlobalMark;TreeTrack(2);"
ON_CLICK_MACRO="TreeTrack(2,1);"
ON_DBL_CLICK_MACRO="TreeTrack(2,2);"
ACTION="Find"
IMAGE="Find"
MACRO="TreeTrack(2);"
SUBSTITUTION=" "
SUB_FIND=" +{ }"
SUB_REPLACE=" "
SUB_REG_EX=1
SUB_CASE_SENSITIVE=1
END="\usepackage[?]{?}"
END="Packages-TeX"
按下Shift+Ctrl+F9即可应用更改。
这是您现在可以在树面板中获得的内容的一个示例:
只需记住逐个加载包,否则您将得到一个以逗号分隔的列表作为一项。