version 1.2, 2005/12/07 18:57:44
|
version 1.4, 2006/05/17 22:19:27
|
Line 8
|
Line 8
|
* |
* |
* --------------------------------------------------------------------- |
* --------------------------------------------------------------------- |
* |
* |
* jsMath is free software; you can redistribute it and/or modify |
* Copyright 2004-2006 by Davide P. Cervone |
* it under the terms of the GNU General Public License as published by |
* |
* the Free Software Foundation; either version 2 of the License, or |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* (at your option) any later version. |
* you may not use this file except in compliance with the License. |
* |
* You may obtain a copy of the License at |
* jsMath is distributed in the hope that it will be useful, |
* |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* http://www.apache.org/licenses/LICENSE-2.0 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* |
* GNU General Public License for more details. |
* Unless required by applicable law or agreed to in writing, software |
* |
* distributed under the License is distributed on an "AS IS" BASIS, |
* You should have received a copy of the GNU General Public License |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
* along with jsMath; if not, write to the Free Software |
* See the License for the specific language governing permissions and |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* limitations under the License. |
*/ |
*/ |
|
|
|
|
Line 44 jsMath.Update.TeXfonts({
|
Line 44 jsMath.Update.TeXfonts({
|
'8': {c: 'F', tclass: 'greek'}, |
'8': {c: 'F', tclass: 'greek'}, |
'9': {c: 'Y', tclass: 'greek'}, |
'9': {c: 'Y', tclass: 'greek'}, |
'10': {c: 'W', tclass: 'greek'}, |
'10': {c: 'W', tclass: 'greek'}, |
'22': {c: '<SPAN STYLE="position:relative; top:.1em">`</SPAN>', tclass: 'symbol3'} |
'22': {c: '<span style="position:relative; top:.1em">`</span>', tclass: 'symbol3'} |
}, |
}, |
|
|
cmti10: { |
cmti10: { |
'0': {c: '<I>G</I>', tclass: 'greek'}, |
'0': {c: 'G', tclass: 'igreek'}, |
'1': {c: '<I>D</I>', tclass: 'greek'}, |
'1': {c: 'D', tclass: 'igreek'}, |
'2': {c: '<I>Q</I>', tclass: 'greek'}, |
'2': {c: 'Q', tclass: 'igreek'}, |
'3': {c: '<I>L</I>', tclass: 'greek'}, |
'3': {c: 'L', tclass: 'igreek'}, |
'4': {c: '<I>X</I>', tclass: 'greek'}, |
'4': {c: 'X', tclass: 'igreek'}, |
'5': {c: '<I>P</I>', tclass: 'greek'}, |
'5': {c: 'P', tclass: 'igreek'}, |
'6': {c: '<I>S</I>', tclass: 'greek'}, |
'6': {c: 'S', tclass: 'igreek'}, |
'7': {c: '<I>¡</I>', tclass: 'greek'}, |
'7': {c: '¡', tclass: 'igreek'}, |
'8': {c: '<I>F</I>', tclass: 'greek'}, |
'8': {c: 'F', tclass: 'igreek'}, |
'9': {c: '<I>Y</I>', tclass: 'greek'}, |
'9': {c: 'Y', tclass: 'igreek'}, |
'10': {c: '<I>W</I>', tclass: 'greek'}, |
'10': {c: 'W', tclass: 'igreek'}, |
'22': {c: '<SPAN STYLE="position:relative; top:.1em">`</SPAN>', tclass: 'symbol3'} |
'22': {c: '<span style="position:relative; top:.1em">`</span>', tclass: 'symbol3'} |
}, |
}, |
|
|
cmbx10: { |
cmbx10: { |
'0': {c: '<B>G</B>', tclass: 'greek'}, |
'0': {c: 'G', tclass: 'bgreek'}, |
'1': {c: '<B>D</B>', tclass: 'greek'}, |
'1': {c: 'D', tclass: 'bgreek'}, |
'2': {c: '<B>Q</B>', tclass: 'greek'}, |
'2': {c: 'Q', tclass: 'bgreek'}, |
'3': {c: '<B>L</B>', tclass: 'greek'}, |
'3': {c: 'L', tclass: 'bgreek'}, |
'4': {c: '<B>X</B>', tclass: 'greek'}, |
'4': {c: 'X', tclass: 'bgreek'}, |
'5': {c: '<B>P</B>', tclass: 'greek'}, |
'5': {c: 'P', tclass: 'bgreek'}, |
'6': {c: '<B>S</B>', tclass: 'greek'}, |
'6': {c: 'S', tclass: 'bgreek'}, |
'7': {c: '<B>¡</B>', tclass: 'greek'}, |
'7': {c: '¡', tclass: 'bgreek'}, |
'8': {c: '<B>F</B>', tclass: 'greek'}, |
'8': {c: 'F', tclass: 'bgreek'}, |
'9': {c: '<B>Y</B>', tclass: 'greek'}, |
'9': {c: 'Y', tclass: 'bgreek'}, |
'10': {c: '<B>W</B>', tclass: 'greek'}, |
'10': {c: 'W', tclass: 'bgreek'}, |
'22': {c: '<SPAN STYLE="position:relative; top:.1em">`</SPAN>', tclass: 'symbol3'} |
'22': {c: '<span style="position:relative; top:.1em">`</span>', tclass: 'symbol3'} |
}, |
}, |
cmmi10: { |
cmmi10: { |
'0': {c: '<I>G</I>', tclass: 'greek'}, |
'0': {c: 'G', tclass: 'igreek'}, |
'1': {c: '<I>D</I>', tclass: 'greek'}, |
'1': {c: 'D', tclass: 'igreek'}, |
'2': {c: '<I>Q</I>', tclass: 'greek'}, |
'2': {c: 'Q', tclass: 'igreek'}, |
'3': {c: '<I>L</I>', tclass: 'greek'}, |
'3': {c: 'L', tclass: 'igreek'}, |
'4': {c: '<I>X</I>', tclass: 'greek'}, |
'4': {c: 'X', tclass: 'igreek'}, |
'5': {c: '<I>P</I>', tclass: 'greek'}, |
'5': {c: 'P', tclass: 'igreek'}, |
'6': {c: '<I>S</I>', tclass: 'greek'}, |
'6': {c: 'S', tclass: 'igreek'}, |
'7': {c: '<I>¡</I>', tclass: 'greek'}, |
'7': {c: '¡', tclass: 'igreek'}, |
'8': {c: '<I>F</I>', tclass: 'greek'}, |
'8': {c: 'F', tclass: 'igreek'}, |
'9': {c: '<I>Y</I>', tclass: 'greek'}, |
'9': {c: 'Y', tclass: 'igreek'}, |
'10': {c: '<I>W</I>', tclass: 'greek'}, |
'10': {c: 'W', tclass: 'igreek'}, |
'11': {c: 'a', tclass: 'greek'}, |
'11': {c: 'a', tclass: 'greek'}, |
'12': {c: 'b', tclass: 'greek'}, |
'12': {c: 'b', tclass: 'greek'}, |
'13': {c: 'g', tclass: 'greek'}, |
'13': {c: 'g', tclass: 'greek'}, |
Line 116 jsMath.Update.TeXfonts({
|
Line 116 jsMath.Update.TeXfonts({
|
// '44': // hook left |
// '44': // hook left |
// '45': // hook right |
// '45': // hook right |
// '92': // natural |
// '92': // natural |
'94': {c: '<SPAN STYLE="position:relative; top:.3em">︶</SPAN>'}, |
'94': {c: '<span style="position:relative; top:.3em">︶</span>'}, |
'95': {c: '<SPAN STYLE="position:relative; top:-.2em">︵</SPAN>'} |
'95': {c: '<span style="position:relative; top:-.2em">︵</span>'} |
// '127': // half-circle down accent? |
// '127': // half-circle down accent? |
}, |
}, |
|
|
cmsy10: { |
cmsy10: { |
'0': {c: '–', tclass: 'normal'}, |
'0': {c: '–', tclass: 'normal'}, |
'11': {c: '<SPAN STYLE="font-size: 70%">◯</SPAN><SPAN STYLE="position:relative; margin-left:-.5em; top:.1em; margin-right:.3em">/</SPAN>', tclass: 'normal'}, |
'11': {c: '<span style="font-size: 70%">◯</span><span style="position:relative; margin-left:-.5em; top:.1em; margin-right:.3em">/</span>', tclass: 'normal'}, |
'16': {c: '<SPAN STYLE="position:relative;top:-.1em; font-size: 67%">︵</SPAN><SPAN STYLE="position:relative;top:.1em;font-size:67%;margin-left:-1em">︶</SPAN>', tclass: 'normal'}, |
'16': {c: '<span style="position:relative;top:-.1em; font-size: 67%">︵</span><span style="position:relative;top:.1em;font-size:67%;margin-left:-1em">︶</span>', tclass: 'normal'}, |
'48': {c: '<SPAN STYLE="font-size: 133%; margin-left:-.1em; margin-right: -.6em; position: relative; top:.4em">′</SPAN>'}, |
'48': {c: '<span style="font-size: 133%; margin-left:-.1em; margin-right: -.6em; position: relative; top:.4em">′</span>'}, |
'93': {c: '∪<SPAN STYLE="font-size: 50%; margin-left:-1.3em; position: relative; top:-.3em; margin-right:.6em">+</SPAN>'}, |
'93': {c: '∪<span style="font-size: 50%; margin-left:-1.3em; position: relative; top:-.3em; margin-right:.6em">+</span>'}, |
'96': {c: '<SPAN STYLE="font-size:67%; position:relative; top:-.3em;">|</SPAN><SPAN STYLE="position:relative; top:-.15em; margin-left:-.1em">–</SPAN>', tclass: 'normal'}, |
'96': {c: '<span style="font-size:67%; position:relative; top:-.3em;">|</span><span style="position:relative; top:-.15em; margin-left:-.1em">–</span>', tclass: 'normal'}, |
'104': {c: '<SPAN STYLE="position:relative; top:.2em; margin-left:-.6em">〈</SPAN>'}, |
'104': {c: '<span style="position:relative; top:.2em; margin-left:-.6em">〈</span>'}, |
'105': {c: '<SPAN STYLE="position:relative; top:.2em; margin-right:-.6em">〉</SPAN>'}, |
'105': {c: '<span style="position:relative; top:.2em; margin-right:-.6em">〉</span>'}, |
'109': {c: '⇑<SPAN STYLE="position:relative; top:.1em; margin-left:-1em">⇓</SPAN>'}, |
'109': {c: '⇑<span style="position:relative; top:.1em; margin-left:-1em">⇓</span>'}, |
'110': {c: '\\', d:0, tclass: 'normal'} |
'110': {c: '\\', d:0, tclass: 'normal'} |
// '111': // wr |
// '111': // wr |
//, '113': // amalg |
//, '113': // amalg |
Line 141 jsMath.Update.TeXfonts({
|
Line 141 jsMath.Update.TeXfonts({
|
}, |
}, |
|
|
cmex10: { |
cmex10: { |
'10': {c: '<SPAN STYLE="position:relative; top:.1em; margin-left:-.6em">〈</SPAN>'}, |
'10': {c: '<span style="position:relative; top:.1em; margin-left:-.6em">〈</span>'}, |
'11': {c: '<SPAN STYLE="position:relative; top:.1em; margin-right:-.6em">〉</SPAN>'}, |
'11': {c: '<span style="position:relative; top:.1em; margin-right:-.6em">〉</span>'}, |
'14': {c: '/'}, '15': {c: '\\'}, |
'14': {c: '/'}, '15': {c: '\\'}, |
'28': {c: '<SPAN STYLE="position:relative; top:.05em; margin-left:-.6em">〈</SPAN>'}, |
'28': {c: '<span style="position:relative; top:.05em; margin-left:-.6em">〈</span>'}, |
'29': {c: '<SPAN STYLE="position:relative; top:.05em; margin-right:-.6em">〉</SPAN>'}, |
'29': {c: '<span style="position:relative; top:.05em; margin-right:-.6em">〉</span>'}, |
'30': {c: '/'}, '31': {c: '\\'}, |
'30': {c: '/'}, '31': {c: '\\'}, |
'42': {c: '<SPAN STYLE="margin-left:-.6em">〈</SPAN>'}, |
'42': {c: '<span style="margin-left:-.6em">〈</span>'}, |
'43': {c: '<SPAN STYLE="margin-right:-.6em">〉</SPAN>'}, |
'43': {c: '<span style="margin-right:-.6em">〉</span>'}, |
'44': {c: '/'}, '45': {c: '\\'}, |
'44': {c: '/'}, '45': {c: '\\'}, |
'46': {c: '/'}, '47': {c: '\\'}, |
'46': {c: '/'}, '47': {c: '\\'}, |
'68': {c: '<SPAN STYLE="margin-left:-.6em">〈</SPAN>'}, |
'68': {c: '<span style="margin-left:-.6em">〈</span>'}, |
'69': {c: '<SPAN STYLE="margin-right:-.6em">〉</SPAN>'}, |
'69': {c: '<span style="margin-right:-.6em">〉</span>'}, |
// '70': // sqcup |
// '70': // sqcup |
// '71': // big sqcup |
// '71': // big sqcup |
'72': {ic: 0}, '73': {ic: 0}, |
'72': {ic: 0}, '73': {ic: 0}, |
'82': {tclass: 'bigop1cx', ic: .15}, '90': {tclass: 'bigop2cx', ic:.6}, |
'82': {tclass: 'bigop1cx', ic: .15}, '90': {tclass: 'bigop2cx', ic:.6}, |
'85': {c: '∪<SPAN STYLE="font-size: 50%; margin-left:-1.25em; position: relative; top:-.3em; margin-right:.6em">+</SPAN>'}, |
'85': {c: '∪<span style="font-size: 50%; margin-left:-1.25em; position: relative; top:-.3em; margin-right:.6em">+</span>'}, |
'93': {c: '∪<SPAN STYLE="font-size: 50%; margin-left:-1.25em; position: relative; top:-.3em; margin-right:.6em">+</SPAN>'}, |
'93': {c: '∪<span style="font-size: 50%; margin-left:-1.25em; position: relative; top:-.3em; margin-right:.6em">+</span>'}, |
// '96': // coprod |
// '96': // coprod |
// '97': // big coprod |
// '97': // big coprod |
'98': {c: '︿', h: 0.722, w: .58, tclass: 'wide1'}, |
'98': {c: '︿', h: 0.722, w: .58, tclass: 'wide1'}, |
Line 171 jsMath.Update.TeXfonts({
|
Line 171 jsMath.Update.TeXfonts({
|
|
|
}); |
}); |
|
|
jsMath.Update.Styles({ |
jsMath.Setup.Styles({ |
'.arrow1': "font-family: Osaka; position: relative; top: .125em; margin: -1px", |
'.typeset .arrow1': "font-family: Osaka; position: relative; top: .125em; margin: -1px", |
'.arrow2': "font-family: Osaka; position: relative; top: .1em; margin:-1px", |
'.typeset .arrow2': "font-family: Osaka; position: relative; top: .1em; margin:-1px", |
'.bigop1': "font-family: Symbol; font-size: 110%; position:relative; top: .8em; margin:-.05em", |
'.typeset .bigop1': "font-family: Symbol; font-size: 110%; position:relative; top: .8em; margin:-.05em", |
'.bigop1b': "font-family: Symbol; font-size: 140%; position: relative; top: .8em; margin:-.1em", |
'.typeset .bigop1b': "font-family: Symbol; font-size: 140%; position: relative; top: .8em; margin:-.1em", |
'.bigop1c': "font-family: Osaka; font-size: 125%; position:relative; top: .85em; margin:-.3em", |
'.typeset .bigop1c': "font-family: Osaka; font-size: 125%; position:relative; top: .85em; margin:-.3em", |
'.bigop1cx': "font-family: 'Apple Chancery'; font-size: 125%; position:relative; top: .7em; margin:-.1em", |
'.typeset .bigop1cx': "font-family: 'Apple Chancery'; font-size: 125%; position:relative; top: .7em; margin:-.1em", |
'.bigop2': "font-family: Symbol; font-size: 175%; position:relative; top: .8em; margin:-.07em", |
'.typeset .bigop2': "font-family: Symbol; font-size: 175%; position:relative; top: .8em; margin:-.07em", |
'.bigop2a': "font-family: Baskerville; font-size: 175%; position: relative; top: .65em", |
'.typeset .bigop2a': "font-family: Baskerville; font-size: 175%; position: relative; top: .65em", |
'.bigop2b': "font-family: Symbol; font-size: 175%; position: relative; top: .8em; margin:-.07em", |
'.typeset .bigop2b': "font-family: Symbol; font-size: 175%; position: relative; top: .8em; margin:-.07em", |
'.bigop2c': "font-family: Osaka; font-size: 230%; position:relative; top: .85em; margin:-.35em", |
'.typeset .bigop2c': "font-family: Osaka; font-size: 230%; position:relative; top: .85em; margin:-.35em", |
'.bigop2cx': "font-family: 'Apple Chancery'; font-size: 250%; position:relative; top: .6em; margin-left:-.1em; margin-right:-.2em", |
'.typeset .bigop2cx': "font-family: 'Apple Chancery'; font-size: 250%; position:relative; top: .6em; margin-left:-.1em; margin-right:-.2em", |
'.delim1b': "font-family: Times; font-size: 150%; position:relative; top:.8em", |
'.typeset .delim1b': "font-family: Times; font-size: 150%; position:relative; top:.8em", |
'.delim2b': "font-family: Times; font-size: 210%; position:relative; top:.75em;", |
'.typeset .delim2b': "font-family: Times; font-size: 210%; position:relative; top:.75em;", |
'.delim3b': "font-family: Times; font-size: 300%; position:relative; top:.7em;", |
'.typeset .delim3b': "font-family: Times; font-size: 300%; position:relative; top:.7em;", |
'.delim4b': "font-family: Times; font-size: 400%; position:relative; top:.65em;", |
'.typeset .delim4b': "font-family: Times; font-size: 400%; position:relative; top:.65em;", |
'.symbol3': "font-family: Symbol", |
'.typeset .symbol3': "font-family: Symbol", |
'.wide1': "font-size: 50%; position: relative; top:-1.1em", |
'.typeset .wide1': "font-size: 50%; position: relative; top:-1.1em", |
'.wide2': "font-size: 80%; position: relative; top:-.7em", |
'.typeset .wide2': "font-size: 80%; position: relative; top:-.7em", |
'.wide3': "font-size: 125%; position: relative; top:-.5em", |
'.typeset .wide3': "font-size: 125%; position: relative; top:-.5em", |
'.wide1a': "font-size: 75%; position: relative; top:-.5em", |
'.typeset .wide1a': "font-size: 75%; position: relative; top:-.5em", |
'.wide2a': "font-size: 133%; position: relative; top: -.15em", |
'.typeset .wide2a': "font-size: 133%; position: relative; top: -.15em", |
'.wide3a': "font-size: 200%; position: relative; top: -.05em", |
'.typeset .wide3a': "font-size: 200%; position: relative; top: -.05em", |
'.greek': "font-family: Symbol" |
'.typeset .greek': "font-family: Symbol", |
|
'.typeset .igreek': "font-family: Symbol; font-style:italic", |
|
'.typeset .bgreek': "font-family: Symbol; font-weight:bold" |
}); |
}); |
|
|
jsMath.Setup.Styles(); |
|
|
|