如何更改樹設定以顯示 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應用程式更改。
這是您現在可以在“樹”面板中獲得的內容的範例:
請記住逐個載入包,否則您將獲得一個以逗號分隔的清單作為一項。