2008年(9)
分类:
2008-06-28 11:27:48
IMPORTANT:
The most common reason for the active string \cite{} to "stop working" is that WinEdt does not know where to collect bib items. For example the Main File might not have been set of else bibliography file is located in a folder that WinEdt is not aware of.
WinEdt builds the tree based on Input Directives (as specified in the Options -> Advanced -> Tree interface: Tree.ini file). Directives are mode-sensitive (since different rules apply to different document formats).
Bibliography files can be placed in the same folder as the Main File. However, since such data is usually shared between your projects you might do better to create a global bibliography and place it in your BibTeX folder in the local texmf tree. TeX's Manual explains how to do this and describes any other actions that should be taken. Eg., MiKTeX's Users have to use MiKTeX's Options Interface to refresh its FNDB (the filename database). Note that WinEdt is not aware of the folders where your TeX accessories look for input or bib files. If you decide to use the global Bibliography Data base you should specify this folder as a part of a search path for Input Directive \bibliography{?}. This is done by modifying the Input Directive Section in Tree.ini (Options -> Advanced: Tree). For example:
DIRECTIVE="\bibliography{??}" FILENAME="%[!|Exe('%b\Macros\GetBibFiles.edt');|];%$('_ExTreeInput');" // allows comma separated list of bib files SEPARATOR="," // possible extensions (.=default [.bib] as appended by the above macro) EXTENSION=".;.bib" // add additional locations for your bib files, eg.: // "%P;%p;%$('TeX-Local');\bibtex;C:\TeX\bibtex\My Bib Files" PATH="%P;%p;C:\localtexmf\bibtex\myBib.bib"
The new extended Input Directives in WinEdt 5.5 make the old "dummy" input directives redundant (as long as Tree.ini is properly configured). However, it is still possible to use a dummy input directive:
%Included for Gather Purpose only: %input "C:\localtexmf\bibtex\myBib.bib"
Since TeX treats this line as a comment, this does not reduce portability of your documents. Once again: if TeX or BibTeX cannot find any of your input files this is not a WinEdt-related problem. Consult the Manual that comes with your TeX System!
3.2.6. |
When I typed " |
There are different possibilities:
|
3.2.9. |
The Gather Interface does not show any (or not all) items. |
WinEdt usually searches for gather items either in the current file, or, if a Main File is set, in all files of the Project Tree. Therefore the Tree has to be built, if your Project consists of more than one file. To do this, open your main document and select . Then you can build the Tree in the . Now click in the page and then .If WinEdt still doesn't find any items, you are probably trying to get a list of bibliography entries. By default, WinEdt searches for bibliography items in all opened files, if no Main File is set. So if you don't want to use the Tree feature, you can also get items, if you open the bibliography database (but beware, WinEdt does not check whether any opened databases are actually used to create your bibliography!). So the probably better possibility is to include the bibliography database in the Tree, too. Add something like %GATHER{yourbibfile.bib} to your LaTeX document and rebuild the Project Tree. |