org 261 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180
  1. This is org, produced by makeinfo version 4.8 from org.texi.
  2. INFO-DIR-SECTION Emacs
  3. START-INFO-DIR-ENTRY
  4. * Org Mode: (org). outline-based notes management and organizer
  5. END-INFO-DIR-ENTRY
  6. This manual is for Org-mode (version 4.58).
  7. Copyright (C) 2004, 2005, 2006 Free Software Foundation
  8. Permission is granted to copy, distribute and/or modify this
  9. document under the terms of the GNU Free Documentation License,
  10. Version 1.1 or any later version published by the Free Software
  11. Foundation; with no Invariant Sections, with the Front-Cover texts
  12. being "A GNU Manual," and with the Back-Cover Texts as in (a)
  13. below. A copy of the license is included in the section entitled
  14. "GNU Free Documentation License."
  15. (a) The FSF's Back-Cover Text is: "You have freedom to copy and
  16. modify this GNU Manual, like GNU software. Copies published by
  17. the Free Software Foundation raise funds for GNU development."
  18. 
  19. File: org, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
  20. Org Mode Manual
  21. ***************
  22. This manual is for Org-mode (version 4.58).
  23. Copyright (C) 2004, 2005, 2006 Free Software Foundation
  24. Permission is granted to copy, distribute and/or modify this
  25. document under the terms of the GNU Free Documentation License,
  26. Version 1.1 or any later version published by the Free Software
  27. Foundation; with no Invariant Sections, with the Front-Cover texts
  28. being "A GNU Manual," and with the Back-Cover Texts as in (a)
  29. below. A copy of the license is included in the section entitled
  30. "GNU Free Documentation License."
  31. (a) The FSF's Back-Cover Text is: "You have freedom to copy and
  32. modify this GNU Manual, like GNU software. Copies published by
  33. the Free Software Foundation raise funds for GNU development."
  34. * Menu:
  35. * Introduction:: Getting started
  36. * Document structure:: A tree works like your brain
  37. * Tables:: Pure magic for quick formatting
  38. * Hyperlinks:: Notes in context
  39. * TODO items:: Every tree branch can be a TODO item
  40. * Timestamps:: Assign date and time to items
  41. * Tags:: Tagging headlines and matching sets of tags
  42. * Agenda views:: Collecting information into views
  43. * Embedded LaTeX:: LaTeX fragments and formulas
  44. * Exporting:: Sharing and publishing of notes
  45. * Publishing:: Create a web site of linked Org-mode files
  46. * Miscellaneous:: All the rest which did not fit elsewhere
  47. * Extensions and Hacking:: It is possible to write add-on code
  48. * History and Acknowledgments:: How Org-mode came into being
  49. * Index:: The fast road to specific information
  50. * Key Index:: Key bindings and where they are described
  51. --- The Detailed Node Listing ---
  52. Introduction
  53. * Summary:: Brief summary of what Org-mode does
  54. * Installation:: How to install a downloaded version of Org-mode
  55. * Activation:: How to activate Org-mode for certain buffers.
  56. * Feedback:: Bug reports, ideas, patches etc.
  57. Document Structure
  58. * Outlines:: Org-mode is based on outline-mode
  59. * Headlines:: How to typeset org-tree headlines
  60. * Visibility cycling:: Show and hide, much simplified
  61. * Motion:: Jumping to other headlines
  62. * Structure editing:: Changing sequence and level of headlines
  63. * Archiving:: Move done task trees to a different place
  64. * Sparse trees:: Matches embedded in context
  65. * Plain lists:: Additional structure within an entry
  66. Archiving
  67. * ARCHIVE tag:: Marking a tree as inactive
  68. * Moving subtrees:: Moving a tree to an archive file
  69. Tables
  70. * Built-in table editor:: Simple tables
  71. * Narrow columns:: Stop wasting space in tables
  72. * Table calculations:: Compute a field from other fields
  73. * orgtbl-mode:: The table editor as minor mode
  74. * table.el:: Complex tables
  75. Calculations in tables
  76. * Formula syntax:: How to write a formula
  77. * Lisp formulas:: An alternative way to write formulas
  78. * Column formulas:: Formulas valid for all fields in a column
  79. * Advanced features:: Field names, parameters and automatic recalc
  80. * Named-field formulas:: Formulas valid in single fields
  81. * Editing/debugging formulas:: Changing a stored formula
  82. * Appetizer:: Taste the power of calc
  83. Hyperlinks
  84. * Link format:: How links in Org-mode are formatted
  85. * Internal links:: Links to other places in the current file
  86. * External links:: URL-like links to the world
  87. * Handling links:: Creating, inserting and following
  88. * Link abbreviations:: Shortcuts for writing complex links
  89. * Search options:: Linking to a specific location
  90. * Custom searches:: When the default search is not enough
  91. * Remember:: Org-trees store quick notes
  92. Internal links
  93. * Radio targets:: Make targets trigger links in plain text.
  94. * CamelCase links:: Activating CamelCase words as links
  95. TODO items
  96. * TODO basics:: Marking and displaying TODO entries
  97. * TODO extensions:: Workflow and assignments
  98. * Priorities:: Some things are more important than others
  99. * Breaking down tasks:: Splitting a task into managable pieces
  100. * Checkboxes:: Tick-off lists
  101. Extended use of TODO keywords
  102. * Workflow states:: From TODO to DONE in steps
  103. * TODO types:: I do this, Fred the rest
  104. * Per file keywords:: Different files, different requirements
  105. Timestamps
  106. * Time stamps:: Assigning a time to a tree entry
  107. * Creating timestamps:: Commands which insert timestamps
  108. * Custom time format:: If you cannot work with the ISO format
  109. * Progress logging:: Documenting when what work was done.
  110. Creating timestamps
  111. * The date/time prompt:: How org-mode helps you entering date and time
  112. Progress Logging
  113. * Closing items:: When was this entry marked DONE?
  114. * Clocking work time:: When exactly did you work on this item?
  115. Tags
  116. * Tag inheritance:: Tags use the tree structure of the outline
  117. * Setting tags:: How to assign tags to a headline
  118. * Tag searches:: Searching for combinations of tags
  119. Agenda Views
  120. * Agenda files:: Files being searched for agenda information
  121. * Agenda dispatcher:: Keyboard access to agenda views
  122. * Built-in agenda views:: What is available out of the box?
  123. * Presentation and sorting:: How agenda items are prepared for display
  124. * Agenda commands:: Remote editing of org trees
  125. * Custom agenda views:: Defining special searches and views
  126. The built-in agenda views
  127. * Weekly/Daily agenda:: The calendar page with current tasks
  128. * Global TODO list:: All unfinished action items
  129. * Matching headline tags:: Structured information with fine-tuned search
  130. * Timeline:: Time-sorted view for single file
  131. * Stuck projects:: Find projects you need to review
  132. Presentation and sorting
  133. * Categories:: Not all tasks are equal
  134. * Time-of-day specifications:: How the agenda knows the time
  135. * Sorting of agenda items:: The order of things
  136. Custom agenda views
  137. * Storing searches:: Type once, use often
  138. * Block agenda:: All the stuff you need in a single buffer
  139. * Setting Options:: Changing the rules
  140. * Batch processing:: Agenda views from the command line
  141. Embedded LaTeX
  142. * Math symbols:: TeX macros for symbols and Greek letters
  143. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  144. * LaTeX fragments:: Complex formulas made easy
  145. * Processing LaTeX fragments:: Previewing LaTeX processing
  146. * CDLaTeX mode:: Speed up entering of formulas
  147. Exporting
  148. * ASCII export:: Exporting to plain ASCII
  149. * HTML export:: Exporting to HTML
  150. * XOXO export:: Exporting to XOXO
  151. * iCalendar export:: Exporting in iCalendar format
  152. * Text interpretation:: How the exporter looks at the file
  153. Text interpretation by the exporter
  154. * Comment lines:: Some lines will not be exported
  155. * Enhancing text:: Subscripts, symbols and more
  156. * Export options:: How to influence the export settings
  157. Publishing
  158. * Configuration:: Defining projects
  159. * Sample configuration:: Example projects
  160. * Triggering publication:: Publication commands
  161. Configuration
  162. * Project alist:: The central configuration variable
  163. * Sources and destinations:: From here to there
  164. * Selecting files:: What files are part of the project?
  165. * Publishing action:: Setting the function doing the publishing
  166. * Publishing options:: Tweaking HTML export
  167. * Publishing links:: Which links keep working after publishing?
  168. * Project page index:: Publishing a list of project files
  169. Sample configuration
  170. * Simple example:: One-component publishing
  171. * Complex example:: A multi-component publishing example
  172. Miscellaneous
  173. * Completion:: M-TAB knows what you need
  174. * Customization:: Adapting Org-mode to your taste
  175. * In-buffer settings:: Overview of the #+KEYWORDS
  176. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  177. * Clean view:: Getting rid of leading stars in the outline
  178. * TTY keys:: Using Org-mode on a tty
  179. * Interaction:: Other Emacs packages
  180. * Bugs:: Things which do not work perfectly
  181. Interaction with other packages
  182. * Cooperation:: Packages Org-mode cooperates with
  183. * Conflicts:: Packages that lead to conflicts
  184. Extensions, Hooks and Hacking
  185. * Extensions:: Existing 3rd-part extensions
  186. * Dynamic blocks:: Automatically filled blocks
  187. * Special agenda views::
  188. 
  189. File: org, Node: Introduction, Next: Document structure, Prev: Top, Up: Top
  190. 1 Introduction
  191. **************
  192. * Menu:
  193. * Summary:: Brief summary of what Org-mode does
  194. * Installation:: How to install a downloaded version of Org-mode
  195. * Activation:: How to activate Org-mode for certain buffers.
  196. * Feedback:: Bug reports, ideas, patches etc.
  197. 
  198. File: org, Node: Summary, Next: Installation, Prev: Introduction, Up: Introduction
  199. 1.1 Summary
  200. ===========
  201. Org-mode is a mode for keeping notes, maintaining ToDo lists, and doing
  202. project planning with a fast and effective plain-text system.
  203. Org-mode develops organizational tasks around NOTES files that
  204. contain lists or information about projects as plain text. Org-mode is
  205. implemented on top of outline-mode, which makes it possible to keep the
  206. content of large files well structured. Visibility cycling and
  207. structure editing help to work with the tree. Tables are easily created
  208. with a built-in table editor. Org-mode supports ToDo items, deadlines,
  209. time stamps, and scheduling. It dynamically compiles entries into an
  210. agenda that utilizes and smoothly integrates much of the Emacs calendar
  211. and diary. Plain text URL-like links connect to websites, emails,
  212. Usenet messages, BBDB entries, and any files related to the projects.
  213. For printing and sharing of notes, an Org-mode file can be exported as a
  214. structured ASCII file, as HTML, or (todo and agenda items only) as an
  215. iCalendar file. It can also serve as a publishing tool for a set of
  216. linked webpages.
  217. An important design aspect that distinguishes Org-mode from for
  218. example Planner/Muse is that it encougages to store every piece of
  219. information only once. In Planner, you have project pages, day pages
  220. and possibly other files, duplicating some information such as tasks.
  221. In Org-mode, you only have notes files. In your notes you mark entries
  222. as tasks, label them with tags and timestamps. All necessary lists
  223. like a schedule for the day, the agenda for a meeting, tasks lists
  224. selected by tags etc are created dynamically when you need them.
  225. Org-mode keeps simple things simple. When first fired up, it should
  226. feel like a straightforward, easy to use outliner. Complexity is not
  227. imposed, but a large amount of functionality is available when you need
  228. it. Org-mode can be used on different levels and in different ways, for
  229. example:
  230. * as an outline extension with visibility cycling and structure editing
  231. * as an ASCII system and table editor for taking structured notes
  232. * as an ASCII table editor with spreadsheet-like capabilities
  233. * as a TODO list editor
  234. * as a full agenda and planner with deadlines and work scheduling
  235. * as an environment to implement David Allen's GTD system
  236. * as a simple hypertext system, with HTML export
  237. * as a publishing tool to create a set of interlinked webpages
  238. Org-mode's automatic, context sensitive table editor can be
  239. integrated into any major mode by activating the minor Orgtbl-mode.
  240. There is a website for Org-mode which provides links to the newest
  241. version of Org-mode, as well as additional information, frequently asked
  242. questions (FAQ), links to tutorials etc. This page is located at
  243. `http://www.astro.uva.nl/~dominik/Tools/org/'.
  244. 
  245. File: org, Node: Installation, Next: Activation, Prev: Summary, Up: Introduction
  246. 1.2 Installation
  247. ================
  248. Important: If Org-mode is part of the Emacs distribution or an XEmacs
  249. package, please skip this section and go directly to *Note Activation::.
  250. If you have downloaded Org-mode from the Web, you must take the
  251. following steps to install it: Go into the Org-mode distribution
  252. directory and edit the top section of the file `Makefile'. You must
  253. set the name of the Emacs binary (likely either `emacs' or `xemacs'),
  254. and the paths to the directories where local Lisp and Info files are
  255. kept. If you don't have access to the system-wide directories, create
  256. your own two directories for these files, enter them into the Makefile,
  257. and make sure Emacs finds the Lisp files by adding the following line
  258. to `.emacs':
  259. (setq load-path (cons "~/path/to/lispdir" load-path))
  260. XEmacs users now need to install the file `noutline.el' from the
  261. `xemacs' subdirectory of the Org-mode distribution. Use the command:
  262. make install-noutline
  263. Now byte-compile and install the Lisp files with the shell commands:
  264. make
  265. make install
  266. If you want to install the info documentation, use this command:
  267. make install-info
  268. Then add to `.emacs':
  269. ;; This line only if org-mode is not part of the X/Emacs distribution.
  270. (require 'org-install)
  271. 
  272. File: org, Node: Activation, Next: Feedback, Prev: Installation, Up: Introduction
  273. 1.3 Activation
  274. ==============
  275. Add the following lines to your `.emacs' file. The last two lines
  276. define _global_ keys for the commands `org-store-link' and `org-agenda'
  277. - please choose suitable keys yourself.
  278. ;; The following lines are always needed. Choose your own keys.
  279. (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
  280. (define-key global-map "\C-cl" 'org-store-link)
  281. (define-key global-map "\C-ca" 'org-agenda)
  282. Furthermore, you must activate `font-lock-mode' in org-mode buffers,
  283. because significant functionality depends on font-locking being active.
  284. You can do this with either one of the following two lines (XEmacs
  285. user must use the second option):
  286. (global-font-lock-mode 1) ; for all buffers
  287. (add-hook 'org-mode-hook 'turn-on-font-lock) ; org-mode buffers only
  288. With this setup, all files with extension `.org' will be put into
  289. Org-mode. As an alternative, make the first line of a file look like
  290. this:
  291. MY PROJECTS -*- mode: org; -*-
  292. which will select Org-mode for this buffer no matter what the file's
  293. name is. See also the variable `org-insert-mode-line-in-empty-file'.
  294. 
  295. File: org, Node: Feedback, Prev: Activation, Up: Introduction
  296. 1.4 Feedback
  297. ============
  298. If you find problems with Org-mode, or if you have questions, remarks,
  299. or ideas about it, please contact the maintainer Carsten Dominik at
  300. <dominik at science dot uva dot nl>.
  301. For bug reports, please provide as much information as possible,
  302. including the version information of Emacs (`C-h v emacs-version
  303. <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
  304. Org-mode related setup in `.emacs'. If an error occurs, a backtrace
  305. can be very useful (see below on how to create one). Often a small
  306. example file helps, along with clear information about:
  307. 1. What exactly did you do?
  308. 2. What did you expect to happen?
  309. 3. What happened instead?
  310. Thank you for helping to improve this mode.
  311. How to create a useful backtrace
  312. ................................
  313. If working with Org-mode produces an error with a message you don't
  314. understand, you may have hit a bug. The best way to report this is by
  315. providing, in addition to what was mentioned above, a _Backtrace_.
  316. This is information from the built-in debugger about where and how the
  317. error occurred. Here is how to produce a useful backtrace:
  318. 1. Start a fresh Emacs or XEmacs, and make sure that it will load the
  319. original Lisp code in `org.el' instead of the compiled version in
  320. `org.elc'. The backtrace contains much more information if it is
  321. produced with uncompiled code. To do this, either rename `org.elc'
  322. to something else before starting Emacs, or ask Emacs explicitly
  323. to load `org.el' by using the command line
  324. emacs -l /path/to/org.el
  325. 2. Go to the `Options' menu and select `Enter Debugger on Error'
  326. (XEmacs has this option in the `Troubleshooting' sub-menu).
  327. 3. Do whatever you have to do to hit the error. Don't forget to
  328. document the steps you take.
  329. 4. When you hit the error, a `*Backtrace*' buffer will appear on the
  330. screen. Save this buffer to a file (for example using `C-x C-w')
  331. and attach it to your bug report.
  332. 
  333. File: org, Node: Document structure, Next: Tables, Prev: Introduction, Up: Top
  334. 2 Document Structure
  335. ********************
  336. Org-mode is based on outline mode and provides flexible commands to
  337. edit the structure of the document.
  338. * Menu:
  339. * Outlines:: Org-mode is based on outline-mode
  340. * Headlines:: How to typeset org-tree headlines
  341. * Visibility cycling:: Show and hide, much simplified
  342. * Motion:: Jumping to other headlines
  343. * Structure editing:: Changing sequence and level of headlines
  344. * Archiving:: Move done task trees to a different place
  345. * Sparse trees:: Matches embedded in context
  346. * Plain lists:: Additional structure within an entry
  347. 
  348. File: org, Node: Outlines, Next: Headlines, Prev: Document structure, Up: Document structure
  349. 2.1 Outlines
  350. ============
  351. Org-mode is implemented on top of outline-mode. Outlines allow to
  352. organize a document in a hierarchical structure, which (at least for
  353. me) is the best representation of notes and thoughts. Overview over
  354. this structure is achieved by folding (hiding) large parts of the
  355. document to show only the general document structure and the parts
  356. currently being worked on. Org-mode greatly simplifies the use of
  357. outlines by compressing the entire show/hide functionality into a
  358. single command `org-cycle', which is bound to the <TAB> key.
  359. 
  360. File: org, Node: Headlines, Next: Visibility cycling, Prev: Outlines, Up: Document structure
  361. 2.2 Headlines
  362. =============
  363. Headlines define the structure of an outline tree. The headlines in
  364. Org-mode start with one or more stars, on the left margin. For example:
  365. * Top level headline
  366. ** Second level
  367. *** 3rd level
  368. some text
  369. *** 3rd level
  370. more text
  371. * Another top level headline
  372. Some people find the many stars too noisy and would prefer an outline
  373. that has whitespace followed by a single star as headline starters.
  374. *Note Clean view:: describes a setup to realize this.
  375. 
  376. File: org, Node: Visibility cycling, Next: Motion, Prev: Headlines, Up: Document structure
  377. 2.3 Visibility cycling
  378. ======================
  379. Outlines make it possible to hide parts of the text in the buffer.
  380. Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
  381. the visibility in the buffer.
  382. `<TAB>'
  383. _Subtree cycling_: Rotate current subtree between the states
  384. ,-> FOLDED -> CHILDREN -> SUBTREE --.
  385. '-----------------------------------'
  386. The cursor must be on a headline for this to work(1). When the
  387. cursor is at the beginning of the buffer and the first line is not
  388. a headline, then <TAB> actually runs global cycling (see
  389. below)(2). Also when called with a prefix argument (`C-u <TAB>'),
  390. global cycling is invoked.
  391. `S-<TAB>'
  392. `C-u <TAB>'
  393. _Global cycling_: Rotate the entire buffer between the states
  394. ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
  395. '--------------------------------------'
  396. Note that inside tables, `S-<TAB>' jumps to the previous field.
  397. `C-c C-a'
  398. Show all.
  399. `C-c C-r'
  400. Reveal context around point, showing the current entry, the
  401. following heading and the hierarchy above. Useful for working
  402. near a location exposed by a sparse tree command (*note Sparse
  403. trees::) or an agenda command (*note Agenda commands::).
  404. `C-c C-x b'
  405. Show the current subtree in an indirect buffer(3), in a separate,
  406. dedicated frame. With positive numerical prefix N, go up to level
  407. N before selecting the subtree. With negative prefix -N, go up N
  408. levels. With `C-u' prefix, don't use the dedicated frame, but
  409. another, new frame.
  410. When Emacs first visits an Org-mode file, the global state is set to
  411. OVERVIEW, i.e. only the top level headlines are visible. This can be
  412. configured through the variable `org-startup-folded', or on a per-file
  413. basis by adding one of the following lines anywhere in the buffer:
  414. #+STARTUP: overview
  415. #+STARTUP: content
  416. #+STARTUP: showall
  417. ---------- Footnotes ----------
  418. (1) see, however, the option `org-cycle-emulate-tab'.
  419. (2) see the option `org-cycle-global-at-bob'.
  420. (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
  421. Buffers.) will contain the entire buffer, but will be narrowed to the
  422. current tree. Editing the indirect buffer will also change the
  423. original buffer, but without affecting visibility in that buffer .
  424. 
  425. File: org, Node: Motion, Next: Structure editing, Prev: Visibility cycling, Up: Document structure
  426. 2.4 Motion
  427. ==========
  428. The following commands jump to other headlines in the buffer.
  429. `C-c C-n'
  430. Next heading.
  431. `C-c C-p'
  432. Previous heading.
  433. `C-c C-f'
  434. Next heading same level.
  435. `C-c C-b'
  436. Previous heading same level.
  437. `C-c C-u'
  438. Backward to higher level heading.
  439. `C-c C-j'
  440. Jump to a different place without changing the current outline
  441. visibility. Shows the document structure in a temporary buffer,
  442. where you can use visibility cycling (<TAB>) to find your
  443. destination. After pressing <RET>, the cursor moves to the
  444. selected location in the original buffer, and the headings
  445. hierarchy above it is made visible.
  446. 
  447. File: org, Node: Structure editing, Next: Archiving, Prev: Motion, Up: Document structure
  448. 2.5 Structure editing
  449. =====================
  450. `M-<RET>'
  451. Insert new heading with same level as current. If the cursor is
  452. in a plain list item, a new item is created (*note Plain lists::).
  453. To force creation of a new headline, use a prefix arg, or first
  454. press <RET> to get to the beginning of the next line. When this
  455. command is used in the middle of a line, the line is split and the
  456. rest of the line becomes the new headline. If the command is used
  457. at the beginning of a headline, the new headline is created before
  458. the current line. If at the beginning of any other line, the
  459. content of that line is made the new heading. If the command is
  460. used at the end of a folded subtree (i.e. behind the ellipses at
  461. the end of a headline), then a headline like the current one will
  462. be inserted after the end of the subtree.
  463. `M-S-<RET>'
  464. Insert new TODO entry with same level as current heading.
  465. `M-<left>'
  466. Promote current heading by one level.
  467. `M-<right>'
  468. Demote current heading by one level.
  469. `M-S-<left>'
  470. Promote the current subtree by one level.
  471. `M-S-<right>'
  472. Demote the current subtree by one level.
  473. `M-S-<up>'
  474. Move subtree up (swap with previous subtree of same level).
  475. `M-S-<down>'
  476. Move subtree down (swap with next subtree of same level).
  477. `C-c C-x C-w'
  478. `C-c C-x C-k'
  479. Kill subtree, i.e. remove it from buffer but save in kill ring.
  480. `C-c C-x M-w'
  481. Copy subtree to kill ring.
  482. `C-c C-x C-y'
  483. Yank subtree from kill ring. This does modify the level of the
  484. subtree to make sure the tree fits in nicely at the yank position.
  485. The yank level can also be specified with a prefix arg, or by
  486. yanking after a headline marker like `****'.
  487. `C-c ^'
  488. Sort same-level entries. When there is an active region, all
  489. entries in the region will be sorted. Otherwise the children of
  490. the current headline are sorted. The command prompts for the
  491. sorting method, which can be alphabetically, numerically, by time
  492. (using the first time stamp in each entry), and each of these in
  493. reverse order. With a `C-u' prefix, sorting will be
  494. case-sensitive. With two `C-u C-u' prefixes, duplicate entries
  495. will also be removed.
  496. When there is an active region (transient-mark-mode), promotion and
  497. demotion work on all headlines in the region. To select a region of
  498. headlines, it is best to place both point and mark at the beginning of a
  499. line, mark at the beginning of the first headline, and point at the line
  500. just after the last headline to change. Note that when the cursor is
  501. inside a table (*note Tables::), the Meta-Cursor keys have different
  502. functionality.
  503. 
  504. File: org, Node: Archiving, Next: Sparse trees, Prev: Structure editing, Up: Document structure
  505. 2.6 Archiving
  506. =============
  507. When a project represented by a (sub)tree is finished, you may want to
  508. move the tree out of the way and to stop it from contributing to the
  509. agenda. Org-mode knows two ways of archiving. You can mark a tree with
  510. the ARCHIVE tag, or you can move an entire (sub)tree to a different
  511. location.
  512. * Menu:
  513. * ARCHIVE tag:: Marking a tree as inactive
  514. * Moving subtrees:: Moving a tree to an archive file
  515. 
  516. File: org, Node: ARCHIVE tag, Next: Moving subtrees, Prev: Archiving, Up: Archiving
  517. 2.6.1 The ARCHIVE tag
  518. ---------------------
  519. A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
  520. its location in the outline tree, but behaves in the following way:
  521. - It does not open when you attempt to do so with a visibility
  522. cycling command (*note Visibility cycling::). You can force
  523. cycling archived subtrees with `C-<TAB>', or by setting the option
  524. `org-cycle-open-archived-trees'. Also normal outline commands like
  525. `show-all' will open archived subtrees.
  526. - During sparse tree construction (*note Sparse trees::), matches in
  527. archived subtrees are not exposed, unless you configure the option
  528. `org-sparse-tree-open-archived-trees'.
  529. - During agenda view construction (*note Agenda views::), the
  530. content of archived trees is ignored unless you configure the
  531. option `org-agenda-skip-archived-trees'.
  532. - Archived trees are not exported (*note Exporting::), only the
  533. headline is. Configure the details using the variable
  534. `org-export-with-archived-trees'.
  535. The following commands help managing the ARCHIVE tag:
  536. `C-c C-x C-a'
  537. Toggle the ARCHIVE tag for the current headline. When the tag is
  538. set, the headline changes to a shadowish face, and the subtree
  539. below it is hidden.
  540. `C-u C-c C-x C-a'
  541. Check if any direct children of the current headline should be
  542. archived. To do this, each subtree is checked for open TODO
  543. entries. If none are found, the command offers to set the ARCHIVE
  544. tag for the child. If the cursor is _not_ on a headline when this
  545. command is invoked, the level 1 trees will be checked.
  546. `C-TAB'
  547. Cycle a tree even if it is tagged with ARCHIVE.
  548. 
  549. File: org, Node: Moving subtrees, Prev: ARCHIVE tag, Up: Archiving
  550. 2.6.2 Moving subtrees
  551. ---------------------
  552. Once an entire project is finished, you may want to move it to a
  553. different location, either in the current file, or even in a different
  554. file, the archive file.
  555. `C-c $'
  556. Archive the subtree starting at the cursor position to the location
  557. given by `org-archive-location'.
  558. `C-u C-c $'
  559. Check if any direct children of the current headline could be
  560. moved to the archive. To do this, each subtree is checked for
  561. open TODO entries. If none are found, the command offers to move
  562. it to the archive location. If the cursor is _not_ on a headline
  563. when this command is invoked, the level 1 trees will be checked.
  564. The default archive location is a file in the same directory as the
  565. current file, with the name derived by appending `_archive' to the
  566. current file name. For information and examples on how to change this,
  567. see the documentation string of the variable `org-archive-location'.
  568. 
  569. File: org, Node: Sparse trees, Next: Plain lists, Prev: Archiving, Up: Document structure
  570. 2.7 Sparse trees
  571. ================
  572. An important feature of Org-mode is the ability to construct _sparse
  573. trees_ for selected information in an outline tree. A sparse tree
  574. means that the entire document is folded as much as possible, but the
  575. selected information is made visible along with the headline structure
  576. above it(1). Just try it out and you will see immediately how it works.
  577. Org-mode contains several commands creating such trees. The most
  578. basic one is `org-occur':
  579. `C-c /'
  580. Occur. Prompts for a regexp and shows a sparse tree with all
  581. matches. If the match is in a headline, the headline is made
  582. visible. If the match is in the body of an entry, headline and
  583. body are made visible. In order to provide minimal context, also
  584. the full hierarchy of headlines above the match is shown, as well
  585. as the headline following the match. Each match is also
  586. highlighted; the highlights disappear when the bufer is changes an
  587. editing command, or by pressing `C-c C-c'. When called with a
  588. `C-u' prefix argument, previous highlights are kept, so several
  589. calls to this command can be stacked.
  590. For frequently used sparse trees of specific search strings, you can
  591. use the variable `org-agenda-custom-commands' to define fast keyboard
  592. access to specific sparse trees. These commands will then be
  593. accessible through the agenda dispatcher (*note Agenda dispatcher::).
  594. For example:
  595. (setq org-agenda-custom-commands
  596. '(("f" occur-tree "FIXME")))
  597. will define the key `C-c a f' as a shortcut for creating a sparse tree
  598. matching the string `FIXME'.
  599. Other commands use sparse trees as well. For example `C-c C-v'
  600. creates a sparse TODO tree (*note TODO basics::).
  601. To print a sparse tree, you can use the Emacs command
  602. `ps-print-buffer-with-faces' which does not print invisible parts of
  603. the document (2). Or you can use the command `C-c C-e v' to export
  604. only the visible part of the document and print the resulting file.
  605. ---------- Footnotes ----------
  606. (1) See also the variables `org-show-hierarchy-above' and
  607. `org-show-following-heading'.
  608. (2) This does not work under XEmacs, because XEmacs uses selective
  609. display for outlining, not text properties.
  610. 
  611. File: org, Node: Plain lists, Prev: Sparse trees, Up: Document structure
  612. 2.8 Plain lists
  613. ===============
  614. Within an entry of the outline tree, hand-formatted lists can provide
  615. additional structure. They also provide a way to create lists of
  616. checkboxes (*note Checkboxes::). Org-mode supports editing such lists,
  617. and the HTML exporter (*note Exporting::) does parse and format them.
  618. Org-mode knows ordered and unordered lists. Unordered list items
  619. start with `-', `+', or `*'(1) as bullets. Ordered list items start
  620. with `1.' or `1)'. Items belonging to the same list must have the same
  621. indentation on the first line. In particular, if an ordered list
  622. reaches number `10.', then the 2-digit numbers must be written
  623. left-aligned with the other numbers in the list. Indentation also
  624. determines the end of a list item. It ends before the next line that
  625. is indented like the bullet/number, or less. For example:
  626. ** Lord of the Rings
  627. My favorite scenes are (in this order)
  628. 1. The attack of the Rohirrim
  629. 2. Eowyns fight with the witch king
  630. + this was already my favorite scene in the book
  631. + I really like Miranda Otto.
  632. 3. Peter Jackson being shot by Legolas
  633. - on DVD only
  634. He makes a really funny face when it happens.
  635. But in the end, not individual scenes matter but the film as a whole.
  636. Org-mode supports these lists by tuning filling and wrapping
  637. commands to deal with them correctly(2).
  638. The following commands act on items when the cursor is in the first
  639. line of an item (the line with the bullet or number).
  640. `<TAB>'
  641. Items can be folded just like headline levels if you set the
  642. variable `org-cycle-include-plain-lists'. The level of an item is
  643. then given by the indentation of the bullet/number. Items are
  644. always subordinate to real headlines, however; the hierarchies
  645. remain completely separated.
  646. `M-<RET>'
  647. Insert new item at current level. With prefix arg, force a new
  648. heading (*note Structure editing::). If this command is used in
  649. the middle of a line, the line is _split_ and the rest of the line
  650. becomes the new item. If this command is executed in the
  651. _whitespace before a bullet or number_, the new item is created
  652. _before_ the current item. If the command is executed in the
  653. white space before the text that is part of an item but does not
  654. contain the bullet, a bullet is added to the current line.
  655. `M-S-<RET>'
  656. Insert a new item with a checkbox (*note Checkboxes::).
  657. `S-<up>'
  658. `S-<down>'
  659. Jump to the previous/next item in the current list.
  660. `M-S-<up>'
  661. `M-S-<down>'
  662. Move the item including subitems up/down (swap with previous/next
  663. item of same indentation). If the list is ordered, renumbering is
  664. automatic.
  665. `M-S-<left>'
  666. `M-S-<right>'
  667. Decrease/increase the indentation of the item, including subitems.
  668. Initially, the item tree is selected based on current indentation.
  669. When these commands are executed several times in direct
  670. succession, the initially selected region is used, even if the new
  671. indentation would imply a different hierarchy. To use the new
  672. hierarchy, break the command chain with a cursor motion or so.
  673. `C-c C-c'
  674. If there is a checkbox (*note Checkboxes::) in the item line,
  675. toggle the state of the checkbox. Otherwise, if this is an
  676. ordered list, renumber the ordered list at the cursor.
  677. ---------- Footnotes ----------
  678. (1) When using `*' as a bullet, lines must be indented or they will
  679. be seen as top-level headlines. Also, when you are hiding leading
  680. stars to get a clean outline view, plain list items starting with a
  681. star are visually indistinguishable from true headlines. In short:
  682. even though `*' is supported, it may be better not to use it for plain
  683. list items
  684. (2) Org-mode only changes the filling settings for Emacs. For
  685. XEmacs, you should use Kyle E. Jones' `filladapt.el'. To turn this on,
  686. put into `.emacs':
  687. (require 'filladapt)
  688. 
  689. File: org, Node: Tables, Next: Hyperlinks, Prev: Document structure, Up: Top
  690. 3 Tables
  691. ********
  692. Org-mode has a very fast and intuitive table editor built-in.
  693. Spreadsheet-like calculations are supported in connection with the
  694. Emacs `calc' package.
  695. * Menu:
  696. * Built-in table editor:: Simple tables
  697. * Narrow columns:: Stop wasting space in tables
  698. * Table calculations:: Compute a field from other fields
  699. * orgtbl-mode:: The table editor as minor mode
  700. * table.el:: Complex tables
  701. 
  702. File: org, Node: Built-in table editor, Next: Narrow columns, Prev: Tables, Up: Tables
  703. 3.1 The built-in table editor
  704. =============================
  705. Org-mode makes it easy to format tables in plain ASCII. Any line with
  706. `|' as the first non-white character is considered part of a table.
  707. `|' is also the column separator. A table might look like this:
  708. | Name | Phone | Age |
  709. |-------+-------+-----|
  710. | Peter | 1234 | 17 |
  711. | Anna | 4321 | 25 |
  712. A table is re-aligned automatically each time you press <TAB> or
  713. <RET> or `C-c C-c' inside the table. <TAB> also moves to the next
  714. field (<RET> to the next row) and creates new table rows at the end of
  715. the table or before horizontal lines. The indentation of the table is
  716. set by the first line. Any line starting with `|-' is considered as a
  717. horizontal separator line and will be expanded on the next re-align to
  718. span the whole table width. So, to create the above table, you would
  719. only type
  720. |Name|Phone|Age|
  721. |-
  722. and then press <TAB> to align the table and start filling in fields.
  723. When typing text into a field, Org-mode treats <DEL>, <Backspace>,
  724. and all character keys in a special way, so that inserting and deleting
  725. avoids shifting other fields. Also, when typing _immediately after the
  726. cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
  727. the field is automatically made blank. If this behavior is too
  728. unpredictable for you, configure the variables
  729. `org-enable-table-editor' and `org-table-auto-blank-field'.
  730. Creation and conversion
  731. .......................
  732. `C-c |'
  733. Convert the active region to table. If every line contains at
  734. least one TAB character, the function assumes that the material is
  735. tab separated. If not, lines are split at whitespace into fields.
  736. You can use a prefix argument to indicate the minimum number of
  737. consecutive spaces required to identify a field separator
  738. (default: just one).
  739. If there is no active region, this command creates an empty
  740. Org-mode table. But it's easier just to start typing, like
  741. `|Name|Phone|Age <RET> |- <TAB>'.
  742. Re-aligning and field motion
  743. ............................
  744. `C-c C-c'
  745. Re-align the table without moving the cursor.
  746. `<TAB>'
  747. Re-align the table, move to the next field. Creates a new row if
  748. necessary.
  749. `S-<TAB>'
  750. Re-align, move to previous field.
  751. `<RET>'
  752. Re-align the table and move down to next row. Creates a new row if
  753. necessary. At the beginning or end of a line, <RET> still does
  754. NEWLINE, so it can be used to split a table.
  755. Column and row editing
  756. ......................
  757. `M-<left>'
  758. `M-<right>'
  759. Move the current column left/right.
  760. `M-S-<left>'
  761. Kill the current column.
  762. `M-S-<right>'
  763. Insert a new column to the left of the cursor position.
  764. `M-<up>'
  765. `M-<down>'
  766. Move the current row up/down.
  767. `M-S-<up>'
  768. Kill the current row or horizontal line.
  769. `M-S-<down>'
  770. Insert a new row above (with arg: below) the current row.
  771. `C-c -'
  772. Insert a horizontal line below current row. With prefix arg, the
  773. line is created above the current line.
  774. `C-c ^'
  775. Sort the table lines in the region. The position of point
  776. indicates the column to be used for sorting, and the range of
  777. lines is the range between the nearest horizontal separator lines,
  778. or the entire table. If point is before the first column, you
  779. will be prompted for the sorting column. If there is an active
  780. region, the mark specifies the first line and the sorting column,
  781. while point should be in the last line to be included into the
  782. sorting. The command prompts for the sorting type
  783. (alphabetically, numerically, or by time). When called with a
  784. prefix argument, alphabetic sorting will be case-sensitive.
  785. Regions
  786. .......
  787. `C-c C-x M-w'
  788. Copy a rectangular region from a table to a special clipboard.
  789. Point and mark determine edge fields of the rectangle. The
  790. process ignores horizontal separator lines.
  791. `C-c C-x C-w'
  792. Copy a rectangular region from a table to a special clipboard, and
  793. blank all fields in the rectangle. So this is the "cut" operation.
  794. `C-c C-x C-y'
  795. Paste a rectangular region into a table. The upper right corner
  796. ends up in the current field. All involved fields will be
  797. overwritten. If the rectangle does not fit into the present table,
  798. the table is enlarged as needed. The process ignores horizontal
  799. separator lines.
  800. `C-c C-q'
  801. Wrap several fields in a column like a paragraph. If there is an
  802. active region, and both point and mark are in the same column, the
  803. text in the column is wrapped to minimum width for the given
  804. number of lines. A prefix ARG may be used to change the number of
  805. desired lines. If there is no region, the current field is split
  806. at the cursor position and the text fragment to the right of the
  807. cursor is prepended to the field one line down. If there is no
  808. region, but you specify a prefix ARG, the current field is made
  809. blank, and the content is appended to the field above.
  810. Calculations
  811. ............
  812. `C-c ='
  813. Install a new formula for the current column and replace current
  814. field with the result of the formula.
  815. `C-u C-c ='
  816. Install a new formula for the current field, which must be a named
  817. field. Evaluate the formula and replace the field content with the
  818. result.
  819. `C-c ''
  820. Edit all formulas associated with the current table in a separate
  821. buffer.
  822. `C-c *'
  823. Recalculate the current row by applying the stored formulas from
  824. left to right. When called with a `C-u' prefix, recalculate the
  825. entire table, starting with the first non-header line (i.e. below
  826. the first horizontal separator line). For details, see *Note
  827. Table calculations::.
  828. `C-#'
  829. Rotate the calculation mark in first column through the states `',
  830. `#', `*', `!', `$'. For the meaning of these marks see *Note
  831. Advanced features::. When there is an active region, change all
  832. marks in the region.
  833. `C-c ?'
  834. Which table column is the cursor in? Displays number >0 in echo
  835. area.
  836. `C-c +'
  837. Sum the numbers in the current column, or in the rectangle defined
  838. by the active region. The result is shown in the echo area and can
  839. be inserted with `C-y'.
  840. `S-<RET>'
  841. When current field is empty, copy from first non-empty field above.
  842. When not empty, copy current field down to next row and move cursor
  843. along with it. Depending on the variable
  844. `org-table-copy-increment', integer field values will be
  845. incremented during copy. This key is also used by CUA-mode (*note
  846. Cooperation::).
  847. Miscellaneous
  848. .............
  849. `C-c `'
  850. Edit the current field in a separate window. This is useful for
  851. fields that are not fully visible (*note Narrow columns::). When
  852. called with a `C-u' prefix, just make the full field visible, so
  853. that it can be edited in place.
  854. `C-c <TAB>'
  855. This is an alias for `C-u C-c `' to make the current field fully
  856. visible.
  857. `M-x org-table-import'
  858. Import a file as a table. The table should be TAB- or whitespace
  859. separated. Useful, for example, to import an Excel table or data
  860. from a database, because these programs generally can write
  861. TAB-separated text files. This command works by inserting the
  862. file into the buffer and then converting the region to a table.
  863. Any prefix argument is passed on to the converter, which uses it
  864. to determine the separator.
  865. `M-x org-table-export'
  866. Export the table as a TAB-separated file. Useful for data
  867. exchange with, for example, Excel or database programs.
  868. If you don't like the automatic table editor because it gets in your
  869. way on lines which you would like to start with `|', you can turn it
  870. off with
  871. (setq org-enable-table-editor nil)
  872. Then the only table command that still works is `C-c C-c' to do a
  873. manual re-align.
  874. 
  875. File: org, Node: Narrow columns, Next: Table calculations, Prev: Built-in table editor, Up: Tables
  876. 3.2 Narrow columns
  877. ==================
  878. The width of columns is automatically determined by the table editor.
  879. Sometimes a single field or a few fields need to carry more text,
  880. leading to inconveniently wide columns. To limit(1) the width of a
  881. column, one field anywhere in the column may contain just the string
  882. `<N>' where `N' is an integer specifying the width of the column in
  883. characters. The next re-align will then set the width of this column
  884. to no more than this value.
  885. |---+------------------------------| |---+--------|
  886. | | | | | <6> |
  887. | 1 | one | | 1 | one |
  888. | 2 | two | ----\ | 2 | two |
  889. | 3 | This is a long chunk of text | ----/ | 3 | This=> |
  890. | 4 | four | | 4 | four |
  891. |---+------------------------------| |---+--------|
  892. Fields that are wider become clipped and end in the string `=>'. Note
  893. that the full text is still in the buffer, it is only invisible. To
  894. see the full text, hold the mouse over the field - a tooltip window
  895. will show the full content. To edit such a field, use the command `C-c
  896. `' (that is `C-c' followed by the backquote). This will open a new
  897. window with the full field. Edit it and finish with `C-c C-c'.
  898. When visiting a file containing a table with narrowed columns, the
  899. necessary character hiding has not yet happened, and the table needs to
  900. be aligned before it looks nice. Setting the option
  901. `org-startup-align-all-tables' will realign all tables in a file upon
  902. visiting, but also slow down startup. You can also set this option on
  903. a per-file basis with:
  904. #+STARTUP: align
  905. #+STARTUP: noalign
  906. ---------- Footnotes ----------
  907. (1) This feature does not work on XEmacs.
  908. 
  909. File: org, Node: Table calculations, Next: orgtbl-mode, Prev: Narrow columns, Up: Tables
  910. 3.3 Calculations in tables
  911. ==========================
  912. The table editor makes use of the Emacs `calc' package to implement
  913. spreadsheet-like capabilities. It can also evaluate Emacs Lisp forms to
  914. derive fields from other fields. Org-mode has two levels of complexity
  915. for table calculations. On the basic level, tables do only horizontal
  916. computations, so a field can be computed from other fields _in the same
  917. row_, and Org-mode assumes that there is only one formula for each
  918. column. This is very efficient to work with and enough for many tasks.
  919. On the complex level, columns and individual fields can be named for
  920. easier referencing in formulas, individual named fields can have their
  921. own formula associated with them, and recalculation can be automated.
  922. * Menu:
  923. * Formula syntax:: How to write a formula
  924. * Lisp formulas:: An alternative way to write formulas
  925. * Column formulas:: Formulas valid for all fields in a column
  926. * Advanced features:: Field names, parameters and automatic recalc
  927. * Named-field formulas:: Formulas valid in single fields
  928. * Editing/debugging formulas:: Changing a stored formula
  929. * Appetizer:: Taste the power of calc
  930. 
  931. File: org, Node: Formula syntax, Next: Lisp formulas, Prev: Table calculations, Up: Table calculations
  932. 3.3.1 Formula syntax
  933. --------------------
  934. A formula can be any algebraic expression understood by the Emacs
  935. `calc' package. Note that `calc' has the slightly non-standard
  936. convention that `/' has lower precedence than `*', so that `a/b*c' is
  937. interpreted as `a/(b*c)'. Before evaluation by `calc-eval' (*note
  938. calc-eval: (calc)Calling Calc from Your Programs.), variable
  939. substitution takes place:
  940. $ refers to the current field
  941. $3 refers to the field in column 3 of the current row
  942. $3..$7 a vector of the fields in columns 3-7 of current row
  943. $P1..$P3 vector of column range, using column names
  944. &2 second data field above the current, in same column
  945. &5-2 vector from fifth to second field above current
  946. &III-II vector of fields between 2nd and 3rd hline above
  947. &III vector of fields between third hline above and current field
  948. $name a named field, parameter or constant
  949. The range vectors can be directly fed into the calc vector functions
  950. like `vmean' and `vsum'.
  951. `$name' is interpreted as the name of a column, parameter or
  952. constant. Constants are defined globally through the variable
  953. `org-table-formula-constants'. If you have the `constants.el' package,
  954. it will also be used to resolve constants, including natural constants
  955. like `$h' for Planck's constant, and units like `$km' for kilometers.
  956. Column names and parameters can be specified in special table lines.
  957. These are described below, see *Note Advanced features::.
  958. A formula can contain an optional mode string after a semicolon.
  959. This string consists of flags to influence calc's modes(1) during
  960. execution, e.g. `p20' to switch the internal precision to 20 digits,
  961. `n3', `s3', `e2' or `f4' to switch to normal, scientific, engineering,
  962. or fixed display format, respectively, and `D', `R', `F', and `S' to
  963. turn on degrees, radians, fraction and symbolic modes, respectively.
  964. In addition, you may provide a `printf' format specifier to reformat
  965. the final result. A few examples:
  966. $1+$2 Sum of first and second field
  967. $1+$2;%.2f Same, format result to two decimals
  968. exp($2)+exp($1) Math functions can be used
  969. $;%.1f Reformat current cell to 1 decimal
  970. ($3-32)*5/9 Degrees F -> C conversion
  971. $c/$1/$cm Hz -> cm conversion, using `constants.el'
  972. tan($1);Dp3s1 Compute in degrees, precision 3, display SCI 1
  973. sin($1);Dp3%.1e Same, but use printf specifier for display
  974. vmean($2..$7) Compute column range mean, using vector function
  975. vsum(&III) Sum numbers from 3rd hline above, up to here
  976. taylor($3,x=7,2) taylor series of $3, at x=7, second degree
  977. ---------- Footnotes ----------
  978. (1) By default, Org-mode uses the standard calc modes (precision 12,
  979. angular units degrees, fraction and symbolic modes off). The display
  980. format, however, has been changed to `(float 5)' to keep tables compact.
  981. The default settings can be configured using the variable
  982. `org-calc-default-modes'.
  983. 
  984. File: org, Node: Lisp formulas, Next: Column formulas, Prev: Formula syntax, Up: Table calculations
  985. 3.3.2 Emacs Lisp forms as formulas
  986. ----------------------------------
  987. It is also possible to write a formula in Emacs lisp; this can be useful
  988. for string manipulation and control structures. If a formula starts
  989. with a single quote followed by an opening parenthesis, then it is
  990. evaluated as a lisp form. The evaluation should return either a string
  991. or a number. Just as with `calc' formulas, you can provide a format
  992. specifier after a semicolon. A few examples:
  993. swap the first two characters of the content of column 1
  994. '(concat (substring "$1" 1 2) (substring "$1" 0 1) (substring "$1" 2))
  995. Add columns 1 and 2, equivalent to the calc's `$1+$2'
  996. '(+ $1 $2)
  997. 
  998. File: org, Node: Column formulas, Next: Advanced features, Prev: Lisp formulas, Up: Table calculations
  999. 3.3.3 Column formulas
  1000. ---------------------
  1001. To apply a formula to a field, type it directly into the field,
  1002. preceded by an equal sign, like `=$1+$2'. When you press <TAB> or
  1003. <RET> or `C-c C-c' with the cursor still in the field, the formula will
  1004. be stored as the formula for the current column, evaluated and the
  1005. current field replaced with the result. If the field contains only
  1006. `=', the previously stored formula for this column is used.
  1007. For each column, Org-mode will remember the most recently used
  1008. formula. The information is stored in a special line starting with
  1009. `#+TBLFM' directly below the table. When adding/deleting/moving
  1010. columns with the appropriate commands, the stored equations will be
  1011. modified accordingly. When a column used in a calculation is removed,
  1012. references to this column become invalid and will cause an error upon
  1013. applying the equation.
  1014. Instead of typing an equation into the field, you may also use the
  1015. command `C-c ='. It prompts for a formula (with default taken from the
  1016. `#+TBLFM:' line) and applies it to the current field. A numerical
  1017. prefix (e.g. `C-5 C-c =') will apply it to that many consecutive fields
  1018. in the current column.
  1019. To recompute all the fields in a line, use the command `C-c *'. It
  1020. re-applies all stored equations to the current row, from left to right.
  1021. With a `C-u' prefix, this will be done to every line in the table, so
  1022. use this command it you want to make sure the entire table is
  1023. up-to-date. `C-u C-c C-c' is another way to update the entire table.
  1024. Global updating does not touch the line(s) above the first horizontal
  1025. separator line, assuming that this is the table header.
  1026. 
  1027. File: org, Node: Advanced features, Next: Named-field formulas, Prev: Column formulas, Up: Table calculations
  1028. 3.3.4 Advanced features
  1029. -----------------------
  1030. If you want the recalculation of fields to happen automatically, or if
  1031. you want to be able to assign a formula to an individual field (instead
  1032. of an entire column) you need to reserve the first column of the table
  1033. for special marking characters. Here is an example of a table that
  1034. collects exam results of students and makes use of these features:
  1035. |---+---------+--------+--------+--------+-------+------|
  1036. | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
  1037. |---+---------+--------+--------+--------+-------+------|
  1038. | ! | | P1 | P2 | P3 | Tot | |
  1039. | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
  1040. | ^ | | m1 | m2 | m3 | mt | |
  1041. |---+---------+--------+--------+--------+-------+------|
  1042. | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
  1043. | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
  1044. | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
  1045. |---+---------+--------+--------+--------+-------+------|
  1046. | | Average | | | | 29.7 | |
  1047. | ^ | | | | | at | |
  1048. | $ | max=50 | | | | | |
  1049. |---+---------+--------+--------+--------+-------+------|
  1050. #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(&II);%.1f
  1051. Important: Please note that for these special tables, recalculating the
  1052. table with `C-u C-c *' will only affect rows that are marked `#' or
  1053. `*', and named fields. The column formulas are not applied in rows
  1054. with empty first field.
  1055. The marking characters have the following meaning:
  1056. `!'
  1057. The fields in this line define names for the columns, so that you
  1058. may refer to a column as `$Tot' instead of `$6'.
  1059. `^'
  1060. This row defines names for the fields _above_ the row. With such
  1061. a definition, any formula in the table may use `$m1' to refer to
  1062. the value `10'. Also, named fields can have their own formula
  1063. associated with them.
  1064. `_'
  1065. Similar to `^', but defines names for the fields in the row
  1066. _below_.
  1067. `$'
  1068. Fields in this row can define _parameters_ for formulas. For
  1069. example, if a field in a `$' row contains `max=50', then formulas
  1070. in this table can refer to the value 50 using `$max'. Parameters
  1071. work exactly like constants, only that they can be defined on a
  1072. per-table basis. Changing a parameter and then recalculating the
  1073. table can be useful.
  1074. `#'
  1075. Fields in this row are automatically recalculated when pressing
  1076. <TAB> or <RET> or `S-<TAB>' in this row. Also, this row is
  1077. selected for a global recalculation with `C-u C-c *'. Unmarked
  1078. lines will be left alone by this command.
  1079. `*'
  1080. Selects this line for global recalculation with `C-u C-c *', but
  1081. not for automatic recalculation. Use this when automatic
  1082. recalculation slows down editing too much.
  1083. `'
  1084. Unmarked lines are exempt from recalculation with `C-u C-c *'.
  1085. All lines that should be recalculated should be marked with `#' or
  1086. `*'.
  1087. 
  1088. File: org, Node: Named-field formulas, Next: Editing/debugging formulas, Prev: Advanced features, Up: Table calculations
  1089. 3.3.5 Named-field formulas
  1090. --------------------------
  1091. A named field can have its own formula associated with it. In the
  1092. example above, this is used for the `at' field that contains the
  1093. average result of the students. To enter a formula for a named field,
  1094. just type it into the buffer, preceded by `:='. Or use `C-u C-c ='.
  1095. This equation will be stored below the table like `$name=...'. Any
  1096. recalculation in the table (even if only requested for the current
  1097. line) will also update all named field formulas.
  1098. 
  1099. File: org, Node: Editing/debugging formulas, Next: Appetizer, Prev: Named-field formulas, Up: Table calculations
  1100. 3.3.6 Editing and debugging formulas
  1101. ------------------------------------
  1102. To edit a column or field formula, use the commands `C-c =' and `C-u
  1103. C-c =', respectively. The currently active expression is then
  1104. presented as default in the minibuffer, where it may be edited.
  1105. Note that making a table field blank does not remove the formula
  1106. associated with the field - during the next recalculation the field
  1107. will be filled again. To remove a formula from a field, you have to
  1108. give an empty reply when prompted for the formula, or to edit the
  1109. `#+TBLFM' line.
  1110. You may edit the `#+TBLFM' directly and re-apply the changed
  1111. equations with `C-c C-c' in that line, or with the normal recalculation
  1112. commands in the table.
  1113. In particular for large tables with many formulas, it is convenient
  1114. to use the command `C-c '' to edit the formulas of the current table in
  1115. a separate buffer. That buffer will show the formulas one per line,
  1116. and you are free to edit, add and remove formulas. Press `C-c ?' on a
  1117. `$...' expression to get information about its interpretation.
  1118. Exiting the buffer with `C-c C-c' only stores the modified formulas
  1119. below the table. Exiting with `C-u C-c C-c' also applies them to the
  1120. entire table. `C-c C-q' exits without installing the changes.
  1121. When the evaluation of a formula leads to an error, the field content
  1122. becomes the string `#ERROR'. If you would like see what is going on
  1123. during variable substitution and calculation in order to find a bug,
  1124. turn on formula debugging in the menu and repeat the calculation, for
  1125. example by pressing `C-c = <RET>' in a field. Detailed information
  1126. will be displayed.
  1127. 
  1128. File: org, Node: Appetizer, Prev: Editing/debugging formulas, Up: Table calculations
  1129. 3.3.7 Appetizer
  1130. ---------------
  1131. Finally, just to whet your appetite on what can be done with the
  1132. fantastic `calc' package, here is a table that computes the Taylor
  1133. series for a couple of functions (homework: try that with Excel :-)
  1134. |---+-------------+---+-----+--------------------------------------|
  1135. | | Func | n | x | Result |
  1136. |---+-------------+---+-----+--------------------------------------|
  1137. | # | exp(x) | 1 | x | 1 + x |
  1138. | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
  1139. | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
  1140. | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
  1141. | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
  1142. | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
  1143. |---+-------------+---+-----+--------------------------------------|
  1144. #+TBLFM: $5=taylor($2,$4,$3);n3
  1145. 
  1146. File: org, Node: orgtbl-mode, Next: table.el, Prev: Table calculations, Up: Tables
  1147. 3.4 The Orgtbl minor mode
  1148. =========================
  1149. If you like the intuitive way the Org-mode table editor works, you
  1150. might also want to use it in other modes like text-mode or mail-mode.
  1151. The minor mode Orgtbl-mode makes this possible. You can always toggle
  1152. the mode with `M-x orgtbl-mode'. To turn it on by default, for example
  1153. in mail mode, use
  1154. (add-hook 'mail-mode-hook 'turn-on-orgtbl)
  1155. 
  1156. File: org, Node: table.el, Prev: orgtbl-mode, Up: Tables
  1157. 3.5 The `table.el' package
  1158. ==========================
  1159. Complex ASCII tables with automatic line wrapping, column- and
  1160. row-spanning, and alignment can be created using the Emacs table
  1161. package by Takaaki Ota (`http://sourceforge.net/projects/table', and
  1162. also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in such a
  1163. table, Org-mode will call `table-recognize-table' and move the cursor
  1164. into the table. Inside a table, the keymap of Org-mode is inactive.
  1165. In order to execute Org-mode-related commands, leave the table.
  1166. `C-c C-c'
  1167. Recognize `table.el' table. Works when the cursor is in a
  1168. table.el table.
  1169. `C-c ~'
  1170. Insert a table.el table. If there is already a table at point,
  1171. this command converts it between the table.el format and the
  1172. Org-mode format. See the documentation string of the command
  1173. `org-convert-table' for the restrictions under which this is
  1174. possible.
  1175. 
  1176. File: org, Node: Hyperlinks, Next: TODO items, Prev: Tables, Up: Top
  1177. 4 Hyperlinks
  1178. ************
  1179. Just like HTML, Org-mode provides links inside a file, and external
  1180. links to other files, Usenet articles, emails, and much more.
  1181. * Menu:
  1182. * Link format:: How links in Org-mode are formatted
  1183. * Internal links:: Links to other places in the current file
  1184. * External links:: URL-like links to the world
  1185. * Handling links:: Creating, inserting and following
  1186. * Link abbreviations:: Shortcuts for writing complex links
  1187. * Search options:: Linking to a specific location
  1188. * Custom searches:: When the default search is not enough
  1189. * Remember:: Org-trees store quick notes
  1190. 
  1191. File: org, Node: Link format, Next: Internal links, Prev: Hyperlinks, Up: Hyperlinks
  1192. 4.1 Link format
  1193. ===============
  1194. Org-mode will recognize plain URL-like links and activate them as
  1195. clickable links. The general link format, however, looks like this:
  1196. [[link][description]] or alternatively [[link]]
  1197. Once a link in the buffer is complete (all brackets present),
  1198. Org-mode will change the display so that `description' is displayed
  1199. instead of `[[link][description]]' and `link' is displayed instead of
  1200. `[[link]]'. Links will be highlighted in the face `org-link', which by
  1201. default is an underlined face. You can directly edit the visible part
  1202. of a link. Note that this can be either the `link' part (if there is
  1203. no description) or the `description' part. To edit also the invisible
  1204. `link' part, use `C-c C-l' with the cursor on the link.
  1205. If you place the cursor at the beginning or just behind the end of
  1206. the displayed text and press <BACKSPACE>, you will remove the
  1207. (invisible) bracket at that location. This makes the link incomplete
  1208. and the internals are again displayed as plain text. Inserting the
  1209. missing bracket hides the link internals again. To show the internal
  1210. structure of all links, use the menu entry `Org->Hyperlinks->Literal
  1211. links'.
  1212. 
  1213. File: org, Node: Internal links, Next: External links, Prev: Link format, Up: Hyperlinks
  1214. 4.2 Internal links
  1215. ==================
  1216. If the link does not look like a URL, it is considered to be internal in
  1217. the current file. Links such as `[[My Target]]' or `[[My Target][Find
  1218. my target]]' lead to a text search in the current file. The link can
  1219. be followed with `C-c C-o' when the cursor is on the link, or with a
  1220. mouse click (*note Handling links::). The preferred match for such a
  1221. link is a dedicated target: the same string in double angular brackets.
  1222. Targets may be located anywhere; often it is convenient to put them
  1223. into a comment line. For example
  1224. # <<My Target>>
  1225. In HTML export (*note HTML export::), such targets will become named
  1226. anchors for direct access through `http' links(1).
  1227. If no dedicated target exists, Org-mode will search for the words in
  1228. the link. In the above example the search would be for `my target'.
  1229. Links starting with a star like `*My Target' restrict the search to
  1230. headlines. When searching, Org-mode will first try an exact match, but
  1231. then move on to more and more lenient searches. For example, the link
  1232. `[[*My Targets]]' will find any of the following:
  1233. ** My targets
  1234. ** TODO my targets are bright
  1235. ** my 20 targets are
  1236. To insert a link targeting a headline, in-buffer completion can be
  1237. used. Just type a star followed by a few optional letters into the
  1238. buffer and press `M-<TAB>'. All headlines in the current buffer will be
  1239. offered as completions. *Note Handling links::, for more commands
  1240. creating links.
  1241. Following a link pushes a mark onto Org-mode's own mark ring. You
  1242. can return to the previous position with `C-c &'. Using this command
  1243. several times in direct succession goes back to positions recorded
  1244. earlier.
  1245. * Menu:
  1246. * Radio targets:: Make targets trigger links in plain text.
  1247. * CamelCase links:: Activating CamelCase words as links
  1248. ---------- Footnotes ----------
  1249. (1) Note that text before the first headline will never be exported,
  1250. so the first such target must be after the first headline.
  1251. 
  1252. File: org, Node: Radio targets, Next: CamelCase links, Prev: Internal links, Up: Internal links
  1253. 4.2.1 Radio targets
  1254. -------------------
  1255. You can configure Org-mode to link any occurrences of certain target
  1256. names in normal text. So without explicitly creating a link, the text
  1257. connects to the target radioing its position. Radio targets are
  1258. enclosed by triple angular brackets. For example, a target `<<<My
  1259. Target>>>' causes each occurrence of `my target' in normal text to
  1260. become activated as a link. The Org-mode file is scanned automatically
  1261. for radio targets only when the file is first loaded into Emacs. To
  1262. update the target list during editing, press `C-c C-c' with the cursor
  1263. on or at a target.
  1264. 
  1265. File: org, Node: CamelCase links, Prev: Radio targets, Up: Internal links
  1266. 4.2.2 CamelCase words as links
  1267. ------------------------------
  1268. Org-mode also supports CamelCase words as links. This feature is not
  1269. turned on by default because of the inconsistencies this system suffers
  1270. from. It is also possible that this feature will disappear entirely in
  1271. a future version of Org-mode. To activate CamelCase words as links, you
  1272. need to customize the option `org-activate-links'. A CamelCase word
  1273. then leads to a text search such that `CamelCaseLink' is equivalent to
  1274. `[[camel case link]]'.
  1275. 
  1276. File: org, Node: External links, Next: Handling links, Prev: Internal links, Up: Hyperlinks
  1277. 4.3 External links
  1278. ==================
  1279. Org-mode supports links to files, websites, Usenet and email messages,
  1280. and BBDB database entries. External links are URL-like locators. They
  1281. start with a short identifying string followed by a colon. There can be
  1282. no space after the colon. The following list shows examples for each
  1283. link type.
  1284. http://www.astro.uva.nl/~dominik on the web
  1285. file:/home/dominik/images/jupiter.jpg file, absolute path
  1286. file:papers/last.pdf file, relative path
  1287. news:comp.emacs Usenet link
  1288. mailto:adent@galaxy.net Mail link
  1289. vm:folder VM folder link
  1290. vm:folder#id VM message link
  1291. vm://myself@some.where.org/folder#id VM on remote machine
  1292. wl:folder WANDERLUST folder link
  1293. wl:folder#id WANDERLUST message link
  1294. mhe:folder MH-E folder link
  1295. mhe:folder#id MH-E message link
  1296. rmail:folder RMAIL folder link
  1297. rmail:folder#id RMAIL message link
  1298. gnus:group GNUS group link
  1299. gnus:group#id GNUS article link
  1300. bbdb:Richard Stallman BBDB link
  1301. shell:ls *.org A shell command
  1302. elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
  1303. A link should be enclosed in double brackets and may contain a
  1304. descriptive text to be displayed instead of the url (*note Link
  1305. format::), for example:
  1306. [[http://www.gnu.org/software/emacs/][GNU Emacs]]
  1307. Org-mode also finds external links in the normal text and activates
  1308. them as links. If spaces must be part of the link (for example in
  1309. `bbdb:Richard Stallman'), or you need to remove ambiguities about the
  1310. end of the link, enclose them in angular brackets.
  1311. 
  1312. File: org, Node: Handling links, Next: Link abbreviations, Prev: External links, Up: Hyperlinks
  1313. 4.4 Handling links
  1314. ==================
  1315. Org-mode provides methods to create a link in the correct syntax, to
  1316. insert it into an org-mode file, and to follow the link.
  1317. `C-c l'
  1318. Store a link to the current location. This is a _global_ command
  1319. which can be used in any buffer to create a link. The link will be
  1320. stored for later insertion into an Org-mode buffer (see below).
  1321. For Org-mode files, if there is a `<<target>>' at the cursor, the
  1322. link points to the target. Otherwise it points to the current
  1323. headline. For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
  1324. the link will indicate the current article/entry. For W3 and W3M
  1325. buffers, the link goes to the current URL. For any other files,
  1326. the link will point to the file, with a search string (*note
  1327. Search options::) pointing to the contents of the current line.
  1328. If there is an active region, the selected words will form the
  1329. basis of the search string. If the automatically created link is
  1330. not working correctly or accurately enough, you can write custom
  1331. functions to select the search string and to do the search for
  1332. particular file types - see *Note Custom searches::. The key
  1333. binding `C-c l' is only a suggestion - see *Note Installation::.
  1334. `C-c C-l'
  1335. Insert a link. This prompts for a link to be inserted into the
  1336. buffer. You can just type a link, using text for an internal
  1337. link, or one of the link type prefixes mentioned in the examples
  1338. above. Through completion, all links stored during the current
  1339. session can be accessed(1). The link will be inserted into the
  1340. buffer, along with a descriptive text. Note that you don't have
  1341. to use this command to insert a link. Links in Org-mode are plain
  1342. text, and you can type or paste them straight into the buffer. By
  1343. using this command, the links are automatically enclosed in double
  1344. brackets, and you will be asked for the optional descriptive text.
  1345. If the link is a `file:' link and the linked file is located in
  1346. the same directory as the current file or a subdirectory of it, the
  1347. path of the file will be inserted relative to the current
  1348. directory.
  1349. `C-u C-c C-l'
  1350. When `C-c C-l' is called with a `C-u' prefix argument, a link to a
  1351. file will be inserted and you may use file name completion to
  1352. select the name of the file. The path to the file is inserted
  1353. relative to the directory of the current org file, if the linked
  1354. file is in the current directory or in a subdirectory of it, or if
  1355. the path is written relative to the current directory using `../'.
  1356. Otherwise an absolute path is used, if possible with `~/' for
  1357. your home directory. You can force an absolute path with two
  1358. `C-u' prefixes.
  1359. `C-c C-l with cursor on existing link'
  1360. When the cursor is on an existing link, `C-c C-l' allows you to
  1361. edit the link and description parts of the link.
  1362. `C-c C-o'
  1363. Open link at point. This will launch a web browser for URLs (using
  1364. `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
  1365. the corresponding links, and execute the command in a shell link.
  1366. When the cursor is on an internal link, this commands runs the
  1367. corresponding search. When the cursor is on a TAG list in a
  1368. headline, it creates the corresponding TAGS view. If the cursor
  1369. is on a time stamp, it compiles the agenda for that date.
  1370. Furthermore, it will visit text and remote files in `file:' links
  1371. with Emacs and select a suitable application for local non-text
  1372. files. Classification of files is based on file extension only.
  1373. See option `org-file-apps'. If you want to override the default
  1374. application and visit the file with Emacs, use a `C-u' prefix.
  1375. `mouse-2'
  1376. `mouse-1'
  1377. On links, `mouse-2' will open the link just as `C-c C-o' would.
  1378. Under Emacs 22, also `mouse-1' will follow a link.
  1379. `mouse-3'
  1380. Like `mouse-2', but force file links to be opened with Emacs, and
  1381. internal links to be displayed in another window(2).
  1382. `C-c %'
  1383. Push the current position onto the mark ring, to be able to return
  1384. easily. Commands following an internal link do this automatically.
  1385. `C-c &'
  1386. Jump back to a recorded position. A position is recorded by the
  1387. commands following internal links, and by `C-c %'. Using this
  1388. command several times in direct succession moves through a ring of
  1389. previously recorded positions.
  1390. ---------- Footnotes ----------
  1391. (1) After insertion of a stored link, the link will be removed from
  1392. the list of stored links. To keep it in the list later use, use a
  1393. triple `C-u' prefix to `C-c C-l', or configure the option
  1394. `org-keep-stored-link-after-insertion'.
  1395. (2) See the variable `org-display-internal-link-with-indirect-buffer'
  1396. 
  1397. File: org, Node: Link abbreviations, Next: Search options, Prev: Handling links, Up: Hyperlinks
  1398. 4.5 Link abbreviatons
  1399. =====================
  1400. Long URLs can be cumbersome to type, and often many similar links are
  1401. needed in a document. For this you can use link abbreviations. An
  1402. abbreviated link looks like this
  1403. [[linkword::tag][description]]
  1404. where the tag is optional. Such abbreviations are resolved according to
  1405. the information in the variable `org-link-abbrev-alist' that relates
  1406. the linkwords to replacement text. Here is an example:
  1407. (setq org-link-abbrev-alist
  1408. '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
  1409. ("google" . "http://www.google.com/search?q=")
  1410. ("ads" . "http://adsabs.harvard.edu/cgi-bin/
  1411. nph-abs_connect?author=%s&db_key=AST")))
  1412. If the replacement text contains the string `%s', it will be
  1413. replaced with the tag. Otherwise the tag will be appended to the string
  1414. in order to create the link. You may also specify a function that will
  1415. be called with the tag as the only argument to create the link.
  1416. With the above setting, you could link to a specific bug with
  1417. `[[bugzilla::129]]', search the web for OrgMode with
  1418. `[[google::OrgMode]]' and find out what the Org-mode author is doing
  1419. besides Emacs hacking with `[[ads::Dominik,C]]'.
  1420. If you need special abbreviations just for a single Org-mode buffer,
  1421. you can define them in the file with
  1422. #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
  1423. #+LINK: google http://www.google.com/search?q=%s
  1424. In-buffer completion *note Completion:: can be used after `[' to
  1425. complete link abbreviations.
  1426. 
  1427. File: org, Node: Search options, Next: Custom searches, Prev: Link abbreviations, Up: Hyperlinks
  1428. 4.6 Search options in file links
  1429. ================================
  1430. File links can contain additional information to make Emacs jump to a
  1431. particular location in the file when following a link. This can be a
  1432. line number or a search option after a double(1) colon. For example,
  1433. when the command `C-c l' creates a link (*note Handling links::) to a
  1434. file, it encodes the words in the current line as a search string that
  1435. can be used to find this line back later when following the link with
  1436. `C-c C-o'.
  1437. Here is the syntax of the different ways to attach a search to a file
  1438. link, together with an explanation:
  1439. [[file:~/code/main.c::255]]
  1440. [[file:~/xx.org::My Target]]
  1441. [[file:~/xx.org::*My Target]]
  1442. [[file:~/xx.org::/regexp/]]
  1443. `255'
  1444. Jump to line 255.
  1445. `My Target'
  1446. Search for a link target `<<My Target>>', or do a text search for
  1447. `my target', similar to the search in internal links, see *Note
  1448. Internal links::. In HTML export (*note HTML export::), such a
  1449. file link will become an HTML reference to the corresponding named
  1450. anchor in the linked file.
  1451. `*My Target'
  1452. In an Org-mode file, restrict search to headlines.
  1453. `/regexp/'
  1454. Do a regular expression search for `regexp'. This uses the Emacs
  1455. command `occur' to list all matches in a separate window. If the
  1456. target file is in Org-mode, `org-occur' is used to create a sparse
  1457. tree with the matches.
  1458. As a degenerate case, a file link with an empty file name can be used
  1459. to search the current file. For example, `[[file:::find me]]' does a
  1460. search for `find me' in the current file, just as `[[find me]]' would.
  1461. ---------- Footnotes ----------
  1462. (1) For backward compatibility, line numbers can also follow a
  1463. single colon.
  1464. 
  1465. File: org, Node: Custom searches, Next: Remember, Prev: Search options, Up: Hyperlinks
  1466. 4.7 Custom Searches
  1467. ===================
  1468. The default mechanism for creating search strings and for doing the
  1469. actual search related to a file link may not work correctly in all
  1470. cases. For example, BibTeX database files have many entries like
  1471. `year="1993"' which would not result in good search strings, because
  1472. the only unique identification for a BibTeX entry is the citation key.
  1473. If you come across such a problem, you can write custom functions to
  1474. set the right search string for a particular file type, and to do the
  1475. search for the string in the file. Using `add-hook', these functions
  1476. need to be added to the hook variables
  1477. `org-create-file-search-functions' and
  1478. `org-execute-file-search-functions'. See the docstring for these
  1479. variables for more information. Org-mode actually uses this mechanism
  1480. for BibTeX database files, and you can use the corresponding code as an
  1481. implementation example. Search for `BibTeX links' in the source file.
  1482. 
  1483. File: org, Node: Remember, Prev: Custom searches, Up: Hyperlinks
  1484. 4.8 Remember
  1485. ============
  1486. Another way to create org entries with links to other files is through
  1487. the _Remember_ package by John Wiegley. _Remember_ lets you store
  1488. quick notes with little interruption of your work flow. See
  1489. `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
  1490. information. The notes produced by _Remember_ can be stored in
  1491. different ways, and Org-mode files are a good target. Org-mode allows
  1492. you to file away notes either to a default file, or directly to the
  1493. correct location in your Org-mode outline tree. The following
  1494. customization will tell _Remember_ to use org files as target, and to
  1495. create annotations compatible with Org-mode links.
  1496. (setq org-directory "~/path/to/my/orgfiles/")
  1497. (setq org-default-notes-file "~/.notes")
  1498. (setq remember-annotation-functions '(org-remember-annotation))
  1499. (setq remember-handler-functions '(org-remember-handler))
  1500. (add-hook 'remember-mode-hook 'org-remember-apply-template)
  1501. In combination with Org-mode, you can use templates to generate
  1502. different types of remember notes. For example, if you would like to
  1503. use one template to create general TODO entries, and another one for
  1504. journal entries, you could use:
  1505. (setq org-remember-templates
  1506. '((?t "* TODO %?\n %i\n %a" "~/org/TODO.org")
  1507. (?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org")))
  1508. In these entries, the character specifies how to select the template,
  1509. the first string specifies the template, and the (optional) second
  1510. string specifies a default file (overruling `org-default-notes-file')
  1511. as a target for this note.
  1512. When you call `M-x remember' to remember something, org will prompt
  1513. for a key to select the template and then prepare the buffer like
  1514. * TODO
  1515. [[file:link to where you called remember]]
  1516. or
  1517. * [2006-03-21 Tue 15:37]
  1518. [[file:link to where you called remember]]
  1519. See the variable `org-remember-templates' for more details.
  1520. When you are finished composing a note with remember, you have to
  1521. press `C-c C-c' to file the note away. The handler first prompts for a
  1522. target file - if you press <RET>, the value of `org-default-notes-file'
  1523. is used. Then the command offers the headings tree of the selected
  1524. file. You can either immediately press <RET> to get the note appended
  1525. to the file. Or you can use vertical cursor motion (<up> and <down>)
  1526. and visibility cycling (<TAB>) to find a better place. Pressing <RET>
  1527. or <left> or <right> leads to the following result.
  1528. Cursor Key Note gets inserted
  1529. position
  1530. buffer-start <RET> as level 2 heading at end of file
  1531. on headline <RET> as sublevel of the heading at cursor
  1532. <left> as same level, before current heading
  1533. <right> as same level, after current heading
  1534. not on <RET> at cursor position, level taken from context.
  1535. headline Or use prefix arg to specify level
  1536. manually.
  1537. So a fast way to store the note is to press `C-c C-c <RET> <RET>' to
  1538. append it to the default file. Even shorter would be `C-u C-c C-c',
  1539. which does the same without even showing the tree. But with little
  1540. extra effort, you can push it directly to the correct location.
  1541. Before inserting the text into a tree, the function ensures that the
  1542. text has a headline, i.e. a first line that starts with a `*'. If not,
  1543. a headline is constructed from the current date and some additional
  1544. data. If the variable `org-adapt-indentation' is non-nil, the entire
  1545. text is also indented so that it starts in the same column as the
  1546. headline (after the asterisks).
  1547. 
  1548. File: org, Node: TODO items, Next: Timestamps, Prev: Hyperlinks, Up: Top
  1549. 5 TODO items
  1550. ************
  1551. Org-mode does not maintain TODO lists as a separate document. TODO
  1552. items are an integral part of the notes file, because TODO items
  1553. usually come up while taking notes! With Org-mode, you simply mark any
  1554. entry in a tree as being a TODO item. In this way, the information is
  1555. not duplicated, and the entire context from which the item emerged is
  1556. always present when you check.
  1557. Of course, this technique causes TODO items to be scattered
  1558. throughout your file. Org-mode provides methods to give you an
  1559. overview over all things you have to do.
  1560. * Menu:
  1561. * TODO basics:: Marking and displaying TODO entries
  1562. * TODO extensions:: Workflow and assignments
  1563. * Priorities:: Some things are more important than others
  1564. * Breaking down tasks:: Splitting a task into managable pieces
  1565. * Checkboxes:: Tick-off lists
  1566. 
  1567. File: org, Node: TODO basics, Next: TODO extensions, Prev: TODO items, Up: TODO items
  1568. 5.1 Basic TODO functionality
  1569. ============================
  1570. Any headline can become a TODO item by starting it with the word TODO,
  1571. for example:
  1572. *** TODO Write letter to Sam Fortune
  1573. The most important commands to work with TODO entries are:
  1574. `C-c C-t'
  1575. Rotate the TODO state of the current item between
  1576. ,-> (unmarked) -> TODO -> DONE --.
  1577. '--------------------------------'
  1578. The same rotation can also be done "remotely" from the timeline and
  1579. agenda buffers with the `t' command key (*note Agenda commands::).
  1580. `S-<right>'
  1581. `S-<left>'
  1582. Select the following/preceding TODO state, similar to cycling.
  1583. Mostly useful if more than two TODO states are possible (*note
  1584. TODO extensions::).
  1585. `C-c C-v'
  1586. View TODO items in a _sparse tree_ (*note Sparse trees::). Folds
  1587. the entire buffer, but shows all TODO items and the headings
  1588. hierarchy above them. With prefix arg, show also the DONE
  1589. entries. With numerical prefix N, show the tree for the Nth
  1590. keyword in the variable `org-todo-keywords'.
  1591. `C-c a t'
  1592. Show the global TODO list. This collects the TODO items from all
  1593. agenda files (*note Agenda views::) into a single buffer. The
  1594. buffer is in `agenda-mode', so there are commands to examine and
  1595. manipulate the TODO entries directly from that buffer (*note
  1596. Agenda commands::). *Note Global TODO list::, for more
  1597. information.
  1598. 
  1599. File: org, Node: TODO extensions, Next: Priorities, Prev: TODO basics, Up: TODO items
  1600. 5.2 Extended use of TODO keywords
  1601. =================================
  1602. The default implementation of TODO entries is just two states: TODO and
  1603. DONE. You can, however, use the TODO feature for more complicated
  1604. things by configuring the variables `org-todo-keywords' and
  1605. `org-todo-interpretation'. Using special setup, you can even use TODO
  1606. keywords in different ways in different org files.
  1607. Note that tags are another way to classify headlines in general and
  1608. TODO items in particular (*note Tags::).
  1609. * Menu:
  1610. * Workflow states:: From TODO to DONE in steps
  1611. * TODO types:: I do this, Fred the rest
  1612. * Per file keywords:: Different files, different requirements
  1613. 
  1614. File: org, Node: Workflow states, Next: TODO types, Prev: TODO extensions, Up: TODO extensions
  1615. 5.2.1 TODO keywords as workflow states
  1616. --------------------------------------
  1617. You can use TODO keywords to indicate different states in the process
  1618. of working on an item, for example:
  1619. (setq org-todo-keywords '("TODO" "FEEDBACK" "VERIFY" "DONE")
  1620. org-todo-interpretation 'sequence)
  1621. Changing these variables only becomes effective in a new Emacs
  1622. session. With this setup, the command `C-c C-t' will cycle an entry
  1623. from TODO to FEEDBACK, then to VERIFY, and finally to DONE. You may
  1624. also use a prefix argument to quickly select a specific state. For
  1625. example `C-3 C-c C-t' will change the state immediately to VERIFY. If
  1626. you define many keywords, you can use in-buffer completion (see *Note
  1627. Completion::) to insert these words into the buffer.
  1628. 
  1629. File: org, Node: TODO types, Next: Per file keywords, Prev: Workflow states, Up: TODO extensions
  1630. 5.2.2 TODO keywords as types
  1631. ----------------------------
  1632. The second possibility is to use TODO keywords to indicate different
  1633. types of action items. For example, you might want to indicate that
  1634. items are for "work" or "home". If you are into David Allen's _Getting
  1635. Things DONE_, you might want to use todo types `NEXTACTION', `WAITING',
  1636. `MAYBE'. Or, when you work with several people on a single project,
  1637. you might want to assign action items directly to persons, by using
  1638. their names as TODO keywords. This would be set up like this:
  1639. (setq org-todo-keywords '("Fred" "Sara" "Lucy" "Mike" "DONE")
  1640. org-todo-interpretation 'type)
  1641. In this case, different keywords do not indicate a sequence, but
  1642. rather different types. So it is normally not useful to change from
  1643. one type to another. Therefore, in this case the behavior of the
  1644. command `C-c C-t' is changed slightly(1). When used several times in
  1645. succession, it will still cycle through all names. But when you return
  1646. to the item after some time and execute `C-c C-t' again, it will switch
  1647. from each name directly to DONE. Use prefix arguments or completion to
  1648. quickly select a specific name. You can also review the items of a
  1649. specific TODO type in a sparse tree by using a numeric prefix to `C-c
  1650. C-v'. For example, to see all things Lucy has to do, you would use
  1651. `C-3 C-c C-v'. To collect Lucy's items from all agenda files into a
  1652. single buffer, you would use the prefix arg as well when creating the
  1653. global todo list: `C-3 C-c t'.
  1654. ---------- Footnotes ----------
  1655. (1) This is also true for the `t' command in the timeline and agenda
  1656. buffers.
  1657. 
  1658. File: org, Node: Per file keywords, Prev: TODO types, Up: TODO extensions
  1659. 5.2.3 Setting up TODO keywords for individual files
  1660. ---------------------------------------------------
  1661. It can be very useful to use different aspects of the TODO mechanism in
  1662. different files, which is not possible with the global settings
  1663. described above. For file-local settings, you need to add special
  1664. lines to the file which set the keywords and interpretation for that
  1665. file only. For example, to set one of the two examples discussed
  1666. above, you need one of the following lines, starting in column zero
  1667. anywhere in the file:
  1668. #+SEQ_TODO: TODO FEEDBACK VERIFY DONE
  1669. #+TYP_TODO: Fred Sara Lucy Mike DONE
  1670. To make sure you are using the correct keyword, type `#+' into the
  1671. buffer and then use `M-<TAB>' completion.
  1672. Remember that the last keyword must always mean that the item is DONE
  1673. (although you may use a different word). Also note that in each file,
  1674. only one of the two aspects of TODO keywords can be used. After
  1675. changing one of these lines, use `C-c C-c' with the cursor still in the
  1676. line to make the changes known to Org-mode(1).
  1677. If you want to use very many keywords, for example when working with
  1678. a large group of people, you may split the names over several lines:
  1679. #+TYP_TODO: Fred Sara Lucy Mike
  1680. #+TYP_TODO: Luis George Jules Jessica
  1681. #+TYP_TODO: Kim Arnold Peter
  1682. #+TYP_TODO: DONE
  1683. ---------- Footnotes ----------
  1684. (1) Org-mode parses these lines only when Org-mode is activated
  1685. after visiting a file. `C-c C-c' with the cursor in a line starting
  1686. with `#+' is simply restarting Org-mode for the current buffer.
  1687. 
  1688. File: org, Node: Priorities, Next: Breaking down tasks, Prev: TODO extensions, Up: TODO items
  1689. 5.3 Priorities
  1690. ==============
  1691. If you use Org-mode extensively to organize your work, you may end up
  1692. with a number of TODO entries so large that you'd like to prioritize
  1693. them. This can be done by placing a _priority cookie_ into the
  1694. headline, like this
  1695. *** TODO [#A] Write letter to Sam Fortune
  1696. With its standard setup, Org-mode supports priorities `A', `B', and
  1697. `C'. `A' is the highest priority. An entry without a cookie is
  1698. treated as priority `B'. Priorities make a difference only in the
  1699. agenda (*note Weekly/Daily agenda::).
  1700. `C-c ,'
  1701. Set the priority of the current headline. The command prompts for
  1702. a priority character `A', `B' or `C'. When you press <SPC>
  1703. instead, the priority cookie is removed from the headline. The
  1704. priorities can also be changed "remotely" from the timeline and
  1705. agenda buffer with the `,' command (*note Agenda commands::).
  1706. `S-<up>'
  1707. `S-<down>'
  1708. Increase/decrease priority of current headline. Note that these
  1709. keys are also used to modify time stamps (*note Creating
  1710. timestamps::). Furthermore, these keys are also used by CUA-mode
  1711. (*note Conflicts::).
  1712. 
  1713. File: org, Node: Breaking down tasks, Next: Checkboxes, Prev: Priorities, Up: TODO items
  1714. 5.4 Breaking tasks down into subtasks
  1715. =====================================
  1716. It is often advisable to break down large tasks into smaller, managable
  1717. subtasks. You can do this by creating an outline tree below a TODO
  1718. item, with detailed subtasks on the tree(1). Another possibility is
  1719. the use of checkboxes to identify (a hierarchy of) a large number of
  1720. subtasks (*note Checkboxes::).
  1721. ---------- Footnotes ----------
  1722. (1) To keep subtasks out of the global TODO list, see the
  1723. `org-agenda-todo-list-sublevels'.
  1724. 
  1725. File: org, Node: Checkboxes, Prev: Breaking down tasks, Up: TODO items
  1726. 5.5 Checkboxes
  1727. ==============
  1728. Every item in a plain list (*note Plain lists::) can be made a checkbox
  1729. by starting it with the string `[ ]'. This feature is similar to TODO
  1730. items (*note TODO items::), but more lightweight. Checkboxes are not
  1731. included into the global TODO list, so they are often great to split a
  1732. task into a number of simple steps. Or you can use them in a shopping
  1733. list. To toggle a checkbox, use `C-c C-c', or try Piotr Zielinski's
  1734. `org-mouse.el'. Here is an example of a checkbox list.
  1735. * TODO Organize party [3/6]
  1736. - call people [1/3]
  1737. - [ ] Peter
  1738. - [X] Sarah
  1739. - [ ] Sam
  1740. - [X] order food
  1741. - [ ] think about what music to play
  1742. - [X] talk to the neighbors
  1743. The `[3/6]' and `[1/3]' in the first and second line are cookies
  1744. indicating how many checkboxes are present in this entry, and how many
  1745. of them have been checked off. This can give you an idea on how many
  1746. checkboxes remain, even without opening a folded entry. The cookies
  1747. can be placed into a headline or into (the first line of) a plain list
  1748. item. Each cookie covers all checkboxes structurally below that
  1749. headline/item. You have to insert the cookie yourself by typing either
  1750. `[/]' or `[%]'. In the first case you get an `n out of m' result, in
  1751. the second case you get information about the percentage of checkboxes
  1752. checked (in the above example, this would be `[50%]' and `[33%],
  1753. respectively').
  1754. The following commands work with checkboxes:
  1755. `C-c C-c'
  1756. Toggle checkbox at point.
  1757. `C-c C-x C-b'
  1758. Toggle checkbox at point.
  1759. - If there is an active region, toggle the first checkbox in
  1760. the region and set all remaining boxes to the same status as
  1761. the first. If you want to toggle all boxes in the region
  1762. independently, use a prefix argument.
  1763. - If the cursor is in a headline, toggle checkboxes in the
  1764. region between this headline and the next (so _not_ the
  1765. entire subtree).
  1766. - If there is no active region, just toggle the checkbox at
  1767. point.
  1768. `M-S-<RET>'
  1769. Insert a new item with a checkbox. This works only if the cursor
  1770. is already in a plain list item (*note Plain lists::).
  1771. `C-c #'
  1772. Update the checkbox statistics in the current outline entry. When
  1773. called with a `C-u' prefix, update the entire file. Checkbox
  1774. statistic cookies are updated automatically if you toggle
  1775. checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'. If
  1776. you delete boxes or add/change them by hand, use this command to
  1777. get things back into synch. Or simply toggle any checkbox twice
  1778. with `C-c C-c'.
  1779. 
  1780. File: org, Node: Timestamps, Next: Tags, Prev: TODO items, Up: Top
  1781. 6 Timestamps
  1782. ************
  1783. Items can be labeled with timestamps to make them useful for project
  1784. planning.
  1785. * Menu:
  1786. * Time stamps:: Assigning a time to a tree entry
  1787. * Creating timestamps:: Commands which insert timestamps
  1788. * Custom time format:: If you cannot work with the ISO format
  1789. * Progress logging:: Documenting when what work was done.
  1790. 
  1791. File: org, Node: Time stamps, Next: Creating timestamps, Prev: Timestamps, Up: Timestamps
  1792. 6.1 Time stamps, deadlines and scheduling
  1793. =========================================
  1794. A time stamp is a specification of a date (possibly with time) in a
  1795. special format, either `<2003-09-16 Tue>' or `<2003-09-16 Tue
  1796. 09:39>'(1). A time stamp can appear anywhere in the headline or body
  1797. of an org-tree entry. Its presence allows entries to be shown on
  1798. specific dates in the agenda (*note Weekly/Daily agenda::). We
  1799. distinguish:
  1800. PLAIN TIME STAMP
  1801. A simple time stamp just assigns a date/time to an item. This is
  1802. just like writing down an appointment in a paper agenda, or like
  1803. writing down an event in a diary, when you want to take note of
  1804. when something happened. In the timeline and agenda displays, the
  1805. headline of an entry associated with a plain time stamp will be
  1806. shown exactly on that date.
  1807. * Meet Peter at the movies <2006-11-01 Wed 19:15>
  1808. INACTIVE TIME STAMP
  1809. Just like a plain time stamp, but with square brackets instead of
  1810. angular ones. These time stamps are inactive in the sense that
  1811. they do _not_ trigger an entry to show up in the agenda.
  1812. * Gillian comes late for the fifth time [2006-11-01 Wed]
  1813. TIME STAMP RANGE
  1814. Two time stamps connected by `--' denote a time range. The
  1815. headline will be shown on the first and last day of the range, and
  1816. on any dates that are displayed and fall in the range. Here is an
  1817. example:
  1818. ** Meeting in Amsterdam
  1819. <2004-08-23 Mon>--<2004-08-26 Thu>
  1820. TIME STAMP WITH SCHEDULED KEYWORD
  1821. If a time stamp is preceded by the word `SCHEDULED:', it means you
  1822. are planning to start working on that task on the given date. So
  1823. this is not about recording an event, but about planning your
  1824. work. The headline will be listed under the given date(2). In
  1825. addition, a reminder that the scheduled date has passed will be
  1826. present in the compilation for _today_, until the entry is marked
  1827. DONE. I.e., the task will automatically be forwarded until
  1828. completed.
  1829. *** TODO Call Trillian for a date on New Years Eve.
  1830. SCHEDULED: <2004-12-25 Sat>
  1831. TIME STAMP WITH DEADLINE KEYWORD
  1832. If a time stamp is preceded by the word `DEADLINE:', the task
  1833. (most likely a TODO item) is supposed to be finished on that date,
  1834. and it will be listed then. In addition, the compilation for
  1835. _today_ will carry a warning about the approaching or missed
  1836. deadline, starting `org-deadline-warning-days' before the due
  1837. date, and continuing until the entry is marked DONE. An example:
  1838. *** TODO write article about the Earth for the Guide
  1839. The editor in charge is [[bbdb:Ford Prefect]]
  1840. DEADLINE: <2004-02-29 Sun>
  1841. TIME STAMP WITH CLOSED KEYWORD
  1842. When `org-log-done' is non-nil, Org-mode will automatically insert
  1843. a special time stamp each time a TODO entry is marked done (*note
  1844. Progress logging::). This time stamp is enclosed in square
  1845. brackets instead of angular brackets.
  1846. TIME RANGE WITH CLOCK KEYWORD
  1847. When using the clock to time the work that is being done on
  1848. specific items, time ranges preceded by the CLOCK keyword are
  1849. inserted automatically into the file. The time stamps are
  1850. enclosed in square brackets instead of angular brackets. *Note
  1851. Clocking work time::.
  1852. ---------- Footnotes ----------
  1853. (1) This is the standard ISO date/time format. If you cannot get
  1854. used to these, see *Note Custom time format::
  1855. (2) It will still be listed on that date after it has been marked
  1856. DONE. If you don't like this, set the variable
  1857. `org-agenda-skip-scheduled-if-done'.
  1858. 
  1859. File: org, Node: Creating timestamps, Next: Custom time format, Prev: Time stamps, Up: Timestamps
  1860. 6.2 Creating timestamps
  1861. =======================
  1862. For Org-mode to recognize time stamps, they need to be in the specific
  1863. format. All commands listed below produce time stamps in the correct
  1864. format.
  1865. `C-c .'
  1866. Prompt for a date and insert a corresponding time stamp. When the
  1867. cursor is at a previously used time stamp, it is updated to NOW.
  1868. When this command is used twice in succession, a time range is
  1869. inserted.
  1870. `C-u C-c .'
  1871. Like `C-c .', but use the alternative format which contains date
  1872. and time. The default time can be rounded to multiples of 5
  1873. minutes, see the option `org-time-stamp-rounding-minutes'.
  1874. `C-c !'
  1875. Like `C-c .', but insert an inactive time stamp not triggering the
  1876. agenda.
  1877. `C-c <'
  1878. Insert a time stamp corresponding to the cursor date in the
  1879. Calendar.
  1880. `C-c >'
  1881. Access the Emacs calendar for the current date. If there is a
  1882. timestamp in the current line, goto the corresponding date instead.
  1883. `C-c C-o'
  1884. Access the agenda for the date given by the time stamp or -range at
  1885. point (*note Weekly/Daily agenda::).
  1886. `C-c C-d'
  1887. Insert `DEADLINE' keyword along with a stamp. The insertion will
  1888. happen in the line directly following the headline.
  1889. `C-c C-w'
  1890. Create a sparse tree with all deadlines that are either past-due,
  1891. or which will become due within `org-deadline-warning-days'. With
  1892. `C-u' prefix, show all deadlines in the file. With a numeric
  1893. prefix, check that many days. For example, `C-1 C-c C-w' shows
  1894. all deadlines due tomorrow.
  1895. `C-c C-s'
  1896. Insert `SCHEDULED' keyword along with a stamp. The insertion will
  1897. happen in the line directly following the headline. Any CLOSED
  1898. timestamp will be removed.
  1899. `S-<left>'
  1900. `S-<right>'
  1901. Change date at cursor by one day. These key bindings conflict with
  1902. CUA-mode (*note Conflicts::).
  1903. `S-<up>'
  1904. `S-<down>'
  1905. Change the item under the cursor in a timestamp. The cursor can
  1906. be on a year, month, day, hour or minute. Note that if the cursor
  1907. is in a headline and not at a time stamp, these same keys modify
  1908. the priority of an item. (*note Priorities::). The key bindings
  1909. also conflict with CUA-mode (*note Conflicts::).
  1910. `C-c C-y'
  1911. Evaluate a time range by computing the difference between start and
  1912. end. With prefix arg, insert result after the time range (in a
  1913. table: into the following column).
  1914. * Menu:
  1915. * The date/time prompt:: How org-mode helps you entering date and time
  1916. 
  1917. File: org, Node: The date/time prompt, Prev: Creating timestamps, Up: Creating timestamps
  1918. 6.2.1 The date/time prompt
  1919. --------------------------
  1920. When Org-mode prompts for a date/time, the prompt suggests to enter an
  1921. ISO date. But it will in fact accept any string containing some date
  1922. and/or time information. You can, for example, use `C-y' to paste a
  1923. (possibly multi-line) string copied from an email message. Org-mode
  1924. will find whatever information is in there and will replace anything not
  1925. specified with the current date and time. For example:
  1926. 3-2-5 --> 2003-02-05
  1927. feb 15 --> currentyear-02-15
  1928. sep 12 9 --> 2009-09-12
  1929. 12:45 --> today 12:45
  1930. 22 sept 0:34 --> currentyear-09-22 0:34
  1931. 12 --> currentyear-currentmonth-12
  1932. Fri --> nearest Friday (today or later)
  1933. +4 --> 4 days from now (if +N is the only thing given)
  1934. The function understands English month and weekday abbreviations. If
  1935. you want to use unabbreviated names and/or other languages, configure
  1936. the variables `parse-time-months' and `parse-time-weekdays'.
  1937. Parallel to the minibuffer prompt, a calendar is popped up(1). You
  1938. can control the calendar fully from the minibuffer:
  1939. `<'
  1940. Scroll calendar backwards by one month.
  1941. `>'
  1942. Scroll calendar forwards by one month.
  1943. `mouse-1'
  1944. Select date by clicking on it.
  1945. `S-<right>'
  1946. One day forward.
  1947. `S-<left>'
  1948. One day back.
  1949. `S-<down>'
  1950. One week forward.
  1951. `S-<up>'
  1952. One week back.
  1953. `M-S-<right>'
  1954. One month forward.
  1955. `M-S-<left>'
  1956. One month back.
  1957. `<RET>'
  1958. Choose date in calendar (only if nothing was typed into
  1959. minibuffer).
  1960. ---------- Footnotes ----------
  1961. (1) If you don't need/want the calendar, configure the variable
  1962. `org-popup-calendar-for-date-prompt'.
  1963. 
  1964. File: org, Node: Custom time format, Next: Progress logging, Prev: Creating timestamps, Up: Timestamps
  1965. 6.3 Custom time format
  1966. ======================
  1967. Org-mode uses the standard ISO notation for dates and times as it is
  1968. defined in ISO 8601. If you cannot get used to this and require another
  1969. representation of date and time to keep you happy, you can get it by
  1970. customizing the variables `org-display-custom-times' and
  1971. `org-time-stamp-custom-formats'.
  1972. `C-c C-x C-t'
  1973. Toggle the display of custom formats for dates and times.
  1974. Org-mode needs the default format for scanning, so the custom date/time
  1975. format does not _replace_ the default format - instead it is put _over_
  1976. the default format using text properties. This has the following
  1977. consequences:
  1978. * You cannot place the cursor onto a time stamp anymore, only before
  1979. or after.
  1980. * The `S-<up>/<down>' keys can no longer be used to adjust each
  1981. component of a time stamp. If the cursor is at the beginning of
  1982. the stamp, `S-<up>/<down>' will change the stamp by one day, just
  1983. like `S-<left>/<right>'. At the end of the stamp, the time will
  1984. be changed by one minute.
  1985. * When you delete a time stamp character-by-character, it will only
  1986. disappear from the buffer after _all_ (invisible) characters
  1987. belonging to the ISO timestamp have been removed.
  1988. * If the custom time stamp format is longer than the default and you
  1989. are using dates in tables, table alignment will be messed up. If
  1990. the custom format is shorter, things do work as expected.
  1991. 
  1992. File: org, Node: Progress logging, Prev: Custom time format, Up: Timestamps
  1993. 6.4 Progress Logging
  1994. ====================
  1995. Org-mode can automatically record a time stamp when you mark a TODO item
  1996. as DONE. You can also measure precisely the time you spent on specific
  1997. items in a project by starting and stopping a clock when you start and
  1998. stop working on an aspect of a project.
  1999. * Menu:
  2000. * Closing items:: When was this entry marked DONE?
  2001. * Clocking work time:: When exactly did you work on this item?
  2002. 
  2003. File: org, Node: Closing items, Next: Clocking work time, Prev: Progress logging, Up: Progress logging
  2004. 6.4.1 Closing items
  2005. -------------------
  2006. If you want to keep track of _when_ a certain TODO item was finished,
  2007. turn on logging with
  2008. (setq org-log-done t)
  2009. Then each time you turn a TODO entry into DONE using either `C-c C-t'
  2010. in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
  2011. [timestamp]' will be inserted just after the headline. If you turn the
  2012. entry back into a TODO item again through further state cycling, that
  2013. line will be removed again. In the timeline (*note Timeline::) and in
  2014. the agenda (*note Weekly/Daily agenda::), you can then use the `l' key
  2015. to display the TODO items closed on each day, giving you an overview of
  2016. what has been done on a day. See the variable `org-log-done' for the
  2017. possibility to record an additional note together with a timestamp.
  2018. 
  2019. File: org, Node: Clocking work time, Prev: Closing items, Up: Progress logging
  2020. 6.4.2 Clocking work time
  2021. ------------------------
  2022. Org-mode allows you to clock the time you spent on specific tasks in a
  2023. project. When you start working on an item, you can start the clock.
  2024. When you stop working on that task, or when you mark the task done, the
  2025. clock is stopped and the corresponding time interval is recorded. It
  2026. also computes the total time spent on each subtree of a project.
  2027. `C-c C-x C-i'
  2028. Start the clock on the current item (clock-in). This inserts the
  2029. CLOCK keyword together with a timestamp.
  2030. `C-c C-x C-o'
  2031. Stop the clock (clock-out). The inserts another timestamp at the
  2032. same location where the clock was last started. It also directly
  2033. computes the resulting time in inserts it after the time range as
  2034. `=> HH:MM'. See the variable `org-log-done' for the possibility to
  2035. record an additional note together with the clock-out time stamp.
  2036. `C-c C-y'
  2037. Recompute the time interval after changing one of the time stamps.
  2038. This is only necessary if you edit the time stamps directly. If
  2039. you change them with `S-<cursor>' keys, the update is automatic.
  2040. `C-c C-t'
  2041. Changing the TODO state of an item to DONE automatically stops the
  2042. clock if it is running in this same item.
  2043. `C-c C-x C-x'
  2044. Cancel the current clock. This is useful if a clock was started by
  2045. mistake, or if you ended up working on something else.
  2046. `C-c C-x C-d'
  2047. Display time summaries for each subtree in the current buffer.
  2048. This puts overlays at the end of each headline, showing the total
  2049. time recorded under that heading, including the time of any
  2050. subheadings. You can use visibility cycling to study the tree, but
  2051. the overlays disappear when you change the buffer (see variable
  2052. `org-remove-highlights-with-change') or press `C-c C-c'.
  2053. `C-c C-x C-r'
  2054. Insert a dynamic block (*note Dynamic blocks::) containing a clock
  2055. report as an org-mode table into the current file.
  2056. #+BEGIN: clocktable :maxlevel 2 :emphasize nil
  2057. #+END: clocktable
  2058. If such a block already exists, its content is replaced by the new
  2059. table. The `BEGIN' line can specify options:
  2060. :maxlevels Maximum level depth to which times are listed in the table.
  2061. :emphasize When `t', emphasize level one and level two items
  2062. :block The time block to consider. This block is specified relative
  2063. to the current time and may be any of these keywords:
  2064. `today', `yesterday', `thisweek', `lastweek',
  2065. `thismonth', `lastmonth', `thisyear', or `lastyear'.
  2066. :tstart A time string specifying when to start considering times
  2067. :tend A time string specifying when to stop considering times
  2068. So to get a clock summary for the current day, you could write
  2069. #+BEGIN: clocktable :maxlevel 2 :block today
  2070. #+END: clocktable
  2071. and to use a specific time range you could write(1)
  2072. #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
  2073. :tend "<2006-08-10 Thu 12:00>"
  2074. #+END: clocktable
  2075. `C-u C-c C-x C-u'
  2076. Update all dynamic blocks (*note Dynamic blocks::). This is
  2077. useful if you have several clocktable blocks in a buffer.
  2078. The `l' key may be used in the timeline (*note Timeline::) and in
  2079. the agenda (*note Weekly/Daily agenda::) to show which tasks have been
  2080. worked on or closed during a day.
  2081. ---------- Footnotes ----------
  2082. (1) Note that all parameters must be specified in a single line -
  2083. the line is broken here only to fit it onto the manual.
  2084. 
  2085. File: org, Node: Tags, Next: Agenda views, Prev: Timestamps, Up: Top
  2086. 7 Tags
  2087. ******
  2088. If you wish to implement a system of labels and contexts for
  2089. cross-correlating information, an excellent way is to assign tags to
  2090. headlines. Org-mode has extensive support for using tags.
  2091. Every headline can contain a list of tags, at the end of the
  2092. headline. Tags are normal words containing letters, numbers, `_', and
  2093. `@'. Tags must be preceded and followed by a single colon; like
  2094. `:WORK:'. Several tags can be specified like `:WORK:URGENT:'.
  2095. * Menu:
  2096. * Tag inheritance:: Tags use the tree structure of the outline
  2097. * Setting tags:: How to assign tags to a headline
  2098. * Tag searches:: Searching for combinations of tags
  2099. 
  2100. File: org, Node: Tag inheritance, Next: Setting tags, Prev: Tags, Up: Tags
  2101. 7.1 Tag inheritance
  2102. ===================
  2103. Tags make use of the hierarchical structure of outline trees. If a
  2104. heading has a certain tag, all subheadings will inherit the tag as
  2105. well. For example, in the list
  2106. * Meeting with the French group :WORK:
  2107. ** Summary by Frank :BOSS:NOTES:
  2108. *** TODO Prepare slides for him :ACTION:
  2109. the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
  2110. `:ACTION:'. When executing tag searches and Org-mode finds that a
  2111. certain headline matches the search criterion, it will not check any
  2112. sublevel headline, assuming that these likely also match, and that the
  2113. list of matches can become very long. This may not be what you want,
  2114. however, and you can influence inheritance and searching using the
  2115. variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
  2116. 
  2117. File: org, Node: Setting tags, Next: Tag searches, Prev: Tag inheritance, Up: Tags
  2118. 7.2 Setting tags
  2119. ================
  2120. Tags can simply be typed into the buffer at the end of a headline.
  2121. After a colon, `M-<TAB>' offers completion on tags. There is also a
  2122. special command for inserting tags:
  2123. `C-c C-c'
  2124. Enter new tags for the current headline. Org-mode will either
  2125. offer completion or a special single-key interface for setting
  2126. tags, see below. After pressing <RET>, the tags will be inserted
  2127. and aligned to `org-tags-column'. When called with a `C-u'
  2128. prefix, all tags in the current buffer will be aligned to that
  2129. column, just to make things look nice. TAGS are automatically
  2130. realigned after promotion, demotion, and TODO state changes (*note
  2131. TODO basics::).
  2132. Org will support tag insertion based on a _list of tags_. By
  2133. default this list is constructed dynamically, containing all tags
  2134. currently used in the buffer. You may also globally specify a hard list
  2135. of tags with the variable `org-tag-alist'. Finally you can set the
  2136. default tags for a given file with lines like
  2137. #+TAGS: @WORK @HOME @TENNISCLUB
  2138. #+TAGS: Laptop Car PC Sailboat
  2139. If you have globally defined your preferred set of tags using the
  2140. variable `org-tag-alist', but would like to use a dynamic tag list in a
  2141. specific file: Just add an empty TAGS option line to that file:
  2142. #+TAGS:
  2143. The default support method for entering tags is minibuffer
  2144. completion. However, Org-mode also implements a much better method:
  2145. _fast tag selection_. This method allows to select and deselect tags
  2146. with a single key per tag. To function efficiently, you should assign
  2147. unique keys to most tags. This can be done globally with
  2148. (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
  2149. or on a per-file basis with
  2150. #+TAGS: @WORK(w) @HOME(h) @TENNISCLUB(t) Laptop(l) PC(p)
  2151. You can also group together tags that are mutually exclusive. With
  2152. curly braces(1)
  2153. #+TAGS: { @WORK(w) @HOME(h) @TENNISCLUB(t) } Laptop(l) PC(p)
  2154. you indicate that at most one of `@WORK', `@HOME', and `@TENNISCLUB'
  2155. should be selected.
  2156. Don't forget to press `C-c C-c' with the cursor in one of these lines
  2157. to activate any changes.
  2158. If at least one tag has a selection key, pressing `C-c C-c' will
  2159. automatically present you with a special interface, listing inherited
  2160. tags, the tags of the current headline, and a list of all legal tags
  2161. with corresponding keys(2). In this interface, you can use the
  2162. following keys:
  2163. `a-z...'
  2164. Pressing keys assigned to tags will add or remove them from the
  2165. list of tags in the current line. Selecting a tag in a group of
  2166. mutually exclusive tags will turn off any other tags from that
  2167. group.
  2168. `<TAB>'
  2169. Enter a tag in the minibuffer, even if the tag is not in the
  2170. predefined list. You will be able to complete on all tags present
  2171. in the buffer.
  2172. `<SPC>'
  2173. Clear all tags for this line.
  2174. `<RET>'
  2175. Accept the modified set.
  2176. `C-g'
  2177. Abort without installing changes.
  2178. `q'
  2179. If `q' is not assigned to a tag, it aborts like `C-g'.
  2180. `!'
  2181. Turn off groups of mutually exclusive tags. Use this to (as an
  2182. exception) assign several tags from such a group.
  2183. `C-c'
  2184. Toggle auto-exit after the next change (see below).
  2185. This method lets you assign tags to a headline with very few keys. With
  2186. the above setup, you could clear the current tags and set `@HOME',
  2187. `Laptop' and `PC' tags with just the following keys: `C-c C-c <SPC> h l
  2188. p <RET>'. Switching from `@HOME' to `@WORK' would be done with `C-c
  2189. C-c w <RET>' or alternatively with `C-c C-c C-c w'. Adding the
  2190. non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
  2191. <RET> <RET>'.
  2192. If you find that most of the time, you need only a single keypress to
  2193. modify your list of tags, set the variable
  2194. `org-fast-tag-selection-single-key'. Then you no longer have to press
  2195. <RET> to exit fast tag selection - it will immediately exit after the
  2196. first change. If you then occasionally need more keys, press `C-c' to
  2197. turn off auto-exit for the current tag selection process.
  2198. ---------- Footnotes ----------
  2199. (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
  2200. respectively. Several groups are allowed.
  2201. (2) Keys will automatically be assigned to tags which have no
  2202. configured keys.
  2203. 
  2204. File: org, Node: Tag searches, Prev: Setting tags, Up: Tags
  2205. 7.3 Tag searches
  2206. ================
  2207. Once a tags system has been set up, it can be used to collect related
  2208. information into special lists.
  2209. `C-c \'
  2210. Create a sparse tree with all headlines matching a tags search.
  2211. With a `C-u' prefix argument, ignore headlines that are not a TODO
  2212. line.
  2213. `C-c a m'
  2214. Create a global list of tag matches from all agenda files. *Note
  2215. Matching headline tags::.
  2216. `C-c a M'
  2217. Create a global list of tag matches from all agenda files, but
  2218. check only TODO items and force checking subitems (see variable
  2219. `org-tags-match-list-sublevels').
  2220. A tags search string can use Boolean operators `&' for AND and `|'
  2221. for OR. `&' binds more strongly than `|'. Parenthesis are currently
  2222. not implemented. A tag may also be preceded by `-', to select against
  2223. it, and `+' is syntactic sugar for positive selection. The AND
  2224. operator `&' is optional when `+' or `-' is present. Examples:
  2225. `+WORK-BOSS'
  2226. Select headlines tagged `:WORK:', but discard those also tagged
  2227. `:BOSS:'.
  2228. `WORK|LAPTOP'
  2229. Selects lines tagged `:WORK:' or `:LAPTOP:'.
  2230. `WORK|LAPTOP&NIGHT'
  2231. Like before, but require the `:LAPTOP:' lines to be tagged also
  2232. `NIGHT'.
  2233. If you are using multi-state TODO keywords (*note TODO
  2234. extensions::), it can be useful to also match on the TODO keyword.
  2235. This can be done by adding a condition after a slash to a tags match.
  2236. The syntax is similar to the tag matches, but should be applied with
  2237. consideration: For example, a positive selection on several TODO
  2238. keywords can not meaningfully be combined with boolean AND. However,
  2239. _negative selection_ combined with AND can be meaningful. To make sure
  2240. that only lines are checked that actually have any TODO keyword, use
  2241. `C-c a M', or equivalently start the todo part after the slash with `!'.
  2242. Examples:
  2243. `WORK/WAITING'
  2244. Select `:WORK:'-tagged TODO lines with the specific TODO keyword
  2245. `WAITING'.
  2246. `WORK/!-WAITING-NEXT'
  2247. Select `:WORK:'-tagged TODO lines that are neither `WAITING' nor
  2248. `NEXT'
  2249. `WORK/+WAITING|+NEXT'
  2250. Select `:WORK:'-tagged TODO lines that are either `WAITING' or
  2251. `NEXT'.
  2252. Any element of the tag/todo match can be a regular expression - in
  2253. this case it must be enclosed in curly braces. For example,
  2254. `WORK+{^BOSS.*}' matches headlines that contain the tag `WORK' and any
  2255. tag starting with `BOSS'.
  2256. You can also require a headline to be of a certain level, by writing
  2257. instead of any TAG an expression like `LEVEL=3'. For example, a search
  2258. `+LEVEL=3+BOSS/-DONE' lists all level three headlines that have the tag
  2259. BOSS and are _not_ marked witht the todo keyword DONE.
  2260. 
  2261. File: org, Node: Agenda views, Next: Embedded LaTeX, Prev: Tags, Up: Top
  2262. 8 Agenda Views
  2263. **************
  2264. Due to the way Org-mode works, TODO items, time-stamped items, and
  2265. tagged headlines can be scattered throughout a file or even a number of
  2266. files. To get an overview over open action items, or over events that
  2267. are important for a particular date, this information must be collected,
  2268. sorted and displayed in an organized way.
  2269. Org-mode can select items based on various criteria, and display them
  2270. in a separate buffer. Six different view types are provided:
  2271. * an _agenda_ that is like a calendar and shows information for
  2272. specific dates,
  2273. * a _TODO list_ that covers all unfinished action items,
  2274. * a _tags view_, showings headlines based on the tags associated
  2275. them,
  2276. * a _timeline view_ that shows all events in a single Org-mode file,
  2277. in time-sorted view,
  2278. * a _stuck projects view_ showing projects that currently don't move
  2279. along, and
  2280. * _custom views_ that are special tag/keyword searches and
  2281. combinations of different views.
  2282. The extracted information is displayed in a special _agenda buffer_.
  2283. This buffer is read-only, but provides commands to visit the
  2284. corresponding locations in the original Org-mode files, and even to
  2285. edit these files remotely.
  2286. Two variables control how the agenda buffer is displayed and whether
  2287. the window configuration is restored when the agenda exits:
  2288. `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
  2289. * Menu:
  2290. * Agenda files:: Files being searched for agenda information
  2291. * Agenda dispatcher:: Keyboard access to agenda views
  2292. * Built-in agenda views:: What is available out of the box?
  2293. * Presentation and sorting:: How agenda items are prepared for display
  2294. * Agenda commands:: Remote editing of org trees
  2295. * Custom agenda views:: Defining special searches and views
  2296. 
  2297. File: org, Node: Agenda files, Next: Agenda dispatcher, Prev: Agenda views, Up: Agenda views
  2298. 8.1 Agenda files
  2299. ================
  2300. The information to be shown is collected from all _agenda files_, the
  2301. files listed in the variable `org-agenda-files'(1). Thus even if you
  2302. only work with a single Org-mode file, this file should be put into
  2303. that list(2). You can customize `org-agenda-files', but the easiest
  2304. way to maintain it is through the following commands
  2305. `C-c ['
  2306. Add current file to the list of agenda files. The file is added to
  2307. the front of the list. If it was already in the list, it is moved
  2308. to the front. With prefix arg, file is added/moved to the end.
  2309. `C-c ]'
  2310. Remove current file from the list of agenda files.
  2311. `C-,'
  2312. Cycle through agenda file list, visiting one file after the other.
  2313. The Org menu contains the current list of files and can be used to
  2314. visit any of them.
  2315. ---------- Footnotes ----------
  2316. (1) If the value of that variable is not a list, but a single file
  2317. name, then the list of agenda files will be maintained in that external
  2318. file.
  2319. (2) When using the dispatcher, pressing `1' before selecting a
  2320. command will actually limit the command to the current file, and ignore
  2321. `org-agenda-files' until the next dispatcher command.
  2322. 
  2323. File: org, Node: Agenda dispatcher, Next: Built-in agenda views, Prev: Agenda files, Up: Agenda views
  2324. 8.2 The agenda dispatcher
  2325. =========================
  2326. The views are created through a dispatcher that should be bound to a
  2327. global key, for example `C-c a' (*note Installation::). In the
  2328. following we will assume that `C-c a' is indeed how the dispatcher is
  2329. accessed and list keyboard access to commands accordingly. After
  2330. pressing `C-c a', an additional letter is required to execute a
  2331. command. The dispatcher offers the following default commands:
  2332. `a'
  2333. Create the calendar-like agenda (*note Weekly/Daily agenda::).
  2334. `t / T'
  2335. Create a list of all TODO items (*note Global TODO list::).
  2336. `m / M'
  2337. Create a list of headlines matching a TAGS expression (*note
  2338. Matching headline tags::).
  2339. `L'
  2340. Create the timeline view for the current buffer (*note Timeline::).
  2341. `# / !'
  2342. Create a list of stuck projects (*note Stuck projects::).
  2343. `1'
  2344. Restrict an agenda command to the current buffer. After pressing
  2345. `1', you still need to press the character selecting the command.
  2346. `0'
  2347. If there is an active region, restrict the following agenda
  2348. command to the region. Otherwise, restrict it to the current
  2349. subtree. After pressing `0', you still need to press the
  2350. character selecting the command.
  2351. You can also define custom commands that will be accessible through
  2352. the dispatcher, just like the default commands. This includes the
  2353. possibility to create extended agenda buffers that contain several
  2354. blocks together, for example the weekly agenda, the global TODO list and
  2355. a number of special tags matches. *Note Custom agenda views::.
  2356. 
  2357. File: org, Node: Built-in agenda views, Next: Presentation and sorting, Prev: Agenda dispatcher, Up: Agenda views
  2358. 8.3 The built-in agenda views
  2359. =============================
  2360. In this section we describe the built-in views.
  2361. * Menu:
  2362. * Weekly/Daily agenda:: The calendar page with current tasks
  2363. * Global TODO list:: All unfinished action items
  2364. * Matching headline tags:: Structured information with fine-tuned search
  2365. * Timeline:: Time-sorted view for single file
  2366. * Stuck projects:: Find projects you need to review
  2367. 
  2368. File: org, Node: Weekly/Daily agenda, Next: Global TODO list, Prev: Built-in agenda views, Up: Built-in agenda views
  2369. 8.3.1 The weekly/daily agenda
  2370. -----------------------------
  2371. The purpose of the weekly/daily _agenda_ is to act like a page of a
  2372. paper agenda, showing all the tasks for the current week or day.
  2373. `C-c a a'
  2374. Compile an agenda for the current week from a list of org files.
  2375. The agenda shows the entries for each day. With a `C-u' prefix (or
  2376. when the variable `org-agenda-include-all-todo' is `t'), all
  2377. unfinished TODO items (including those without a date) are also
  2378. listed at the beginning of the buffer, before the first date.
  2379. Remote editing from the agenda buffer means, for example, that you
  2380. can change the dates of deadlines and appointments from the agenda
  2381. buffer. The commands available in the Agenda buffer are listed in
  2382. *Note Agenda commands::.
  2383. Calendar/Diary integration
  2384. ..........................
  2385. Emacs contains the calendar and diary by Edward M. Reingold. The
  2386. calendar displays a three-month calendar with holidays from different
  2387. countries and cultures. The diary allows you to keep track of
  2388. anniversaries, lunar phases, sunrise/set, recurrent appointments
  2389. (weekly, monthly) and more. In this way, it is quite complementary to
  2390. Org-mode. It can be very useful to combine output from Org-mode with
  2391. the diary.
  2392. In order to include entries from the Emacs diary into Org-mode's
  2393. agenda, you only need to customize the variable
  2394. (setq org-agenda-include-diary t)
  2395. After that, everything will happen automatically. All diary entries
  2396. including holidays, anniversaries etc will be included in the agenda
  2397. buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
  2398. the agenda buffer to jump to the diary file in order to edit existing
  2399. diary entries. The `i' command to insert new entries for the current
  2400. date works in the agenda buffer, as well as the commands `S', `M', and
  2401. `C' to display Sunrise/Sunset times, show lunar phases and to convert
  2402. to other calendars, respectively. `c' can be used to switch back and
  2403. forth between calendar and agenda.
  2404. 
  2405. File: org, Node: Global TODO list, Next: Matching headline tags, Prev: Weekly/Daily agenda, Up: Built-in agenda views
  2406. 8.3.2 The global TODO list
  2407. --------------------------
  2408. The global TODO list contains all unfinished TODO items, formatted and
  2409. collected into a single place.
  2410. `C-c a t'
  2411. Show the global TODO list. This collects the TODO items from all
  2412. agenda files (*note Agenda views::) into a single buffer. The
  2413. buffer is in `agenda-mode', so there are commands to examine and
  2414. manipulate the TODO entries directly from that buffer (*note
  2415. Agenda commands::).
  2416. `C-c a T'
  2417. Like the above, but allows selection of a specific TODO keyword.
  2418. You can also do this by specifying a prefix argument to `C-c a t'.
  2419. With a `C-u' prefix you are prompted for a keyword. With a
  2420. numeric prefix, the Nth keyword in `org-todo-keywords' is selected. The
  2421. `r' key in the agenda buffer regenerates it, and you can give a
  2422. prefix argument to this command to change the selected TODO
  2423. keyword, for example `3 r'. If you often need a search for a
  2424. specific keyword, define a custom command for it (*note Agenda
  2425. dispatcher::).
  2426. Matching specific TODO keywords can also be done as part of a tags
  2427. search (*note Tag searches::).
  2428. Remote editing of TODO items means that you can change the state of a
  2429. TODO entry with a single key press. The commands available in the TODO
  2430. list are described in *Note Agenda commands::.
  2431. Normally the global todo list simply shows all headlines with TODO
  2432. keywords. This list can become very long. There are two ways to keep
  2433. it more compact:
  2434. - Some people view a TODO item that has been _scheduled_ for
  2435. execution (*note Time stamps::) as no longer _open_. Configure the
  2436. variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
  2437. items from the global TODO list.
  2438. - TODO items may have sublevels to break up the task into subtasks.
  2439. In such cases it may be enough to list only the highest level TODO
  2440. headline and omit the sublevels from the global list. Configure
  2441. the variable `org-agenda-todo-list-sublevels' to get this behavior.
  2442. 
  2443. File: org, Node: Matching headline tags, Next: Timeline, Prev: Global TODO list, Up: Built-in agenda views
  2444. 8.3.3 Matching headline tags
  2445. ----------------------------
  2446. If headlines in the agenda files are marked with _tags_ (*note Tags::),
  2447. you can select headlines based on the tags that apply to them and
  2448. collect them into an agenda buffer.
  2449. `C-c a m'
  2450. Produce a list of all headlines that match a given set of tags.
  2451. The command prompts for a selection criterion, which is a boolean
  2452. logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
  2453. `WORK|HOME' (*note Tags::). If you often need a specific search,
  2454. define a custom command for it (*note Agenda dispatcher::).
  2455. `C-c a M'
  2456. Like `C-c a m', but only select headlines that are also TODO items
  2457. and force checking subitems (see variable
  2458. `org-tags-match-list-sublevels'). Matching specific todo keywords
  2459. together with a tags match is also possible, see *Note Tag
  2460. searches::.
  2461. The commands available in the tags list are described in *Note
  2462. Agenda commands::.
  2463. 
  2464. File: org, Node: Timeline, Next: Stuck projects, Prev: Matching headline tags, Up: Built-in agenda views
  2465. 8.3.4 Timeline for a single file
  2466. --------------------------------
  2467. The timeline summarizes all time-stamped items from a single Org-mode
  2468. file in a _time-sorted view_. The main purpose of this command is to
  2469. give an overview over events in a project.
  2470. `C-c a L'
  2471. Show a time-sorted view of the org file, with all time-stamped
  2472. items. When called with a `C-u' prefix, all unfinished TODO
  2473. entries (scheduled or not) are also listed under the current date.
  2474. The commands available in the timeline buffer are listed in *Note
  2475. Agenda commands::.
  2476. 
  2477. File: org, Node: Stuck projects, Prev: Timeline, Up: Built-in agenda views
  2478. 8.3.5 Stuck projects
  2479. --------------------
  2480. If you are following a system like David Allen's GTD to organize your
  2481. work, one of the "duties" you have is a regular review to make sure
  2482. that all projects move along. A _stuck_ project is a project that has
  2483. no defined next actions, so it will never show up in the TODO lists
  2484. Org-mode produces. During the review, you need to identify such
  2485. projects and define next actions for them.
  2486. `C-c a #'
  2487. List projects that are stuck.
  2488. `C-c a !'
  2489. Customize the variable `org-stuck-projects' to define what a stuck
  2490. project is and how to find it.
  2491. You almost certainly will have to configure this view before it will
  2492. work for you. The built-in default assumes that all your projects are
  2493. level-2 headlines, and that a project is not stuck if it has at least
  2494. one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
  2495. Lets assume that you, in your own way of using Org-mode, identify
  2496. projects with a tag PROJECT, and that you use a todo keyword MAYBE to
  2497. indicate a project that should not be considered yet. Lets further
  2498. assume that the todo keyword DONE marks finished projects, and that NEXT
  2499. and TODO indicate next actions. Finally, the tag @SHOP indicates
  2500. shopping and is a next action even without the NEXT tag. In this case
  2501. you would start by identifying elegible projects with a tags/todo match
  2502. `+PROJECT/-MAYBE-DONE', and then check for TODO, NEXT and @SHOP in the
  2503. subtree to identify projects that are not stuck. The correct
  2504. customization for this is
  2505. (setq org-stuck-projects
  2506. ("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")))
  2507. 
  2508. File: org, Node: Presentation and sorting, Next: Agenda commands, Prev: Built-in agenda views, Up: Agenda views
  2509. 8.4 Presentation and sorting
  2510. ============================
  2511. Before displaying items in an agenda view, Org-mode visually prepares
  2512. the items and sorts them. Each item occupies a single line. The line
  2513. starts with a _prefix_ that contains the _category_ (*note
  2514. Categories::) of the item and other important information. You can
  2515. customize the prefix using the option `org-agenda-prefix-format'. The
  2516. prefix is followed by a cleaned-up version of the outline headline
  2517. associated with the item.
  2518. * Menu:
  2519. * Categories:: Not all tasks are equal
  2520. * Time-of-day specifications:: How the agenda knows the time
  2521. * Sorting of agenda items:: The order of things
  2522. 
  2523. File: org, Node: Categories, Next: Time-of-day specifications, Prev: Presentation and sorting, Up: Presentation and sorting
  2524. 8.4.1 Categories
  2525. ----------------
  2526. The category is a broad label assigned to each agenda item. By default,
  2527. the category is simply derived from the file name, but you can also
  2528. specify it with a special line in the buffer, like this:
  2529. #+CATEGORY: Thesis
  2530. If there are several such lines in a file, each specifies the
  2531. category for the text below it (but the first category also applies to
  2532. any text before the first CATEGORY line). The display in the agenda
  2533. buffer looks best if the category is not longer than 10 characters.
  2534. 
  2535. File: org, Node: Time-of-day specifications, Next: Sorting of agenda items, Prev: Categories, Up: Presentation and sorting
  2536. 8.4.2 Time-of-Day Specifications
  2537. --------------------------------
  2538. Org-mode checks each agenda item for a time-of-day specification. The
  2539. time can be part of the time stamp that triggered inclusion into the
  2540. agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
  2541. specified with two time stamps, like
  2542. `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
  2543. In the headline of the entry itself, a time(range) may also appear as
  2544. plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
  2545. Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
  2546. entries are recognized as well.
  2547. For agenda display, Org-mode extracts the time and displays it in a
  2548. standard 24 hour format as part of the prefix. The example times in
  2549. the previous paragraphs would end up in the agenda like this:
  2550. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  2551. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  2552. 19:00...... The Vogon reads his poem
  2553. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  2554. If the agenda is in single-day mode, or for the display of today, the
  2555. timed entries are embedded in a time grid, like
  2556. 8:00...... ------------------
  2557. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  2558. 10:00...... ------------------
  2559. 12:00...... ------------------
  2560. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  2561. 14:00...... ------------------
  2562. 16:00...... ------------------
  2563. 18:00...... ------------------
  2564. 19:00...... The Vogon reads his poem
  2565. 20:00...... ------------------
  2566. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  2567. The time grid can be turned on and off with the variable
  2568. `org-agenda-use-time-grid', and can be configured with
  2569. `org-agenda-time-grid'.
  2570. 
  2571. File: org, Node: Sorting of agenda items, Prev: Time-of-day specifications, Up: Presentation and sorting
  2572. 8.4.3 Sorting of agenda items
  2573. -----------------------------
  2574. Before being inserted into a view, the items are sorted. How this is
  2575. done depends on the type of view.
  2576. * For the daily/weekly agenda, the items for each day are sorted.
  2577. The default order is to first collect all items containing an
  2578. explicit time-of-day specification. These entries will be shown
  2579. at the beginning of the list, as a _schedule_ for the day. After
  2580. that, items remain grouped in categories, in the sequence given by
  2581. `org-agenda-files'. Within each category, items are sorted by
  2582. priority (*note Priorities::), which is composed of the base
  2583. priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
  2584. plus additional increments for overdue scheduled or deadline items.
  2585. * For the TODO list, items remain in the order of categories, but
  2586. within each category, sorting takes place according to priority
  2587. (*note Priorities::).
  2588. * For tags matches, items are not sorted at all, but just appear in
  2589. the sequence in which they are found in the agenda files.
  2590. Sorting can be customized using the variable
  2591. `org-agenda-sorting-strategy'.
  2592. 
  2593. File: org, Node: Agenda commands, Next: Custom agenda views, Prev: Presentation and sorting, Up: Agenda views
  2594. 8.5 Commands in the agenda buffer
  2595. =================================
  2596. Entries in the agenda buffer are linked back to the org file or diary
  2597. file where they originate. You are not allowed to edit the agenda
  2598. buffer itself, but commands are provided to show and jump to the
  2599. original entry location, and to edit the org-files "remotely" from the
  2600. agenda buffer. In this way, all information is stored only once,
  2601. removing the risk that your agenda and note files may diverge.
  2602. Some commands can be executed with mouse clicks on agenda lines. For
  2603. the other commands, the cursor needs to be in the desired line.
  2604. Motion
  2605. ......
  2606. `n'
  2607. Next line (same as <up>).
  2608. `p'
  2609. Previous line (same as <down>).
  2610. View/GoTo org file
  2611. ..................
  2612. `mouse-3'
  2613. `<SPC>'
  2614. Display the original location of the item in another window.
  2615. `L'
  2616. Display original location and recenter that window.
  2617. `mouse-2'
  2618. `mouse-1'
  2619. `<TAB>'
  2620. Go to the original location of the item in another window. Under
  2621. Emacs 22, `mouse-1' will also works for this.
  2622. `<RET>'
  2623. Go to the original location of the item and delete other windows.
  2624. `f'
  2625. Toggle Follow mode. In Follow mode, as you move the cursor through
  2626. the agenda buffer, the other window always shows the corresponding
  2627. location in the org file. The initial setting for this mode in new
  2628. agenda buffers can be set with the variable
  2629. `org-agenda-start-with-follow-mode'.
  2630. `b'
  2631. Display the entire subtree of the current item in an indirect
  2632. buffer, in a separate, dedicated frame. With positive numerical
  2633. prefix N, go up to level N before selecting the subtree. With
  2634. negative prefix -N, go up N levels. With `C-u' prefix, don't use
  2635. the dedicated frame, but another, new frame.
  2636. `l'
  2637. Toggle Logbook mode. In Logbook mode, entries that where marked
  2638. DONE while logging was on (variable `org-log-done') are shown in
  2639. the agenda, as are entries that have been clocked on that day.
  2640. Change display
  2641. ..............
  2642. `o'
  2643. Delete other windows.
  2644. `w'
  2645. Switch to weekly view (7 days displayed together).
  2646. `d'
  2647. Switch to daily view (just one day displayed).
  2648. `D'
  2649. Toggle the inclusion of diary entries. See *Note Weekly/Daily
  2650. agenda::.
  2651. `g'
  2652. Toggle the time grid on and off. See also the variables
  2653. `org-agenda-use-time-grid' and `org-agenda-time-grid'.
  2654. `r'
  2655. Recreate the agenda buffer, for example to reflect the changes
  2656. after modification of the time stamps of items with S-<left> and
  2657. S-<right>. When the buffer is the global todo list, a prefix
  2658. argument is interpreted to create a selective list for a specific
  2659. TODO keyword.
  2660. `s'
  2661. Save all Org-mode buffers in the current Emacs session.
  2662. `<right>'
  2663. Display the following `org-agenda-ndays' days. For example, if
  2664. the display covers a week, switch to the following week. With
  2665. prefix arg, go forward that many times `org-agenda-ndays' days.
  2666. `<left>'
  2667. Display the previous dates.
  2668. `.'
  2669. Goto today.
  2670. Remote editing
  2671. ..............
  2672. `0-9'
  2673. Digit argument.
  2674. `C-_'
  2675. Undo a change due to a remote editing command. The change is
  2676. undone both in the agenda buffer and in the remote buffer.
  2677. `t'
  2678. Change the TODO state of the item, both in the agenda and in the
  2679. original org file.
  2680. `C-k'
  2681. Delete the current agenda item along with the entire subtree
  2682. belonging to it in the original Org-mode file. If the text to be
  2683. deleted remotely is longer than one line, the kill needs to be
  2684. confirmed by the user. See variable `org-agenda-confirm-kill'.
  2685. `$'
  2686. Archive the subtree corresponding to the current headline.
  2687. `T'
  2688. Show all tags associated with the current item. Because of
  2689. inheritance, this may be more than the tags listed in the line
  2690. itself.
  2691. `:'
  2692. Set tags for the current headline.
  2693. `a'
  2694. Toggle the ARCHIVE tag for the current headline.
  2695. `,'
  2696. Set the priority for the current item. Org-mode prompts for the
  2697. priority character. If you reply with <SPC>, the priority cookie
  2698. is removed from the entry.
  2699. `p'
  2700. Display weighted priority of current item.
  2701. `+'
  2702. `S-<up>'
  2703. Increase the priority of the current item. The priority is
  2704. changed in the original buffer, but the agenda is not resorted.
  2705. Use the `r' key for this.
  2706. `-'
  2707. `S-<down>'
  2708. Decrease the priority of the current item.
  2709. `C-c C-s'
  2710. Schedule this item
  2711. `C-c C-d'
  2712. Set a deadline for this item.
  2713. `S-<right>'
  2714. Change the time stamp associated with the current line by one day
  2715. into the future. With prefix argument, change it by that many
  2716. days. For example, `3 6 5 S-<right>' will change it by a year.
  2717. The stamp is changed in the original org file, but the change is
  2718. not directly reflected in the agenda buffer. Use the `r' key to
  2719. update the buffer.
  2720. `S-<left>'
  2721. Change the time stamp associated with the current line by one day
  2722. into the past.
  2723. `>'
  2724. Change the time stamp associated with the current line to today.
  2725. The key `>' has been chosen, because it is the same as `S-.' on my
  2726. keyboard.
  2727. `I'
  2728. Start the clock on the current item. If a clock is running
  2729. already, it is stopped first.
  2730. `O'
  2731. Stop the previously started clock.
  2732. `X'
  2733. Cancel the currently running clock.
  2734. Calendar commands
  2735. .................
  2736. `c'
  2737. Open the Emacs calendar and move to the date at the agenda cursor.
  2738. `c'
  2739. When in the calendar, compute and show the Org-mode agenda for the
  2740. date at the cursor.
  2741. `i'
  2742. Insert a new entry into the diary. Prompts for the type of entry
  2743. (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
  2744. new entry in the diary, just as `i d' etc. would do in the
  2745. calendar. The date is taken from the cursor position.
  2746. `M'
  2747. Show the phases of the moon for the three months around current
  2748. date.
  2749. `S'
  2750. Show sunrise and sunset times. The geographical location must be
  2751. set with calendar variables, see documentation of the Emacs
  2752. calendar.
  2753. `C'
  2754. Convert the date at cursor into many other cultural and historic
  2755. calendars.
  2756. `H'
  2757. Show holidays for three month around the cursor date.
  2758. `C-c C-x C-c'
  2759. Export a single iCalendar file containing entries from all agenda
  2760. files.
  2761. Quit and Exit
  2762. .............
  2763. `q'
  2764. Quit agenda, remove the agenda buffer.
  2765. `x'
  2766. Exit agenda, remove the agenda buffer and all buffers loaded by
  2767. Emacs for the compilation of the agenda. Buffers created by the
  2768. user to visit org files will not be removed.
  2769. 
  2770. File: org, Node: Custom agenda views, Prev: Agenda commands, Up: Agenda views
  2771. 8.6 Custom agenda views
  2772. =======================
  2773. Custom agenda commands serve two purposes: to store and quickly access
  2774. frequently used TODO and tags searches, and to create special composite
  2775. agenda buffers. Custom agenda commands will be accessible through the
  2776. dispatcher (*note Agenda dispatcher::), just like the default commands.
  2777. * Menu:
  2778. * Storing searches:: Type once, use often
  2779. * Block agenda:: All the stuff you need in a single buffer
  2780. * Setting Options:: Changing the rules
  2781. * Batch processing:: Agenda views from the command line
  2782. 
  2783. File: org, Node: Storing searches, Next: Block agenda, Prev: Custom agenda views, Up: Custom agenda views
  2784. 8.6.1 Storing searches
  2785. ----------------------
  2786. The first application of custom searches is the definition of keyboard
  2787. shortcuts for frequently used searches, either creating an agenda
  2788. buffer, or a sparse tree (the latter covering of course only the current
  2789. buffer). Custom commands are configured in the variable
  2790. `org-agenda-custom-commands'. You can customize this variable, for
  2791. example by pressing `C-c a C'. You can also directly set it with Emacs
  2792. Lisp in `.emacs'. The following example contains all valid search
  2793. types:
  2794. (setq org-agenda-custom-commands
  2795. '(("w" todo "WAITING")
  2796. ("W" todo-tree "WAITING")
  2797. ("u" tags "+BOSS-URGENT")
  2798. ("v" tags-todo "+BOSS-URGENT")
  2799. ("U" tags-tree "+BOSS-URGENT")
  2800. ("f" occur-tree "\\<FIXME\\>")))
  2801. The initial single-character string in each entry defines the character
  2802. you have to press after the dispatcher command `C-c a' in order to
  2803. access the command. The second parameter is the search type, followed
  2804. by the string or regular expression to be used for the matching. The
  2805. example above will therefore define:
  2806. `C-c a w'
  2807. as a global search for TODO entries with `WAITING' as the TODO
  2808. keyword
  2809. `C-c a W'
  2810. as the same search, but only in the current buffer and displaying
  2811. the results as a sparse tree
  2812. `C-c a u'
  2813. as a global tags search for headlines marked `:BOSS:' but not
  2814. `:URGENT:'
  2815. `C-c a v'
  2816. as the same search as `C-c a u', but limiting the search to
  2817. headlines that are also TODO items
  2818. `C-c a U'
  2819. as the same search as `C-c a u', but only in the current buffer and
  2820. displaying the result as a sparse tree
  2821. `C-c a f'
  2822. to create a sparse tree (again: current buffer only) with all
  2823. entries containing the word `FIXME'.
  2824. 
  2825. File: org, Node: Block agenda, Next: Setting Options, Prev: Storing searches, Up: Custom agenda views
  2826. 8.6.2 Block agenda
  2827. ------------------
  2828. Another possibility is the construction of agenda views that comprise
  2829. the results of _several_ commands, each of which creates a block in the
  2830. agenda buffer. The available commands include `agenda' for the daily
  2831. or weekly agenda (as created with `C-c a a'), `alltodo' for the global
  2832. todo list (as constructed with `C-c a t'), and the matching commands
  2833. discussed above: `todo', `tags', and `tags-todo'. Here are two
  2834. examples:
  2835. (setq org-agenda-custom-commands
  2836. '(("h" "Agenda and Home-related tasks"
  2837. ((agenda)
  2838. (tags-todo "HOME")
  2839. (tags "GARDEN")))
  2840. ("o" "Agenda and Office-related tasks"
  2841. ((agenda)
  2842. (tags-todo "WORK")
  2843. (tags "OFFICE")))))
  2844. This will define `C-c a h' to create a multi-block view for stuff you
  2845. need to attend to at home. The resulting agenda buffer will contain
  2846. your agenda for the current week, all TODO items that carry the tag
  2847. `HOME', and also all lines tagged with `GARDEN'. Finally the command
  2848. `C-c a o' provides a similar view for office tasks.
  2849. 
  2850. File: org, Node: Setting Options, Next: Batch processing, Prev: Block agenda, Up: Custom agenda views
  2851. 8.6.3 Setting Options for custom commands
  2852. -----------------------------------------
  2853. Org-mode contains a number of variables regulating agenda construction
  2854. and display. The global variables define the behavior for all agenda
  2855. commands, including the custom commands. However, if you want to change
  2856. some settings just for a single custom view, you can do so. Setting
  2857. options requires inserting a list of variable names and values at the
  2858. right spot in `org-agenda-custom-commands'. For example:
  2859. (setq org-agenda-custom-commands
  2860. '(("w" todo "WAITING"
  2861. ((org-agenda-sorting-strategy '(priority-down))
  2862. (org-agenda-prefix-format " Mixed: ")))
  2863. ("U" tags-tree "+BOSS-URGENT"
  2864. ((org-show-following-heading nil)
  2865. (org-show-hierarchy-above nil)))))
  2866. Now the `C-c a w' command will sort the collected entries only by
  2867. priority, and the prefix format is modified to just say ` Mixed:'
  2868. instead of giving the category of the entry. The sparse tags tree of
  2869. `C-c a U' will now turn out ultra-compact, because neither the headline
  2870. hierarchy above the match, nor the headline following the match will be
  2871. shown.
  2872. For command sets creating a block agenda,
  2873. `org-agenda-custom-commands' has two separate spots for setting
  2874. options. You can add options that should be valid for just a single
  2875. command in the set, and options that should be valid for all commands in
  2876. the set. The former are just added to the command entry, the latter
  2877. must come after the list of command entries. Going back to the block
  2878. agenda example (*note Block agenda::), let's change the sorting strategy
  2879. for the `C-c a h' commands to `priority-down', but let's sort the
  2880. results for GARDEN tags query in the opposite order, `priority-up'.
  2881. This would look like this:
  2882. (setq org-agenda-custom-commands
  2883. '(("h" "Agenda and Home-related tasks"
  2884. ((agenda)
  2885. (tags-todo "HOME")
  2886. (tags "GARDEN" ((org-agenda-sorting-strategy '(priority-up)))))
  2887. ((org-agenda-sorting-strategy '(priority-down))))
  2888. ("o" "Agenda and Office-related tasks"
  2889. ((agenda)
  2890. (tags-todo "WORK")
  2891. (tags "OFFICE")))))
  2892. As you see, the values and parenthesis setting is a little complex.
  2893. When in doubt, use the customize interface to set this variable - it
  2894. fully supports its structure. Just one caveat: When setting options in
  2895. this interface, the _values_ are just lisp expressions. So if the
  2896. value is a string, you need to add the double quotes around the value
  2897. yourself.
  2898. 
  2899. File: org, Node: Batch processing, Prev: Setting Options, Up: Custom agenda views
  2900. 8.6.4 Creating agenda views in batch processing
  2901. -----------------------------------------------
  2902. If you want to print or otherwise reprocess agenda views, it can be
  2903. useful to create an agenda from the command line. This is the purpose
  2904. of the function `org-batch-agenda'. It takes as a parameter one of the
  2905. strings that are the keys in `org-agenda-custom-commands'. For
  2906. example, to directly print the current TODO list, you could use
  2907. emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
  2908. You may also modify parameters on the fly like this:
  2909. emacs -batch -l ~/.emacs \
  2910. -eval '(org-batch-agenda "a" \
  2911. org-agenda-ndays 300 \
  2912. org-agenda-include-diary nil \
  2913. org-agenda-files (quote ("~/org/project.org")))' \
  2914. | lpr
  2915. which will produce a 300 day agenda, fully restricted to the Org file
  2916. `~/org/projects.org', not even including the diary.
  2917. 
  2918. File: org, Node: Embedded LaTeX, Next: Exporting, Prev: Agenda views, Up: Top
  2919. 9 Embedded LaTeX
  2920. ****************
  2921. Plain ASCII is normally sufficient for almost all note taking. One
  2922. exception, however, are scientific notes which need to be able to
  2923. contain mathematical symbols and the occasional formula. LaTeX(1) is
  2924. widely used to typeset scientific documents. Org-mode supports
  2925. embedding LaTeX code into its files, because many academics are used to
  2926. read LaTeX source code, and because it can be readily processed into
  2927. images for HTML production.
  2928. It is not necessary to mark LaTeX macros and code in any special way.
  2929. If you observe a few conventions, Org-mode knows how to find it and what
  2930. to do with it.
  2931. * Menu:
  2932. * Math symbols:: TeX macros for symbols and Greek letters
  2933. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  2934. * LaTeX fragments:: Complex formulas made easy
  2935. * Processing LaTeX fragments:: Previewing LaTeX processing
  2936. * CDLaTeX mode:: Speed up entering of formulas
  2937. ---------- Footnotes ----------
  2938. (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
  2939. Many of the features described here as "LaTeX" are really from TeX, but
  2940. for simplicity I am blurring this distinction.
  2941. 
  2942. File: org, Node: Math symbols, Next: Subscripts and Superscripts, Prev: Embedded LaTeX, Up: Embedded LaTeX
  2943. 9.1 Math symbols
  2944. ================
  2945. You can use LaTeX macros to insert special symbols like `\alpha' to
  2946. indicate the Greek letter, or `\to' to indicate an arrow. Completion
  2947. for these macros is available, just type `\' and maybe a few letters,
  2948. and press `M-<TAB>' to see possible completions. Unlike LaTeX code,
  2949. Org-mode allows these macros to be present without surrounding math
  2950. delimiters, for example:
  2951. Angles are written as Greek letters \alpha, \beta and \gamma.
  2952. During HTML export (*note HTML export::), these symbols are
  2953. translated into the proper syntax for HTML, for the above examples this
  2954. is `&alpha;' and `&rarr;', respectively.
  2955. 
  2956. File: org, Node: Subscripts and Superscripts, Next: LaTeX fragments, Prev: Math symbols, Up: Embedded LaTeX
  2957. 9.2 Subscripts and Superscripts
  2958. ===============================
  2959. Just like in LaTeX, `^' and `_' are used to indicate super- and
  2960. subscripts. Again, these can be used without embedding them in
  2961. math-mode delimiters. To increase the readability of ASCII text, it is
  2962. not necessary (but OK) to surround multi-character sub- and superscripts
  2963. with curly braces. For example
  2964. The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
  2965. the sun is R_{sun} = 6.96 x 10^8 m.
  2966. To avoid interpretation as raised or lowered text, you can quote `^'
  2967. and `_' with a backslash: `\_' and `\^'.
  2968. During HTML export (*note HTML export::), subscript and superscripts
  2969. are surrounded with `<sub>' and `<sup>' tags, respectively.
  2970. 
  2971. File: org, Node: LaTeX fragments, Next: Processing LaTeX fragments, Prev: Subscripts and Superscripts, Up: Embedded LaTeX
  2972. 9.3 LaTeX fragments
  2973. ===================
  2974. With symbols, sub- and superscripts, HTML is pretty much at its end when
  2975. it comes to representing mathematical formulas(1). More complex
  2976. expressions need a dedicated formula processor. To this end, Org-mode
  2977. can contain arbitrary LaTeX fragments. It provides commands to preview
  2978. the typeset result of these fragments, and upon export to HTML, all
  2979. fragments will be converted to images and inlined into the HTML
  2980. document. For this to work you need to be on a system with a working
  2981. LaTeX installation. You also need the `dvipng' program, available at
  2982. `http://sourceforge.net/projects/dvipng/'.
  2983. LaTeX fragments don't need any special marking at all. The following
  2984. snippets will be identified as LaTeX source code:
  2985. * Environments of any kind. The only requirement is that the
  2986. `\begin' statement appears on a new line, preceded by only
  2987. whitespace.
  2988. * Text within the usual LaTeX math delimiters. To avoid conflicts
  2989. with currency specifications, single `$' characters are only
  2990. recognized as math delimiters if the enclosed text contains at
  2991. most two line breaks, is directly attached to the `$' characters
  2992. with no whitespace in between, and if the closing `$' is followed
  2993. by whitespace or punctuation. For the other delimiters, there is
  2994. no such restriction, so when in doubt, use `\(...\)' as inline
  2995. math delimiters.
  2996. For example:
  2997. \begin{equation} % arbitrary environments,
  2998. x=\sqrt{b} % even tables, figures
  2999. \end{equation} % etc
  3000. If $a^2=b$ and \( b=2 \), then the solution must be
  3001. either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
  3002. If you need any of the delimiter ASCII sequences for other purposes, you
  3003. can configure the option `org-format-latex-options' to deselect the
  3004. ones you do not wish to have interpreted by the LaTeX converter.
  3005. ---------- Footnotes ----------
  3006. (1) Yes, there is MathML, but that is not yet fully supported by
  3007. many browsers, and there is no decent converter for turning LaTeX of
  3008. ASCII representations of formulas into MathML. So for the time being,
  3009. converting formulas into images seems the way to go.
  3010. 
  3011. File: org, Node: Processing LaTeX fragments, Next: CDLaTeX mode, Prev: LaTeX fragments, Up: Embedded LaTeX
  3012. 9.4 Processing LaTeX fragments
  3013. ==============================
  3014. LaTeX fragments can be processed to produce a preview images of the
  3015. typeset expressions:
  3016. `C-c C-x C-l'
  3017. Produce a preview image of the LaTeX fragment at point and overlay
  3018. it over the source code. If there is no fragment at point,
  3019. process all fragments in the current entry (between two
  3020. headlines). When called with a prefix argument, process the
  3021. entire subtree. When called with two prefix arguments, or when
  3022. the cursor is before the first headline, process the entire buffer.
  3023. `C-c C-c'
  3024. Remove the overlay preview images.
  3025. During HTML export (*note HTML export::), all LaTeX fragments are
  3026. converted into images and inlined into the document if the following
  3027. setting is active:
  3028. (setq org-export-with-LaTeX-fragments t)
  3029. 
  3030. File: org, Node: CDLaTeX mode, Prev: Processing LaTeX fragments, Up: Embedded LaTeX
  3031. 9.5 Using CDLaTeX to enter math
  3032. ===============================
  3033. CDLaTeX-mode is a minor mode that is normally used in combination with a
  3034. major LaTeX mode like AUCTeX in order to speed-up insertion of
  3035. environments and math templates. Inside Org-mode, you can make use of
  3036. some of the features of cdlatex-mode. You need to install `cdlatex.el'
  3037. and `texmathp.el' (the latter comes also with AUCTeX) from
  3038. `http://www.astro.uva.nl/~dominik/Tools/cdlatex'. Don't turn
  3039. cdlatex-mode itself under Org-mode, but use the light version
  3040. `org-cdlatex-mode' that comes as part of Org-mode. Turn it on for the
  3041. current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
  3042. with
  3043. (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
  3044. When this mode is enabled, the following features are present (for
  3045. more details see the documentation of cdlatex-mode):
  3046. * Environment templates can be inserted with `C-c {'.
  3047. * The <TAB> key will do template expansion if the cursor is inside a
  3048. LaTeX fragment(1). For example, <TAB> will expand `fr' to
  3049. `\frac{}{}' and position the cursor correctly inside the first
  3050. brace. Another <TAB> will get you into the second brace. Even
  3051. outside fragments, <TAB> will expand environment abbreviations at
  3052. the beginning of a line. For example, if you write `equ' at the
  3053. beginning of a line and press <TAB>, this abbreviation will be
  3054. expanded to an `equation' environment. To get a list of all
  3055. abbreviations, type `M-x cdlatex-command-help'.
  3056. * Pressing `_' and `^' inside a LaTeX fragment will insert these
  3057. characters together with a pair of braces. If you use <TAB> to
  3058. move out of the braces, and if the braces surround only a single
  3059. character or macro, they are removed again (depending on the
  3060. variable `cdlatex-simplify-sub-super-scripts').
  3061. * Pressing the backquote ``' followed by a character inserts math
  3062. macros, also outside LaTeX fragments. If you wait more than 1.5
  3063. seconds after the backquote, a help window will pop up.
  3064. * Pressing the normal quote `'' followed by another character
  3065. modifies the symbol before point with an accent or a font. If you
  3066. wait more than 1.5 seconds after the backquote, a help window will
  3067. pop up. Character modification will work only inside LaTeX
  3068. fragments, outside the quote is normal.
  3069. ---------- Footnotes ----------
  3070. (1) Org-mode has a method to test if the cursor is inside such a
  3071. fragment, see the documentation of the function
  3072. `org-inside-LaTeX-fragment-p'.
  3073. 
  3074. File: org, Node: Exporting, Next: Publishing, Prev: Embedded LaTeX, Up: Top
  3075. 10 Exporting
  3076. ************
  3077. Org-mode documents can be exported into a variety of other formats. For
  3078. printing and sharing of notes, ASCII export produces a readable and
  3079. simple version of an Org-mode file. HTML export allows you to publish a
  3080. notes file on the web, while the XOXO format provides a solid base for
  3081. exchange with a broad range of other applications. To incorporate
  3082. entries with associated times like deadlines or appointments into a
  3083. desktop calendar program like iCal, Org-mode can also produce extracts
  3084. in the iCalendar format. Currently Org-mode only supports export, not
  3085. import of these different formats.
  3086. When exporting, Org-mode uses special conventions to enrich the
  3087. output produced. *Note Text interpretation::, for more details.
  3088. `C-c C-e'
  3089. Dispatcher for export and publishing commands. Displays a
  3090. help-window listing the additional key(s) needed to launch an
  3091. export or publishing command.
  3092. * Menu:
  3093. * ASCII export:: Exporting to plain ASCII
  3094. * HTML export:: Exporting to HTML
  3095. * XOXO export:: Exporting to XOXO
  3096. * iCalendar export:: Exporting in iCalendar format
  3097. * Text interpretation:: How the exporter looks at the file
  3098. 
  3099. File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
  3100. 10.1 ASCII export
  3101. =================
  3102. ASCII export produces a simple and very readable version of an Org-mode
  3103. file.
  3104. `C-c C-e a'
  3105. Export as ASCII file. If there is an active region, only the
  3106. region will be exported. For an org file `myfile.org', the ASCII
  3107. file will be `myfile.txt'. The file will be overwritten without
  3108. warning.
  3109. `C-c C-e v a'
  3110. Export only the visible part of the document.
  3111. In the exported version, the first 3 outline levels will become
  3112. headlines, defining a general document structure. Additional levels
  3113. will be exported as itemized lists. If you want that transition to
  3114. occur at a different level, specify it with a prefix argument. For
  3115. example,
  3116. C-1 C-c C-e a
  3117. creates only top level headlines and does the rest as items. When
  3118. headlines are converted to items, the indentation of the text following
  3119. the headline is changed to fit nicely under the item. This is done with
  3120. the assumption that the first bodyline indicates the base indentation of
  3121. the body text. Any indentation larger than this is adjusted to preserve
  3122. the layout relative to the first line. Should there be lines with less
  3123. indentation than the first, these are left alone.
  3124. 
  3125. File: org, Node: HTML export, Next: XOXO export, Prev: ASCII export, Up: Exporting
  3126. 10.2 HTML export
  3127. ================
  3128. Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
  3129. HTML formatting, in ways similar to John Grubers _markdown_ language,
  3130. but with additional support for tables.
  3131. `C-c C-e h'
  3132. Export as HTML file `myfile.html'.
  3133. `C-c C-e b'
  3134. Export as HTML file and open it with a browser.
  3135. `C-c C-e v h'
  3136. `C-c C-e v b'
  3137. Export only the visible part of the document.
  3138. In the exported version, the first 3 outline levels will become
  3139. headlines, defining a general document structure. Additional levels
  3140. will be exported as itemized lists. If you want that transition to
  3141. occur at a different level, specify it with a prefix argument. For
  3142. example,
  3143. C-2 C-c C-e b
  3144. creates two levels of headings and does the rest as items.
  3145. If you want to include HTML tags which should be interpreted as such,
  3146. mark them with `@' as in `@<b>bold text@</b>'. Plain `<' and `>' are
  3147. always transformed to `&lt;' and `&gt;' in HTML export.
  3148. Internal links (*note Internal links::) will continue to work in HTML
  3149. files only if they match a dedicated `<<target>>'. Automatic links
  3150. created by radio targets (*note Radio targets::) will also work in the
  3151. HTML file. Links to external files will still work if the HTML file is
  3152. in the same directory as the Org-mode file. Links to other `.org'
  3153. files will be translated into HTML links under the assumption that an
  3154. HTML version also exists of the linked file. For information related to
  3155. linking files while publishing them to a publishing directory see *Note
  3156. Publishing links::.
  3157. You can also give style information for the exported file. The HTML
  3158. exporter assigns the following CSS classes to appropriate parts of the
  3159. document - your style specifications may change these:
  3160. .todo TODO keywords
  3161. .done the DONE keyword
  3162. .timestamp time stamp
  3163. .timestamp-kwd keyword associated with a time stamp, like SCHEDULED
  3164. .tag tag in a headline
  3165. .target target for links
  3166. The default style specification can be configured through the option
  3167. `org-export-html-style'. If you want to use a file-local style, you
  3168. may use file variables, best wrapped into a COMMENT section at the end
  3169. of the outline tree. For example:
  3170. * COMMENT HTML style specifications
  3171. # Local Variables:
  3172. # org-export-html-style: " <style type=\"text/css\">
  3173. # p {font-weight: normal; color: gray; }
  3174. # h1 {color: black; }
  3175. # </style>"
  3176. # End:
  3177. Remember to execute `M-x normal-mode' after changing this to make
  3178. the new style visible to Emacs. This command restarts org-mode for the
  3179. current buffer and forces Emacs to re-evaluate the local variables
  3180. section in the buffer.
  3181. 
  3182. File: org, Node: XOXO export, Next: iCalendar export, Prev: HTML export, Up: Exporting
  3183. 10.3 XOXO export
  3184. ================
  3185. Org-mode contains an exporter that produces XOXO-style output.
  3186. Currently, this exporter only handles the general outline structure and
  3187. does not interpret any additional Org-mode features.
  3188. `C-c C-e x'
  3189. Export as XOXO file `myfile.html'.
  3190. `C-c C-e v x'
  3191. Export only the visible part of the document.
  3192. 
  3193. File: org, Node: iCalendar export, Next: Text interpretation, Prev: XOXO export, Up: Exporting
  3194. 10.4 iCalendar export
  3195. =====================
  3196. Some people like to use Org-mode for keeping track of projects, but
  3197. still prefer a standard calendar application for anniversaries and
  3198. appointments. In this case it can be useful to have deadlines and
  3199. other time-stamped items in Org-mode files show up in the calendar
  3200. application. Org-mode can export calendar information in the standard
  3201. iCalendar format.
  3202. `C-c C-e i'
  3203. Create iCalendar entries for the current file and store them in
  3204. the same directory, using a file extension `.ics'.
  3205. `C-c C-e I'
  3206. Like `C-c C-e i', but do this for all files in `org-agenda-files'.
  3207. For each of these files, a separate iCalendar file will be
  3208. written.
  3209. `C-c C-e c'
  3210. Create a single large iCalendar file from all files in
  3211. `org-agenda-files' and write it to the file given by
  3212. `org-combined-agenda-icalendar-file'.
  3213. How this calendar is best read and updated, depends on the
  3214. application you are using. For example, when using iCal under Apple
  3215. MacOS X, you could create a new calendar `OrgMode' (the default name
  3216. for the calendar created by `C-c C-e c', see the variables
  3217. `org-icalendar-combined-name' and
  3218. `org-combined-agenda-icalendar-file'). Then set Org-mode to overwrite
  3219. the corresponding file `~/Library/Calendars/OrgMode.ics'. You may even
  3220. use AppleScript to make iCal re-read the calendar files each time a new
  3221. version of `OrgMode.ics' is produced. Here is the setup needed for
  3222. this:
  3223. (setq org-combined-agenda-icalendar-file
  3224. "~/Library/Calendars/OrgMode.ics")
  3225. (add-hook 'org-after-save-iCalendar-file-hook
  3226. (lambda ()
  3227. (shell-command
  3228. "osascript -e 'tell application \"iCal\" to reload calendars'")))
  3229. 
  3230. File: org, Node: Text interpretation, Prev: iCalendar export, Up: Exporting
  3231. 10.5 Text interpretation by the exporter
  3232. ========================================
  3233. The exporter backends interpret additional structure in the Org-mode
  3234. file in order to produce better output.
  3235. * Menu:
  3236. * Comment lines:: Some lines will not be exported
  3237. * Enhancing text:: Subscripts, symbols and more
  3238. * Export options:: How to influence the export settings
  3239. 
  3240. File: org, Node: Comment lines, Next: Enhancing text, Prev: Text interpretation, Up: Text interpretation
  3241. 10.5.1 Comment lines
  3242. --------------------
  3243. Lines starting with `#' in column zero are treated as comments and will
  3244. never be exported. Also entire subtrees starting with the word
  3245. `COMMENT' will never be exported. Finally, any text before the first
  3246. headline will not be exported either.
  3247. `C-c ;'
  3248. Toggle the COMMENT keyword at the beginning of an entry.
  3249. 
  3250. File: org, Node: Enhancing text, Next: Export options, Prev: Comment lines, Up: Text interpretation
  3251. 10.5.2 Enhancing text for export
  3252. --------------------------------
  3253. Some of the export backends of Org-mode allow for sophisticated text
  3254. formatting, this is true in particular for the HTML backend. Org-mode
  3255. has a number of typing conventions that allow to produce a richly
  3256. formatted output.
  3257. * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
  3258. enumerator will be recognized and transformed if the backend
  3259. supports lists. See *Note Plain lists::.
  3260. * You can make words *bold*, /italic/, _underlined_, `=code=', and
  3261. `+strikethrough+'.
  3262. * Many TeX macros and entire LaTeX fragments are converted into HTML
  3263. entities or images (*note Embedded LaTeX::).
  3264. * Tables are transformed into native tables under the exporter, if
  3265. the export backend supports this. Data fields before the first
  3266. horizontal separator line will be formatted as table header fields.
  3267. * If a headline starts with the word `QUOTE', the text below the
  3268. headline will be typeset as fixed-width, to allow quoting of
  3269. computer codes etc. Lines starting with `:' are also typeset in
  3270. fixed-width font.
  3271. `C-c :'
  3272. Toggle fixed-width for entry (QUOTE) or region, see below.
  3273. * A double backslash _at the end of a line_ enforces a line break at
  3274. this position.
  3275. If these conversions conflict with your habits of typing ASCII text,
  3276. they can all be turned off with corresponding variables (see the
  3277. customization group `org-export-general', and the following section
  3278. which explains how to set export options with special lines in a buffer.
  3279. 
  3280. File: org, Node: Export options, Prev: Enhancing text, Up: Text interpretation
  3281. 10.5.3 Export options
  3282. ---------------------
  3283. The exporter recognizes special lines in the buffer which provide
  3284. additional information. These lines may be put anywhere in the file.
  3285. The whole set of lines can be inserted into the buffer with `C-c C-e
  3286. t'. For individual lines, a good way to make sure the keyword is
  3287. correct is to type `#+' and then use `M-<TAB>' completion (*note
  3288. Completion::).
  3289. `C-c C-e t'
  3290. Insert template with export options, see example below.
  3291. #+TITLE: the title to be shown (default is the buffer name)
  3292. #+AUTHOR: the author (default taken from `user-full-name')
  3293. #+EMAIL: his/her email address (default from `user-mail-address')
  3294. #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
  3295. #+TEXT: Some descriptive text to be inserted at the beginning.
  3296. #+TEXT: Several lines may be given.
  3297. #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t *:nil TeX:t LaTeX:t
  3298. The OPTIONS line is a compact form to specify export settings. Here
  3299. you can:
  3300. H: set the number of headline levels for export
  3301. num: turn on/off section-numbers
  3302. toc: turn on/off table of contents
  3303. \n: turn on/off linebreak-preservation
  3304. @: turn on/off quoted HTML tags
  3305. :: turn on/off fixed-width sections
  3306. |: turn on/off tables
  3307. ^: turn on/off TeX-like syntax for sub- and superscripts.
  3308. *: turn on/off emphasized text (bold, italic, underlined)
  3309. TeX: turn on/off simple TeX macros in plain text
  3310. LaTeX: turn on/off LaTeX fragments
  3311. 
  3312. File: org, Node: Publishing, Next: Miscellaneous, Prev: Exporting, Up: Top
  3313. 11 Publishing
  3314. *************
  3315. Org-mode includes(1) a publishing management system that allows you to
  3316. configure automatic HTML conversion of _projects_ composed of
  3317. interlinked org files. This system is called _org-publish_. You can
  3318. also configure org-publish to automatically upload your exported HTML
  3319. pages and related attachments, such as images and source code files, to
  3320. a web server. Org-publish turns org-mode into a web-site authoring
  3321. tool.
  3322. Org-publish has been contributed to Org-mode by David O'Toole.
  3323. * Menu:
  3324. * Configuration:: Defining projects
  3325. * Sample configuration:: Example projects
  3326. * Triggering publication:: Publication commands
  3327. ---------- Footnotes ----------
  3328. (1) `org-publish.el' is not yet part of Emacs, so if you are using
  3329. `org.el' as it comes with Emacs, you need to download this file
  3330. separately. Also make sure org.el is at least version 4.27.
  3331. 
  3332. File: org, Node: Configuration, Next: Sample configuration, Prev: Publishing, Up: Publishing
  3333. 11.1 Configuration
  3334. ==================
  3335. Publishing needs significant configuration to specify files, destination
  3336. and many other properties of a project.
  3337. * Menu:
  3338. * Project alist:: The central configuration variable
  3339. * Sources and destinations:: From here to there
  3340. * Selecting files:: What files are part of the project?
  3341. * Publishing action:: Setting the function doing the publishing
  3342. * Publishing options:: Tweaking HTML export
  3343. * Publishing links:: Which links keep working after publishing?
  3344. * Project page index:: Publishing a list of project files
  3345. 
  3346. File: org, Node: Project alist, Next: Sources and destinations, Prev: Configuration, Up: Configuration
  3347. 11.1.1 The variable `org-publish-project-alist'
  3348. -----------------------------------------------
  3349. Org-publish is configured almost entirely through setting the value of
  3350. one variable, called `org-publish-project-alist'. Each element of the
  3351. list configures one project, and may be in one of the two following
  3352. forms:
  3353. ("project-name" :property value :property value ...)
  3354. or
  3355. ("project-name" :components ("project-name" "project-name" ...))
  3356. In both cases, projects are configured by specifying property values.
  3357. A project defines the set of files that will be published, as well as
  3358. the publishing configuration to use when publishing those files. When
  3359. a project takes the second form listed above, the individual members of
  3360. the "components" property are taken to be components of the project,
  3361. which group together files requiring different publishing options. When
  3362. you publish such a "meta-project" all the components will also publish.
  3363. 
  3364. File: org, Node: Sources and destinations, Next: Selecting files, Prev: Project alist, Up: Configuration
  3365. 11.1.2 Sources and destinations for files
  3366. -----------------------------------------
  3367. Most properties are optional, but some should always be set. In
  3368. particular, org-publish needs to know where to look for source files,
  3369. and where to put published files.
  3370. `:base-directory' Directory containing publishing source files
  3371. `:publishing-directory'Directory (possibly remote) where output files
  3372. will be published.
  3373. `:preparation-function'Function called before starting publishing
  3374. process, for example to run `make' for updating
  3375. files to be published.
  3376. 
  3377. File: org, Node: Selecting files, Next: Publishing action, Prev: Sources and destinations, Up: Configuration
  3378. 11.1.3 Selecting files
  3379. ----------------------
  3380. By default, all files with extension `.org' in the base directory are
  3381. considered part of the project. This can be modified by setting the
  3382. properties
  3383. `:base-extension' Extension (without the dot!) of source files. This
  3384. actually is a regular expression.
  3385. `:exclude' Regular expression to match file names that should
  3386. not be published, even though they have been selected
  3387. on the basis of their extension.
  3388. `:include' List of files to be included regardless of
  3389. `:base-extension' and `:exclude'.
  3390. 
  3391. File: org, Node: Publishing action, Next: Publishing options, Prev: Selecting files, Up: Configuration
  3392. 11.1.4 Publishing Action
  3393. ------------------------
  3394. Publishing means that a file is copied to the destination directory and
  3395. possibly transformed in the process. The default transformation is to
  3396. export Org-mode files as HTML files, and this is done by the function
  3397. `org-publish-org-to-html' which calls the HTML exporter (*note HTML
  3398. export::). Other files like images only need to be copied to the
  3399. publishing destination. For non-Org-mode files, you need to specify
  3400. the publishing function.
  3401. `:publishing-function' Function executing the publication of a file.
  3402. This may also be a list of functions, which will
  3403. all be called in turn.
  3404. The function must accept two arguments: a property list containing at
  3405. least a `:publishing-directory' property, and the name of the file to
  3406. be published. It should take the specified file, make the necessary
  3407. transformation (if any) and place the result into the destination
  3408. folder. You can write your own publishing function, but `org-publish'
  3409. provides one for attachments (files that only need to be copied):
  3410. `org-publish-attachment'.
  3411. 
  3412. File: org, Node: Publishing options, Next: Publishing links, Prev: Publishing action, Up: Configuration
  3413. 11.1.5 Options for the HTML exporter
  3414. ------------------------------------
  3415. The property list can be used to set many export options for the HTML
  3416. exporter. In most cases, these properties correspond to user variables
  3417. in Org-mode. The table below lists these properties along with the
  3418. variable they belong to. See the documentation string for the
  3419. respective variable for details.
  3420. `:language' `org-export-default-language'
  3421. `:headline-levels' `org-export-headline-levels'
  3422. `:section-numbers' `org-export-with-section-numbers'
  3423. `:table-of-contents' `org-export-with-toc'
  3424. `:archived-trees' `org-export-with-archived-trees'
  3425. `:emphasize' `org-export-with-emphasize'
  3426. `:sub-superscript' `org-export-with-sub-superscripts'
  3427. `:TeX-macros' `org-export-with-TeX-macros'
  3428. `:LaTeX-fragments' `org-export-with-LaTeX-fragments'
  3429. `:fixed-width' `org-export-with-fixed-width'
  3430. `:timestamps' `org-export-with-timestamps'
  3431. .
  3432. `:tags' `org-export-with-tags'
  3433. .
  3434. `:tables' `org-export-with-tables'
  3435. `:table-auto-headline' `org-export-highlight-first-table-line'
  3436. `:style' `org-export-html-style'
  3437. `:convert-org-links' `org-export-html-link-org-files-as-html'
  3438. `:inline-images' `org-export-html-inline-images'
  3439. `:expand-quoted-html' `org-export-html-expand'
  3440. `:timestamp' `org-export-html-with-timestamp'
  3441. `:publishing-directory'`org-export-publishing-directory'
  3442. `:preamble' `org-export-html-preamble'
  3443. `:postamble' `org-export-html-postamble'
  3444. `:auto-preamble' `org-export-html-auto-preamble'
  3445. `:auto-postamble' `org-export-html-auto-postamble'
  3446. `:author' `user-full-name'
  3447. `:email' `user-mail-address'
  3448. When a property is given a value in org-publish-project-alist, its
  3449. setting overrides the value of the corresponding user variable (if any)
  3450. during publishing. options set within a file (*note Export options::),
  3451. however, override everything.
  3452. 
  3453. File: org, Node: Publishing links, Next: Project page index, Prev: Publishing options, Up: Configuration
  3454. 11.1.6 Links between published files
  3455. ------------------------------------
  3456. To create a link from one Org-mode file to another, you would use
  3457. something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
  3458. (*note Hyperlinks::). Upon publishing this link becomes a link to
  3459. `foo.html'. In this way, you can interlink the pages of your "org web"
  3460. project and the links will work as expected when you publish them to
  3461. HTML.
  3462. You may also link to related files, such as images. Provided you are
  3463. careful with relative pathnames, and provided you have also configured
  3464. org-publish to upload the related files, these links will work too.
  3465. *Note Complex example:: for an example of this usage.
  3466. Sometime an Org-mode file to be published may contain links that are
  3467. only valid in your production environment, but not in the publishing
  3468. location. In this case, use the property
  3469. `:link-validation-function' Function to validate links
  3470. to define a function for checking link validity. This function must
  3471. accept two arguments, the file name and a directory relative to which
  3472. the file name is interpreted in the production environment. If this
  3473. function returns `nil', then the HTML generator will only insert a
  3474. description into the HTML file, but no link. One option for this
  3475. function is `org-publish-validate-link' which checks if the given file
  3476. is part of any project in `org-publish-project-alist'.
  3477. 
  3478. File: org, Node: Project page index, Prev: Publishing links, Up: Configuration
  3479. 11.1.7 Project page index
  3480. -------------------------
  3481. The following properties may be used to control publishing of an index
  3482. of files or summary page for a given project.
  3483. `:auto-index' When non-nil, publish an index during
  3484. org-publish-current-project or org-publish-all.
  3485. `:index-filename' Filename for output of index. Defaults to `index.org'
  3486. (which becomes `index.html').
  3487. `:index-title' Title of index page. Defaults to name of file.
  3488. `:index-function' Plugin function to use for generation of index.
  3489. Defaults to `org-publish-org-index', which generates
  3490. a plain list of links to all files in the project.
  3491. 
  3492. File: org, Node: Sample configuration, Next: Triggering publication, Prev: Configuration, Up: Publishing
  3493. 11.2 Sample configuration
  3494. =========================
  3495. Below we provide two example configurations. The first one is a simple
  3496. project publishing only a set of Org-mode files. The second example is
  3497. more complex, with a multi-component project.
  3498. * Menu:
  3499. * Simple example:: One-component publishing
  3500. * Complex example:: A multi-component publishing example
  3501. 
  3502. File: org, Node: Simple example, Next: Complex example, Prev: Sample configuration, Up: Sample configuration
  3503. 11.2.1 Example: simple publishing configuration
  3504. -----------------------------------------------
  3505. This example publishes a set of Org-mode files to the `public_html'
  3506. directory on the local machine.
  3507. (setq org-publish-project-alist
  3508. '(("org"
  3509. :base-directory "~/org/"
  3510. :publishing-directory "~/public_html"
  3511. :section-numbers nil
  3512. :table-of-contents nil
  3513. :style "<link rel=stylesheet
  3514. href=\"../other/mystyle.css\"
  3515. type=\"text/css\">")))
  3516. 
  3517. File: org, Node: Complex example, Prev: Simple example, Up: Sample configuration
  3518. 11.2.2 Example: complex publishing configuration
  3519. ------------------------------------------------
  3520. This more complicated example publishes an entire website, including
  3521. org files converted to HTML, image files, emacs lisp source code, and
  3522. stylesheets. The publishing-directory is remote and private files are
  3523. excluded.
  3524. To ensure that links are preserved, care should be taken to replicate
  3525. your directory structure on the web server, and to use relative file
  3526. paths. For example, if your org files are kept in `~/org' and your
  3527. publishable images in `~/images', you'd link to an image with
  3528. file:../images/myimage.png
  3529. On the web server, the relative path to the image should be the
  3530. same. You can accomplish this by setting up an "images" folder in the
  3531. right place on the webserver, and publishing images to it.
  3532. (setq org-publish-project-alist
  3533. '(("orgfiles"
  3534. :base-directory "~/org/"
  3535. :base-extension "org"
  3536. :publishing-directory "/ssh:user@host:~/html/notebook/"
  3537. :publishing-function org-publish-org-to-html
  3538. :exclude "PrivatePage.org" ;; regexp
  3539. :headline-levels 3
  3540. :section-numbers nil
  3541. :table-of-contents nil
  3542. :style "<link rel=stylesheet
  3543. href=\"../other/mystyle.css\" type=\"text/css\">"
  3544. :auto-preamble t
  3545. :auto-postamble nil)
  3546. ("images"
  3547. :base-directory "~/images/"
  3548. :base-extension "jpg\\|gif\\|png"
  3549. :publishing-directory "/ssh:user@host:~/html/images/"
  3550. :publishing-function org-publish-attachment)
  3551. ("other"
  3552. :base-directory "~/other/"
  3553. :base-extension "css\\|el"
  3554. :publishing-directory "/ssh:user@host:~/html/other/"
  3555. :publishing-function org-publish-attachment)
  3556. ("website" :components ("orgfiles" "images" "other"))))
  3557. 
  3558. File: org, Node: Triggering publication, Prev: Sample configuration, Up: Publishing
  3559. 11.3 Triggering publication
  3560. ===========================
  3561. Once org-publish is properly configured, you can publish with the
  3562. following functions:
  3563. `C-c C-e c'
  3564. Prompt for a specific project and publish all files that belong to
  3565. it.
  3566. `C-c C-e p'
  3567. Publish the project containing the current file.
  3568. `C-c C-e f'
  3569. Publish only the current file.
  3570. `C-c C-e a'
  3571. Publish all projects.
  3572. Org uses timestamps to track when a file has changed. The above
  3573. functions normally only publish changed files. You can override this and
  3574. force publishing of all files by giving a prefix argument.
  3575. 
  3576. File: org, Node: Miscellaneous, Next: Extensions and Hacking, Prev: Publishing, Up: Top
  3577. 12 Miscellaneous
  3578. ****************
  3579. * Menu:
  3580. * Completion:: M-TAB knows what you need
  3581. * Customization:: Adapting Org-mode to your taste
  3582. * In-buffer settings:: Overview of the #+KEYWORDS
  3583. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  3584. * Clean view:: Getting rid of leading stars in the outline
  3585. * TTY keys:: Using Org-mode on a tty
  3586. * Interaction:: Other Emacs packages
  3587. * Bugs:: Things which do not work perfectly
  3588. 
  3589. File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
  3590. 12.1 Completion
  3591. ===============
  3592. Org-mode supports in-buffer completion. This type of completion does
  3593. not make use of the minibuffer. You simply type a few letters into the
  3594. buffer and use the key to complete text right there.
  3595. `M-<TAB>'
  3596. Complete word at point
  3597. * At the beginning of a headline, complete TODO keywords.
  3598. * After `\', complete TeX symbols supported by the exporter.
  3599. * After `*', complete headlines in the current buffer so that
  3600. they can be used in search links like `[[*find this
  3601. headline]]'.
  3602. * After `:', complete tags. The list of tags is taken from the
  3603. variable `org-tag-alist' (possibly set through the `#+TAGS'
  3604. in-buffer option, *note Setting tags::), or it is created
  3605. dynamically from all tags used in the current buffer.
  3606. * After `[', complete link abbreviations (*note Link
  3607. abbreviations::).
  3608. * After `#+', complete the special keywords like `TYP_TODO' or
  3609. `OPTIONS' which set file-specific options for Org-mode. When
  3610. the option keyword is already complete, pressing `M-<TAB>'
  3611. again will insert example settings for this keyword.
  3612. * In the line after `#+STARTUP: ', complete startup keywords,
  3613. i.e. valid keys for this line.
  3614. * Elsewhere, complete dictionary words using ispell.
  3615. 
  3616. File: org, Node: Customization, Next: In-buffer settings, Prev: Completion, Up: Miscellaneous
  3617. 12.2 Customization
  3618. ==================
  3619. There are more than 170 variables that can be used to customize
  3620. Org-mode. For the sake of compactness of the manual, I am not
  3621. describing the variables here. A structured overview of customization
  3622. variables is available with `M-x org-customize'. Or select `Browse Org
  3623. Group' from the `Org->Customization' menu. Many settings can also be
  3624. activated on a per-file basis, by putting special lines into the buffer
  3625. (*note In-buffer settings::).
  3626. 
  3627. File: org, Node: In-buffer settings, Next: The very busy C-c C-c key, Prev: Customization, Up: Miscellaneous
  3628. 12.3 Summary of in-buffer settings
  3629. ==================================
  3630. Org-mode uses special lines in the buffer to define settings on a
  3631. per-file basis. These lines start with a `#+' followed by a keyword, a
  3632. colon, and then individual words defining a setting. Several setting
  3633. words can be in the same line, but you can also have multiple lines for
  3634. the keyword. While these settings are described throughout the manual,
  3635. here is a summary. After changing any of those lines in the buffer,
  3636. press `C-c C-c' with the cursor still in the line to activate the
  3637. changes immediately. Otherwise they become effective only when the
  3638. file is visited again in a new Emacs session.
  3639. `#+STARTUP:'
  3640. This line sets options to be used at startup of org-mode, when an
  3641. Org-mode file is being visited. The first set of options deals
  3642. with the initial visibility of the outline tree. The
  3643. corresponding variable for global default settings is
  3644. `org-startup-folded', with a default value `t', which means
  3645. `overview'.
  3646. overview top-level headlines only
  3647. content all headlines
  3648. showall no folding at all, show everything
  3649. Then there are options for aligning tables upon visiting a file.
  3650. This is useful in files containing narrowed table columns. The
  3651. corresponding variable is `org-startup-align-all-tables', with a
  3652. default value `nil'.
  3653. align align all tables
  3654. noalign don't align tables on startup
  3655. Logging when a TODO item is marked DONE (variable `org-log-done')
  3656. can be configured using these options.
  3657. logging record a timestamp when an item is marked DONE
  3658. nologging don't record when items are marked DONE
  3659. Here are the options for hiding leading stars in outline headings.
  3660. The corresponding variables are `org-hide-leading-stars' and
  3661. `org-odd-levels-only', both with a default setting `nil' (meaning
  3662. `showstars' and `oddeven').
  3663. hidestars make all but one of the stars starting a headline invisible.
  3664. showstars show all stars starting a headline
  3665. odd allow only odd outline levels (1,3,...)
  3666. oddeven allow all outline levels
  3667. To turn on custom format overlays over time stamps (variables
  3668. `org-put-time-stamp-overlays' and
  3669. `org-time-stamp-overlay-formats'), use
  3670. customtime overlay custom time format
  3671. `#+SEQ_TODO: #+TYP_TODO:'
  3672. These lines set the TODO keywords and their interpretation in the
  3673. current file. The corresponding variables are `org-todo-keywords'
  3674. and `org-todo-interpretation'.
  3675. `#+TAGS: TAG1(c1) TAG2(c2)'
  3676. These lines (several such lines are allowed) specify the legal
  3677. tags in this file, and (potentially) the corresponding _fast tag
  3678. selection_ keys. The corresponding variable is `org-tag-alist'.
  3679. `#+LINK: linkword replace'
  3680. These lines (several are allowed) specify link abbreviations.
  3681. *Note Link abbreviations::. The corresponding variable is
  3682. `org-link-abbrev-alist'.
  3683. `#+CATEGORY:'
  3684. This line sets the category for the agenda file. The category
  3685. applies for all subsequent lines until the next `#+CATEGORY' line,
  3686. or the end of the file.
  3687. `#+TBLFM:'
  3688. This line contains the formulas for the table directly above the
  3689. line.
  3690. `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS:'
  3691. These lines provide settings for exporting files. For more
  3692. details see *Note Export options::.
  3693. 
  3694. File: org, Node: The very busy C-c C-c key, Next: Clean view, Prev: In-buffer settings, Up: Miscellaneous
  3695. 12.4 The very busy C-c C-c key
  3696. ==============================
  3697. The key `C-c C-c' has many purposes in org-mode, which are all
  3698. mentioned scattered throughout this manual. One specific function of
  3699. this key is to add _tags_ to a headline (*note Tags::). In many other
  3700. circumstances it means something like _Hey Org-mode, look here and
  3701. update according to what you see here_. Here is a summary of what this
  3702. means in different contexts.
  3703. - If there are highlights in the buffer from the creation of a sparse
  3704. tree, or from clock display, remove these highlights.
  3705. - If the cursor is in one of the special `#+KEYWORD' lines, this
  3706. triggers scanning the buffer for these lines and updating the
  3707. information.
  3708. - If the cursor is inside a table, realign the table. This command
  3709. works even if the automatic table editor has been turned off.
  3710. - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
  3711. entire table.
  3712. - If the cursor is inside a table created by the `table.el' package,
  3713. activate that table.
  3714. - If the current buffer is a remember buffer, close the note and
  3715. file it. With a prefix argument, file it, without further
  3716. interaction, to the default location.
  3717. - If the cursor is on a `<<<target>>>', update radio targets and
  3718. corresponding links in this buffer.
  3719. - If the cursor is in a plain list item with a checkbox, toggle the
  3720. status of the checkbox.
  3721. - If the cursor is on a numbered item in a plain list, renumber the
  3722. ordered list.
  3723. 
  3724. File: org, Node: Clean view, Next: TTY keys, Prev: The very busy C-c C-c key, Up: Miscellaneous
  3725. 12.5 A cleaner outline view
  3726. ===========================
  3727. Some people find it noisy and distracting that the Org-mode headlines
  3728. are starting with a potentially large number of stars. For example the
  3729. tree from *Note Headlines:::
  3730. * Top level headline
  3731. ** Second level
  3732. *** 3rd level
  3733. some text
  3734. *** 3rd level
  3735. more text
  3736. * Another top level headline
  3737. Unfortunately this is deeply ingrained into the code of Org-mode and
  3738. cannot be easily changed. You can, however, modify the display in such
  3739. a way that all leading stars become invisible and the outline more easy
  3740. to read. To do this, customize the variable `org-hide-leading-stars'
  3741. like this:
  3742. (setq org-hide-leading-stars t)
  3743. or change this on a per-file basis with one of the lines (anywhere in
  3744. the buffer)
  3745. #+STARTUP: showstars
  3746. #+STARTUP: hidestars
  3747. Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
  3748. modifications.
  3749. With stars hidden, the tree becomes:
  3750. * Top level headline
  3751. * Second level
  3752. * 3rd level
  3753. some text
  3754. * 3rd level
  3755. more text
  3756. * Another top level headline
  3757. Note that the leading stars are not truly replaced by whitespace, they
  3758. are only fontified with the face `org-hide' that uses the background
  3759. color as font color. If you are not using either white or black
  3760. background, you may have to customize this face to get the wanted
  3761. effect. Another possibility is to set this font such that the extra
  3762. stars are almost invisible, for example using the color `grey90' on a
  3763. white background.
  3764. Things become cleaner still if you skip all the even levels and use
  3765. only odd levels 1, 3, 5..., effectively adding two stars to go from one
  3766. outline level to the next:
  3767. * Top level headline
  3768. * Second level
  3769. * 3rd level
  3770. some text
  3771. * 3rd level
  3772. more text
  3773. * Another top level headline
  3774. In order to make the structure editing and export commands handle this
  3775. convention correctly, use
  3776. (setq org-odd-levels-only t)
  3777. or set this on a per-file basis with one of the following lines (don't
  3778. forget to press `C-c C-c' with the cursor in the startup line to
  3779. activate changes immediately).
  3780. #+STARTUP: odd
  3781. #+STARTUP: oddeven
  3782. You can convert an Org-mode file from single-star-per-level to the
  3783. double-star-per-level convention with `M-x org-convert-to-odd-levels
  3784. RET' in that file. The reverse operation is `M-x
  3785. org-convert-to-oddeven-levels'.
  3786. 
  3787. File: org, Node: TTY keys, Next: Interaction, Prev: Clean view, Up: Miscellaneous
  3788. 12.6 Using org-mode on a tty
  3789. ============================
  3790. Org-mode uses a number of keys that are not accessible on a tty. This
  3791. applies to most special keys like cursor keys, <TAB> and <RET>, when
  3792. these are combined with modifier keys like <Meta> and/or <Shift>.
  3793. Org-mode uses these bindings because it needs to provide keys for a
  3794. large number of commands, and because these keys appeared particularly
  3795. easy to remember. In order to still be able to access the core
  3796. functionality of Org-mode on a tty, alternative bindings are provided.
  3797. Here is a complete list of these bindings, which are obviously more
  3798. cumbersome to use. Note that sometimes a work-around can be better.
  3799. For example changing a time stamp is really only fun with `S-<cursor>'
  3800. keys. On a tty you would rather use `C-c .' to re-insert the
  3801. timestamp.
  3802. Default Alternative 1 Alternative 2
  3803. `S-<TAB>' `C-u <TAB>'
  3804. `M-<left>' `C-c C-x l' `<Esc> <left>'
  3805. `M-S-<left>'`C-c C-x L'
  3806. `M-<right>' `C-c C-x r' `<Esc>
  3807. <right>'
  3808. `M-S-<right>'`C-c C-x R'
  3809. `M-<up>' `C-c C-x u' `<Esc> <up>'
  3810. `M-S-<up>' `C-c C-x U'
  3811. `M-<down>' `C-c C-x d' `<Esc> <down>'
  3812. `M-S-<down>'`C-c C-x D'
  3813. `S-<RET>' `C-c C-x c'
  3814. `M-<RET>' `C-c C-x m' `<Esc> <RET>'
  3815. `M-S-<RET>' `C-c C-x M'
  3816. `S-<left>' `C-c C-x
  3817. <left>'
  3818. `S-<right>' `C-c C-x
  3819. <right>'
  3820. `S-<up>' `C-c C-x
  3821. <up>'
  3822. `S-<down>' `C-c C-x
  3823. <down>'
  3824. 
  3825. File: org, Node: Interaction, Next: Bugs, Prev: TTY keys, Up: Miscellaneous
  3826. 12.7 Interaction with other packages
  3827. ====================================
  3828. Org-mode lives in the world of GNU Emacs and interacts in various ways
  3829. with other code out there.
  3830. * Menu:
  3831. * Cooperation:: Packages Org-mode cooperates with
  3832. * Conflicts:: Packages that lead to conflicts
  3833. 
  3834. File: org, Node: Cooperation, Next: Conflicts, Prev: Interaction, Up: Interaction
  3835. 12.7.1 Packages that Org-mode cooperates with
  3836. ---------------------------------------------
  3837. `calc.el' by Dave Gillespie
  3838. Org-mode uses the calc package for implementing spreadsheet
  3839. functionality in its tables (*note Table calculations::).
  3840. Org-modes checks for the availability of calc by looking for the
  3841. function `calc-eval' which should be autoloaded in your setup if
  3842. calc has been installed properly. As of Emacs 22, calc is part of
  3843. the Emacs distribution. Another possibility for interaction
  3844. between the two packages is using calc for embedded calculations.
  3845. *Note Embedded Mode: (calc)Embedded Mode.
  3846. `constants.el' by Carsten Dominik
  3847. In a table formula (*note Table calculations::), it is possible to
  3848. use names for natural constants or units. Instead of defining
  3849. your own constants in the variable `org-table-formula-constants',
  3850. install the `constants' package which defines a large number of
  3851. constants and units, and lets you use unit prefixes like `M' for
  3852. `Mega' etc. You will need version 2.0 of this package, available
  3853. at `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for
  3854. the function `constants-get', which has to be autoloaded in your
  3855. setup. See the installation instructions in the file
  3856. `constants.el'.
  3857. `cdlatex.el' by Carsten Dominik
  3858. Org-mode can make use of the cdlatex package to efficiently enter
  3859. LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
  3860. `remember.el' by John Wiegley
  3861. Org mode cooperates with remember, see *Note Remember::.
  3862. `Remember.el' is not part of Emacs, find it on the web.
  3863. `table.el' by Takaaki Ota
  3864. Org mode cooperates with table.el, see *Note table.el::.
  3865. `table.el' is part of Emacs 22.
  3866. 
  3867. File: org, Node: Conflicts, Prev: Cooperation, Up: Interaction
  3868. 12.7.2 Packages that lead to conflicts with Org-mode
  3869. ----------------------------------------------------
  3870. `allout.el' by Ken Manheimer
  3871. Startup of Org-mode may fail with the error message
  3872. `(wrong-type-argument keymapp nil)' when there is an outdated
  3873. version `allout.el' on the load path, for example the version
  3874. distributed with Emacs 21.x. Upgrade to Emacs 22 and this problem
  3875. will disappear. If for some reason you cannot do this, make sure
  3876. that org.el is loaded _before_ `allout.el', for example by putting
  3877. `(require 'org)' early enough into your `.emacs' file.
  3878. `CUA.el' by Kim. F. Storm
  3879. Keybindings in Org-mode conflict with the `S-<cursor>' keys used
  3880. by CUA-mode (as well as pc-select-mode and s-region-mode) to
  3881. select and extend the region. If you want to use one of these
  3882. packages along with Org-mode, configure the variable
  3883. `org-CUA-compatible'. When set, Org-mode will move the following
  3884. keybindings in org-mode files, and in the agenda buffer (but not
  3885. during date selection).
  3886. S-UP -> M-p S-DOWN -> M-n
  3887. S-LEFT -> M-- S-RIGHT -> M-+
  3888. S-RET -> C-S-RET
  3889. Yes, these are unfortunately more difficult to remember. If you
  3890. want to have other replacement keys, look at the variable
  3891. `org-disputed-keys'.
  3892. `windmove.el' by Hovav Shacham
  3893. Also this package uses the `S-<cursor>' keys, so everything written
  3894. in the paragraph above about CUA mode also applies here.
  3895. 
  3896. File: org, Node: Bugs, Prev: Interaction, Up: Miscellaneous
  3897. 12.8 Bugs
  3898. =========
  3899. Here is a list of things that should work differently, but which I have
  3900. found too hard to fix.
  3901. * If a table field starts with a link, and if the corresponding table
  3902. column is narrowed (*note Narrow columns::) to a width too small to
  3903. display the link, the field would look entirely empty even though
  3904. it is not. To prevent this, Org-mode throws an error. The
  3905. work-around is to make the column wide enough to fit the link, or
  3906. to add some text (at least 2 characters) before the link in the
  3907. same field.
  3908. * Narrowing table columns does not work on XEmacs, because the
  3909. `format' function does not transport text properties.
  3910. * Text in an entry protected with the `QUOTE' keyword should not
  3911. autowrap.
  3912. * When the application called by `C-c C-o' to open a file link fails
  3913. (for example because the application does not exist or refuses to
  3914. open the file), it does so silently. No error message is
  3915. displayed.
  3916. * Recalculating a table line applies the formulas from left to right.
  3917. If a formula uses _calculated_ fields further down the row,
  3918. multiple recalculation may be needed to get all fields consistent.
  3919. * A single letter cannot be made bold, for example `*a*'.
  3920. * The exporters work well, but could be made more efficient.
  3921. 
  3922. File: org, Node: Extensions and Hacking, Next: History and Acknowledgments, Prev: Miscellaneous, Up: Top
  3923. Appendix A Extensions, Hooks and Hacking
  3924. ****************************************
  3925. This appendix lists extensions for Org-mode written by other authors.
  3926. It also covers some aspects where users can extend the functionality of
  3927. Org-mode.
  3928. * Menu:
  3929. * Extensions:: Existing 3rd-part extensions
  3930. * Dynamic blocks:: Automatically filled blocks
  3931. * Special agenda views::
  3932. 
  3933. File: org, Node: Extensions, Next: Dynamic blocks, Prev: Extensions and Hacking, Up: Extensions and Hacking
  3934. A.1 Third-party extensions for Org-mode
  3935. =======================================
  3936. The following extensions for Org-mode have been written by other people:
  3937. `org-publish.el' by David O'Toole
  3938. This package provides facilities for publishing related sets of
  3939. Org-mode files together with linked files like images as a
  3940. webpages. It is highly configurable and can be used for other
  3941. publishing purposes as well. As of Org-mode version 4.30,
  3942. `org-publish.el' is part of the Org-mode distribution. It is not
  3943. yet part of Emacs, however, a delay caused by the preparations for
  3944. the 22.1 release. In the mean time, `org-publish.el' can be
  3945. downloaded from David's site:
  3946. `http://dto.freeshell.org/e/org-publish.el'.
  3947. `org-mouse.el' by Piotr Zielinski
  3948. This package implements extended mouse functionality for Org-mode.
  3949. It allows you to cycle visibility and to edit the document
  3950. structure with the mouse. Best of all, it provides a
  3951. context-sensitive menu on <mouse-3> that changes depending on the
  3952. context of a mouse-click. As of Org-mode version 4.53,
  3953. `org-mouse.el' is part of the Org-mode distribution. It is not
  3954. yet part of Emacs, however, a delay caused by the preparations for
  3955. the 22.1 release. In the mean time, `org-mouse.el' can be
  3956. downloaded from Piotr's site:
  3957. `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.
  3958. `org-blog.el' by David O'Toole
  3959. A blogging plug-in for `org-publish.el'.
  3960. `http://dto.freeshell.org/notebook/OrgMode.html'.
  3961. `blorg.el' by Bastien Guerry
  3962. Publish Org-mode files as blogs.
  3963. `http://www.cognition.ens.fr/~guerry/blorg.html'.
  3964. 
  3965. File: org, Node: Dynamic blocks, Next: Special agenda views, Prev: Extensions, Up: Extensions and Hacking
  3966. A.2 Dynamic blocks
  3967. ==================
  3968. Org-mode documents can contain _dynamic blocks_. These are specially
  3969. marked regions that are updated by some user-written function. A good
  3970. example for such a block is the clock table inserted by the command
  3971. `C-c C-x C-r' (*note Clocking work time::).
  3972. Dynamic block are enclosed by a BEGIN-END structure that assigns a
  3973. name to the block and can also specify parameters for the function
  3974. producing the content of the block.
  3975. #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
  3976. #+END:
  3977. Dynamic blocks are updated with the following commands
  3978. `C-c C-x C-u'
  3979. Update dynamic block at point.
  3980. `C-u C-c C-x C-u'
  3981. Update all dynamic blocks in the current file.
  3982. Updating a dynamic block means to remove all the text between BEGIN
  3983. and END, parse the BEGIN line for parameters and then call the specific
  3984. writer function for this block to insert the new content. For a block
  3985. with name `myblock', the writer function is `org-dblock-write:myblock'
  3986. with as only parameter a property list with the parameters given in the
  3987. begin line. Here is a trivial example of a block that keeps track of
  3988. when the block update function was last run:
  3989. #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
  3990. #+END:
  3991. The corresponding block writer function could look like this:
  3992. (defun org-dblock-write:block-update-time (params)
  3993. (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
  3994. (insert "Last block update at: "
  3995. (format-time-string fmt (current-time)))))
  3996. If you want to make sure that all dynamic blocks are always
  3997. up-to-date, you could add the function `org-update-all-dblocks' to a
  3998. hook, for example `before-save-hook'. `org-update-all-dblocks' is
  3999. written in a way that is does nothing in buffers that are not in
  4000. Org-mode.
  4001. 
  4002. File: org, Node: Special agenda views, Prev: Dynamic blocks, Up: Extensions and Hacking
  4003. A.3 Special Agenda Views
  4004. ========================
  4005. Org-mode provides a special hook that can be used to narrow down the
  4006. selection made by any of the agenda views. You may specify a function
  4007. that is used at each match to verify if the match should indeed be part
  4008. of the agenda view, and if not, how much should be skipped.
  4009. Let's say you want to produce a list of projects that contain a
  4010. WAITING tag anywhere in the project tree. Let's further assume that
  4011. you have marked all tree headings that define a project with the todo
  4012. keyword PROJECT. In this case you would run a todo search for the
  4013. keyword PROJECT, but skip the match unless there is a WAITING tag
  4014. anywhere in the subtree belonging to the project line..
  4015. To achieve this, you must write a function that searches the subtree
  4016. for the tag. If the tag is found, the function must return `nil' to
  4017. indicate that this match should not be skipped. If there is no such
  4018. tag, return the location of the end of the subtree, to indicate that
  4019. search should continue from there.
  4020. (defun my-skip-unless-waiting ()
  4021. "Skip trees that are not waiting"
  4022. (let ((subtree-end (save-excursion (org-end-of-subtree t))))
  4023. (if (re-search-forward ":WAITING:" subtree-end t)
  4024. nil ; tag found, do not skip
  4025. subtree-end))) ; tag not found, continue after end of subtree
  4026. Furthermore you must write a command that uses `let' to temporarily
  4027. puts this function into the variable `org-agenda-skip-function', sets
  4028. the header string for the agenda buffer, and calls the todo-list
  4029. generator while asking for the specific TODO keyword PROJECT. The
  4030. function must also accept one argument MATCH, but it can choose to
  4031. ignore it(1) (as we do in the example below). Here is the example:
  4032. (defun my-org-waiting-projects (&optional match)
  4033. "Produce a list of projects that contain a WAITING tag.
  4034. MATCH is being ignored."
  4035. (interactive)
  4036. (let ((org-agenda-skip-function 'my-skip-unless-waiting)
  4037. (org-agenda-overriding-header "Projects waiting for something: "))
  4038. ;; make the list
  4039. (org-todo-list "PROJECT")))
  4040. ---------- Footnotes ----------
  4041. (1) MATCH must be present in case you want to define a custom
  4042. command for producing this special list. Custom commands always supply
  4043. the MATCH argument, but it can be empty if you do not specify it while
  4044. defining the command(*note Custom agenda views::).
  4045. 
  4046. File: org, Node: History and Acknowledgments, Next: Index, Prev: Extensions and Hacking, Up: Top
  4047. Appendix B History and Acknowledgments
  4048. **************************************
  4049. Org-mode was borne in 2003, out of frustration over the user interface
  4050. of the Emacs outline-mode. All I wanted was to make working with an
  4051. outline tree possible without having to remember more than 10 commands
  4052. just for hiding and unhiding parts of the outline tree, and to allow to
  4053. restructure a tree easily. Visibility cycling and structure editing
  4054. were originally implemented in the package `outline-magic.el', but
  4055. quickly moved to the more general `org.el'. TODO entries, basic time
  4056. stamps, and table support were added next, and highlight the two main
  4057. goals that Org-mode still has today: To create a new, outline-based,
  4058. plain text mode with innovative and intuitive editing features, and to
  4059. incorporate project planning functionality directly into a notes file.
  4060. Since the first release, hundreds of emails to me or on
  4061. `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
  4062. feedback, new ideas, and sometimes even patches and add-on code. Many
  4063. thanks to everyone who has helped to improve this package. I am trying
  4064. to keep here a list of the people who had significant influence in
  4065. shaping one or more aspects of Org-mode. The list may not be complete,
  4066. if I have forgotten someone, please accept my apologies and let me know.
  4067. * Thomas Baumann contributed the code for links to the MH-E email
  4068. system.
  4069. * Alex Bochannek provided a patch for rounding time stamps.
  4070. * Charles Cave's suggestion sparked the implementation of templates
  4071. for Remember.
  4072. * Pavel Chalmoviansky influenced the agenda treatment of items with
  4073. specified time.
  4074. * Gregory Chernov patched support for lisp forms into table
  4075. calculations and improved XEmacs compatibility, in particular by
  4076. porting `nouline.el' to XEmacs.
  4077. * Sacha Chua suggested to copy some linking code from Planner.
  4078. * Eddward DeVilla proposed and tested checkbox statistics.
  4079. * Kees Dullemond inspired the use of narrowed tabled columns.
  4080. * Christian Egli converted the documentation into TeXInfo format,
  4081. patched CSS formatting into the HTML exporter, and inspired the
  4082. agenda.
  4083. * Nic Ferrier contributed mailcap and XOXO support.
  4084. * Niels Giessen had the idea to automatically archive DONE trees.
  4085. * Bastien Guerry provided extensive feedback.
  4086. * Kai Grossjohann pointed out key-binding conflicts with other
  4087. packages.
  4088. * Leon Liu asked for embedded LaTeX and tested it.
  4089. * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
  4090. happy.
  4091. * Todd Neal provided patches for links to Info files and elisp forms.
  4092. * Tim O'Callaghan suggested in-file links, search options for general
  4093. file links, and TAGS.
  4094. * Oliver Oppitz suggested multi-state TODO items.
  4095. * Scott Otterson sparked the introduction of descriptive text for
  4096. links, among other things.
  4097. * Pete Phillips helped during the development of the TAGS feature,
  4098. and provided frequent feedback.
  4099. * T.V. Raman reported bugs and suggested improvements.
  4100. * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
  4101. control.
  4102. * Kevin Rogers contributed code to access VM files on remote hosts.
  4103. * Frank Ruell solved the mystery of the `keymapp nil' bug, a
  4104. conflict with `allout.el'.
  4105. * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
  4106. * Philip Rooke created the Org-mode reference card and provided lots
  4107. of feedback.
  4108. * Christian Schlauer proposed angular brackets around links, among
  4109. other things.
  4110. * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
  4111. `organizer-mode.el'.
  4112. * Daniel Sinder came up with the idea of internal archiving by
  4113. locking subtrees.
  4114. * Dale Smith proposed link abbreviations.
  4115. * David O'Toole wrote `org-publish.el' and drafted the manual
  4116. chapter about publishing.
  4117. * Ju"rgen Vollmer contributed code generating the table of contents
  4118. in HTML output.
  4119. * Chris Wallace provided a patch implementing the `QUOTE' keyword.
  4120. * David Wainberg suggested archiving, and improvements to the linking
  4121. system.
  4122. * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
  4123. development of Org-mode was fully independent, and both systems are
  4124. really different beasts in their basic ideas and implementation
  4125. details. I later looked at John's code, however, and learned from
  4126. his implementation of (i) links where the link itself is hidden
  4127. and only a description is shown, and (ii) popping up a calendar to
  4128. select a date.
  4129. * Carsten Wimmer suggested some changes and helped fix a bug in
  4130. linking to GNUS.
  4131. * Roland Winkler requested additional keybindings to make Org-mode
  4132. work on a tty.
  4133. * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
  4134. contributed various ideas and code snippets.
  4135. 
  4136. File: org, Node: Index, Next: Key Index, Prev: History and Acknowledgments, Up: Top
  4137. Index
  4138. *****
  4139. �[index�]
  4140. * Menu:
  4141. * abbreviation, links: Link abbreviations. (line 6)
  4142. * acknowledgments: History and Acknowledgments.
  4143. (line 6)
  4144. * action, for publishing: Publishing action. (line 6)
  4145. * activation: Activation. (line 6)
  4146. * active region <1>: HTML export. (line 10)
  4147. * active region <2>: ASCII export. (line 9)
  4148. * active region <3>: Built-in table editor.
  4149. (line 171)
  4150. * active region: Structure editing. (line 64)
  4151. * agenda: Weekly/Daily agenda. (line 6)
  4152. * agenda dispatcher: Agenda dispatcher. (line 6)
  4153. * agenda files: Agenda files. (line 6)
  4154. * agenda files, removing buffers: Agenda commands. (line 231)
  4155. * agenda views: Agenda views. (line 6)
  4156. * agenda views, custom: Custom agenda views. (line 6)
  4157. * agenda, batch production: Batch processing. (line 6)
  4158. * agenda, with block views: Block agenda. (line 6)
  4159. * allout.el: Conflicts. (line 6)
  4160. * angular brackets, around links: External links. (line 38)
  4161. * applescript, for calendar update: iCalendar export. (line 38)
  4162. * archive locations: Moving subtrees. (line 21)
  4163. * archiving: Archiving. (line 6)
  4164. * ASCII export: ASCII export. (line 6)
  4165. * author: Feedback. (line 6)
  4166. * autoload: Activation. (line 6)
  4167. * backtrace of an error: Feedback. (line 27)
  4168. * BBDB links: External links. (line 6)
  4169. * block agenda: Block agenda. (line 6)
  4170. * blorg.el: Extensions. (line 33)
  4171. * bold text: Enhancing text. (line 15)
  4172. * Boolean logic, for tag searches: Tag searches. (line 23)
  4173. * bug reports: Feedback. (line 6)
  4174. * bugs: Bugs. (line 6)
  4175. * C-c C-c, overview: The very busy C-c C-c key.
  4176. (line 6)
  4177. * calc package: Table calculations. (line 6)
  4178. * calc.el: Cooperation. (line 6)
  4179. * calculations, in tables <1>: Table calculations. (line 6)
  4180. * calculations, in tables: Built-in table editor.
  4181. (line 141)
  4182. * calendar commands, from agenda: Agenda commands. (line 192)
  4183. * calendar integration: Weekly/Daily agenda. (line 24)
  4184. * calendar, for selecting date: The date/time prompt.
  4185. (line 26)
  4186. * CamelCase link completion: Completion. (line 6)
  4187. * CamelCase links: Internal links. (line 6)
  4188. * CamelCase links, completion of: CamelCase links. (line 6)
  4189. * category: Categories. (line 6)
  4190. * CDLaTeX: CDLaTeX mode. (line 6)
  4191. * cdlatex.el: Cooperation. (line 29)
  4192. * checkbox statistics: Checkboxes. (line 23)
  4193. * checkboxes: Checkboxes. (line 6)
  4194. * children, subtree visibility state: Visibility cycling. (line 10)
  4195. * clean outline view: Clean view. (line 6)
  4196. * CLOCK keyword: Time stamps. (line 71)
  4197. * CLOSED keyword: Time stamps. (line 65)
  4198. * column formula: Column formulas. (line 6)
  4199. * commands, in agenda buffer: Agenda commands. (line 6)
  4200. * comment lines: Comment lines. (line 6)
  4201. * completion, of CamelCase links <1>: Completion. (line 6)
  4202. * completion, of CamelCase links: CamelCase links. (line 6)
  4203. * completion, of dictionary words: Completion. (line 6)
  4204. * completion, of file names: Handling links. (line 43)
  4205. * completion, of links: Handling links. (line 27)
  4206. * completion, of option keywords <1>: Completion. (line 6)
  4207. * completion, of option keywords: Export options. (line 6)
  4208. * Completion, of option keywords: Per file keywords. (line 17)
  4209. * completion, of tags <1>: Completion. (line 6)
  4210. * completion, of tags: Setting tags. (line 11)
  4211. * completion, of TeX symbols: Completion. (line 6)
  4212. * completion, of TODO keywords <1>: Completion. (line 6)
  4213. * completion, of TODO keywords: Workflow states. (line 12)
  4214. * constants, in calculations: Formula syntax. (line 26)
  4215. * constants.el: Cooperation. (line 14)
  4216. * contents, global visibility state: Visibility cycling. (line 22)
  4217. * copying, of subtrees: Structure editing. (line 6)
  4218. * creating timestamps: Creating timestamps. (line 6)
  4219. * CUA.el: Conflicts. (line 15)
  4220. * custom agenda views: Custom agenda views. (line 6)
  4221. * custom date/time format: Custom time format. (line 6)
  4222. * custom search strings: Custom searches. (line 6)
  4223. * customization: Customization. (line 6)
  4224. * cutting, of subtrees: Structure editing. (line 6)
  4225. * cycling, of TODO states: TODO basics. (line 13)
  4226. * cycling, visibility: Visibility cycling. (line 6)
  4227. * daily agenda: Weekly/Daily agenda. (line 6)
  4228. * date format, custom: Custom time format. (line 6)
  4229. * date stamps <1>: Time stamps. (line 6)
  4230. * date stamps: Timestamps. (line 6)
  4231. * date, reading in minibuffer: The date/time prompt.
  4232. (line 6)
  4233. * DEADLINE keyword: Time stamps. (line 53)
  4234. * deadlines: Time stamps. (line 6)
  4235. * demotion, of subtrees: Structure editing. (line 6)
  4236. * diary entries, creating from agenda: Agenda commands. (line 199)
  4237. * diary integration: Weekly/Daily agenda. (line 24)
  4238. * dictionary word completion: Completion. (line 6)
  4239. * directories, for publishing: Sources and destinations.
  4240. (line 6)
  4241. * dispatching agenda commands: Agenda dispatcher. (line 6)
  4242. * display changing, in agenda: Agenda commands. (line 66)
  4243. * document structure: Document structure. (line 6)
  4244. * DONE, final TODO keyword: Per file keywords. (line 20)
  4245. * editing tables: Tables. (line 6)
  4246. * editing, of table formulas: Editing/debugging formulas.
  4247. (line 6)
  4248. * elisp links: External links. (line 6)
  4249. * emphasized text: Export options. (line 25)
  4250. * enhancing text: Enhancing text. (line 6)
  4251. * evaluate time range: Creating timestamps. (line 66)
  4252. * exporting: Exporting. (line 6)
  4253. * exporting, not: Comment lines. (line 6)
  4254. * extended TODO keywords: TODO extensions. (line 6)
  4255. * external archiving: Moving subtrees. (line 6)
  4256. * external links: External links. (line 6)
  4257. * external links, in HTML export: HTML export. (line 35)
  4258. * FAQ: Summary. (line 51)
  4259. * feedback: Feedback. (line 6)
  4260. * file links: External links. (line 6)
  4261. * file links, searching: Search options. (line 6)
  4262. * file name completion: Handling links. (line 43)
  4263. * files for agenda: Agenda files. (line 6)
  4264. * files, adding to agenda list: Agenda files. (line 12)
  4265. * files, selecting for publishing: Selecting files. (line 6)
  4266. * fixed width: Enhancing text. (line 25)
  4267. * fixed-width sections: Export options. (line 25)
  4268. * folded, subtree visibility state: Visibility cycling. (line 10)
  4269. * folding, sparse trees: Sparse trees. (line 6)
  4270. * following links: Handling links. (line 58)
  4271. * format specifier: Formula syntax. (line 34)
  4272. * format, of links: Link format. (line 6)
  4273. * formula editing: Editing/debugging formulas.
  4274. (line 6)
  4275. * formula syntax: Formula syntax. (line 6)
  4276. * formula, for named table field: Named-field formulas.
  4277. (line 6)
  4278. * formula, for table column: Column formulas. (line 6)
  4279. * formula, in tables: Built-in table editor.
  4280. (line 141)
  4281. * global cycling: Visibility cycling. (line 22)
  4282. * global keybindings: Activation. (line 6)
  4283. * global TODO list: Global TODO list. (line 6)
  4284. * global visibility states: Visibility cycling. (line 22)
  4285. * GNUS links: External links. (line 6)
  4286. * hand-formatted lists: Enhancing text. (line 11)
  4287. * headline levels: Export options. (line 25)
  4288. * headline levels, for exporting <1>: HTML export. (line 21)
  4289. * headline levels, for exporting: ASCII export. (line 18)
  4290. * headline navigation: Motion. (line 6)
  4291. * headline tagging: Tags. (line 6)
  4292. * headline, promotion and demotion: Structure editing. (line 6)
  4293. * headlines: Headlines. (line 6)
  4294. * hide text: Visibility cycling. (line 6)
  4295. * hiding leading stars: Clean view. (line 6)
  4296. * history: History and Acknowledgments.
  4297. (line 6)
  4298. * HTML export: HTML export. (line 6)
  4299. * hyperlinks: Hyperlinks. (line 6)
  4300. * iCalendar export: iCalendar export. (line 6)
  4301. * in-buffer settings: In-buffer settings. (line 6)
  4302. * inactive timestamp: Time stamps. (line 24)
  4303. * index, of published pages: Project page index. (line 6)
  4304. * Info links: External links. (line 6)
  4305. * inheritance, of tags: Tag inheritance. (line 6)
  4306. * inserting links: Handling links. (line 27)
  4307. * installation: Installation. (line 6)
  4308. * internal archiving: ARCHIVE tag. (line 6)
  4309. * internal links: Internal links. (line 6)
  4310. * internal links, in HTML export: HTML export. (line 35)
  4311. * introduction: Introduction. (line 6)
  4312. * italic text: Enhancing text. (line 15)
  4313. * jumping, to headlines: Motion. (line 6)
  4314. * keybindings, global: Activation. (line 6)
  4315. * keyword options: Per file keywords. (line 6)
  4316. * LaTeX fragments <1>: Export options. (line 25)
  4317. * LaTeX fragments: LaTeX fragments. (line 6)
  4318. * LaTeX fragments, export: Enhancing text. (line 18)
  4319. * LaTeX fragments, preview: Processing LaTeX fragments.
  4320. (line 6)
  4321. * LaTeX interpretation: Embedded LaTeX. (line 6)
  4322. * level, require for tags match: Tag searches. (line 68)
  4323. * linebreak preservation: Export options. (line 25)
  4324. * linebreak, forced: Enhancing text. (line 32)
  4325. * link abbreviations: Link abbreviations. (line 6)
  4326. * link completion: Handling links. (line 27)
  4327. * link format: Link format. (line 6)
  4328. * links, external: External links. (line 6)
  4329. * links, handling: Handling links. (line 6)
  4330. * links, in HTML export: HTML export. (line 35)
  4331. * links, internal: Internal links. (line 6)
  4332. * links, publishing: Publishing links. (line 6)
  4333. * links, radio targets: Radio targets. (line 6)
  4334. * links, returning to: Handling links. (line 85)
  4335. * Lisp forms, as table formulas: Lisp formulas. (line 6)
  4336. * lists, hand-formatted: Enhancing text. (line 11)
  4337. * lists, ordered: Plain lists. (line 6)
  4338. * lists, plain: Plain lists. (line 6)
  4339. * logging, of progress: Progress logging. (line 6)
  4340. * maintainer: Feedback. (line 6)
  4341. * mark ring: Handling links. (line 81)
  4342. * marking characters, tables: Advanced features. (line 34)
  4343. * matching, of tags: Matching headline tags.
  4344. (line 6)
  4345. * matching, tags: Tags. (line 6)
  4346. * math symbols: Math symbols. (line 6)
  4347. * MH-E links: External links. (line 6)
  4348. * minor mode for tables: orgtbl-mode. (line 6)
  4349. * mode, for calc: Formula syntax. (line 34)
  4350. * motion commands in agenda: Agenda commands. (line 19)
  4351. * motion, between headlines: Motion. (line 6)
  4352. * name, of column or field: Formula syntax. (line 26)
  4353. * named field formula: Named-field formulas.
  4354. (line 6)
  4355. * names as TODO keywords: TODO types. (line 6)
  4356. * narrow columns in tables: Narrow columns. (line 6)
  4357. * occur, command: Sparse trees. (line 6)
  4358. * option keyword completion: Completion. (line 6)
  4359. * options, for custom agenda views: Setting Options. (line 6)
  4360. * options, for customization: Customization. (line 6)
  4361. * options, for export: Export options. (line 6)
  4362. * options, for publishing: Publishing options. (line 6)
  4363. * ordered lists: Plain lists. (line 6)
  4364. * org-agenda, command: Weekly/Daily agenda. (line 9)
  4365. * org-blog.el: Extensions. (line 29)
  4366. * org-mode, turning on: Activation. (line 22)
  4367. * org-mouse.el: Extensions. (line 17)
  4368. * org-publish-project-alist: Project alist. (line 6)
  4369. * org-publish.el: Extensions. (line 8)
  4370. * orgtbl-mode: orgtbl-mode. (line 6)
  4371. * outline tree: Headlines. (line 6)
  4372. * outline-mode: Outlines. (line 6)
  4373. * outlines: Outlines. (line 6)
  4374. * overview, global visibility state: Visibility cycling. (line 22)
  4375. * packages, interaction with other: Interaction. (line 6)
  4376. * pasting, of subtrees: Structure editing. (line 6)
  4377. * per file keywords: Per file keywords. (line 6)
  4378. * plain lists: Plain lists. (line 6)
  4379. * plain text external links: External links. (line 38)
  4380. * presentation, of agenda items: Presentation and sorting.
  4381. (line 6)
  4382. * printing sparse trees: Sparse trees. (line 41)
  4383. * priorities: Priorities. (line 6)
  4384. * priorities, of agenda items: Sorting of agenda items.
  4385. (line 6)
  4386. * progress logging: Progress logging. (line 6)
  4387. * projects, for publishing: Project alist. (line 6)
  4388. * promotion, of subtrees: Structure editing. (line 6)
  4389. * publishing: Publishing. (line 6)
  4390. * quoted HTML tags: Export options. (line 25)
  4391. * radio targets: Radio targets. (line 6)
  4392. * ranges, time: Time stamps. (line 6)
  4393. * recomputing table fields: Column formulas. (line 27)
  4394. * region, active <1>: HTML export. (line 10)
  4395. * region, active <2>: ASCII export. (line 9)
  4396. * region, active <3>: Built-in table editor.
  4397. (line 171)
  4398. * region, active: Structure editing. (line 64)
  4399. * regular expressions, with tags search: Tag searches. (line 63)
  4400. * remember.el <1>: Cooperation. (line 33)
  4401. * remember.el: Remember. (line 6)
  4402. * remote editing, from agenda: Agenda commands. (line 107)
  4403. * remote editing, undo: Agenda commands. (line 110)
  4404. * richer text: Enhancing text. (line 6)
  4405. * RMAIL links: External links. (line 6)
  4406. * SCHEDULED keyword: Time stamps. (line 40)
  4407. * scheduling: Time stamps. (line 6)
  4408. * search option in file links: Search options. (line 6)
  4409. * search strings, custom: Custom searches. (line 6)
  4410. * searching for tags: Tag searches. (line 6)
  4411. * section-numbers: Export options. (line 25)
  4412. * setting tags: Setting tags. (line 6)
  4413. * SHELL links: External links. (line 6)
  4414. * show all, command: Visibility cycling. (line 31)
  4415. * show all, global visibility state: Visibility cycling. (line 22)
  4416. * show hidden text: Visibility cycling. (line 6)
  4417. * sorting, of agenda items: Sorting of agenda items.
  4418. (line 6)
  4419. * sparse tree, for deadlines: Creating timestamps. (line 41)
  4420. * sparse tree, for TODO: TODO basics. (line 26)
  4421. * sparse tree, tag based: Tags. (line 6)
  4422. * sparse trees: Sparse trees. (line 6)
  4423. * special keywords: In-buffer settings. (line 6)
  4424. * spreadsheet capabilities: Table calculations. (line 6)
  4425. * statistics, for checkboxes: Checkboxes. (line 23)
  4426. * storing links: Handling links. (line 9)
  4427. * structure editing: Structure editing. (line 6)
  4428. * structure of document: Document structure. (line 6)
  4429. * sublevels, inclusion into tags match: Tag inheritance. (line 6)
  4430. * sublevels, inclusion into todo list: Global TODO list. (line 33)
  4431. * subscript: Subscripts and Superscripts.
  4432. (line 6)
  4433. * subtree cycling: Visibility cycling. (line 10)
  4434. * subtree visibility states: Visibility cycling. (line 10)
  4435. * subtree, cut and paste: Structure editing. (line 6)
  4436. * subtree, subtree visibility state: Visibility cycling. (line 10)
  4437. * subtrees, cut and paste: Structure editing. (line 6)
  4438. * summary: Summary. (line 6)
  4439. * superscript: Subscripts and Superscripts.
  4440. (line 6)
  4441. * syntax, of formulas: Formula syntax. (line 6)
  4442. * table editor, builtin: Built-in table editor.
  4443. (line 6)
  4444. * table editor, table.el: table.el. (line 6)
  4445. * table of contents: Export options. (line 25)
  4446. * table.el <1>: Cooperation. (line 34)
  4447. * table.el: table.el. (line 6)
  4448. * tables <1>: Export options. (line 25)
  4449. * tables: Tables. (line 6)
  4450. * tables, export: Enhancing text. (line 21)
  4451. * tag completion: Completion. (line 6)
  4452. * tag searches: Tag searches. (line 6)
  4453. * tags: Tags. (line 6)
  4454. * tags view: Matching headline tags.
  4455. (line 6)
  4456. * tags, setting: Setting tags. (line 6)
  4457. * targets, for links: Internal links. (line 6)
  4458. * targets, radio: Radio targets. (line 6)
  4459. * tasks, breaking down: Breaking down tasks. (line 6)
  4460. * templates, for remember: Remember. (line 23)
  4461. * TeX interpretation: Embedded LaTeX. (line 6)
  4462. * TeX macros <1>: Export options. (line 25)
  4463. * TeX macros: Math symbols. (line 6)
  4464. * TeX macros, export: Enhancing text. (line 18)
  4465. * TeX symbol completion: Completion. (line 6)
  4466. * TeX-like syntax for sub- and superscripts: Export options. (line 25)
  4467. * thanks: History and Acknowledgments.
  4468. (line 6)
  4469. * time format, custom: Custom time format. (line 6)
  4470. * time grid: Time-of-day specifications.
  4471. (line 26)
  4472. * time stamps <1>: Time stamps. (line 6)
  4473. * time stamps: Timestamps. (line 6)
  4474. * time, reading in minibuffer: The date/time prompt.
  4475. (line 6)
  4476. * time-of-day specification: Time-of-day specifications.
  4477. (line 6)
  4478. * time-sorted view: Timeline. (line 6)
  4479. * timeline, single file: Timeline. (line 6)
  4480. * timerange: Time stamps. (line 31)
  4481. * timestamp: Time stamps. (line 14)
  4482. * timestamp, inactive: Time stamps. (line 24)
  4483. * timestamps, creating: Creating timestamps. (line 6)
  4484. * TODO items: TODO items. (line 6)
  4485. * TODO keyword matching: Global TODO list. (line 17)
  4486. * TODO keyword matching, with tags search: Tag searches. (line 40)
  4487. * TODO keywords completion: Completion. (line 6)
  4488. * TODO list, global: Global TODO list. (line 6)
  4489. * TODO types: TODO types. (line 6)
  4490. * TODO workflow: Workflow states. (line 6)
  4491. * transient-mark-mode <1>: HTML export. (line 10)
  4492. * transient-mark-mode <2>: ASCII export. (line 9)
  4493. * transient-mark-mode <3>: Built-in table editor.
  4494. (line 171)
  4495. * transient-mark-mode: Structure editing. (line 64)
  4496. * trees, sparse: Sparse trees. (line 6)
  4497. * trees, visibility: Visibility cycling. (line 6)
  4498. * tty keybindings: TTY keys. (line 6)
  4499. * types as TODO keywords: TODO types. (line 6)
  4500. * underlined text: Enhancing text. (line 15)
  4501. * undoing remote-editing events: Agenda commands. (line 110)
  4502. * URL links: External links. (line 6)
  4503. * USENET links: External links. (line 6)
  4504. * variables, for customization: Customization. (line 6)
  4505. * vectors, in table calculations: Formula syntax. (line 23)
  4506. * visibility cycling: Visibility cycling. (line 6)
  4507. * visible text, printing: Sparse trees. (line 41)
  4508. * VM links: External links. (line 6)
  4509. * WANDERLUST links: External links. (line 6)
  4510. * weekly agenda: Weekly/Daily agenda. (line 6)
  4511. * windmove.el: Conflicts. (line 33)
  4512. * workflow states as TODO keywords: Workflow states. (line 6)
  4513. * XEmacs: Installation. (line 6)
  4514. * XOXO export: XOXO export. (line 6)
  4515. 
  4516. File: org, Node: Key Index, Prev: Index, Up: Top
  4517. Key Index
  4518. *********
  4519. �[index�]
  4520. * Menu:
  4521. * $: Agenda commands. (line 124)
  4522. * ': CDLaTeX mode. (line 43)
  4523. * +: Agenda commands. (line 146)
  4524. * ,: Agenda commands. (line 138)
  4525. * -: Agenda commands. (line 152)
  4526. * .: Agenda commands. (line 101)
  4527. * :: Agenda commands. (line 132)
  4528. * <: The date/time prompt.
  4529. (line 29)
  4530. * <left>: Agenda commands. (line 98)
  4531. * <RET> <1>: Agenda commands. (line 41)
  4532. * <RET> <2>: Setting tags. (line 76)
  4533. * <RET> <3>: The date/time prompt.
  4534. (line 54)
  4535. * <RET>: Built-in table editor.
  4536. (line 64)
  4537. * <right>: Agenda commands. (line 93)
  4538. * <SPC> <1>: Agenda commands. (line 28)
  4539. * <SPC>: Setting tags. (line 73)
  4540. * <TAB> <1>: CDLaTeX mode. (line 23)
  4541. * <TAB> <2>: Agenda commands. (line 35)
  4542. * <TAB> <3>: Setting tags. (line 68)
  4543. * <TAB> <4>: Built-in table editor.
  4544. (line 57)
  4545. * <TAB> <5>: Plain lists. (line 37)
  4546. * <TAB>: Visibility cycling. (line 10)
  4547. * > <1>: Agenda commands. (line 174)
  4548. * >: The date/time prompt.
  4549. (line 30)
  4550. * ^: CDLaTeX mode. (line 33)
  4551. * _: CDLaTeX mode. (line 33)
  4552. * `: CDLaTeX mode. (line 39)
  4553. * a: Agenda commands. (line 135)
  4554. * b: Agenda commands. (line 51)
  4555. * C: Agenda commands. (line 214)
  4556. * c: Agenda commands. (line 192)
  4557. * C-#: Built-in table editor.
  4558. (line 161)
  4559. * C-,: Agenda files. (line 18)
  4560. * C-_: Agenda commands. (line 110)
  4561. * C-a a L: Timeline. (line 10)
  4562. * C-c !: Creating timestamps. (line 21)
  4563. * C-c #: Checkboxes. (line 56)
  4564. * C-c $: Moving subtrees. (line 10)
  4565. * C-c %: Handling links. (line 81)
  4566. * C-c &: Handling links. (line 85)
  4567. * C-c ' <1>: Editing/debugging formulas.
  4568. (line 20)
  4569. * C-c ': Built-in table editor.
  4570. (line 150)
  4571. * C-c *: Built-in table editor.
  4572. (line 154)
  4573. * C-c +: Built-in table editor.
  4574. (line 171)
  4575. * C-c ,: Priorities. (line 18)
  4576. * C-c -: Built-in table editor.
  4577. (line 92)
  4578. * C-c .: Creating timestamps. (line 10)
  4579. * C-c /: Sparse trees. (line 15)
  4580. * C-c :: Enhancing text. (line 29)
  4581. * C-c ;: Comment lines. (line 11)
  4582. * C-c <: Creating timestamps. (line 25)
  4583. * C-c <TAB>: Built-in table editor.
  4584. (line 193)
  4585. * C-c =: Built-in table editor.
  4586. (line 141)
  4587. * C-c >: Creating timestamps. (line 29)
  4588. * C-c ? <1>: Editing/debugging formulas.
  4589. (line 20)
  4590. * C-c ?: Built-in table editor.
  4591. (line 167)
  4592. * C-c [: Agenda files. (line 12)
  4593. * C-c \: Tag searches. (line 9)
  4594. * C-c ]: Agenda files. (line 15)
  4595. * C-c ^ <1>: Built-in table editor.
  4596. (line 96)
  4597. * C-c ^: Structure editing. (line 52)
  4598. * C-c `: Built-in table editor.
  4599. (line 187)
  4600. * C-c a !: Stuck projects. (line 14)
  4601. * C-c a #: Stuck projects. (line 13)
  4602. * C-c a a: Weekly/Daily agenda. (line 9)
  4603. * C-c a C: Storing searches. (line 9)
  4604. * C-c a M: Matching headline tags.
  4605. (line 15)
  4606. * C-c a m: Matching headline tags.
  4607. (line 10)
  4608. * C-c a M: Tag searches. (line 16)
  4609. * C-c a m: Tag searches. (line 12)
  4610. * C-c a T: Global TODO list. (line 14)
  4611. * C-c a t <1>: Global TODO list. (line 9)
  4612. * C-c a t: TODO basics. (line 33)
  4613. * C-c C-a: Visibility cycling. (line 31)
  4614. * C-c C-b: Motion. (line 15)
  4615. * C-c C-c <1>: The very busy C-c C-c key.
  4616. (line 6)
  4617. * C-c C-c <2>: Processing LaTeX fragments.
  4618. (line 15)
  4619. * C-c C-c <3>: Setting tags. (line 10)
  4620. * C-c C-c <4>: Checkboxes. (line 37)
  4621. * C-c C-c <5>: table.el. (line 6)
  4622. * C-c C-c <6>: Editing/debugging formulas.
  4623. (line 16)
  4624. * C-c C-c <7>: Built-in table editor.
  4625. (line 54)
  4626. * C-c C-c: Plain lists. (line 74)
  4627. * C-c C-d <1>: Agenda commands. (line 159)
  4628. * C-c C-d: Creating timestamps. (line 37)
  4629. * C-c C-e: Exporting. (line 19)
  4630. * C-c C-e a: ASCII export. (line 9)
  4631. * C-c C-e b: HTML export. (line 11)
  4632. * C-c C-e c: iCalendar export. (line 20)
  4633. * C-c C-e h: HTML export. (line 10)
  4634. * C-c C-e I: iCalendar export. (line 15)
  4635. * C-c C-e i: iCalendar export. (line 13)
  4636. * C-c C-e t: Export options. (line 13)
  4637. * C-c C-e v <1>: XOXO export. (line 11)
  4638. * C-c C-e v: Sparse trees. (line 41)
  4639. * C-c C-e v a: ASCII export. (line 13)
  4640. * C-c C-e v b: HTML export. (line 14)
  4641. * C-c C-e v h: HTML export. (line 14)
  4642. * C-c C-e x: XOXO export. (line 10)
  4643. * C-c C-f: Motion. (line 12)
  4644. * C-c C-j: Motion. (line 21)
  4645. * C-c C-l: Handling links. (line 27)
  4646. * C-c C-n: Motion. (line 8)
  4647. * C-c C-o <1>: Creating timestamps. (line 33)
  4648. * C-c C-o: Handling links. (line 58)
  4649. * C-c C-p: Motion. (line 9)
  4650. * C-c C-q <1>: Editing/debugging formulas.
  4651. (line 20)
  4652. * C-c C-q: Built-in table editor.
  4653. (line 125)
  4654. * C-c C-r: Visibility cycling. (line 32)
  4655. * C-c C-s <1>: Agenda commands. (line 156)
  4656. * C-c C-s: Creating timestamps. (line 48)
  4657. * C-c C-t <1>: Clocking work time. (line 26)
  4658. * C-c C-t: TODO basics. (line 13)
  4659. * C-c C-u: Motion. (line 18)
  4660. * C-c C-v: TODO basics. (line 26)
  4661. * C-c C-w: Creating timestamps. (line 41)
  4662. * C-c C-x b: Visibility cycling. (line 38)
  4663. * C-c C-x C-a: ARCHIVE tag. (line 28)
  4664. * C-c C-x C-b: Checkboxes. (line 38)
  4665. * C-c C-x C-c: Agenda commands. (line 221)
  4666. * C-c C-x C-d: Clocking work time. (line 34)
  4667. * C-c C-x C-i: Clocking work time. (line 12)
  4668. * C-c C-x C-k: Structure editing. (line 39)
  4669. * C-c C-x C-l: Processing LaTeX fragments.
  4670. (line 9)
  4671. * C-c C-x C-o: Clocking work time. (line 14)
  4672. * C-c C-x C-r: Clocking work time. (line 42)
  4673. * C-c C-x C-t: Custom time format. (line 12)
  4674. * C-c C-x C-u: Dynamic blocks. (line 21)
  4675. * C-c C-x C-w <1>: Built-in table editor.
  4676. (line 114)
  4677. * C-c C-x C-w: Structure editing. (line 39)
  4678. * C-c C-x C-x: Clocking work time. (line 30)
  4679. * C-c C-x C-y <1>: Built-in table editor.
  4680. (line 118)
  4681. * C-c C-x C-y: Structure editing. (line 46)
  4682. * C-c C-x M-w <1>: Built-in table editor.
  4683. (line 111)
  4684. * C-c C-x M-w: Structure editing. (line 43)
  4685. * C-c C-y <1>: Clocking work time. (line 21)
  4686. * C-c C-y: Creating timestamps. (line 66)
  4687. * C-c l: Handling links. (line 9)
  4688. * C-c {: CDLaTeX mode. (line 21)
  4689. * C-c |: Built-in table editor.
  4690. (line 40)
  4691. * C-c ~: table.el. (line 18)
  4692. * C-k: Agenda commands. (line 118)
  4693. * C-TAB: ARCHIVE tag. (line 38)
  4694. * C-u C-c $: Moving subtrees. (line 12)
  4695. * C-u C-c .: Creating timestamps. (line 16)
  4696. * C-u C-c =: Built-in table editor.
  4697. (line 145)
  4698. * C-u C-c C-l: Handling links. (line 43)
  4699. * C-u C-c C-x C-a: ARCHIVE tag. (line 31)
  4700. * C-u C-c C-x C-u <1>: Dynamic blocks. (line 22)
  4701. * C-u C-c C-x C-u: Clocking work time. (line 69)
  4702. * D: Agenda commands. (line 75)
  4703. * d: Agenda commands. (line 72)
  4704. * f: Agenda commands. (line 44)
  4705. * g: Agenda commands. (line 79)
  4706. * H: Agenda commands. (line 218)
  4707. * i: Agenda commands. (line 199)
  4708. * I: Agenda commands. (line 179)
  4709. * l: Agenda commands. (line 58)
  4710. * L: Agenda commands. (line 32)
  4711. * M: Agenda commands. (line 205)
  4712. * M-<down>: Built-in table editor.
  4713. (line 82)
  4714. * M-<left> <1>: Built-in table editor.
  4715. (line 72)
  4716. * M-<left>: Structure editing. (line 21)
  4717. * M-<RET> <1>: Plain lists. (line 42)
  4718. * M-<RET>: Structure editing. (line 6)
  4719. * M-<right> <1>: Built-in table editor.
  4720. (line 72)
  4721. * M-<right>: Structure editing. (line 24)
  4722. * M-<TAB> <1>: Completion. (line 10)
  4723. * M-<TAB> <2>: Setting tags. (line 6)
  4724. * M-<TAB>: Per file keywords. (line 17)
  4725. * M-<up>: Built-in table editor.
  4726. (line 82)
  4727. * M-S-<down> <1>: Built-in table editor.
  4728. (line 89)
  4729. * M-S-<down> <2>: Plain lists. (line 59)
  4730. * M-S-<down>: Structure editing. (line 36)
  4731. * M-S-<left> <1>: The date/time prompt.
  4732. (line 51)
  4733. * M-S-<left> <2>: Built-in table editor.
  4734. (line 76)
  4735. * M-S-<left> <3>: Plain lists. (line 65)
  4736. * M-S-<left>: Structure editing. (line 27)
  4737. * M-S-<RET> <1>: Checkboxes. (line 53)
  4738. * M-S-<RET> <2>: Plain lists. (line 52)
  4739. * M-S-<RET>: Structure editing. (line 18)
  4740. * M-S-<right> <1>: The date/time prompt.
  4741. (line 48)
  4742. * M-S-<right> <2>: Built-in table editor.
  4743. (line 79)
  4744. * M-S-<right> <3>: Plain lists. (line 65)
  4745. * M-S-<right>: Structure editing. (line 30)
  4746. * M-S-<up> <1>: Built-in table editor.
  4747. (line 86)
  4748. * M-S-<up> <2>: Plain lists. (line 59)
  4749. * M-S-<up>: Structure editing. (line 33)
  4750. * mouse-1 <1>: Agenda commands. (line 35)
  4751. * mouse-1 <2>: The date/time prompt.
  4752. (line 33)
  4753. * mouse-1: Handling links. (line 72)
  4754. * mouse-2 <1>: Agenda commands. (line 35)
  4755. * mouse-2: Handling links. (line 72)
  4756. * mouse-3 <1>: Agenda commands. (line 28)
  4757. * mouse-3: Handling links. (line 77)
  4758. * n: Agenda commands. (line 19)
  4759. * O: Agenda commands. (line 181)
  4760. * o: Agenda commands. (line 66)
  4761. * P: Agenda commands. (line 143)
  4762. * p: Agenda commands. (line 20)
  4763. * q: Agenda commands. (line 228)
  4764. * r <1>: Agenda commands. (line 83)
  4765. * r: Global TODO list. (line 20)
  4766. * S: Agenda commands. (line 209)
  4767. * s: Agenda commands. (line 90)
  4768. * S-<down> <1>: Agenda commands. (line 152)
  4769. * S-<down> <2>: The date/time prompt.
  4770. (line 42)
  4771. * S-<down> <3>: Creating timestamps. (line 58)
  4772. * S-<down> <4>: Priorities. (line 25)
  4773. * S-<down>: Plain lists. (line 55)
  4774. * S-<left> <1>: Agenda commands. (line 170)
  4775. * S-<left> <2>: The date/time prompt.
  4776. (line 39)
  4777. * S-<left> <3>: Creating timestamps. (line 53)
  4778. * S-<left>: TODO basics. (line 20)
  4779. * S-<RET>: Built-in table editor.
  4780. (line 176)
  4781. * S-<right> <1>: Agenda commands. (line 162)
  4782. * S-<right> <2>: The date/time prompt.
  4783. (line 36)
  4784. * S-<right> <3>: Creating timestamps. (line 53)
  4785. * S-<right>: TODO basics. (line 20)
  4786. * S-<TAB> <1>: Built-in table editor.
  4787. (line 61)
  4788. * S-<TAB>: Visibility cycling. (line 22)
  4789. * S-<up> <1>: Agenda commands. (line 146)
  4790. * S-<up> <2>: The date/time prompt.
  4791. (line 45)
  4792. * S-<up> <3>: Creating timestamps. (line 58)
  4793. * S-<up> <4>: Priorities. (line 25)
  4794. * S-<up>: Plain lists. (line 55)
  4795. * T: Agenda commands. (line 127)
  4796. * t: Agenda commands. (line 114)
  4797. * w: Agenda commands. (line 69)
  4798. * x: Agenda commands. (line 231)
  4799. * X: Agenda commands. (line 184)
  4800. 
  4801. Tag Table:
  4802. Node: Top964
  4803. Node: Introduction10454
  4804. Node: Summary10869
  4805. Node: Installation13781
  4806. Node: Activation15159
  4807. Node: Feedback16408
  4808. Node: Document structure18484
  4809. Node: Outlines19258
  4810. Node: Headlines19918
  4811. Node: Visibility cycling20541
  4812. Ref: Visibility cycling-Footnote-122614
  4813. Ref: Visibility cycling-Footnote-222672
  4814. Ref: Visibility cycling-Footnote-322722
  4815. Node: Motion22992
  4816. Node: Structure editing23776
  4817. Node: Archiving26602
  4818. Node: ARCHIVE tag27160
  4819. Node: Moving subtrees28953
  4820. Node: Sparse trees29994
  4821. Ref: Sparse trees-Footnote-132125
  4822. Ref: Sparse trees-Footnote-232217
  4823. Node: Plain lists32332
  4824. Ref: Plain lists-Footnote-135857
  4825. Ref: Plain lists-Footnote-236214
  4826. Node: Tables36398
  4827. Node: Built-in table editor36946
  4828. Node: Narrow columns44974
  4829. Ref: Narrow columns-Footnote-146913
  4830. Node: Table calculations46959
  4831. Node: Formula syntax48279
  4832. Ref: Formula syntax-Footnote-151184
  4833. Node: Lisp formulas51484
  4834. Node: Column formulas52273
  4835. Node: Advanced features54035
  4836. Node: Named-field formulas57289
  4837. Node: Editing/debugging formulas57929
  4838. Node: Appetizer59687
  4839. Node: orgtbl-mode60790
  4840. Node: table.el61281
  4841. Node: Hyperlinks62258
  4842. Node: Link format63031
  4843. Node: Internal links64324
  4844. Ref: Internal links-Footnote-166313
  4845. Node: Radio targets66445
  4846. Node: CamelCase links67160
  4847. Node: External links67754
  4848. Node: Handling links69885
  4849. Ref: Handling links-Footnote-174537
  4850. Ref: Handling links-Footnote-274774
  4851. Node: Link abbreviations74848
  4852. Node: Search options76527
  4853. Ref: Search options-Footnote-178307
  4854. Node: Custom searches78388
  4855. Node: Remember79436
  4856. Node: TODO items83130
  4857. Node: TODO basics84112
  4858. Node: TODO extensions85639
  4859. Node: Workflow states86434
  4860. Node: TODO types87302
  4861. Ref: TODO types-Footnote-188960
  4862. Node: Per file keywords89042
  4863. Ref: Per file keywords-Footnote-190496
  4864. Node: Priorities90697
  4865. Node: Breaking down tasks91941
  4866. Ref: Breaking down tasks-Footnote-192460
  4867. Node: Checkboxes92556
  4868. Node: Timestamps95311
  4869. Node: Time stamps95772
  4870. Ref: Time stamps-Footnote-199266
  4871. Ref: Time stamps-Footnote-299382
  4872. Node: Creating timestamps99537
  4873. Node: The date/time prompt102163
  4874. Ref: The date/time prompt-Footnote-1103929
  4875. Node: Custom time format104035
  4876. Node: Progress logging105594
  4877. Node: Closing items106123
  4878. Node: Clocking work time107027
  4879. Ref: Clocking work time-Footnote-1110651
  4880. Node: Tags110777
  4881. Node: Tag inheritance111539
  4882. Node: Setting tags112476
  4883. Ref: Setting tags-Footnote-1116675
  4884. Ref: Setting tags-Footnote-2116787
  4885. Node: Tag searches116870
  4886. Node: Agenda views119582
  4887. Node: Agenda files121522
  4888. Ref: Agenda files-Footnote-1122482
  4889. Ref: Agenda files-Footnote-2122631
  4890. Node: Agenda dispatcher122824
  4891. Node: Built-in agenda views124515
  4892. Node: Weekly/Daily agenda125093
  4893. Node: Global TODO list127222
  4894. Node: Matching headline tags129395
  4895. Node: Timeline130466
  4896. Node: Stuck projects131132
  4897. Node: Presentation and sorting132831
  4898. Node: Categories133622
  4899. Node: Time-of-day specifications134286
  4900. Node: Sorting of agenda items136257
  4901. Node: Agenda commands137539
  4902. Node: Custom agenda views144239
  4903. Node: Storing searches144914
  4904. Node: Block agenda146826
  4905. Node: Setting Options148056
  4906. Node: Batch processing150768
  4907. Node: Embedded LaTeX151898
  4908. Ref: Embedded LaTeX-Footnote-1152990
  4909. Node: Math symbols153180
  4910. Node: Subscripts and Superscripts153945
  4911. Node: LaTeX fragments154789
  4912. Ref: LaTeX fragments-Footnote-1156897
  4913. Node: Processing LaTeX fragments157159
  4914. Node: CDLaTeX mode158105
  4915. Ref: CDLaTeX mode-Footnote-1160589
  4916. Node: Exporting160737
  4917. Node: ASCII export162051
  4918. Node: HTML export163341
  4919. Node: XOXO export166177
  4920. Node: iCalendar export166616
  4921. Node: Text interpretation168439
  4922. Node: Comment lines168918
  4923. Node: Enhancing text169389
  4924. Node: Export options171081
  4925. Node: Publishing172748
  4926. Ref: Publishing-Footnote-1173544
  4927. Node: Configuration173740
  4928. Node: Project alist174458
  4929. Node: Sources and destinations175524
  4930. Node: Selecting files176254
  4931. Node: Publishing action177002
  4932. Node: Publishing options178235
  4933. Node: Publishing links180387
  4934. Node: Project page index181900
  4935. Node: Sample configuration182678
  4936. Node: Simple example183170
  4937. Node: Complex example183843
  4938. Node: Triggering publication185919
  4939. Node: Miscellaneous186604
  4940. Node: Completion187238
  4941. Node: Customization188709
  4942. Node: In-buffer settings189292
  4943. Node: The very busy C-c C-c key192911
  4944. Node: Clean view194555
  4945. Node: TTY keys197132
  4946. Node: Interaction198741
  4947. Node: Cooperation199138
  4948. Node: Conflicts201005
  4949. Node: Bugs202597
  4950. Node: Extensions and Hacking203991
  4951. Node: Extensions204495
  4952. Node: Dynamic blocks206282
  4953. Node: Special agenda views208238
  4954. Ref: Special agenda views-Footnote-1210519
  4955. Node: History and Acknowledgments210779
  4956. Node: Index215786
  4957. Node: Key Index243028
  4958. 
  4959. End Tag Table