Superscriptsmathplayer
mathplayer 时间:2021-03-17 阅读:(
)
IntroductiontoUsingMathMLPresentedby:RobertMinerDirectorofNewProductDevelopmentBobMathewsDirectorofTrainingWhatwe'llcoverPartI–UnderstandingMathMLOverviewofMathMLPresentationandcontentmarkupMathMLelementsBuildingaMathMLexpressionandinsertingintoHTMLandXMLpages.
Whatwe'llcoverPartI–UnderstandingMathMLPartII–MagicIncantationsDOCTYPEs&MIMEtypesNamespacesObjectTagsandProcessingInstructionsUniversalMathMLStylesheetWhatwe'llcoverPartI–UnderstandingMathMLPartII–MagicIncantationsPartIII–ToolsDesignScienceWebEQDesignScienceMathTypewithMathPagetechnologyTeX4htAmayaNowontoPartI–UnderstandingMathMLOverviewofMathMLTheMathematicalMarkupLanguage(MathML)wasfirstpublishedasarecommendationinApril1998.
Fromthe"MathActivityStatement"oftheW3CMathWorkingGroup:"DesignedasanXMLapplication,MathMLprovidestwosetsoftags,oneforthevisualpresentationofmathematicsandtheotherassociatedwiththemeaningbehindequations.
"TheMathematicalMarkupLanguage(MathML)wasfirstpublishedasarecommendationinApril1998.
Fromthe"MathActivityStatement"oftheW3CMathWorkingGroup:"DesignedasanXMLapplication,MathMLprovidestwosetsoftags,oneforthevisualpresentationofmathematicsandtheotherassociatedwiththemeaningbehindequations.
"OverviewofMathMLOverviewofMathMLTheMathematicalMarkupLanguage(MathML)wasfirstpublishedasarecommendationinApril1998.
Fromthe"MathActivityStatement"oftheW3CMathWorkingGroup:"…twosetsoftags…""MathMLisnotdesignedforpeopletoenterbyhandbutspecializedtoolsprovidethemeansfortypinginandeditingmathematicalexpressions.
"TheMathematicalMarkupLanguage(MathML)wasfirstpublishedasarecommendationinApril1998.
Fromthe"MathActivityStatement"oftheW3CMathWorkingGroup:"…twosetsoftags…""MathMLisnotdesignedforpeopletoenterbyhandbutspecializedtoolsprovidethemeansfortypinginandeditingmathematicalexpressions.
"OverviewofMathMLAttributesgenerallyspecifyadditionaloptionalinformationabouttheelement.
Eachattributehasanameandavalue.
Forexample,themfracelementhasanattributecalledlinethickness.
Mostelementsrepresenttemplatesorpatternsforlayingoutsubexpressions.
Forexample,thereisanmfracelementforfractions,andanmsqrtelementforsquareroots.
AnatomyofaMathMLexpressionAbout30MathMLpresentationelementswhichacceptabout50attributesUsingpresentationmarkup,it'spossibletopreciselycontrolhowanexpressionwilllookwhendisplayed.
About120contentelements,acceptingaboutadozenattributes.
Contentmarkupfacilitatesapplicationsotherthandisplay,likecomputeralgebraandspeechsynthesis.
Mostcontentelementsrepresenteitheroperatorsormathematicaldatatypes.
Forexample,thereisadivide/elementfordivision,andanemptysetelementtodenotetheemptyset.
TwotypesofelementsMostpresentationelementshavestartandendtags,similartothewaysomeHTMLhasstartandendtags.
…Theseelementscanhaveotherdatain-betweenthestartandendtags,suchastext,extendedcharacters,orotherelements.
TwotypesofelementsMostpresentationelementshavestartandendtags,similartothewaysomeHTMLhasstartandendtags.
…TheothertypeofMathMLelementisanemptyelementoftheformTheseelementshavejustonetag.
Thereareonly4emptypresentationelements,butover100emptycontentelements,usedinprefixnotation.
TwotypesofelementsMostpresentationelementshavestartandendtags,similartothewaysomeHTMLhasstartandendtags.
…TheothertypeofMathMLelementisanemptyelementoftheformElementscanalsoacceptattributes.
Ifanelementhasbothstart&endtags,theattributeimmediatelyprecedesthe>inthestarttag.
TwotypesofelementsMostpresentationelementshavestartandendtags,similartothewaysomeHTMLhasstartandendtags.
…TheothertypeofMathMLelementisanemptyelementoftheformElementscanalsoacceptattributes.
Inemptyelements,attributesimmediatelyprecedethe/>.
Examplesofattributes……Insertsa12-ptspace.
For12pixels,use"12px".
Basicpresentationelements–identifier,suchasavariable,functionname,constant,etc.
example:xrendering:xexample:sinrendering:sinBasicpresentationelements–identifier,suchasavariable,functionname,constant,etc.
–operator,suchasasummation,fence(parentheses,brace,etc.
),accent,etc.
example:(rendering:(example:∑rendering:SThisisanexampleofanentityreference.
Entityreferencesarejustkeywordsinaspecialformat,whichrepresentextendedcharacters.
Otherexamplesareα(lower-caseGreekalpha),and∞(infinity).
Basicpresentationelements–identifier,suchasavariable,functionname,constant,etc.
–operator,suchasasummation,fence(parentheses,brace,etc.
),accent,etc.
–numberCanyouidentifythisexpressionx–(3+y)x–(3+y)TokenelementsMostMathMLelements,likethemfracelementmentionedearlier,expecttoonlyfindotherMathMLelementsintheircontent……butsomepresentationelements–,,and,forexample–aredifferent.
Theyareexamplesoftokenelements.
Tokenelementsaretheonlyelementswhichdirectlycontaincharacterdata.
ScriptsSuperscriptsandsubscriptsareubiquitousinmathematicalnotation,andalthoughyouwon'tbedoingmuchMathMLwritingmanually,ithelpstofamiliarizeyourselfwiththeschemata.
MathMLcontainssevenpresentationelementsfordifferentkindsofscripts,butwe'lltakealookatthemostcommon.
Scripts–sub&superThesearethefirstelementswe'veseenindetailthatnormallyhavemorethanoneargument.
Subscript:basescriptSuperscript:basescriptUsage:x1x1x2x2x1x122Whycan'twecodeitthisway:x1IncludingMathMLinyourpageWeneedsomewaytoidentifythemathmarkuptoourbrowser,plug-in,orapplet.
MathMLmarkupisinsertedbetweenandtagstodistinguishMathMLfromothermarkup.
Althoughmosttagswilldifferfrompresentationmarkuptocontentmarkup,thetagiscommontoboth.
CodingsimpleexpressionsAswestatedatthebeginning,itisnotourgoalinthistutorialtomakeyouproficientatwritingMathML.
You'lllikelyuseasoftwareproducttoproducetheMathMLmarkupratherthanwriteityourself.
OurgoalistofamiliarizeyouenoughwiththeMathMLsyntaxandconstructionthatyoucanreadandunderstandablockofcode,andcanperhapsmakechangestoitbyhand.
CodingsimpleexpressionsAswestatedatthebeginning,itisnotourgoalinthistutorialtomakeyouproficientatwritingMathML.
Thatbeingthecase,youknowenoughMathMLnowtotryyourhandatcodingacoupleofsimpleexpressions…Example1–trycodingthis…Don'tforgettobeginwiththestarttagandendwiththeendtagDon'tforgettobeginwiththestarttagandendwiththeendtagExample1–trycodingthis…b2–4b2–4⁢a⁢cExample1ab2–4acor…b2–4⁢a⁢cThisentitydoesn'tappearinprint,butherewehaveaddedittofacilitatevoicesynthesisandheuristicevaluationbycomputeralgebrasystems.
Horizontalrowofexpressionsalignedonthebaseline.
Wrappinganmrowaroundanelementorelementsisalwayspermissible,andoftennecessaryinordertogrouptermstogether,forexample,foruseinascript,etc.
Example2–onemore…x2+y2=r2OtherpresentationelementsPresentationelementsaregrouped:TokenElementsidentifiernumberoperator,fence,orseparatortextOtherpresentationelementsPresentationelementsaregrouped:TokenElementsGeneralLayouttogroupsubexpressionsformfractionfrom2subexpressionsradicalwithaspecifiedindexsurroundcontentwithapairoffencesOtherpresentationelementsPresentationelementsaregrouped:TokenElementsGeneralLayoutScriptsandLimits,,attachascriptunderabaseattachascriptoverabaseattachascriptbothunderandoverabaseOtherpresentationelementsPresentationelementsaregrouped:TokenElementsGeneralLayoutScriptsandLimitsTablestableormatrixrowinatableormatrixoneentryinatableormatrixOtherpresentationelementsPresentationelementsaregrouped:TokenElementsGeneralLayoutScriptsandLimitsTablesActionsbindsactionstoasubexpressionContentelementsMostfundamentaltocontentmarkupistheelement,whichenablestheexplicitapplicationofafunctiontoitsargument.
Contentelementsapplicationofafunctiontoargument.
TokenElementscontentnumbercontentidentifierContentelementsapplicationofafunctiontoargument.
TokenElementsBasicContentElementsgenericinversecompose2ormorefunctionspiecewisedefinedfunctionContentelementsapplicationofafunctiontoargument.
TokenElementsBasicContentElementsArithmetic,Algebra,andLogicdivisiontothepowerofnthrootcomplexconjugateContentelementsapplicationofafunctiontoargument.
TokenElementsBasicContentElementsArithmetic,Algebra,andLogicRelationsequalgreaterthanorequalthe"divides"operatorContentelementsapplicationofafunctiontoargument.
TokenElementsBasicContentElementsArithmetic,Algebra,andLogicRelationsCalculusandSetTheorypartialderivativelowerlimit(ofintegral,etc.
)unionormeetContentelementsapplicationofafunctiontoargument.
TokenElementsBasicContentElementsArithmetic,Algebra,andLogicRelationsCalculusandSetTheoryFurtherelementgroupsincludesequences&series,elementaryclassicalfunctions,statistics,linearalgebra,semanticmappingelements,andconstants.
Example3–contentmarkupWewanttocodethisexpressionincontentmarkup:Weknowweneedtosurroundthecodewiththe…element……butwehaven'tseenyethowtocombinecontentelementstocreateanentireexpression,soheregoes…Example3–contentmarkupπ1Example3–contentmarkupπ1Example3–contentmarkupπ1Example3–contentmarkupπ1totheleftofthe=totherightofthe=Example3–contentmarkupπ1Example3–compareπ1cosπ=–1SummaryPresentationmarkupisfordescribingmathnotation,andcontentmarkupisfordescribingmathematicalobjectsandfunctions.
Inpresentationmarkup,expressionsarebuilt-upusinglayoutschemata,whichtellhowtoarrangetheirsubexpressions(i.
e.
,mfracormsup).
SummaryPresentationmarkup…&contentmarkupMathMLelementseitherhavestartandendtagstoenclosetheircontent,oruseasingleemptytag.
SummaryPresentationmarkup…&contentmarkupMathMLelements…Attributesmaybespecifiedinastartoremptytag.
Attributevaluesmustbeenclosedinquotes.
SummaryPresentationmarkup…&contentmarkupMathMLelements…Attributes…inastartoremptytag.
Allcharacterdatamustbeenclosedintokenelements.
SummaryPresentationmarkup…&contentmarkupMathMLelements…Attributes…inastartoremptytag.
Allcharacterdata…tokenelements.
Extendedcharactersareencodedasentityreferences.
SummaryPresentationmarkup…&contentmarkupMathMLelements…Attributes…inastartoremptytag.
Allcharacterdata…tokenelements.
Extendedcharactersas…entityreferences.
Wediscussedotherlayoutschemata–math,mfrac,mrow,etc.
ThenextsessionofthetutorialwilldealwithdisplayingMathMLinbrowsers.
PartII–MagicIncantationsDOCTYPEs&MIMEtypesNamespacesObjectTagsandProcessingInstructionsUniversalMathMLStylesheetTriggeringMathMLrenderinginbrowsersrequiresspecialdeclarationsinthepage.
WhichBrowsersInternetExplorer(requiresadd-onsoftware)Themainchoicesare:MathPlayer(IE5.
5orhigherunderWindows)Techexplorer(IE5orhigher,manyplatforms)JavaScript/CSS(IE6Windows,otherssoon)Netscape(add-onsrequiredbeforeNS7PR1)Somethingstonote:MathMLdoesn'tyetworkontheMacThedecisiontoincludeMathMLisn'tfinalDOCTYPEsandMIMEtypesTherearetwowaysbrowsersdeterminewhatkindofdataneedstobedisplayed.
Localfilesindicatetheirtypewithafilenameextension(Windows,Unix)orextradataincludedinthefile(Mac).
Datacomingoveranhttpconnectiondoesn'thaveafilename.
Thus,webserversincludeextradataaboutwhatkindoffileisbeingsent.
ThisextradataiscalledaMIMEtype.
DOCTYPEsandMIMEtypesWebserversgenerallyusefileextensionstopicktheMIMEtype.
Thisdoesn'talwayswork…Netscape7isfanaticalaboutusingonlytheMIMEtypetodeterminehowtodisplayadocument.
InternetExplorerisextremelycavalierinusingtheMIMEtype,preferringtosniffinsidethedocumenttoguessitstype.
MIMEtypesWeareconcernedwiththreekindsoffiles:XMLfiles.
ThisincludesXHTMLfiles.
Netscape7willonlyrenderMathMLinthiskindoffile.
HTMLfiles.
InternetExplorerwillonlyrenderMathMLinHTMLfiles.
XSLfiles.
ThesearealsoXMLfiles,buttheyusuallyend.
xslinsteadof.
xml,whichscrewsupmany/mostwebservers.
XHTMLvsHTMLStartandendtagsmustalwaysmatch.
Thingssuchasmustbeemptytags.
AllattributesmusthavequotesaroundthemYourcodeactuallyhastobecorrect!
XHTMLandHTMLarenearlythesame.
ThemaindifferenceisthatXHTMLispickywhileHTMLislax.
Themostimportantthingsare:MIMEtypesTheupshotis:ToworkinNetscape,youneedanXMLdocument.
ToworkinInternetExploreryouneedanHTMLdocument.
So,inpracticeyoucreateanXHTMLdocument,andfiddlewiththeMIMEtypeOntheserverusingscripts,etc.
OntheclientusingXSLstylesheets.
DOCTYPEsADOCTYPEisaspecialdeclarationatthebeginningofanHTMLorXMLdocumentthatdefineswhatkindofmarkupisinthedocument.
DOCTYPEsarereallyforvalidation,notidentification.
DOCTYPEspointtoaDTD,whichdefinesthesyntaxofthemarkupinthedocument.
DOCTYPEs]>TypicalDOCTYPEdeclarationslooklikethis:DOCTYPEsNetscape7requiresaDOCTYPE,butdoesn'tactuallylookattheDTDtowhichitpoints.
InsteadtheDTDmustmatchoneofafewpredefinedvalues.
InternetExplorerdoesn'trequireaDOCTYPE,butitdoesdownloadtheDTDanduseitifthereisone.
DOCTYPEsTheupshotis:InyourXHTMLdocument,youputaDOCTYPE,andTheW3CMathWGpullsitshairouttryingtomakeaDTDavailablethatisbothcorrectandworksaroundthebugsintheIEparser.
NamespacesXMLlanguagesareidentifiedbyaURI.
MathMLishttp://www.
w3.
org/1998/Math/MathMLXHTMLishttp://www.
w3.
org/1999/xhtmlTheycanbeindicatedintwoways.
ByusinganxmlnsattributeonanelementByaddingaprefixtoelementnamesComplexitiesarisewhentwoXMLdialectsmustmix.
ThecaseofinterestisXHTML+MathML.
Thesolutionistousenamepaces.
Namespaces…x+2…Usethexmlnsattributeontheoutermostelementoftheembeddedmarkup.
Thisplacestheelementonwhichtheattributeisset,anditschildrenintheindicatednamespace.
Namespaces…x+2…Touseprefixes,youmustAssociateaprefixandanamespaceusinganxmlns:prefixattributeonacontainingelement.
Usetheprefixtoidentifyelementsthatshouldbeinthenamespace.
Namespaces&DOCTYPEs]>x+2…SincetheURIsfornamespacesarelong,onetricksomepeoplelikeistodeclareanentityreferenceforitintheDOCTYPE:ObjectsandPIsTheelementinstructsIEwhatpieceofsoftwaretoload.
Aprocessinginstruction(orPI)isusedtoassigntheadd-onsoftwaretorendermarkupfromaparticularnamespace.
Twoadditionaldeclarationsarerequiredtotriggeradd-onsoftwareformathrenderinginInternetExplorer:ObjectsandPIsWindowsusesalongstringofdigitsandletterscalledaclassidtouniquelyidentifysoftwarecomponents.
Theobjecttagusesanattributetospecifyaclassid:ObjectsandPIsTherearemanykindsofprocessinginstructions,withdifferentattributes.
For"IEbehaviors"onespecifiesanamespace,andtheIDofanobject:ObjectsandPIsBehaviorsareactuallytriggeredbyanamespaceprefix,andnotthenamespaceitself.
Theupshotis,touseadd-onssuchasMathPlayerorTechexplorer,YoumustincludeanOBJECTandPI.
Youmustusetheprefixmethodfornamespaces.
OnecomplexityarisesfromabuginInternetExplorerbehaviors:PuttingItTogetherWriteXHTMLIncludeaDOCTYPEIncludeanOBJECTandPIIncludeanamespacedeclarationUsenamespaceprefixesontheMathMLAltogetherthen,tocreateadocumentthatworksinbothIEandNetscape,youmust:PuttingItTogetherNetscapewillonlyrenderyourdocumentifitisXML.
InternetExplorerwillonlyrenderitifitisHTML.
ThesolutionXSLstylesheets…Butwait!
Evenifyoudoallthat,thereisstilltheinsurmountableproblemofMIMEtypes:TheMathMLStylesheetYouaddanXSLstylesheettoanXMLdocumentusingaPI.
Thestylesheetsitsontheserverwithyourdocument.
Thestylesheetrunsintheclienttotransformyourdocumentforviewing.
AnXSLstylesheetisasetoftemplatesfortransforminganinputdocumentintoanoutputdocument.
TheMathMLStylesheetDetectwhatbrowseritisrunninginandoutputeitherXMLorHTMLaccordinglyDetectwhatadd-onsareinstalledandoutputthenecessaryObjectandPIdeclarationsConvertcontenttopresentationmarkupXSLispowerful.
TheW3CMathWGhascreatedaUniversalMathMLStylesheetwhichcan:TheMathMLStylesheetTheMathMLstylesheetPIlookslikethis:TheMathMLStylesheetIncludethestylesheetPI.
WriteXHTML.
Don'tuseentityreferences.
Usenumericreferencesinstead.
UsenamespacestoindicatetheMathML.
Don'tuseObjecttagsorbehaviorPIs.
It'snotnecessarytouseaDOCTYPE.
InordertousetheMathMLstylesheet,SummaryThedocumentmustbeXHTML(NS).
ItneedsaDOCTYPE(NS).
TheMathMLmustbeinanamespace(both,)andyouhavetousetheprefixmethod(IE).
YouneedanelementandbehaviorPI(IE).
ServeitasXMLforNS,andHTMLforIE.
GettingMathMLinadocumenttorenderinbothIEandNetscapeisquiteatrick.
Thenecessaryingredientsare:SummaryThedocumentmustbeXHTMLwithoutentitynames.
IncludethestylesheetPI.
TheMathMLmustbeinanamespace(eithermethod).
YoucanomittheDOCTYPE,elementandbehaviorPI.
Asimpler,alternativemethodwhichalsodealswiththeMIMEtypesistousetheUniversalMathStylesheet:
数脉科技(shuhost)8月促销:香港独立服务器,自营BGP、CN2+BGP、阿里云线路,新客立减400港币/月,老用户按照优惠码减免!香港服务器带宽可选10Mbps、30Mbps、50Mbps、100Mbps带宽,支持中文本Windows、Linux等系统。数脉香港特价阿里云10MbpsCN2,e3-1230v2,16G内存,1T HDD 或 240G SSD,10Mbps带宽,IPv41个,...
virmach送来了夏季促销,价格低到爆炸,而且在低价的基础上还搞首年8折,也就是说VPS低至7.2美元/年。不过,这里有一点要说明:你所购买的当前的VPS将会在09/30/2021 ~ 04/30/2022进行服务器转移,而且IP还会改变,当前的Intel平台会换成AMD平台,机房也会变动(目前来看以后会从colocrossing切换到INAP和Psychz),采取的是就近原则,原来的水牛城可能...
物语云计算怎么样?物语云计算(MonogatariCloud)是一家成立于2016年的老牌国人商家,主营国内游戏高防独服业务,拥有多家机房资源,产品质量过硬,颇有一定口碑。本次带来的是特惠活动为美国洛杉矶Cera机房的不限流量大带宽VPS,去程直连回程4837,支持免费安装Windows系统。值得注意的是,物语云采用的虚拟化技术为Hyper-v,因此并不会超售超开。一、物语云官网点击此处进入物语云...
mathplayer为你推荐
硬盘工作原理硬盘的工作原理是什么?百度商城百度商城里抽奖全是假的老虎数码我想买个一千左右的数码相机!最好低于一千五!再给我说一下像素是多少?www.jjwxc.net在哪个网站看小说?罗伦佐娜维洛娜毛周角化修复液治疗毛周角化有用吗?谁用过?能告诉我吗?8090lu.com8090看看电影网怎么打不开了789se.comhttp://gv789.com/index.php这个网站可信吗?是真的还是假的!m.kan84.net电视剧海派甜心全集海派甜心在线观看海派甜心全集高清dvd快播迅雷下载baqizi.cc孔融弑母是真的吗?dadi.tvApple TV是干嘛的?怎么用?多少钱?
域名空间代理 网站虚拟主机空间 大庆服务器租用 lunarpages 国外php主机 tier godaddy域名转出 免费网络电视 腾讯云分析 ftp教程 129邮箱 南通服务器 台湾谷歌 四核服务器 空间租赁 沈阳主机托管 xuni 存储服务器 wordpress空间 超低价 更多