Template:TeX wordmark
LaTeX
![]() | This template uses TemplateStyles: |
This template generates TeX-style wordmarks for specific notable projects. Unless a name is specified, the default wordmark is LaTeX. This template includes:
- A stylesheet
- A reusable TeX component
- A name string normalizer
- A sandbox for drafting changes
- This documentation page
It is recommended that you add new wordmarks to the template, rather than simply embedding {{TeX wordmark|tex}}
in the middle of your wikitext. Adding a wordmark to the template ensures that you receive the full benefit of the template's accessibility features.
Usage
[edit]The template accepts a single positional parameter: the name of the wordmark to use. Wordmarks are identified by names, as described below. Some are also referred to by a number, but you are encouraged to use specific wordmark names when possible, as this makes your intention in wikitext clearer.
1 | {{TeX wordmark|latex}}
|
LaTeX |
2 | {{TeX wordmark|latex2e}}
|
LaTeX2ε |
3 | {{TeX wordmark|latex3}}
|
LaTeX3 |
4 | {{TeX wordmark|tex}}
|
TeX |
5 | {{TeX wordmark|tetex}}
|
teTeX |
6 | {{TeX wordmark|xymtex}}
|
XϒMTeX |
7 | {{TeX wordmark|bibtex}}
|
BibTeX |
8 | {{TeX wordmark|xetex}}
|
XeTeX |
{{TeX wordmark|musixtex}}
|
MusiXTeX | |
{{TeX wordmark|revtex}}
|
REVTeX | |
{{TeX wordmark|context}}
|
ConTeXt | |
{{TeX wordmark|lyx}}
|
LyX |
This template produces TeX-style wordmarks for specific projects
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | 1 | Wordmark name
| String | suggested |
Adding a new wordmark
[edit]Adding a new wordmark includes the following steps:
- Draft your change in the sandbox.
- Make sure the name is recorded to Template:TeX wordmark/name, including typical capitalization, all-lowercase, and other foreseeable variations.
- Update the stylesheet with new styles. Try to re-use existing styles if possible.
- Make sure the added wordmark matches a standard reference.
- Sync your change to Template:TeX wordmark.
- Update the documentation with the new parameter name(s) and an additional row to the "Usage" table.
Style guide
[edit]- When writing out the text of the watermark, use capitalization that is consistent with how the name is usually spelled in writing. At the end of the day, this is textual content, and we should conserve the semantics of text.
- For example, even though the LaTeX wordmark uses all capital letters, it is encoded in the template as "LaTeX" and not "LATEX".
- The exception is if the letter is replaced with another character entirely, as in LaTeX2ε or XϒMTeX.
- Use the "texhtml-upper" class to force a letter to be capital or lowercase if it is not normally rendered that way in its name.
- Use the "texhtml-backwards" class to render a backwards letter.
- XeTeX is an example of both forced capitalization and backwards lettering.