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:

RackNerd美国大硬盘服务器促销:120G SSD+192TB HDD,1Gbps大带宽,月付$599,促销美国月付$服务器促销带宽

racknerd怎么样?racknerd最近发布了一些便宜美国服务器促销,包括大硬盘服务器,提供120G SSD+192TB HDD,有AMD和Intel两个选择,默认32G内存,1Gbps带宽,每个月100TB流量,5个IP地址,月付$599。价格非常便宜,需要存储服务器的朋友可以关注一下。RackNerd主要经营美国圣何塞、洛杉矶、达拉斯、芝加哥、亚特兰大、新泽西机房基于KVM虚拟化的VPS、...

香港服务器促销:香港华为云混合服务器、高防服务器首月半价,普通110M大带宽服务器月付799,付5用6,付10用13

博鳌云是一家以海外互联网基础业务为主的高新技术企业,运营全球高品质数据中心业务。自2008年开始为用户提供服务,距今11年,在国人商家中来说非常老牌。致力于为中国用户提供域名注册(国外接口)、免费虚拟主机、香港虚拟主机、VPS云主机和香港、台湾、马来西亚等地服务器租用服务,各类网络应用解決方案等领域的专业网络数据服务。商家支持支付宝、微信、银行转账等付款方式。目前香港有一款特价独立服务器正在促销,...

数脉科技8月促销,新客减400港币,BGP、CN2+BGP、阿里云线路低至350元

数脉科技(shuhost)8月促销:香港独立服务器,自营BGP、CN2+BGP、阿里云线路,新客立减400港币/月,老用户按照优惠码减免!香港服务器带宽可选10Mbps、30Mbps、50Mbps、100Mbps带宽,支持中文本Windows、Linux等系统。官方网站:https://www.shuhost.com* 更大带宽可在选购时选择同样享受优惠。* 目前仅提供HKBGP、阿里云产品,香港...

mathplayer为你推荐
今日油条油条的由来及历史18comic.fun18岁以后男孩最喜欢的网站地陷裂口地陷前期会有什么征兆吗?www.522av.com现在怎样在手机上看AV777k7.com怎么在这几个网站上下载图片啊www.777mu.com www.gangguan23.comse95se.comwww.sea8.com这个网站是用什么做的 需要多少钱杨丽晓博客杨丽晓今年高考了吗?www.se222se.comhttp://www.qqvip222.com/99nets.com99nets网游模拟娱乐社区怎么打不开了?????????谁能告诉我 ???、www.kaspersky.com.cn卡巴斯基杀毒软件有免费的吗?稳定版的怎么找?
动态域名 上海vps 查询ip地址 草根过期域名 google镜像 simcentric mediafire下载 外国域名 国内加速器 圣诞节促销 长沙服务器 警告本网站美国保护 促正网秒杀 服务器是干什么的 php空间购买 cloudlink 申请网站 架设邮件服务器 河南移动梦网 wordpress中文主题 更多