org 343 KB

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