org 364 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574
  1. This is org, produced by makeinfo version 4.7 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 5.11b).
  7. Copyright (C) 2004, 2005, 2006, 2007 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 5.11b).
  23. Copyright (C) 2004, 2005, 2006, 2007 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. * Tags:: Tagging headlines and matching sets of tags
  41. * Properties and columns:: Storing information about an entry
  42. * Timestamps:: Assign date and time to items
  43. * Remember:: Quickly adding nodes to the outline tree
  44. * Agenda views:: Collecting information into views
  45. * Embedded LaTeX:: LaTeX fragments and formulas
  46. * Exporting:: Sharing and publishing of notes
  47. * Publishing:: Create a web site of linked Org-mode files
  48. * Miscellaneous:: All the rest which did not fit elsewhere
  49. * Extensions and Hacking:: It is possible to write add-on code
  50. * History and Acknowledgments:: How Org-mode came into being
  51. * Index:: The fast road to specific information
  52. * Key Index:: Key bindings and where they are described
  53. --- The Detailed Node Listing ---
  54. Introduction
  55. * Summary:: Brief summary of what Org-mode does
  56. * Installation:: How to install a downloaded version of Org-mode
  57. * Activation:: How to activate Org-mode for certain buffers.
  58. * Feedback:: Bug reports, ideas, patches etc.
  59. Document Structure
  60. * Outlines:: Org-mode is based on outline-mode
  61. * Headlines:: How to typeset org-tree headlines
  62. * Visibility cycling:: Show and hide, much simplified
  63. * Motion:: Jumping to other headlines
  64. * Structure editing:: Changing sequence and level of headlines
  65. * Archiving:: Move done task trees to a different place
  66. * Sparse trees:: Matches embedded in context
  67. * Plain lists:: Additional structure within an entry
  68. * Drawers:: Tucking stuff away
  69. * orgstruct-mode:: Structure editing outside Org-mode
  70. Archiving
  71. * ARCHIVE tag:: Marking a tree as inactive
  72. * Moving subtrees:: Moving a tree to an archive file
  73. Tables
  74. * Built-in table editor:: Simple tables
  75. * Narrow columns:: Stop wasting space in tables
  76. * Column groups:: Grouping to trigger vertical lines
  77. * orgtbl-mode:: The table editor as minor mode
  78. * The spreadsheet:: The table editor has spreadsheet capabilities.
  79. The spreadsheet
  80. * References:: How to refer to another field or range
  81. * Formula syntax for Calc:: Using Calc to compute stuff
  82. * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
  83. * Field formulas:: Formulas valid for a single field
  84. * Column formulas:: Formulas valid for an entire column
  85. * Editing and debugging formulas:: Fixing formulas
  86. * Updating the table:: Recomputing all dependent fields
  87. * Advanced features:: Field names, parameters and automatic recalc
  88. Hyperlinks
  89. * Link format:: How links in Org-mode are formatted
  90. * Internal links:: Links to other places in the current file
  91. * External links:: URL-like links to the world
  92. * Handling links:: Creating, inserting and following
  93. * Using links outside Org-mode:: Linking from my C source code?
  94. * Link abbreviations:: Shortcuts for writing complex links
  95. * Search options:: Linking to a specific location
  96. * Custom searches:: When the default search is not enough
  97. Internal links
  98. * Radio targets:: Make targets trigger links in plain text.
  99. TODO items
  100. * TODO basics:: Marking and displaying TODO entries
  101. * TODO extensions:: Workflow and assignments
  102. * Progress logging:: Dates and notes for progress
  103. * Priorities:: Some things are more important than others
  104. * Breaking down tasks:: Splitting a task into manageable pieces
  105. * Checkboxes:: Tick-off lists
  106. Extended use of TODO keywords
  107. * Workflow states:: From TODO to DONE in steps
  108. * TODO types:: I do this, Fred the rest
  109. * Multiple sets in one file:: Mixing it all, and still finding your way
  110. * Fast access to TODO states:: Single letter selection of a state
  111. * Per file keywords:: Different files, different requirements
  112. * Faces for TODO keywords:: Highlighting states
  113. Progress Logging
  114. * Closing items:: When was this entry marked DONE?
  115. * Tracking TODO state changes:: When did the status change?
  116. Tags
  117. * Tag inheritance:: Tags use the tree structure of the outline
  118. * Setting tags:: How to assign tags to a headline
  119. * Tag searches:: Searching for combinations of tags
  120. Properties and Columns
  121. * Property syntax:: How properties are spelled out
  122. * Special properties:: Access to other Org-mode features
  123. * Property searches:: Matching property values
  124. * Column view:: Tabular viewing and editing
  125. * Property API:: Properties for Lisp programmers
  126. Column View
  127. * Defining columns:: The COLUMNS format property
  128. * Using column view:: How to create and use column view
  129. Defining Columns
  130. * Scope of column definitions:: Where defined, where valid?
  131. * Column attributes:: Appearance and content of a column
  132. Timestamps
  133. * Time stamps:: Assigning a time to a tree entry
  134. * Creating timestamps:: Commands which insert timestamps
  135. * Deadlines and scheduling:: Planning your work
  136. * Clocking work time::
  137. Creating timestamps
  138. * The date/time prompt:: How org-mode helps you entering date and time
  139. * Custom time format:: Making dates look differently
  140. Deadlines and Scheduling
  141. * Inserting deadline/schedule:: Planning items
  142. * Repeated tasks:: Items that show up again and again
  143. Remember
  144. * Setting up remember:: Some code for .emacs to get things going
  145. * Remember templates:: Define the outline of different note types
  146. * Storing notes:: Directly get the note to where it belongs
  147. Agenda Views
  148. * Agenda files:: Files being searched for agenda information
  149. * Agenda dispatcher:: Keyboard access to agenda views
  150. * Built-in agenda views:: What is available out of the box?
  151. * Presentation and sorting:: How agenda items are prepared for display
  152. * Agenda commands:: Remote editing of org trees
  153. * Custom agenda views:: Defining special searches and views
  154. The built-in agenda views
  155. * Weekly/Daily agenda:: The calendar page with current tasks
  156. * Global TODO list:: All unfinished action items
  157. * Matching tags and properties:: Structured information with fine-tuned search
  158. * Timeline:: Time-sorted view for single file
  159. * Stuck projects:: Find projects you need to review
  160. Presentation and sorting
  161. * Categories:: Not all tasks are equal
  162. * Time-of-day specifications:: How the agenda knows the time
  163. * Sorting of agenda items:: The order of things
  164. Custom agenda views
  165. * Storing searches:: Type once, use often
  166. * Block agenda:: All the stuff you need in a single buffer
  167. * Setting Options:: Changing the rules
  168. * Exporting Agenda Views:: Writing agendas to files.
  169. * Extracting Agenda Information for other programs::
  170. Embedded LaTeX
  171. * Math symbols:: TeX macros for symbols and Greek letters
  172. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  173. * LaTeX fragments:: Complex formulas made easy
  174. * Processing LaTeX fragments:: Previewing LaTeX processing
  175. * CDLaTeX mode:: Speed up entering of formulas
  176. Exporting
  177. * ASCII export:: Exporting to plain ASCII
  178. * HTML export:: Exporting to HTML
  179. * LaTeX export:: Exporting to LaTeX
  180. * XOXO export:: Exporting to XOXO
  181. * iCalendar export:: Exporting in iCalendar format
  182. * Text interpretation:: How the exporter looks at the file
  183. HTML export
  184. * HTML Export commands:: How to invoke LaTeX export
  185. * Quoting HTML tags:: Using direct HTML in Org-mode
  186. * Links:: Transformation of links for HTML
  187. * Images:: How to include images
  188. * CSS support:: Changing the appearence of the output
  189. LaTeX export
  190. * LaTeX export commands:: How to invoke LaTeX export
  191. * Quoting LaTeX code:: Incorporating literal LaTeX code
  192. Text interpretation by the exporter
  193. * Comment lines:: Some lines will not be exported
  194. * Initial text:: Text before the first headline
  195. * Footnotes:: Numbers like [1]
  196. * Enhancing text:: Subscripts, symbols and more
  197. * Export options:: How to influence the export settings
  198. Publishing
  199. * Configuration:: Defining projects
  200. * Sample configuration:: Example projects
  201. * Triggering publication:: Publication commands
  202. Configuration
  203. * Project alist:: The central configuration variable
  204. * Sources and destinations:: From here to there
  205. * Selecting files:: What files are part of the project?
  206. * Publishing action:: Setting the function doing the publishing
  207. * Publishing options:: Tweaking HTML export
  208. * Publishing links:: Which links keep working after publishing?
  209. * Project page index:: Publishing a list of project files
  210. Sample configuration
  211. * Simple example:: One-component publishing
  212. * Complex example:: A multi-component publishing example
  213. Miscellaneous
  214. * Completion:: M-TAB knows what you need
  215. * Customization:: Adapting Org-mode to your taste
  216. * In-buffer settings:: Overview of the #+KEYWORDS
  217. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  218. * Clean view:: Getting rid of leading stars in the outline
  219. * TTY keys:: Using Org-mode on a tty
  220. * Interaction:: Other Emacs packages
  221. * Bugs:: Things which do not work perfectly
  222. Interaction with other packages
  223. * Cooperation:: Packages Org-mode cooperates with
  224. * Conflicts:: Packages that lead to conflicts
  225. Extensions, Hooks and Hacking
  226. * Extensions:: Existing 3rd-part extensions
  227. * Adding hyperlink types:: New custom link types
  228. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  229. * Dynamic blocks:: Automatically filled blocks
  230. * Special agenda views:: Customized views
  231. * Using the property API:: Writing programs that use entry properties
  232. Tables in arbitrary syntax
  233. * Radio tables:: Sending and receiving
  234. * A LaTeX example:: Step by step, almost a tutorial
  235. * Translator functions:: Copy and modify
  236. 
  237. File: org, Node: Introduction, Next: Document structure, Prev: Top, Up: Top
  238. 1 Introduction
  239. **************
  240. * Menu:
  241. * Summary:: Brief summary of what Org-mode does
  242. * Installation:: How to install a downloaded version of Org-mode
  243. * Activation:: How to activate Org-mode for certain buffers.
  244. * Feedback:: Bug reports, ideas, patches etc.
  245. 
  246. File: org, Node: Summary, Next: Installation, Prev: Introduction, Up: Introduction
  247. 1.1 Summary
  248. ===========
  249. Org-mode is a mode for keeping notes, maintaining TODO lists, and doing
  250. project planning with a fast and effective plain-text system.
  251. Org-mode develops organizational tasks around NOTES files that
  252. contain lists or information about projects as plain text. Org-mode is
  253. implemented on top of outline-mode, which makes it possible to keep the
  254. content of large files well structured. Visibility cycling and
  255. structure editing help to work with the tree. Tables are easily created
  256. with a built-in table editor. Org-mode supports TODO items, deadlines,
  257. time stamps, and scheduling. It dynamically compiles entries into an
  258. agenda that utilizes and smoothly integrates much of the Emacs calendar
  259. and diary. Plain text URL-like links connect to websites, emails,
  260. Usenet messages, BBDB entries, and any files related to the projects.
  261. For printing and sharing of notes, an Org-mode file can be exported as a
  262. structured ASCII file, as HTML, or (todo and agenda items only) as an
  263. iCalendar file. It can also serve as a publishing tool for a set of
  264. linked webpages.
  265. An important design aspect that distinguishes Org-mode from for
  266. example Planner/Muse is that it encourages to store every piece of
  267. information only once. In Planner, you have project pages, day pages
  268. and possibly other files, duplicating some information such as tasks.
  269. In Org-mode, you only have notes files. In your notes you mark entries
  270. as tasks, label them with tags and timestamps. All necessary lists
  271. like a schedule for the day, the agenda for a meeting, tasks lists
  272. selected by tags etc are created dynamically when you need them.
  273. Org-mode keeps simple things simple. When first fired up, it should
  274. feel like a straightforward, easy to use outliner. Complexity is not
  275. imposed, but a large amount of functionality is available when you need
  276. it. Org-mode is a toolbox and can be used in different ways, for
  277. example as:
  278. * outline extension with visibility cycling and structure editing
  279. * ASCII system and table editor for taking structured notes
  280. * ASCII table editor with spreadsheet-like capabilities
  281. * TODO list editor
  282. * full agenda and planner with deadlines and work scheduling
  283. * environment to implement David Allen's GTD system
  284. * a basic database application
  285. * simple hypertext system, with HTML export
  286. * publishing tool to create a set of interlinked webpages
  287. Org-mode's automatic, context sensitive table editor with spreadsheet
  288. capabilities can be integrated into any major mode by activating the
  289. minor Orgtbl-mode. Using a translation step, it can be used to maintain
  290. tables in arbitrary file types, for example in LaTeX. The structure
  291. editing and list creation capabilities can be used outside Org-mode with
  292. the minor Orgstruct-mode.
  293. There is a website for Org-mode which provides links to the newest
  294. version of Org-mode, as well as additional information, frequently asked
  295. questions (FAQ), links to tutorials etc. This page is located at
  296. `http://orgmode.org'.
  297. 
  298. File: org, Node: Installation, Next: Activation, Prev: Summary, Up: Introduction
  299. 1.2 Installation
  300. ================
  301. Important: If Org-mode is part of the Emacs distribution or an XEmacs
  302. package, please skip this section and go directly to *Note Activation::.
  303. If you have downloaded Org-mode from the Web, you must take the
  304. following steps to install it: Go into the Org-mode distribution
  305. directory and edit the top section of the file `Makefile'. You must
  306. set the name of the Emacs binary (likely either `emacs' or `xemacs'),
  307. and the paths to the directories where local Lisp and Info files are
  308. kept. If you don't have access to the system-wide directories, create
  309. your own two directories for these files, enter them into the Makefile,
  310. and make sure Emacs finds the Lisp files by adding the following line
  311. to `.emacs':
  312. (setq load-path (cons "~/path/to/lispdir" load-path))
  313. XEmacs users now need to install the file `noutline.el' from the
  314. `xemacs' subdirectory of the Org-mode distribution. Use the command:
  315. make install-noutline
  316. Now byte-compile and install the Lisp files with the shell commands:
  317. make
  318. make install
  319. If you want to install the info documentation, use this command:
  320. make install-info
  321. Then add to `.emacs':
  322. ;; This line only if org-mode is not part of the X/Emacs distribution.
  323. (require 'org-install)
  324. 
  325. File: org, Node: Activation, Next: Feedback, Prev: Installation, Up: Introduction
  326. 1.3 Activation
  327. ==============
  328. Add the following lines to your `.emacs' file. The last two lines
  329. define _global_ keys for the commands `org-store-link' and `org-agenda'
  330. - please choose suitable keys yourself.
  331. ;; The following lines are always needed. Choose your own keys.
  332. (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
  333. (global-set-key "\C-cl" 'org-store-link)
  334. (global-set-key "\C-ca" 'org-agenda)
  335. Furthermore, you must activate `font-lock-mode' in org-mode buffers,
  336. because significant functionality depends on font-locking being active.
  337. You can do this with either one of the following two lines (XEmacs
  338. user must use the second option):
  339. (global-font-lock-mode 1) ; for all buffers
  340. (add-hook 'org-mode-hook 'turn-on-font-lock) ; org-mode buffers only
  341. With this setup, all files with extension `.org' will be put into
  342. Org-mode. As an alternative, make the first line of a file look like
  343. this:
  344. MY PROJECTS -*- mode: org; -*-
  345. which will select Org-mode for this buffer no matter what the file's
  346. name is. See also the variable `org-insert-mode-line-in-empty-file'.
  347. 
  348. File: org, Node: Feedback, Prev: Activation, Up: Introduction
  349. 1.4 Feedback
  350. ============
  351. If you find problems with Org-mode, or if you have questions, remarks,
  352. or ideas about it, please contact the maintainer Carsten Dominik at
  353. <carsten at orgmode dot org>.
  354. For bug reports, please provide as much information as possible,
  355. including the version information of Emacs (`C-h v emacs-version
  356. <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
  357. Org-mode related setup in `.emacs'. If an error occurs, a backtrace
  358. can be very useful (see below on how to create one). Often a small
  359. example file helps, along with clear information about:
  360. 1. What exactly did you do?
  361. 2. What did you expect to happen?
  362. 3. What happened instead?
  363. Thank you for helping to improve this mode.
  364. How to create a useful backtrace
  365. ................................
  366. If working with Org-mode produces an error with a message you don't
  367. understand, you may have hit a bug. The best way to report this is by
  368. providing, in addition to what was mentioned above, a _Backtrace_.
  369. This is information from the built-in debugger about where and how the
  370. error occurred. Here is how to produce a useful backtrace:
  371. 1. Start a fresh Emacs or XEmacs, and make sure that it will load the
  372. original Lisp code in `org.el' instead of the compiled version in
  373. `org.elc'. The backtrace contains much more information if it is
  374. produced with uncompiled code. To do this, either rename `org.elc'
  375. to something else before starting Emacs, or ask Emacs explicitly
  376. to load `org.el' by using the command line
  377. emacs -l /path/to/org.el
  378. 2. Go to the `Options' menu and select `Enter Debugger on Error'
  379. (XEmacs has this option in the `Troubleshooting' sub-menu).
  380. 3. Do whatever you have to do to hit the error. Don't forget to
  381. document the steps you take.
  382. 4. When you hit the error, a `*Backtrace*' buffer will appear on the
  383. screen. Save this buffer to a file (for example using `C-x C-w')
  384. and attach it to your bug report.
  385. 
  386. File: org, Node: Document structure, Next: Tables, Prev: Introduction, Up: Top
  387. 2 Document Structure
  388. ********************
  389. Org-mode is based on outline mode and provides flexible commands to
  390. edit the structure of the document.
  391. * Menu:
  392. * Outlines:: Org-mode is based on outline-mode
  393. * Headlines:: How to typeset org-tree headlines
  394. * Visibility cycling:: Show and hide, much simplified
  395. * Motion:: Jumping to other headlines
  396. * Structure editing:: Changing sequence and level of headlines
  397. * Archiving:: Move done task trees to a different place
  398. * Sparse trees:: Matches embedded in context
  399. * Plain lists:: Additional structure within an entry
  400. * Drawers:: Tucking stuff away
  401. * orgstruct-mode:: Structure editing outside Org-mode
  402. 
  403. File: org, Node: Outlines, Next: Headlines, Prev: Document structure, Up: Document structure
  404. 2.1 Outlines
  405. ============
  406. Org-mode is implemented on top of outline-mode. Outlines allow a
  407. document to be organized in a hierarchical structure, which (at least
  408. for me) is the best representation of notes and thoughts. An overview
  409. of this structure is achieved by folding (hiding) large parts of the
  410. document to show only the general document structure and the parts
  411. currently being worked on. Org-mode greatly simplifies the use of
  412. outlines by compressing the entire show/hide functionality into a single
  413. command `org-cycle', which is bound to the <TAB> key.
  414. 
  415. File: org, Node: Headlines, Next: Visibility cycling, Prev: Outlines, Up: Document structure
  416. 2.2 Headlines
  417. =============
  418. Headlines define the structure of an outline tree. The headlines in
  419. Org-mode start with one or more stars, on the left margin(1). For
  420. example:
  421. * Top level headline
  422. ** Second level
  423. *** 3rd level
  424. some text
  425. *** 3rd level
  426. more text
  427. * Another top level headline
  428. Some people find the many stars too noisy and would prefer an outline
  429. that has whitespace followed by a single star as headline starters.
  430. *Note Clean view:: describes a setup to realize this.
  431. An empty line after the end of a subtree is considered part of it and
  432. will be hidden when the subtree is folded. However, if you leave at
  433. least two empty lines, one empty line will remain visible after folding
  434. the subtree, in order to structure the collapsed view. See the
  435. variable `org-cycle-separator-lines' to modify this behavior.
  436. ---------- Footnotes ----------
  437. (1) See the variable `org-special-ctrl-a/e' to configure special
  438. behavior of `C-a' and `C-e' in headlines.
  439. 
  440. File: org, Node: Visibility cycling, Next: Motion, Prev: Headlines, Up: Document structure
  441. 2.3 Visibility cycling
  442. ======================
  443. Outlines make it possible to hide parts of the text in the buffer.
  444. Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
  445. the visibility in the buffer.
  446. `<TAB>'
  447. _Subtree cycling_: Rotate current subtree among the states
  448. ,-> FOLDED -> CHILDREN -> SUBTREE --.
  449. '-----------------------------------'
  450. The cursor must be on a headline for this to work(1). When the
  451. cursor is at the beginning of the buffer and the first line is not
  452. a headline, then <TAB> actually runs global cycling (see
  453. below)(2). Also when called with a prefix argument (`C-u <TAB>'),
  454. global cycling is invoked.
  455. `S-<TAB>'
  456. `C-u <TAB>'
  457. _Global cycling_: Rotate the entire buffer among the states
  458. ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
  459. '--------------------------------------'
  460. When `S-<TAB>' is called with a numerical prefix N, the CONTENTS
  461. view up to headlines of level N will be shown. Note that inside
  462. tables, `S-<TAB>' jumps to the previous field.
  463. `C-c C-a'
  464. Show all.
  465. `C-c C-r'
  466. Reveal context around point, showing the current entry, the
  467. following heading and the hierarchy above. Useful for working
  468. near a location exposed by a sparse tree command (*note Sparse
  469. trees::) or an agenda command (*note Agenda commands::). With
  470. prefix arg show, on each level, all sibling headings.
  471. `C-c C-x b'
  472. Show the current subtree in an indirect buffer(3). With numerical
  473. prefix ARG, go up to this level and then take that tree. If ARG is
  474. negative, go up that many levels. With `C-u' prefix, do not remove
  475. the previously used indirect buffer.
  476. When Emacs first visits an Org-mode file, the global state is set to
  477. OVERVIEW, i.e. only the top level headlines are visible. This can be
  478. configured through the variable `org-startup-folded', or on a per-file
  479. basis by adding one of the following lines anywhere in the buffer:
  480. #+STARTUP: overview
  481. #+STARTUP: content
  482. #+STARTUP: showall
  483. ---------- Footnotes ----------
  484. (1) see, however, the option `org-cycle-emulate-tab'.
  485. (2) see the option `org-cycle-global-at-bob'.
  486. (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
  487. Buffers.) will contain the entire buffer, but will be narrowed to the
  488. current tree. Editing the indirect buffer will also change the
  489. original buffer, but without affecting visibility in that buffer.
  490. 
  491. File: org, Node: Motion, Next: Structure editing, Prev: Visibility cycling, Up: Document structure
  492. 2.4 Motion
  493. ==========
  494. The following commands jump to other headlines in the buffer.
  495. `C-c C-n'
  496. Next heading.
  497. `C-c C-p'
  498. Previous heading.
  499. `C-c C-f'
  500. Next heading same level.
  501. `C-c C-b'
  502. Previous heading same level.
  503. `C-c C-u'
  504. Backward to higher level heading.
  505. `C-c C-j'
  506. Jump to a different place without changing the current outline
  507. visibility. Shows the document structure in a temporary buffer,
  508. where you can use the following keys to find your destination:
  509. <TAB> Cycle visibility.
  510. <down> / <up> Next/previous visible headline.
  511. n / p Next/previous visible headline.
  512. f / b Next/previous headline same level.
  513. u One level up.
  514. 0-9 Digit argument.
  515. <RET> Select this location.
  516. 
  517. File: org, Node: Structure editing, Next: Archiving, Prev: Motion, Up: Document structure
  518. 2.5 Structure editing
  519. =====================
  520. `M-<RET>'
  521. Insert new heading with same level as current. If the cursor is
  522. in a plain list item, a new item is created (*note Plain lists::).
  523. To force creation of a new headline, use a prefix arg, or first
  524. press <RET> to get to the beginning of the next line. When this
  525. command is used in the middle of a line, the line is split and the
  526. rest of the line becomes the new headline. If the command is used
  527. at the beginning of a headline, the new headline is created before
  528. the current line. If at the beginning of any other line, the
  529. content of that line is made the new heading. If the command is
  530. used at the end of a folded subtree (i.e. behind the ellipses at
  531. the end of a headline), then a headline like the current one will
  532. be inserted after the end of the subtree.
  533. `C-<RET>'
  534. Insert a new heading after the current subtree, same level as the
  535. current headline. This command works from anywhere in the entry.
  536. `M-S-<RET>'
  537. Insert new TODO entry with same level as current heading.
  538. `M-<left>'
  539. Promote current heading by one level.
  540. `M-<right>'
  541. Demote current heading by one level.
  542. `M-S-<left>'
  543. Promote the current subtree by one level.
  544. `M-S-<right>'
  545. Demote the current subtree by one level.
  546. `M-S-<up>'
  547. Move subtree up (swap with previous subtree of same level).
  548. `M-S-<down>'
  549. Move subtree down (swap with next subtree of same level).
  550. `C-c C-x C-w'
  551. `C-c C-x C-k'
  552. Kill subtree, i.e. remove it from buffer but save in kill ring.
  553. `C-c C-x M-w'
  554. Copy subtree to kill ring.
  555. `C-c C-x C-y'
  556. Yank subtree from kill ring. This does modify the level of the
  557. subtree to make sure the tree fits in nicely at the yank position.
  558. The yank level can also be specified with a prefix arg, or by
  559. yanking after a headline marker like `****'.
  560. `C-c ^'
  561. Sort same-level entries. When there is an active region, all
  562. entries in the region will be sorted. Otherwise the children of
  563. the current headline are sorted. The command prompts for the
  564. sorting method, which can be alphabetically, numerically, by time
  565. (using the first time stamp in each entry), by priority, and each
  566. of these in reverse order. With a `C-u' prefix, sorting will be
  567. case-sensitive. With two `C-u C-u' prefixes, duplicate entries
  568. will also be removed.
  569. When there is an active region (transient-mark-mode), promotion and
  570. demotion work on all headlines in the region. To select a region of
  571. headlines, it is best to place both point and mark at the beginning of a
  572. line, mark at the beginning of the first headline, and point at the line
  573. just after the last headline to change. Note that when the cursor is
  574. inside a table (*note Tables::), the Meta-Cursor keys have different
  575. functionality.
  576. 
  577. File: org, Node: Archiving, Next: Sparse trees, Prev: Structure editing, Up: Document structure
  578. 2.6 Archiving
  579. =============
  580. When a project represented by a (sub)tree is finished, you may want to
  581. move the tree out of the way and to stop it from contributing to the
  582. agenda. Org-mode knows two ways of archiving. You can mark a tree with
  583. the ARCHIVE tag, or you can move an entire (sub)tree to a different
  584. location.
  585. * Menu:
  586. * ARCHIVE tag:: Marking a tree as inactive
  587. * Moving subtrees:: Moving a tree to an archive file
  588. 
  589. File: org, Node: ARCHIVE tag, Next: Moving subtrees, Prev: Archiving, Up: Archiving
  590. 2.6.1 The ARCHIVE tag
  591. ---------------------
  592. A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
  593. its location in the outline tree, but behaves in the following way:
  594. - It does not open when you attempt to do so with a visibility
  595. cycling command (*note Visibility cycling::). You can force
  596. cycling archived subtrees with `C-<TAB>', or by setting the option
  597. `org-cycle-open-archived-trees'. Also normal outline commands like
  598. `show-all' will open archived subtrees.
  599. - During sparse tree construction (*note Sparse trees::), matches in
  600. archived subtrees are not exposed, unless you configure the option
  601. `org-sparse-tree-open-archived-trees'.
  602. - During agenda view construction (*note Agenda views::), the
  603. content of archived trees is ignored unless you configure the
  604. option `org-agenda-skip-archived-trees'.
  605. - Archived trees are not exported (*note Exporting::), only the
  606. headline is. Configure the details using the variable
  607. `org-export-with-archived-trees'.
  608. The following commands help managing the ARCHIVE tag:
  609. `C-c C-x C-a'
  610. Toggle the ARCHIVE tag for the current headline. When the tag is
  611. set, the headline changes to a shadowish face, and the subtree
  612. below it is hidden.
  613. `C-u C-c C-x C-a'
  614. Check if any direct children of the current headline should be
  615. archived. To do this, each subtree is checked for open TODO
  616. entries. If none are found, the command offers to set the ARCHIVE
  617. tag for the child. If the cursor is _not_ on a headline when this
  618. command is invoked, the level 1 trees will be checked.
  619. `C-TAB'
  620. Cycle a tree even if it is tagged with ARCHIVE.
  621. 
  622. File: org, Node: Moving subtrees, Prev: ARCHIVE tag, Up: Archiving
  623. 2.6.2 Moving subtrees
  624. ---------------------
  625. Once an entire project is finished, you may want to move it to a
  626. different location, either in the current file, or even in a different
  627. file, the archive file.
  628. `C-c C-x C-s'
  629. Archive the subtree starting at the cursor position to the location
  630. given by `org-archive-location'. Context information that could be
  631. lost like the file name, the category, inherited tags, and the todo
  632. state will be store as properties in the entry.
  633. `C-u C-c C-x C-s'
  634. Check if any direct children of the current headline could be
  635. moved to the archive. To do this, each subtree is checked for
  636. open TODO entries. If none are found, the command offers to move
  637. it to the archive location. If the cursor is _not_ on a headline
  638. when this command is invoked, the level 1 trees will be checked.
  639. The default archive location is a file in the same directory as the
  640. current file, with the name derived by appending `_archive' to the
  641. current file name. For information and examples on how to change this,
  642. see the documentation string of the variable `org-archive-location'.
  643. There is also an in-buffer option for setting this variable, for
  644. example(1):
  645. #+ARCHIVE: %s_done::
  646. If you would like to have a special ARCHIVE location for a single entry
  647. or a (sub)tree, give the entry an `:ARCHIVE:' property with the
  648. location as the value (*note Properties and columns::).
  649. ---------- Footnotes ----------
  650. (1) If there are several such lines in the buffer, each will be
  651. valid for the entries below it. The first will also apply to any text
  652. before it. This method is only kept for backward compatibility. The
  653. preferred methods for setting multiple archive locations is using a
  654. property.
  655. 
  656. File: org, Node: Sparse trees, Next: Plain lists, Prev: Archiving, Up: Document structure
  657. 2.7 Sparse trees
  658. ================
  659. An important feature of Org-mode is the ability to construct _sparse
  660. trees_ for selected information in an outline tree. A sparse tree
  661. means that the entire document is folded as much as possible, but the
  662. selected information is made visible along with the headline structure
  663. above it(1). Just try it out and you will see immediately how it works.
  664. Org-mode contains several commands creating such trees. The most
  665. basic one is `org-occur':
  666. `C-c /'
  667. Occur. Prompts for a regexp and shows a sparse tree with all
  668. matches. If the match is in a headline, the headline is made
  669. visible. If the match is in the body of an entry, headline and
  670. body are made visible. In order to provide minimal context, also
  671. the full hierarchy of headlines above the match is shown, as well
  672. as the headline following the match. Each match is also
  673. highlighted; the highlights disappear when the buffer is changed
  674. by an editing command, or by pressing `C-c C-c'. When called with
  675. a `C-u' prefix argument, previous highlights are kept, so several
  676. calls to this command can be stacked.
  677. For frequently used sparse trees of specific search strings, you can
  678. use the variable `org-agenda-custom-commands' to define fast keyboard
  679. access to specific sparse trees. These commands will then be
  680. accessible through the agenda dispatcher (*note Agenda dispatcher::).
  681. For example:
  682. (setq org-agenda-custom-commands
  683. '(("f" occur-tree "FIXME")))
  684. will define the key `C-c a f' as a shortcut for creating a sparse tree
  685. matching the string `FIXME'.
  686. Other commands use sparse trees as well. For example `C-c C-v'
  687. creates a sparse TODO tree (*note TODO basics::).
  688. To print a sparse tree, you can use the Emacs command
  689. `ps-print-buffer-with-faces' which does not print invisible parts of
  690. the document (2). Or you can use the command `C-c C-e v' to export
  691. only the visible part of the document and print the resulting file.
  692. ---------- Footnotes ----------
  693. (1) See also the variables `org-show-hierarchy-above',
  694. `org-show-following-heading', and `org-show-siblings' for detailed
  695. control on how much context is shown around each match.
  696. (2) This does not work under XEmacs, because XEmacs uses selective
  697. display for outlining, not text properties.
  698. 
  699. File: org, Node: Plain lists, Next: Drawers, Prev: Sparse trees, Up: Document structure
  700. 2.8 Plain lists
  701. ===============
  702. Within an entry of the outline tree, hand-formatted lists can provide
  703. additional structure. They also provide a way to create lists of
  704. checkboxes (*note Checkboxes::). Org-mode supports editing such lists,
  705. and the HTML exporter (*note Exporting::) does parse and format them.
  706. Org-mode knows ordered and unordered lists. Unordered list items
  707. start with `-', `+', or `*'(1) as bullets. Ordered list items start
  708. with `1.' or `1)'. Items belonging to the same list must have the same
  709. indentation on the first line. In particular, if an ordered list
  710. reaches number `10.', then the 2-digit numbers must be written
  711. left-aligned with the other numbers in the list. Indentation also
  712. determines the end of a list item. It ends before the next line that
  713. is indented like the bullet/number, or less. Empty lines are part of
  714. the previous item, so you can have several paragraphs in one item. If
  715. you would like an empty line to terminate all currently open plain
  716. lists, configure the variable `org-empty-line-terminates-plain-lists'.
  717. Here is an example:
  718. ** Lord of the Rings
  719. My favorite scenes are (in this order)
  720. 1. The attack of the Rohirrim
  721. 2. Eowyns fight with the witch king
  722. + this was already my favorite scene in the book
  723. + I really like Miranda Otto.
  724. 3. Peter Jackson being shot by Legolas
  725. - on DVD only
  726. He makes a really funny face when it happens.
  727. But in the end, not individual scenes matter but the film as a whole.
  728. Org-mode supports these lists by tuning filling and wrapping
  729. commands to deal with them correctly(2).
  730. The following commands act on items when the cursor is in the first
  731. line of an item (the line with the bullet or number).
  732. `<TAB>'
  733. Items can be folded just like headline levels if you set the
  734. variable `org-cycle-include-plain-lists'. The level of an item is
  735. then given by the indentation of the bullet/number. Items are
  736. always subordinate to real headlines, however; the hierarchies
  737. remain completely separated.
  738. If `org-cycle-include-plain-lists' has not been set, <TAB> fixes
  739. the indentation of the curent line in a heuristic way.
  740. `M-<RET>'
  741. Insert new item at current level. With prefix arg, force a new
  742. heading (*note Structure editing::). If this command is used in
  743. the middle of a line, the line is _split_ and the rest of the line
  744. becomes the new item. If this command is executed in the
  745. _whitespace before a bullet or number_, the new item is created
  746. _before_ the current item. If the command is executed in the
  747. white space before the text that is part of an item but does not
  748. contain the bullet, a bullet is added to the current line.
  749. `M-S-<RET>'
  750. Insert a new item with a checkbox (*note Checkboxes::).
  751. `S-<up>'
  752. `S-<down>'
  753. Jump to the previous/next item in the current list.
  754. `M-S-<up>'
  755. `M-S-<down>'
  756. Move the item including subitems up/down (swap with previous/next
  757. item of same indentation). If the list is ordered, renumbering is
  758. automatic.
  759. `M-S-<left>'
  760. `M-S-<right>'
  761. Decrease/increase the indentation of the item, including subitems.
  762. Initially, the item tree is selected based on current indentation.
  763. When these commands are executed several times in direct
  764. succession, the initially selected region is used, even if the new
  765. indentation would imply a different hierarchy. To use the new
  766. hierarchy, break the command chain with a cursor motion or so.
  767. `C-c C-c'
  768. If there is a checkbox (*note Checkboxes::) in the item line,
  769. toggle the state of the checkbox. If not, make this command makes
  770. sure that all the items on this list level use the same bullet.
  771. Furthermore, if this is an ordered list, make sure the numbering
  772. is ok.
  773. `C-c -'
  774. Cycle the entire list level through the different itemize/enumerate
  775. bullets (`-', `+', `*', `1.', `1)'). With prefix arg, select the
  776. nth bullet from this list.
  777. ---------- Footnotes ----------
  778. (1) When using `*' as a bullet, lines must be indented or they will
  779. be seen as top-level headlines. Also, when you are hiding leading
  780. stars to get a clean outline view, plain list items starting with a
  781. star are visually indistinguishable from true headlines. In short:
  782. even though `*' is supported, it may be better not to use it for plain
  783. list items.
  784. (2) Org-mode only changes the filling settings for Emacs. For
  785. XEmacs, you should use Kyle E. Jones' `filladapt.el'. To turn this on,
  786. put into `.emacs': `(require 'filladapt)'
  787. 
  788. File: org, Node: Drawers, Next: orgstruct-mode, Prev: Plain lists, Up: Document structure
  789. 2.9 Drawers
  790. ===========
  791. Sometimes you want to keep information associated with an entry, but you
  792. normally don't want to see it. For this, Org-mode has _drawers_.
  793. Drawers need to be configured with the variable `org-drawers', and look
  794. like this:
  795. ** This is a headline
  796. Still outside the drawer
  797. :DRAWERNAME:
  798. This is inside the drawer.
  799. :END:
  800. After the drawer.
  801. Visibility cycling (*note Visibility cycling::) on the headline will
  802. hide and show the entry, but keep the drawer collapsed to a single line.
  803. In order to look inside the drawer, you need to move the cursor to the
  804. drawer line and press <TAB> there. Org-mode uses a drawer for storing
  805. properties (*note Properties and columns::).
  806. 
  807. File: org, Node: orgstruct-mode, Prev: Drawers, Up: Document structure
  808. 2.10 The Orgstruct minor mode
  809. =============================
  810. If you like the intuitive way the Org-mode structure editing and list
  811. formatting works, you might want to use these commands in other modes
  812. like text-mode or mail-mode as well. The minor mode Orgstruct-mode
  813. makes this possible. You can always toggle the mode with `M-x
  814. orgstruct-mode'. To turn it on by default, for example in mail mode,
  815. use
  816. (add-hook 'mail-mode-hook 'turn-on-orgstruct)
  817. When this mode is active and the cursor is on a line that looks to
  818. Org-mode like a headline of the first line of a list item, most
  819. structure editing commands will work, even if the same keys normally
  820. have different functionality in the major mode you are using. If the
  821. cursor is not in one of those special lines, Orgstruct-mode lurks
  822. silently in the shadow.
  823. 
  824. File: org, Node: Tables, Next: Hyperlinks, Prev: Document structure, Up: Top
  825. 3 Tables
  826. ********
  827. Org-mode has a very fast and intuitive table editor built-in.
  828. Spreadsheet-like calculations are supported in connection with the
  829. Emacs `calc' package.
  830. * Menu:
  831. * Built-in table editor:: Simple tables
  832. * Narrow columns:: Stop wasting space in tables
  833. * Column groups:: Grouping to trigger vertical lines
  834. * orgtbl-mode:: The table editor as minor mode
  835. * The spreadsheet:: The table editor has spreadsheet capabilities.
  836. 
  837. File: org, Node: Built-in table editor, Next: Narrow columns, Prev: Tables, Up: Tables
  838. 3.1 The built-in table editor
  839. =============================
  840. Org-mode makes it easy to format tables in plain ASCII. Any line with
  841. `|' as the first non-whitespace character is considered part of a
  842. table. `|' is also the column separator. A table might look like this:
  843. | Name | Phone | Age |
  844. |-------+-------+-----|
  845. | Peter | 1234 | 17 |
  846. | Anna | 4321 | 25 |
  847. A table is re-aligned automatically each time you press <TAB> or
  848. <RET> or `C-c C-c' inside the table. <TAB> also moves to the next
  849. field (<RET> to the next row) and creates new table rows at the end of
  850. the table or before horizontal lines. The indentation of the table is
  851. set by the first line. Any line starting with `|-' is considered as a
  852. horizontal separator line and will be expanded on the next re-align to
  853. span the whole table width. So, to create the above table, you would
  854. only type
  855. |Name|Phone|Age|
  856. |-
  857. and then press <TAB> to align the table and start filling in fields.
  858. When typing text into a field, Org-mode treats <DEL>, <Backspace>,
  859. and all character keys in a special way, so that inserting and deleting
  860. avoids shifting other fields. Also, when typing _immediately after the
  861. cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
  862. the field is automatically made blank. If this behavior is too
  863. unpredictable for you, configure the variables
  864. `org-enable-table-editor' and `org-table-auto-blank-field'.
  865. Creation and conversion
  866. .......................
  867. `C-c |'
  868. Convert the active region to table. If every line contains at
  869. least one TAB character, the function assumes that the material is
  870. tab separated. If every line contains a comma, comma-separated
  871. values (CSV) are assumed. If not, lines are split at whitespace
  872. into fields. You can use a prefix argument to force a specific
  873. separator: `C-u' forces CSV, `C-u C-u' forces TAB, and a numeric
  874. argument N indicates that at least N consequtive spaces, or
  875. alternatively a TAB will be the separator.
  876. If there is no active region, this command creates an empty
  877. Org-mode table. But it's easier just to start typing, like
  878. `|Name|Phone|Age <RET> |- <TAB>'.
  879. Re-aligning and field motion
  880. ............................
  881. `C-c C-c'
  882. Re-align the table without moving the cursor.
  883. `<TAB>'
  884. Re-align the table, move to the next field. Creates a new row if
  885. necessary.
  886. `S-<TAB>'
  887. Re-align, move to previous field.
  888. `<RET>'
  889. Re-align the table and move down to next row. Creates a new row if
  890. necessary. At the beginning or end of a line, <RET> still does
  891. NEWLINE, so it can be used to split a table.
  892. Column and row editing
  893. ......................
  894. `M-<left>'
  895. `M-<right>'
  896. Move the current column left/right.
  897. `M-S-<left>'
  898. Kill the current column.
  899. `M-S-<right>'
  900. Insert a new column to the left of the cursor position.
  901. `M-<up>'
  902. `M-<down>'
  903. Move the current row up/down.
  904. `M-S-<up>'
  905. Kill the current row or horizontal line.
  906. `M-S-<down>'
  907. Insert a new row above (with arg: below) the current row.
  908. `C-c -'
  909. Insert a horizontal line below current row. With prefix arg, the
  910. line is created above the current line.
  911. `C-c ^'
  912. Sort the table lines in the region. The position of point
  913. indicates the column to be used for sorting, and the range of
  914. lines is the range between the nearest horizontal separator lines,
  915. or the entire table. If point is before the first column, you
  916. will be prompted for the sorting column. If there is an active
  917. region, the mark specifies the first line and the sorting column,
  918. while point should be in the last line to be included into the
  919. sorting. The command prompts for the sorting type
  920. (alphabetically, numerically, or by time). When called with a
  921. prefix argument, alphabetic sorting will be case-sensitive.
  922. Regions
  923. .......
  924. `C-c C-x M-w'
  925. Copy a rectangular region from a table to a special clipboard.
  926. Point and mark determine edge fields of the rectangle. The
  927. process ignores horizontal separator lines.
  928. `C-c C-x C-w'
  929. Copy a rectangular region from a table to a special clipboard, and
  930. blank all fields in the rectangle. So this is the "cut" operation.
  931. `C-c C-x C-y'
  932. Paste a rectangular region into a table. The upper right corner
  933. ends up in the current field. All involved fields will be
  934. overwritten. If the rectangle does not fit into the present table,
  935. the table is enlarged as needed. The process ignores horizontal
  936. separator lines.
  937. `C-c C-q'
  938. Wrap several fields in a column like a paragraph. If there is an
  939. active region, and both point and mark are in the same column, the
  940. text in the column is wrapped to minimum width for the given
  941. number of lines. A prefix ARG may be used to change the number of
  942. desired lines. If there is no region, the current field is split
  943. at the cursor position and the text fragment to the right of the
  944. cursor is prepended to the field one line down. If there is no
  945. region, but you specify a prefix ARG, the current field is made
  946. blank, and the content is appended to the field above.
  947. Calculations
  948. ............
  949. `C-c +'
  950. Sum the numbers in the current column, or in the rectangle defined
  951. by the active region. The result is shown in the echo area and can
  952. be inserted with `C-y'.
  953. `S-<RET>'
  954. When current field is empty, copy from first non-empty field above.
  955. When not empty, copy current field down to next row and move cursor
  956. along with it. Depending on the variable
  957. `org-table-copy-increment', integer field values will be
  958. incremented during copy. This key is also used by CUA-mode (*note
  959. Cooperation::).
  960. Miscellaneous
  961. .............
  962. `C-c `'
  963. Edit the current field in a separate window. This is useful for
  964. fields that are not fully visible (*note Narrow columns::). When
  965. called with a `C-u' prefix, just make the full field visible, so
  966. that it can be edited in place.
  967. `C-c <TAB>'
  968. This is an alias for `C-u C-c `' to make the current field fully
  969. visible.
  970. `M-x org-table-import'
  971. Import a file as a table. The table should be TAB- or whitespace
  972. separated. Useful, for example, to import an Excel table or data
  973. from a database, because these programs generally can write
  974. TAB-separated text files. This command works by inserting the
  975. file into the buffer and then converting the region to a table.
  976. Any prefix argument is passed on to the converter, which uses it
  977. to determine the separator.
  978. `C-c |'
  979. Tables can also be imported by pasting tabular text into the
  980. org-mode buffer, selecting the pasted text with `C-x C-x' and then
  981. using the `C-c |' command (see above under Creation and conversion.
  982. `M-x org-table-export'
  983. Export the table as a TAB-separated file. Useful for data
  984. exchange with, for example, Excel or database programs.
  985. If you don't like the automatic table editor because it gets in your
  986. way on lines which you would like to start with `|', you can turn it
  987. off with
  988. (setq org-enable-table-editor nil)
  989. Then the only table command that still works is `C-c C-c' to do a
  990. manual re-align.
  991. 
  992. File: org, Node: Narrow columns, Next: Column groups, Prev: Built-in table editor, Up: Tables
  993. 3.2 Narrow columns
  994. ==================
  995. The width of columns is automatically determined by the table editor.
  996. Sometimes a single field or a few fields need to carry more text,
  997. leading to inconveniently wide columns. To limit(1) the width of a
  998. column, one field anywhere in the column may contain just the string
  999. `<N>' where `N' is an integer specifying the width of the column in
  1000. characters. The next re-align will then set the width of this column
  1001. to no more than this value.
  1002. |---+------------------------------| |---+--------|
  1003. | | | | | <6> |
  1004. | 1 | one | | 1 | one |
  1005. | 2 | two | ----\ | 2 | two |
  1006. | 3 | This is a long chunk of text | ----/ | 3 | This=> |
  1007. | 4 | four | | 4 | four |
  1008. |---+------------------------------| |---+--------|
  1009. Fields that are wider become clipped and end in the string `=>'. Note
  1010. that the full text is still in the buffer, it is only invisible. To
  1011. see the full text, hold the mouse over the field - a tool-tip window
  1012. will show the full content. To edit such a field, use the command `C-c
  1013. `' (that is `C-c' followed by the backquote). This will open a new
  1014. window with the full field. Edit it and finish with `C-c C-c'.
  1015. When visiting a file containing a table with narrowed columns, the
  1016. necessary character hiding has not yet happened, and the table needs to
  1017. be aligned before it looks nice. Setting the option
  1018. `org-startup-align-all-tables' will realign all tables in a file upon
  1019. visiting, but also slow down startup. You can also set this option on
  1020. a per-file basis with:
  1021. #+STARTUP: align
  1022. #+STARTUP: noalign
  1023. ---------- Footnotes ----------
  1024. (1) This feature does not work on XEmacs.
  1025. 
  1026. File: org, Node: Column groups, Next: orgtbl-mode, Prev: Narrow columns, Up: Tables
  1027. 3.3 Column groups
  1028. =================
  1029. When Org-mode exports tables, it does so by default without vertical
  1030. lines because that is visually more satisfying in general. Occasionally
  1031. however, vertical lines can be useful to structure a table into groups
  1032. of columns, much like horizontal lines can do for groups of rows. In
  1033. order to specify column groups, you can use a special row where the
  1034. first field contains only `/'. The further fields can either contain
  1035. `<' to indicate that this column should start a group, `>' to indicate
  1036. the end of a column, or `<>' to make a column a group of its own.
  1037. Boundaries between colum groups will upon export be marked with
  1038. vertical lines. Here is an example:
  1039. | | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
  1040. |---+----+-----+-----+-----+---------+------------|
  1041. | / | <> | < | | > | < | > |
  1042. | # | 1 | 1 | 1 | 1 | 1 | 1 |
  1043. | # | 2 | 4 | 8 | 16 | 1.4142 | 1.1892 |
  1044. | # | 3 | 9 | 27 | 81 | 1.7321 | 1.3161 |
  1045. |---+----+-----+-----+-----+---------+------------|
  1046. #+TBLFM: $3=$2^2::$4=$2^3::$5=$2^4::$6=sqrt($2)::$7=sqrt(sqrt(($2))
  1047. It is also sufficient to just insert the colum group starters after
  1048. every vertical line you'd like to have:
  1049. | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
  1050. |----+-----+-----+-----+---------+------------|
  1051. | / | < | | | < | |
  1052. 
  1053. File: org, Node: orgtbl-mode, Next: The spreadsheet, Prev: Column groups, Up: Tables
  1054. 3.4 The Orgtbl minor mode
  1055. =========================
  1056. If you like the intuitive way the Org-mode table editor works, you
  1057. might also want to use it in other modes like text-mode or mail-mode.
  1058. The minor mode Orgtbl-mode makes this possible. You can always toggle
  1059. the mode with `M-x orgtbl-mode'. To turn it on by default, for example
  1060. in mail mode, use
  1061. (add-hook 'mail-mode-hook 'turn-on-orgtbl)
  1062. Furthermore, with some special setup, it is possible to maintain
  1063. tables in arbitrary syntax with Orgtbl-mode. For example, it is
  1064. possible to construct LaTeX tables with the underlying ease and power of
  1065. Orgtbl-mode, including spreadsheet capabilities. For details, see
  1066. *Note Tables in arbitrary syntax::.
  1067. 
  1068. File: org, Node: The spreadsheet, Prev: orgtbl-mode, Up: Tables
  1069. 3.5 The spreadsheet
  1070. ===================
  1071. The table editor makes use of the Emacs `calc' package to implement
  1072. spreadsheet-like capabilities. It can also evaluate Emacs Lisp forms to
  1073. derive fields from other fields. While fully featured, Org-mode's
  1074. implementation is not identical to other spreadsheets. For example,
  1075. Org-mode knows the concept of a _column formula_ that will be applied
  1076. to all non-header fields in a column without having to copy the formula
  1077. to each relevant field.
  1078. * Menu:
  1079. * References:: How to refer to another field or range
  1080. * Formula syntax for Calc:: Using Calc to compute stuff
  1081. * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
  1082. * Field formulas:: Formulas valid for a single field
  1083. * Column formulas:: Formulas valid for an entire column
  1084. * Editing and debugging formulas:: Fixing formulas
  1085. * Updating the table:: Recomputing all dependent fields
  1086. * Advanced features:: Field names, parameters and automatic recalc
  1087. 
  1088. File: org, Node: References, Next: Formula syntax for Calc, Prev: The spreadsheet, Up: The spreadsheet
  1089. 3.5.1 References
  1090. ----------------
  1091. To compute fields in the table from other fields, formulas must
  1092. reference other fields or ranges. In Org-mode, fields can be referenced
  1093. by name, by absolute coordinates, and by relative coordinates. To find
  1094. out what the coordinates of a field are, press `C-c ?' in that field,
  1095. or press `C-c }' to toggle the display of a grid.
  1096. Field references
  1097. ................
  1098. Formulas can reference the value of another field in two ways. Like in
  1099. any other spreadsheet, you may reference fields with a letter/number
  1100. combination like `B3', meaning the 2nd field in the 3rd row.
  1101. Org-mode also uses another, more general operator that looks like this:
  1102. @row$column
  1103. Column references can be absolute like `1', `2',...`N', or relative to
  1104. the current column like `+1' or `-2'.
  1105. The row specification only counts data lines and ignores horizontal
  1106. separator lines (hlines). You can use absolute row numbers `1'...`N',
  1107. and row numbers relative to the current row like `+3' or `-1'. Or
  1108. specify the row relative to one of the hlines: `I' refers to the first
  1109. hline, `II' to the second etc. `-I' refers to the first such line
  1110. above the current line, `+I' to the first such line below the current
  1111. line. You can also write `III+2' which is the second data line after
  1112. the third hline in the table. Relative row numbers like `-3' will not
  1113. cross hlines if the current line is too close to the hline. Instead,
  1114. the value directly at the hline is used.
  1115. `0' refers to the current row and column. Also, if you omit either
  1116. the column or the row part of the reference, the current row/column is
  1117. implied.
  1118. Org-mode's references with _unsigned_ numbers are fixed references
  1119. in the sense that if you use the same reference in the formula for two
  1120. different fields, the same field will be referenced each time.
  1121. Org-mode's references with _signed_ numbers are floating references
  1122. because the same reference operator can reference different fields
  1123. depending on the field being calculated by the formula.
  1124. Here are a few examples:
  1125. @2$3 2nd row, 3rd column
  1126. C2 same as previous
  1127. $5 column 5 in the current row
  1128. E& same as previous
  1129. @2 current column, row 2
  1130. @-1$-3 the field one row up, three columns to the left
  1131. @-I$2 field just under hline above current row, column 2
  1132. Range references
  1133. ................
  1134. You may reference a rectangular range of fields by specifying two field
  1135. references connected by two dots `..'. If both fields are in the
  1136. current row, you may simply use `$2..$7', but if at least one field is
  1137. in a different row, you need to use the general `@row$column' format at
  1138. least for the first field (i.e the reference must start with `@' in
  1139. order to be interpreted correctly). Examples:
  1140. $1..$3 First three fields in the current row.
  1141. $P..$Q Range, using column names (see under Advanced)
  1142. @2$1..@4$3 6 fields between these two fields.
  1143. A2..C4 Same as above.
  1144. @-1$-2..@-1 3 numbers from the column to the left, 2 up to current row
  1145. Range references return a vector of values that can be fed into Calc
  1146. vector functions. Empty fields in ranges are normally suppressed, so
  1147. that the vector contains only the non-empty fields (but see the `E'
  1148. mode switch below). If there are no non-empty fields, `[0]' is
  1149. returned to avoid syntax errors in formulas.
  1150. Named references
  1151. ................
  1152. `$name' is interpreted as the name of a column, parameter or constant.
  1153. Constants are defined globally through the variable
  1154. `org-table-formula-constants', and locally (for the file) through a
  1155. line like
  1156. #+CONSTANTS: c=299792458. pi=3.14 eps=2.4e-6
  1157. Also properties (*note Properties and columns::) can be used as
  1158. constants in table formulas: For a property `:XYZ:' use the name
  1159. `$PROP_XYZ', and the property will be searched in the current outline
  1160. entry and in the hierarchy above it. If you have the `constants.el'
  1161. package, it will also be used to resolve constants, including natural
  1162. constants like `$h' for Planck's constant, and units like `$km' for
  1163. kilometers(1). Column names and parameters can be specified in special
  1164. table lines. These are described below, see *Note Advanced features::.
  1165. All names must start with a letter, and further consist of letters and
  1166. numbers.
  1167. ---------- Footnotes ----------
  1168. (1) `Constant.el' can supply the values of constants in two
  1169. different unit systems, `SI' and `cgs'. Which one is used depends on
  1170. the value of the variable `constants-unit-system'. You can use the
  1171. `#+STARTUP' options `constSI' and `constcgs' to set this value for the
  1172. current buffer.
  1173. 
  1174. File: org, Node: Formula syntax for Calc, Next: Formula syntax for Lisp, Prev: References, Up: The spreadsheet
  1175. 3.5.2 Formula syntax for Calc
  1176. -----------------------------
  1177. A formula can be any algebraic expression understood by the Emacs
  1178. `Calc' package. Note that `calc' has the non-standard convention that
  1179. `/' has lower precedence than `*', so that `a/b*c' is interpreted as
  1180. `a/(b*c)'. Before evaluation by `calc-eval' (*note calc-eval:
  1181. (calc)Calling Calc from Your Programs.), variable substitution takes
  1182. place according to the rules described above. The range vectors can be
  1183. directly fed into the calc vector functions like `vmean' and `vsum'.
  1184. A formula can contain an optional mode string after a semicolon.
  1185. This string consists of flags to influence Calc and other modes during
  1186. execution. By default, Org-mode uses the standard calc modes (precision
  1187. 12, angular units degrees, fraction and symbolic modes off. The display
  1188. format, however, has been changed to `(float 5)' to keep tables
  1189. compact. The default settings can be configured using the variable
  1190. `org-calc-default-modes'.
  1191. p20 switch the internal precision to 20 digits
  1192. n3 s3 e2 f4 normal, scientific, engineering, or fixed display format
  1193. D R angle modes: degrees, radians
  1194. F S fraction and symbolic modes
  1195. N interpret all fields as numbers, use 0 for non-numbers
  1196. T force text interpretation
  1197. E keep empty fields in ranges
  1198. In addition, you may provide a `printf' format specifier to reformat
  1199. the final result. A few examples:
  1200. $1+$2 Sum of first and second field
  1201. $1+$2;%.2f Same, format result to two decimals
  1202. exp($2)+exp($1) Math functions can be used
  1203. $0;%.1f Reformat current cell to 1 decimal
  1204. ($3-32)*5/9 Degrees F -> C conversion
  1205. $c/$1/$cm Hz -> cm conversion, using `constants.el'
  1206. tan($1);Dp3s1 Compute in degrees, precision 3, display SCI 1
  1207. sin($1);Dp3%.1e Same, but use printf specifier for display
  1208. vmean($2..$7) Compute column range mean, using vector function
  1209. vmean($2..$7);EN Same, but treat empty fields as 0
  1210. taylor($3,x=7,2) taylor series of $3, at x=7, second degree
  1211. Calc also contains a complete set of logical operations. For example
  1212. if($1<20,teen,string("")) "teen" if age $1 less than 20, else empty
  1213. 
  1214. File: org, Node: Formula syntax for Lisp, Next: Field formulas, Prev: Formula syntax for Calc, Up: The spreadsheet
  1215. 3.5.3 Emacs Lisp forms as formulas
  1216. ----------------------------------
  1217. It is also possible to write a formula in Emacs Lisp; this can be useful
  1218. for string manipulation and control structures, if the Calc's
  1219. functionality is not enough. If a formula starts with a single quote
  1220. followed by an opening parenthesis, then it is evaluated as a lisp form.
  1221. The evaluation should return either a string or a number. Just as with
  1222. `calc' formulas, you can specify modes and a printf format after a
  1223. semicolon. With Emacs Lisp forms, you need to be concious about the way
  1224. field references are interpolated into the form. By default, a
  1225. reference will be interpolated as a Lisp string (in double quotes)
  1226. containing the field. If you provide the `N' mode switch, all
  1227. referenced elements will be numbers (non-number fields will be zero) and
  1228. interpolated as Lisp numbers, without quotes. If you provide the `L'
  1229. flag, all fields will be interpolated literally, without quotes. I.e.,
  1230. if you want a reference to be interpreted as a string by the Lisp form,
  1231. enclode the reference operator itself in double quotes, like `"$3"'.
  1232. Ranges are inserted as space-separated fields, so you can embed them in
  1233. list or vector syntax. A few examples, note how the `N' mode is used
  1234. when we do computations in lisp.
  1235. Swap the first two characters of the content of column 1
  1236. '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
  1237. Add columns 1 and 2, equivalent to the Calc's `$1+$2'
  1238. '(+ $1 $2);N
  1239. Compute the sum of columns 1-4, like Calc's `vsum($1..$4)'
  1240. '(apply '+ '($1..$4));N
  1241. 
  1242. File: org, Node: Field formulas, Next: Column formulas, Prev: Formula syntax for Lisp, Up: The spreadsheet
  1243. 3.5.4 Field formulas
  1244. --------------------
  1245. To assign a formula to a particular field, type it directly into the
  1246. field, preceded by `:=', for example `:=$1+$2'. When you press <TAB>
  1247. or <RET> or `C-c C-c' with the cursor still in the field, the formula
  1248. will be stored as the formula for this field, evaluated, and the
  1249. current field replaced with the result.
  1250. Formulas are stored in a special line starting with `#+TBLFM:'
  1251. directly below the table. If you typed the equation in the 4th field of
  1252. the 3rd data line in the table, the formula will look like
  1253. `@3$4=$1+$2'. When inserting/deleting/swapping column and rows with
  1254. the appropriate commands, absolute references (but not relative ones)
  1255. in stored formulas are modified in order to still reference the same
  1256. field. Of cause this is not true if you edit the table structure with
  1257. normal editing commands - then you must fix the equations yourself.
  1258. Instead of typing an equation into the field, you may also use the
  1259. following command
  1260. `C-u C-c ='
  1261. Install a new formula for the current field. The command prompts
  1262. for a formula, with default taken from the `#+TBLFM:' line, applies
  1263. it to the current field and stores it.
  1264. 
  1265. File: org, Node: Column formulas, Next: Editing and debugging formulas, Prev: Field formulas, Up: The spreadsheet
  1266. 3.5.5 Column formulas
  1267. ---------------------
  1268. Often in a table, the same formula should be used for all fields in a
  1269. particular column. Instead of having to copy the formula to all fields
  1270. in that column, org-mode allows to assign a single formula to an entire
  1271. column. If the table contains horizontal separator hlines, everything
  1272. before the first such line is considered part of the table _header_ and
  1273. will not be modified by column formulas.
  1274. To assign a formula to a column, type it directly into any field in
  1275. the column, preceded by an equal sign, like `=$1+$2'. When you press
  1276. <TAB> or <RET> or `C-c C-c' with the cursor still in the field, the
  1277. formula will be stored as the formula for the current column, evaluated
  1278. and the current field replaced with the result. If the field contains
  1279. only `=', the previously stored formula for this column is used. For
  1280. each column, Org-mode will only remember the most recently used
  1281. formula. In the `TBLFM:' line, column formulas will look like
  1282. `$4=$1+$2'.
  1283. Instead of typing an equation into the field, you may also use the
  1284. following command:
  1285. `C-c ='
  1286. Install a new formula for the current column and replace current
  1287. field with the result of the formula. The command prompts for a
  1288. formula, with default taken from the `#+TBLFM' line, applies it to
  1289. the current field and stores it. With a numerical prefix (e.g.
  1290. `C-5 C-c =') will apply it to that many consecutive fields in the
  1291. current column.
  1292. 
  1293. File: org, Node: Editing and debugging formulas, Next: Updating the table, Prev: Column formulas, Up: The spreadsheet
  1294. 3.5.6 Editing and Debugging formulas
  1295. ------------------------------------
  1296. You can edit individual formulas in the minibuffer or directly in the
  1297. field. Org-mode can also prepare a special buffer with all active
  1298. formulas of a table. When offering a formula for editing, Org-mode
  1299. converts references to the standard format (like `B3' or `D&') if
  1300. possible. If you prefer to only work with the internal format (like
  1301. `@3$2' or `$4'), configure the variable
  1302. `org-table-use-standard-references'.
  1303. `C-c ='
  1304. `C-u C-c ='
  1305. Edit the formula associated with the current column/field in the
  1306. minibuffer. See *Note Column formulas:: and *Note Field
  1307. formulas::.
  1308. `C-u C-u C-c ='
  1309. Re-insert the active formula (either a field formula, or a column
  1310. formula) into the current field, so that you can edit it directly
  1311. in the field. The advantage over editing in the minibuffer is
  1312. that you can use the command `C-c ?'.
  1313. `C-c ?'
  1314. While editing a formula in a table field, highlight the field(s)
  1315. referenced by the reference at the cursor position in the formula.
  1316. `C-c }'
  1317. Toggle the display of row and column numbers for a table, using
  1318. overlays. These are updated each time the table is aligned, you
  1319. can force it with `C-c C-c'.
  1320. `C-c {'
  1321. Toggle the formula debugger on and off. See below.
  1322. `C-c ''
  1323. Edit all formulas for the current table in a special buffer, where
  1324. the formulas will be displayed one per line. If the current field
  1325. has an active formula, the cursor in the formula editor will mark
  1326. it. While inside the special buffer, Org-mode will automatically
  1327. highlight any field or range reference at the cursor position.
  1328. You may edit, remove and add formulas, and use the following
  1329. commands:
  1330. `C-c C-c'
  1331. `C-x C-s'
  1332. Exit the formula editor and store the modified formulas.
  1333. With `C-u' prefix, also apply the new formulas to the entire
  1334. table.
  1335. `C-c C-q'
  1336. Exit the formula editor without installing changes.
  1337. `C-c C-r'
  1338. Toggle all references in the formula editor between standard
  1339. (like `B3') and internal (like `@3$2').
  1340. `<TAB>'
  1341. Pretty-print or indent lisp formula at point. When in a line
  1342. containing a lisp formula, format the formula according to
  1343. Emacs Lisp rules. Another <TAB> collapses the formula back
  1344. again. In the open formula, <TAB> re-indents just like in
  1345. Emacs-lisp-mode.
  1346. `M-<TAB>'
  1347. Complete Lisp symbols, just like in Emacs-lisp-mode.
  1348. `S-<up>/<down>/<left>/<right>'
  1349. Shift the reference at point. For example, if the reference
  1350. is `B3' and you press `S-<right>', it will become `C3'. This
  1351. also works for relative references, and for hline references.
  1352. `M-S-<up>/<down>'
  1353. Move the test line for column formulas in the Org-mode buffer
  1354. up and down.
  1355. `M-<up>/<down>'
  1356. Scroll the window displaying the table.
  1357. `C-c }'
  1358. Turn the coordinate grid in the table on and off.
  1359. Making a table field blank does not remove the formula associated
  1360. with the field, because that is stored in a different line (the `TBLFM'
  1361. line) - during the next recalculation the field will be filled again.
  1362. To remove a formula from a field, you have to give an empty reply when
  1363. prompted for the formula, or to edit the `#+TBLFM' line.
  1364. You may edit the `#+TBLFM' directly and re-apply the changed
  1365. equations with `C-c C-c' in that line, or with the normal recalculation
  1366. commands in the table.
  1367. Debugging formulas
  1368. ..................
  1369. When the evaluation of a formula leads to an error, the field content
  1370. becomes the string `#ERROR'. If you would like see what is going on
  1371. during variable substitution and calculation in order to find a bug,
  1372. turn on formula debugging in the `Tbl' menu and repeat the calculation,
  1373. for example by pressing `C-u C-u C-c = <RET>' in a field. Detailed
  1374. information will be displayed.
  1375. 
  1376. File: org, Node: Updating the table, Next: Advanced features, Prev: Editing and debugging formulas, Up: The spreadsheet
  1377. 3.5.7 Updating the Table
  1378. ------------------------
  1379. Recalculation of a table is normally not automatic, but needs to be
  1380. triggered by a command. See *Note Advanced features:: for a way to make
  1381. recalculation at least semi-automatically.
  1382. In order to recalculate a line of a table or the entire table, use
  1383. the following commands:
  1384. `C-c *'
  1385. Recalculate the current row by first applying the stored column
  1386. formulas from left to right, and all field formulas in the current
  1387. row.
  1388. `C-u C-c *'
  1389. `C-u C-c C-c'
  1390. Recompute the entire table, line by line. Any lines before the
  1391. first hline are left alone, assuming that these are part of the
  1392. table header.
  1393. `C-u C-u C-c *'
  1394. `C-u C-u C-c C-c'
  1395. Iterate the table by recomputing it until no further changes occur.
  1396. This may be necessary if some computed fields use the value of
  1397. other fields that are computed later in the calculation sequence.
  1398. 
  1399. File: org, Node: Advanced features, Prev: Updating the table, Up: The spreadsheet
  1400. 3.5.8 Advanced features
  1401. -----------------------
  1402. If you want the recalculation of fields to happen automatically, or if
  1403. you want to be able to assign names to fields and columns, you need to
  1404. reserve the first column of the table for special marking characters.
  1405. `C-#'
  1406. Rotate the calculation mark in first column through the states `',
  1407. `#', `*', `!', `$'. The meaning of these characters is discussed
  1408. below. When there is an active region, change all marks in the
  1409. region.
  1410. Here is an example of a table that collects exam results of students
  1411. and makes use of these features:
  1412. |---+---------+--------+--------+--------+-------+------|
  1413. | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
  1414. |---+---------+--------+--------+--------+-------+------|
  1415. | ! | | P1 | P2 | P3 | Tot | |
  1416. | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
  1417. | ^ | | m1 | m2 | m3 | mt | |
  1418. |---+---------+--------+--------+--------+-------+------|
  1419. | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
  1420. | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
  1421. | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
  1422. |---+---------+--------+--------+--------+-------+------|
  1423. | | Average | | | | 29.7 | |
  1424. | ^ | | | | | at | |
  1425. | $ | max=50 | | | | | |
  1426. |---+---------+--------+--------+--------+-------+------|
  1427. #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
  1428. Important: Please note that for these special tables, recalculating the
  1429. table with `C-u C-c *' will only affect rows that are marked `#' or
  1430. `*', and fields that have a formula assigned to the field itself. The
  1431. column formulas are not applied in rows with empty first field.
  1432. The marking characters have the following meaning:
  1433. `!'
  1434. The fields in this line define names for the columns, so that you
  1435. may refer to a column as `$Tot' instead of `$6'.
  1436. `^'
  1437. This row defines names for the fields _above_ the row. With such
  1438. a definition, any formula in the table may use `$m1' to refer to
  1439. the value `10'. Also, if you assign a formula to a names field, it
  1440. will be stored as `$name=...'.
  1441. `_'
  1442. Similar to `^', but defines names for the fields in the row
  1443. _below_.
  1444. `$'
  1445. Fields in this row can define _parameters_ for formulas. For
  1446. example, if a field in a `$' row contains `max=50', then formulas
  1447. in this table can refer to the value 50 using `$max'. Parameters
  1448. work exactly like constants, only that they can be defined on a
  1449. per-table basis.
  1450. `#'
  1451. Fields in this row are automatically recalculated when pressing
  1452. <TAB> or <RET> or `S-<TAB>' in this row. Also, this row is
  1453. selected for a global recalculation with `C-u C-c *'. Unmarked
  1454. lines will be left alone by this command.
  1455. `*'
  1456. Selects this line for global recalculation with `C-u C-c *', but
  1457. not for automatic recalculation. Use this when automatic
  1458. recalculation slows down editing too much.
  1459. `'
  1460. Unmarked lines are exempt from recalculation with `C-u C-c *'.
  1461. All lines that should be recalculated should be marked with `#' or
  1462. `*'.
  1463. `/'
  1464. Do not export this line. Useful for lines that contain the
  1465. narrowing `<N>' markers.
  1466. Finally, just to whet your appetite on what can be done with the
  1467. fantastic `calc' package, here is a table that computes the Taylor
  1468. series of degree `n' at location `x' for a couple of functions
  1469. (homework: try that with Excel :-)
  1470. |---+-------------+---+-----+--------------------------------------|
  1471. | | Func | n | x | Result |
  1472. |---+-------------+---+-----+--------------------------------------|
  1473. | # | exp(x) | 1 | x | 1 + x |
  1474. | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
  1475. | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
  1476. | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
  1477. | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
  1478. | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
  1479. |---+-------------+---+-----+--------------------------------------|
  1480. #+TBLFM: $5=taylor($2,$4,$3);n3
  1481. 
  1482. File: org, Node: Hyperlinks, Next: TODO items, Prev: Tables, Up: Top
  1483. 4 Hyperlinks
  1484. ************
  1485. Just like HTML, Org-mode provides links inside a file, and external
  1486. links to other files, Usenet articles, emails, and much more.
  1487. * Menu:
  1488. * Link format:: How links in Org-mode are formatted
  1489. * Internal links:: Links to other places in the current file
  1490. * External links:: URL-like links to the world
  1491. * Handling links:: Creating, inserting and following
  1492. * Using links outside Org-mode:: Linking from my C source code?
  1493. * Link abbreviations:: Shortcuts for writing complex links
  1494. * Search options:: Linking to a specific location
  1495. * Custom searches:: When the default search is not enough
  1496. 
  1497. File: org, Node: Link format, Next: Internal links, Prev: Hyperlinks, Up: Hyperlinks
  1498. 4.1 Link format
  1499. ===============
  1500. Org-mode will recognize plain URL-like links and activate them as
  1501. clickable links. The general link format, however, looks like this:
  1502. [[link][description]] or alternatively [[link]]
  1503. Once a link in the buffer is complete (all brackets present),
  1504. Org-mode will change the display so that `description' is displayed
  1505. instead of `[[link][description]]' and `link' is displayed instead of
  1506. `[[link]]'. Links will be highlighted in the face `org-link', which by
  1507. default is an underlined face. You can directly edit the visible part
  1508. of a link. Note that this can be either the `link' part (if there is
  1509. no description) or the `description' part. To edit also the invisible
  1510. `link' part, use `C-c C-l' with the cursor on the link.
  1511. If you place the cursor at the beginning or just behind the end of
  1512. the displayed text and press <BACKSPACE>, you will remove the
  1513. (invisible) bracket at that location. This makes the link incomplete
  1514. and the internals are again displayed as plain text. Inserting the
  1515. missing bracket hides the link internals again. To show the internal
  1516. structure of all links, use the menu entry `Org->Hyperlinks->Literal
  1517. links'.
  1518. 
  1519. File: org, Node: Internal links, Next: External links, Prev: Link format, Up: Hyperlinks
  1520. 4.2 Internal links
  1521. ==================
  1522. If the link does not look like a URL, it is considered to be internal in
  1523. the current file. Links such as `[[My Target]]' or `[[My Target][Find
  1524. my target]]' lead to a text search in the current file. The link can
  1525. be followed with `C-c C-o' when the cursor is on the link, or with a
  1526. mouse click (*note Handling links::). The preferred match for such a
  1527. link is a dedicated target: the same string in double angular brackets.
  1528. Targets may be located anywhere; sometimes it is convenient to put
  1529. them into a comment line. For example
  1530. # <<My Target>>
  1531. In HTML export (*note HTML export::), such targets will become named
  1532. anchors for direct access through `http' links(1).
  1533. If no dedicated target exists, Org-mode will search for the words in
  1534. the link. In the above example the search would be for `my target'.
  1535. Links starting with a star like `*My Target' restrict the search to
  1536. headlines. When searching, Org-mode will first try an exact match, but
  1537. then move on to more and more lenient searches. For example, the link
  1538. `[[*My Targets]]' will find any of the following:
  1539. ** My targets
  1540. ** TODO my targets are bright
  1541. ** my 20 targets are
  1542. To insert a link targeting a headline, in-buffer completion can be
  1543. used. Just type a star followed by a few optional letters into the
  1544. buffer and press `M-<TAB>'. All headlines in the current buffer will be
  1545. offered as completions. *Note Handling links::, for more commands
  1546. creating links.
  1547. Following a link pushes a mark onto Org-mode's own mark ring. You
  1548. can return to the previous position with `C-c &'. Using this command
  1549. several times in direct succession goes back to positions recorded
  1550. earlier.
  1551. * Menu:
  1552. * Radio targets:: Make targets trigger links in plain text.
  1553. ---------- Footnotes ----------
  1554. (1) Note that text before the first headline is usually not
  1555. exported, so the first such target should be after the first headline.
  1556. 
  1557. File: org, Node: Radio targets, Prev: Internal links, Up: Internal links
  1558. 4.2.1 Radio targets
  1559. -------------------
  1560. Org-mode can automatically turn any occurrences of certain target names
  1561. in normal text into a link. So without explicitly creating a link, the
  1562. text connects to the target radioing its position. Radio targets are
  1563. enclosed by triple angular brackets. For example, a target `<<<My
  1564. Target>>>' causes each occurrence of `my target' in normal text to
  1565. become activated as a link. The Org-mode file is scanned automatically
  1566. for radio targets only when the file is first loaded into Emacs. To
  1567. update the target list during editing, press `C-c C-c' with the cursor
  1568. on or at a target.
  1569. 
  1570. File: org, Node: External links, Next: Handling links, Prev: Internal links, Up: Hyperlinks
  1571. 4.3 External links
  1572. ==================
  1573. Org-mode supports links to files, websites, Usenet and email messages,
  1574. and BBDB database entries. External links are URL-like locators. They
  1575. start with a short identifying string followed by a colon. There can be
  1576. no space after the colon. The following list shows examples for each
  1577. link type.
  1578. http://www.astro.uva.nl/~dominik on the web
  1579. file:/home/dominik/images/jupiter.jpg file, absolute path
  1580. file:papers/last.pdf file, relative path
  1581. news:comp.emacs Usenet link
  1582. mailto:adent@galaxy.net Mail link
  1583. vm:folder VM folder link
  1584. vm:folder#id VM message link
  1585. vm://myself@some.where.org/folder#id VM on remote machine
  1586. wl:folder WANDERLUST folder link
  1587. wl:folder#id WANDERLUST message link
  1588. mhe:folder MH-E folder link
  1589. mhe:folder#id MH-E message link
  1590. rmail:folder RMAIL folder link
  1591. rmail:folder#id RMAIL message link
  1592. gnus:group GNUS group link
  1593. gnus:group#id GNUS article link
  1594. bbdb:Richard Stallman BBDB link
  1595. shell:ls *.org A shell command
  1596. elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
  1597. A link should be enclosed in double brackets and may contain a
  1598. descriptive text to be displayed instead of the url (*note Link
  1599. format::), for example:
  1600. [[http://www.gnu.org/software/emacs/][GNU Emacs]]
  1601. If the description is a file name or URL that points to an image, HTML
  1602. export (*note HTML export::) will inline the image as a clickable
  1603. button. If there is no description at all and the link points to an
  1604. image, that image will be inlined into the exported HTML file.
  1605. Org-mode also finds external links in the normal text and activates
  1606. them as links. If spaces must be part of the link (for example in
  1607. `bbdb:Richard Stallman'), or if you need to remove ambiguities about
  1608. the end of the link, enclose them in angular brackets.
  1609. 
  1610. File: org, Node: Handling links, Next: Using links outside Org-mode, Prev: External links, Up: Hyperlinks
  1611. 4.4 Handling links
  1612. ==================
  1613. Org-mode provides methods to create a link in the correct syntax, to
  1614. insert it into an org-mode file, and to follow the link.
  1615. `C-c l'
  1616. Store a link to the current location. This is a _global_ command
  1617. which can be used in any buffer to create a link. The link will be
  1618. stored for later insertion into an Org-mode buffer (see below).
  1619. For Org-mode files, if there is a `<<target>>' at the cursor, the
  1620. link points to the target. Otherwise it points to the current
  1621. headline. For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
  1622. the link will indicate the current article/entry. For W3 and W3M
  1623. buffers, the link goes to the current URL. For any other files,
  1624. the link will point to the file, with a search string (*note
  1625. Search options::) pointing to the contents of the current line.
  1626. If there is an active region, the selected words will form the
  1627. basis of the search string. If the automatically created link is
  1628. not working correctly or accurately enough, you can write custom
  1629. functions to select the search string and to do the search for
  1630. particular file types - see *Note Custom searches::. The key
  1631. binding `C-c l' is only a suggestion - see *Note Installation::.
  1632. `C-c C-l'
  1633. Insert a link. This prompts for a link to be inserted into the
  1634. buffer. You can just type a link, using text for an internal
  1635. link, or one of the link type prefixes mentioned in the examples
  1636. above. All links stored during the current session are part of
  1637. the history for this prompt, so you can access them with <up> and
  1638. <down> (or `M-p/n'). Completion, on the other hand, will help you
  1639. to insert valid link prefixes like `http:' or `ftp:', including
  1640. the prefixes defined through link abbreviations (*note Link
  1641. abbreviations::). The link will be inserted into the buffer(1),
  1642. along with a descriptive text. If some text was selected when
  1643. this command is called, the selected text becomes the default
  1644. description.
  1645. Note that you don't have to use this command to insert a link.
  1646. Links in Org-mode are plain text, and you can type or paste them
  1647. straight into the buffer. By using this command, the links are
  1648. automatically enclosed in double brackets, and you will be asked
  1649. for the optional descriptive text.
  1650. `C-u C-c C-l'
  1651. When `C-c C-l' is called with a `C-u' prefix argument, a link to a
  1652. file will be inserted and you may use file name completion to
  1653. select the name of the file. The path to the file is inserted
  1654. relative to the directory of the current org file, if the linked
  1655. file is in the current directory or in a subdirectory of it, or if
  1656. the path is written relative to the current directory using `../'.
  1657. Otherwise an absolute path is used, if possible with `~/' for
  1658. your home directory. You can force an absolute path with two
  1659. `C-u' prefixes.
  1660. `C-c C-l (with cursor on existing link)'
  1661. When the cursor is on an existing link, `C-c C-l' allows you to
  1662. edit the link and description parts of the link.
  1663. `C-c C-o'
  1664. Open link at point. This will launch a web browser for URLs (using
  1665. `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
  1666. the corresponding links, and execute the command in a shell link.
  1667. When the cursor is on an internal link, this commands runs the
  1668. corresponding search. When the cursor is on a TAG list in a
  1669. headline, it creates the corresponding TAGS view. If the cursor
  1670. is on a time stamp, it compiles the agenda for that date.
  1671. Furthermore, it will visit text and remote files in `file:' links
  1672. with Emacs and select a suitable application for local non-text
  1673. files. Classification of files is based on file extension only.
  1674. See option `org-file-apps'. If you want to override the default
  1675. application and visit the file with Emacs, use a `C-u' prefix.
  1676. `mouse-2'
  1677. `mouse-1'
  1678. On links, `mouse-2' will open the link just as `C-c C-o' would.
  1679. Under Emacs 22, also `mouse-1' will follow a link.
  1680. `mouse-3'
  1681. Like `mouse-2', but force file links to be opened with Emacs, and
  1682. internal links to be displayed in another window(2).
  1683. `C-c %'
  1684. Push the current position onto the mark ring, to be able to return
  1685. easily. Commands following an internal link do this automatically.
  1686. `C-c &'
  1687. Jump back to a recorded position. A position is recorded by the
  1688. commands following internal links, and by `C-c %'. Using this
  1689. command several times in direct succession moves through a ring of
  1690. previously recorded positions.
  1691. `C-c C-x C-n'
  1692. `C-c C-x C-p'
  1693. Move forward/backward to the next link in the buffer. At the
  1694. limit of the buffer, the search fails once, and then wraps around.
  1695. The key bindings for this are really too long, you might want to
  1696. bind this also to `C-n' and `C-p'
  1697. (add-hook 'org-load-hook
  1698. (lambda ()
  1699. (define-key 'org-mode-map "\C-n" 'org-next-link)
  1700. (define-key 'org-mode-map "\C-p" 'org-previous-link)))
  1701. ---------- Footnotes ----------
  1702. (1) After insertion of a stored link, the link will be removed from
  1703. the list of stored links. To keep it in the list later use, use a
  1704. triple `C-u' prefix to `C-c C-l', or configure the option
  1705. `org-keep-stored-link-after-insertion'.
  1706. (2) See the variable `org-display-internal-link-with-indirect-buffer'
  1707. 
  1708. File: org, Node: Using links outside Org-mode, Next: Link abbreviations, Prev: Handling links, Up: Hyperlinks
  1709. 4.5 Using links outside Org-mode
  1710. ================================
  1711. You can insert and follow links that have Org-mode syntax not only in
  1712. Org-mode, but in any Emacs buffer. For this, you should create two
  1713. global commands, like this (please select suitable global keys
  1714. yourself):
  1715. (global-set-key "\C-c L" 'org-insert-link-global)
  1716. (global-set-key "\C-c o" 'org-open-at-point-global)
  1717. 
  1718. File: org, Node: Link abbreviations, Next: Search options, Prev: Using links outside Org-mode, Up: Hyperlinks
  1719. 4.6 Link abbreviations
  1720. ======================
  1721. Long URLs can be cumbersome to type, and often many similar links are
  1722. needed in a document. For this you can use link abbreviations. An
  1723. abbreviated link looks like this
  1724. [[linkword:tag][description]]
  1725. where the tag is optional. Such abbreviations are resolved according to
  1726. the information in the variable `org-link-abbrev-alist' that relates
  1727. the linkwords to replacement text. Here is an example:
  1728. (setq org-link-abbrev-alist
  1729. '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
  1730. ("google" . "http://www.google.com/search?q=")
  1731. ("ads" . "http://adsabs.harvard.edu/cgi-bin/
  1732. nph-abs_connect?author=%s&db_key=AST")))
  1733. If the replacement text contains the string `%s', it will be
  1734. replaced with the tag. Otherwise the tag will be appended to the string
  1735. in order to create the link. You may also specify a function that will
  1736. be called with the tag as the only argument to create the link.
  1737. With the above setting, you could link to a specific bug with
  1738. `[[bugzilla:129]]', search the web for `OrgMode' with
  1739. `[[google:OrgMode]]' and find out what the Org-mode author is doing
  1740. besides Emacs hacking with `[[ads:Dominik,C]]'.
  1741. If you need special abbreviations just for a single Org-mode buffer,
  1742. you can define them in the file with
  1743. #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
  1744. #+LINK: google http://www.google.com/search?q=%s
  1745. In-buffer completion *note Completion:: can be used after `[' to
  1746. complete link abbreviations.
  1747. 
  1748. File: org, Node: Search options, Next: Custom searches, Prev: Link abbreviations, Up: Hyperlinks
  1749. 4.7 Search options in file links
  1750. ================================
  1751. File links can contain additional information to make Emacs jump to a
  1752. particular location in the file when following a link. This can be a
  1753. line number or a search option after a double(1) colon. For example,
  1754. when the command `C-c l' creates a link (*note Handling links::) to a
  1755. file, it encodes the words in the current line as a search string that
  1756. can be used to find this line back later when following the link with
  1757. `C-c C-o'.
  1758. Here is the syntax of the different ways to attach a search to a file
  1759. link, together with an explanation:
  1760. [[file:~/code/main.c::255]]
  1761. [[file:~/xx.org::My Target]]
  1762. [[file:~/xx.org::*My Target]]
  1763. [[file:~/xx.org::/regexp/]]
  1764. `255'
  1765. Jump to line 255.
  1766. `My Target'
  1767. Search for a link target `<<My Target>>', or do a text search for
  1768. `my target', similar to the search in internal links, see *Note
  1769. Internal links::. In HTML export (*note HTML export::), such a
  1770. file link will become an HTML reference to the corresponding named
  1771. anchor in the linked file.
  1772. `*My Target'
  1773. In an Org-mode file, restrict search to headlines.
  1774. `/regexp/'
  1775. Do a regular expression search for `regexp'. This uses the Emacs
  1776. command `occur' to list all matches in a separate window. If the
  1777. target file is in Org-mode, `org-occur' is used to create a sparse
  1778. tree with the matches.
  1779. As a degenerate case, a file link with an empty file name can be used
  1780. to search the current file. For example, `[[file:::find me]]' does a
  1781. search for `find me' in the current file, just as `[[find me]]' would.
  1782. ---------- Footnotes ----------
  1783. (1) For backward compatibility, line numbers can also follow a
  1784. single colon.
  1785. 
  1786. File: org, Node: Custom searches, Prev: Search options, Up: Hyperlinks
  1787. 4.8 Custom Searches
  1788. ===================
  1789. The default mechanism for creating search strings and for doing the
  1790. actual search related to a file link may not work correctly in all
  1791. cases. For example, BibTeX database files have many entries like
  1792. `year="1993"' which would not result in good search strings, because
  1793. the only unique identification for a BibTeX entry is the citation key.
  1794. If you come across such a problem, you can write custom functions to
  1795. set the right search string for a particular file type, and to do the
  1796. search for the string in the file. Using `add-hook', these functions
  1797. need to be added to the hook variables
  1798. `org-create-file-search-functions' and
  1799. `org-execute-file-search-functions'. See the docstring for these
  1800. variables for more information. Org-mode actually uses this mechanism
  1801. for BibTeX database files, and you can use the corresponding code as an
  1802. implementation example. Search for `BibTeX links' in the source file.
  1803. 
  1804. File: org, Node: TODO items, Next: Tags, Prev: Hyperlinks, Up: Top
  1805. 5 TODO items
  1806. ************
  1807. Org-mode does not maintain TODO lists as a separate document. TODO
  1808. items are an integral part of the notes file, because TODO items
  1809. usually come up while taking notes! With Org-mode, you simply mark any
  1810. entry in a tree as being a TODO item. In this way, the information is
  1811. not duplicated, and the entire context from which the item emerged is
  1812. always present when you check.
  1813. Of course, this technique causes TODO items to be scattered
  1814. throughout your file. Org-mode provides methods to give you an
  1815. overview over all things you have to do.
  1816. * Menu:
  1817. * TODO basics:: Marking and displaying TODO entries
  1818. * TODO extensions:: Workflow and assignments
  1819. * Progress logging:: Dates and notes for progress
  1820. * Priorities:: Some things are more important than others
  1821. * Breaking down tasks:: Splitting a task into manageable pieces
  1822. * Checkboxes:: Tick-off lists
  1823. 
  1824. File: org, Node: TODO basics, Next: TODO extensions, Prev: TODO items, Up: TODO items
  1825. 5.1 Basic TODO functionality
  1826. ============================
  1827. Any headline can become a TODO item by starting it with the word TODO,
  1828. for example:
  1829. *** TODO Write letter to Sam Fortune
  1830. The most important commands to work with TODO entries are:
  1831. `C-c C-t'
  1832. Rotate the TODO state of the current item among
  1833. ,-> (unmarked) -> TODO -> DONE --.
  1834. '--------------------------------'
  1835. The same rotation can also be done "remotely" from the timeline and
  1836. agenda buffers with the `t' command key (*note Agenda commands::).
  1837. `C-u C-c C-t'
  1838. Select a specific keyword using completion of (if it has been set
  1839. up) the fast selection interface.
  1840. `S-<right>'
  1841. `S-<left>'
  1842. Select the following/preceding TODO state, similar to cycling.
  1843. Mostly useful if more than two TODO states are possible (*note
  1844. TODO extensions::).
  1845. `C-c C-c'
  1846. Use the fast tag interface to quickly and directly select a
  1847. specific TODO state. For this you need to assign keys to TODO
  1848. state, like this:
  1849. #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) | DONE(d)
  1850. See *Note Per file keywords:: and *Note Setting tags:: for more
  1851. information.
  1852. `C-c C-v'
  1853. View TODO items in a _sparse tree_ (*note Sparse trees::). Folds
  1854. the entire buffer, but shows all TODO items and the headings
  1855. hierarchy above them. With prefix arg, search for a specific
  1856. TODO. You will be prompted for the keyword, and you can also give
  1857. a list of keywords like `kwd1|kwd2|...'. With numerical prefix N,
  1858. show the tree for the Nth keyword in the variable
  1859. `org-todo-keywords'. With two prefix args, find all TODO and DONE
  1860. entries.
  1861. `C-c a t'
  1862. Show the global TODO list. This collects the TODO items from all
  1863. agenda files (*note Agenda views::) into a single buffer. The
  1864. buffer is in `agenda-mode', so there are commands to examine and
  1865. manipulate the TODO entries directly from that buffer (*note
  1866. Agenda commands::). *Note Global TODO list::, for more
  1867. information.
  1868. `S-M-<RET>'
  1869. Insert a new TODO entry below the current one.
  1870. 
  1871. File: org, Node: TODO extensions, Next: Progress logging, Prev: TODO basics, Up: TODO items
  1872. 5.2 Extended use of TODO keywords
  1873. =================================
  1874. The default implementation of TODO entries is just two states: TODO and
  1875. DONE. You can use the TODO feature for more complicated things by
  1876. configuring the variable `org-todo-keywords'. With special setup, the
  1877. TODO keyword system can work differently in different files.
  1878. Note that tags are another way to classify headlines in general and
  1879. TODO items in particular (*note Tags::).
  1880. * Menu:
  1881. * Workflow states:: From TODO to DONE in steps
  1882. * TODO types:: I do this, Fred the rest
  1883. * Multiple sets in one file:: Mixing it all, and still finding your way
  1884. * Fast access to TODO states:: Single letter selection of a state
  1885. * Per file keywords:: Different files, different requirements
  1886. * Faces for TODO keywords:: Highlighting states
  1887. 
  1888. File: org, Node: Workflow states, Next: TODO types, Prev: TODO extensions, Up: TODO extensions
  1889. 5.2.1 TODO keywords as workflow states
  1890. --------------------------------------
  1891. You can use TODO keywords to indicate different _sequential_ states in
  1892. the process of working on an item, for example(1):
  1893. (setq org-todo-keywords
  1894. '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
  1895. The vertical bar separates the TODO keywords (states that _need
  1896. action_) from the DONE states (which need _no further action_. If you
  1897. don't provide the separator bar, the last state is used as the DONE
  1898. state. With this setup, the command `C-c C-t' will cycle an entry from
  1899. TODO to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED.
  1900. You may also use a prefix argument to quickly select a specific state.
  1901. For example `C-3 C-c C-t' will change the state immediately to VERIFY.
  1902. If you define many keywords, you can use in-buffer completion (see
  1903. *Note Completion::) to insert these words into the buffer. Changing a
  1904. todo state can be logged with a timestamp, see *Note Tracking TODO
  1905. state changes:: for more information.
  1906. ---------- Footnotes ----------
  1907. (1) Changing this variable only becomes effective after restarting
  1908. Org-mode in a buffer.
  1909. 
  1910. File: org, Node: TODO types, Next: Multiple sets in one file, Prev: Workflow states, Up: TODO extensions
  1911. 5.2.2 TODO keywords as types
  1912. ----------------------------
  1913. The second possibility is to use TODO keywords to indicate different
  1914. _types_ of action items. For example, you might want to indicate that
  1915. items are for "work" or "home". Or, when you work with several people
  1916. on a single project, you might want to assign action items directly to
  1917. persons, by using their names as TODO keywords. This would be set up
  1918. like this:
  1919. (setq org-todo-keywords '((type "Fred" "Sara" "Lucy" "|" "DONE")))
  1920. In this case, different keywords do not indicate a sequence, but
  1921. rather different types. So the normal work flow would be to assign a
  1922. task to a person, and later to mark it DONE. Org-mode supports this
  1923. style by adapting the workings of the command `C-c C-t'(1). When used
  1924. several times in succession, it will still cycle through all names, in
  1925. order to first select the right type for a task. But when you return
  1926. to the item after some time and execute `C-c C-t' again, it will switch
  1927. from any name directly to DONE. Use prefix arguments or completion to
  1928. quickly select a specific name. You can also review the items of a
  1929. specific TODO type in a sparse tree by using a numeric prefix to `C-c
  1930. C-v'. For example, to see all things Lucy has to do, you would use
  1931. `C-3 C-c C-v'. To collect Lucy's items from all agenda files into a
  1932. single buffer, you would use the prefix arg as well when creating the
  1933. global todo list: `C-3 C-c t'.
  1934. ---------- Footnotes ----------
  1935. (1) This is also true for the `t' command in the timeline and agenda
  1936. buffers.
  1937. 
  1938. File: org, Node: Multiple sets in one file, Next: Fast access to TODO states, Prev: TODO types, Up: TODO extensions
  1939. 5.2.3 Multiple keyword sets in one file
  1940. ---------------------------------------
  1941. Sometimes you may want to use different sets of TODO keywords in
  1942. parallel. For example, you may want to have the basic `TODO'/`DONE',
  1943. but also a workflow for bug fixing, and a separate state indicating
  1944. that an item has been canceled (so it is not DONE, but also does not
  1945. require action). Your setup would then look like this:
  1946. (setq org-todo-keywords
  1947. '((sequence "TODO" "|" "DONE")
  1948. (sequence "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED")
  1949. (sequence "|" "CANCELED")))
  1950. The keywords should all be different, this helps Org-mode to keep
  1951. track of which subsequence should be used for a given entry. In this
  1952. setup, `C-c C-t' only operates within a subsequence, so it switches from
  1953. `DONE' to (nothing) to `TODO', and from `FIXED' to (nothing) to
  1954. `REPORT'. Therefore you need a mechanism to initially select the
  1955. correct sequence. Besides the obvious ways like typing a keyword or
  1956. using completion, you may also apply the following commands:
  1957. `C-S-<right>'
  1958. `C-S-<left>'
  1959. These keys jump from one TODO subset to the next. In the above
  1960. example, `C-S-<right>' would jump from `TODO' or `DONE' to
  1961. `REPORT', and any of the words in the second row to `CANCELED'.
  1962. `S-<right>'
  1963. `S-<left>'
  1964. `S-<<left>>' and `S-<<right>>' and walk through _all_ keywords
  1965. from all sets, so for example `S-<<right>>' would switch from
  1966. `DONE' to `REPORT' in the example above.
  1967. 
  1968. File: org, Node: Fast access to TODO states, Next: Per file keywords, Prev: Multiple sets in one file, Up: TODO extensions
  1969. 5.2.4 Fast access to TODO states
  1970. --------------------------------
  1971. If you would like to quickly change an entry to an arbitrary TODO state
  1972. instead of cycling through the states, you can set up keys for
  1973. single-letter access to the states. This is done by adding the section
  1974. key after each keyword, in parenthesis. For example:
  1975. (setq org-todo-keywords
  1976. '((sequence "TODO(t)" "|" "DONE(d)")
  1977. (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)" "|" "FIXED(f)")
  1978. (sequence "|" "CANCELED(c)")))
  1979. If you then press `C-u C-c C-t' followed by the selection key, the
  1980. entry will be switched to this state. <SPC> can be used to remove any
  1981. TODO keyword from an entry. Should you like this way of selecting TODO
  1982. states a lot, you might want to set the variable
  1983. `org-use-fast-todo-selection' to `t' and make this behavior the
  1984. default. Check also the variable
  1985. `org-fast-tag-selection-include-todo', it allows to change the TODO
  1986. state through the tags interface (*note Setting tags::).
  1987. 
  1988. File: org, Node: Per file keywords, Next: Faces for TODO keywords, Prev: Fast access to TODO states, Up: TODO extensions
  1989. 5.2.5 Setting up keywords for individual files
  1990. ----------------------------------------------
  1991. It can be very useful to use different aspects of the TODO mechanism in
  1992. different files. For file-local settings, you need to add special lines
  1993. to the file which set the keywords and interpretation for that file
  1994. only. For example, to set one of the two examples discussed above, you
  1995. need one of the following lines, starting in column zero anywhere in the
  1996. file:
  1997. #+SEQ_TODO: TODO FEEDBACK VERIFY | DONE CANCELED
  1998. or
  1999. #+TYP_TODO: Fred Sara Lucy Mike | DONE
  2000. A setup for using several sets in parallel would be:
  2001. #+SEQ_TODO: TODO | DONE
  2002. #+SEQ_TODO: REPORT BUG KNOWNCAUSE | FIXED
  2003. #+SEQ_TODO: | CANCELED
  2004. To make sure you are using the correct keyword, type `#+' into the
  2005. buffer and then use `M-<TAB>' completion.
  2006. Remember that the keywords after the vertical bar (or the last
  2007. keyword if no bar is there) must always mean that the item is DONE
  2008. (although you may use a different word). After changing one of these
  2009. lines, use `C-c C-c' with the cursor still in the line to make the
  2010. changes known to Org-mode(1).
  2011. ---------- Footnotes ----------
  2012. (1) Org-mode parses these lines only when Org-mode is activated
  2013. after visiting a file. `C-c C-c' with the cursor in a line starting
  2014. with `#+' is simply restarting Org-mode for the current buffer.
  2015. 
  2016. File: org, Node: Faces for TODO keywords, Prev: Per file keywords, Up: TODO extensions
  2017. 5.2.6 Faces for TODO keywords
  2018. -----------------------------
  2019. Org-mode highlights TODO keywords with special faces: `org-todo' for
  2020. keywords indicating that an item still has to be acted upon, and
  2021. `org-done' for keywords indicating that an item is finished. If you
  2022. are using more than 2 different states, you might want to use special
  2023. faces for some of them. This can be done using the variable
  2024. `org-todo-keyword-faces'. For example:
  2025. (setq org-todo-keyword-faces
  2026. '(("TODO" . org-warning)
  2027. ("DEFERRED" . shadow)
  2028. ("CANCELED" . (:foreground "blue" :weight bold))))
  2029. 
  2030. File: org, Node: Progress logging, Next: Priorities, Prev: TODO extensions, Up: TODO items
  2031. 5.3 Progress Logging
  2032. ====================
  2033. Org-mode can automatically record a time stamp and even a note when you
  2034. mark a TODO item as DONE, or even each time you change the state of a
  2035. TODO item.
  2036. * Menu:
  2037. * Closing items:: When was this entry marked DONE?
  2038. * Tracking TODO state changes:: When did the status change?
  2039. 
  2040. File: org, Node: Closing items, Next: Tracking TODO state changes, Prev: Progress logging, Up: Progress logging
  2041. 5.3.1 Closing items
  2042. -------------------
  2043. If you want to keep track of _when_ a certain TODO item was finished,
  2044. turn on logging with(1)
  2045. (setq org-log-done t)
  2046. Then each time you turn a TODO entry into DONE using either `C-c C-t'
  2047. in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
  2048. [timestamp]' will be inserted just after the headline. If you turn the
  2049. entry back into a TODO item through further state cycling, that line
  2050. will be removed again. In the timeline (*note Timeline::) and in the
  2051. agenda (*note Weekly/Daily agenda::), you can then use the `l' key to
  2052. display the TODO items closed on each day, giving you an overview of
  2053. what has been done on a day. If you want to record a note along with
  2054. the timestamp, use(2)
  2055. (setq org-log-done '(done))
  2056. ---------- Footnotes ----------
  2057. (1) The corresponding in-buffer setting is: `#+STARTUP: logdone'.
  2058. You may also set this for the scope of a subtree by adding a `LOGGING'
  2059. property with one or more of the logging keywords in the value.
  2060. (2) The corresponding in-buffer setting is: `#+STARTUP: lognotedone'
  2061. 
  2062. File: org, Node: Tracking TODO state changes, Prev: Closing items, Up: Progress logging
  2063. 5.3.2 Tracking TODO state changes
  2064. ---------------------------------
  2065. When TODO keywords are used as workflow states (*note Workflow
  2066. states::), you might want to keep track of when a state change occurred
  2067. and record a note about this change. With the setting(1)
  2068. (setq org-log-done '(state))
  2069. each state change will prompt you for a note that will be attached to
  2070. the current headline. If you press `C-c C-c' without typing anything
  2071. into the note buffer, only the time of the state change will be noted.
  2072. Very likely you do not want this verbose tracking all the time, so it
  2073. is probably better to configure this behavior with in-buffer options.
  2074. For example, if you are tracking purchases, put these into a separate
  2075. file that contains:
  2076. #+SEQ_TODO: TODO(t) ORDERED(o) INVOICE(i) PAYED(p) | RECEIVED(r)
  2077. #+STARTUP: lognotestate
  2078. If you only need to take a note for some of the states, mark those
  2079. states with an additional `@', like this:
  2080. #+SEQ_TODO: TODO(t) ORDERED(o@) INVOICE(i@) PAYED(p) | RECEIVED(r)
  2081. #+STARTUP: lognotestate
  2082. ---------- Footnotes ----------
  2083. (1) The corresponding in-buffer setting is: `#+STARTUP:
  2084. lognotestate'.
  2085. 
  2086. File: org, Node: Priorities, Next: Breaking down tasks, Prev: Progress logging, Up: TODO items
  2087. 5.4 Priorities
  2088. ==============
  2089. If you use Org-mode extensively to organize your work, you may end up
  2090. with a number of TODO entries so large that you'd like to prioritize
  2091. them. This can be done by placing a _priority cookie_ into the
  2092. headline, like this
  2093. *** TODO [#A] Write letter to Sam Fortune
  2094. With its standard setup, Org-mode supports priorities `A', `B', and
  2095. `C'. `A' is the highest priority. An entry without a cookie is
  2096. treated as priority `B'. Priorities make a difference only in the
  2097. agenda (*note Weekly/Daily agenda::).
  2098. `C-c ,'
  2099. Set the priority of the current headline. The command prompts for
  2100. a priority character `A', `B' or `C'. When you press <SPC>
  2101. instead, the priority cookie is removed from the headline. The
  2102. priorities can also be changed "remotely" from the timeline and
  2103. agenda buffer with the `,' command (*note Agenda commands::).
  2104. `S-<up>'
  2105. `S-<down>'
  2106. Increase/decrease priority of current headline(1). Note that these
  2107. keys are also used to modify time stamps (*note Creating
  2108. timestamps::). Furthermore, these keys are also used by CUA-mode
  2109. (*note Conflicts::).
  2110. You can change the range of allowed priorities by setting the
  2111. variables `org-highest-priority', `org-lowest-priority', and
  2112. `org-default-priority'. For an individual buffer, you may set these
  2113. values (highest, lowest, default) like this (please make sure that the
  2114. highest priority is earlier in the alphabet than the lowest priority):
  2115. #+PRIORITIES: A C B
  2116. ---------- Footnotes ----------
  2117. (1) See also the option `org-priority-start-cycle-with-default''.
  2118. 
  2119. File: org, Node: Breaking down tasks, Next: Checkboxes, Prev: Priorities, Up: TODO items
  2120. 5.5 Breaking tasks down into subtasks
  2121. =====================================
  2122. It is often advisable to break down large tasks into smaller, manageable
  2123. subtasks. You can do this by creating an outline tree below a TODO
  2124. item, with detailed subtasks on the tree(1). Another possibility is
  2125. the use of checkboxes to identify (a hierarchy of) a large number of
  2126. subtasks (*note Checkboxes::).
  2127. ---------- Footnotes ----------
  2128. (1) To keep subtasks out of the global TODO list, see the
  2129. `org-agenda-todo-list-sublevels'.
  2130. 
  2131. File: org, Node: Checkboxes, Prev: Breaking down tasks, Up: TODO items
  2132. 5.6 Checkboxes
  2133. ==============
  2134. Every item in a plain list (*note Plain lists::) can be made a checkbox
  2135. by starting it with the string `[ ]'. This feature is similar to TODO
  2136. items (*note TODO items::), but more lightweight. Checkboxes are not
  2137. included into the global TODO list, so they are often great to split a
  2138. task into a number of simple steps. Or you can use them in a shopping
  2139. list. To toggle a checkbox, use `C-c C-c', or try Piotr Zielinski's
  2140. `org-mouse.el'. Here is an example of a checkbox list.
  2141. * TODO Organize party [3/6]
  2142. - call people [1/3]
  2143. - [ ] Peter
  2144. - [X] Sarah
  2145. - [ ] Sam
  2146. - [X] order food
  2147. - [ ] think about what music to play
  2148. - [X] talk to the neighbors
  2149. The `[3/6]' and `[1/3]' in the first and second line are cookies
  2150. indicating how many checkboxes are present in this entry, and how many
  2151. of them have been checked off. This can give you an idea on how many
  2152. checkboxes remain, even without opening a folded entry. The cookies
  2153. can be placed into a headline or into (the first line of) a plain list
  2154. item. Each cookie covers all checkboxes structurally below that
  2155. headline/item. You have to insert the cookie yourself by typing either
  2156. `[/]' or `[%]'. In the first case you get an `n out of m' result, in
  2157. the second case you get information about the percentage of checkboxes
  2158. checked (in the above example, this would be `[50%]' and `[33%],
  2159. respectively').
  2160. The following commands work with checkboxes:
  2161. `C-c C-c'
  2162. Toggle checkbox at point. With prefix argument, set it to `[-]',
  2163. which is considered to be an intermediate state.
  2164. `C-c C-x C-b'
  2165. Toggle checkbox at point.
  2166. - If there is an active region, toggle the first checkbox in
  2167. the region and set all remaining boxes to the same status as
  2168. the first. If you want to toggle all boxes in the region
  2169. independently, use a prefix argument.
  2170. - If the cursor is in a headline, toggle checkboxes in the
  2171. region between this headline and the next (so _not_ the
  2172. entire subtree).
  2173. - If there is no active region, just toggle the checkbox at
  2174. point.
  2175. `M-S-<RET>'
  2176. Insert a new item with a checkbox. This works only if the cursor
  2177. is already in a plain list item (*note Plain lists::).
  2178. `C-c #'
  2179. Update the checkbox statistics in the current outline entry. When
  2180. called with a `C-u' prefix, update the entire file. Checkbox
  2181. statistic cookies are updated automatically if you toggle
  2182. checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'. If
  2183. you delete boxes or add/change them by hand, use this command to
  2184. get things back into synch. Or simply toggle any checkbox twice
  2185. with `C-c C-c'.
  2186. 
  2187. File: org, Node: Tags, Next: Properties and columns, Prev: TODO items, Up: Top
  2188. 6 Tags
  2189. ******
  2190. If you wish to implement a system of labels and contexts for
  2191. cross-correlating information, an excellent way is to assign tags to
  2192. headlines. Org-mode has extensive support for using tags.
  2193. Every headline can contain a list of tags, at the end of the
  2194. headline. Tags are normal words containing letters, numbers, `_', and
  2195. `@'. Tags must be preceded and followed by a single colon; like
  2196. `:WORK:'. Several tags can be specified like `:WORK:URGENT:'.
  2197. * Menu:
  2198. * Tag inheritance:: Tags use the tree structure of the outline
  2199. * Setting tags:: How to assign tags to a headline
  2200. * Tag searches:: Searching for combinations of tags
  2201. 
  2202. File: org, Node: Tag inheritance, Next: Setting tags, Prev: Tags, Up: Tags
  2203. 6.1 Tag inheritance
  2204. ===================
  2205. Tags make use of the hierarchical structure of outline trees. If a
  2206. heading has a certain tag, all subheadings will inherit the tag as
  2207. well. For example, in the list
  2208. * Meeting with the French group :WORK:
  2209. ** Summary by Frank :BOSS:NOTES:
  2210. *** TODO Prepare slides for him :ACTION:
  2211. the final heading will have the tags `:WORK:', `:BOSS:', `:NOTES:', and
  2212. `:ACTION:'. When executing tag searches and Org-mode finds that a
  2213. certain headline matches the search criterion, it will not check any
  2214. sublevel headline, assuming that these likely also match, and that the
  2215. list of matches can become very long. This may not be what you want,
  2216. however, and you can influence inheritance and searching using the
  2217. variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
  2218. 
  2219. File: org, Node: Setting tags, Next: Tag searches, Prev: Tag inheritance, Up: Tags
  2220. 6.2 Setting tags
  2221. ================
  2222. Tags can simply be typed into the buffer at the end of a headline.
  2223. After a colon, `M-<TAB>' offers completion on tags. There is also a
  2224. special command for inserting tags:
  2225. `C-c C-c'
  2226. Enter new tags for the current headline. Org-mode will either
  2227. offer completion or a special single-key interface for setting
  2228. tags, see below. After pressing <RET>, the tags will be inserted
  2229. and aligned to `org-tags-column'. When called with a `C-u'
  2230. prefix, all tags in the current buffer will be aligned to that
  2231. column, just to make things look nice. TAGS are automatically
  2232. realigned after promotion, demotion, and TODO state changes (*note
  2233. TODO basics::).
  2234. Org will support tag insertion based on a _list of tags_. By
  2235. default this list is constructed dynamically, containing all tags
  2236. currently used in the buffer. You may also globally specify a hard list
  2237. of tags with the variable `org-tag-alist'. Finally you can set the
  2238. default tags for a given file with lines like
  2239. #+TAGS: @WORK @HOME @TENNISCLUB
  2240. #+TAGS: Laptop Car PC Sailboat
  2241. If you have globally defined your preferred set of tags using the
  2242. variable `org-tag-alist', but would like to use a dynamic tag list in a
  2243. specific file: Just add an empty TAGS option line to that file:
  2244. #+TAGS:
  2245. The default support method for entering tags is minibuffer
  2246. completion. However, Org-mode also implements a much better method:
  2247. _fast tag selection_. This method allows to select and deselect tags
  2248. with a single key per tag. To function efficiently, you should assign
  2249. unique keys to most tags. This can be done globally with
  2250. (setq org-tag-alist '(("@WORK" . ?w) ("@HOME" . ?h) ("Laptop" . ?l)))
  2251. or on a per-file basis with
  2252. #+TAGS: @WORK(w) @HOME(h) @TENNISCLUB(t) Laptop(l) PC(p)
  2253. You can also group together tags that are mutually exclusive. With
  2254. curly braces(1)
  2255. #+TAGS: { @WORK(w) @HOME(h) @TENNISCLUB(t) } Laptop(l) PC(p)
  2256. you indicate that at most one of `@WORK', `@HOME', and `@TENNISCLUB'
  2257. should be selected.
  2258. Don't forget to press `C-c C-c' with the cursor in one of these lines
  2259. to activate any changes.
  2260. If at least one tag has a selection key, pressing `C-c C-c' will
  2261. automatically present you with a special interface, listing inherited
  2262. tags, the tags of the current headline, and a list of all legal tags
  2263. with corresponding keys(2). In this interface, you can use the
  2264. following keys:
  2265. `a-z...'
  2266. Pressing keys assigned to tags will add or remove them from the
  2267. list of tags in the current line. Selecting a tag in a group of
  2268. mutually exclusive tags will turn off any other tags from that
  2269. group.
  2270. `<TAB>'
  2271. Enter a tag in the minibuffer, even if the tag is not in the
  2272. predefined list. You will be able to complete on all tags present
  2273. in the buffer.
  2274. `<SPC>'
  2275. Clear all tags for this line.
  2276. `<RET>'
  2277. Accept the modified set.
  2278. `C-g'
  2279. Abort without installing changes.
  2280. `q'
  2281. If `q' is not assigned to a tag, it aborts like `C-g'.
  2282. `!'
  2283. Turn off groups of mutually exclusive tags. Use this to (as an
  2284. exception) assign several tags from such a group.
  2285. `C-c'
  2286. Toggle auto-exit after the next change (see below). If you are
  2287. using expert mode, the first `C-c' will display the selection
  2288. window.
  2289. This method lets you assign tags to a headline with very few keys. With
  2290. the above setup, you could clear the current tags and set `@HOME',
  2291. `Laptop' and `PC' tags with just the following keys: `C-c C-c <SPC> h l
  2292. p <RET>'. Switching from `@HOME' to `@WORK' would be done with `C-c
  2293. C-c w <RET>' or alternatively with `C-c C-c C-c w'. Adding the
  2294. non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
  2295. <RET> <RET>'.
  2296. If you find that most of the time, you need only a single keypress to
  2297. modify your list of tags, set the variable
  2298. `org-fast-tag-selection-single-key'. Then you no longer have to press
  2299. <RET> to exit fast tag selection - it will immediately exit after the
  2300. first change. If you then occasionally need more keys, press `C-c' to
  2301. turn off auto-exit for the current tag selection process (in effect:
  2302. start selection with `C-c C-c C-c' instead of `C-c C-c'). If you set
  2303. the variable to the value `expert', the special window is not even
  2304. shown for single-key tag selection, it comes up only when you press an
  2305. extra `C-c'.
  2306. ---------- Footnotes ----------
  2307. (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
  2308. respectively. Several groups are allowed.
  2309. (2) Keys will automatically be assigned to tags which have no
  2310. configured keys.
  2311. 
  2312. File: org, Node: Tag searches, Prev: Setting tags, Up: Tags
  2313. 6.3 Tag searches
  2314. ================
  2315. Once a tags system has been set up, it can be used to collect related
  2316. information into special lists.
  2317. `C-c \'
  2318. Create a sparse tree with all headlines matching a tags search.
  2319. With a `C-u' prefix argument, ignore headlines that are not a TODO
  2320. line.
  2321. `C-c a m'
  2322. Create a global list of tag matches from all agenda files. *Note
  2323. Matching tags and properties::.
  2324. `C-c a M'
  2325. Create a global list of tag matches from all agenda files, but
  2326. check only TODO items and force checking subitems (see variable
  2327. `org-tags-match-list-sublevels').
  2328. A tags search string can use Boolean operators `&' for AND and `|'
  2329. for OR. `&' binds more strongly than `|'. Parenthesis are currently
  2330. not implemented. A tag may also be preceded by `-', to select against
  2331. it, and `+' is syntactic sugar for positive selection. The AND
  2332. operator `&' is optional when `+' or `-' is present. Examples:
  2333. `+WORK-BOSS'
  2334. Select headlines tagged `:WORK:', but discard those also tagged
  2335. `:BOSS:'.
  2336. `WORK|LAPTOP'
  2337. Selects lines tagged `:WORK:' or `:LAPTOP:'.
  2338. `WORK|LAPTOP&NIGHT'
  2339. Like before, but require the `:LAPTOP:' lines to be tagged also
  2340. `NIGHT'.
  2341. If you are using multi-state TODO keywords (*note TODO
  2342. extensions::), it can be useful to also match on the TODO keyword.
  2343. This can be done by adding a condition after a slash to a tags match.
  2344. The syntax is similar to the tag matches, but should be applied with
  2345. consideration: For example, a positive selection on several TODO
  2346. keywords can not meaningfully be combined with boolean AND. However,
  2347. _negative selection_ combined with AND can be meaningful. To make sure
  2348. that only lines are checked that actually have any TODO keyword, use
  2349. `C-c a M', or equivalently start the todo part after the slash with `!'.
  2350. Examples:
  2351. `WORK/WAITING'
  2352. Select `:WORK:'-tagged TODO lines with the specific TODO keyword
  2353. `WAITING'.
  2354. `WORK/!-WAITING-NEXT'
  2355. Select `:WORK:'-tagged TODO lines that are neither `WAITING' nor
  2356. `NEXT'
  2357. `WORK/+WAITING|+NEXT'
  2358. Select `:WORK:'-tagged TODO lines that are either `WAITING' or
  2359. `NEXT'.
  2360. Any element of the tag/todo match can be a regular expression - in
  2361. this case it must be enclosed in curly braces. For example,
  2362. `WORK+{^BOSS.*}' matches headlines that contain the tag `WORK' and any
  2363. tag starting with `BOSS'.
  2364. You can also require a headline to be of a certain level, by writing
  2365. instead of any TAG an expression like `LEVEL=3'. For example, a search
  2366. `+LEVEL=3+BOSS/-DONE' lists all level three headlines that have the tag
  2367. BOSS and are _not_ marked with the todo keyword DONE.
  2368. 
  2369. File: org, Node: Properties and columns, Next: Timestamps, Prev: Tags, Up: Top
  2370. 7 Properties and Columns
  2371. ************************
  2372. Properties are a set of key-value pairs associated with an entry. There
  2373. are two main applications for properties in Org-mode. First, properties
  2374. are like tags, but with a value. For example, in a file where you
  2375. document bugs and plan releases of a piece of software, instead of using
  2376. tags like `:release_1:', `:release_2:', it can be more efficient to use
  2377. a property `RELEASE' with a value `1.0' or `2.0'. Second, you can use
  2378. properties to implement (very basic) database capabilities in an
  2379. Org-mode buffer, for example to create a list of Music CD's you own.
  2380. You can edit and view properties conveniently in column view (*note
  2381. Column view::).
  2382. * Menu:
  2383. * Property syntax:: How properties are spelled out
  2384. * Special properties:: Access to other Org-mode features
  2385. * Property searches:: Matching property values
  2386. * Column view:: Tabular viewing and editing
  2387. * Property API:: Properties for Lisp programmers
  2388. 
  2389. File: org, Node: Property syntax, Next: Special properties, Prev: Properties and columns, Up: Properties and columns
  2390. 7.1 Property Syntax
  2391. ===================
  2392. Properties are key-value pairs. They need to be inserted into a special
  2393. drawer (*note Drawers::) with the name `PROPERTIES'. Each property is
  2394. specified on a single line, with the key (surrounded by colons) first,
  2395. and the value after it. Here is an example:
  2396. * CD collection
  2397. ** Classic
  2398. *** Goldberg Variations
  2399. :PROPERTIES:
  2400. :Title: Goldberg Variations
  2401. :Composer: J.S. Bach
  2402. :Artist: Glen Gould
  2403. :Publisher: Deutsche Grammphon
  2404. :NDisks: 1
  2405. :END:
  2406. You may define the allowed values for a particular property `XYZ' by
  2407. setting a property `XYZ_ALL'. This special property is _inherited_, so
  2408. if you set it in a level 1 entry, it will apply to the entire tree.
  2409. When allowed values are defined, setting the corresponding property
  2410. becomes easier and is less prone to typing errors. For the example
  2411. with the CD collection, we can predefine publishers and the number of
  2412. disks in a box like this:
  2413. * CD collection
  2414. :PROPERTIES:
  2415. :NDisks_ALL: 1 2 3 4
  2416. :Publisher_ALL: "Deutsche Grammophon" Phillips EMI
  2417. :END:
  2418. If you want to set properties that can be inherited by any entry in a
  2419. file, use a line like
  2420. #+PROPERTY: NDisks_ALL 1 2 3 4
  2421. Property values set with the global variable `org-global-properties'
  2422. can be inherited by all entries in all Org-mode files.
  2423. The following commands help to work with properties:
  2424. `M-<TAB>'
  2425. After an initial colon in a line, complete property keys. All
  2426. keys used in the current file will be offered as possible
  2427. completions.
  2428. `M-x org-insert-property-drawer'
  2429. Insert a property drawer into the current entry. The drawer will
  2430. be inserted early in the entry, but after the lines with planning
  2431. information like deadlines.
  2432. `C-c C-c'
  2433. With the cursor in a property drawer, this executes property
  2434. commands.
  2435. `C-c C-c s'
  2436. Set a property in the current entry. Both the property and the
  2437. value can be inserted using completion.
  2438. `S-<left>/<right>'
  2439. Switch property at point to the next/previous allowed value.
  2440. `C-c C-c d'
  2441. Remove a property from the current entry.
  2442. `C-c C-c D'
  2443. Globally remove a property, from all entries in the current file.
  2444. `C-c C-c c'
  2445. Compute the property at point, using the operator and scope from
  2446. the nearest column format definition.
  2447. 
  2448. File: org, Node: Special properties, Next: Property searches, Prev: Property syntax, Up: Properties and columns
  2449. 7.2 Special Properties
  2450. ======================
  2451. Special properties provide alternative access method to Org-mode
  2452. features discussed in the previous chapters, like the TODO state or the
  2453. priority of an entry. This interface exists so that you can include
  2454. these states into columns view (*note Column view::). The following
  2455. property names are special and should not be used as keys in the
  2456. properties drawer:
  2457. TODO The TODO keyword of the entry.
  2458. TAGS The tags defined directly in the headline.
  2459. ALLTAGS All tags, including inherited ones.
  2460. PRIORITY The priority of the entry, a string with a single letter.
  2461. DEADLINE The deadline time string, without the angular brackets.
  2462. SCHEDULED The scheduling time stamp, without the angular brackets.
  2463. 
  2464. File: org, Node: Property searches, Next: Column view, Prev: Special properties, Up: Properties and columns
  2465. 7.3 Property searches
  2466. =====================
  2467. To create sparse trees and special lists with selection based on
  2468. properties, the same commands are used as for tag searches (*note Tag
  2469. searches::), and the same logic applies. For example, a search string
  2470. +WORK-BOSS+PRIORITY="A"+coffee="unlimited"+with={Sarah\|Denny}
  2471. finds entries tagged `:WORK:' but not `:BOSS:', which also have a
  2472. priority value `A', a `:coffee:' property with the value `unlimited',
  2473. and a `:with:' property that is matched by the regular expression
  2474. `Sarah\|Denny'.
  2475. 
  2476. File: org, Node: Column view, Next: Property API, Prev: Property searches, Up: Properties and columns
  2477. 7.4 Column View
  2478. ===============
  2479. A great way to view and edit properties in an outline tree is _column
  2480. view_. In column view, each outline item is turned into a table row.
  2481. Columns in this table provide access to properties of the entries.
  2482. Org-mode implements columns by overlaying a tabular structure over the
  2483. headline of each item. While the headlines have been turned into a
  2484. table row, you can still change the visibility of the outline tree.
  2485. For example, you get a compact table by switching to CONTENTS view
  2486. (`S-<TAB> S-<TAB>', or simply `c' while column view is active), but you
  2487. can still open, read, and edit the entry below each headline. Or, you
  2488. can switch to column view after executing a sparse tree command and in
  2489. this way get a table only for the selected items. Column view also
  2490. works in agenda buffers (*note Agenda views::) where queries have
  2491. collected selected items, possibly from a number of files.
  2492. * Menu:
  2493. * Defining columns:: The COLUMNS format property
  2494. * Using column view:: How to create and use column view
  2495. 
  2496. File: org, Node: Defining columns, Next: Using column view, Prev: Column view, Up: Column view
  2497. 7.4.1 Defining Columns
  2498. ----------------------
  2499. Setting up a column view first requires defining the columns. This is
  2500. done by defining a column format line.
  2501. * Menu:
  2502. * Scope of column definitions:: Where defined, where valid?
  2503. * Column attributes:: Appearance and content of a column
  2504. 
  2505. File: org, Node: Scope of column definitions, Next: Column attributes, Prev: Defining columns, Up: Defining columns
  2506. 7.4.1.1 Scope of column definitions
  2507. ...................................
  2508. To define a column format for an entire file, use a line like
  2509. #+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
  2510. To specify a format that only applies to a specific tree, add a
  2511. COLUMNS property to the top node of that tree, for example
  2512. ** Top node for columns view
  2513. :PROPERTIES:
  2514. :COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
  2515. :END:
  2516. If a `COLUMNS' property is present in an entry, it defines columns
  2517. for the entry itself, and for the entire subtree below it. Since the
  2518. column definition is part of the hierarchical structure of the document,
  2519. you can define columns on level 1 that are general enough for all
  2520. sublevels, and more specific columns further down, when you edit a
  2521. deeper part of the tree.
  2522. 
  2523. File: org, Node: Column attributes, Prev: Scope of column definitions, Up: Defining columns
  2524. 7.4.1.2 Column attributes
  2525. .........................
  2526. A column definition sets the attributes of a column. The general
  2527. definition looks like this:
  2528. %[width]property[(title)][{summary-type}]
  2529. Except for the percent sign and the property name, all items are
  2530. optional. The individual parts have the following meaning:
  2531. width An integer specifying the width of the column in characters.
  2532. If omitted, the width will be determined automatically.
  2533. property The property that should be edited in this column.
  2534. (title) The header text for the column. If omitted, the
  2535. property name is used.
  2536. {summary-type} The summary type. If specified, the column values for
  2537. parent nodes are computed from the children.
  2538. Supported summary types are:
  2539. {+} Sum numbers in this column.
  2540. {:} Sum times, HH:MM:SS, plain numbers are hours.
  2541. {X} Checkbox status, [X] if all children are [X].
  2542. Here is an example for a complete columns definition, along with allowed
  2543. values.
  2544. :COLUMNS: %20ITEM %9Approved(Approved?){X} %Owner %11Status %10Time_Spent{:}
  2545. :Owner_ALL: Tammy Mark Karl Lisa Don
  2546. :Status_ALL: "In progress" "Not started yet" "Finished" ""
  2547. :Approved_ALL: "[ ]" "[X]"
  2548. The first column, `%25ITEM', means the first 25 characters of the
  2549. item itself, i.e. of the headline. You probably always should start the
  2550. column definition with the ITEM specifier. The other specifiers create
  2551. columns `Owner' with a list of names as allowed values, for `Status'
  2552. with four different possible values, and for a checkbox field
  2553. `Approved'. When no width is given after the `%' character, the column
  2554. will be exactly as wide as it needs to be in order to fully display all
  2555. values. The `Approved' column does have a modified title (`Approved?',
  2556. with a question mark). Summaries will be created for the `Time_Spent'
  2557. column by adding time duration expressions like HH:MM, and for the
  2558. `Approved' column, by providing an `[X]' status if all children have
  2559. been checked.
  2560. 
  2561. File: org, Node: Using column view, Prev: Defining columns, Up: Column view
  2562. 7.4.2 Using Column View
  2563. -----------------------
  2564. Turning column view on and off
  2565. ..............................
  2566. `C-c C-x C-c'
  2567. Create the column view for the local environment. This command
  2568. searches the hierarchy, up from point, for a `COLUMNS' property
  2569. that defines a format. When one is found, the column view table
  2570. is established for the entire tree, starting from the entry that
  2571. contains the `COLUMNS' property. If none is found, the format is
  2572. taken from the `#+COLUMNS' line or from the variable
  2573. `org-columns-default-format', and column view is established for
  2574. the current entry and its subtree.
  2575. `q'
  2576. Exit column view.
  2577. Editing values
  2578. ..............
  2579. `<left> <right> <up> <down>'
  2580. Move through the column view from field to field.
  2581. `S-<left>/<right>'
  2582. Switch to the next/previous allowed value of the field. For this,
  2583. you have to have specified allowed values for a property.
  2584. `n / p'
  2585. Same as `S-<left>/<right>'
  2586. `e'
  2587. Edit the property at point. For the special properties, this will
  2588. invoke the same interface that you normally use to change that
  2589. property. For example, when editing a TAGS property, the tag
  2590. completion or fast selection interface will pop up.
  2591. `v'
  2592. View the full value of this property. This is useful if the width
  2593. of the column is smaller than that of the value.
  2594. `a'
  2595. Edit the list of allowed values for this property. If the list is
  2596. found in the hierarchy, the modified values is stored there. If
  2597. no list is found, the new value is stored in the first entry that
  2598. is part of the current column view.
  2599. Modifying the table structure
  2600. .............................
  2601. `< / >'
  2602. Make the column narrower/wider by one character.
  2603. `S-M-<right>'
  2604. Insert a new column, to the right of the current column.
  2605. `S-M-<left>'
  2606. Delete the current column.
  2607. 
  2608. File: org, Node: Property API, Prev: Column view, Up: Properties and columns
  2609. 7.5 The Property API
  2610. ====================
  2611. There is a full API for accessing and changing properties. This API can
  2612. be used by Emacs Lisp programs to work with properties and to implement
  2613. features based on them. For more information see *Note Using the
  2614. property API::.
  2615. 
  2616. File: org, Node: Timestamps, Next: Remember, Prev: Properties and columns, Up: Top
  2617. 8 Timestamps
  2618. ************
  2619. Items can be labeled with timestamps to make them useful for project
  2620. planning.
  2621. * Menu:
  2622. * Time stamps:: Assigning a time to a tree entry
  2623. * Creating timestamps:: Commands which insert timestamps
  2624. * Deadlines and scheduling:: Planning your work
  2625. * Clocking work time::
  2626. 
  2627. File: org, Node: Time stamps, Next: Creating timestamps, Prev: Timestamps, Up: Timestamps
  2628. 8.1 Time stamps, deadlines and scheduling
  2629. =========================================
  2630. A time stamp is a specification of a date (possibly with time or a range
  2631. of times) in a special format, either `<2003-09-16 Tue>' or
  2632. `<2003-09-16 Tue 09:39>' or `<2003-09-16 Tue 12:00-12:30>'(1). A time
  2633. stamp can appear anywhere in the headline or body of an org-tree entry.
  2634. Its presence causes entries to be shown on specific dates in the agenda
  2635. (*note Weekly/Daily agenda::). We distinguish:
  2636. PLAIN TIME STAMP, EVENT, APPOINTMENT
  2637. A simple time stamp just assigns a date/time to an item. This is
  2638. just like writing down an appointment or event in a paper agenda.
  2639. In the timeline and agenda displays, the headline of an entry
  2640. associated with a plain time stamp will be shown exactly on that
  2641. date.
  2642. * Meet Peter at the movies <2006-11-01 Wed 19:15>
  2643. * Discussion on climate change <2006-11-02 Thu 20:00-22:00>
  2644. TIME STAMP WITH REPEATER INTERVAL
  2645. A time stamp may contain a _repeater interval_, indicating that it
  2646. applies not only on the given date, but again and again after a
  2647. certain interval of N days (d), weeks (w), months(m), or years(y).
  2648. The following will show up in the agenda every Wednesday:
  2649. * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
  2650. DIARY-STYLE SEXP ENTRIES
  2651. For more complex date specifications, Org-mode supports using the
  2652. special sexp diary entries implemented in the Emacs calendar/diary
  2653. package. For example
  2654. * The nerd meeting on every 2nd Thursday of the month
  2655. <%%(diary-float t 4 2)>
  2656. TIME/DATE RANGE
  2657. Two time stamps connected by `--' denote a range. The headline
  2658. will be shown on the first and last day of the range, and on any
  2659. dates that are displayed and fall in the range. Here is an
  2660. example:
  2661. ** Meeting in Amsterdam
  2662. <2004-08-23 Mon>--<2004-08-26 Thu>
  2663. INACTIVE TIME STAMP
  2664. Just like a plain time stamp, but with square brackets instead of
  2665. angular ones. These time stamps are inactive in the sense that
  2666. they do _not_ trigger an entry to show up in the agenda.
  2667. * Gillian comes late for the fifth time [2006-11-01 Wed]
  2668. ---------- Footnotes ----------
  2669. (1) This is the standard ISO date/time format. If you cannot get
  2670. used to these, see *Note Custom time format::
  2671. 
  2672. File: org, Node: Creating timestamps, Next: Deadlines and scheduling, Prev: Time stamps, Up: Timestamps
  2673. 8.2 Creating timestamps
  2674. =======================
  2675. For Org-mode to recognize time stamps, they need to be in the specific
  2676. format. All commands listed below produce time stamps in the correct
  2677. format.
  2678. `C-c .'
  2679. Prompt for a date and insert a corresponding time stamp. When the
  2680. cursor is at a previously used time stamp, it is updated to NOW.
  2681. When this command is used twice in succession, a time range is
  2682. inserted.
  2683. `C-u C-c .'
  2684. Like `C-c .', but use the alternative format which contains date
  2685. and time. The default time can be rounded to multiples of 5
  2686. minutes, see the option `org-time-stamp-rounding-minutes'.
  2687. `C-c !'
  2688. Like `C-c .', but insert an inactive time stamp that will not cause
  2689. an agenda entry.
  2690. `C-c <'
  2691. Insert a time stamp corresponding to the cursor date in the
  2692. Calendar.
  2693. `C-c >'
  2694. Access the Emacs calendar for the current date. If there is a
  2695. timestamp in the current line, goto the corresponding date instead.
  2696. `C-c C-o'
  2697. Access the agenda for the date given by the time stamp or -range at
  2698. point (*note Weekly/Daily agenda::).
  2699. `S-<left>'
  2700. `S-<right>'
  2701. Change date at cursor by one day. These key bindings conflict with
  2702. CUA-mode (*note Conflicts::).
  2703. `S-<up>'
  2704. `S-<down>'
  2705. Change the item under the cursor in a timestamp. The cursor can
  2706. be on a year, month, day, hour or minute. Note that if the cursor
  2707. is in a headline and not at a time stamp, these same keys modify
  2708. the priority of an item. (*note Priorities::). The key bindings
  2709. also conflict with CUA-mode (*note Conflicts::).
  2710. `C-c C-y'
  2711. Evaluate a time range by computing the difference between start and
  2712. end. With prefix arg, insert result after the time range (in a
  2713. table: into the following column).
  2714. * Menu:
  2715. * The date/time prompt:: How org-mode helps you entering date and time
  2716. * Custom time format:: Making dates look differently
  2717. 
  2718. File: org, Node: The date/time prompt, Next: Custom time format, Prev: Creating timestamps, Up: Creating timestamps
  2719. 8.2.1 The date/time prompt
  2720. --------------------------
  2721. When Org-mode prompts for a date/time, the prompt suggests to enter an
  2722. ISO date. But it will in fact accept any string containing some date
  2723. and/or time information. You can, for example, use `C-y' to paste a
  2724. (possibly multi-line) string copied from an email message. Org-mode
  2725. will find whatever information is in there and will replace anything not
  2726. specified with the current date and time. For example:
  2727. 3-2-5 --> 2003-02-05
  2728. feb 15 --> currentyear-02-15
  2729. sep 12 9 --> 2009-09-12
  2730. 12:45 --> today 12:45
  2731. 22 sept 0:34 --> currentyear-09-22 0:34
  2732. 12 --> currentyear-currentmonth-12
  2733. Fri --> nearest Friday (today or later)
  2734. +4 --> 4 days from now (if +N is the only thing given)
  2735. The function understands English month and weekday abbreviations. If
  2736. you want to use unabbreviated names and/or other languages, configure
  2737. the variables `parse-time-months' and `parse-time-weekdays'.
  2738. Parallel to the minibuffer prompt, a calendar is popped up(1). When
  2739. you exit the date prompt, either by clicking on a date in the calendar,
  2740. or by pressing <RET>, the date selected in the calendar will be
  2741. combined with the information entered at the prompt. You can control
  2742. the calendar fully from the minibuffer:
  2743. `<'
  2744. Scroll calendar backwards by one month.
  2745. `>'
  2746. Scroll calendar forwards by one month.
  2747. `mouse-1'
  2748. Select date by clicking on it.
  2749. `S-<right>'
  2750. One day forward.
  2751. `S-<left>'
  2752. One day back.
  2753. `S-<down>'
  2754. One week forward.
  2755. `S-<up>'
  2756. One week back.
  2757. `M-S-<right>'
  2758. One month forward.
  2759. `M-S-<left>'
  2760. One month back.
  2761. `<RET>'
  2762. Choose date in calendar (only if nothing was typed into
  2763. minibuffer).
  2764. ---------- Footnotes ----------
  2765. (1) If you don't need/want the calendar, configure the variable
  2766. `org-popup-calendar-for-date-prompt'.
  2767. 
  2768. File: org, Node: Custom time format, Prev: The date/time prompt, Up: Creating timestamps
  2769. 8.2.2 Custom time format
  2770. ------------------------
  2771. Org-mode uses the standard ISO notation for dates and times as it is
  2772. defined in ISO 8601. If you cannot get used to this and require another
  2773. representation of date and time to keep you happy, you can get it by
  2774. customizing the variables `org-display-custom-times' and
  2775. `org-time-stamp-custom-formats'.
  2776. `C-c C-x C-t'
  2777. Toggle the display of custom formats for dates and times.
  2778. Org-mode needs the default format for scanning, so the custom date/time
  2779. format does not _replace_ the default format - instead it is put _over_
  2780. the default format using text properties. This has the following
  2781. consequences:
  2782. * You cannot place the cursor onto a time stamp anymore, only before
  2783. or after.
  2784. * The `S-<up>/<down>' keys can no longer be used to adjust each
  2785. component of a time stamp. If the cursor is at the beginning of
  2786. the stamp, `S-<up>/<down>' will change the stamp by one day, just
  2787. like `S-<left>/<right>'. At the end of the stamp, the time will
  2788. be changed by one minute.
  2789. * If the time stamp contains a range of clock times or a repeater,
  2790. these will not be overlayed, but remain in the buffer as they were.
  2791. * When you delete a time stamp character-by-character, it will only
  2792. disappear from the buffer after _all_ (invisible) characters
  2793. belonging to the ISO timestamp have been removed.
  2794. * If the custom time stamp format is longer than the default and you
  2795. are using dates in tables, table alignment will be messed up. If
  2796. the custom format is shorter, things do work as expected.
  2797. 
  2798. File: org, Node: Deadlines and scheduling, Next: Clocking work time, Prev: Creating timestamps, Up: Timestamps
  2799. 8.3 Deadlines and Scheduling
  2800. ============================
  2801. A time stamp may be preceded by special keywords to facilitate planning
  2802. of work:
  2803. DEADLINE
  2804. The task (most likely a TODO item) is supposed to be finished on
  2805. that date, and it will be listed then. In addition, the
  2806. compilation for _today_ will carry a warning about the approaching
  2807. or missed deadline, starting `org-deadline-warning-days' before
  2808. the due date, and continuing until the entry is marked DONE. An
  2809. example:
  2810. *** TODO write article about the Earth for the Guide
  2811. The editor in charge is [[bbdb:Ford Prefect]]
  2812. DEADLINE: <2004-02-29 Sun>
  2813. You can specify a different lead time for warnings for a specific
  2814. deadlines using the following syntax. Here is an example with a
  2815. warning period of 5 days `DEADLINE: <2004-02-29 Sun -5d>'.
  2816. SCHEDULED
  2817. You are planning to start working on that task on the given date.
  2818. The headline will be listed under the given date(1). In addition,
  2819. a reminder that the scheduled date has passed will be present in
  2820. the compilation for _today_, until the entry is marked DONE.
  2821. I.e., the task will automatically be forwarded until completed.
  2822. *** TODO Call Trillian for a date on New Years Eve.
  2823. SCHEDULED: <2004-12-25 Sat>
  2824. Important: Scheduling an item in Org-mode should not be understood
  2825. like Scheduling a meeting. Setting a date for a meeting is just a
  2826. simple appointment, you should mark this entry with a simple plain
  2827. time stamp, to get this item shown on the date where it applies.
  2828. This is a frequent mis-understanding from Org-users. In Org-mode,
  2829. Scheduling means setting a date when you want to start working on
  2830. an action item.
  2831. * Menu:
  2832. * Inserting deadline/schedule:: Planning items
  2833. * Repeated tasks:: Items that show up again and again
  2834. ---------- Footnotes ----------
  2835. (1) It will still be listed on that date after it has been marked
  2836. DONE. If you don't like this, set the variable
  2837. `org-agenda-skip-scheduled-if-done'.
  2838. 
  2839. File: org, Node: Inserting deadline/schedule, Next: Repeated tasks, Prev: Deadlines and scheduling, Up: Deadlines and scheduling
  2840. 8.3.1 Inserting deadline/schedule
  2841. ---------------------------------
  2842. The following commands allow to quickly insert a deadline or to schedule
  2843. an item:
  2844. `C-c C-d'
  2845. Insert `DEADLINE' keyword along with a stamp. The insertion will
  2846. happen in the line directly following the headline. When called
  2847. with a prefix arg, an existing deadline will be removed from the
  2848. entry.
  2849. `C-c C-w'
  2850. Create a sparse tree with all deadlines that are either past-due,
  2851. or which will become due within `org-deadline-warning-days'. With
  2852. `C-u' prefix, show all deadlines in the file. With a numeric
  2853. prefix, check that many days. For example, `C-1 C-c C-w' shows
  2854. all deadlines due tomorrow.
  2855. `C-c C-s'
  2856. Insert `SCHEDULED' keyword along with a stamp. The insertion will
  2857. happen in the line directly following the headline. Any CLOSED
  2858. timestamp will be removed. When called with a prefix argument,
  2859. remove the scheduling date from the entry.
  2860. 
  2861. File: org, Node: Repeated tasks, Prev: Inserting deadline/schedule, Up: Deadlines and scheduling
  2862. 8.3.2 Repeated Tasks
  2863. --------------------
  2864. Some tasks need to be repeated again and again, and Org-mode therefore
  2865. allows to use a repeater in a DEADLINE or SCHEDULED time stamp, for
  2866. example:
  2867. ** TODO Pay the rent
  2868. DEADLINE: <2005-10-01 Sat +1m>
  2869. Deadlines and scheduled items produce entries in the agenda when they
  2870. are over-due, so it is important to be able to mark such an entry as
  2871. completed once you have done so. When you mark a DEADLINE or a SCHEDULE
  2872. with the todo keyword DONE, it will no longer produce entries in the
  2873. agenda. The problem with this is, however, that then also the _next_
  2874. instance of the repeated entry will not be active. Org-mode deals with
  2875. this in the following way: When you try to mark such an entry DONE
  2876. (using `C-c C-t'), it will shift the base date of the repeating time
  2877. stamp by the repeater interval, and immediately set the entry state
  2878. back to TODO. In the example above, setting the state to DONE would
  2879. actually switch the date like this:
  2880. ** TODO Pay the rent
  2881. DEADLINE: <2005-11-01 Tue +1m>
  2882. You will also be prompted for a note(1) that will be put under the
  2883. DEADLINE line to keep a record that you actually acted on the previous
  2884. instance of this deadline.
  2885. As a consequence of shifting the base date, this entry will no
  2886. longer be visible in the agenda when checking past dates, but all
  2887. future instances will be visible.
  2888. You may have both scheduling and deadline information for a specific
  2889. task - just make sure that the repeater intervals on both are the same.
  2890. ---------- Footnotes ----------
  2891. (1) You can change this using the option `org-log-repeat', or the
  2892. `#+STARTUP' options `logrepeat' and `nologrepeat'.
  2893. 
  2894. File: org, Node: Clocking work time, Prev: Deadlines and scheduling, Up: Timestamps
  2895. 8.4 Clocking work time
  2896. ======================
  2897. Org-mode allows you to clock the time you spent on specific tasks in a
  2898. project. When you start working on an item, you can start the clock.
  2899. When you stop working on that task, or when you mark the task done, the
  2900. clock is stopped and the corresponding time interval is recorded. It
  2901. also computes the total time spent on each subtree of a project.
  2902. `C-c C-x C-i'
  2903. Start the clock on the current item (clock-in). This inserts the
  2904. CLOCK keyword together with a timestamp. If this is not the first
  2905. clocking of this item, the multiple CLOCK lines will be wrapped
  2906. into a `:CLOCK:' drawer (see also the variable
  2907. `org-clock-into-drawer'.
  2908. `C-c C-x C-o'
  2909. Stop the clock (clock-out). The inserts another timestamp at the
  2910. same location where the clock was last started. It also directly
  2911. computes the resulting time in inserts it after the time range as
  2912. `=> HH:MM'. See the variable `org-log-done' for the possibility to
  2913. record an additional note together with the clock-out time
  2914. stamp(1).
  2915. `C-c C-y'
  2916. Recompute the time interval after changing one of the time stamps.
  2917. This is only necessary if you edit the time stamps directly. If
  2918. you change them with `S-<cursor>' keys, the update is automatic.
  2919. `C-c C-t'
  2920. Changing the TODO state of an item to DONE automatically stops the
  2921. clock if it is running in this same item.
  2922. `C-c C-x C-x'
  2923. Cancel the current clock. This is useful if a clock was started by
  2924. mistake, or if you ended up working on something else.
  2925. `C-c C-x C-j'
  2926. Jump to the entry that contains the currently running clock, an
  2927. another window.
  2928. `C-c C-x C-d'
  2929. Display time summaries for each subtree in the current buffer.
  2930. This puts overlays at the end of each headline, showing the total
  2931. time recorded under that heading, including the time of any
  2932. subheadings. You can use visibility cycling to study the tree, but
  2933. the overlays disappear when you change the buffer (see variable
  2934. `org-remove-highlights-with-change') or press `C-c C-c'.
  2935. `C-c C-x C-r'
  2936. Insert a dynamic block (*note Dynamic blocks::) containing a clock
  2937. report as an org-mode table into the current file. When the
  2938. cursor is at an existing clock table, just update it. When called
  2939. with a prefix argument, jump to the first clock report in the
  2940. current document and update it.
  2941. #+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file
  2942. #+END: clocktable
  2943. If such a block already exists at point, its content is replaced
  2944. by the new table. The `BEGIN' line can specify options:
  2945. :maxlevel Maximum level depth to which times are listed in the table.
  2946. :emphasize When `t', emphasize level one and level two items
  2947. :scope The scope to consider. This can be any of the following:
  2948. nil the current buffer or narrowed region
  2949. file the full current buffer
  2950. subtree the subtree where the clocktable is located
  2951. treeN the surrounding level N tree, for example `tree3'
  2952. tree the surrounding level 1 tree
  2953. agenda all agenda files
  2954. ("file"..) scan these files
  2955. :block The time block to consider. This block is specified relative
  2956. to the current time and may be any of these keywords:
  2957. `today', `yesterday', `thisweek', `lastweek',
  2958. `thismonth', `lastmonth', `thisyear', or `lastyear'.
  2959. :tstart A time string specifying when to start considering times
  2960. :tend A time string specifying when to stop considering times
  2961. So to get a clock summary of the current level 1 tree, for the
  2962. current day, you could write
  2963. #+BEGIN: clocktable :maxlevel 2 :block today :scope tree1
  2964. #+END: clocktable
  2965. and to use a specific time range you could write(2)
  2966. #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
  2967. :tend "<2006-08-10 Thu 12:00>"
  2968. #+END: clocktable
  2969. `C-c C-c'
  2970. `C-c C-x C-u'
  2971. Update dynamical block at point. The cursor needs to be in the
  2972. `#+BEGIN' line of the dynamic block.
  2973. `C-u C-c C-x C-u'
  2974. Update all dynamic blocks (*note Dynamic blocks::). This is
  2975. useful if you have several clocktable blocks in a buffer.
  2976. The `l' key may be used in the timeline (*note Timeline::) and in
  2977. the agenda (*note Weekly/Daily agenda::) to show which tasks have been
  2978. worked on or closed during a day.
  2979. ---------- Footnotes ----------
  2980. (1) The corresponding in-buffer setting is: `#+STARTUP:
  2981. lognoteclock-out'
  2982. (2) Note that all parameters must be specified in a single line -
  2983. the line is broken here only to fit it onto the manual.
  2984. 
  2985. File: org, Node: Remember, Next: Agenda views, Prev: Timestamps, Up: Top
  2986. 9 Remember
  2987. **********
  2988. The Remember package by John Wiegley lets you store quick notes with
  2989. little interruption of your work flow. See
  2990. `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
  2991. information. It is an excellent way to add new notes and TODO items to
  2992. Org-mode files. Org-mode significantly expands the possibilities of
  2993. remember: You may define templates for different note types, and to
  2994. associate target files and headlines with specific templates. It also
  2995. allows you to select the location where a note should be stored
  2996. interactively, on the fly.
  2997. * Menu:
  2998. * Setting up remember:: Some code for .emacs to get things going
  2999. * Remember templates:: Define the outline of different note types
  3000. * Storing notes:: Directly get the note to where it belongs
  3001. 
  3002. File: org, Node: Setting up remember, Next: Remember templates, Prev: Remember, Up: Remember
  3003. 9.1 Setting up remember
  3004. =======================
  3005. The following customization will tell remember to use org files as
  3006. target, and to create annotations compatible with Org-mode links.
  3007. (setq org-directory "~/path/to/my/orgfiles/")
  3008. (setq org-default-notes-file (concat org-directory "/notes.org"))
  3009. (setq remember-annotation-functions '(org-remember-annotation))
  3010. (setq remember-handler-functions '(org-remember-handler))
  3011. (add-hook 'remember-mode-hook 'org-remember-apply-template)
  3012. 
  3013. File: org, Node: Remember templates, Next: Storing notes, Prev: Setting up remember, Up: Remember
  3014. 9.2 Remember templates
  3015. ======================
  3016. In combination with Org-mode, you can use templates to generate
  3017. different types of remember notes. For example, if you would like to
  3018. use one template to create general TODO entries, another one for
  3019. journal entries, and a third one for collecting random ideas, you could
  3020. use:
  3021. (setq org-remember-templates
  3022. '((?t "* TODO %?\n %i\n %a" "~/org/TODO.org" "Tasks")
  3023. (?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org")
  3024. (?i "* %^{Title}\n %i\n %a" "~/org/JOURNAL.org" "New Ideas")))
  3025. In these entries, the character specifies how to select the template.
  3026. The first string specifies the template. Two more (optional) strings
  3027. give the file in which, and the headline under which the new note
  3028. should be stored. The file defaults (if not present or `nil') to
  3029. `org-default-notes-file', the heading to
  3030. `org-remember-default-headline'. Both defaults help to get to the
  3031. storing location quickly, but you can change the location interactively
  3032. while storing the note.
  3033. When you call `M-x remember' (or `M-x org-remember') to remember
  3034. something, org will prompt for a key to select the template (if you have
  3035. more than one template) and then prepare the buffer like
  3036. * TODO
  3037. [[file:link to where you called remember]]
  3038. or
  3039. * [2006-03-21 Tue 15:37]
  3040. [[file:link to where you called remember]]
  3041. During expansion of the template, special `%'-escapes allow dynamic
  3042. insertion of content:
  3043. %^{prompt} prompt the user for a string and replace this sequence with it.
  3044. %t time stamp, date only
  3045. %T time stamp with date and time
  3046. %u, %U like the above, but inactive time stamps
  3047. %^t like `%t', but prompt for date. Similarly `%^T', `%^u', `%^U'
  3048. You may define a prompt like `%^{Birthday}t'
  3049. %n user name (taken from `user-full-name')
  3050. %a annotation, normally the link created with `org-store-link'
  3051. %A like `%a', but prompt for the description part
  3052. %i initial content, the region when remember is called with C-u.
  3053. The entire text will be indented like `%i' itself.
  3054. %^g prompt for tags, with completion on tags in target file.
  3055. %^G prompt for tags, with completion all tags in all agenda files.
  3056. %:keyword specific information for certain link types, see below
  3057. For specific link types, the following keywords will be defined(1):
  3058. Link type | Available keywords
  3059. -------------------+----------------------------------------------
  3060. bbdb | %:name %:company
  3061. vm, wl, mh, rmail | %:type %:subject %:message-id
  3062. | %:from %:fromname %:fromaddress
  3063. | %:to %:toname %:toaddress
  3064. | %:fromto (either "to NAME" or "from NAME")(2)
  3065. gnus | %:group, for messages also all email fields
  3066. w3, w3m | %:url
  3067. info | %:file %:node
  3068. calendar | %:date"
  3069. To place the cursor after template expansion use:
  3070. %? After completing the template, position cursor here.
  3071. If you change you mind about which template to use, call `org-remember'
  3072. in the remember buffer. You may then select a new template that will
  3073. be filled with the previous context information.
  3074. ---------- Footnotes ----------
  3075. (1) If you define your own link types (*note Adding hyperlink
  3076. types::), any property you store with `org-store-link-props' can be
  3077. accessed in remember templates in a similar way.
  3078. (2) This will always be the other, not the user. See the variable
  3079. `org-from-is-user-regexp'.
  3080. 
  3081. File: org, Node: Storing notes, Prev: Remember templates, Up: Remember
  3082. 9.3 Storing notes
  3083. =================
  3084. When you are finished preparing a note with remember, you have to press
  3085. `C-c C-c' to file the note away. The handler will store the note in
  3086. the file and under the headline specified in the template, or it will
  3087. use the default file and headlines. The window configuration will be
  3088. restored, and you are back in the working context before the call to
  3089. `remember'. To re-use the location found during the last call to
  3090. `remember', exit the remember buffer with `C-u C-u C-c C-c', i.e.
  3091. specify a double prefix argument to `C-c C-c'.
  3092. If you want to store the note to a different place, use `C-u C-c
  3093. C-c' instead to exit remember(1). The handler will then first prompt
  3094. for a target file - if you press <RET>, the value specified for the
  3095. template is used. Then the command offers the headings tree of the
  3096. selected file, with the cursor position at the default headline (if you
  3097. had specified one in the template). You can either immediately press
  3098. <RET> to get the note placed there. Or you can use the following keys
  3099. to find a different location:
  3100. <TAB> Cycle visibility.
  3101. <down> / <up> Next/previous visible headline.
  3102. n / p Next/previous visible headline.
  3103. f / b Next/previous headline same level.
  3104. u One level up.
  3105. Pressing <RET> or <left> or <right> then leads to the following
  3106. result.
  3107. Cursor Key Note gets inserted
  3108. position
  3109. on headline <RET> as sublevel of the heading at cursor, first or
  3110. last
  3111. depending on `org-reverse-note-order'.
  3112. <left>/<right>as same level, before/after current heading
  3113. buffer-start <RET> as level 2 heading at end of file or level 1
  3114. at beginning
  3115. depending on `org-reverse-note-order'.
  3116. not on <RET> at cursor position, level taken from context.
  3117. headline
  3118. Before inserting the text into a tree, the function ensures that the
  3119. text has a headline, i.e. a first line that starts with a `*'. If not,
  3120. a headline is constructed from the current date and some additional
  3121. data. If you have indented the text of the note below the headline, the
  3122. indentation will be adapted if inserting the note into the tree requires
  3123. demotion from level 1.
  3124. ---------- Footnotes ----------
  3125. (1) Configure the variable `org-remember-store-without-prompt' to
  3126. make this behavior the default.
  3127. 
  3128. File: org, Node: Agenda views, Next: Embedded LaTeX, Prev: Remember, Up: Top
  3129. 10 Agenda Views
  3130. ***************
  3131. Due to the way Org-mode works, TODO items, time-stamped items, and
  3132. tagged headlines can be scattered throughout a file or even a number of
  3133. files. To get an overview over open action items, or over events that
  3134. are important for a particular date, this information must be collected,
  3135. sorted and displayed in an organized way.
  3136. Org-mode can select items based on various criteria, and display them
  3137. in a separate buffer. Six different view types are provided:
  3138. * an _agenda_ that is like a calendar and shows information for
  3139. specific dates,
  3140. * a _TODO list_ that covers all unfinished action items,
  3141. * a _tags view_, showings headlines based on the tags associated
  3142. with them,
  3143. * a _timeline view_ that shows all events in a single Org-mode file,
  3144. in time-sorted view,
  3145. * a _stuck projects view_ showing projects that currently don't move
  3146. along, and
  3147. * _custom views_ that are special tag/keyword searches and
  3148. combinations of different views.
  3149. The extracted information is displayed in a special _agenda buffer_.
  3150. This buffer is read-only, but provides commands to visit the
  3151. corresponding locations in the original Org-mode files, and even to
  3152. edit these files remotely.
  3153. Two variables control how the agenda buffer is displayed and whether
  3154. the window configuration is restored when the agenda exits:
  3155. `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
  3156. * Menu:
  3157. * Agenda files:: Files being searched for agenda information
  3158. * Agenda dispatcher:: Keyboard access to agenda views
  3159. * Built-in agenda views:: What is available out of the box?
  3160. * Presentation and sorting:: How agenda items are prepared for display
  3161. * Agenda commands:: Remote editing of org trees
  3162. * Custom agenda views:: Defining special searches and views
  3163. 
  3164. File: org, Node: Agenda files, Next: Agenda dispatcher, Prev: Agenda views, Up: Agenda views
  3165. 10.1 Agenda files
  3166. =================
  3167. The information to be shown is collected from all _agenda files_, the
  3168. files listed in the variable `org-agenda-files'(1). Thus even if you
  3169. only work with a single Org-mode file, this file should be put into
  3170. that list(2). You can customize `org-agenda-files', but the easiest
  3171. way to maintain it is through the following commands
  3172. `C-c ['
  3173. Add current file to the list of agenda files. The file is added to
  3174. the front of the list. If it was already in the list, it is moved
  3175. to the front. With prefix arg, file is added/moved to the end.
  3176. `C-c ]'
  3177. Remove current file from the list of agenda files.
  3178. `C-,'
  3179. `C-''
  3180. Cycle through agenda file list, visiting one file after the other.
  3181. `C-c C-x /'
  3182. Search for a regular rexpression in all agenda files and display
  3183. the results in an `occur' buffer.
  3184. The Org menu contains the current list of files and can be used to
  3185. visit any of them.
  3186. ---------- Footnotes ----------
  3187. (1) If the value of that variable is not a list, but a single file
  3188. name, then the list of agenda files will be maintained in that external
  3189. file.
  3190. (2) When using the dispatcher, pressing `1' before selecting a
  3191. command will actually limit the command to the current file, and ignore
  3192. `org-agenda-files' until the next dispatcher command.
  3193. 
  3194. File: org, Node: Agenda dispatcher, Next: Built-in agenda views, Prev: Agenda files, Up: Agenda views
  3195. 10.2 The agenda dispatcher
  3196. ==========================
  3197. The views are created through a dispatcher that should be bound to a
  3198. global key, for example `C-c a' (*note Installation::). In the
  3199. following we will assume that `C-c a' is indeed how the dispatcher is
  3200. accessed and list keyboard access to commands accordingly. After
  3201. pressing `C-c a', an additional letter is required to execute a
  3202. command. The dispatcher offers the following default commands:
  3203. `a'
  3204. Create the calendar-like agenda (*note Weekly/Daily agenda::).
  3205. `t / T'
  3206. Create a list of all TODO items (*note Global TODO list::).
  3207. `m / M'
  3208. Create a list of headlines matching a TAGS expression (*note
  3209. Matching tags and properties::).
  3210. `L'
  3211. Create the timeline view for the current buffer (*note Timeline::).
  3212. `# / !'
  3213. Create a list of stuck projects (*note Stuck projects::).
  3214. `1'
  3215. Restrict an agenda command to the current buffer. After pressing
  3216. `1', you still need to press the character selecting the command.
  3217. `0'
  3218. If there is an active region, restrict the following agenda
  3219. command to the region. Otherwise, restrict it to the current
  3220. subtree. After pressing `0', you still need to press the
  3221. character selecting the command.
  3222. You can also define custom commands that will be accessible through
  3223. the dispatcher, just like the default commands. This includes the
  3224. possibility to create extended agenda buffers that contain several
  3225. blocks together, for example the weekly agenda, the global TODO list and
  3226. a number of special tags matches. *Note Custom agenda views::.
  3227. 
  3228. File: org, Node: Built-in agenda views, Next: Presentation and sorting, Prev: Agenda dispatcher, Up: Agenda views
  3229. 10.3 The built-in agenda views
  3230. ==============================
  3231. In this section we describe the built-in views.
  3232. * Menu:
  3233. * Weekly/Daily agenda:: The calendar page with current tasks
  3234. * Global TODO list:: All unfinished action items
  3235. * Matching tags and properties:: Structured information with fine-tuned search
  3236. * Timeline:: Time-sorted view for single file
  3237. * Stuck projects:: Find projects you need to review
  3238. 
  3239. File: org, Node: Weekly/Daily agenda, Next: Global TODO list, Prev: Built-in agenda views, Up: Built-in agenda views
  3240. 10.3.1 The weekly/daily agenda
  3241. ------------------------------
  3242. The purpose of the weekly/daily _agenda_ is to act like a page of a
  3243. paper agenda, showing all the tasks for the current week or day.
  3244. `C-c a a'
  3245. Compile an agenda for the current week from a list of org files.
  3246. The agenda shows the entries for each day. With a `C-u' prefix (or
  3247. when the variable `org-agenda-include-all-todo' is `t'), all
  3248. unfinished TODO items (including those without a date) are also
  3249. listed at the beginning of the buffer, before the first date.
  3250. Remote editing from the agenda buffer means, for example, that you
  3251. can change the dates of deadlines and appointments from the agenda
  3252. buffer. The commands available in the Agenda buffer are listed in
  3253. *Note Agenda commands::.
  3254. Calendar/Diary integration
  3255. ..........................
  3256. Emacs contains the calendar and diary by Edward M. Reingold. The
  3257. calendar displays a three-month calendar with holidays from different
  3258. countries and cultures. The diary allows you to keep track of
  3259. anniversaries, lunar phases, sunrise/set, recurrent appointments
  3260. (weekly, monthly) and more. In this way, it is quite complementary to
  3261. Org-mode. It can be very useful to combine output from Org-mode with
  3262. the diary.
  3263. In order to include entries from the Emacs diary into Org-mode's
  3264. agenda, you only need to customize the variable
  3265. (setq org-agenda-include-diary t)
  3266. After that, everything will happen automatically. All diary entries
  3267. including holidays, anniversaries etc will be included in the agenda
  3268. buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
  3269. the agenda buffer to jump to the diary file in order to edit existing
  3270. diary entries. The `i' command to insert new entries for the current
  3271. date works in the agenda buffer, as well as the commands `S', `M', and
  3272. `C' to display Sunrise/Sunset times, show lunar phases and to convert
  3273. to other calendars, respectively. `c' can be used to switch back and
  3274. forth between calendar and agenda.
  3275. If you are using the diary only for sexp entries and holidays, it is
  3276. faster to not use the above setting, but instead to copy or even move
  3277. the entries into an Org-mode file. Org-mode evaluates diary-style sexp
  3278. entries, and does it faster because there is no overhead for first
  3279. creating the diary display. Note that the sexp entries must start at
  3280. the left margin, no white space is allowed before them. For example,
  3281. the following segment of an Org-mode file will be processed and entries
  3282. will be made in the agenda:
  3283. * Birthdays and similar stuff
  3284. #+CATEGORY: Holiday
  3285. %%(org-calendar-holiday) ; special function for holiday names
  3286. #+CATEGORY: Ann
  3287. %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old
  3288. %%(diary-anniversary 2 10 1869) Mahatma Gandhi would be %d years old
  3289. Appointment reminders
  3290. .....................
  3291. Org can interact with Emacs appointments notification facility.
  3292. To add all the appointments of your agenda files, use the command
  3293. `org-agenda-to-appt'. This commands also lets you filter through the
  3294. list of your appointments and add only those belonging to a specific
  3295. category or matching a regular expression. See the docstring for
  3296. details.
  3297. 
  3298. File: org, Node: Global TODO list, Next: Matching tags and properties, Prev: Weekly/Daily agenda, Up: Built-in agenda views
  3299. 10.3.2 The global TODO list
  3300. ---------------------------
  3301. The global TODO list contains all unfinished TODO items, formatted and
  3302. collected into a single place.
  3303. `C-c a t'
  3304. Show the global TODO list. This collects the TODO items from all
  3305. agenda files (*note Agenda views::) into a single buffer. The
  3306. buffer is in `agenda-mode', so there are commands to examine and
  3307. manipulate the TODO entries directly from that buffer (*note
  3308. Agenda commands::).
  3309. `C-c a T'
  3310. Like the above, but allows selection of a specific TODO keyword.
  3311. You can also do this by specifying a prefix argument to `C-c a t'.
  3312. With a `C-u' prefix you are prompted for a keyword, and you may
  3313. also specify several keywords by separating them with `|' as
  3314. boolean OR operator. With a numeric prefix, the Nth keyword in
  3315. `org-todo-keywords' is selected. The `r' key in the agenda buffer
  3316. regenerates it, and you can give a prefix argument to this command
  3317. to change the selected TODO keyword, for example `3 r'. If you
  3318. often need a search for a specific keyword, define a custom
  3319. command for it (*note Agenda dispatcher::).
  3320. Matching specific TODO keywords can also be done as part of a tags
  3321. search (*note Tag searches::).
  3322. Remote editing of TODO items means that you can change the state of a
  3323. TODO entry with a single key press. The commands available in the TODO
  3324. list are described in *Note Agenda commands::.
  3325. Normally the global todo list simply shows all headlines with TODO
  3326. keywords. This list can become very long. There are two ways to keep
  3327. it more compact:
  3328. - Some people view a TODO item that has been _scheduled_ for
  3329. execution (*note Time stamps::) as no longer _open_. Configure the
  3330. variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
  3331. items from the global TODO list.
  3332. - TODO items may have sublevels to break up the task into subtasks.
  3333. In such cases it may be enough to list only the highest level TODO
  3334. headline and omit the sublevels from the global list. Configure
  3335. the variable `org-agenda-todo-list-sublevels' to get this behavior.
  3336. 
  3337. File: org, Node: Matching tags and properties, Next: Timeline, Prev: Global TODO list, Up: Built-in agenda views
  3338. 10.3.3 Matching Tags and Properties
  3339. -----------------------------------
  3340. If headlines in the agenda files are marked with _tags_ (*note Tags::),
  3341. you can select headlines based on the tags that apply to them and
  3342. collect them into an agenda buffer.
  3343. `C-c a m'
  3344. Produce a list of all headlines that match a given set of tags.
  3345. The command prompts for a selection criterion, which is a boolean
  3346. logic expression with tags, like `+WORK+URGENT-WITHBOSS' or
  3347. `WORK|HOME' (*note Tags::). If you often need a specific search,
  3348. define a custom command for it (*note Agenda dispatcher::).
  3349. `C-c a M'
  3350. Like `C-c a m', but only select headlines that are also TODO items
  3351. and force checking subitems (see variable
  3352. `org-tags-match-list-sublevels'). Matching specific todo keywords
  3353. together with a tags match is also possible, see *Note Tag
  3354. searches::.
  3355. The commands available in the tags list are described in *Note
  3356. Agenda commands::.
  3357. 
  3358. File: org, Node: Timeline, Next: Stuck projects, Prev: Matching tags and properties, Up: Built-in agenda views
  3359. 10.3.4 Timeline for a single file
  3360. ---------------------------------
  3361. The timeline summarizes all time-stamped items from a single Org-mode
  3362. file in a _time-sorted view_. The main purpose of this command is to
  3363. give an overview over events in a project.
  3364. `C-c a L'
  3365. Show a time-sorted view of the org file, with all time-stamped
  3366. items. When called with a `C-u' prefix, all unfinished TODO
  3367. entries (scheduled or not) are also listed under the current date.
  3368. The commands available in the timeline buffer are listed in *Note
  3369. Agenda commands::.
  3370. 
  3371. File: org, Node: Stuck projects, Prev: Timeline, Up: Built-in agenda views
  3372. 10.3.5 Stuck projects
  3373. ---------------------
  3374. If you are following a system like David Allen's GTD to organize your
  3375. work, one of the "duties" you have is a regular review to make sure
  3376. that all projects move along. A _stuck_ project is a project that has
  3377. no defined next actions, so it will never show up in the TODO lists
  3378. Org-mode produces. During the review, you need to identify such
  3379. projects and define next actions for them.
  3380. `C-c a #'
  3381. List projects that are stuck.
  3382. `C-c a !'
  3383. Customize the variable `org-stuck-projects' to define what a stuck
  3384. project is and how to find it.
  3385. You almost certainly will have to configure this view before it will
  3386. work for you. The built-in default assumes that all your projects are
  3387. level-2 headlines, and that a project is not stuck if it has at least
  3388. one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
  3389. Lets assume that you, in your own way of using Org-mode, identify
  3390. projects with a tag PROJECT, and that you use a todo keyword MAYBE to
  3391. indicate a project that should not be considered yet. Lets further
  3392. assume that the todo keyword DONE marks finished projects, and that NEXT
  3393. and TODO indicate next actions. The tag @SHOP indicates shopping and
  3394. is a next action even without the NEXT tag. Finally, if the project
  3395. contains the special word IGNORE anywhere, it should not be listed
  3396. either. In this case you would start by identifying eligible projects
  3397. with a tags/todo match `+PROJECT/-MAYBE-DONE', and then check for TODO,
  3398. NEXT, @SHOP, and IGNORE in the subtree to identify projects that are
  3399. not stuck. The correct customization for this is
  3400. (setq org-stuck-projects
  3401. '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")
  3402. "\\<IGNORE\\>"))
  3403. 
  3404. File: org, Node: Presentation and sorting, Next: Agenda commands, Prev: Built-in agenda views, Up: Agenda views
  3405. 10.4 Presentation and sorting
  3406. =============================
  3407. Before displaying items in an agenda view, Org-mode visually prepares
  3408. the items and sorts them. Each item occupies a single line. The line
  3409. starts with a _prefix_ that contains the _category_ (*note
  3410. Categories::) of the item and other important information. You can
  3411. customize the prefix using the option `org-agenda-prefix-format'. The
  3412. prefix is followed by a cleaned-up version of the outline headline
  3413. associated with the item.
  3414. * Menu:
  3415. * Categories:: Not all tasks are equal
  3416. * Time-of-day specifications:: How the agenda knows the time
  3417. * Sorting of agenda items:: The order of things
  3418. 
  3419. File: org, Node: Categories, Next: Time-of-day specifications, Prev: Presentation and sorting, Up: Presentation and sorting
  3420. 10.4.1 Categories
  3421. -----------------
  3422. The category is a broad label assigned to each agenda item. By default,
  3423. the category is simply derived from the file name, but you can also
  3424. specify it with a special line in the buffer, like this(1):
  3425. #+CATEGORY: Thesis
  3426. If you would like to have a special CATEGORY for a single entry or a
  3427. (sub)tree, give the entry a `:CATEGORY:' property with the location as
  3428. the value (*note Properties and columns::).
  3429. The display in the agenda buffer looks best if the category is not
  3430. longer than 10 characters.
  3431. ---------- Footnotes ----------
  3432. (1) If there are several such lines in a file, each specifies the
  3433. category for the text below it. The first category also applies to any
  3434. text before the first CATEGORY line. This method is only kept for
  3435. backward compatibility. The preferred method for setting multiple
  3436. categories in a buffer is using a property.
  3437. 
  3438. File: org, Node: Time-of-day specifications, Next: Sorting of agenda items, Prev: Categories, Up: Presentation and sorting
  3439. 10.4.2 Time-of-Day Specifications
  3440. ---------------------------------
  3441. Org-mode checks each agenda item for a time-of-day specification. The
  3442. time can be part of the time stamp that triggered inclusion into the
  3443. agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
  3444. specified with two time stamps, like
  3445. `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
  3446. In the headline of the entry itself, a time(range) may also appear as
  3447. plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
  3448. Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
  3449. entries are recognized as well.
  3450. For agenda display, Org-mode extracts the time and displays it in a
  3451. standard 24 hour format as part of the prefix. The example times in
  3452. the previous paragraphs would end up in the agenda like this:
  3453. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  3454. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  3455. 19:00...... The Vogon reads his poem
  3456. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  3457. If the agenda is in single-day mode, or for the display of today, the
  3458. timed entries are embedded in a time grid, like
  3459. 8:00...... ------------------
  3460. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  3461. 10:00...... ------------------
  3462. 12:00...... ------------------
  3463. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  3464. 14:00...... ------------------
  3465. 16:00...... ------------------
  3466. 18:00...... ------------------
  3467. 19:00...... The Vogon reads his poem
  3468. 20:00...... ------------------
  3469. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  3470. The time grid can be turned on and off with the variable
  3471. `org-agenda-use-time-grid', and can be configured with
  3472. `org-agenda-time-grid'.
  3473. 
  3474. File: org, Node: Sorting of agenda items, Prev: Time-of-day specifications, Up: Presentation and sorting
  3475. 10.4.3 Sorting of agenda items
  3476. ------------------------------
  3477. Before being inserted into a view, the items are sorted. How this is
  3478. done depends on the type of view.
  3479. * For the daily/weekly agenda, the items for each day are sorted.
  3480. The default order is to first collect all items containing an
  3481. explicit time-of-day specification. These entries will be shown
  3482. at the beginning of the list, as a _schedule_ for the day. After
  3483. that, items remain grouped in categories, in the sequence given by
  3484. `org-agenda-files'. Within each category, items are sorted by
  3485. priority (*note Priorities::), which is composed of the base
  3486. priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
  3487. plus additional increments for overdue scheduled or deadline items.
  3488. * For the TODO list, items remain in the order of categories, but
  3489. within each category, sorting takes place according to priority
  3490. (*note Priorities::).
  3491. * For tags matches, items are not sorted at all, but just appear in
  3492. the sequence in which they are found in the agenda files.
  3493. Sorting can be customized using the variable
  3494. `org-agenda-sorting-strategy'.
  3495. 
  3496. File: org, Node: Agenda commands, Next: Custom agenda views, Prev: Presentation and sorting, Up: Agenda views
  3497. 10.5 Commands in the agenda buffer
  3498. ==================================
  3499. Entries in the agenda buffer are linked back to the org file or diary
  3500. file where they originate. You are not allowed to edit the agenda
  3501. buffer itself, but commands are provided to show and jump to the
  3502. original entry location, and to edit the org-files "remotely" from the
  3503. agenda buffer. In this way, all information is stored only once,
  3504. removing the risk that your agenda and note files may diverge.
  3505. Some commands can be executed with mouse clicks on agenda lines. For
  3506. the other commands, the cursor needs to be in the desired line.
  3507. Motion
  3508. ......
  3509. `n'
  3510. Next line (same as <up> and `C-p').
  3511. `p'
  3512. Previous line (same as <down> and `C-n').
  3513. View/GoTo org file
  3514. ..................
  3515. `mouse-3'
  3516. `<SPC>'
  3517. Display the original location of the item in another window.
  3518. `L'
  3519. Display original location and recenter that window.
  3520. `mouse-2'
  3521. `mouse-1'
  3522. `<TAB>'
  3523. Go to the original location of the item in another window. Under
  3524. Emacs 22, `mouse-1' will also works for this.
  3525. `<RET>'
  3526. Go to the original location of the item and delete other windows.
  3527. `f'
  3528. Toggle Follow mode. In Follow mode, as you move the cursor through
  3529. the agenda buffer, the other window always shows the corresponding
  3530. location in the org file. The initial setting for this mode in new
  3531. agenda buffers can be set with the variable
  3532. `org-agenda-start-with-follow-mode'.
  3533. `b'
  3534. Display the entire subtree of the current item in an indirect
  3535. buffer. With numerical prefix ARG, go up to this level and then
  3536. take that tree. If ARG is negative, go up that many levels. With
  3537. `C-u' prefix, do not remove the previously used indirect buffer.
  3538. `l'
  3539. Toggle Logbook mode. In Logbook mode, entries that where marked
  3540. DONE while logging was on (variable `org-log-done') are shown in
  3541. the agenda, as are entries that have been clocked on that day.
  3542. Change display
  3543. ..............
  3544. `o'
  3545. Delete other windows.
  3546. `d w m y'
  3547. Switch to day/week/month/year view. When switching to day or week
  3548. view, this setting becomes the default for subseqent agenda
  3549. commands. Since month and year views are slow to create, the do
  3550. not become the default.
  3551. `D'
  3552. Toggle the inclusion of diary entries. See *Note Weekly/Daily
  3553. agenda::.
  3554. `g'
  3555. Toggle the time grid on and off. See also the variables
  3556. `org-agenda-use-time-grid' and `org-agenda-time-grid'.
  3557. `r'
  3558. Recreate the agenda buffer, for example to reflect the changes
  3559. after modification of the time stamps of items with S-<left> and
  3560. S-<right>. When the buffer is the global todo list, a prefix
  3561. argument is interpreted to create a selective list for a specific
  3562. TODO keyword.
  3563. `s'
  3564. `C-x C-s'
  3565. Save all Org-mode buffers in the current Emacs session.
  3566. `<right>'
  3567. Display the following `org-agenda-ndays' days. For example, if
  3568. the display covers a week, switch to the following week. With
  3569. prefix arg, go forward that many times `org-agenda-ndays' days.
  3570. `<left>'
  3571. Display the previous dates.
  3572. `.'
  3573. Goto today.
  3574. Remote editing
  3575. ..............
  3576. `0-9'
  3577. Digit argument.
  3578. `C-_'
  3579. Undo a change due to a remote editing command. The change is
  3580. undone both in the agenda buffer and in the remote buffer.
  3581. `t'
  3582. Change the TODO state of the item, both in the agenda and in the
  3583. original org file.
  3584. `C-k'
  3585. Delete the current agenda item along with the entire subtree
  3586. belonging to it in the original Org-mode file. If the text to be
  3587. deleted remotely is longer than one line, the kill needs to be
  3588. confirmed by the user. See variable `org-agenda-confirm-kill'.
  3589. `$'
  3590. Archive the subtree corresponding to the current headline.
  3591. `T'
  3592. Show all tags associated with the current item. Because of
  3593. inheritance, this may be more than the tags listed in the line
  3594. itself.
  3595. `:'
  3596. Set tags for the current headline. If there is an active region
  3597. in the agenda, change a tag for all headings in the region.
  3598. `a'
  3599. Toggle the ARCHIVE tag for the current headline.
  3600. `,'
  3601. Set the priority for the current item. Org-mode prompts for the
  3602. priority character. If you reply with <SPC>, the priority cookie
  3603. is removed from the entry.
  3604. `P'
  3605. Display weighted priority of current item.
  3606. `+'
  3607. `S-<up>'
  3608. Increase the priority of the current item. The priority is
  3609. changed in the original buffer, but the agenda is not resorted.
  3610. Use the `r' key for this.
  3611. `-'
  3612. `S-<down>'
  3613. Decrease the priority of the current item.
  3614. `C-c C-s'
  3615. Schedule this item
  3616. `C-c C-d'
  3617. Set a deadline for this item.
  3618. `S-<right>'
  3619. Change the time stamp associated with the current line by one day
  3620. into the future. With prefix argument, change it by that many
  3621. days. For example, `3 6 5 S-<right>' will change it by a year.
  3622. The stamp is changed in the original org file, but the change is
  3623. not directly reflected in the agenda buffer. Use the `r' key to
  3624. update the buffer.
  3625. `S-<left>'
  3626. Change the time stamp associated with the current line by one day
  3627. into the past.
  3628. `>'
  3629. Change the time stamp associated with the current line to today.
  3630. The key `>' has been chosen, because it is the same as `S-.' on my
  3631. keyboard.
  3632. `I'
  3633. Start the clock on the current item. If a clock is running
  3634. already, it is stopped first.
  3635. `O'
  3636. Stop the previously started clock.
  3637. `X'
  3638. Cancel the currently running clock.
  3639. `J'
  3640. Jump to the running clock in another window.
  3641. Calendar commands
  3642. .................
  3643. `c'
  3644. Open the Emacs calendar and move to the date at the agenda cursor.
  3645. `c'
  3646. When in the calendar, compute and show the Org-mode agenda for the
  3647. date at the cursor.
  3648. `i'
  3649. Insert a new entry into the diary. Prompts for the type of entry
  3650. (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
  3651. new entry in the diary, just as `i d' etc. would do in the
  3652. calendar. The date is taken from the cursor position.
  3653. `M'
  3654. Show the phases of the moon for the three months around current
  3655. date.
  3656. `S'
  3657. Show sunrise and sunset times. The geographical location must be
  3658. set with calendar variables, see documentation of the Emacs
  3659. calendar.
  3660. `C'
  3661. Convert the date at cursor into many other cultural and historic
  3662. calendars.
  3663. `H'
  3664. Show holidays for three month around the cursor date.
  3665. `C-c C-x C-c'
  3666. Export a single iCalendar file containing entries from all agenda
  3667. files.
  3668. Exporting to a file
  3669. ...................
  3670. `C-x C-w'
  3671. Write the agenda view to a file. Depending on the extension of the
  3672. selected file name, the view will be exported as HTML (extension
  3673. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  3674. (any other extension). Use the variable
  3675. `org-agenda-exporter-settings' to set options for `ps-print' and
  3676. for `htmlize' to be used during export.
  3677. Quit and Exit
  3678. .............
  3679. `q'
  3680. Quit agenda, remove the agenda buffer.
  3681. `x'
  3682. Exit agenda, remove the agenda buffer and all buffers loaded by
  3683. Emacs for the compilation of the agenda. Buffers created by the
  3684. user to visit org files will not be removed.
  3685. 
  3686. File: org, Node: Custom agenda views, Prev: Agenda commands, Up: Agenda views
  3687. 10.6 Custom agenda views
  3688. ========================
  3689. Custom agenda commands serve two purposes: to store and quickly access
  3690. frequently used TODO and tags searches, and to create special composite
  3691. agenda buffers. Custom agenda commands will be accessible through the
  3692. dispatcher (*note Agenda dispatcher::), just like the default commands.
  3693. * Menu:
  3694. * Storing searches:: Type once, use often
  3695. * Block agenda:: All the stuff you need in a single buffer
  3696. * Setting Options:: Changing the rules
  3697. * Exporting Agenda Views:: Writing agendas to files.
  3698. * Extracting Agenda Information for other programs::
  3699. 
  3700. File: org, Node: Storing searches, Next: Block agenda, Prev: Custom agenda views, Up: Custom agenda views
  3701. 10.6.1 Storing searches
  3702. -----------------------
  3703. The first application of custom searches is the definition of keyboard
  3704. shortcuts for frequently used searches, either creating an agenda
  3705. buffer, or a sparse tree (the latter covering of course only the current
  3706. buffer). Custom commands are configured in the variable
  3707. `org-agenda-custom-commands'. You can customize this variable, for
  3708. example by pressing `C-c a C'. You can also directly set it with Emacs
  3709. Lisp in `.emacs'. The following example contains all valid search
  3710. types:
  3711. (setq org-agenda-custom-commands
  3712. '(("w" todo "WAITING")
  3713. ("W" todo-tree "WAITING")
  3714. ("u" tags "+BOSS-URGENT")
  3715. ("v" tags-todo "+BOSS-URGENT")
  3716. ("U" tags-tree "+BOSS-URGENT")
  3717. ("f" occur-tree "\\<FIXME\\>")))
  3718. The initial single-character string in each entry defines the character
  3719. you have to press after the dispatcher command `C-c a' in order to
  3720. access the command. The second parameter is the search type, followed
  3721. by the string or regular expression to be used for the matching. The
  3722. example above will therefore define:
  3723. `C-c a w'
  3724. as a global search for TODO entries with `WAITING' as the TODO
  3725. keyword
  3726. `C-c a W'
  3727. as the same search, but only in the current buffer and displaying
  3728. the results as a sparse tree
  3729. `C-c a u'
  3730. as a global tags search for headlines marked `:BOSS:' but not
  3731. `:URGENT:'
  3732. `C-c a v'
  3733. as the same search as `C-c a u', but limiting the search to
  3734. headlines that are also TODO items
  3735. `C-c a U'
  3736. as the same search as `C-c a u', but only in the current buffer and
  3737. displaying the result as a sparse tree
  3738. `C-c a f'
  3739. to create a sparse tree (again: current buffer only) with all
  3740. entries containing the word `FIXME'.
  3741. 
  3742. File: org, Node: Block agenda, Next: Setting Options, Prev: Storing searches, Up: Custom agenda views
  3743. 10.6.2 Block agenda
  3744. -------------------
  3745. Another possibility is the construction of agenda views that comprise
  3746. the results of _several_ commands, each of which creates a block in the
  3747. agenda buffer. The available commands include `agenda' for the daily
  3748. or weekly agenda (as created with `C-c a a'), `alltodo' for the global
  3749. todo list (as constructed with `C-c a t'), and the matching commands
  3750. discussed above: `todo', `tags', and `tags-todo'. Here are two
  3751. examples:
  3752. (setq org-agenda-custom-commands
  3753. '(("h" "Agenda and Home-related tasks"
  3754. ((agenda)
  3755. (tags-todo "HOME")
  3756. (tags "GARDEN")))
  3757. ("o" "Agenda and Office-related tasks"
  3758. ((agenda)
  3759. (tags-todo "WORK")
  3760. (tags "OFFICE")))))
  3761. This will define `C-c a h' to create a multi-block view for stuff you
  3762. need to attend to at home. The resulting agenda buffer will contain
  3763. your agenda for the current week, all TODO items that carry the tag
  3764. `HOME', and also all lines tagged with `GARDEN'. Finally the command
  3765. `C-c a o' provides a similar view for office tasks.
  3766. 
  3767. File: org, Node: Setting Options, Next: Exporting Agenda Views, Prev: Block agenda, Up: Custom agenda views
  3768. 10.6.3 Setting Options for custom commands
  3769. ------------------------------------------
  3770. Org-mode contains a number of variables regulating agenda construction
  3771. and display. The global variables define the behavior for all agenda
  3772. commands, including the custom commands. However, if you want to change
  3773. some settings just for a single custom view, you can do so. Setting
  3774. options requires inserting a list of variable names and values at the
  3775. right spot in `org-agenda-custom-commands'. For example:
  3776. (setq org-agenda-custom-commands
  3777. '(("w" todo "WAITING"
  3778. ((org-agenda-sorting-strategy '(priority-down))
  3779. (org-agenda-prefix-format " Mixed: ")))
  3780. ("U" tags-tree "+BOSS-URGENT"
  3781. ((org-show-following-heading nil)
  3782. (org-show-hierarchy-above nil)))))
  3783. Now the `C-c a w' command will sort the collected entries only by
  3784. priority, and the prefix format is modified to just say ` Mixed:'
  3785. instead of giving the category of the entry. The sparse tags tree of
  3786. `C-c a U' will now turn out ultra-compact, because neither the headline
  3787. hierarchy above the match, nor the headline following the match will be
  3788. shown.
  3789. For command sets creating a block agenda,
  3790. `org-agenda-custom-commands' has two separate spots for setting
  3791. options. You can add options that should be valid for just a single
  3792. command in the set, and options that should be valid for all commands in
  3793. the set. The former are just added to the command entry, the latter
  3794. must come after the list of command entries. Going back to the block
  3795. agenda example (*note Block agenda::), let's change the sorting strategy
  3796. for the `C-c a h' commands to `priority-down', but let's sort the
  3797. results for GARDEN tags query in the opposite order, `priority-up'.
  3798. This would look like this:
  3799. (setq org-agenda-custom-commands
  3800. '(("h" "Agenda and Home-related tasks"
  3801. ((agenda)
  3802. (tags-todo "HOME")
  3803. (tags "GARDEN"
  3804. ((org-agenda-sorting-strategy '(priority-up)))))
  3805. ((org-agenda-sorting-strategy '(priority-down))))
  3806. ("o" "Agenda and Office-related tasks"
  3807. ((agenda)
  3808. (tags-todo "WORK")
  3809. (tags "OFFICE")))))
  3810. As you see, the values and parenthesis setting is a little complex.
  3811. When in doubt, use the customize interface to set this variable - it
  3812. fully supports its structure. Just one caveat: When setting options in
  3813. this interface, the _values_ are just lisp expressions. So if the
  3814. value is a string, you need to add the double quotes around the value
  3815. yourself.
  3816. 
  3817. File: org, Node: Exporting Agenda Views, Next: Extracting Agenda Information for other programs, Prev: Setting Options, Up: Custom agenda views
  3818. 10.6.4 Exporting Agenda Views
  3819. -----------------------------
  3820. If you are away from your computer, it can be very useful to have a
  3821. printed version of some agenda views to carry around. Org-mode can
  3822. export custom agenda views as plain text, HTML(1) and postscript. If
  3823. you want to do this only occasionally, use the command
  3824. `C-x C-w'
  3825. Write the agenda view to a file. Depending on the extension of the
  3826. selected file name, the view will be exported as HTML (extension
  3827. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  3828. (any other extension). Use the variable
  3829. `org-agenda-exporter-settings' to set options for `ps-print' and
  3830. for `htmlize' to be used during export, for example
  3831. (setq org-agenda-exporter-settings
  3832. '((ps-number-of-columns 2)
  3833. (ps-landscape-mode t)
  3834. (htmlize-output-type 'css)))
  3835. If you need to export certain agenda views frequently, you can
  3836. associate any custom agenda command with a list of output file names
  3837. (2). Here is an example that first does define custom commands for the
  3838. agenda and the global todo list, together with a number of files to
  3839. which to export them. Then we define two block agenda commands and
  3840. specify filenames for them as well. File names can be relative to the
  3841. current working directory, or absolute.
  3842. (setq org-agenda-custom-commands
  3843. '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
  3844. ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
  3845. ("h" "Agenda and Home-related tasks"
  3846. ((agenda)
  3847. (tags-todo "HOME")
  3848. (tags "GARDEN"))
  3849. nil
  3850. ("~/views/home.html"))
  3851. ("o" "Agenda and Office-related tasks"
  3852. ((agenda)
  3853. (tags-todo "WORK")
  3854. (tags "OFFICE"))
  3855. nil
  3856. ("~/views/office.ps"))))
  3857. The extension of the file name determines the type of export. If it
  3858. is `.html', Org-mode will use the `htmlize.el' package to convert the
  3859. buffer to HTML and save it to this file name. If the extension is
  3860. `.ps', `ps-print-buffer-with-faces' is used to produce postscript
  3861. output. Any other extension produces a plain ASCII file.
  3862. The export files are _not_ created when you use one of those
  3863. commands interactively. Instead, there is a special command to produce
  3864. _all_ specified files in one step:
  3865. `C-c a e'
  3866. Export all agenda views that have export filenames associated with
  3867. them.
  3868. You can use the options section of the custom agenda commands to also
  3869. set options for the export commands. For example:
  3870. (setq org-agenda-custom-commands
  3871. '(("X" agenda ""
  3872. ((ps-number-of-columns 2)
  3873. (ps-landscape-mode t)
  3874. (org-agenda-prefix-format " [ ] ")
  3875. (org-agenda-with-colors nil)
  3876. (org-agenda-remove-tags t))
  3877. ("theagenda.ps"))))
  3878. This command sets two options for the postscript exporter, to make it
  3879. print in two columns in landscape format - the resulting page can be cut
  3880. in two and then used in a paper agenda. The remaining settings modify
  3881. the agenda prefix to omit category and scheduling information, and
  3882. instead include a checkbox to check off items. We also remove the tags
  3883. to make the lines compact, and we don't want to use colors for the
  3884. black-and-white printer. Settings specified in
  3885. `org-agenda-exporter-settings' will also apply, but the settings in
  3886. `org-agenda-custom-commands' take precedence.
  3887. From the command line you may also use
  3888. emacs -f org-batch-store-agenda-views -kill
  3889. or, if you need to modify some parameters
  3890. emacs -eval '(org-batch-store-agenda-views \
  3891. org-agenda-ndays 30 \
  3892. org-agenda-include-diary nil \
  3893. org-agenda-files (quote ("~/org/project.org")))' \
  3894. -kill
  3895. which will create the agenda views restricted to the file
  3896. `~/org/project.org', without diary entries and with 30 days extent.
  3897. ---------- Footnotes ----------
  3898. (1) You need to install Hrvoje Niksic' `htmlize.el'.
  3899. (2) If you want to store standard views like the weekly agenda or
  3900. the global TODO list as well, you need to define custom commands for
  3901. them in order to be able to specify filenames.
  3902. 
  3903. File: org, Node: Extracting Agenda Information for other programs, Prev: Exporting Agenda Views, Up: Custom agenda views
  3904. 10.6.5 Extracting Agenda Information for other programs
  3905. -------------------------------------------------------
  3906. Org-mode provides commands to access agenda information for the command
  3907. line in emacs batch mode. This extracted information can be sent
  3908. directly to a printer, or it can be read by a program that does further
  3909. processing of the data. The first of these commands is the function
  3910. `org-batch-agenda', that produces an agenda view and sends it as ASCII
  3911. text to STDOUT. The command takes a single string as parameter. If
  3912. the string has length 1, it is used as a key to one of the commands you
  3913. have configured in `org-agenda-custom-commands', basically any key you
  3914. can use after `C-c a'. For example, to directly print the current TODO
  3915. list, you could use
  3916. emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
  3917. If the parameter is a string with 2 or more characters, it is used
  3918. as a tags/todo match string. For example, to print your local shopping
  3919. list (all items with the tag `shop', but excluding the tag `NewYork'),
  3920. you could use
  3921. emacs -batch -l ~/.emacs \
  3922. -eval '(org-batch-agenda "+shop-NewYork")' | lpr
  3923. You may also modify parameters on the fly like this:
  3924. emacs -batch -l ~/.emacs \
  3925. -eval '(org-batch-agenda "a" \
  3926. org-agenda-ndays 30 \
  3927. org-agenda-include-diary nil \
  3928. org-agenda-files (quote ("~/org/project.org")))' \
  3929. | lpr
  3930. which will produce a 30 day agenda, fully restricted to the Org file
  3931. `~/org/projects.org', not even including the diary.
  3932. If you want to process the agenda data in more sophisticated ways,
  3933. you can use the command `org-batch-agenda-csv' to get a comma-separated
  3934. list of values for each agenda item. Each line in the output will
  3935. contain a number of fields separated by commas. The fields in a line
  3936. are:
  3937. category The category of the item
  3938. head The headline, without TODO kwd, TAGS and PRIORITY
  3939. type The type of the agenda entry, can be
  3940. todo selected in TODO match
  3941. tagsmatch selected in tags match
  3942. diary imported from diary
  3943. deadline a deadline
  3944. scheduled scheduled
  3945. timestamp appointment, selected by timestamp
  3946. closed entry was closed on date
  3947. upcoming-deadline warning about nearing deadline
  3948. past-scheduled forwarded scheduled item
  3949. block entry has date block including date
  3950. todo The todo keyword, if any
  3951. tags All tags including inherited ones, separated by colons
  3952. date The relevant date, like 2007-2-14
  3953. time The time, like 15:00-16:50
  3954. extra String with extra planning info
  3955. priority-l The priority letter if any was given
  3956. priority-n The computed numerical priority
  3957. Time and date will only be given if a timestamp (or deadline/scheduled)
  3958. lead to the selection of the item.
  3959. A CSV list like this is very easy to use in a post processing script.
  3960. For example, here is a Perl program that gets the TODO list from
  3961. Emacs/org-mode and prints all the items, preceded by a checkbox:
  3962. #!/usr/bin/perl
  3963. # define the Emacs command to run
  3964. $cmd = "emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv \"t\")'";
  3965. # run it and capture the output
  3966. $agenda = qx{$cmd 2>/dev/null};
  3967. # loop over all lines
  3968. foreach $line (split(/\n/,$agenda)) {
  3969. # get the individual values
  3970. ($category,$head,$type,$todo,$tags,$date,$time,$extra,
  3971. $priority_l,$priority_n) = split(/,/,$line);
  3972. # proccess and print
  3973. print "[ ] $head\n";
  3974. }
  3975. 
  3976. File: org, Node: Embedded LaTeX, Next: Exporting, Prev: Agenda views, Up: Top
  3977. 11 Embedded LaTeX
  3978. *****************
  3979. Plain ASCII is normally sufficient for almost all note taking. One
  3980. exception, however, are scientific notes which need to be able to
  3981. contain mathematical symbols and the occasional formula. LaTeX(1) is
  3982. widely used to typeset scientific documents. Org-mode supports
  3983. embedding LaTeX code into its files, because many academics are used to
  3984. read LaTeX source code, and because it can be readily processed into
  3985. images for HTML production.
  3986. It is not necessary to mark LaTeX macros and code in any special way.
  3987. If you observe a few conventions, Org-mode knows how to find it and what
  3988. to do with it.
  3989. * Menu:
  3990. * Math symbols:: TeX macros for symbols and Greek letters
  3991. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  3992. * LaTeX fragments:: Complex formulas made easy
  3993. * Processing LaTeX fragments:: Previewing LaTeX processing
  3994. * CDLaTeX mode:: Speed up entering of formulas
  3995. ---------- Footnotes ----------
  3996. (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
  3997. Many of the features described here as "LaTeX" are really from TeX, but
  3998. for simplicity I am blurring this distinction.
  3999. 
  4000. File: org, Node: Math symbols, Next: Subscripts and Superscripts, Prev: Embedded LaTeX, Up: Embedded LaTeX
  4001. 11.1 Math symbols
  4002. =================
  4003. You can use LaTeX macros to insert special symbols like `\alpha' to
  4004. indicate the Greek letter, or `\to' to indicate an arrow. Completion
  4005. for these macros is available, just type `\' and maybe a few letters,
  4006. and press `M-<TAB>' to see possible completions. Unlike LaTeX code,
  4007. Org-mode allows these macros to be present without surrounding math
  4008. delimiters, for example:
  4009. Angles are written as Greek letters \alpha, \beta and \gamma.
  4010. During HTML export (*note HTML export::), these symbols are
  4011. translated into the proper syntax for HTML, for the above examples this
  4012. is `&alpha;' and `&rarr;', respectively.
  4013. 
  4014. File: org, Node: Subscripts and Superscripts, Next: LaTeX fragments, Prev: Math symbols, Up: Embedded LaTeX
  4015. 11.2 Subscripts and Superscripts
  4016. ================================
  4017. Just like in LaTeX, `^' and `_' are used to indicate super- and
  4018. subscripts. Again, these can be used without embedding them in
  4019. math-mode delimiters. To increase the readability of ASCII text, it is
  4020. not necessary (but OK) to surround multi-character sub- and superscripts
  4021. with curly braces. For example
  4022. The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
  4023. the sun is R_{sun} = 6.96 x 10^8 m.
  4024. To avoid interpretation as raised or lowered text, you can quote `^'
  4025. and `_' with a backslash: `\_' and `\^'.
  4026. During HTML export (*note HTML export::), subscript and superscripts
  4027. are surrounded with `<sub>' and `<sup>' tags, respectively.
  4028. 
  4029. File: org, Node: LaTeX fragments, Next: Processing LaTeX fragments, Prev: Subscripts and Superscripts, Up: Embedded LaTeX
  4030. 11.3 LaTeX fragments
  4031. ====================
  4032. With symbols, sub- and superscripts, HTML is pretty much at its end when
  4033. it comes to representing mathematical formulas(1). More complex
  4034. expressions need a dedicated formula processor. To this end, Org-mode
  4035. can contain arbitrary LaTeX fragments. It provides commands to preview
  4036. the typeset result of these fragments, and upon export to HTML, all
  4037. fragments will be converted to images and inlined into the HTML
  4038. document(2). For this to work you need to be on a system with a working
  4039. LaTeX installation. You also need the `dvipng' program, available at
  4040. `http://sourceforge.net/projects/dvipng/'. The LaTeX header that will
  4041. be used when processing a fragment can be configured with the variable
  4042. `org-format-latex-header'.
  4043. LaTeX fragments don't need any special marking at all. The following
  4044. snippets will be identified as LaTeX source code:
  4045. * Environments of any kind. The only requirement is that the
  4046. `\begin' statement appears on a new line, preceded by only
  4047. whitespace.
  4048. * Text within the usual LaTeX math delimiters. To avoid conflicts
  4049. with currency specifications, single `$' characters are only
  4050. recognized as math delimiters if the enclosed text contains at
  4051. most two line breaks, is directly attached to the `$' characters
  4052. with no whitespace in between, and if the closing `$' is followed
  4053. by whitespace or punctuation. For the other delimiters, there is
  4054. no such restriction, so when in doubt, use `\(...\)' as inline
  4055. math delimiters.
  4056. For example:
  4057. \begin{equation} % arbitrary environments,
  4058. x=\sqrt{b} % even tables, figures
  4059. \end{equation} % etc
  4060. If $a^2=b$ and \( b=2 \), then the solution must be
  4061. either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
  4062. If you need any of the delimiter ASCII sequences for other purposes, you
  4063. can configure the option `org-format-latex-options' to deselect the
  4064. ones you do not wish to have interpreted by the LaTeX converter.
  4065. ---------- Footnotes ----------
  4066. (1) Yes, there is MathML, but that is not yet fully supported by
  4067. many browsers, and there is no decent converter for turning LaTeX or
  4068. ASCII representations of formulas into MathML. So for the time being,
  4069. converting formulas into images seems the way to go.
  4070. (2) The LaTeX export will not use images for displaying LaTeX
  4071. fragments but include these fragments directly into the LaTeX code.
  4072. 
  4073. File: org, Node: Processing LaTeX fragments, Next: CDLaTeX mode, Prev: LaTeX fragments, Up: Embedded LaTeX
  4074. 11.4 Processing LaTeX fragments
  4075. ===============================
  4076. LaTeX fragments can be processed to produce a preview images of the
  4077. typeset expressions:
  4078. `C-c C-x C-l'
  4079. Produce a preview image of the LaTeX fragment at point and overlay
  4080. it over the source code. If there is no fragment at point,
  4081. process all fragments in the current entry (between two
  4082. headlines). When called with a prefix argument, process the
  4083. entire subtree. When called with two prefix arguments, or when
  4084. the cursor is before the first headline, process the entire buffer.
  4085. `C-c C-c'
  4086. Remove the overlay preview images.
  4087. During HTML export (*note HTML export::), all LaTeX fragments are
  4088. converted into images and inlined into the document if the following
  4089. setting is active:
  4090. (setq org-export-with-LaTeX-fragments t)
  4091. 
  4092. File: org, Node: CDLaTeX mode, Prev: Processing LaTeX fragments, Up: Embedded LaTeX
  4093. 11.5 Using CDLaTeX to enter math
  4094. ================================
  4095. CDLaTeX-mode is a minor mode that is normally used in combination with a
  4096. major LaTeX mode like AUCTeX in order to speed-up insertion of
  4097. environments and math templates. Inside Org-mode, you can make use of
  4098. some of the features of cdlatex-mode. You need to install `cdlatex.el'
  4099. and `texmathp.el' (the latter comes also with AUCTeX) from
  4100. `http://www.astro.uva.nl/~dominik/Tools/cdlatex'. Don't turn
  4101. cdlatex-mode itself under Org-mode, but use the light version
  4102. `org-cdlatex-mode' that comes as part of Org-mode. Turn it on for the
  4103. current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
  4104. with
  4105. (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
  4106. When this mode is enabled, the following features are present (for
  4107. more details see the documentation of cdlatex-mode):
  4108. * Environment templates can be inserted with `C-c {'.
  4109. * The <TAB> key will do template expansion if the cursor is inside a
  4110. LaTeX fragment(1). For example, <TAB> will expand `fr' to
  4111. `\frac{}{}' and position the cursor correctly inside the first
  4112. brace. Another <TAB> will get you into the second brace. Even
  4113. outside fragments, <TAB> will expand environment abbreviations at
  4114. the beginning of a line. For example, if you write `equ' at the
  4115. beginning of a line and press <TAB>, this abbreviation will be
  4116. expanded to an `equation' environment. To get a list of all
  4117. abbreviations, type `M-x cdlatex-command-help'.
  4118. * Pressing `_' and `^' inside a LaTeX fragment will insert these
  4119. characters together with a pair of braces. If you use <TAB> to
  4120. move out of the braces, and if the braces surround only a single
  4121. character or macro, they are removed again (depending on the
  4122. variable `cdlatex-simplify-sub-super-scripts').
  4123. * Pressing the backquote ``' followed by a character inserts math
  4124. macros, also outside LaTeX fragments. If you wait more than 1.5
  4125. seconds after the backquote, a help window will pop up.
  4126. * Pressing the normal quote `'' followed by another character
  4127. modifies the symbol before point with an accent or a font. If you
  4128. wait more than 1.5 seconds after the backquote, a help window will
  4129. pop up. Character modification will work only inside LaTeX
  4130. fragments, outside the quote is normal.
  4131. ---------- Footnotes ----------
  4132. (1) Org-mode has a method to test if the cursor is inside such a
  4133. fragment, see the documentation of the function
  4134. `org-inside-LaTeX-fragment-p'.
  4135. 
  4136. File: org, Node: Exporting, Next: Publishing, Prev: Embedded LaTeX, Up: Top
  4137. 12 Exporting
  4138. ************
  4139. Org-mode documents can be exported into a variety of other formats. For
  4140. printing and sharing of notes, ASCII export produces a readable and
  4141. simple version of an Org-mode file. HTML export allows you to publish a
  4142. notes file on the web, while the XOXO format provides a solid base for
  4143. exchange with a broad range of other applications. LaTeX export lets
  4144. you use Org-mode and its structured editing functions to easily create
  4145. LaTeX files. To incorporate entries with associated times like
  4146. deadlines or appointments into a desktop calendar program like iCal,
  4147. Org-mode can also produce extracts in the iCalendar format. Currently
  4148. Org-mode only supports export, not import of these different formats.
  4149. When exporting, Org-mode uses special conventions to enrich the
  4150. output produced. *Note Text interpretation::, for more details.
  4151. `C-c C-e'
  4152. Dispatcher for export and publishing commands. Displays a
  4153. help-window listing the additional key(s) needed to launch an
  4154. export or publishing command.
  4155. * Menu:
  4156. * ASCII export:: Exporting to plain ASCII
  4157. * HTML export:: Exporting to HTML
  4158. * LaTeX export:: Exporting to LaTeX
  4159. * XOXO export:: Exporting to XOXO
  4160. * iCalendar export:: Exporting in iCalendar format
  4161. * Text interpretation:: How the exporter looks at the file
  4162. 
  4163. File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
  4164. 12.1 ASCII export
  4165. =================
  4166. ASCII export produces a simple and very readable version of an Org-mode
  4167. file.
  4168. `C-c C-e a'
  4169. Export as ASCII file. For an org file `myfile.org', the ASCII file
  4170. will be `myfile.txt'. The file will be overwritten without
  4171. warning. If there is an active region, only the region will be
  4172. exported. If the selected region is a single tree, the tree head
  4173. will become the document title. If the tree head entry has or
  4174. inherits an EXPORT_FILE_NAME property, that name will be used for
  4175. the export.
  4176. `C-c C-e v a'
  4177. Export only the visible part of the document.
  4178. In the exported version, the first 3 outline levels will become
  4179. headlines, defining a general document structure. Additional levels
  4180. will be exported as itemized lists. If you want that transition to
  4181. occur at a different level, specify it with a prefix argument. For
  4182. example,
  4183. C-1 C-c C-e a
  4184. creates only top level headlines and does the rest as items. When
  4185. headlines are converted to items, the indentation of the text following
  4186. the headline is changed to fit nicely under the item. This is done with
  4187. the assumption that the first bodyline indicates the base indentation of
  4188. the body text. Any indentation larger than this is adjusted to preserve
  4189. the layout relative to the first line. Should there be lines with less
  4190. indentation than the first, these are left alone.
  4191. 
  4192. File: org, Node: HTML export, Next: LaTeX export, Prev: ASCII export, Up: Exporting
  4193. 12.2 HTML export
  4194. ================
  4195. Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
  4196. HTML formatting, in ways similar to John Grubers _markdown_ language,
  4197. but with additional support for tables.
  4198. * Menu:
  4199. * HTML Export commands:: How to invoke LaTeX export
  4200. * Quoting HTML tags:: Using direct HTML in Org-mode
  4201. * Links:: Transformation of links for HTML
  4202. * Images:: How to include images
  4203. * CSS support:: Changing the appearence of the output
  4204. 
  4205. File: org, Node: HTML Export commands, Next: Quoting HTML tags, Prev: HTML export, Up: HTML export
  4206. 12.2.1 HTML export commands
  4207. ---------------------------
  4208. `C-c C-e h'
  4209. Export as HTML file `myfile.html'. For an org file `myfile.org',
  4210. the ASCII file will be `myfile.html'. The file will be
  4211. overwritten without warning. If there is an active region, only
  4212. the region will be exported. If the selected region is a single
  4213. tree, the tree head will become the document title. If the tree
  4214. head entry has or inherits an EXPORT_FILE_NAME property, that name
  4215. will be used for the export.
  4216. `C-c C-e b'
  4217. Export as HTML file and immediately open it with a browser.
  4218. `C-c C-e H'
  4219. Export to a temporary buffer, do not create a file.
  4220. `C-c C-e H'
  4221. Export the active region to a temporary buffer. With prefix arg,
  4222. do not produce file header and foot, but just the plain HTML
  4223. section for the region. This is good for cut-and-paste operations.
  4224. `C-c C-e v h'
  4225. `C-c C-e v b'
  4226. `C-c C-e v H'
  4227. `C-c C-e v R'
  4228. Export only the visible part of the document.
  4229. `M-x org-export-region-as-html'
  4230. Convert the region to HTML under the assumption that it was
  4231. org-mode syntax before. This is a global command that can be
  4232. invoked in any buffer.
  4233. `M-x org-replace-region-by-HTML'
  4234. Replace the active region (assumed to be in Org-mode syntax) by
  4235. HTML code.
  4236. In the exported version, the first 3 outline levels will become
  4237. headlines, defining a general document structure. Additional levels
  4238. will be exported as itemized lists. If you want that transition to
  4239. occur at a different level, specify it with a prefix argument. For
  4240. example,
  4241. C-2 C-c C-e b
  4242. creates two levels of headings and does the rest as items.
  4243. 
  4244. File: org, Node: Quoting HTML tags, Next: Links, Prev: HTML Export commands, Up: HTML export
  4245. 12.2.2 Quoting HTML tags
  4246. ------------------------
  4247. Plain `<' and `>' are always transformed to `&lt;' and `&gt;' in HTML
  4248. export. If you want to include simple HTML tags which should be
  4249. interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
  4250. Note that this really works only for simple tags. For more extensive
  4251. HTML that should be copied verbatim to the exported file use either
  4252. #+HTML: Literal HTML code for export
  4253. or
  4254. #+BEGIN_HTML
  4255. All lines between these markers are exported literally
  4256. #+END_HTML
  4257. 
  4258. File: org, Node: Links, Next: Images, Prev: Quoting HTML tags, Up: HTML export
  4259. 12.2.3 Links
  4260. ------------
  4261. Internal links (*note Internal links::) will continue to work in HTML
  4262. files only if they match a dedicated `<<target>>'. Automatic links
  4263. created by radio targets (*note Radio targets::) will also work in the
  4264. HTML file. Links to external files will still work if the HTML file is
  4265. in the same directory as the Org-mode file. Links to other `.org'
  4266. files will be translated into HTML links under the assumption that an
  4267. HTML version also exists of the linked file. For information related to
  4268. linking files while publishing them to a publishing directory see *Note
  4269. Publishing links::.
  4270. 
  4271. File: org, Node: Images, Next: CSS support, Prev: Links, Up: HTML export
  4272. 12.2.4 Images
  4273. -------------
  4274. HTML export can inline images given as links in the Org-mode file, and
  4275. it can make an image the clickable part of a link. By default(1),
  4276. images are inlined if a link does not have a description. So
  4277. `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
  4278. image]]' will just produce a link `the image' that points to the image.
  4279. If the description part itself is a `file:' link or a `http:' URL
  4280. pointing to an image, this image will be inlined and activated so that
  4281. clicking on the image will activate the link. For example, to include
  4282. a thumbnail that will link to a high resolution version of the image,
  4283. you could use:
  4284. [[file:highres.jpg][file:thumb.jpg]]
  4285. and you could use `http' addresses just as well.
  4286. ---------- Footnotes ----------
  4287. (1) but see the variable `org-export-html-inline-images'
  4288. 
  4289. File: org, Node: CSS support, Prev: Images, Up: HTML export
  4290. 12.2.5 CSS support
  4291. ------------------
  4292. You can also give style information for the exported file. The HTML
  4293. exporter assigns the following CSS classes to appropriate parts of the
  4294. document - your style specifications may change these:
  4295. .todo TODO keywords
  4296. .done the DONE keyword
  4297. .timestamp time stamp
  4298. .timestamp-kwd keyword associated with a time stamp, like SCHEDULED
  4299. .tag tag in a headline
  4300. .target target for links
  4301. The default style specification can be configured through the option
  4302. `org-export-html-style'. If you want to use a file-local style, you
  4303. may use file variables, best wrapped into a COMMENT section at the end
  4304. of the outline tree. For example(1):
  4305. * COMMENT html style specifications
  4306. # Local Variables:
  4307. # org-export-html-style: " <style type=\"text/css\">
  4308. # p {font-weight: normal; color: gray; }
  4309. # h1 {color: black; }
  4310. # </style>"
  4311. # End:
  4312. Remember to execute `M-x normal-mode' after changing this to make
  4313. the new style visible to Emacs. This command restarts org-mode for the
  4314. current buffer and forces Emacs to re-evaluate the local variables
  4315. section in the buffer.
  4316. ---------- Footnotes ----------
  4317. (1) Under Emacs 21, the continuation lines for a variable value
  4318. should have no `#' at the start of the line.
  4319. 
  4320. File: org, Node: LaTeX export, Next: XOXO export, Prev: HTML export, Up: Exporting
  4321. 12.3 LaTeX export
  4322. =================
  4323. Org-mode contains a LaTeX exporter written by Bastien Guerry.
  4324. * Menu:
  4325. * LaTeX export commands:: How to invoke LaTeX export
  4326. * Quoting LaTeX code:: Incorporating literal LaTeX code
  4327. 
  4328. File: org, Node: LaTeX export commands, Next: Quoting LaTeX code, Prev: LaTeX export, Up: LaTeX export
  4329. 12.3.1 LaTeX export commands
  4330. ----------------------------
  4331. `C-c C-e l'
  4332. Export as LaTeX file `myfile.tex'.
  4333. `C-c C-e L'
  4334. Export to a temporary buffer, do not create a file.
  4335. `C-c C-e v l'
  4336. `C-c C-e v L'
  4337. Export only the visible part of the document.
  4338. `M-x org-export-region-as-latex'
  4339. Convert the region to LaTeX under the assumption that it was
  4340. org-mode syntax before. This is a global command that can be
  4341. invoked in any buffer.
  4342. `M-x org-replace-region-by-latex'
  4343. Replace the active region (assumed to be in Org-mode syntax) by
  4344. LaTeX code.
  4345. In the exported version, the first 3 outline levels will become
  4346. headlines, defining a general document structure. Additional levels
  4347. will be exported as description lists. The exporter can ignore them or
  4348. convert them to a custom string depending on `org-latex-low-levels'.
  4349. If you want that transition to occur at a different level, specify it
  4350. with a prefix argument. For example,
  4351. C-2 C-c C-e l
  4352. creates two levels of headings and does the rest as items.
  4353. 
  4354. File: org, Node: Quoting LaTeX code, Prev: LaTeX export commands, Up: LaTeX export
  4355. 12.3.2 Quoting LaTeX code
  4356. -------------------------
  4357. Embedded LaTeX as described in *Note Embedded LaTeX:: will be correctly
  4358. inserted into the LaTeX file. Forthermore, you can add special code
  4359. that should only be present in LaTeX export with the following
  4360. constructs:
  4361. #+LaTeX: Literal LaTeX code for export
  4362. or
  4363. #+BEGIN_LaTeX
  4364. All lines between these markers are exported literally
  4365. #+END_LaTeX
  4366. 
  4367. File: org, Node: XOXO export, Next: iCalendar export, Prev: LaTeX export, Up: Exporting
  4368. 12.4 XOXO export
  4369. ================
  4370. Org-mode contains an exporter that produces XOXO-style output.
  4371. Currently, this exporter only handles the general outline structure and
  4372. does not interpret any additional Org-mode features.
  4373. `C-c C-e x'
  4374. Export as XOXO file `myfile.html'.
  4375. `C-c C-e v x'
  4376. Export only the visible part of the document.
  4377. 
  4378. File: org, Node: iCalendar export, Next: Text interpretation, Prev: XOXO export, Up: Exporting
  4379. 12.5 iCalendar export
  4380. =====================
  4381. Some people like to use Org-mode for keeping track of projects, but
  4382. still prefer a standard calendar application for anniversaries and
  4383. appointments. In this case it can be useful to have deadlines and
  4384. other time-stamped items in Org-mode files show up in the calendar
  4385. application. Org-mode can export calendar information in the standard
  4386. iCalendar format. If you also want to have TODO entries included in the
  4387. export, configure the variable `org-icalendar-include-todo'.
  4388. `C-c C-e i'
  4389. Create iCalendar entries for the current file and store them in
  4390. the same directory, using a file extension `.ics'.
  4391. `C-c C-e I'
  4392. Like `C-c C-e i', but do this for all files in `org-agenda-files'.
  4393. For each of these files, a separate iCalendar file will be
  4394. written.
  4395. `C-c C-e c'
  4396. Create a single large iCalendar file from all files in
  4397. `org-agenda-files' and write it to the file given by
  4398. `org-combined-agenda-icalendar-file'.
  4399. The export will honor SUMMARY, DESCRIPTION and LOCATION properties if
  4400. the selected entries have them. If not, the summary will be derived
  4401. from the headline, and the description from the body (limited to
  4402. `org-icalendar-include-body' characters).
  4403. How this calendar is best read and updated, depends on the
  4404. application you are using. The FAQ covers this issue.
  4405. 
  4406. File: org, Node: Text interpretation, Prev: iCalendar export, Up: Exporting
  4407. 12.6 Text interpretation by the exporter
  4408. ========================================
  4409. The exporter backends interpret additional structure in the Org-mode
  4410. file in order to produce better output.
  4411. * Menu:
  4412. * Comment lines:: Some lines will not be exported
  4413. * Initial text:: Text before the first headline
  4414. * Footnotes:: Numbers like [1]
  4415. * Enhancing text:: Subscripts, symbols and more
  4416. * Export options:: How to influence the export settings
  4417. 
  4418. File: org, Node: Comment lines, Next: Initial text, Prev: Text interpretation, Up: Text interpretation
  4419. 12.6.1 Comment lines
  4420. --------------------
  4421. Lines starting with `#' in column zero are treated as comments and will
  4422. never be exported. Also entire subtrees starting with the word
  4423. `COMMENT' will never be exported.
  4424. `C-c ;'
  4425. Toggle the COMMENT keyword at the beginning of an entry.
  4426. 
  4427. File: org, Node: Initial text, Next: Footnotes, Prev: Comment lines, Up: Text interpretation
  4428. 12.6.2 Text before the first headline
  4429. -------------------------------------
  4430. Org-mode normally ignores any text before the first headline when
  4431. exporting, leaving this region for internal links to speed up navigation
  4432. etc. However, in publishing-oriented files, you might want to have some
  4433. text before the first headline, like a small introduction, special HTML
  4434. code with a navigation bar, etc. You can ask to have this part of the
  4435. file exported as well by setting the variable
  4436. `org-export-skip-text-before-1st-heading' to `nil'. On a per-file
  4437. basis, you can get the same effect with
  4438. #+OPTIONS: skip:nil
  4439. The text before the first headline will be fully processed (*note
  4440. Enhancing text::), and the first non-comment line becomes the title of
  4441. the exported document. If you need to include literal HTML, use the
  4442. special constructs described in *Note Quoting HTML tags::. The table
  4443. of contents is normally inserted directly before the first headline of
  4444. the file. If you would like to get it to a different location, insert
  4445. the string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
  4446. location.
  4447. Finally, if you want to use the space before the first headline for
  4448. internal purposes, but _still_ want to place something before the first
  4449. headline when exporting the file, you can use the `#+TEXT' construct:
  4450. #+OPTIONS: skip:t
  4451. #+TEXT: This text will go before the *first* headline.
  4452. #+TEXT: We place the table of contents here:
  4453. #+TEXT: [TABLE-OF-CONTENTS]
  4454. #+TEXT: This goes between the table of contents and the first headline
  4455. 
  4456. File: org, Node: Footnotes, Next: Enhancing text, Prev: Initial text, Up: Text interpretation
  4457. 12.6.3 Footnotes
  4458. ----------------
  4459. Numbers in square brackets are treated as footnotes, so that you can use
  4460. the Emacs package `footnote.el' to create footnotes. For example:
  4461. The org-mode homepage[1] clearly needs help from
  4462. a good web designer.
  4463. [1] The link is: http://orgmode.org
  4464. Note that the `footnote' package uses `C-c !' to invoke its commands.
  4465. This binding conflicts with the org-mode command for inserting inactive
  4466. time stamps. You could use the variable `footnote-prefix' to switch
  4467. footnotes commands to another key. Or, if you are too used to this
  4468. binding, you could use `org-replace-disputed-keys' and
  4469. `org-disputed-keys' to change the settings in Org-mode.
  4470. 
  4471. File: org, Node: Enhancing text, Next: Export options, Prev: Footnotes, Up: Text interpretation
  4472. 12.6.4 Enhancing text for export
  4473. --------------------------------
  4474. Some of the export backends of Org-mode allow for sophisticated text
  4475. formatting, this is true in particular for the HTML and LaTeX backends.
  4476. Org-mode has a number of typing conventions that allow to produce a
  4477. richly formatted output.
  4478. * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
  4479. enumerator will be recognized and transformed if the backend
  4480. supports lists. See *Note Plain lists::.
  4481. * You can make words *bold*, /italic/, _underlined_, `=code=', and
  4482. even `+strikethrough+'(1).
  4483. * A line consisting of only dashes, and at least 5 of them, will be
  4484. exported as a horizontal line (`<hr/>' in HTML).
  4485. * Many TeX macros and entire LaTeX fragments are converted into HTML
  4486. entities or images (*note Embedded LaTeX::).
  4487. * Tables are transformed into native tables under the exporter, if
  4488. the export backend supports this. Data fields before the first
  4489. horizontal separator line will be formatted as table header fields.
  4490. * If a headline starts with the word `QUOTE', the text below the
  4491. headline will be typeset as fixed-width, to allow quoting of
  4492. computer codes etc. Lines starting with `:' are also typeset in
  4493. fixed-width font.
  4494. `C-c :'
  4495. Toggle fixed-width for entry (QUOTE) or region, see below.
  4496. * A double backslash _at the end of a line_ enforces a line break at
  4497. this position.
  4498. If these conversions conflict with your habits of typing ASCII text,
  4499. they can all be turned off with corresponding variables. See the
  4500. customization group `org-export-general', and the following section
  4501. which explains how to set export options with special lines in a buffer.
  4502. ---------- Footnotes ----------
  4503. (1) but remember that strikethrough is typographically evil and
  4504. should never be used.
  4505. 
  4506. File: org, Node: Export options, Prev: Enhancing text, Up: Text interpretation
  4507. 12.6.5 Export options
  4508. ---------------------
  4509. The exporter recognizes special lines in the buffer which provide
  4510. additional information. These lines may be put anywhere in the file.
  4511. The whole set of lines can be inserted into the buffer with `C-c C-e
  4512. t'. For individual lines, a good way to make sure the keyword is
  4513. correct is to type `#+' and then use `M-<TAB>' completion (*note
  4514. Completion::).
  4515. `C-c C-e t'
  4516. Insert template with export options, see example below.
  4517. #+TITLE: the title to be shown (default is the buffer name)
  4518. #+AUTHOR: the author (default taken from `user-full-name')
  4519. #+DATE: A date, fixed, of a format string for `format-time-string'
  4520. #+EMAIL: his/her email address (default from `user-mail-address')
  4521. #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
  4522. #+TEXT: Some descriptive text to be inserted at the beginning.
  4523. #+TEXT: Several lines may be given.
  4524. #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t ...
  4525. The OPTIONS line is a compact form to specify export settings. Here
  4526. you can:
  4527. H: set the number of headline levels for export
  4528. num: turn on/off section-numbers
  4529. toc: turn on/off table of contents, or set level limit (integer)
  4530. \n: turn on/off linebreak-preservation
  4531. @: turn on/off quoted HTML tags
  4532. :: turn on/off fixed-width sections
  4533. |: turn on/off tables
  4534. ^: turn on/off TeX-like syntax for sub- and superscripts. If
  4535. you write "^:{}", `a_{b}' will be interpreted, but
  4536. the simple `a_b' will be left as it is.
  4537. f: turn on/off foototes like this[1].
  4538. *: turn on/off emphasized text (bold, italic, underlined)
  4539. TeX: turn on/off simple TeX macros in plain text
  4540. LaTeX: turn on/off LaTeX fragments
  4541. skip: turn on/off skipping the text before the first heading
  4542. author: turn on/off inclusion of author name/email into exported file
  4543. timestamp: turn on/off inclusion creation time into exported file
  4544. These options take effect in both the HTML and LaTeX export, except
  4545. for `TeX' and `LaTeX', which are respectively `t' and `nil' for the
  4546. LaTeX export.
  4547. 
  4548. File: org, Node: Publishing, Next: Miscellaneous, Prev: Exporting, Up: Top
  4549. 13 Publishing
  4550. *************
  4551. Org-mode includes(1) a publishing management system that allows you to
  4552. configure automatic HTML conversion of _projects_ composed of
  4553. interlinked org files. This system is called _org-publish_. You can
  4554. also configure org-publish to automatically upload your exported HTML
  4555. pages and related attachments, such as images and source code files, to
  4556. a web server. Org-publish turns org-mode into a web-site authoring tool.
  4557. You can also use Org-publish to convert files into LaTeX, or even
  4558. combine HTML and LaTeX conversion so that files are available in both
  4559. formats on the server(2).
  4560. Org-publish has been contributed to Org-mode by David O'Toole.
  4561. * Menu:
  4562. * Configuration:: Defining projects
  4563. * Sample configuration:: Example projects
  4564. * Triggering publication:: Publication commands
  4565. ---------- Footnotes ----------
  4566. (1) `org-publish.el' is not distributed with Emacs 21, if you are
  4567. still using Emacs 21, you need you need to download this file
  4568. separately.
  4569. (2) Since LaTeX files on a server are not that helpful, you surely
  4570. want to perform further conversion on them - e.g. convert them to `PDF'
  4571. format.
  4572. 
  4573. File: org, Node: Configuration, Next: Sample configuration, Prev: Publishing, Up: Publishing
  4574. 13.1 Configuration
  4575. ==================
  4576. Publishing needs significant configuration to specify files, destination
  4577. and many other properties of a project.
  4578. * Menu:
  4579. * Project alist:: The central configuration variable
  4580. * Sources and destinations:: From here to there
  4581. * Selecting files:: What files are part of the project?
  4582. * Publishing action:: Setting the function doing the publishing
  4583. * Publishing options:: Tweaking HTML export
  4584. * Publishing links:: Which links keep working after publishing?
  4585. * Project page index:: Publishing a list of project files
  4586. 
  4587. File: org, Node: Project alist, Next: Sources and destinations, Prev: Configuration, Up: Configuration
  4588. 13.1.1 The variable `org-publish-project-alist'
  4589. -----------------------------------------------
  4590. Org-publish is configured almost entirely through setting the value of
  4591. one variable, called `org-publish-project-alist'. Each element of the
  4592. list configures one project, and may be in one of the two following
  4593. forms:
  4594. ("project-name" :property value :property value ...)
  4595. or
  4596. ("project-name" :components ("project-name" "project-name" ...))
  4597. In both cases, projects are configured by specifying property values.
  4598. A project defines the set of files that will be published, as well as
  4599. the publishing configuration to use when publishing those files. When
  4600. a project takes the second form listed above, the individual members of
  4601. the "components" property are taken to be components of the project,
  4602. which group together files requiring different publishing options. When
  4603. you publish such a "meta-project" all the components will also publish.
  4604. 
  4605. File: org, Node: Sources and destinations, Next: Selecting files, Prev: Project alist, Up: Configuration
  4606. 13.1.2 Sources and destinations for files
  4607. -----------------------------------------
  4608. Most properties are optional, but some should always be set. In
  4609. particular, org-publish needs to know where to look for source files,
  4610. and where to put published files.
  4611. `:base-directory' Directory containing publishing source files
  4612. `:publishing-directory'Directory (possibly remote) where output files
  4613. will be published.
  4614. `:preparation-function'Function called before starting publishing
  4615. process, for example to run `make' for updating
  4616. files to be published.
  4617. 
  4618. File: org, Node: Selecting files, Next: Publishing action, Prev: Sources and destinations, Up: Configuration
  4619. 13.1.3 Selecting files
  4620. ----------------------
  4621. By default, all files with extension `.org' in the base directory are
  4622. considered part of the project. This can be modified by setting the
  4623. properties
  4624. `:base-extension' Extension (without the dot!) of source files. This
  4625. actually is a regular expression.
  4626. `:exclude' Regular expression to match file names that should
  4627. not be published, even though they have been selected
  4628. on the basis of their extension.
  4629. `:include' List of files to be included regardless of
  4630. `:base-extension' and `:exclude'.
  4631. 
  4632. File: org, Node: Publishing action, Next: Publishing options, Prev: Selecting files, Up: Configuration
  4633. 13.1.4 Publishing Action
  4634. ------------------------
  4635. Publishing means that a file is copied to the destination directory and
  4636. possibly transformed in the process. The default transformation is to
  4637. export Org-mode files as HTML files, and this is done by the function
  4638. `org-publish-org-to-html' which calls the HTML exporter (*note HTML
  4639. export::). But you also can publish your files in LaTeX by using the
  4640. function `org-publish-org-to-latex' instead. Other files like images
  4641. only need to be copied to the publishing destination. For non-Org-mode
  4642. files, you need to specify the publishing function.
  4643. `:publishing-function' Function executing the publication of a file.
  4644. This may also be a list of functions, which will
  4645. all be called in turn.
  4646. The function must accept two arguments: a property list containing at
  4647. least a `:publishing-directory' property, and the name of the file to
  4648. be published. It should take the specified file, make the necessary
  4649. transformation (if any) and place the result into the destination
  4650. folder. You can write your own publishing function, but `org-publish'
  4651. provides one for attachments (files that only need to be copied):
  4652. `org-publish-attachment'.
  4653. 
  4654. File: org, Node: Publishing options, Next: Publishing links, Prev: Publishing action, Up: Configuration
  4655. 13.1.5 Options for the HTML/LaTeX exporters
  4656. -------------------------------------------
  4657. The property list can be used to set many export options for the HTML
  4658. and LaTeX exporters. In most cases, these properties correspond to user
  4659. variables in Org-mode. The table below lists these properties along
  4660. with the variable they belong to. See the documentation string for the
  4661. respective variable for details.
  4662. `:language' `org-export-default-language'
  4663. `:headline-levels' `org-export-headline-levels'
  4664. `:section-numbers' `org-export-with-section-numbers'
  4665. `:table-of-contents' `org-export-with-toc'
  4666. `:archived-trees' `org-export-with-archived-trees'
  4667. `:emphasize' `org-export-with-emphasize'
  4668. `:sub-superscript' `org-export-with-sub-superscripts'
  4669. `:TeX-macros' `org-export-with-TeX-macros'
  4670. `:LaTeX-fragments' `org-export-with-LaTeX-fragments'
  4671. `:fixed-width' `org-export-with-fixed-width'
  4672. `:timestamps' `org-export-with-timestamps'
  4673. .
  4674. `:tags' `org-export-with-tags'
  4675. .
  4676. `:tables' `org-export-with-tables'
  4677. `:table-auto-headline' `org-export-highlight-first-table-line'
  4678. `:style' `org-export-html-style'
  4679. `:convert-org-links' `org-export-html-link-org-files-as-html'
  4680. `:inline-images' `org-export-html-inline-images'
  4681. `:expand-quoted-html' `org-export-html-expand'
  4682. `:timestamp' `org-export-html-with-timestamp'
  4683. `:publishing-directory'`org-export-publishing-directory'
  4684. `:preamble' `org-export-html-preamble'
  4685. `:postamble' `org-export-html-postamble'
  4686. `:auto-preamble' `org-export-html-auto-preamble'
  4687. `:auto-postamble' `org-export-html-auto-postamble'
  4688. `:author' `user-full-name'
  4689. `:email' `user-mail-address'
  4690. Most of the `org-export-with-*' variables have the same effect in
  4691. both HTML and LaTeX exporters, except for `:TeX-macros' and
  4692. `:LaTeX-fragments', respectively `nil' and `t' in the LaTeX export.
  4693. When a property is given a value in org-publish-project-alist, its
  4694. setting overrides the value of the corresponding user variable (if any)
  4695. during publishing. Options set within a file (*note Export options::),
  4696. however, override everything.
  4697. 
  4698. File: org, Node: Publishing links, Next: Project page index, Prev: Publishing options, Up: Configuration
  4699. 13.1.6 Links between published files
  4700. ------------------------------------
  4701. To create a link from one Org-mode file to another, you would use
  4702. something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
  4703. (*note Hyperlinks::). Upon publishing this link becomes a link to
  4704. `foo.html'. In this way, you can interlink the pages of your "org web"
  4705. project and the links will work as expected when you publish them to
  4706. HTML.
  4707. You may also link to related files, such as images. Provided you are
  4708. careful with relative pathnames, and provided you have also configured
  4709. org-publish to upload the related files, these links will work too.
  4710. *Note Complex example:: for an example of this usage.
  4711. Sometime an Org-mode file to be published may contain links that are
  4712. only valid in your production environment, but not in the publishing
  4713. location. In this case, use the property
  4714. `:link-validation-function' Function to validate links
  4715. to define a function for checking link validity. This function must
  4716. accept two arguments, the file name and a directory relative to which
  4717. the file name is interpreted in the production environment. If this
  4718. function returns `nil', then the HTML generator will only insert a
  4719. description into the HTML file, but no link. One option for this
  4720. function is `org-publish-validate-link' which checks if the given file
  4721. is part of any project in `org-publish-project-alist'.
  4722. 
  4723. File: org, Node: Project page index, Prev: Publishing links, Up: Configuration
  4724. 13.1.7 Project page index
  4725. -------------------------
  4726. The following properties may be used to control publishing of an index
  4727. of files or summary page for a given project.
  4728. `:auto-index' When non-nil, publish an index during
  4729. org-publish-current-project or org-publish-all.
  4730. `:index-filename' Filename for output of index. Defaults to `index.org'
  4731. (which becomes `index.html').
  4732. `:index-title' Title of index page. Defaults to name of file.
  4733. `:index-function' Plugin function to use for generation of index.
  4734. Defaults to `org-publish-org-index', which generates
  4735. a plain list of links to all files in the project.
  4736. 
  4737. File: org, Node: Sample configuration, Next: Triggering publication, Prev: Configuration, Up: Publishing
  4738. 13.2 Sample configuration
  4739. =========================
  4740. Below we provide two example configurations. The first one is a simple
  4741. project publishing only a set of Org-mode files. The second example is
  4742. more complex, with a multi-component project.
  4743. * Menu:
  4744. * Simple example:: One-component publishing
  4745. * Complex example:: A multi-component publishing example
  4746. 
  4747. File: org, Node: Simple example, Next: Complex example, Prev: Sample configuration, Up: Sample configuration
  4748. 13.2.1 Example: simple publishing configuration
  4749. -----------------------------------------------
  4750. This example publishes a set of Org-mode files to the `public_html'
  4751. directory on the local machine.
  4752. (setq org-publish-project-alist
  4753. '(("org"
  4754. :base-directory "~/org/"
  4755. :publishing-directory "~/public_html"
  4756. :section-numbers nil
  4757. :table-of-contents nil
  4758. :style "<link rel=stylesheet
  4759. href=\"../other/mystyle.css\"
  4760. type=\"text/css\">")))
  4761. 
  4762. File: org, Node: Complex example, Prev: Simple example, Up: Sample configuration
  4763. 13.2.2 Example: complex publishing configuration
  4764. ------------------------------------------------
  4765. This more complicated example publishes an entire website, including
  4766. org files converted to HTML, image files, emacs lisp source code, and
  4767. stylesheets. The publishing-directory is remote and private files are
  4768. excluded.
  4769. To ensure that links are preserved, care should be taken to replicate
  4770. your directory structure on the web server, and to use relative file
  4771. paths. For example, if your org files are kept in `~/org' and your
  4772. publishable images in `~/images', you'd link to an image with
  4773. file:../images/myimage.png
  4774. On the web server, the relative path to the image should be the
  4775. same. You can accomplish this by setting up an "images" folder in the
  4776. right place on the webserver, and publishing images to it.
  4777. (setq org-publish-project-alist
  4778. '(("orgfiles"
  4779. :base-directory "~/org/"
  4780. :base-extension "org"
  4781. :publishing-directory "/ssh:user@host:~/html/notebook/"
  4782. :publishing-function org-publish-org-to-html
  4783. :exclude "PrivatePage.org" ;; regexp
  4784. :headline-levels 3
  4785. :section-numbers nil
  4786. :table-of-contents nil
  4787. :style "<link rel=stylesheet
  4788. href=\"../other/mystyle.css\" type=\"text/css\">"
  4789. :auto-preamble t
  4790. :auto-postamble nil)
  4791. ("images"
  4792. :base-directory "~/images/"
  4793. :base-extension "jpg\\|gif\\|png"
  4794. :publishing-directory "/ssh:user@host:~/html/images/"
  4795. :publishing-function org-publish-attachment)
  4796. ("other"
  4797. :base-directory "~/other/"
  4798. :base-extension "css\\|el"
  4799. :publishing-directory "/ssh:user@host:~/html/other/"
  4800. :publishing-function org-publish-attachment)
  4801. ("website" :components ("orgfiles" "images" "other"))))
  4802. 
  4803. File: org, Node: Triggering publication, Prev: Sample configuration, Up: Publishing
  4804. 13.3 Triggering publication
  4805. ===========================
  4806. Once org-publish is properly configured, you can publish with the
  4807. following functions:
  4808. `C-c C-e C'
  4809. Prompt for a specific project and publish all files that belong to
  4810. it.
  4811. `C-c C-e P'
  4812. Publish the project containing the current file.
  4813. `C-c C-e F'
  4814. Publish only the current file.
  4815. `C-c C-e A'
  4816. Publish all projects.
  4817. Org uses timestamps to track when a file has changed. The above
  4818. functions normally only publish changed files. You can override this and
  4819. force publishing of all files by giving a prefix argument.
  4820. 
  4821. File: org, Node: Miscellaneous, Next: Extensions and Hacking, Prev: Publishing, Up: Top
  4822. 14 Miscellaneous
  4823. ****************
  4824. * Menu:
  4825. * Completion:: M-TAB knows what you need
  4826. * Customization:: Adapting Org-mode to your taste
  4827. * In-buffer settings:: Overview of the #+KEYWORDS
  4828. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  4829. * Clean view:: Getting rid of leading stars in the outline
  4830. * TTY keys:: Using Org-mode on a tty
  4831. * Interaction:: Other Emacs packages
  4832. * Bugs:: Things which do not work perfectly
  4833. 
  4834. File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
  4835. 14.1 Completion
  4836. ===============
  4837. Org-mode supports in-buffer completion. This type of completion does
  4838. not make use of the minibuffer. You simply type a few letters into the
  4839. buffer and use the key to complete text right there.
  4840. `M-<TAB>'
  4841. Complete word at point
  4842. * At the beginning of a headline, complete TODO keywords.
  4843. * After `\', complete TeX symbols supported by the exporter.
  4844. * After `*', complete headlines in the current buffer so that
  4845. they can be used in search links like `[[*find this
  4846. headline]]'.
  4847. * After `:' in a headline, complete tags. The list of tags is
  4848. taken from the variable `org-tag-alist' (possibly set through
  4849. the `#+TAGS' in-buffer option, *note Setting tags::), or it
  4850. is created dynamically from all tags used in the current
  4851. buffer.
  4852. * After `:' and not in a headline, complete property keys. The
  4853. list of keys is constructed dynamically from all keys used in
  4854. the current buffer.
  4855. * After `[', complete link abbreviations (*note Link
  4856. abbreviations::).
  4857. * After `#+', complete the special keywords like `TYP_TODO' or
  4858. `OPTIONS' which set file-specific options for Org-mode. When
  4859. the option keyword is already complete, pressing `M-<TAB>'
  4860. again will insert example settings for this keyword.
  4861. * In the line after `#+STARTUP: ', complete startup keywords,
  4862. i.e. valid keys for this line.
  4863. * Elsewhere, complete dictionary words using ispell.
  4864. 
  4865. File: org, Node: Customization, Next: In-buffer settings, Prev: Completion, Up: Miscellaneous
  4866. 14.2 Customization
  4867. ==================
  4868. There are more than 180 variables that can be used to customize
  4869. Org-mode. For the sake of compactness of the manual, I am not
  4870. describing the variables here. A structured overview of customization
  4871. variables is available with `M-x org-customize'. Or select `Browse Org
  4872. Group' from the `Org->Customization' menu. Many settings can also be
  4873. activated on a per-file basis, by putting special lines into the buffer
  4874. (*note In-buffer settings::).
  4875. 
  4876. File: org, Node: In-buffer settings, Next: The very busy C-c C-c key, Prev: Customization, Up: Miscellaneous
  4877. 14.3 Summary of in-buffer settings
  4878. ==================================
  4879. Org-mode uses special lines in the buffer to define settings on a
  4880. per-file basis. These lines start with a `#+' followed by a keyword, a
  4881. colon, and then individual words defining a setting. Several setting
  4882. words can be in the same line, but you can also have multiple lines for
  4883. the keyword. While these settings are described throughout the manual,
  4884. here is a summary. After changing any of those lines in the buffer,
  4885. press `C-c C-c' with the cursor still in the line to activate the
  4886. changes immediately. Otherwise they become effective only when the
  4887. file is visited again in a new Emacs session.
  4888. `#+ARCHIVE: %s_done::'
  4889. This line sets the archive location for the agenda file. It
  4890. applies for all subsequent lines until the next `#+ARCHIVE' line,
  4891. or the end of the file. The first such line also applies to any
  4892. entries before it. The corresponding variable is
  4893. `org-archive-location'.
  4894. `#+CATEGORY:'
  4895. This line sets the category for the agenda file. The category
  4896. applies for all subsequent lines until the next `#+CATEGORY' line,
  4897. or the end of the file. The first such line also applies to any
  4898. entries before it.
  4899. `#+COLUMNS: %25ITEM .....'
  4900. Set the default format for columns view. This format applies when
  4901. columns view is invoked in location where no COLUMNS property
  4902. applies.
  4903. `#+CONSTANTS: name1=value1 ...'
  4904. Set file-local values for constants to be used in table formulas.
  4905. This line set the local variable
  4906. `org-table-formula-constants-local'. The global version of theis
  4907. variable is `org-table-formula-constants'. corresponding
  4908. `#+LINK: linkword replace'
  4909. These lines (several are allowed) specify link abbreviations.
  4910. *Note Link abbreviations::. The corresponding variable is
  4911. `org-link-abbrev-alist'.
  4912. `#+PRIORITIES: highest lowest default'
  4913. This line sets the limits and the default for the priorities. All
  4914. three must be either letters A-Z or numbers 0-9. The highest
  4915. priority must have a lower ASCII number that the lowest priority.
  4916. `#+PROPERTY: Property_Name Value'
  4917. This line sets a default inheritance value for entries in the
  4918. current buffer, most useful for specifying the allowed values of a
  4919. property.
  4920. `#+STARTUP:'
  4921. This line sets options to be used at startup of Org-mode, when an
  4922. Org-mode file is being visited. The first set of options deals
  4923. with the initial visibility of the outline tree. The
  4924. corresponding variable for global default settings is
  4925. `org-startup-folded', with a default value `t', which means
  4926. `overview'.
  4927. overview top-level headlines only
  4928. content all headlines
  4929. showall no folding at all, show everything
  4930. Then there are options for aligning tables upon visiting a file.
  4931. This is useful in files containing narrowed table columns. The
  4932. corresponding variable is `org-startup-align-all-tables', with a
  4933. default value `nil'.
  4934. align align all tables
  4935. noalign don't align tables on startup
  4936. Logging TODO state changes and clock intervals (variables
  4937. `org-log-done' and `org-log-repeat') can be configured using these
  4938. options.
  4939. logging record a timestamp when an item is marked DONE
  4940. nologging don't record when items are marked DONE
  4941. lognotedone record timestamp and a note when DONE
  4942. lognotestate record timestamp and a note when TODO state changes
  4943. logrepeat record a note when re-instating a repeating item
  4944. nologrepeat do not record when re-instating repeating item
  4945. lognoteclock-out record timestamp and a note when clocking out
  4946. Here are the options for hiding leading stars in outline headings.
  4947. The corresponding variables are `org-hide-leading-stars' and
  4948. `org-odd-levels-only', both with a default setting `nil' (meaning
  4949. `showstars' and `oddeven').
  4950. hidestars make all but one of the stars starting a headline invisible.
  4951. showstars show all stars starting a headline
  4952. odd allow only odd outline levels (1,3,...)
  4953. oddeven allow all outline levels
  4954. To turn on custom format overlays over time stamps (variables
  4955. `org-put-time-stamp-overlays' and
  4956. `org-time-stamp-overlay-formats'), use
  4957. customtime overlay custom time format
  4958. The following options influence the table spreadsheet (variable
  4959. `constants-unit-system').
  4960. constcgs `constants.el' should use the c-g-s unit system
  4961. constSI `constants.el' should use the SI unit system
  4962. `#+TAGS: TAG1(c1) TAG2(c2)'
  4963. These lines (several such lines are allowed) specify the legal
  4964. tags in this file, and (potentially) the corresponding _fast tag
  4965. selection_ keys. The corresponding variable is `org-tag-alist'.
  4966. `#+TBLFM:'
  4967. This line contains the formulas for the table directly above the
  4968. line.
  4969. `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS, #+DATE:'
  4970. These lines provide settings for exporting files. For more
  4971. details see *Note Export options::.
  4972. `#+SEQ_TODO: #+TYP_TODO:'
  4973. These lines set the TODO keywords and their interpretation in the
  4974. current file. The corresponding variables are `org-todo-keywords'
  4975. and `org-todo-interpretation'.
  4976. 
  4977. File: org, Node: The very busy C-c C-c key, Next: Clean view, Prev: In-buffer settings, Up: Miscellaneous
  4978. 14.4 The very busy C-c C-c key
  4979. ==============================
  4980. The key `C-c C-c' has many purposes in org-mode, which are all
  4981. mentioned scattered throughout this manual. One specific function of
  4982. this key is to add _tags_ to a headline (*note Tags::). In many other
  4983. circumstances it means something like _Hey Org-mode, look here and
  4984. update according to what you see here_. Here is a summary of what this
  4985. means in different contexts.
  4986. - If there are highlights in the buffer from the creation of a sparse
  4987. tree, or from clock display, remove these highlights.
  4988. - If the cursor is in one of the special `#+KEYWORD' lines, this
  4989. triggers scanning the buffer for these lines and updating the
  4990. information.
  4991. - If the cursor is inside a table, realign the table. This command
  4992. works even if the automatic table editor has been turned off.
  4993. - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
  4994. entire table.
  4995. - If the cursor is inside a table created by the `table.el' package,
  4996. activate that table.
  4997. - If the current buffer is a remember buffer, close the note and
  4998. file it. With a prefix argument, file it, without further
  4999. interaction, to the default location.
  5000. - If the cursor is on a `<<<target>>>', update radio targets and
  5001. corresponding links in this buffer.
  5002. - If the cursor is in a property line or at the start or end of a
  5003. property drawer, offer property commands.
  5004. - If the cursor is in a plain list item with a checkbox, toggle the
  5005. status of the checkbox.
  5006. - If the cursor is on a numbered item in a plain list, renumber the
  5007. ordered list.
  5008. - If the cursor is on the `#+BEGIN' line of a dynamical block, the
  5009. block is updated.
  5010. 
  5011. File: org, Node: Clean view, Next: TTY keys, Prev: The very busy C-c C-c key, Up: Miscellaneous
  5012. 14.5 A cleaner outline view
  5013. ===========================
  5014. Some people find it noisy and distracting that the Org-mode headlines
  5015. are starting with a potentially large number of stars. For example the
  5016. tree from *Note Headlines:::
  5017. * Top level headline
  5018. ** Second level
  5019. *** 3rd level
  5020. some text
  5021. *** 3rd level
  5022. more text
  5023. * Another top level headline
  5024. Unfortunately this is deeply ingrained into the code of Org-mode and
  5025. cannot be easily changed. You can, however, modify the display in such
  5026. a way that all leading stars become invisible and the outline more easy
  5027. to read. To do this, customize the variable `org-hide-leading-stars'
  5028. like this:
  5029. (setq org-hide-leading-stars t)
  5030. or change this on a per-file basis with one of the lines (anywhere in
  5031. the buffer)
  5032. #+STARTUP: showstars
  5033. #+STARTUP: hidestars
  5034. Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
  5035. modifications.
  5036. With stars hidden, the tree becomes:
  5037. * Top level headline
  5038. * Second level
  5039. * 3rd level
  5040. some text
  5041. * 3rd level
  5042. more text
  5043. * Another top level headline
  5044. Note that the leading stars are not truly replaced by whitespace, they
  5045. are only fontified with the face `org-hide' that uses the background
  5046. color as font color. If you are not using either white or black
  5047. background, you may have to customize this face to get the wanted
  5048. effect. Another possibility is to set this font such that the extra
  5049. stars are almost invisible, for example using the color `grey90' on a
  5050. white background.
  5051. Things become cleaner still if you skip all the even levels and use
  5052. only odd levels 1, 3, 5..., effectively adding two stars to go from one
  5053. outline level to the next:
  5054. * Top level headline
  5055. * Second level
  5056. * 3rd level
  5057. some text
  5058. * 3rd level
  5059. more text
  5060. * Another top level headline
  5061. In order to make the structure editing and export commands handle this
  5062. convention correctly, use
  5063. (setq org-odd-levels-only t)
  5064. or set this on a per-file basis with one of the following lines (don't
  5065. forget to press `C-c C-c' with the cursor in the startup line to
  5066. activate changes immediately).
  5067. #+STARTUP: odd
  5068. #+STARTUP: oddeven
  5069. You can convert an Org-mode file from single-star-per-level to the
  5070. double-star-per-level convention with `M-x org-convert-to-odd-levels
  5071. RET' in that file. The reverse operation is `M-x
  5072. org-convert-to-oddeven-levels'.
  5073. 
  5074. File: org, Node: TTY keys, Next: Interaction, Prev: Clean view, Up: Miscellaneous
  5075. 14.6 Using org-mode on a tty
  5076. ============================
  5077. Org-mode uses a number of keys that are not accessible on a tty. This
  5078. applies to most special keys like cursor keys, <TAB> and <RET>, when
  5079. these are combined with modifier keys like <Meta> and/or <Shift>.
  5080. Org-mode uses these bindings because it needs to provide keys for a
  5081. large number of commands, and because these keys appeared particularly
  5082. easy to remember. In order to still be able to access the core
  5083. functionality of Org-mode on a tty, alternative bindings are provided.
  5084. Here is a complete list of these bindings, which are obviously more
  5085. cumbersome to use. Note that sometimes a work-around can be better.
  5086. For example changing a time stamp is really only fun with `S-<cursor>'
  5087. keys. On a tty you would rather use `C-c .' to re-insert the
  5088. timestamp.
  5089. Default Alternative 1 Alternative 2
  5090. `S-<TAB>' `C-u <TAB>'
  5091. `M-<left>' `C-c C-x l' `<Esc> <left>'
  5092. `M-S-<left>'`C-c C-x L'
  5093. `M-<right>' `C-c C-x r' `<Esc>
  5094. <right>'
  5095. `M-S-<right>'`C-c C-x R'
  5096. `M-<up>' `C-c C-x u' `<Esc> <up>'
  5097. `M-S-<up>' `C-c C-x U'
  5098. `M-<down>' `C-c C-x d' `<Esc> <down>'
  5099. `M-S-<down>'`C-c C-x D'
  5100. `S-<RET>' `C-c C-x c'
  5101. `M-<RET>' `C-c C-x m' `<Esc> <RET>'
  5102. `M-S-<RET>' `C-c C-x M'
  5103. `S-<left>' `C-c <left>'
  5104. `S-<right>' `C-c <right>'
  5105. `S-<up>' `C-c <up>'
  5106. `S-<down>' `C-c <down>'
  5107. `C-S-<left>'`C-c C-x
  5108. <left>'
  5109. `C-S-<right>'`C-c C-x
  5110. <right>'
  5111. 
  5112. File: org, Node: Interaction, Next: Bugs, Prev: TTY keys, Up: Miscellaneous
  5113. 14.7 Interaction with other packages
  5114. ====================================
  5115. Org-mode lives in the world of GNU Emacs and interacts in various ways
  5116. with other code out there.
  5117. * Menu:
  5118. * Cooperation:: Packages Org-mode cooperates with
  5119. * Conflicts:: Packages that lead to conflicts
  5120. 
  5121. File: org, Node: Cooperation, Next: Conflicts, Prev: Interaction, Up: Interaction
  5122. 14.7.1 Packages that Org-mode cooperates with
  5123. ---------------------------------------------
  5124. `calc.el' by Dave Gillespie
  5125. Org-mode uses the calc package for implementing spreadsheet
  5126. functionality in its tables (*note The spreadsheet::). Org-mode
  5127. checks for the availability of calc by looking for the function
  5128. `calc-eval' which should be autoloaded in your setup if calc has
  5129. been installed properly. As of Emacs 22, calc is part of the Emacs
  5130. distribution. Another possibility for interaction between the two
  5131. packages is using calc for embedded calculations. *Note Embedded
  5132. Mode: (calc)Embedded Mode.
  5133. `constants.el' by Carsten Dominik
  5134. In a table formula (*note The spreadsheet::), it is possible to use
  5135. names for natural constants or units. Instead of defining your own
  5136. constants in the variable `org-table-formula-constants', install
  5137. the `constants' package which defines a large number of constants
  5138. and units, and lets you use unit prefixes like `M' for `Mega' etc.
  5139. You will need version 2.0 of this package, available at
  5140. `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
  5141. function `constants-get', which has to be autoloaded in your
  5142. setup. See the installation instructions in the file
  5143. `constants.el'.
  5144. `cdlatex.el' by Carsten Dominik
  5145. Org-mode can make use of the cdlatex package to efficiently enter
  5146. LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
  5147. `remember.el' by John Wiegley
  5148. Org mode cooperates with remember, see *Note Remember::.
  5149. `Remember.el' is not part of Emacs, find it on the web.
  5150. `table.el' by Takaaki Ota
  5151. Complex ASCII tables with automatic line wrapping, column- and
  5152. row-spanning, and alignment can be created using the Emacs table
  5153. package by Takaaki Ota (`http://sourceforge.net/projects/table',
  5154. and also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in
  5155. such a table, Org-mode will call `table-recognize-table' and move
  5156. the cursor into the table. Inside a table, the keymap of Org-mode
  5157. is inactive. In order to execute Org-mode-related commands, leave
  5158. the table.
  5159. `C-c C-c'
  5160. Recognize `table.el' table. Works when the cursor is in a
  5161. table.el table.
  5162. `C-c ~'
  5163. Insert a table.el table. If there is already a table at
  5164. point, this command converts it between the table.el format
  5165. and the Org-mode format. See the documentation string of the
  5166. command `org-convert-table' for the restrictions under which
  5167. this is possible.
  5168. `table.el' is part of Emacs 22.
  5169. `footnote.el' by Steven L. Baur
  5170. Org-mode recognizes numerical footnotes as provided by this package
  5171. (*note Footnotes::).
  5172. 
  5173. File: org, Node: Conflicts, Prev: Cooperation, Up: Interaction
  5174. 14.7.2 Packages that lead to conflicts with Org-mode
  5175. ----------------------------------------------------
  5176. `allout.el' by Ken Manheimer
  5177. Startup of Org-mode may fail with the error message
  5178. `(wrong-type-argument keymapp nil)' when there is an outdated
  5179. version `allout.el' on the load path, for example the version
  5180. distributed with Emacs 21.x. Upgrade to Emacs 22 and this problem
  5181. will disappear. If for some reason you cannot do this, make sure
  5182. that org.el is loaded _before_ `allout.el', for example by putting
  5183. `(require 'org)' early enough into your `.emacs' file.
  5184. `CUA.el' by Kim. F. Storm
  5185. Keybindings in Org-mode conflict with the `S-<cursor>' keys used
  5186. by CUA-mode (as well as pc-select-mode and s-region-mode) to
  5187. select and extend the region. If you want to use one of these
  5188. packages along with Org-mode, configure the variable
  5189. `org-CUA-compatible'. When set, Org-mode will move the following
  5190. keybindings in Org-mode files, and in the agenda buffer (but not
  5191. during date selection).
  5192. S-UP -> M-p S-DOWN -> M-n
  5193. S-LEFT -> M-- S-RIGHT -> M-+
  5194. Yes, these are unfortunately more difficult to remember. If you
  5195. want to have other replacement keys, look at the variable
  5196. `org-disputed-keys'.
  5197. `windmove.el' by Hovav Shacham
  5198. Also this package uses the `S-<cursor>' keys, so everything written
  5199. in the paragraph above about CUA mode also applies here.
  5200. `footnote.el' by Steven L. Baur
  5201. Org-mode supports the syntax of the footnote package, but only the
  5202. numerical footnote markers. Also, the default key for footnote
  5203. commands, `C-c !' is already used by Org-mode. You could use the
  5204. variable `footnote-prefix' to switch footnotes commands to another
  5205. key. Or, you could use `org-replace-disputed-keys' and
  5206. `org-disputed-keys' to change the settings in Org-mode.
  5207. 
  5208. File: org, Node: Bugs, Prev: Interaction, Up: Miscellaneous
  5209. 14.8 Bugs
  5210. =========
  5211. Here is a list of things that should work differently, but which I have
  5212. found too hard to fix.
  5213. * If a table field starts with a link, and if the corresponding table
  5214. column is narrowed (*note Narrow columns::) to a width too small to
  5215. display the link, the field would look entirely empty even though
  5216. it is not. To prevent this, Org-mode throws an error. The
  5217. work-around is to make the column wide enough to fit the link, or
  5218. to add some text (at least 2 characters) before the link in the
  5219. same field.
  5220. * Narrowing table columns does not work on XEmacs, because the
  5221. `format' function does not transport text properties.
  5222. * Text in an entry protected with the `QUOTE' keyword should not
  5223. autowrap.
  5224. * When the application called by `C-c C-o' to open a file link fails
  5225. (for example because the application does not exist or refuses to
  5226. open the file), it does so silently. No error message is
  5227. displayed.
  5228. * Recalculating a table line applies the formulas from left to right.
  5229. If a formula uses _calculated_ fields further down the row,
  5230. multiple recalculation may be needed to get all fields consistent.
  5231. You may use the command `org-table-iterate' (`C-u C-c *') to
  5232. recalculate until convergence.
  5233. * A single letter cannot be made bold, for example `*a*'.
  5234. * The exporters work well, but could be made more efficient.
  5235. 
  5236. File: org, Node: Extensions and Hacking, Next: History and Acknowledgments, Prev: Miscellaneous, Up: Top
  5237. Appendix A Extensions, Hooks and Hacking
  5238. ****************************************
  5239. This appendix lists extensions for Org-mode written by other authors.
  5240. It also covers some aspects where users can extend the functionality of
  5241. Org-mode.
  5242. * Menu:
  5243. * Extensions:: Existing 3rd-part extensions
  5244. * Adding hyperlink types:: New custom link types
  5245. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  5246. * Dynamic blocks:: Automatically filled blocks
  5247. * Special agenda views:: Customized views
  5248. * Using the property API:: Writing programs that use entry properties
  5249. 
  5250. File: org, Node: Extensions, Next: Adding hyperlink types, Prev: Extensions and Hacking, Up: Extensions and Hacking
  5251. A.1 Third-party extensions for Org-mode
  5252. =======================================
  5253. The following extensions for Org-mode have been written by other people:
  5254. `org-publish.el' by David O'Toole
  5255. This package provides facilities for publishing related sets of
  5256. Org-mode files together with linked files like images as webpages.
  5257. It is highly configurable and can be used for other publishing
  5258. purposes as well. As of Org-mode version 4.30, `org-publish.el'
  5259. is part of the Org-mode distribution. It is not yet part of
  5260. Emacs, however, a delay caused by the preparations for the 22.1
  5261. release. In the mean time, `org-publish.el' can be downloaded
  5262. from David's site: `http://dto.freeshell.org/e/org-publish.el'.
  5263. `org-mouse.el' by Piotr Zielinski
  5264. This package implements extended mouse functionality for Org-mode.
  5265. It allows you to cycle visibility and to edit the document
  5266. structure with the mouse. Best of all, it provides a
  5267. context-sensitive menu on <mouse-3> that changes depending on the
  5268. context of a mouse-click. As of Org-mode version 4.53,
  5269. `org-mouse.el' is part of the Org-mode distribution. It is not
  5270. yet part of Emacs, however, a delay caused by the preparations for
  5271. the 22.1 release. In the mean time, `org-mouse.el' can be
  5272. downloaded from Piotr's site:
  5273. `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.
  5274. `org-blog.el' by David O'Toole
  5275. A blogging plug-in for `org-publish.el'.
  5276. `http://dto.freeshell.org/notebook/OrgMode.html'.
  5277. `blorg.el' by Bastien Guerry
  5278. Publish Org-mode files as blogs.
  5279. `http://www.cognition.ens.fr/~guerry/blorg.html'.
  5280. `org2rem.el' by Bastien Guerry
  5281. Translates Org-mode files into something readable by Remind.
  5282. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5283. `org-toc.el' by Bastien Guerry
  5284. Produces a simple table of contents of an Org-mode file, for easy
  5285. navigation. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5286. `org-registry.el' by Bastien Guerry
  5287. Find which Org-file link to a certain document.
  5288. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5289. 
  5290. File: org, Node: Adding hyperlink types, Next: Tables in arbitrary syntax, Prev: Extensions, Up: Extensions and Hacking
  5291. A.2 Adding hyperlink types
  5292. ==========================
  5293. Org-mode has a large number of hyperlink types built-in (*note
  5294. Hyperlinks::). If you would like to add new link types, it provides an
  5295. interface for doing so. Lets look at an example file `org-man.el' that
  5296. will add support for creating links like `[[man:printf][The printf
  5297. manpage]]' to show unix manual pages inside emacs:
  5298. ;;; org-man.el - Support for links to manpages in Org-mode
  5299. (require 'org)
  5300. (org-add-link-type "man" 'org-man-open)
  5301. (add-hook 'org-store-link-functions 'org-man-store-link)
  5302. (defcustom org-man-command 'man
  5303. "The Emacs command to be used to display a man page."
  5304. :group 'org-link
  5305. :type '(choice (const man) (const woman)))
  5306. (defun org-man-open (path)
  5307. "Visit the manpage on PATH.
  5308. PATH should be a topic that can be thrown at the man command."
  5309. (funcall org-man-command path))
  5310. (defun org-man-store-link ()
  5311. "Store a link to a manpage."
  5312. (when (memq major-mode '(Man-mode woman-mode))
  5313. ;; This is a man page, we do make this link
  5314. (let* ((page (org-man-get-page-name))
  5315. (link (concat "man:" page))
  5316. (description (format "Manpage for %s" page)))
  5317. (org-store-link-props
  5318. :type "man"
  5319. :link link
  5320. :description description))))
  5321. (defun org-man-get-page-name ()
  5322. "Extract the page name from the buffer name."
  5323. ;; This works for both `Man-mode' and `woman-mode'.
  5324. (if (string-match " \\(\\S-+\\)\\*" (buffer-name))
  5325. (match-string 1 (buffer-name))
  5326. (error "Cannot create link to this man page")))
  5327. (provide 'org-man)
  5328. ;;; org-man.el ends here
  5329. You would activate this new link type in `.emacs' with
  5330. (require 'org-man)
  5331. Lets go through the file and see what it does.
  5332. 1. It does `(require 'org)' to make sure that `org.el' has been
  5333. loaded.
  5334. 2. The next line calls `org-add-link-type' to define a new link type
  5335. with prefix `man'. The call also contains the name of a function
  5336. that will be called to follow such a link.
  5337. 3. The next line adds a function to `org-store-link-functions', in
  5338. order to allow the command `C-c l' to record a useful link in a
  5339. buffer displaying a man page.
  5340. The rest of the file defines the necessary variables and functions.
  5341. First there is a customization variable that determines which emacs
  5342. command should be used to display manpages. There are two options,
  5343. `man' and `woman'. Then the function to follow a link is defined. It
  5344. gets the link path as an argument - in this case the link path is just
  5345. a topic for the manual command. The function calls the value of
  5346. `org-man-command' to display the man page.
  5347. Finally the function `org-man-store-link' is defined. When you try
  5348. to store a link with `C-c l', also this function will be called to try
  5349. to make a link. The function must first decide if it is supposed to
  5350. create the link for this buffer type, we do this by checking the value
  5351. of the variable `major-mode'. If not, the function must exit and
  5352. retunr the value `nil'. If yes, the link is created by getting the
  5353. manual tpoic from the buffer name and prefixing it with the string
  5354. `man:'. Then it must call the command `org-store-link-props' and set
  5355. the `:type' and `:link' properties. Optionally you can also set the
  5356. `:description' property to provide a default for the link description
  5357. when the link is later inserted into tan Org-mode buffer with `C-c C-l'.
  5358. 
  5359. File: org, Node: Tables in arbitrary syntax, Next: Dynamic blocks, Prev: Adding hyperlink types, Up: Extensions and Hacking
  5360. A.3 Tables in arbitrary syntax
  5361. ==============================
  5362. Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
  5363. frequent feature request has been to make it work with native tables in
  5364. specific languages, for example LaTeX. However, this is extremely hard
  5365. to do in a general way, would lead to a customization nightmare, and
  5366. would take away much of the simplicity of the Orgtbl-mode table editor.
  5367. This appendix describes a different approach. We keep the
  5368. Orgtbl-mode table in its native format (the source table), and use a
  5369. custom function to translate the table to the correct syntax, and to
  5370. install it in the right location (the target table). This puts the
  5371. burden of writing conversion functions on the user, but it allows for a
  5372. very flexible system.
  5373. * Menu:
  5374. * Radio tables:: Sending and receiving
  5375. * A LaTeX example:: Step by step, almost a tutorial
  5376. * Translator functions:: Copy and modify
  5377. 
  5378. File: org, Node: Radio tables, Next: A LaTeX example, Prev: Tables in arbitrary syntax, Up: Tables in arbitrary syntax
  5379. A.3.1 Radio tables
  5380. ------------------
  5381. To define the location of the target table, you first need to create two
  5382. lines that are comments in the current mode, but contain magic words for
  5383. Orgtbl-mode to find. Orgtbl-mode will insert the translated table
  5384. between these lines, replacing whatever was there before. For example:
  5385. /* BEGIN RECEIVE ORGTBL table_name */
  5386. /* END RECEIVE ORGTBL table_name */
  5387. Just above the source table, we put a special line that tells
  5388. Orgtbl-mode how to translate this table and where to install it. For
  5389. example:
  5390. #+ORGTBL: SEND table_name translation_function arguments....
  5391. `table_name' is the reference name for the table that is also used in
  5392. the receiver lines. `translation_function' is the Lisp function that
  5393. does the translation. Furthermore, the line can contain a list of
  5394. arguments (alternating key and value) at the end. The arguments will be
  5395. passed as a property list to the translation function for
  5396. interpretation. A few standard parameters are already recognized and
  5397. acted upon before the translation function is called:
  5398. `:skip N'
  5399. Skip the first N lines of the table. Hlines do count!
  5400. `:skipcols (n1 n2 ...)'
  5401. List of columns that should be skipped. If the table has a column
  5402. with calculation marks, that column is automatically discarded as
  5403. well. Please note that the translator function sees the table
  5404. _after_ the removal of these columns, the function never knows
  5405. that there have been additional columns.
  5406. The one problem remaining is how to keep the source table in the buffer
  5407. without disturbing the normal workings of the file, for example during
  5408. compilation of a C file or processing of a LaTeX file. There are a
  5409. number of different solutions:
  5410. * The table could be placed in a block comment if that is supported
  5411. by the language. For example, in C-mode you could wrap the table
  5412. between `/*' and `*/' lines.
  5413. * Sometimes it is possible to put the table after some kind of END
  5414. statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
  5415. * You can just comment the table line by line whenever you want to
  5416. process the file, and uncomment it whenever you need to edit the
  5417. table. This only sounds tedious - the command `M-x
  5418. orgtbl-toggle-comment' does make this comment-toggling very easy,
  5419. in particular if you bind it to a key.
  5420. 
  5421. File: org, Node: A LaTeX example, Next: Translator functions, Prev: Radio tables, Up: Tables in arbitrary syntax
  5422. A.3.2 A LaTeX example
  5423. ---------------------
  5424. The best way to wrap the source table in LaTeX is to use the `comment'
  5425. environment provided by `comment.sty'. It has to be activated by
  5426. placing `\usepackage{comment}' into the document header. Orgtbl-mode
  5427. can insert a radio table skeleton(1) with the command `M-x
  5428. orgtbl-insert-radio-table'. You will be prompted for a table name,
  5429. lets say we use `salesfigures'. You will then get the following
  5430. template:
  5431. % BEGIN RECEIVE ORGTBL salesfigures
  5432. % END RECEIVE ORGTBL salesfigures
  5433. \begin{comment}
  5434. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  5435. | | |
  5436. \end{comment}
  5437. The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
  5438. `orgtbl-to-latex' to convert the table into LaTeX and to put it into
  5439. the receiver location with name `salesfigures'. You may now fill in
  5440. the table, feel free to use the spreadsheet features(2):
  5441. % BEGIN RECEIVE ORGTBL salesfigures
  5442. % END RECEIVE ORGTBL salesfigures
  5443. \begin{comment}
  5444. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  5445. | Month | Days | Nr sold | per day |
  5446. |-------+------+---------+---------|
  5447. | Jan | 23 | 55 | 2.4 |
  5448. | Feb | 21 | 16 | 0.8 |
  5449. | March | 22 | 278 | 12.6 |
  5450. #+TBLFM: $4=$3/$2;%.1f
  5451. % $ (optional extra dollar to keep font-lock happy, see footnote)
  5452. \end{comment}
  5453. When you are done, press `C-c C-c' in the table to get the converted
  5454. table inserted between the two marker lines.
  5455. Now lets assume you want to make the table header by hand, because
  5456. you want to control how columns are aligned etc. In this case we make
  5457. sure that the table translator does skip the first 2 lines of the source
  5458. table, and tell the command to work as a splice, i.e. to not produce
  5459. header and footer commands of the target table:
  5460. \begin{tabular}{lrrr}
  5461. Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
  5462. % BEGIN RECEIVE ORGTBL salesfigures
  5463. % END RECEIVE ORGTBL salesfigures
  5464. \end{tabular}
  5465. %
  5466. \begin{comment}
  5467. #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
  5468. | Month | Days | Nr sold | per day |
  5469. |-------+------+---------+---------|
  5470. | Jan | 23 | 55 | 2.4 |
  5471. | Feb | 21 | 16 | 0.8 |
  5472. | March | 22 | 278 | 12.6 |
  5473. #+TBLFM: $4=$3/$2;%.1f
  5474. \end{comment}
  5475. The LaTeX translator function `orgtbl-to-latex' is already part of
  5476. Orgtbl-mode. It uses a `tabular' environment to typeset the table and
  5477. marks horizontal lines with `\hline'. Furthermore, it interprets the
  5478. following parameters:
  5479. `:splice nil/t'
  5480. When set to t, return only table body lines, don't wrap them into a
  5481. tabular environment. Default is nil.
  5482. `:fmt fmt'
  5483. A format to be used to wrap each field, should contain `%s' for the
  5484. original field value. For example, to wrap each field value in
  5485. dollars, you could use `:fmt "$%s$"'. This may also be a property
  5486. list with column numbers and formats. for example `:fmt (2 "$%s$"
  5487. 4 "%s\\%%")'.
  5488. `:efmt efmt'
  5489. Use this format to print numbers with exponentials. The format
  5490. should have `%s' twice for inserting mantissa and exponent, for
  5491. example `"%s\\times10^{%s}"'. The default is `"%s\\,(%s)"'. This
  5492. may also be a property list with column numbers and formats, for
  5493. example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
  5494. After `efmt' has been applied to a value, `fmt' will also be
  5495. applied.
  5496. ---------- Footnotes ----------
  5497. (1) By default this works only for LaTeX, HTML, and TeXInfo.
  5498. Configure the variable `orgtbl-radio-tables' to install templates for
  5499. other modes.
  5500. (2) If the `#+TBLFM' line contains an odd number of dollar
  5501. characters, this may cause problems with font-lock in latex-mode. As
  5502. shown in the example you can fix this by adding an extra line inside the
  5503. `comment' environment that is used to balance the dollar expressions.
  5504. If you are using AUCTeX with the font-latex library, a much better
  5505. solution is to add the `comment' environment to the variable
  5506. `LaTeX-verbatim-environments'.
  5507. 
  5508. File: org, Node: Translator functions, Prev: A LaTeX example, Up: Tables in arbitrary syntax
  5509. A.3.3 Translator functions
  5510. --------------------------
  5511. Orgtbl-mode has several translator functions built-in:
  5512. `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'. Except
  5513. for `orgtbl-to-html'(1), these all use a generic translator,
  5514. `orgtbl-to-generic'. For example, `orgtbl-to-latex' itself is a very
  5515. short function that computes the column definitions for the `tabular'
  5516. environment, defines a few field and line separators and then hands
  5517. over to the generic translator. Here is the entire code:
  5518. (defun orgtbl-to-latex (table params)
  5519. "Convert the orgtbl-mode TABLE to LaTeX."
  5520. (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
  5521. org-table-last-alignment ""))
  5522. (params2
  5523. (list
  5524. :tstart (concat "\\begin{tabular}{" alignment "}")
  5525. :tend "\\end{tabular}"
  5526. :lstart "" :lend " \\\\" :sep " & "
  5527. :efmt "%s\\,(%s)" :hline "\\hline")))
  5528. (orgtbl-to-generic table (org-combine-plists params2 params))))
  5529. As you can see, the properties passed into the function (variable
  5530. PARAMS) are combined with the ones newly defined in the function
  5531. (variable PARAMS2). The ones passed into the function (i.e. the ones
  5532. set by the `ORGTBL SEND' line) take precedence. So if you would like
  5533. to use the LaTeX translator, but wanted the line endings to be
  5534. `\\[2mm]' instead of the default `\\', you could just overrule the
  5535. default with
  5536. #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
  5537. For a new language, you can either write your own converter function
  5538. in analogy with the LaTeX translator, or you can use the generic
  5539. function directly. For example, if you have a language where a table
  5540. is started with `!BTBL!', ended with `!ETBL!', and where table lines are
  5541. started with `!BL!', ended with `!EL!' and where the field separator is
  5542. a TAB, you could call the generic translator like this (on a single
  5543. line!):
  5544. #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
  5545. :lstart "!BL! " :lend " !EL!" :sep "\t"
  5546. Please check the documentation string of the function
  5547. `orgtbl-to-generic' for a full list of parameters understood by that
  5548. function and remember that you can pass each of them into
  5549. `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
  5550. the generic function.
  5551. Of course you can also write a completely new function doing
  5552. complicated things the generic translator cannot do. A translator
  5553. function takes two arguments. The first argument is the table, a list
  5554. of lines, each line either the symbol `hline' or a list of fields. The
  5555. second argument is the property list containing all parameters
  5556. specified in the `#+ORGTBL: SEND' line. The function must return a
  5557. single string containing the formatted table. If you write a generally
  5558. useful translator, please post it on `emacs-orgmode@gnu.org' so that
  5559. others can benefit from your work.
  5560. ---------- Footnotes ----------
  5561. (1) The HTML translator uses the same code that produces tables
  5562. during HTML export.
  5563. 
  5564. File: org, Node: Dynamic blocks, Next: Special agenda views, Prev: Tables in arbitrary syntax, Up: Extensions and Hacking
  5565. A.4 Dynamic blocks
  5566. ==================
  5567. Org-mode documents can contain _dynamic blocks_. These are specially
  5568. marked regions that are updated by some user-written function. A good
  5569. example for such a block is the clock table inserted by the command
  5570. `C-c C-x C-r' (*note Clocking work time::).
  5571. Dynamic block are enclosed by a BEGIN-END structure that assigns a
  5572. name to the block and can also specify parameters for the function
  5573. producing the content of the block.
  5574. #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
  5575. #+END:
  5576. Dynamic blocks are updated with the following commands
  5577. `C-c C-x C-u'
  5578. Update dynamic block at point.
  5579. `C-u C-c C-x C-u'
  5580. Update all dynamic blocks in the current file.
  5581. Updating a dynamic block means to remove all the text between BEGIN
  5582. and END, parse the BEGIN line for parameters and then call the specific
  5583. writer function for this block to insert the new content. For a block
  5584. with name `myblock', the writer function is `org-dblock-write:myblock'
  5585. with as only parameter a property list with the parameters given in the
  5586. begin line. Here is a trivial example of a block that keeps track of
  5587. when the block update function was last run:
  5588. #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
  5589. #+END:
  5590. The corresponding block writer function could look like this:
  5591. (defun org-dblock-write:block-update-time (params)
  5592. (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
  5593. (insert "Last block update at: "
  5594. (format-time-string fmt (current-time)))))
  5595. If you want to make sure that all dynamic blocks are always
  5596. up-to-date, you could add the function `org-update-all-dblocks' to a
  5597. hook, for example `before-save-hook'. `org-update-all-dblocks' is
  5598. written in a way that is does nothing in buffers that are not in
  5599. Org-mode.
  5600. 
  5601. File: org, Node: Special agenda views, Next: Using the property API, Prev: Dynamic blocks, Up: Extensions and Hacking
  5602. A.5 Special Agenda Views
  5603. ========================
  5604. Org-mode provides a special hook that can be used to narrow down the
  5605. selection made by any of the agenda views. You may specify a function
  5606. that is used at each match to verify if the match should indeed be part
  5607. of the agenda view, and if not, how much should be skipped.
  5608. Let's say you want to produce a list of projects that contain a
  5609. WAITING tag anywhere in the project tree. Let's further assume that
  5610. you have marked all tree headings that define a project with the todo
  5611. keyword PROJECT. In this case you would run a todo search for the
  5612. keyword PROJECT, but skip the match unless there is a WAITING tag
  5613. anywhere in the subtree belonging to the project line.
  5614. To achieve this, you must write a function that searches the subtree
  5615. for the tag. If the tag is found, the function must return `nil' to
  5616. indicate that this match should not be skipped. If there is no such
  5617. tag, return the location of the end of the subtree, to indicate that
  5618. search should continue from there.
  5619. (defun my-skip-unless-waiting ()
  5620. "Skip trees that are not waiting"
  5621. (let ((subtree-end (save-excursion (org-end-of-subtree t))))
  5622. (if (re-search-forward ":WAITING:" subtree-end t)
  5623. nil ; tag found, do not skip
  5624. subtree-end))) ; tag not found, continue after end of subtree
  5625. Now you may use this function in an agenda custom command, for
  5626. example like this:
  5627. (org-add-agenda-custom-command
  5628. '("b" todo "PROJECT"
  5629. ((org-agenda-skip-function 'my-org-waiting-projects)
  5630. (org-agenda-overriding-header "Projects waiting for something: "))))
  5631. Note that this also binds `org-agenda-overriding-header' to get a
  5632. meaningful header in the agenda view.
  5633. You may also put a Lisp form into `org-agenda-skip-function'. In
  5634. particular, you may use the functions `org-agenda-skip-entry-if' and
  5635. `org-agenda-skip-subtree-if' in this form, for example:
  5636. `'(org-agenda-skip-entry-if 'scheduled)'
  5637. Skip current entry if it has been scheduled.
  5638. `'(org-agenda-skip-entry-if 'notscheduled)'
  5639. Skip current entry if it has not been scheduled.
  5640. `'(org-agenda-skip-entry-if 'deadline)'
  5641. Skip current entry if it has a deadline.
  5642. `'(org-agenda-skip-entry-if 'scheduled 'deadline)'
  5643. Skip current entry if it has a deadline, or if it is scheduled.
  5644. `'(org-agenda-skip-entry 'regexp "regular expression")'
  5645. Skip current entry if the regular expression matches in the entry.
  5646. `'(org-agenda-skip-entry 'notregexp "regular expression")'
  5647. Skip current entry unless the regular expression matches.
  5648. `'(org-agenda-skip-subtree-if 'regexp "regular expression")'
  5649. Same as above, but check and skip the entire subtree.
  5650. Therefore we could also have written the search for WAITING projects
  5651. like this, even without defining a special function:
  5652. (org-add-agenda-custom-command
  5653. '("b" todo "PROJECT"
  5654. ((org-agenda-skip-function '(org-agenda-skip-subtree-if
  5655. 'regexp ":WAITING:"))
  5656. (org-agenda-overriding-header "Projects waiting for something: "))))
  5657. 
  5658. File: org, Node: Using the property API, Prev: Special agenda views, Up: Extensions and Hacking
  5659. A.6 Using the property API
  5660. ==========================
  5661. Here is a description of the functions that can be used to work with
  5662. properties.
  5663. -- Function: org-entry-properties &optional pom which
  5664. Get all properties of the entry at point-or-marker POM. This
  5665. includes the TODO keyword, the tags, time strings for deadline,
  5666. scheduled, and clocking, and any additional properties defined in
  5667. the entry. The return value is an alist, keys may occur multiple
  5668. times if the property key was used several times. POM may also be
  5669. nil, in which case the current entry is used. If WHICH is nil or
  5670. `all', get all properties. If WHICH is `special' or `standard',
  5671. only get that subclass.
  5672. -- Function: org-entry-get pom property &optional inherit
  5673. Get value of PROPERTY for entry at point-or-marker POM. If
  5674. INHERIT is non-nil and the entry does not have the property, then
  5675. also check higher levels of the hierarchy.
  5676. -- Function: org-entry-delete pom property
  5677. Delete the property PROPERTY from entry at point-or-marker POM.
  5678. -- Function: org-entry-put pom property value
  5679. Set PROPERTY to VALUE for entry at point-or-marker POM.
  5680. -- Function: org-buffer-property-keys &optional include-specials
  5681. Get all property keys in the current buffer.
  5682. -- Function: org-insert-property-drawer
  5683. Insert a property drawer at point.
  5684. 
  5685. File: org, Node: History and Acknowledgments, Next: Index, Prev: Extensions and Hacking, Up: Top
  5686. Appendix B History and Acknowledgments
  5687. **************************************
  5688. Org-mode was borne in 2003, out of frustration over the user interface
  5689. of the Emacs outline-mode. I was trying to organize my notes and
  5690. projects, and using Emacs seemed to be the natural way to go. However,
  5691. having to remember eleven different commands with two or three keys per
  5692. command, only to hide and unhide parts of the outline tree, that seemed
  5693. entirely unacceptable to me. Also, when using outlines to take notes, I
  5694. constantly want to restructure the tree, organizing it parallel to my
  5695. thoughts and plans. _Visibility cycling_ and _structure editing_ were
  5696. originally implemented in the package `outline-magic.el', but quickly
  5697. moved to the more general `org.el'. As this environment became
  5698. comfortable for project planning, the next step was adding _TODO
  5699. entries_, basic _time stamps_, and _table support_. These areas
  5700. highlight the two main goals that Org-mode still has today: To create a
  5701. new, outline-based, plain text mode with innovative and intuitive
  5702. editing features, and to incorporate project planning functionality
  5703. directly into a notes file.
  5704. Since the first release, literally thousands of emails to me or on
  5705. `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
  5706. feedback, new ideas, and sometimes patches and add-on code. Many
  5707. thanks to everyone who has helped to improve this package. I am trying
  5708. to keep here a list of the people who had significant influence in
  5709. shaping one or more aspects of Org-mode. The list may not be complete,
  5710. if I have forgotten someone, please accept my apologies and let me know.
  5711. * Russel Adams came up with the idea for drawers.
  5712. * Thomas Baumann contributed the code for links to the MH-E email
  5713. system.
  5714. * Alex Bochannek provided a patch for rounding time stamps.
  5715. * Charles Cave's suggestion sparked the implementation of templates
  5716. for Remember.
  5717. * Pavel Chalmoviansky influenced the agenda treatment of items with
  5718. specified time.
  5719. * Gregory Chernov patched support for lisp forms into table
  5720. calculations and improved XEmacs compatibility, in particular by
  5721. porting `nouline.el' to XEmacs.
  5722. * Sacha Chua suggested to copy some linking code from Planner.
  5723. * Eddward DeVilla proposed and tested checkbox statistics. He also
  5724. came up with the idea of properties, and that there should be an
  5725. API for them.
  5726. * Kees Dullemond used to edit projects lists directly in HTML and so
  5727. inspired some of the early development, including HTML export. He
  5728. also asked for a way to narrow wide table columns.
  5729. * Christian Egli converted the documentation into TeXInfo format,
  5730. patched CSS formatting into the HTML exporter, and inspired the
  5731. agenda.
  5732. * David Emery provided a patch for custom CSS support in exported
  5733. HTML agendas.
  5734. * Nic Ferrier contributed mailcap and XOXO support.
  5735. * John Foerch figured out how to make incremental search show context
  5736. around a match in a hidden outline tree.
  5737. * Niels Giessen had the idea to automatically archive DONE trees.
  5738. * Bastien Guerry wrote the LaTeX exporter and has been prolific with
  5739. patches, ideas, and bug reports.
  5740. * Kai Grossjohann pointed out key-binding conflicts with other
  5741. packages.
  5742. * Scott Jaderholm proposed footnotes, control over whitespace between
  5743. folded entries, and column view for properties.
  5744. * Shidai Liu ("Leo") asked for embedded LaTeX and tested it. He also
  5745. provided frequent feedback and some patches.
  5746. * Jason F. McBrayer suggested agenda export to CSV format.
  5747. * Dmitri Minaev sent a patch to set priority limits on a per-file
  5748. basis.
  5749. * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
  5750. happy.
  5751. * Rick Moynihan proposed to allow multiple TODO sequences in a file.
  5752. * Todd Neal provided patches for links to Info files and elisp forms.
  5753. * Tim O'Callaghan suggested in-file links, search options for general
  5754. file links, and TAGS.
  5755. * Takeshi Okano translated the manual and David O'Toole's tutorial
  5756. into Japanese.
  5757. * Oliver Oppitz suggested multi-state TODO items.
  5758. * Scott Otterson sparked the introduction of descriptive text for
  5759. links, among other things.
  5760. * Pete Phillips helped during the development of the TAGS feature,
  5761. and provided frequent feedback.
  5762. * T.V. Raman reported bugs and suggested improvements.
  5763. * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
  5764. control.
  5765. * Kevin Rogers contributed code to access VM files on remote hosts.
  5766. * Frank Ruell solved the mystery of the `keymapp nil' bug, a
  5767. conflict with `allout.el'.
  5768. * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
  5769. * Philip Rooke created the Org-mode reference card and provided lots
  5770. of feedback.
  5771. * Christian Schlauer proposed angular brackets around links, among
  5772. other things.
  5773. * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
  5774. `organizer-mode.el'.
  5775. * Daniel Sinder came up with the idea of internal archiving by
  5776. locking subtrees.
  5777. * Dale Smith proposed link abbreviations.
  5778. * Adam Spiers asked for global linking commands and inspired the link
  5779. extension system. support mairix.
  5780. * David O'Toole wrote `org-publish.el' and drafted the manual
  5781. chapter about publishing.
  5782. * Ju"rgen Vollmer contributed code generating the table of contents
  5783. in HTML output.
  5784. * Chris Wallace provided a patch implementing the `QUOTE' keyword.
  5785. * David Wainberg suggested archiving, and improvements to the linking
  5786. system.
  5787. * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
  5788. development of Org-mode was fully independent, and both systems are
  5789. really different beasts in their basic ideas and implementation
  5790. details. I later looked at John's code, however, and learned from
  5791. his implementation of (i) links where the link itself is hidden
  5792. and only a description is shown, and (ii) popping up a calendar to
  5793. select a date. John has also contributed a number of great ideas
  5794. directly to Org-mode.
  5795. * Carsten Wimmer suggested some changes and helped fix a bug in
  5796. linking to GNUS.
  5797. * Roland Winkler requested additional keybindings to make Org-mode
  5798. work on a tty.
  5799. * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
  5800. contributed various ideas and code snippets.
  5801. 
  5802. File: org, Node: Index, Next: Key Index, Prev: History and Acknowledgments, Up: Top
  5803. Index
  5804. *****
  5805. �[index�]
  5806. * Menu:
  5807. * abbreviation, links: Link abbreviations. (line 6)
  5808. * acknowledgments: History and Acknowledgments.
  5809. (line 6)
  5810. * action, for publishing: Publishing action. (line 6)
  5811. * activation: Activation. (line 6)
  5812. * active region <1>: Structure editing. (line 68)
  5813. * active region <2>: ASCII export. (line 9)
  5814. * active region <3>: HTML Export commands.
  5815. (line 6)
  5816. * active region: Built-in table editor.
  5817. (line 143)
  5818. * agenda: Weekly/Daily agenda. (line 6)
  5819. * agenda dispatcher: Agenda dispatcher. (line 6)
  5820. * agenda files: Agenda files. (line 6)
  5821. * agenda files, removing buffers: Agenda commands. (line 244)
  5822. * agenda views: Agenda views. (line 6)
  5823. * agenda views, custom: Custom agenda views. (line 6)
  5824. * agenda views, exporting <1>: Exporting Agenda Views.
  5825. (line 12)
  5826. * agenda views, exporting: Agenda commands. (line 233)
  5827. * agenda views, user-defined: Special agenda views.
  5828. (line 6)
  5829. * agenda, pipe: Extracting Agenda Information for other programs.
  5830. (line 6)
  5831. * agenda, with block views: Block agenda. (line 6)
  5832. * align, STARTUP keyword: In-buffer settings. (line 68)
  5833. * allout.el: Conflicts. (line 6)
  5834. * angular brackets, around links: External links. (line 43)
  5835. * API, for properties <1>: Using the property API.
  5836. (line 6)
  5837. * API, for properties: Property API. (line 6)
  5838. * appointment reminders: Weekly/Daily agenda. (line 66)
  5839. * appt.el: Weekly/Daily agenda. (line 66)
  5840. * archive locations: Moving subtrees. (line 23)
  5841. * archiving: Archiving. (line 6)
  5842. * ASCII export: ASCII export. (line 6)
  5843. * author: Feedback. (line 6)
  5844. * author info, in export: Export options. (line 26)
  5845. * autoload: Activation. (line 6)
  5846. * backtrace of an error: Feedback. (line 27)
  5847. * BBDB links: External links. (line 6)
  5848. * block agenda: Block agenda. (line 6)
  5849. * blorg.el: Extensions. (line 32)
  5850. * bold text: Enhancing text. (line 15)
  5851. * Boolean logic, for tag searches: Tag searches. (line 23)
  5852. * bug reports: Feedback. (line 6)
  5853. * bugs: Bugs. (line 6)
  5854. * C-c C-c, overview: The very busy C-c C-c key.
  5855. (line 6)
  5856. * calc package: The spreadsheet. (line 6)
  5857. * calc.el: Cooperation. (line 6)
  5858. * calculations, in tables <1>: Built-in table editor.
  5859. (line 143)
  5860. * calculations, in tables: The spreadsheet. (line 6)
  5861. * calendar commands, from agenda: Agenda commands. (line 196)
  5862. * calendar integration: Weekly/Daily agenda. (line 24)
  5863. * calendar, for selecting date: The date/time prompt.
  5864. (line 26)
  5865. * category: Categories. (line 6)
  5866. * CDLaTeX: CDLaTeX mode. (line 6)
  5867. * cdlatex.el: Cooperation. (line 29)
  5868. * checkbox statistics: Checkboxes. (line 23)
  5869. * checkboxes: Checkboxes. (line 6)
  5870. * children, subtree visibility state: Visibility cycling. (line 10)
  5871. * clean outline view: Clean view. (line 6)
  5872. * column formula: Column formulas. (line 6)
  5873. * column view, for properties: Defining columns. (line 6)
  5874. * commands, in agenda buffer: Agenda commands. (line 6)
  5875. * comment lines: Comment lines. (line 6)
  5876. * completion, of dictionary words: Completion. (line 6)
  5877. * completion, of file names: Handling links. (line 44)
  5878. * completion, of link abbreviations: Completion. (line 6)
  5879. * completion, of links: Handling links. (line 25)
  5880. * completion, of option keywords <1>: Per file keywords. (line 23)
  5881. * completion, of option keywords <2>: Export options. (line 6)
  5882. * completion, of option keywords: Completion. (line 6)
  5883. * completion, of property keys: Completion. (line 6)
  5884. * completion, of tags <1>: Setting tags. (line 11)
  5885. * completion, of tags: Completion. (line 6)
  5886. * completion, of TeX symbols: Completion. (line 6)
  5887. * completion, of TODO keywords <1>: Workflow states. (line 15)
  5888. * completion, of TODO keywords: Completion. (line 6)
  5889. * constants, in calculations: References. (line 82)
  5890. * constants.el: Cooperation. (line 14)
  5891. * constcgs, STARTUP keyword: In-buffer settings. (line 94)
  5892. * constSI, STARTUP keyword: In-buffer settings. (line 94)
  5893. * content, STARTUP keyword: In-buffer settings. (line 61)
  5894. * contents, global visibility state: Visibility cycling. (line 22)
  5895. * copying, of subtrees: Structure editing. (line 6)
  5896. * creating timestamps: Creating timestamps. (line 6)
  5897. * CUA.el: Conflicts. (line 15)
  5898. * custom agenda views: Custom agenda views. (line 6)
  5899. * custom date/time format: Custom time format. (line 6)
  5900. * custom search strings: Custom searches. (line 6)
  5901. * customization: Customization. (line 6)
  5902. * customtime, STARTUP keyword: In-buffer settings. (line 91)
  5903. * cutting, of subtrees: Structure editing. (line 6)
  5904. * cycling, of TODO states: TODO basics. (line 13)
  5905. * cycling, visibility: Visibility cycling. (line 6)
  5906. * daily agenda: Weekly/Daily agenda. (line 6)
  5907. * date format, custom: Custom time format. (line 6)
  5908. * date range: Time stamps. (line 40)
  5909. * date stamps <1>: Timestamps. (line 6)
  5910. * date stamps: Time stamps. (line 6)
  5911. * date, reading in minibuffer: The date/time prompt.
  5912. (line 6)
  5913. * DEADLINE keyword: Deadlines and scheduling.
  5914. (line 10)
  5915. * deadlines: Time stamps. (line 6)
  5916. * debugging, of table formulas: Editing and debugging formulas.
  5917. (line 97)
  5918. * demotion, of subtrees: Structure editing. (line 6)
  5919. * diary entries, creating from agenda: Agenda commands. (line 201)
  5920. * diary integration: Weekly/Daily agenda. (line 24)
  5921. * dictionary word completion: Completion. (line 6)
  5922. * directories, for publishing: Sources and destinations.
  5923. (line 6)
  5924. * dispatching agenda commands: Agenda dispatcher. (line 6)
  5925. * display changing, in agenda: Agenda commands. (line 65)
  5926. * document structure: Document structure. (line 6)
  5927. * DONE, final TODO keyword: Per file keywords. (line 26)
  5928. * drawer, for properties: Property syntax. (line 6)
  5929. * drawers: Drawers. (line 6)
  5930. * dynamic blocks: Dynamic blocks. (line 6)
  5931. * editing tables: Tables. (line 6)
  5932. * editing, of table formulas: Editing and debugging formulas.
  5933. (line 6)
  5934. * elisp links: External links. (line 6)
  5935. * emphasized text: Export options. (line 26)
  5936. * enhancing text: Enhancing text. (line 6)
  5937. * evaluate time range: Creating timestamps. (line 48)
  5938. * even, STARTUP keyword: In-buffer settings. (line 84)
  5939. * exporting: Exporting. (line 6)
  5940. * exporting agenda views <1>: Agenda commands. (line 233)
  5941. * exporting agenda views: Exporting Agenda Views.
  5942. (line 12)
  5943. * exporting, not: Comment lines. (line 6)
  5944. * extended TODO keywords: TODO extensions. (line 6)
  5945. * extension, third-party: Extensions. (line 6)
  5946. * external archiving: Moving subtrees. (line 6)
  5947. * external links: External links. (line 6)
  5948. * external links, in HTML export: Links. (line 6)
  5949. * faces, for TODO keywords: Faces for TODO keywords.
  5950. (line 6)
  5951. * FAQ: Summary. (line 56)
  5952. * feedback: Feedback. (line 6)
  5953. * field formula: Field formulas. (line 6)
  5954. * field references: References. (line 15)
  5955. * file links: External links. (line 6)
  5956. * file links, searching: Search options. (line 6)
  5957. * file name completion: Handling links. (line 44)
  5958. * files for agenda: Agenda files. (line 6)
  5959. * files, adding to agenda list: Agenda files. (line 12)
  5960. * files, selecting for publishing: Selecting files. (line 6)
  5961. * fixed width: Enhancing text. (line 28)
  5962. * fixed-width sections: Export options. (line 26)
  5963. * folded, subtree visibility state: Visibility cycling. (line 10)
  5964. * folding, sparse trees: Sparse trees. (line 6)
  5965. * following links: Handling links. (line 59)
  5966. * footnote.el <1>: Cooperation. (line 56)
  5967. * footnote.el <2>: Footnotes. (line 6)
  5968. * footnote.el: Conflicts. (line 35)
  5969. * footnotes <1>: Footnotes. (line 6)
  5970. * footnotes: Export options. (line 26)
  5971. * format specifier: Formula syntax for Calc.
  5972. (line 14)
  5973. * format, of links: Link format. (line 6)
  5974. * formula debugging: Editing and debugging formulas.
  5975. (line 97)
  5976. * formula editing: Editing and debugging formulas.
  5977. (line 6)
  5978. * formula syntax, Calc: Formula syntax for Calc.
  5979. (line 6)
  5980. * formula, for individual table field: Field formulas. (line 6)
  5981. * formula, for table column: Column formulas. (line 6)
  5982. * formula, in tables: Built-in table editor.
  5983. (line 143)
  5984. * global cycling: Visibility cycling. (line 22)
  5985. * global keybindings: Activation. (line 6)
  5986. * global TODO list: Global TODO list. (line 6)
  5987. * global visibility states: Visibility cycling. (line 22)
  5988. * GNUS links: External links. (line 6)
  5989. * grouping columns in tables: Column groups. (line 6)
  5990. * hand-formatted lists: Enhancing text. (line 11)
  5991. * headline levels: Export options. (line 26)
  5992. * headline levels, for exporting <1>: LaTeX export commands.
  5993. (line 26)
  5994. * headline levels, for exporting <2>: HTML Export commands.
  5995. (line 44)
  5996. * headline levels, for exporting: ASCII export. (line 21)
  5997. * headline navigation: Motion. (line 6)
  5998. * headline tagging: Tags. (line 6)
  5999. * headline, promotion and demotion: Structure editing. (line 6)
  6000. * headlines: Headlines. (line 6)
  6001. * hide text: Visibility cycling. (line 6)
  6002. * hidestars, STARTUP keyword: In-buffer settings. (line 84)
  6003. * hiding leading stars: Clean view. (line 6)
  6004. * history: History and Acknowledgments.
  6005. (line 6)
  6006. * horizontal rules, in exported files: Enhancing text. (line 18)
  6007. * HTML export: HTML export. (line 6)
  6008. * HTML, and orgtbl-mode: Translator functions.
  6009. (line 6)
  6010. * hyperlinks: Hyperlinks. (line 6)
  6011. * hyperlinks, adding new types: Adding hyperlink types.
  6012. (line 6)
  6013. * iCalendar export: iCalendar export. (line 6)
  6014. * images, inline in HTML: Images. (line 6)
  6015. * in-buffer settings: In-buffer settings. (line 6)
  6016. * inactive timestamp: Time stamps. (line 49)
  6017. * index, of published pages: Project page index. (line 6)
  6018. * Info links: External links. (line 6)
  6019. * inheritance, of tags: Tag inheritance. (line 6)
  6020. * inlining images in HTML: Images. (line 6)
  6021. * inserting links: Handling links. (line 25)
  6022. * installation: Installation. (line 6)
  6023. * internal archiving: ARCHIVE tag. (line 6)
  6024. * internal links: Internal links. (line 6)
  6025. * internal links, in HTML export: Links. (line 6)
  6026. * introduction: Introduction. (line 6)
  6027. * italic text: Enhancing text. (line 15)
  6028. * jumping, to headlines: Motion. (line 6)
  6029. * keybindings, global: Activation. (line 6)
  6030. * keyword options: Per file keywords. (line 6)
  6031. * LaTeX export: LaTeX export. (line 6)
  6032. * LaTeX fragments <1>: Export options. (line 26)
  6033. * LaTeX fragments: LaTeX fragments. (line 6)
  6034. * LaTeX fragments, export: Enhancing text. (line 21)
  6035. * LaTeX fragments, preview: Processing LaTeX fragments.
  6036. (line 6)
  6037. * LaTeX interpretation: Embedded LaTeX. (line 6)
  6038. * LaTeX, and orgtbl-mode: A LaTeX example. (line 6)
  6039. * level, require for tags match: Tag searches. (line 68)
  6040. * linebreak preservation: Export options. (line 26)
  6041. * linebreak, forced: Enhancing text. (line 35)
  6042. * link abbreviations: Link abbreviations. (line 6)
  6043. * link abbreviations, completion of: Completion. (line 6)
  6044. * link completion: Handling links. (line 25)
  6045. * link format: Link format. (line 6)
  6046. * links, external: External links. (line 6)
  6047. * links, finding next/previous: Handling links. (line 92)
  6048. * links, handling: Handling links. (line 6)
  6049. * links, in HTML export: Links. (line 6)
  6050. * links, internal: Internal links. (line 6)
  6051. * links, publishing: Publishing links. (line 6)
  6052. * links, radio targets: Radio targets. (line 6)
  6053. * links, returning to: Handling links. (line 86)
  6054. * Lisp forms, as table formulas: Formula syntax for Lisp.
  6055. (line 6)
  6056. * lists, hand-formatted: Enhancing text. (line 11)
  6057. * lists, ordered: Plain lists. (line 6)
  6058. * lists, plain: Plain lists. (line 6)
  6059. * logdone, STARTUP keyword: In-buffer settings. (line 73)
  6060. * logging, of progress: Progress logging. (line 6)
  6061. * lognoteclock-out, STARTUP keyword: In-buffer settings. (line 73)
  6062. * lognotedone, STARTUP keyword: In-buffer settings. (line 73)
  6063. * lognotestate, STARTUP keyword: In-buffer settings. (line 73)
  6064. * logrepeat, STARTUP keyword: In-buffer settings. (line 73)
  6065. * maintainer: Feedback. (line 6)
  6066. * mark ring: Handling links. (line 82)
  6067. * marking characters, tables: Advanced features. (line 40)
  6068. * matching, of properties: Matching tags and properties.
  6069. (line 6)
  6070. * matching, of tags: Matching tags and properties.
  6071. (line 6)
  6072. * matching, tags: Tags. (line 6)
  6073. * math symbols: Math symbols. (line 6)
  6074. * MH-E links: External links. (line 6)
  6075. * minor mode for structure editing: orgstruct-mode. (line 6)
  6076. * minor mode for tables: orgtbl-mode. (line 6)
  6077. * mode, for calc: Formula syntax for Calc.
  6078. (line 14)
  6079. * motion commands in agenda: Agenda commands. (line 19)
  6080. * motion, between headlines: Motion. (line 6)
  6081. * name, of column or field: References. (line 82)
  6082. * named references: References. (line 82)
  6083. * names as TODO keywords: TODO types. (line 6)
  6084. * narrow columns in tables: Narrow columns. (line 6)
  6085. * noalign, STARTUP keyword: In-buffer settings. (line 68)
  6086. * nologging, STARTUP keyword: In-buffer settings. (line 73)
  6087. * nologrepeat, STARTUP keyword: In-buffer settings. (line 73)
  6088. * occur, command: Sparse trees. (line 6)
  6089. * odd, STARTUP keyword: In-buffer settings. (line 84)
  6090. * option keyword completion: Completion. (line 6)
  6091. * options, for custom agenda views: Setting Options. (line 6)
  6092. * options, for customization: Customization. (line 6)
  6093. * options, for export: Export options. (line 6)
  6094. * options, for publishing: Publishing options. (line 6)
  6095. * ordered lists: Plain lists. (line 6)
  6096. * org-agenda, command: Weekly/Daily agenda. (line 9)
  6097. * org-blog.el: Extensions. (line 28)
  6098. * org-mode, turning on: Activation. (line 22)
  6099. * org-mouse.el: Extensions. (line 16)
  6100. * org-publish-project-alist: Project alist. (line 6)
  6101. * org-publish.el: Extensions. (line 8)
  6102. * org2rem.el: Extensions. (line 36)
  6103. * orgstruct-mode: orgstruct-mode. (line 6)
  6104. * orgtbl-mode <1>: Tables in arbitrary syntax.
  6105. (line 6)
  6106. * orgtbl-mode: orgtbl-mode. (line 6)
  6107. * outline tree: Headlines. (line 6)
  6108. * outline-mode: Outlines. (line 6)
  6109. * outlines: Outlines. (line 6)
  6110. * overview, global visibility state: Visibility cycling. (line 22)
  6111. * overview, STARTUP keyword: In-buffer settings. (line 61)
  6112. * packages, interaction with other: Interaction. (line 6)
  6113. * pasting, of subtrees: Structure editing. (line 6)
  6114. * per file keywords: Per file keywords. (line 6)
  6115. * plain lists: Plain lists. (line 6)
  6116. * plain text external links: External links. (line 43)
  6117. * presentation, of agenda items: Presentation and sorting.
  6118. (line 6)
  6119. * printing sparse trees: Sparse trees. (line 41)
  6120. * priorities: Priorities. (line 6)
  6121. * priorities, of agenda items: Sorting of agenda items.
  6122. (line 6)
  6123. * progress logging: Progress logging. (line 6)
  6124. * projects, for publishing: Project alist. (line 6)
  6125. * promotion, of subtrees: Structure editing. (line 6)
  6126. * properties: Properties and columns.
  6127. (line 6)
  6128. * properties, API <1>: Using the property API.
  6129. (line 6)
  6130. * properties, API: Property API. (line 6)
  6131. * properties, column view: Defining columns. (line 6)
  6132. * properties, searching: Property searches. (line 6)
  6133. * properties, special: Special properties. (line 6)
  6134. * property syntax: Property syntax. (line 6)
  6135. * publishing: Publishing. (line 6)
  6136. * quoted HTML tags: Export options. (line 26)
  6137. * radio tables: Radio tables. (line 6)
  6138. * radio targets: Radio targets. (line 6)
  6139. * range references: References. (line 60)
  6140. * ranges, time: Time stamps. (line 6)
  6141. * recomputing table fields: Updating the table. (line 6)
  6142. * references: References. (line 6)
  6143. * references, named: References. (line 82)
  6144. * references, to fields: References. (line 15)
  6145. * references, to ranges: References. (line 60)
  6146. * region, active <1>: Built-in table editor.
  6147. (line 143)
  6148. * region, active <2>: ASCII export. (line 9)
  6149. * region, active <3>: Structure editing. (line 68)
  6150. * region, active: HTML Export commands.
  6151. (line 6)
  6152. * regular expressions, with tags search: Tag searches. (line 63)
  6153. * remember.el <1>: Cooperation. (line 33)
  6154. * remember.el: Remember. (line 6)
  6155. * remote editing, from agenda: Agenda commands. (line 107)
  6156. * remote editing, undo: Agenda commands. (line 108)
  6157. * richer text: Enhancing text. (line 6)
  6158. * RMAIL links: External links. (line 6)
  6159. * SCHEDULED keyword: Deadlines and scheduling.
  6160. (line 26)
  6161. * scheduling: Time stamps. (line 6)
  6162. * Scripts, for agenda processing: Extracting Agenda Information for other programs.
  6163. (line 6)
  6164. * search option in file links: Search options. (line 6)
  6165. * search strings, custom: Custom searches. (line 6)
  6166. * searching for tags: Tag searches. (line 6)
  6167. * section-numbers: Export options. (line 26)
  6168. * setting tags: Setting tags. (line 6)
  6169. * SHELL links: External links. (line 6)
  6170. * show all, command: Visibility cycling. (line 33)
  6171. * show all, global visibility state: Visibility cycling. (line 22)
  6172. * show hidden text: Visibility cycling. (line 6)
  6173. * showall, STARTUP keyword: In-buffer settings. (line 61)
  6174. * showstars, STARTUP keyword: In-buffer settings. (line 84)
  6175. * sorting, of agenda items: Sorting of agenda items.
  6176. (line 6)
  6177. * sparse tree, for deadlines: Inserting deadline/schedule.
  6178. (line 13)
  6179. * sparse tree, for TODO: TODO basics. (line 38)
  6180. * sparse tree, tag based: Tags. (line 6)
  6181. * sparse trees: Sparse trees. (line 6)
  6182. * special keywords: In-buffer settings. (line 6)
  6183. * spreadsheet capabilities: The spreadsheet. (line 6)
  6184. * statistics, for checkboxes: Checkboxes. (line 23)
  6185. * storing links: Handling links. (line 9)
  6186. * structure editing: Structure editing. (line 6)
  6187. * structure of document: Document structure. (line 6)
  6188. * sublevels, inclusion into tags match: Tag inheritance. (line 6)
  6189. * sublevels, inclusion into todo list: Global TODO list. (line 34)
  6190. * subscript: Subscripts and Superscripts.
  6191. (line 6)
  6192. * subtree cycling: Visibility cycling. (line 10)
  6193. * subtree visibility states: Visibility cycling. (line 10)
  6194. * subtree, cut and paste: Structure editing. (line 6)
  6195. * subtree, subtree visibility state: Visibility cycling. (line 10)
  6196. * subtrees, cut and paste: Structure editing. (line 6)
  6197. * summary: Summary. (line 6)
  6198. * superscript: Subscripts and Superscripts.
  6199. (line 6)
  6200. * syntax, of formulas: Formula syntax for Calc.
  6201. (line 6)
  6202. * table editor, built-in: Built-in table editor.
  6203. (line 6)
  6204. * table editor, table.el: Cooperation. (line 37)
  6205. * table of contents: Export options. (line 26)
  6206. * table.el: Cooperation. (line 37)
  6207. * tables <1>: Tables. (line 6)
  6208. * tables: Export options. (line 26)
  6209. * tables, export: Enhancing text. (line 24)
  6210. * tables, in other modes: Tables in arbitrary syntax.
  6211. (line 6)
  6212. * tag completion: Completion. (line 6)
  6213. * tag searches: Tag searches. (line 6)
  6214. * tags: Tags. (line 6)
  6215. * tags view: Matching tags and properties.
  6216. (line 6)
  6217. * tags, setting: Setting tags. (line 6)
  6218. * targets, for links: Internal links. (line 6)
  6219. * targets, radio: Radio targets. (line 6)
  6220. * tasks, breaking down: Breaking down tasks. (line 6)
  6221. * templates, for remember: Remember templates. (line 6)
  6222. * TeX interpretation: Embedded LaTeX. (line 6)
  6223. * TeX macros <1>: Export options. (line 26)
  6224. * TeX macros: Math symbols. (line 6)
  6225. * TeX macros, export: Enhancing text. (line 21)
  6226. * TeX symbol completion: Completion. (line 6)
  6227. * TeX-like syntax for sub- and superscripts: Export options. (line 26)
  6228. * thanks: History and Acknowledgments.
  6229. (line 6)
  6230. * time format, custom: Custom time format. (line 6)
  6231. * time grid: Time-of-day specifications.
  6232. (line 26)
  6233. * time info, in export: Export options. (line 26)
  6234. * time stamps <1>: Time stamps. (line 6)
  6235. * time stamps: Timestamps. (line 6)
  6236. * time, reading in minibuffer: The date/time prompt.
  6237. (line 6)
  6238. * time-of-day specification: Time-of-day specifications.
  6239. (line 6)
  6240. * time-sorted view: Timeline. (line 6)
  6241. * timeline, single file: Timeline. (line 6)
  6242. * timerange: Time stamps. (line 40)
  6243. * timestamp: Time stamps. (line 14)
  6244. * timestamp, inactive: Time stamps. (line 49)
  6245. * timestamp, with repeater interval: Time stamps. (line 24)
  6246. * timestamps, creating: Creating timestamps. (line 6)
  6247. * TODO items: TODO items. (line 6)
  6248. * TODO keyword matching: Global TODO list. (line 17)
  6249. * TODO keyword matching, with tags search: Tag searches. (line 40)
  6250. * todo keyword sets: Multiple sets in one file.
  6251. (line 6)
  6252. * TODO keywords completion: Completion. (line 6)
  6253. * TODO list, global: Global TODO list. (line 6)
  6254. * TODO types: TODO types. (line 6)
  6255. * TODO workflow: Workflow states. (line 6)
  6256. * transient-mark-mode <1>: Structure editing. (line 68)
  6257. * transient-mark-mode <2>: ASCII export. (line 9)
  6258. * transient-mark-mode <3>: Built-in table editor.
  6259. (line 143)
  6260. * transient-mark-mode: HTML Export commands.
  6261. (line 6)
  6262. * translator function: Translator functions.
  6263. (line 6)
  6264. * trees, sparse: Sparse trees. (line 6)
  6265. * trees, visibility: Visibility cycling. (line 6)
  6266. * tty keybindings: TTY keys. (line 6)
  6267. * types as TODO keywords: TODO types. (line 6)
  6268. * underlined text: Enhancing text. (line 15)
  6269. * undoing remote-editing events: Agenda commands. (line 108)
  6270. * updating, table: Updating the table. (line 6)
  6271. * URL links: External links. (line 6)
  6272. * USENET links: External links. (line 6)
  6273. * variables, for customization: Customization. (line 6)
  6274. * vectors, in table calculations: Formula syntax for Calc.
  6275. (line 11)
  6276. * visibility cycling: Visibility cycling. (line 6)
  6277. * visibility cycling, drawers: Drawers. (line 6)
  6278. * visible text, printing: Sparse trees. (line 41)
  6279. * VM links: External links. (line 6)
  6280. * WANDERLUST links: External links. (line 6)
  6281. * weekly agenda: Weekly/Daily agenda. (line 6)
  6282. * windmove.el: Conflicts. (line 32)
  6283. * workflow states as TODO keywords: Workflow states. (line 6)
  6284. * XEmacs: Installation. (line 6)
  6285. * XOXO export: XOXO export. (line 6)
  6286. 
  6287. File: org, Node: Key Index, Prev: Index, Up: Top
  6288. Key Index
  6289. *********
  6290. �[index�]
  6291. * Menu:
  6292. * $: Agenda commands. (line 122)
  6293. * ': CDLaTeX mode. (line 43)
  6294. * +: Agenda commands. (line 145)
  6295. * ,: Agenda commands. (line 137)
  6296. * -: Agenda commands. (line 151)
  6297. * .: Agenda commands. (line 99)
  6298. * :: Agenda commands. (line 130)
  6299. * < <1>: Using column view. (line 54)
  6300. * <: The date/time prompt.
  6301. (line 32)
  6302. * <left>: Agenda commands. (line 96)
  6303. * <RET> <1>: Built-in table editor.
  6304. (line 64)
  6305. * <RET> <2>: Agenda commands. (line 39)
  6306. * <RET> <3>: The date/time prompt.
  6307. (line 57)
  6308. * <RET>: Setting tags. (line 76)
  6309. * <right>: Agenda commands. (line 91)
  6310. * <SPC> <1>: Setting tags. (line 73)
  6311. * <SPC>: Agenda commands. (line 28)
  6312. * <TAB> <1>: Editing and debugging formulas.
  6313. (line 57)
  6314. * <TAB> <2>: Agenda commands. (line 33)
  6315. * <TAB> <3>: Visibility cycling. (line 10)
  6316. * <TAB> <4>: Plain lists. (line 41)
  6317. * <TAB> <5>: Built-in table editor.
  6318. (line 57)
  6319. * <TAB> <6>: Setting tags. (line 68)
  6320. * <TAB>: CDLaTeX mode. (line 23)
  6321. * > <1>: Using column view. (line 54)
  6322. * > <2>: Agenda commands. (line 173)
  6323. * >: The date/time prompt.
  6324. (line 33)
  6325. * ^: CDLaTeX mode. (line 33)
  6326. * _: CDLaTeX mode. (line 33)
  6327. * `: CDLaTeX mode. (line 39)
  6328. * a <1>: Using column view. (line 43)
  6329. * a: Agenda commands. (line 134)
  6330. * b: Agenda commands. (line 49)
  6331. * C: Agenda commands. (line 216)
  6332. * c: Agenda commands. (line 196)
  6333. * C-#: Advanced features. (line 9)
  6334. * C-': Agenda files. (line 18)
  6335. * C-,: Agenda files. (line 18)
  6336. * C-<RET>: Structure editing. (line 18)
  6337. * C-_: Agenda commands. (line 108)
  6338. * C-c ! <1>: Footnotes. (line 14)
  6339. * C-c !: Creating timestamps. (line 19)
  6340. * C-c #: Checkboxes. (line 57)
  6341. * C-c %: Handling links. (line 82)
  6342. * C-c &: Handling links. (line 86)
  6343. * C-c ': Editing and debugging formulas.
  6344. (line 36)
  6345. * C-c *: Updating the table. (line 13)
  6346. * C-c +: Built-in table editor.
  6347. (line 143)
  6348. * C-c ,: Priorities. (line 18)
  6349. * C-c - <1>: Plain lists. (line 88)
  6350. * C-c -: Built-in table editor.
  6351. (line 92)
  6352. * C-c .: Creating timestamps. (line 10)
  6353. * C-c /: Sparse trees. (line 15)
  6354. * C-c :: Enhancing text. (line 32)
  6355. * C-c ;: Comment lines. (line 10)
  6356. * C-c <: Creating timestamps. (line 23)
  6357. * C-c <TAB>: Built-in table editor.
  6358. (line 163)
  6359. * C-c = <1>: Editing and debugging formulas.
  6360. (line 14)
  6361. * C-c =: Column formulas. (line 26)
  6362. * C-c >: Creating timestamps. (line 27)
  6363. * C-c ?: Editing and debugging formulas.
  6364. (line 24)
  6365. * C-c [: Agenda files. (line 12)
  6366. * C-c \: Tag searches. (line 9)
  6367. * C-c ]: Agenda files. (line 15)
  6368. * C-c ^ <1>: Structure editing. (line 56)
  6369. * C-c ^: Built-in table editor.
  6370. (line 96)
  6371. * C-c `: Built-in table editor.
  6372. (line 159)
  6373. * C-c a !: Stuck projects. (line 14)
  6374. * C-c a #: Stuck projects. (line 13)
  6375. * C-c a a: Weekly/Daily agenda. (line 9)
  6376. * C-c a C: Storing searches. (line 9)
  6377. * C-c a e: Exporting Agenda Views.
  6378. (line 57)
  6379. * C-c a L: Timeline. (line 10)
  6380. * C-c a M: Tag searches. (line 16)
  6381. * C-c a m <1>: Tag searches. (line 12)
  6382. * C-c a m: Matching tags and properties.
  6383. (line 10)
  6384. * C-c a M: Matching tags and properties.
  6385. (line 15)
  6386. * C-c a T: Global TODO list. (line 14)
  6387. * C-c a t <1>: Global TODO list. (line 9)
  6388. * C-c a t: TODO basics. (line 48)
  6389. * C-c C-a: Visibility cycling. (line 33)
  6390. * C-c C-b: Motion. (line 15)
  6391. * C-c C-c <1>: Processing LaTeX fragments.
  6392. (line 15)
  6393. * C-c C-c <2>: Cooperation. (line 37)
  6394. * C-c C-c <3>: The very busy C-c C-c key.
  6395. (line 6)
  6396. * C-c C-c <4>: Clocking work time. (line 89)
  6397. * C-c C-c <5>: Property syntax. (line 54)
  6398. * C-c C-c <6>: Setting tags. (line 10)
  6399. * C-c C-c <7>: Checkboxes. (line 37)
  6400. * C-c C-c <8>: TODO basics. (line 30)
  6401. * C-c C-c <9>: Editing and debugging formulas.
  6402. (line 46)
  6403. * C-c C-c <10>: Built-in table editor.
  6404. (line 56)
  6405. * C-c C-c: Plain lists. (line 81)
  6406. * C-c C-d <1>: Agenda commands. (line 158)
  6407. * C-c C-d: Inserting deadline/schedule.
  6408. (line 9)
  6409. * C-c C-e: Exporting. (line 20)
  6410. * C-c C-e a: ASCII export. (line 9)
  6411. * C-c C-e b: HTML Export commands.
  6412. (line 13)
  6413. * C-c C-e c: iCalendar export. (line 21)
  6414. * C-c C-e H: HTML Export commands.
  6415. (line 16)
  6416. * C-c C-e h: HTML Export commands.
  6417. (line 6)
  6418. * C-c C-e I: iCalendar export. (line 16)
  6419. * C-c C-e i: iCalendar export. (line 14)
  6420. * C-c C-e l: LaTeX export commands.
  6421. (line 6)
  6422. * C-c C-e L: LaTeX export commands.
  6423. (line 7)
  6424. * C-c C-e R: HTML Export commands.
  6425. (line 19)
  6426. * C-c C-e t: Export options. (line 13)
  6427. * C-c C-e v <1>: XOXO export. (line 11)
  6428. * C-c C-e v: Sparse trees. (line 41)
  6429. * C-c C-e v a: ASCII export. (line 16)
  6430. * C-c C-e v b: HTML Export commands.
  6431. (line 24)
  6432. * C-c C-e v H: HTML Export commands.
  6433. (line 24)
  6434. * C-c C-e v h: HTML Export commands.
  6435. (line 24)
  6436. * C-c C-e v l: LaTeX export commands.
  6437. (line 10)
  6438. * C-c C-e v L: LaTeX export commands.
  6439. (line 10)
  6440. * C-c C-e v R: HTML Export commands.
  6441. (line 24)
  6442. * C-c C-e x: XOXO export. (line 10)
  6443. * C-c C-f: Motion. (line 12)
  6444. * C-c C-j: Motion. (line 21)
  6445. * C-c C-l: Handling links. (line 25)
  6446. * C-c C-n: Motion. (line 8)
  6447. * C-c C-o <1>: Handling links. (line 59)
  6448. * C-c C-o: Creating timestamps. (line 31)
  6449. * C-c C-p: Motion. (line 9)
  6450. * C-c C-q <1>: Built-in table editor.
  6451. (line 127)
  6452. * C-c C-q: Editing and debugging formulas.
  6453. (line 50)
  6454. * C-c C-r <1>: Editing and debugging formulas.
  6455. (line 53)
  6456. * C-c C-r: Visibility cycling. (line 34)
  6457. * C-c C-s <1>: Inserting deadline/schedule.
  6458. (line 20)
  6459. * C-c C-s: Agenda commands. (line 155)
  6460. * C-c C-t <1>: TODO basics. (line 13)
  6461. * C-c C-t: Clocking work time. (line 30)
  6462. * C-c C-u: Motion. (line 18)
  6463. * C-c C-v: TODO basics. (line 38)
  6464. * C-c C-w: Inserting deadline/schedule.
  6465. (line 13)
  6466. * C-c C-x /: Agenda files. (line 22)
  6467. * C-c C-x b: Visibility cycling. (line 41)
  6468. * C-c C-x C-a: ARCHIVE tag. (line 28)
  6469. * C-c C-x C-b: Checkboxes. (line 39)
  6470. * C-c C-x C-c <1>: Agenda commands. (line 223)
  6471. * C-c C-x C-c: Using column view. (line 9)
  6472. * C-c C-x C-d: Clocking work time. (line 42)
  6473. * C-c C-x C-i: Clocking work time. (line 12)
  6474. * C-c C-x C-j: Clocking work time. (line 38)
  6475. * C-c C-x C-k: Structure editing. (line 43)
  6476. * C-c C-x C-l: Processing LaTeX fragments.
  6477. (line 9)
  6478. * C-c C-x C-n: Handling links. (line 92)
  6479. * C-c C-x C-o: Clocking work time. (line 17)
  6480. * C-c C-x C-p: Handling links. (line 92)
  6481. * C-c C-x C-r: Clocking work time. (line 50)
  6482. * C-c C-x C-s: Moving subtrees. (line 10)
  6483. * C-c C-x C-t: Custom time format. (line 12)
  6484. * C-c C-x C-u <1>: Dynamic blocks. (line 21)
  6485. * C-c C-x C-u: Clocking work time. (line 91)
  6486. * C-c C-x C-w <1>: Structure editing. (line 43)
  6487. * C-c C-x C-w: Built-in table editor.
  6488. (line 116)
  6489. * C-c C-x C-x: Clocking work time. (line 34)
  6490. * C-c C-x C-y <1>: Built-in table editor.
  6491. (line 120)
  6492. * C-c C-x C-y: Structure editing. (line 50)
  6493. * C-c C-x M-w <1>: Structure editing. (line 47)
  6494. * C-c C-x M-w: Built-in table editor.
  6495. (line 113)
  6496. * C-c C-y <1>: Clocking work time. (line 25)
  6497. * C-c C-y: Creating timestamps. (line 48)
  6498. * C-c l: Handling links. (line 9)
  6499. * C-c { <1>: CDLaTeX mode. (line 21)
  6500. * C-c {: Editing and debugging formulas.
  6501. (line 33)
  6502. * C-c |: Built-in table editor.
  6503. (line 40)
  6504. * C-c }: Editing and debugging formulas.
  6505. (line 28)
  6506. * C-c ~: Cooperation. (line 48)
  6507. * C-k: Agenda commands. (line 116)
  6508. * C-S-<left>: Multiple sets in one file.
  6509. (line 25)
  6510. * C-S-<right>: Multiple sets in one file.
  6511. (line 25)
  6512. * C-TAB: ARCHIVE tag. (line 38)
  6513. * C-u C-c *: Updating the table. (line 16)
  6514. * C-u C-c .: Creating timestamps. (line 14)
  6515. * C-u C-c = <1>: Field formulas. (line 24)
  6516. * C-u C-c =: Editing and debugging formulas.
  6517. (line 14)
  6518. * C-u C-c C-c: Updating the table. (line 19)
  6519. * C-u C-c C-l: Handling links. (line 44)
  6520. * C-u C-c C-t: TODO basics. (line 22)
  6521. * C-u C-c C-x C-a: ARCHIVE tag. (line 31)
  6522. * C-u C-c C-x C-s: Moving subtrees. (line 14)
  6523. * C-u C-c C-x C-u <1>: Clocking work time. (line 93)
  6524. * C-u C-c C-x C-u: Dynamic blocks. (line 22)
  6525. * C-u C-u C-c *: Updating the table. (line 22)
  6526. * C-u C-u C-c =: Editing and debugging formulas.
  6527. (line 18)
  6528. * C-u C-u C-c C-c: Updating the table. (line 22)
  6529. * C-x C-s <1>: Agenda commands. (line 87)
  6530. * C-x C-s: Editing and debugging formulas.
  6531. (line 46)
  6532. * C-x C-w <1>: Exporting Agenda Views.
  6533. (line 11)
  6534. * C-x C-w: Agenda commands. (line 232)
  6535. * d: Agenda commands. (line 66)
  6536. * D: Agenda commands. (line 72)
  6537. * e: Using column view. (line 33)
  6538. * f: Agenda commands. (line 42)
  6539. * g: Agenda commands. (line 76)
  6540. * H: Agenda commands. (line 220)
  6541. * I: Agenda commands. (line 178)
  6542. * i: Agenda commands. (line 201)
  6543. * J: Agenda commands. (line 190)
  6544. * L: Agenda commands. (line 30)
  6545. * l: Agenda commands. (line 55)
  6546. * m: Agenda commands. (line 66)
  6547. * M: Agenda commands. (line 207)
  6548. * M-<down> <1>: Editing and debugging formulas.
  6549. (line 76)
  6550. * M-<down>: Built-in table editor.
  6551. (line 82)
  6552. * M-<left> <1>: Structure editing. (line 25)
  6553. * M-<left>: Built-in table editor.
  6554. (line 74)
  6555. * M-<RET> <1>: Plain lists. (line 49)
  6556. * M-<RET>: Structure editing. (line 6)
  6557. * M-<right> <1>: Built-in table editor.
  6558. (line 74)
  6559. * M-<right>: Structure editing. (line 28)
  6560. * M-<TAB> <1>: Setting tags. (line 6)
  6561. * M-<TAB> <2>: Completion. (line 10)
  6562. * M-<TAB> <3>: Property syntax. (line 46)
  6563. * M-<TAB> <4>: Per file keywords. (line 23)
  6564. * M-<TAB>: Editing and debugging formulas.
  6565. (line 64)
  6566. * M-<up> <1>: Built-in table editor.
  6567. (line 82)
  6568. * M-<up>: Editing and debugging formulas.
  6569. (line 76)
  6570. * M-S-<down> <1>: Built-in table editor.
  6571. (line 89)
  6572. * M-S-<down> <2>: Plain lists. (line 66)
  6573. * M-S-<down> <3>: Editing and debugging formulas.
  6574. (line 72)
  6575. * M-S-<down>: Structure editing. (line 40)
  6576. * M-S-<left> <1>: Plain lists. (line 72)
  6577. * M-S-<left> <2>: Structure editing. (line 31)
  6578. * M-S-<left> <3>: Built-in table editor.
  6579. (line 76)
  6580. * M-S-<left>: The date/time prompt.
  6581. (line 54)
  6582. * M-S-<RET> <1>: Structure editing. (line 22)
  6583. * M-S-<RET> <2>: Plain lists. (line 59)
  6584. * M-S-<RET>: Checkboxes. (line 54)
  6585. * M-S-<right> <1>: Built-in table editor.
  6586. (line 79)
  6587. * M-S-<right> <2>: Structure editing. (line 34)
  6588. * M-S-<right> <3>: Plain lists. (line 72)
  6589. * M-S-<right>: The date/time prompt.
  6590. (line 51)
  6591. * M-S-<up> <1>: Plain lists. (line 66)
  6592. * M-S-<up> <2>: Built-in table editor.
  6593. (line 86)
  6594. * M-S-<up> <3>: Structure editing. (line 37)
  6595. * M-S-<up>: Editing and debugging formulas.
  6596. (line 72)
  6597. * mouse-1 <1>: Handling links. (line 73)
  6598. * mouse-1 <2>: Agenda commands. (line 33)
  6599. * mouse-1: The date/time prompt.
  6600. (line 36)
  6601. * mouse-2 <1>: Handling links. (line 73)
  6602. * mouse-2: Agenda commands. (line 33)
  6603. * mouse-3 <1>: Agenda commands. (line 28)
  6604. * mouse-3: Handling links. (line 78)
  6605. * n <1>: Agenda commands. (line 19)
  6606. * n: Using column view. (line 30)
  6607. * o: Agenda commands. (line 65)
  6608. * O: Agenda commands. (line 182)
  6609. * p <1>: Using column view. (line 30)
  6610. * p: Agenda commands. (line 20)
  6611. * P: Agenda commands. (line 142)
  6612. * q <1>: Using column view. (line 17)
  6613. * q: Agenda commands. (line 243)
  6614. * r <1>: Agenda commands. (line 80)
  6615. * r: Global TODO list. (line 22)
  6616. * s: Agenda commands. (line 87)
  6617. * S: Agenda commands. (line 211)
  6618. * S-<down> <1>: Editing and debugging formulas.
  6619. (line 67)
  6620. * S-<down> <2>: Priorities. (line 23)
  6621. * S-<down> <3>: Plain lists. (line 62)
  6622. * S-<down> <4>: Creating timestamps. (line 40)
  6623. * S-<down> <5>: The date/time prompt.
  6624. (line 45)
  6625. * S-<down>: Agenda commands. (line 151)
  6626. * S-<left> <1>: Property syntax. (line 62)
  6627. * S-<left> <2>: The date/time prompt.
  6628. (line 42)
  6629. * S-<left> <3>: Editing and debugging formulas.
  6630. (line 67)
  6631. * S-<left> <4>: Creating timestamps. (line 35)
  6632. * S-<left> <5>: TODO basics. (line 26)
  6633. * S-<left> <6>: Agenda commands. (line 169)
  6634. * S-<left> <7>: Using column view. (line 26)
  6635. * S-<left>: Multiple sets in one file.
  6636. (line 29)
  6637. * S-<RET>: Built-in table editor.
  6638. (line 146)
  6639. * S-<right> <1>: The date/time prompt.
  6640. (line 39)
  6641. * S-<right> <2>: Multiple sets in one file.
  6642. (line 29)
  6643. * S-<right> <3>: Editing and debugging formulas.
  6644. (line 67)
  6645. * S-<right> <4>: Agenda commands. (line 161)
  6646. * S-<right> <5>: Creating timestamps. (line 35)
  6647. * S-<right> <6>: TODO basics. (line 26)
  6648. * S-<right> <7>: Using column view. (line 26)
  6649. * S-<right>: Property syntax. (line 62)
  6650. * S-<TAB> <1>: Visibility cycling. (line 22)
  6651. * S-<TAB>: Built-in table editor.
  6652. (line 61)
  6653. * S-<up> <1>: Plain lists. (line 62)
  6654. * S-<up> <2>: Creating timestamps. (line 40)
  6655. * S-<up> <3>: The date/time prompt.
  6656. (line 48)
  6657. * S-<up> <4>: Editing and debugging formulas.
  6658. (line 67)
  6659. * S-<up> <5>: Agenda commands. (line 145)
  6660. * S-<up>: Priorities. (line 23)
  6661. * S-M-<left>: Using column view. (line 58)
  6662. * S-M-<RET>: TODO basics. (line 56)
  6663. * S-M-<right>: Using column view. (line 55)
  6664. * t: Agenda commands. (line 112)
  6665. * T: Agenda commands. (line 125)
  6666. * v: Using column view. (line 39)
  6667. * w: Agenda commands. (line 66)
  6668. * X: Agenda commands. (line 185)
  6669. * x: Agenda commands. (line 244)
  6670. * y: Agenda commands. (line 66)
  6671. 
  6672. Tag Table:
  6673. Node: Top971
  6674. Node: Introduction13083
  6675. Node: Summary13498
  6676. Node: Installation16625
  6677. Node: Activation18003
  6678. Node: Feedback19240
  6679. Node: Document structure21309
  6680. Node: Outlines22201
  6681. Node: Headlines22866
  6682. Ref: Headlines-Footnote-123870
  6683. Node: Visibility cycling23981
  6684. Ref: Visibility cycling-Footnote-126191
  6685. Ref: Visibility cycling-Footnote-226249
  6686. Ref: Visibility cycling-Footnote-326299
  6687. Node: Motion26569
  6688. Node: Structure editing27523
  6689. Node: Archiving30517
  6690. Node: ARCHIVE tag31075
  6691. Node: Moving subtrees32868
  6692. Ref: Moving subtrees-Footnote-134415
  6693. Node: Sparse trees34702
  6694. Ref: Sparse trees-Footnote-136837
  6695. Ref: Sparse trees-Footnote-237019
  6696. Node: Plain lists37134
  6697. Ref: Plain lists-Footnote-141331
  6698. Ref: Plain lists-Footnote-241689
  6699. Node: Drawers41870
  6700. Node: orgstruct-mode42708
  6701. Node: Tables43608
  6702. Node: Built-in table editor44189
  6703. Node: Narrow columns51595
  6704. Ref: Narrow columns-Footnote-153530
  6705. Node: Column groups53576
  6706. Node: orgtbl-mode55109
  6707. Node: The spreadsheet55912
  6708. Node: References56999
  6709. Ref: References-Footnote-161463
  6710. Node: Formula syntax for Calc61752
  6711. Node: Formula syntax for Lisp64209
  6712. Node: Field formulas65927
  6713. Node: Column formulas67235
  6714. Node: Editing and debugging formulas68834
  6715. Node: Updating the table72987
  6716. Node: Advanced features74040
  6717. Node: Hyperlinks78565
  6718. Node: Link format79343
  6719. Node: Internal links80636
  6720. Ref: Internal links-Footnote-182561
  6721. Node: Radio targets82696
  6722. Node: External links83396
  6723. Node: Handling links85800
  6724. Ref: Handling links-Footnote-191116
  6725. Ref: Handling links-Footnote-291353
  6726. Node: Using links outside Org-mode91427
  6727. Node: Link abbreviations91937
  6728. Node: Search options93630
  6729. Ref: Search options-Footnote-195410
  6730. Node: Custom searches95491
  6731. Node: TODO items96522
  6732. Node: TODO basics97560
  6733. Node: TODO extensions99765
  6734. Node: Workflow states100709
  6735. Ref: Workflow states-Footnote-1101884
  6736. Node: TODO types101977
  6737. Ref: TODO types-Footnote-1103560
  6738. Node: Multiple sets in one file103642
  6739. Node: Fast access to TODO states105262
  6740. Node: Per file keywords106405
  6741. Ref: Per file keywords-Footnote-1107707
  6742. Node: Faces for TODO keywords107908
  6743. Node: Progress logging108614
  6744. Node: Closing items109045
  6745. Ref: Closing items-Footnote-1109979
  6746. Ref: Closing items-Footnote-2110184
  6747. Node: Tracking TODO state changes110257
  6748. Ref: Tracking TODO state changes-Footnote-1111442
  6749. Node: Priorities111517
  6750. Ref: Priorities-Footnote-1113167
  6751. Node: Breaking down tasks113237
  6752. Ref: Breaking down tasks-Footnote-1113757
  6753. Node: Checkboxes113853
  6754. Node: Tags116702
  6755. Node: Tag inheritance117474
  6756. Node: Setting tags118411
  6757. Ref: Setting tags-Footnote-1122934
  6758. Ref: Setting tags-Footnote-2123046
  6759. Node: Tag searches123129
  6760. Node: Properties and columns125846
  6761. Node: Property syntax126951
  6762. Node: Special properties129498
  6763. Node: Property searches130414
  6764. Node: Column view131069
  6765. Node: Defining columns132236
  6766. Node: Scope of column definitions132634
  6767. Node: Column attributes133556
  6768. Node: Using column view135804
  6769. Node: Property API137791
  6770. Node: Timestamps138145
  6771. Node: Time stamps138556
  6772. Ref: Time stamps-Footnote-1140910
  6773. Node: Creating timestamps141026
  6774. Node: The date/time prompt143100
  6775. Ref: The date/time prompt-Footnote-1145088
  6776. Node: Custom time format145194
  6777. Node: Deadlines and scheduling146886
  6778. Ref: Deadlines and scheduling-Footnote-1148959
  6779. Node: Inserting deadline/schedule149114
  6780. Node: Repeated tasks150232
  6781. Ref: Repeated tasks-Footnote-1151910
  6782. Node: Clocking work time152031
  6783. Ref: Clocking work time-Footnote-1156878
  6784. Ref: Clocking work time-Footnote-2156956
  6785. Node: Remember157082
  6786. Node: Setting up remember157964
  6787. Node: Remember templates158567
  6788. Ref: Remember templates-Footnote-1162084
  6789. Ref: Remember templates-Footnote-2162267
  6790. Node: Storing notes162365
  6791. Ref: Storing notes-Footnote-1164844
  6792. Node: Agenda views164946
  6793. Node: Agenda files166897
  6794. Ref: Agenda files-Footnote-1167989
  6795. Ref: Agenda files-Footnote-2168138
  6796. Node: Agenda dispatcher168331
  6797. Node: Built-in agenda views170030
  6798. Node: Weekly/Daily agenda170612
  6799. Node: Global TODO list173949
  6800. Node: Matching tags and properties176229
  6801. Node: Timeline177320
  6802. Node: Stuck projects177994
  6803. Node: Presentation and sorting179847
  6804. Node: Categories180640
  6805. Ref: Categories-Footnote-1181351
  6806. Node: Time-of-day specifications181671
  6807. Node: Sorting of agenda items183644
  6808. Node: Agenda commands184928
  6809. Node: Custom agenda views192391
  6810. Node: Storing searches193112
  6811. Node: Block agenda195026
  6812. Node: Setting Options196258
  6813. Node: Exporting Agenda Views198999
  6814. Ref: Exporting Agenda Views-Footnote-1203285
  6815. Ref: Exporting Agenda Views-Footnote-2203342
  6816. Node: Extracting Agenda Information for other programs203528
  6817. Node: Embedded LaTeX207656
  6818. Ref: Embedded LaTeX-Footnote-1208750
  6819. Node: Math symbols208940
  6820. Node: Subscripts and Superscripts209707
  6821. Node: LaTeX fragments210553
  6822. Ref: LaTeX fragments-Footnote-1212786
  6823. Ref: LaTeX fragments-Footnote-2213047
  6824. Node: Processing LaTeX fragments213181
  6825. Node: CDLaTeX mode214129
  6826. Ref: CDLaTeX mode-Footnote-1216615
  6827. Node: Exporting216763
  6828. Node: ASCII export218230
  6829. Node: HTML export219731
  6830. Node: HTML Export commands220357
  6831. Node: Quoting HTML tags222144
  6832. Node: Links222779
  6833. Node: Images223476
  6834. Ref: Images-Footnote-1224347
  6835. Node: CSS support224408
  6836. Ref: CSS support-Footnote-1225727
  6837. Node: LaTeX export225840
  6838. Node: LaTeX export commands226164
  6839. Node: Quoting LaTeX code227326
  6840. Node: XOXO export227831
  6841. Node: iCalendar export228271
  6842. Node: Text interpretation229740
  6843. Node: Comment lines230331
  6844. Node: Initial text230726
  6845. Node: Footnotes232395
  6846. Node: Enhancing text233186
  6847. Ref: Enhancing text-Footnote-1235055
  6848. Node: Export options235145
  6849. Node: Publishing237498
  6850. Ref: Publishing-Footnote-1238459
  6851. Ref: Publishing-Footnote-2238603
  6852. Node: Configuration238754
  6853. Node: Project alist239472
  6854. Node: Sources and destinations240538
  6855. Node: Selecting files241268
  6856. Node: Publishing action242016
  6857. Node: Publishing options243350
  6858. Node: Publishing links245725
  6859. Node: Project page index247238
  6860. Node: Sample configuration248016
  6861. Node: Simple example248508
  6862. Node: Complex example249181
  6863. Node: Triggering publication251257
  6864. Node: Miscellaneous251942
  6865. Node: Completion252576
  6866. Node: Customization254246
  6867. Node: In-buffer settings254829
  6868. Node: The very busy C-c C-c key260391
  6869. Node: Clean view262246
  6870. Node: TTY keys264823
  6871. Node: Interaction266433
  6872. Node: Cooperation266830
  6873. Node: Conflicts269706
  6874. Node: Bugs271709
  6875. Node: Extensions and Hacking273205
  6876. Node: Extensions273930
  6877. Node: Adding hyperlink types276192
  6878. Node: Tables in arbitrary syntax279854
  6879. Node: Radio tables280943
  6880. Node: A LaTeX example283446
  6881. Ref: A LaTeX example-Footnote-1287092
  6882. Ref: A LaTeX example-Footnote-2287240
  6883. Node: Translator functions287675
  6884. Ref: Translator functions-Footnote-1290784
  6885. Node: Dynamic blocks290872
  6886. Node: Special agenda views292844
  6887. Node: Using the property API296089
  6888. Node: History and Acknowledgments297570
  6889. Node: Index304132
  6890. Node: Key Index338909
  6891. 
  6892. End Tag Table