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:
Hostodo 商家是比较小众的国外VPS主机商,这不看到商家有推送促销优惠在美国西岸的斯波坎机房还有少部分库存准备通过低价格促销,年付低至12美元Linux VPS主机,且如果是1GB内存方案的可以享受六六折优惠,均是采用KVM架构,且可以支付宝付款。第一、商家优惠码优惠码:spokanessd 1GB+内存方案才可以用到优惠码,其他都是固定的优惠低至年12美元。第二、商家促销这里,我们可以看到...
青云互联怎么样?青云互联是一家成立于2020年6月份的主机服务商,致力于为用户提供高性价比稳定快速的主机托管服务,目前提供有美国免费主机、香港主机、香港服务器、美国云服务器,让您的网站高速、稳定运行。目前,美国洛杉矶cn2弹性云限时七折,美国cera机房三网CN2gia回程 13.3元/月起,可选Windows/可自定义配置。点击进入:青云互联官网青云互联优惠码:七折优惠码:dVRKp2tP (续...
EtherNetservers是一家成立于2013年的英国主机商,提供基于OpenVZ和KVM架构的VPS,数据中心包括美国洛杉矶、新泽西和杰克逊维尔,商家支持使用PayPal、支付宝等付款方式,提供 60 天退款保证,这在IDC行业来说很少见,也可见商家对自家产品很有信心。有需要便宜VPS、多IP VPS的朋友可以关注一下。优惠码SUMMER-VPS-15 (终身 15% 的折扣)SUMMER-...
mathplayer为你推荐
美国互联网瘫痪美国是否有能力关闭全球互联网以及中国互联网,还有美国有没能力关闭某个网站,比如淘宝,天涯,网易等敬汉卿姓名被抢注身份证号码被别人抢注了12306帐号怎么办摩根币JPM摩根币是什么?怎么赚钱是骗人的吗?咏春大师被ko练咏春拳的杨师傅对阵散打冠军,注:是高龄级别被冠军级别打败了,那如果是咏春冠军叶问呢?更别说是李小甲骨文不满赔偿不签合同不满一年怎么补偿比肩工场比肩接踵的意思lunwenjiancepaperfree论文检测安全吗陈嘉垣电视剧《反黑》里面,雷太太女儿扮演者是谁?钟神发战旗TV ID:新年快乐丶未央不见是哪个主播777k7.comwww.777tk.com.怎么打不 开
免费国内空间 西安服务器租用 息壤主机 空间服务商 铁通流量查询 美国十次啦服务器 qingyun anylink seednet 免费美国空间 hktv 下载速度测试 广州虚拟主机 umax 万网服务器 windowsserverr2 认证机构 大硬盘补丁 电脑主机声音大 戴尔主机 更多