Knowledge

Template:SubSup

Source đź“ť

21: 52: 495:
typefaces simply slant the upright font, so that its “italic” font is properly just oblique. The distinction between oblique and true italic type is commonly ignored, so that “italic” is usually taken to mean simply the oblique font of the primary typeface. This template follows that
448:
The template has been tested under Windows XP SP3 using Firefox 3, Internet Explorer 7, Opera 9.5, and Safari 3.1. Combined subscripts and superscripts do not display properly when zooming the text with Internet Explorer 7.
123:
The first argument is assumed to be a quantity symbol, and is set in the oblique (“italic”) font of the typeface for the surrounding text. To have the base symbol in upright font, give the symbol before the template and give a blank first argument.
101:
tags, which display the material in a serif typeface regardless of the typeface of the running text. Unlike with TeX/HTML rendering, the type size of the subscripts and superscripts is always reduced, in keeping with common practice in mathematics.
127:
The subscripts and superscripts are set in upright font, in keeping with normal practice for numerals and descriptive subscripts. To set the superscript or subscript in oblique font, as for a subscript that itself is a variable, use the HTML
88:
This template provides a simple means of coding inline mathematical material that has subscripts and superscripts, for display in the same typeface as the surrounding text. The rendering is always done in
146:
By default, a space of approximately 1/6 em is added after the symbol to prevent the oblique symbol from overlapping the upright superscript or subscript. To suppress this spacing, give the optional
592: 597: 547: 535: 36: 571: 531: 32: 517: 40: 587: 62: 78: 158:
parameter may be given at any point in the argument list; the other arguments must be given in the order shown.
542: 73: 567: 525: 28: 521: 484:
are different from the upright font, resembling handwriting. This is the case with most
66: 581: 333: 509: 473: 466: 154:
parameter is ignored if the first argument (for the base symbol) is blank. The
492: 65:
before editing the template. If your edit causes unexpected problems, please
143:
Note that to get only a superscript, a blank second argument must be given.
15: 71:
You can conduct experiments, and should test all major changes, in either
488: 477: 69:
it quickly, as this template may appear on a large number of pages.
485: 481: 469: 90: 94: 61:
You are encouraged to familiarise yourself with its setup and
46: 273:
Subscript and superscript with base symbol in upright font:
58:
This template employs intricate features of template syntax.
559: 551: 150:
parameter (any value other than zero is ignored); the
339:template may be wrapped around any of these. E.g. 81:, or your user space before changing anything here. 119:{{SubSup||<subscript>|<superscript>}} 8: 541:Editors can experiment in this template's 93:; this offers an alternative to using the 329:To obtain a more mathematical font, the 458: 413:{{math|{{SubSup|e||''u'' ln ''a''}}}} 136:tags, or the wikimarkup for italics ( 7: 480:, i.e., the type is slanted and the 593:Superscript and subscript templates 133: 129: 98: 14: 598:Mathematical formatting templates 193:Subscript only without spacing: 115:{{SubSup|||<superscript>}} 99:<math>...</math> 50: 19: 130:<var>...</var> 1: 111:{{SubSup||<subscript>}} 301:{{SubSup|e||''u'' ln ''a''}} 296:Superscript with variables: 368:{{math|{{SubSup|x|s=0|a}}}} 244:Subscript and superscript: 614: 515: 134:<i>...</i> 572:Subpages of this template 389:{{math|{{SubSup|x||3}}}} 79:general template sandbox 344:{{math|{{SubSup|x|a}}}} 74:this template's sandbox 566:Add categories to the 24:Template documentation 97:preprocessor via the 588:Intricate templates 526:Template:SubSup/doc 217:Superscript only: 198:{{SubSup|x|s=0|a}} 86: 85: 605: 563: 555: 539: 497: 463: 439: 438: 437: 436: 433: 423: 420: 414: 409: 408: 407: 406: 403: 399: 396: 390: 385: 384: 383: 382: 379: 375: 369: 364: 363: 362: 361: 358: 354: 351: 345: 338: 332: 325: 324: 323: 320: 310: 307: 302: 292: 291: 290: 287: 279: 278:X{{SubSup||a|3}} 269: 268: 267: 264: 258: 255: 250: 249:{{SubSup|x|a|3}} 240: 239: 238: 235: 231: 228: 223: 213: 212: 211: 208: 204: 199: 189: 188: 187: 184: 180: 177: 172: 166:Subscript only: 149: 139: 135: 131: 120: 116: 112: 100: 76: 63:parser functions 54: 53: 47: 44: 25: 23: 22: 613: 612: 608: 607: 606: 604: 603: 602: 578: 577: 576: 575: 565: 557: 545: 540: 529: 514: 506: 501: 500: 464: 460: 455: 446: 434: 425: 424: 421: 418: 417: 416: 412: 404: 401: 400: 397: 394: 393: 392: 388: 380: 377: 376: 373: 372: 371: 367: 359: 356: 355: 352: 349: 348: 347: 343: 336: 330: 321: 312: 311: 308: 305: 304: 300: 288: 285: 283: 282: 281: 277: 265: 262: 260: 259: 256: 253: 252: 248: 236: 233: 232: 229: 226: 225: 222:{{SubSup|x||3}} 221: 209: 206: 205: 202: 201: 197: 185: 182: 181: 178: 175: 174: 170: 164: 147: 137: 118: 117: 114: 113: 110: 108: 82: 72: 70: 51: 45: 26: 20: 18: 12: 11: 5: 611: 609: 601: 600: 595: 590: 580: 579: 556:and testcases 513: 512: 505: 502: 499: 498: 457: 456: 454: 451: 445: 442: 441: 440: 410: 386: 365: 327: 326: 294: 293: 271: 270: 242: 241: 215: 214: 191: 190: 171:{{SubSup|x|a}} 163: 160: 107: 104: 84: 83: 60: 55: 17: 16: 13: 10: 9: 6: 4: 3: 2: 610: 599: 596: 594: 591: 589: 586: 585: 583: 573: 569: 561: 553: 549: 544: 537: 533: 527: 523: 519: 518:documentation 511: 508: 507: 503: 494: 490: 487: 483: 479: 475: 471: 468: 462: 459: 452: 450: 444:Compatibility 443: 432: 428: 411: 387: 366: 342: 341: 340: 335: 319: 315: 299: 298: 297: 276: 275: 274: 247: 246: 245: 220: 219: 218: 196: 195: 194: 169: 168: 167: 161: 159: 157: 153: 144: 141: 125: 121: 105: 103: 96: 92: 80: 75: 68: 64: 59: 56: 49: 48: 42: 38: 34: 30: 510:Help:Formula 461: 447: 430: 426: 337:}} 331:{{ 328: 317: 313: 295: 272: 243: 216: 192: 165: 155: 151: 145: 142: 126: 122: 109: 87: 57: 522:transcluded 496:convention. 491:. But most 39:] [ 35:] [ 31:] [ 582:Categories 516:The above 493:sans-serif 570:subpage. 489:typefaces 504:See also 472:is both 162:Examples 550:| 543:sandbox 536:history 534:| 478:cursive 474:oblique 465:A true 280:gives X 37:history 564:pages. 560:create 482:glyphs 467:italic 435:  422:  415:gives 405:  398:  391:gives 381:  370:gives 360:  353:  346:gives 322:  309:  303:gives 289:  266:  257:  251:gives 237:  230:  224:gives 210:  200:gives 186:  179:  173:gives 77:, the 524:from 486:serif 453:Notes 106:Usage 43:] 41:purge 27:[ 568:/doc 552:diff 548:edit 532:edit 476:and 470:font 334:math 91:HTML 67:undo 33:edit 29:view 520:is 429:ln 316:ln 148:s=0 140:). 132:or 95:TeX 584:: 528:. 138:'' 574:. 562:) 558:( 554:) 546:( 538:) 530:( 431:a 427:u 419:e 402:3 395:x 378:a 374:x 357:a 350:x 318:a 314:u 306:e 286:a 284:3 263:a 261:3 254:x 234:3 227:x 207:a 203:x 183:a 176:x 156:s 152:s

Index

view
edit
history
purge
parser functions
undo
this template's sandbox
general template sandbox
HTML
TeX
math
italic
font
oblique
cursive
glyphs
serif
typefaces
sans-serif
Help:Formula
documentation
transcluded
Template:SubSup/doc
edit
history
sandbox
edit
diff
create
/doc

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.

↑