Knowledge (XXG)

Template:Tmath

Source ๐Ÿ“

21: 1715: 217:
mathematical expressions like variables, and is useful for limiting awkward wrapping points. It is more cumbersome to use for equations or other expressions containing special signs that must be escaped or replaced, like the equal sign
545: 419: 615: 367: 744:
to avoid a problem with an equals sign in the expression. Any text, such as punctuation, that does not naturally form part of the expression should be moved out of the
311: 206: 168: 137: 1809: 1804: 1175: 813: 1755: 1661: 36: 1788: 1751: 32: 1737: 1718: 1651: 992: 856: 1254: 806: 40: 501: 1687: 1682: 383: 799: 651:, first adjusting the expression to be compatible with both can help. A guideline for such formatting is: 577: 1572: 1333: 1060: 908: 1237: 1146: 1136: 1019: 918: 327: 928: 872: 1784: 1745: 1677: 1666: 1566: 1425: 1126: 948: 889: 861: 28: 68:
It further helps to avoid wrapping points at either end of expression that normally occurs with
1741: 1656: 1513: 1452: 1420: 1276: 1048: 1038: 280: 1447: 1436: 1383: 1310: 1215: 1192: 1113: 1099: 1089: 1027: 1009: 986: 943: 913: 761: 184: 1352: 1347: 1328: 1323: 1315: 1220: 1082: 1076: 903: 153: 59: 1488: 1299: 1248: 938: 923: 122: 1798: 1463: 1409: 1373: 1244: 783: 772: 1589: 1579: 1530: 1525: 1363: 1230: 1225: 1000: 866: 227: 1723: 1535: 933: 693:
Introduce a space between adjacent identical braces: replace all occurrences of
1118: 1105: 448: 436: 251: 72:, so avoiding being split from punctuation as would be normal for text. 15: 711:
Ensure a space at the end โ€“ this removes the possibility that a trailing
560:
Failed to parse (syntax error): {\displaystyle \zeta(2) = \frac{\pi^2}{6}
1339: 732:
With these adjustments, it should be possible to interchange the tags
1390: 214: 791: 493:{{tmath|1= \zeta(2) = \frac{\pi^2}{6} }} 630:
Failed to parse (syntax error): {\displaystyle \frac{1}{x^{2n+1}
553:{{tmath|1= \zeta(2) = \frac{\pi^2}{6}}} 62: 1615: 1172: 969: 831: 795: 1553: 1199: 319:{{tmath|x {{=}} {{!}} \vec x {{!}} }} 48: 375:{{tmath|1= x = \Vert \vec x \Vert }} 1458:
arbitrary characters/diacritics set above/below one another
1131:
calculate inflation of Consumer Price Index-related prices
626:
fails to parse (you forgot some of those spaces!), v.g.
569:{{tmath|\frac{1}{ x^{2n+1} } }} 1776: 1768: 1764: 1055:
long tons and hundredweights to pounds and metric tons
1053:
long hundredweights, quarters and pounds to kilograms;
623:{{tmath|\frac{1}{x^{2n+1}} }} 580: 504: 386: 330: 283: 187: 156: 125: 1414:
individual italicized maths variables in normal text
1121:(in hours, minutes, and seconds) to decimal degrees 881: 849: 1761:Editors can experiment in this template's sandbox 609: 539: 413: 361: 305: 200: 162: 131: 47:This template wraps a math expression written in 1094:decimal degrees to degrees, minutes, and seconds 1431:a line set above/below a sequence of characters 1065:miles and chains to kilometres linking "chains" 540:{\displaystyle \zeta (2)={\frac {\pi ^{2}}{6}}} 272:{{tmath|E {{=}} mc^2}} 556:fails to parse (you forgot that space!), v.g. 213:The template is intended to be used for short 807: 8: 408: 393: 1584:measurement values, uncertainties and units 629: 559: 1636: 1631: 1612: 1358:multiline delimiters (2โ€“5 lines inclusive) 1169: 966: 846: 828: 814: 800: 792: 1509:(use in maths/science articles instead of 1441:an arc set above a sequence of characters 655:Do not use templates internally, such as 590: 581: 579: 526: 520: 503: 397: 396: 385: 354: 343: 342: 337: 329: 297: 282: 192: 186: 155: 124: 740:. Note the use of the parameter number 572:parses (you added all those spaces!) to 414:{\displaystyle x=\Vert {\vec {x}}\Vert } 1368:absolute values (paired vertical lines) 639:Uniform compatible formatting guideline 483:is not preceded or followed by another 475:is not preceded or followed by another 715:will adjoin the closing braces of the 176:{{tmath|x_0}} 145:{{tmath|\pi}} 1594:various overarrows, underarrows, etc. 1291:(not for maths/science articles; use 610:{\displaystyle {\frac {1}{x^{2n+1}}}} 7: 114:{{tmath|a}} 1810:Formatting templates using math tag 1388:calligraphic font; alternative to 496:parses (you added that space!) to 14: 1805:Mathematical formatting templates 1081:degrees, minutes, and seconds to 1714: 1713: 1493:"standing" or upright fractions 1468:parentheses that can be resized 1108:(in hours, minutes, and seconds) 19: 427:Use braces { and } with caution 514: 508: 402: 362:{\displaystyle x=|{\vec {x}}|} 355: 348: 338: 1: 1662:Infobox mathematical function 1141:population density in an area 670:Replace all pipe characters: 734:<math>...</math> 645:<math>...</math> 70:<math>...</math> 53:<math>...</math> 1541:subscripts and superscripts 1826: 1735: 1271:(no calculation performed) 1208:(standalone formulas only) 1789:Subpages of this template 1709: 1634: 1630: 1611: 1378:short text-based formulas 1182: 1168: 976: 965: 845: 827: 725:parameter with a leading 463:, you may use the braces 83:is set by this template. 1257:; formatting indicators 1043:barrels of oil to tonnes 869: (value formatting) 643:When converting between 306:{\displaystyle E=mc^{2}} 1783:Add categories to the 1571:symbol indicating the 611: 541: 415: 363: 307: 234:and the vertical pipe 202: 164: 133: 24:Template documentation 1652:arithmetic operations 1295:or upright fractions 1197:bigger font to match 857:elementary arithmetic 612: 542: 431:Apart from using the 416: 364: 308: 203: 201:{\displaystyle x_{0}} 165: 134: 1151:railway track gauges 578: 502: 384: 328: 281: 185: 163:{\displaystyle \pi } 154: 123: 1104:decimal degrees to 890:#invoke:BaseConvert 1746:Template:Tmath/doc 631: 607: 561: 537: 411: 359: 303: 198: 160: 129: 79:nor TeX math mode 1732: 1731: 1705: 1704: 1701: 1700: 1696: 1695: 1607: 1606: 1602: 1601: 1598: 1597: 1402: 1401: 1164: 1163: 1159: 1158: 1155: 1154: 1069: 1068: 991:many units (see: 961: 960: 957: 956: 605: 535: 455:templates to get 405: 351: 132:{\displaystyle a} 1817: 1780: 1772: 1759: 1717: 1716: 1637: 1632: 1613: 1560: 1556: 1518: 1517: 1508: 1506: 1505: 1502: 1499: 1483: 1482: 1481: 1478: 1477: 1473: 1406: 1405: 1398: 1397: 1393: 1340:angular brackets 1316:integral symbols 1304: 1303: 1290: 1289: 1285: 1281:slant fractions 1270: 1269: 1265: 1260: 1238:braโ€“ket notation 1207: 1206: 1202: 1189: 1188: 1185: 1184: 1170: 1073: 1072: 1032: 1026: 1014: 1008: 983: 982: 979: 978: 967: 847: 829: 816: 809: 802: 793: 788: 782: 777: 771: 766: 760: 747: 743: 739: 735: 728: 724: 723:display="inline" 718: 714: 708: 704: 700: 696: 689: 685: 681: 677: 673: 666: 662: 658: 650: 646: 633: 625: 624: 618: 616: 614: 613: 608: 606: 604: 603: 582: 571: 570: 563: 555: 554: 548: 546: 544: 543: 538: 536: 531: 530: 521: 495: 494: 486: 482: 478: 474: 470: 466: 462: 458: 454: 453: 447: 442: 441: 435: 422: 420: 418: 417: 412: 407: 406: 398: 377: 376: 370: 368: 366: 365: 360: 358: 353: 352: 344: 341: 321: 320: 314: 312: 310: 309: 304: 302: 301: 274: 273: 265: 261: 257: 256: 250: 245: 241: 237: 233: 232: 226: 221: 209: 207: 205: 204: 199: 197: 196: 178: 177: 171: 169: 167: 166: 161: 147: 146: 140: 138: 136: 135: 130: 116: 115: 102: 100: 82: 78: 77:display="inline" 71: 58: 54: 44: 25: 23: 22: 1825: 1824: 1820: 1819: 1818: 1816: 1815: 1814: 1795: 1794: 1793: 1792: 1782: 1774: 1762: 1760: 1749: 1734: 1733: 1728: 1697: 1692: 1688:units attention 1683:undue precision 1671: 1626: 1603: 1558: 1552: 1511: 1510: 1503: 1500: 1497: 1496: 1494: 1479: 1475: 1474: 1471: 1470: 1469: 1395: 1394: 1389: 1297: 1296: 1287: 1283: 1282: 1267: 1263: 1262: 1258: 1204: 1203: 1198: 1178: 1160: 1083:decimal degrees 1054: 1030: 1024: 1012: 1006: 972: 953: 882:Numeral systems 877: 841: 838:Numeral systems 823: 820: 786: 780: 775: 769: 764: 758: 755: 745: 741: 738:{{tmath|1=...}} 737: 736:and a template 733: 726: 722: 716: 712: 706: 702: 698: 694: 687: 683: 679: 675: 671: 664: 660: 656: 648: 644: 641: 627: 622: 621: 586: 576: 575: 573: 568: 567: 557: 552: 551: 522: 500: 499: 497: 492: 491: 484: 480: 476: 472: 468: 464: 460: 456: 451: 445: 444: 439: 433: 432: 429: 382: 381: 379: 374: 373: 326: 325: 323: 318: 317: 293: 279: 278: 276: 271: 270: 263: 259: 254: 248: 247: 243: 239: 235: 230: 224: 223: 219: 188: 183: 182: 180: 175: 174: 152: 151: 149: 144: 143: 121: 120: 118: 113: 112: 109: 98: 92: 89: 80: 76: 69: 60:parser function 56: 55:tags using the 52: 45: 26: 20: 18: 12: 11: 5: 1823: 1821: 1813: 1812: 1807: 1797: 1796: 1773:and testcases 1730: 1729: 1727: 1726: 1721: 1710: 1707: 1706: 1703: 1702: 1699: 1698: 1694: 1693: 1691: 1690: 1685: 1680: 1674: 1672: 1670: 1669: 1664: 1659: 1654: 1648: 1645: 1644: 1641: 1635: 1628: 1627: 1625: 1622: 1619: 1616: 1609: 1608: 1605: 1604: 1600: 1599: 1596: 1595: 1592: 1586: 1585: 1582: 1576: 1575: 1573:end of a proof 1569: 1563: 1562: 1549: 1543: 1542: 1539: 1538: 1533: 1528: 1521: 1520: 1491: 1485: 1484: 1466: 1460: 1459: 1456: 1455: 1450: 1443: 1442: 1439: 1433: 1432: 1429: 1428: 1423: 1416: 1415: 1412: 1403: 1400: 1399: 1386: 1380: 1379: 1376: 1370: 1369: 1366: 1360: 1359: 1356: 1355: 1350: 1343: 1342: 1337: 1336: 1331: 1326: 1319: 1318: 1313: 1307: 1306: 1279: 1273: 1272: 1255::mw:Help:#expr 1251: 1241: 1240: 1235: 1234: 1233: 1228: 1223: 1218: 1210: 1209: 1195: 1183: 1180: 1179: 1173: 1166: 1165: 1162: 1161: 1157: 1156: 1153: 1152: 1149: 1143: 1142: 1139: 1133: 1132: 1129: 1123: 1122: 1116: 1110: 1109: 1102: 1096: 1095: 1092: 1086: 1085: 1079: 1070: 1067: 1066: 1063: 1057: 1056: 1051: 1045: 1044: 1041: 1035: 1034: 1022: 1016: 1015: 1003: 997: 996: 989: 977: 974: 973: 970: 963: 962: 959: 958: 955: 954: 952: 951: 946: 941: 936: 931: 926: 921: 916: 911: 906: 901: 885: 883: 879: 878: 876: 875: 870: 864: 859: 853: 851: 843: 842: 840: 839: 836: 832: 825: 824: 822:Math templates 821: 819: 818: 811: 804: 796: 790: 789: 778: 767: 754: 751: 750: 749: 730: 719: 709: 691: 668: 640: 637: 636: 635: 619: 602: 599: 596: 593: 589: 585: 565: 549: 534: 529: 525: 519: 516: 513: 510: 507: 428: 425: 424: 423: 410: 404: 401: 395: 392: 389: 371: 357: 350: 347: 340: 336: 333: 315: 300: 296: 292: 289: 286: 211: 210: 195: 191: 172: 159: 141: 128: 108: 105: 104: 103: 88: 85: 17: 16: 13: 10: 9: 6: 4: 3: 2: 1822: 1811: 1808: 1806: 1803: 1802: 1800: 1790: 1786: 1778: 1770: 1766: 1757: 1753: 1747: 1743: 1739: 1738:documentation 1725: 1722: 1720: 1712: 1711: 1708: 1689: 1686: 1684: 1681: 1679: 1676: 1675: 1673: 1668: 1665: 1663: 1660: 1658: 1655: 1653: 1650: 1649: 1647: 1646: 1642: 1639: 1638: 1633: 1629: 1623: 1620: 1617: 1614: 1610: 1593: 1591: 1588: 1587: 1583: 1581: 1578: 1577: 1574: 1570: 1568: 1565: 1564: 1555: 1550: 1548: 1545: 1544: 1540: 1537: 1534: 1532: 1529: 1527: 1524: 1523: 1522: 1515: 1492: 1490: 1487: 1486: 1467: 1465: 1462: 1461: 1457: 1454: 1451: 1449: 1446: 1445: 1444: 1440: 1438: 1435: 1434: 1430: 1427: 1424: 1422: 1419: 1418: 1417: 1413: 1411: 1408: 1407: 1404: 1396:\mathcal{...} 1392: 1387: 1385: 1382: 1381: 1377: 1375: 1372: 1371: 1367: 1365: 1362: 1361: 1357: 1354: 1351: 1349: 1346: 1345: 1344: 1341: 1338: 1335: 1332: 1330: 1327: 1325: 1322: 1321: 1320: 1317: 1314: 1312: 1309: 1308: 1301: 1294: 1280: 1278: 1275: 1274: 1256: 1253:calculations 1252: 1250: 1246: 1243: 1242: 1239: 1236: 1232: 1229: 1227: 1224: 1222: 1219: 1217: 1214: 1213: 1212: 1211: 1205:\displaystyle 1201: 1196: 1194: 1191: 1190: 1187: 1186: 1181: 1177: 1174:Notation and 1171: 1167: 1150: 1148: 1145: 1144: 1140: 1138: 1135: 1134: 1130: 1128: 1125: 1124: 1120: 1117: 1115: 1112: 1111: 1107: 1103: 1101: 1098: 1097: 1093: 1091: 1088: 1087: 1084: 1080: 1078: 1075: 1074: 1071: 1064: 1062: 1059: 1058: 1052: 1050: 1047: 1046: 1042: 1040: 1037: 1036: 1033:for infoboxes 1029: 1023: 1021: 1018: 1017: 1011: 1004: 1002: 999: 998: 994: 990: 988: 985: 984: 981: 980: 975: 968: 964: 950: 947: 945: 942: 940: 937: 935: 932: 930: 927: 925: 922: 920: 917: 915: 912: 910: 907: 905: 902: 899: 895: 891: 887: 886: 884: 880: 874: 871: 868: 865: 863: 860: 858: 855: 854: 852: 848: 844: 837: 834: 833: 830: 826: 817: 812: 810: 805: 803: 798: 797: 794: 785: 779: 774: 768: 763: 757: 756: 752: 746:{{tmath|...}} 731: 720: 717:{{tmath|...}} 710: 692: 669: 654: 653: 652: 649:{{tmath|...}} 638: 620: 600: 597: 594: 591: 587: 583: 566: 550: 532: 527: 523: 517: 511: 505: 490: 489: 488: 450: 438: 426: 399: 390: 387: 372: 345: 334: 331: 316: 298: 294: 290: 287: 284: 269: 268: 267: 253: 229: 216: 193: 189: 173: 157: 142: 126: 111: 110: 106: 96: 91: 90: 86: 84: 73: 66: 64: 61: 51:code between 50: 42: 38: 34: 30: 1559:<math> 1546: 1516:}} 1512:{{ 1302:}} 1298:{{ 1292: 1061:miles-chains 1031:}} 1025:{{ 1013:}} 1007:{{ 1005:abbreviated 909:decimal2Base 900:}} 897: 893: 888:{{ 787:}} 781:{{ 776:}} 770:{{ 765:}} 759:{{ 642: 452:}} 446:{{ 440:}} 434:{{ 430: 255:}} 249:{{ 231:}} 225:{{ 212: 101:}} 94: 93:{{ 74: 67: 46: 1742:transcluded 1724:Module:Math 1147:track gauge 1137:pop density 1020:convinfobox 971:Conversions 919:hexadecimal 727:\textstyle 471:as long as 39:] [ 35:] [ 31:] [ 1799:Categories 1736:The above 1176:formatting 1119:hour angle 1106:hour angle 929:quaternary 873:percentage 721:Replace a 99:expression 81:\textstyle 63:magic word 1787:subpage. 1678:metricate 1667:functions 1567:tombstone 1426:underline 1127:inflation 949:vigesimal 862:precision 850:Functions 835:Functions 524:π 506:ζ 409:‖ 403:→ 394:‖ 349:→ 158:π 57:{{#tag:}} 1719:Category 1657:calculus 1514:fraction 1453:underset 1421:overline 1305:instead) 1293:standing 1277:fraction 1049:long ton 1039:bbl to t 753:See also 107:Examples 75:Neither 1767:| 1756:history 1754:| 1624:Notices 1507:⁠ 1495:⁠ 1448:overset 1437:overarc 1384:mathcal 1311:intmath 1286:⁄ 1216:bra-ket 1193:bigmath 1114:hms2deg 1100:deg2hms 1090:deg2dms 1028:convert 1010:convert 987:convert 944:ternary 914:hex2dec 762:bigmath 632:⁠ 628:⁠ 617:⁠ 574:⁠ 562:⁠ 558:⁠ 547:⁠ 498:⁠ 487:, e.g. 421:⁠ 380:⁠ 369:⁠ 324:⁠ 313:⁠ 277:⁠ 208:⁠ 181:⁠ 170:⁠ 150:⁠ 139:⁠ 119:⁠ 37:history 1781:pages. 1777:create 1769:mirror 1765:create 1353:rdelim 1348:ldelim 1329:rangle 1324:langle 1259:โŒˆ3.14โŒ‰ 1221:braket 1077:decdeg 904:binary 688:\Vert 682:, and 676:\vert 667:, etc. 479:, and 378:gives 322:gives 275:gives 258:, and 179:gives 148:gives 117:gives 97:| 1744:from 1640:Boxes 1618:Boxes 1551:Wrap 1547:tmath 1489:sfrac 1391:LaTeX 1334:angbr 1300:sfrac 1249:floor 939:roman 924:octal 680:\mid 665:{{(}} 661:{{!}} 657:{{=}} 264:\Vert 262:with 240:\vert 238:with 222:with 215:LaTeX 95:tmath 87:Usage 43:] 41:purge 27:[ 1785:/doc 1752:edit 1643:Tags 1621:Tags 1561:tags 1464:pars 1410:mvar 1374:math 1266:3.14 1245:ceil 993:list 784:mvar 773:math 701:and 647:and 467:and 459:and 443:and 244:\mid 33:edit 29:view 1740:is 1590:vec 1580:val 1557:in 1554:TeX 1531:sup 1526:sub 1364:abs 1231:ket 1226:bra 1200:TeX 1001:cvt 867:val 707:} } 705:by 699:{ { 697:by 686:by 678:or 674:by 246:or 49:TeX 1801:: 1748:. 1536:su 1261:, 1247:, 934:rn 896:to 742:1= 703:}} 695:{{ 684:\| 663:, 659:, 634:}} 266:: 260:\| 242:, 65:. 1791:. 1779:) 1775:( 1771:) 1763:( 1758:) 1750:( 1519:) 1504:5 1501:/ 1498:3 1480:) 1476:โˆ‘ 1472:( 1288:5 1284:3 1268:โŒ‹ 1264:โŒŠ 995:) 898:Y 894:X 892:| 815:e 808:t 801:v 748:. 729:. 713:} 690:. 672:| 601:1 598:+ 595:n 592:2 588:x 584:1 564:} 533:6 528:2 518:= 515:) 512:2 509:( 485:} 481:} 477:{ 473:{ 469:} 465:{ 461:} 457:{ 449:) 437:( 400:x 391:= 388:x 356:| 346:x 339:| 335:= 332:x 299:2 295:c 291:m 288:= 285:E 252:! 236:| 228:= 220:= 194:0 190:x 127:a

Index

view
edit
history
purge
TeX
parser function
magic word
tmath
LaTeX
=
!
(
)
bigmath
math
mvar
v
t
e
elementary arithmetic
precision
val
percentage
#invoke:BaseConvert
binary
decimal2Base
hex2dec
hexadecimal
octal
quaternary

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

โ†‘