Template:TeX wordmark
LaTeX
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. 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 source]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.
| 7 | {{TeX wordmark|bibtex}}
|
BibTeX |
{{TeX wordmark|context}}
|
ConTeXt | |
| 1 | {{TeX wordmark|latex}}
|
LaTeX |
| 2 | {{TeX wordmark|latex2e}}
|
LaTeX2ε |
| 3 | {{TeX wordmark|latex3}}
|
LaTeX3 |
{{TeX wordmark|lualatex}}
|
LuaLaTeX | |
{{TeX wordmark|luatex}}
|
LuaTeX | |
{{TeX wordmark|lyx}}
|
LyX | |
{{TeX wordmark|musixtex}}
|
MusiXTeX | |
{{TeX wordmark|pdftex}}
|
pdfTeX | |
{{TeX wordmark|revtex}}
|
REVTeX | |
| 5 | {{TeX wordmark|tetex}}
|
teTeX |
| 4 | {{TeX wordmark|tex}}
|
TeX |
{{TeX wordmark|texmacs}}
|
TeXmacs | |
{{TeX wordmark|xelatex}}
|
XeLaTeX | |
| 8 | {{TeX wordmark|xetex}}
|
XeTeX |
| 6 | {{TeX wordmark|xymtex}}
|
XϒMTeX |
Linked variant
[edit source]Use {{Linked TeX wordmark}} to link to the subject's Wikipedia article. For example, {{Linked TeX wordmark|xetex}} results in XeTeX.
You can override the default link with "link=". For example, {{Linked TeX wordmark|xetex|link=Somewhere else 12345}} results in XeTeX.
Adding a new wordmark
[edit source]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 source]- 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.
TemplateData
[edit source]This template produces TeX-style wordmarks for specific projects
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | 1 | Wordmark name
| String | suggested |