Ena Aplo Paradeigma SGML <author> Matt Welsh, <tt/mdw@cs.cornell.edu/ <date> v1.0, 28 Martioy 1994 <abstract> Ayto to keimeno apotelei ena suntomo paradeigma xrhshs toy Linuxdoc-SGML DTD. (S.t.M. Apotelei metafrash alla kai prosarmogh sta ellhnika dedomena toy arxikou keimenoy poy perilambanetai sta sgml-tools. Prokophs Prokopidhs, <tt/prokops@hellug.gr/, Septembrios 1999) </abstract> <!-- Pinakas Periexomenwn --> <toc> <!-- Arxh toy Keimenoy --> <sect> Eisagwgh <p> Ayto einai ena paradeigma SGML me th xrhsh toy Linuxdoc-SGML DTD. Mporeite na to morfopoihsete xrhsimopoiwntas thn entolh <tscreen><verb> % sgml2html example.sgml </verb></tscreen> poy 8a paragagei HTML selides. Mporeite epishs na paragagete LaTeX, .txt kai GNU info arxeia. (S.t.M. Me orismenoys periorismous gia ta Ellhnika. H metatroph se HTML doyleuei xwris kanena problhma kai sta Ellhnika.) <sect>O kwdikas <p> Ejetazontas ton kwdika apo ayto to arxeio 8a ma8ete pws na xrhsimopoieite polles apo tis domes toy Linuxdoc-SGML. 8a prepei epishs na diabaste to <em/Linuxdoc-SGML User's Guide/, sto arxeio <tt/guide.sgml/ poy perilambanetai sth dianomh twn sgml-tools. O kwdikas, opws 8a deite, moiazei me ton kwdika toy LaTeX. Oi paragrafoi xwrizontai me kenes grammes, oi makroentoles perikleiontai se agkules. Prokeitai gia arketa aplo kwdika. <sect>Merika paradeigmata <p> Akoloy8oun paradeigmata orismenwn pragmatwn poy 8a xreiasteite ston kwdika. Prwta as kateboume se mia ypoenothta: <sect1>Ayth einai mia ypoenothta <p> Opws leei kai o titlos ths. Prosejte oti einai aparaithto na xrhsimopoihsete thn entolh <tt/p/ gia na arxisete to kyriws meros ths enothtas, meta apo thn entolh <tt/sect1/. Akoloy8ei mia an8ypoenothta: <sect2>Ayth einai mia an8ypoenothta <p> Wraia. Exete sth dia8esh sas 5 epipeda enothtwn. Xrhsimopoihste tis entoles <tt/sect/, <tt/sect1/, <tt/sect2/, <tt/sect3/, kai <tt/sect4/ gia na ta ekmetalleyteite. Ayto to keimeno xrhsimopoiei to styl keimenoy <tt>article (ar8ro)</tt>, poy einai katallhlo gia HOWTO kai alla paromoia keimena to styl <tt>report (texnikh anafora)</tt> poy perilambanei thn entolh enothtas <tt/chapt (kefalaio)/ 8a prepei na to xrhsimopoieite gia ta keimena toy Linux Documentation Project. <sect1>Keimeno poy xrhsimopoieitai ws paradeigma <p> As ypo8esoyme loipon oti, ka8ws synexizete to gracimo, 8elete na enswmatwsete sto keimeno sas ton kwdika, thn eisodo, h thn ejodo enos programmatos. Se tetoies periptwseis xrhsimopoihste ta ``periballonta'' <tt/code/ h <tt/verb/, perikleiontas ta se ena periballon <tt/tscreen/, opws sto paradeigma: <tscreen><verb> This is an example for environment verb. </verb></tscreen> Epishs: <tscreen><code> This is an example for environment code. </code></tscreen> To periballon <tt>tscreen</tt> aplws orizei mikrotero mege8os grammatoseiras kai frontizei gia th swsth stoixish. Den einai aparaithto gia th xrhsh twn <tt/verb/ h <tt/code/, pantws egw sas to synistw. To keimeno <em/Linuxdoc-SGML User's Guide/ ejhgei poioys eidikous xarakthres mporeite kai poioys den mporeite na xrhsimopoihsete sta periballonta <tt/verb/ and <tt/code/. <sect1>Parapompes se alla shmeia toy keimenoy <label id="dokimastiki-parapompi"><p> 8elete kai parapompes se alla shmeia toy keimenoy; Ayth h enothta exei markaristei me thn entolh <tt>label</tt>. Xrhsimopoiwntas thn entolh <tt>ref</tt> 8a dhmioyrghsete mia parapomph, opws sto paradeigma ``Deite thn Enothta <ref id="dokimastiki-parapompi"> gia perissoteres plhrofories''. Gia thn wra oi parampompes de doyleuoyn kata th metafrash (me th xrhsh toy <tt/groff/) se aplo ASCII keimeno. Doyleuoyn swsta otan paragete LaTeX h HTML. <sect1>Xrhsh twn grammatoseirwn <p> An 8elete grammatoseires, exoyme ki ap' aytes. Fysika de 8a tis blepete sto aplo keimeno ASCII, alla 8a emfanistoun oles sta diafora format poy 8a paragagete: <bf/boldface (entona)/, <em/emphasis (gia emfash)/, <sf/sans serif (xwris oyres)/, <sl/slanted (plagia)/, <tt/typewriter (grafomhxanhs)/, and <it/italics (``italakia'')/. <sect1>Listes <p> Oi listes einai epishs eukoles. Aplws xrhsimopoihste to stoixeio <tt/itemize/ me tis entoles <tt/item/ opws emfanizontai parakatw: <itemize> <item> Ayth einai mia lista. <item> Tipote to fobero edw. <itemize> <item> Epishs yposthrizontai pollapla epipeda. <item> Kai pali, kamia ekplhjh. </itemize> <enum> <item> Oi ari8mhmenes listes me th xrhsh toy <tt>enum</tt> epishs doyleuoyn. <item> To periballon perigrafhs, me th xrhsh twn <tt>descrip</tt> kai <tt>tag</tt> einai epishs dia8esimo, opws fainetai ki edw. </enum> <descrip> <tag/Prwto stoixeio./ Na ena stoixeio. <tag/Deutero stoixeio./ Na ki allo ena. <tag/Trito stoixeio./ Pame kai gia to trito. </descrip> <item> Kai gia kerasaki sthn tourta, ena teleytaio stoixeio. </itemize> Kalucame sxedon ka8eti poy xreiazeste gia na jekinhsete me to gracimo keimenwn SGML xrhsimopoiwntas to <tt/linuxdoc-sgml/ DTD. Sas parakalw na me eidopoihsete an nomizete oti kati prepei na allajei h na proste8ei se ayto to keimeno. </article>