- #Bibliography microsoft word mobile how to
- #Bibliography microsoft word mobile update
- #Bibliography microsoft word mobile windows
The following example copies all sources in the master source to the current source. You can manually copy one or more sources from the master list to the current list by using the Source Manager dialog box, or you can programmatically copy one or more sources from the master list to the current list. However, to add a citation to a document, the source must be listed in the current source list. Inserting a source programmatically into the master source list does not automatically add it to the current source list. You can change the line strXml to strXml The following example uses the basic structure determined previously to add another book source to the master source list. To add a source to the current source list, access the Sources collection from the Bibliography property of the Document object. To add a source to the master source list, you access the Sources collection from the Bibliography property of the Application object. Add sources to the master source list and the current source listĪdding sources to the master source list is similar to adding sources to the current source list, with the exception that you access the Sources collection from different main objects. This file stores the master source list for a user. You can locate additional elements by checking the Show All Bibliography Fields check box.Īlternatively, you can obtain the XML from the bibliography source file named "sources.xml" located at C:\Users\\AppData\Roaming\Microsoft\Bibliography. Now that you have the basic structure of the source XML for a book, you can add additional book sources to the master source list and the current source list. Omitting one or more required element raises a run-time error.) (You can determine which elements are required because they don't have a corresponding editable field in the Create Source dialog box.
#Bibliography microsoft word mobile how to
From the LCID, Word determines how to display names (for example, Last, First for English), what punctuation to use (for example, using comma in one language and a semicolon in another), and what strings to use (for example, whether to use "et al" or another localized form).Īfter removing optional elements, you may have a structure similar to the following XML structure. For example, one source may be written in French, one in English, and one in Japanese. (See MSDN for valid language identification values.) Word uses the LCID to know how to display a cited source in a document's bibliography. The LCID specifies the language for the source.
#Bibliography microsoft word mobile update
This enables Word to determine which source is most recent, based on the value of the GUID, and to prompt whether the user wants Word to update the outdated source to maintain continuity between the master list and the current list. If you don't add a GUID to the XML and a user then edits a source, Word generates a GUID.
#Bibliography microsoft word mobile windows
(See the Visual Studio documentation or the Windows documentation on MSDN for information about programmatically generating ID.) Word generates GUIDs when users add or edit a source. The Guid element value should be a valid GUID, which you can generate programmatically outside the Word object model. The Guid and LCID elements are optional, but you can provide values for them if you want. Sub GetBibliographyXML() Dim strXml As String Dim objSource As Source Set objSource = ( _ ) Debug.Print objSource.XML End SubĪfter following the previous steps, the Immediate Window contains the following XML code. View and add information to additional fields by checking Show All Bibliography Fields. For this example, select Book.įill out the source fields, as shown in the following table: Field
In the Create Source dialog box, select the type of source to create. In the Source Manager dialog box, click New. On the References ribbon, click Manage Sources. The following steps describe how to do this. To determine the XML structure for a source type, you can add the same source type manually, and then view the XML returned. Depending on the type of source you want to add, the required XML structure changes. Sources are added to the source lists programmatically by using XML strings. The list of sources cited in the document (the current list) or the list of sources available in the application (in the master list). ObjectĪn individual source, such as a book, journal article, or interview. The objects in the Word model for that you use for managing bibliography sources are shown in the following table. Use these objects, and additional properties and methods in the Word object model, to add sources to the source lists, cite sources in a document, and manage sources. The following table lists the main objects of the Word Bibliography feature. The Word object model includes several objects designed for automating the creation of bibliographies.