Re: Bibliografia e il comando \cite{}

#2840
Up
0
Down
::


Ho lo stesso problema che hai avuto tu, ma non riesco a risolverlo con quanto viene da te riportato. Va bene finch’è vado in Option | Setting | Active string e controllo tutti i campi di “\cite{}”. Poi però la mia ignoranza si fa largo. 😳 \\
Questo “To check whether the macro that triggers the popup list is actually called, open it (%B\Macros\Active Strings\Cite.edt resp. Ref.edt) “ come lo faccio?

Grazie già sin d’ora
Paola

Ho trovato da solo la soluzione ! 😆
La riporto per chi fosse interessato:

When I typed “\cite{}” or “\ref{}” I used to get a popup list of all bibliography items resp. all labels. This doesn’t work anymore.

There are different possibilities:

WinEdt doesn’t find any items. To check whether WinEdt finds your items, open the Gather page (Project | Gather…) and have a look at the Bib resp. the Label tab. If it’s empty, continue with the next question;

The Active String that triggers the popup list, is disabled. Go to Options | Settings | Active Strings and see whether it includes the item “\cite{}” , with the Action:

Exe(“%B\Macros\Active Strings\Cite.edt”);

the box before On Type checked and in the field thereafter “TeX” . Also, if you use the feature of automatic parentheses completion, make sure that before this “\cite{}” you find the item “\cite{” , defined as Relax; and checked. Verify that there is no other “\cite…” which could override the other definition.

To check whether the macro that triggers the popup list is actually called, open it (%B\Macros\Active Strings\Cite.edt resp. Ref.edt) and put something like

Prompt(“Heureka!”);
in the first line, then try again.

3.2.4. 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 Project | Set Main File. Then you can build the Tree in the Project | Tree page. Now click Reset GDI in the Project | Gather page and then Collect Items.

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.

Go to top