Both sides previous revisionPrevious revisionNext revision | Previous revision |
kb:rich_text_bibliography [2010/10/09 12:06] – rmzelle | kb:rich_text_bibliography [2020/01/14 18:56] (current) – dstillman |
---|
==== How can I apply rich text to titles (e.g. italics for species names, sub- and superscript for chemical formulas)? ==== | ==== How do I use rich text formatting, like italics and sub/superscript, in titles? ==== |
| |
While it is possible to [[dev/csl_syntax_summary#formatting|apply rich text formatting to whole fields]] by [[dev/creating_citation_styles|modifying the CSL citation style]], Zotero 2.0 doesn't support rich text formatting **within** fields. | You can apply rich text formatting by manually adding the following HTML-like tags to fields in your Zotero library: |
| |
However, one can use the workaround described in [[/forum/discussion/3875/rich-text-in-titles/#Item_11|this]] forum post, which relies on a set of HTML-like tags for //italics//, **bold**, <sub>subscript</sub>, <sup>superscript</sup> and smallcaps. This approach can be combined with a macro for your text editor to remove the tags and apply the formatting (a macro for Microsoft Word is available [[/forum/discussion/3875/rich-text-in-titles/#Item_14|here]]). | * <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> |
| |
Zotero 2.1 (currently in beta) will support CSL 1.0, and will automatically identify these tags and apply the desired formatting in the bibliographic output. | 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". |
| |
{{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}} |