Movatterモバイル変換


[0]ホーム

URL:


SEP logo
Stanford Encyclopedia of Philosophy

Mathematics HTML Sampler

• CheckWidely Supported HTML and Unicode Characters, to see whether the symbol you might need is there. If not, and it also can't be found on the pageSpecial Symbols (Not Widely Supported), then we have to create new graphics.• All standalone letters used as symbols should be in italic. Foritalics, you can use either <em>…</em> or<i>…</i>. The former are preferred, but the latterare acceptable.

Mathematical symbols with subscripts or superscripts that arealso letters can be formattedusing either separate tags for each italicized letter or, if there areno intervening characters that shouldn't be italicized, using a globalpair of <em>…</em> tags. So,

xi

can be formatted as either

<em>x</em><sub><em>i</em></sub>

or

<em>x<sub>i</sub></em>
• Parenthesis should not be in italics:
x(FxGx), i.e., &forall;<em>x</em>(<em>Fx</em> &rarr; <em>Gx</em>),

but not

x(Fx → Gx), i.e., not &forall;<em>x(Fx &rarr; Gx)</em>

Quantifiers should not use dot notation:

x(FxGx)

not

x.FxGx
• To stop a linebreak, place the material in the following environment:
<span class="nw"> </span>
• To produce numbered equations, use:
<dl class="hangindent">
<dt>(#)</dt><dd>equation</dd></dl>

to produce

(#)
equation

or if you don't want the numbers indented, use "hang" instead of"hangindent" to produce

(#)
equation

Note that the dl "hang" class can also be used in bibliographiesfor primary sources organized by year or abbreviation.

• To produce Quine corner quotes, use:
<sup>&#8988;</sup>some text<sup>&#8989;</sup>
to produce:
some text
• To produce an overbar over an uppercase letter or letters, use:
<span class="oline">EQI</span>

to produce:

EQI.

Note that this doesn't work as well with lower case letters:α.

• To produce a sans serif font, use
<span style="font-family: Arial">Cong</span>

to produce

Cong
• To produce small-caps, use:
<span class="sc">This is in small-caps</span>
to produce:
This is in small-caps.
• To use LaTeX-like script letters for upper-case, use
<span class="scriptuc">…</span>
to produce:
A,B,C,D,etc.

When the browser sees the HTML code, it will first try to call up the fontcmsy10.ttf, if it is installed, and failing that it will call forScript MT, or any "cursive" font.

• To use underbars that are lower than underlines, use
<span class="ubar">…</span>
to produce:
A,a,B,b, etc.
• There are new span (and italic) classes, "overstrike", "up", and "hi", to put a mark above an arbitrary character. Here are some examples. Use
<span class="overstrike">v<span class="up">&circ;</span></span>
<span class="overstrike">ε<span class="up">&rsquo;</span></span>
to produce:
vˆ,ε, etc.
For upper case characters, use
<span class="overstrike">U<span class="hi">&circ;</span></span>
<span class="overstrike">Γ<span class="hi">&rsquo;</span></span>

to produce:

Uˆ,Γ;, etc.

To put a mark aboveitalic characters, use:

<i class="overstrike">x<span class="up">&uml;</span></i>
<i class="overstrike">v<span class="hi">&middot;</span></i>
etc.

to produce:

x¨,v·,a˜,gˆ, etc.

For upper case italic characters, use some combination of the above, e.g., as in

<i class="overstrike">A<span class="hi">&oline;</span></i>

to produce:

A.
• Example of logical and se-theoretical formatting, from https://plato.stanford.edu/entries/set-theory/ZF.html:
Suppose that φ(x,y,û) is aformula withx andy free, and letûrepresent variablesu1,…,uk,which may or may not be free in φ. Furthermore, letφx,y,û[s,r,û]be the result of substitutings andr forx andy, respectively, inφ(x,y,û). Then every instance ofthe following schema is an axiom:
Replacement Schema:
u1…∀uk[∀x∃!yφ(x,y,û) → ∀wvr(rv ≡ ∃s(sw & φx,y,û[s,r,û]))]
• To produce a numerator/denominator in a mathematicalexpression, use:
<table style="border-spacing:0px;">
<tr>
<td style="padding:0px;border-bottom:1px solid black; text-align:center;">numerator</td>
</tr>

<tr>
<td style="padding:0px; text-align:center;">denominator</td>
</tr>
</table>

to produce

numerator
denominator

However, we may have to tweak the "padding" values to get some complexnumerators/denominators, such as the following, to look good in Firefox:

Pα[h[q] |b·cn·en]
Pα[h[r] |b·cn·en]
=
qm (1−q)nm
rm (1−r)nm
·
Pα[h[q] |b]
Pα[h[r] |b]

In the above, we increased the padding for the cell for the numerator(which has a solid black border-bottom of 1px) to 4px:

<td style="padding:4px;border-bottom:1px solid black; text-align:center;">

However, if you tweak the padding in the denominator to get thefollowing to look good in Firefox, then the long division lines will riseup above the minus sign:

1
1
n
·
(log γ)2
EQI[cn |hi/hj |hi·b] + (log ε)/n )2
• numerator/denominator with double line in between:
W[((X,Y),Z)]⇒C
W[(X,(Y,Z))]⇒C
• To produce a large left brace for an equation given withconditions, we use a table with one row per part and construct thebrace out of unicode curly-brace drawing symbols. NOTE: the braceshould be in its own mini-table and needs only:
Z(h,e|k) = 






 
P(h|ek)−P(h|k)
1−P(h|k)
ifP(h|ek) ≥P(h|k)
P(h|ek)−P(h|k)
P(h|k)
ifP(h|ek) <P(h|k)
• To produce a summation or intersection with upper and lowerindices, use the following table parameters:
<td align="center">
<span><em>n</em></span><br />
<font size="+2">&Pi;</font><br />
<span><em>k</em>=1</span>
</td>

to produce a large product sign with a centeredindex "k=1" below and a centered index "n":

n

k=1

Note that the index class is defined with CSS

.index { font-size:.8em; line-height: 80%; }

So, if local adjustments are needed in a particular entry, the line

<span class="index"><em>n</em></span><br />

can be replaced with the following line in which the values .8em and 80% have beenaltered:

<span style="font-size:.8em; line-height: 80%;"><em>n</em></span><br />

Thus, for integrals, we might use:

<td align="center"> <span class="index"> &nbsp;&nbsp; &infin;</span><br />
<font size="+2">&int;</font><br />
<span style="font-size:.8em; line-height: 100%;">0</span></td>

to produce

    ∞

0

or use:

<td align="center">
<span style="font-size:.8em; line-height:100%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em>x</em></span><br />
<font size="+2">&int;</font><br />
<span style="font-size:.8em; line-height: 100%;">&minus;&infin;</span>
</td>

to produce

     x

−∞
• To produce a superscript directly above a subscript in an inlinecontext (where you cannot use a table), use a nested pair of span tagswith the superscript first, in the outer (“supsub”) spantag and the subscript after it—within the nested(“lower”) span tag. For example,
&Pi;<span>1<span>0</span></span>

produces

Π10

which works within the middle of a paragraph. For example, the codewill be repeated within this paragraph to show the inline usage of thesuperscript over subscript. Here is the repeat of the code:Π10. Thisshows the usage of the HTML code within a paragraph.

• To produce a thinner, blacker line than the usual <hr/> tag, use:
<hr size="2" noshade="noshade" />

to produce


• To produce a border around a table without a border aroundeach cell, use
<table style="border:1px solid black;">

to produce:

row 1, column 1row 1, column 2
row 2, column 1row 2, column 2

instead of of the default table border:

row 1, column 1row 1, column 2
row 2, column 1row 2, column 2

Additionally, to put some padding within the table border, use

<table style="border:1px solid black; border-spacing: 0.5em 1em;">

to produce:

row 1, column 1row 1, column 2
row 2, column 1row 2, column 2

Finally, to produce a border around every cell which is thinner than thedefault border="1", use:

<table border="1" cellspacing="0">

to produce

row 1, column 1row 1, column 2
row 2, column 1row 2, column 2
• An example for type-logical-grammar:
Γ,x :AM :B ⊸I
Γ ⊢ λx.M :AB
Γ ⊢M :AB       Δ ⊢N :A ⊸E
Γ, Δ ⊢ (M N) :B
• The entryondefinitionsneeded both numbered equations and non-numbered equations with thesame amount of indent. This was done by using a paragraph style tocontrol the amount of indent and a corresponding table with 0 paddingand a first column that matched the width of the indent.• The following entries have lots of useful examples:

Browse

About

Support SEP

Mirror Sites

View this site from another server:

USA (Main Site)Philosophy, Stanford University

The Stanford Encyclopedia of Philosophy iscopyright © 2025 byThe Metaphysics Research Lab, Department of Philosophy, Stanford University

Library of Congress Catalog Data: ISSN 1095-5054


[8]ページ先頭

©2009-2025 Movatter.jp