The class Structures_BibTex provides some methods to export the data stored in the class. Currently the class exports the data in the following formats:
BibTeX - The whole data in BibTeX
RTF - The data with enough matching data as a short list in RTF format
HTML - The data with enough matching data as a short list in HTML format
The default is to export the name of the author in this format: "VON LAST, JR, FIRST". The corresponding placeholder will be substituted. The placeholders have to be uppercase. The format string is defined in the class variable authorstring. Changing the ouput of the author in the entries to this format "FIRST LAST" can be done like this:
Пример 57-1. Changing author format
|
One of the basic features is of course the export in BibTeX format. This is simply done by invoking the bibTex() method.
Пример 57-2. Exporting in BibTeX format
|
This feature was introduced to enable some kind of import into Word. Word (of course also Open Office or kword) understands the RTF format. It is simply possible to save the output as 'somefile.rtf' and be opened in Word. This will satisfy the Windows users. To use it simply call the method rtf().
Пример 57-3. Exporting in RTF format
|
The default format for every entry is first the authors, then the title bold and in double quotes, then the journal italic and finally the year. To change the default format you should override the class variable rtfstring. The default rtfstring looks like this: 'AUTHORS, "{\b TITLE}", {\i JOURNAL}, YEAR'. The string AUTHORS, TITLE, JOURNAL and YEAR are substituted with the corresponding values.
Пример 57-4. Exporting in RTF format with different RTF string
|
This feature is just a simple HTML generation. The default formatting is the same as in rtf. To use it call the method html().
Пример 57-5. Exporting in HTML format
|
As with the RTF export it is possible to override the default HTML string.The default string is stored in the class variable htmlstring and looks like this: AUTHORS, "<strong>TITLE</strong>", <em>JOURNAL</em>, YEAR<br />.
Пример 57-6. Exporting in HTML format with different HTML string
|
Пред. | Начало | След. |
Warnings | Уровень выше | Miscellaneous |
HIVE: All information for read only. Please respect copyright! |