Both sides previous revisionPrevious revisionNext revision | Previous revision |
kb:rich_text_bibliography [2009/08/29 08:15] – komrade | kb:rich_text_bibliography [2020/01/14 18:56] (current) – dstillman |
---|
==== Can I have special formatting in the bibliography, e.g. italic for foreign words, subscript in a chemical formula? ==== | ==== How do I use rich text formatting, like italics and sub/superscript, in titles? ==== |
| |
Basic formatting is [[dev/csl_syntax_summary#formatting|supported]] in bibliographies at present, but must apply to the whole field (e.g. the whole title will be in italic). | You can apply rich text formatting by manually adding the following HTML-like tags to fields in your Zotero library: |
| |
Spacing, line breaks and indents are also [[dev/csl_syntax_summary#bibliography_only_options|supported]]. | * <nowiki><i></nowiki> and <nowiki></i></nowiki> for //italics// |
| * <nowiki><b></nowiki> and <nowiki></b></nowiki> for **bold** |
| * <nowiki><sub></nowiki> and <nowiki></sub></nowiki> for <sub>subscript</sub> |
| * <nowiki><sup></nowiki> and <nowiki></sup></nowiki> for <sup>superscript</sup> |
| * <nowiki><span style="font-variant:small-caps;"></nowiki> and <nowiki></span></nowiki> for <html><span style="font-variant: small-caps;">smallcaps</span></html> |
| * <nowiki><span class="nocase"></nowiki> and <nowiki></span></nowiki> to <html><span class="nocase">suppress capitalization rules (e.g., for foreign phrases within English titles)</span></html> |
| |
Special formatting for individual words or characters within fields - such as SmallCaps, <sub>subscript</sub>, <sup>superscript</sup> and //italic// - is not yet supported, though this should be possible in upcoming releases of the CSL. | Zotero will automatically replace these tags by the specified formatting in bibliographic output. E.g. "<nowiki><i>Pseudomonas aureofaciens</i></nowiki> nov. spec. and its pigments" will become "//Pseudomonas aureofaciens// nov. spec. and its pigments". |
Here's a [[http://forums.zotero.org/discussion/3875/rich-text-in-titles/#Item_11|workaround]] which may help you for now. | |
| |
{{tag>kb csl_faq}} | Note that if rich text formatting has to be applied indiscriminately to entire fields (e.g. a style guide may dictate that titles should be in italics), you can modify the relevant Citation Style Language (CSL) style (see the [[dev/citation_styles|CSL documentation]] and the [[http://citationstyles.org/downloads/specification.html#formatting|CSL field formatting options]]). |
| |
| A future version of Zotero will allow visual rich-text editing without manually adding HTML tags. |
| |
| {{tag>kb styles}} |