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:
RAKsmart怎么样?RAKsmart香港机房新增了付费的DDoS高防保护服务,香港服务器默认接入20Mbps的大陆优化带宽(电信走CN2、联通和移动走BGP)。高防服务器需要在下单页面的IP Addresses Option里面选择购买,分:40Gbps大陆优化高防IP-$461/月、100Gbps国际BGP高防IP-$692/月,有兴趣的可以根据自己的需求来选择!点击进入:RAKsmart官...
Justg是一家俄罗斯VPS云服务器提供商,主要提供南非地区的VPS服务器产品,CN2高质量线路网络,100Mbps带宽,自带一个IPv4和8个IPv6,线路质量还不错,主要是用户较少,带宽使用率不高,比较空闲,不拥挤,比较适合面向非洲、欧美的用户业务需求,也适合追求速度快又需要冷门的朋友。justg的俄罗斯VPS云服务器位于莫斯科机房,到美国和中国速度都非常不错,到欧洲的平均延迟时间为40毫秒,...
月付/年付优惠码:zji 下物理服务器/VDS/虚拟主机空间订单八折终身优惠(长期有效)一、ZJI官网点击直达ZJI官方网站二、特惠香港日本服务器香港大埔:http://hkdb.speedtest.zji.net/香港葵湾:http://hkkw.speedtest.zji.net/日本大阪:http://jpsk.speedtest.zji.net/日本大阪一型 ...
mathplayer为你推荐
比肩工场比肩夺财,行官杀制比是什么意思?lunwenjiancepaperrater论文检测准确吗同ip网站一个域名能对应多个IP吗www.haole012.comhttp://fj.qq.com/news/wm/wm012.htm 这个链接的视频的 第3分20秒开始的 背景音乐 是什么?8090lu.com8090向前冲电影 8090向前冲清晰版 8090向前冲在线观看 8090向前冲播放 8090向前冲视频下载地址??广告法新修订的《广告法》有哪些内容www.36ybyb.com有什么网址有很多动漫可以看的啊?我知道的有www.hnnn.net.很多好看的!但是...都看了!我想看些别人哦!还有优酷网也不错...33tutu.comDnf绝望100鬼泣怎么过hao.rising.cn电脑每次开机的时候,都会弹出“http://hao.rising.cn/?b=34” 但是这个时关键词分析怎么样分析关键词?
武汉域名注册 免费域名空间申请 什么是二级域名 hostmaster zpanel oneasiahost omnis 正版win8.1升级win10 ca4249 域名转向 me空间社区 秒杀汇 服务器合租 免费高速空间 cdn加速是什么 搜索引擎提交入口 环聊 创建邮箱 四川电信商城 空间登陆首页 更多