org 386 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054
  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.16).
  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.16).
  23. Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
  24. Permission is granted to copy, distribute and/or modify this
  25. document under the terms of the GNU Free Documentation License,
  26. Version 1.1 or any later version published by the Free Software
  27. Foundation; with no Invariant Sections, with the Front-Cover texts
  28. being "A GNU Manual," and with the Back-Cover Texts as in (a)
  29. below. A copy of the license is included in the section entitled
  30. "GNU Free Documentation License."
  31. (a) The FSF's Back-Cover Text is: "You have freedom to copy and
  32. modify this GNU Manual, like GNU software. Copies published by
  33. the Free Software Foundation raise funds for GNU development."
  34. * Menu:
  35. * Introduction:: Getting started
  36. * Document structure:: A tree works like your brain
  37. * Tables:: Pure magic for quick formatting
  38. * Hyperlinks:: Notes in context
  39. * TODO items:: Every tree branch can be a TODO item
  40. * Tags:: Tagging headlines and matching sets of tags
  41. * Properties and columns:: Storing information about an entry
  42. * Dates and times:: Making items useful for planning
  43. * Remember:: Quickly adding nodes to the outline tree
  44. * Agenda views:: Collecting information into views
  45. * Embedded LaTeX:: LaTeX fragments and formulas
  46. * Exporting:: Sharing and publishing of notes
  47. * Publishing:: Create a web site of linked Org-mode files
  48. * Miscellaneous:: All the rest which did not fit elsewhere
  49. * Extensions and Hacking:: It is possible to write add-on code
  50. * History and Acknowledgments:: How Org-mode came into being
  51. * Index:: The fast road to specific information
  52. * Key Index:: Key bindings and where they are described
  53. --- The Detailed Node Listing ---
  54. Introduction
  55. * Summary:: Brief summary of what Org-mode does
  56. * Installation:: How to install a downloaded version of Org-mode
  57. * Activation:: How to activate Org-mode for certain buffers.
  58. * Feedback:: Bug reports, ideas, patches etc.
  59. * Conventions:: Type-setting conventions in the manual
  60. Document Structure
  61. * Outlines:: Org-mode is based on outline-mode
  62. * Headlines:: How to typeset org-tree headlines
  63. * Visibility cycling:: Show and hide, much simplified
  64. * Motion:: Jumping to other headlines
  65. * Structure editing:: Changing sequence and level of headlines
  66. * Archiving:: Move done task trees to a different place
  67. * Sparse trees:: Matches embedded in context
  68. * Plain lists:: Additional structure within an entry
  69. * Drawers:: Tucking stuff away
  70. * orgstruct-mode:: Structure editing outside Org-mode
  71. Archiving
  72. * ARCHIVE tag:: Marking a tree as inactive
  73. * Moving subtrees:: Moving a tree to an archive file
  74. Tables
  75. * Built-in table editor:: Simple tables
  76. * Narrow columns:: Stop wasting space in tables
  77. * Column groups:: Grouping to trigger vertical lines
  78. * orgtbl-mode:: The table editor as minor mode
  79. * The spreadsheet:: The table editor has spreadsheet capabilities.
  80. The spreadsheet
  81. * References:: How to refer to another field or range
  82. * Formula syntax for Calc:: Using Calc to compute stuff
  83. * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
  84. * Field formulas:: Formulas valid for a single field
  85. * Column formulas:: Formulas valid for an entire column
  86. * Editing and debugging formulas:: Fixing formulas
  87. * Updating the table:: Recomputing all dependent fields
  88. * Advanced features:: Field names, parameters and automatic recalc
  89. Hyperlinks
  90. * Link format:: How links in Org-mode are formatted
  91. * Internal links:: Links to other places in the current file
  92. * External links:: URL-like links to the world
  93. * Handling links:: Creating, inserting and following
  94. * Using links outside Org-mode:: Linking from my C source code?
  95. * Link abbreviations:: Shortcuts for writing complex links
  96. * Search options:: Linking to a specific location
  97. * Custom searches:: When the default search is not enough
  98. Internal links
  99. * Radio targets:: Make targets trigger links in plain text.
  100. TODO items
  101. * TODO basics:: Marking and displaying TODO entries
  102. * TODO extensions:: Workflow and assignments
  103. * Progress logging:: Dates and notes for progress
  104. * Priorities:: Some things are more important than others
  105. * Breaking down tasks:: Splitting a task into manageable pieces
  106. * Checkboxes:: Tick-off lists
  107. Extended use of TODO keywords
  108. * Workflow states:: From TODO to DONE in steps
  109. * TODO types:: I do this, Fred the rest
  110. * Multiple sets in one file:: Mixing it all, and still finding your way
  111. * Fast access to TODO states:: Single letter selection of a state
  112. * Per file keywords:: Different files, different requirements
  113. * Faces for TODO keywords:: Highlighting states
  114. Progress Logging
  115. * Closing items:: When was this entry marked DONE?
  116. * Tracking TODO state changes:: When did the status change?
  117. Tags
  118. * Tag inheritance:: Tags use the tree structure of the outline
  119. * Setting tags:: How to assign tags to a headline
  120. * Tag searches:: Searching for combinations of tags
  121. Properties and Columns
  122. * Property syntax:: How properties are spelled out
  123. * Special properties:: Access to other Org-mode features
  124. * Property searches:: Matching property values
  125. * Property inheritance:: Passing values down the tree
  126. * Column view:: Tabular viewing and editing
  127. * Property API:: Properties for Lisp programmers
  128. Column View
  129. * Defining columns:: The COLUMNS format property
  130. * Using column view:: How to create and use column view
  131. * Capturing Column View:: A dynamic block for column view
  132. Defining Columns
  133. * Scope of column definitions:: Where defined, where valid?
  134. * Column attributes:: Appearance and content of a column
  135. Dates and Times
  136. * Time stamps:: Assigning a time to a tree entry
  137. * Creating timestamps:: Commands which insert timestamps
  138. * Deadlines and scheduling:: Planning your work
  139. * Clocking work time::
  140. Creating timestamps
  141. * The date/time prompt:: How org-mode helps you entering date and time
  142. * Custom time format:: Making dates look differently
  143. Deadlines and Scheduling
  144. * Inserting deadline/schedule:: Planning items
  145. * Repeated tasks:: Items that show up again and again
  146. Remember
  147. * Setting up remember:: Some code for .emacs to get things going
  148. * Remember templates:: Define the outline of different note types
  149. * Storing notes:: Directly get the note to where it belongs
  150. * Refiling notes:: Moving a note or task to a project
  151. Agenda Views
  152. * Agenda files:: Files being searched for agenda information
  153. * Agenda dispatcher:: Keyboard access to agenda views
  154. * Built-in agenda views:: What is available out of the box?
  155. * Presentation and sorting:: How agenda items are prepared for display
  156. * Agenda commands:: Remote editing of org trees
  157. * Custom agenda views:: Defining special searches and views
  158. The built-in agenda views
  159. * Weekly/Daily agenda:: The calendar page with current tasks
  160. * Global TODO list:: All unfinished action items
  161. * Matching tags and properties:: Structured information with fine-tuned search
  162. * Timeline:: Time-sorted view for single file
  163. * Stuck projects:: Find projects you need to review
  164. Presentation and sorting
  165. * Categories:: Not all tasks are equal
  166. * Time-of-day specifications:: How the agenda knows the time
  167. * Sorting of agenda items:: The order of things
  168. Custom agenda views
  169. * Storing searches:: Type once, use often
  170. * Block agenda:: All the stuff you need in a single buffer
  171. * Setting Options:: Changing the rules
  172. * Exporting Agenda Views:: Writing agendas to files.
  173. * Extracting Agenda Information for other programs::
  174. Embedded LaTeX
  175. * Math symbols:: TeX macros for symbols and Greek letters
  176. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  177. * LaTeX fragments:: Complex formulas made easy
  178. * Processing LaTeX fragments:: Previewing LaTeX processing
  179. * CDLaTeX mode:: Speed up entering of formulas
  180. Exporting
  181. * ASCII export:: Exporting to plain ASCII
  182. * HTML export:: Exporting to HTML
  183. * LaTeX export:: Exporting to LaTeX
  184. * XOXO export:: Exporting to XOXO
  185. * iCalendar export:: Exporting in iCalendar format
  186. * Text interpretation:: How the exporter looks at the file
  187. HTML export
  188. * HTML Export commands:: How to invoke LaTeX export
  189. * Quoting HTML tags:: Using direct HTML in Org-mode
  190. * Links:: Transformation of links for HTML
  191. * Images:: How to include images
  192. * CSS support:: Changing the appearence of the output
  193. LaTeX export
  194. * LaTeX export commands:: How to invoke LaTeX export
  195. * Quoting LaTeX code:: Incorporating literal LaTeX code
  196. * Sectioning structure::
  197. Text interpretation by the exporter
  198. * Comment lines:: Some lines will not be exported
  199. * Initial text:: Text before the first headline
  200. * Footnotes:: Numbers like [1]
  201. * Quoted examples:: Inserting quoted chnuks of text
  202. * Enhancing text:: Subscripts, symbols and more
  203. * Export options:: How to influence the export settings
  204. Publishing
  205. * Configuration:: Defining projects
  206. * Sample configuration:: Example projects
  207. * Triggering publication:: Publication commands
  208. Configuration
  209. * Project alist:: The central configuration variable
  210. * Sources and destinations:: From here to there
  211. * Selecting files:: What files are part of the project?
  212. * Publishing action:: Setting the function doing the publishing
  213. * Publishing options:: Tweaking HTML export
  214. * Publishing links:: Which links keep working after publishing?
  215. * Project page index:: Publishing a list of project files
  216. Sample configuration
  217. * Simple example:: One-component publishing
  218. * Complex example:: A multi-component publishing example
  219. Miscellaneous
  220. * Completion:: M-TAB knows what you need
  221. * Customization:: Adapting Org-mode to your taste
  222. * In-buffer settings:: Overview of the #+KEYWORDS
  223. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  224. * Clean view:: Getting rid of leading stars in the outline
  225. * TTY keys:: Using Org-mode on a tty
  226. * Interaction:: Other Emacs packages
  227. * Bugs:: Things which do not work perfectly
  228. Interaction with other packages
  229. * Cooperation:: Packages Org-mode cooperates with
  230. * Conflicts:: Packages that lead to conflicts
  231. Extensions, Hooks and Hacking
  232. * Extensions:: Existing 3rd-part extensions
  233. * Adding hyperlink types:: New custom link types
  234. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  235. * Dynamic blocks:: Automatically filled blocks
  236. * Special agenda views:: Customized views
  237. * Using the property API:: Writing programs that use entry properties
  238. Tables and Lists in arbitrary syntax
  239. * Radio tables:: Sending and receiving
  240. * A LaTeX example:: Step by step, almost a tutorial
  241. * Translator functions:: Copy and modify
  242. * Radio lists:: Doing the same for lists.
  243. 
  244. File: org, Node: Introduction, Next: Document structure, Prev: Top, Up: Top
  245. 1 Introduction
  246. **************
  247. * Menu:
  248. * Summary:: Brief summary of what Org-mode does
  249. * Installation:: How to install a downloaded version of Org-mode
  250. * Activation:: How to activate Org-mode for certain buffers.
  251. * Feedback:: Bug reports, ideas, patches etc.
  252. * Conventions:: Type-setting conventions in the manual
  253. 
  254. File: org, Node: Summary, Next: Installation, Prev: Introduction, Up: Introduction
  255. 1.1 Summary
  256. ===========
  257. Org-mode is a mode for keeping notes, maintaining TODO lists, and doing
  258. project planning with a fast and effective plain-text system.
  259. Org-mode develops organizational tasks around NOTES files that
  260. contain lists or information about projects as plain text. Org-mode is
  261. implemented on top of outline-mode, which makes it possible to keep the
  262. content of large files well structured. Visibility cycling and
  263. structure editing help to work with the tree. Tables are easily created
  264. with a built-in table editor. Org-mode supports TODO items, deadlines,
  265. time stamps, and scheduling. It dynamically compiles entries into an
  266. agenda that utilizes and smoothly integrates much of the Emacs calendar
  267. and diary. Plain text URL-like links connect to websites, emails,
  268. Usenet messages, BBDB entries, and any files related to the projects.
  269. For printing and sharing of notes, an Org-mode file can be exported as a
  270. structured ASCII file, as HTML, or (todo and agenda items only) as an
  271. iCalendar file. It can also serve as a publishing tool for a set of
  272. linked webpages.
  273. An important design aspect that distinguishes Org-mode from for
  274. example Planner/Muse is that it encourages to store every piece of
  275. information only once. In Planner, you have project pages, day pages
  276. and possibly other files, duplicating some information such as tasks.
  277. In Org-mode, you only have notes files. In your notes you mark entries
  278. as tasks, label them with tags and timestamps. All necessary lists
  279. like a schedule for the day, the agenda for a meeting, tasks lists
  280. selected by tags etc are created dynamically when you need them.
  281. Org-mode keeps simple things simple. When first fired up, it should
  282. feel like a straightforward, easy to use outliner. Complexity is not
  283. imposed, but a large amount of functionality is available when you need
  284. it. Org-mode is a toolbox and can be used in different ways, for
  285. example as:
  286. * outline extension with visibility cycling and structure editing
  287. * ASCII system and table editor for taking structured notes
  288. * ASCII table editor with spreadsheet-like capabilities
  289. * TODO list editor
  290. * full agenda and planner with deadlines and work scheduling
  291. * environment to implement David Allen's GTD system
  292. * a basic database application
  293. * simple hypertext system, with HTML and LaTeX export
  294. * publishing tool to create a set of interlinked webpages
  295. Org-mode's automatic, context sensitive table editor with spreadsheet
  296. capabilities can be integrated into any major mode by activating the
  297. minor Orgtbl-mode. Using a translation step, it can be used to maintain
  298. tables in arbitrary file types, for example in LaTeX. The structure
  299. editing and list creation capabilities can be used outside Org-mode with
  300. the minor Orgstruct-mode.
  301. There is a website for Org-mode which provides links to the newest
  302. version of Org-mode, as well as additional information, frequently asked
  303. questions (FAQ), links to tutorials etc. This page is located at
  304. `http://orgmode.org'.
  305. 
  306. File: org, Node: Installation, Next: Activation, Prev: Summary, Up: Introduction
  307. 1.2 Installation
  308. ================
  309. Important: If Org-mode is part of the Emacs distribution or an XEmacs
  310. package, please skip this section and go directly to *Note Activation::.
  311. If you have downloaded Org-mode from the Web, you must take the
  312. following steps to install it: Go into the Org-mode distribution
  313. directory and edit the top section of the file `Makefile'. You must
  314. set the name of the Emacs binary (likely either `emacs' or `xemacs'),
  315. and the paths to the directories where local Lisp and Info files are
  316. kept. If you don't have access to the system-wide directories, create
  317. your own two directories for these files, enter them into the Makefile,
  318. and make sure Emacs finds the Lisp files by adding the following line
  319. to `.emacs':
  320. (setq load-path (cons "~/path/to/lispdir" load-path))
  321. XEmacs users now need to install the file `noutline.el' from the
  322. `xemacs' subdirectory of the Org-mode distribution. Use the command:
  323. make install-noutline
  324. Now byte-compile and install the Lisp files with the shell commands:
  325. make
  326. make install
  327. If you want to install the info documentation, use this command:
  328. make install-info
  329. Then add to `.emacs':
  330. ;; This line only if org-mode is not part of the X/Emacs distribution.
  331. (require 'org-install)
  332. 
  333. File: org, Node: Activation, Next: Feedback, Prev: Installation, Up: Introduction
  334. 1.3 Activation
  335. ==============
  336. Add the following lines to your `.emacs' file. The last two lines
  337. define _global_ keys for the commands `org-store-link' and `org-agenda'
  338. - please choose suitable keys yourself.
  339. ;; The following lines are always needed. Choose your own keys.
  340. (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
  341. (global-set-key "\C-cl" 'org-store-link)
  342. (global-set-key "\C-ca" 'org-agenda)
  343. Furthermore, you must activate `font-lock-mode' in org-mode buffers,
  344. because significant functionality depends on font-locking being active.
  345. You can do this with either one of the following two lines (XEmacs
  346. user must use the second option):
  347. (global-font-lock-mode 1) ; for all buffers
  348. (add-hook 'org-mode-hook 'turn-on-font-lock) ; org-mode buffers only
  349. With this setup, all files with extension `.org' will be put into
  350. Org-mode. As an alternative, make the first line of a file look like
  351. this:
  352. MY PROJECTS -*- mode: org; -*-
  353. which will select Org-mode for this buffer no matter what the file's
  354. name is. See also the variable `org-insert-mode-line-in-empty-file'.
  355. 
  356. File: org, Node: Feedback, Next: Conventions, Prev: Activation, Up: Introduction
  357. 1.4 Feedback
  358. ============
  359. If you find problems with Org-mode, or if you have questions, remarks,
  360. or ideas about it, please contact the maintainer Carsten Dominik at
  361. <carsten at orgmode dot org>.
  362. For bug reports, please provide as much information as possible,
  363. including the version information of Emacs (`C-h v emacs-version
  364. <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
  365. Org-mode related setup in `.emacs'. If an error occurs, a backtrace
  366. can be very useful (see below on how to create one). Often a small
  367. example file helps, along with clear information about:
  368. 1. What exactly did you do?
  369. 2. What did you expect to happen?
  370. 3. What happened instead?
  371. Thank you for helping to improve this mode.
  372. How to create a useful backtrace
  373. ................................
  374. If working with Org-mode produces an error with a message you don't
  375. understand, you may have hit a bug. The best way to report this is by
  376. providing, in addition to what was mentioned above, a _Backtrace_.
  377. This is information from the built-in debugger about where and how the
  378. error occurred. Here is how to produce a useful backtrace:
  379. 1. Start a fresh Emacs or XEmacs, and make sure that it will load the
  380. original Lisp code in `org.el' instead of the compiled version in
  381. `org.elc'. The backtrace contains much more information if it is
  382. produced with uncompiled code. To do this, either rename `org.elc'
  383. to something else before starting Emacs, or ask Emacs explicitly
  384. to load `org.el' by using the command line
  385. emacs -l /path/to/org.el
  386. 2. Go to the `Options' menu and select `Enter Debugger on Error'
  387. (XEmacs has this option in the `Troubleshooting' sub-menu).
  388. 3. Do whatever you have to do to hit the error. Don't forget to
  389. document the steps you take.
  390. 4. When you hit the error, a `*Backtrace*' buffer will appear on the
  391. screen. Save this buffer to a file (for example using `C-x C-w')
  392. and attach it to your bug report.
  393. 
  394. File: org, Node: Conventions, Prev: Feedback, Up: Introduction
  395. 1.5 Typesetting conventions used in this manual
  396. ===============================================
  397. Org-mode has 3 types of keywords that are being used. TODO keywords,
  398. tags, and property names. For this manual we are using the following
  399. conventions:
  400. `TODO'
  401. `WAITING'
  402. TODO keyword are written with all capitals, even if they are
  403. user-defined.
  404. `boss'
  405. `ARCHIVE'
  406. User-defined Tags are written in lowercase, built-in tags with
  407. special meaning a all-caps.
  408. `Release'
  409. `PRIORITY'
  410. User-defined properties are capitalized in all examples, while
  411. built-in properties with special meaning are all-caps.
  412. 
  413. File: org, Node: Document structure, Next: Tables, Prev: Introduction, Up: Top
  414. 2 Document Structure
  415. ********************
  416. Org-mode is based on outline mode and provides flexible commands to
  417. edit the structure of the document.
  418. * Menu:
  419. * Outlines:: Org-mode is based on outline-mode
  420. * Headlines:: How to typeset org-tree headlines
  421. * Visibility cycling:: Show and hide, much simplified
  422. * Motion:: Jumping to other headlines
  423. * Structure editing:: Changing sequence and level of headlines
  424. * Archiving:: Move done task trees to a different place
  425. * Sparse trees:: Matches embedded in context
  426. * Plain lists:: Additional structure within an entry
  427. * Drawers:: Tucking stuff away
  428. * orgstruct-mode:: Structure editing outside Org-mode
  429. 
  430. File: org, Node: Outlines, Next: Headlines, Prev: Document structure, Up: Document structure
  431. 2.1 Outlines
  432. ============
  433. Org-mode is implemented on top of outline-mode. Outlines allow a
  434. document to be organized in a hierarchical structure, which (at least
  435. for me) is the best representation of notes and thoughts. An overview
  436. of this structure is achieved by folding (hiding) large parts of the
  437. document to show only the general document structure and the parts
  438. currently being worked on. Org-mode greatly simplifies the use of
  439. outlines by compressing the entire show/hide functionality into a single
  440. command `org-cycle', which is bound to the <TAB> key.
  441. 
  442. File: org, Node: Headlines, Next: Visibility cycling, Prev: Outlines, Up: Document structure
  443. 2.2 Headlines
  444. =============
  445. Headlines define the structure of an outline tree. The headlines in
  446. Org-mode start with one or more stars, on the left margin(1). For
  447. example:
  448. * Top level headline
  449. ** Second level
  450. *** 3rd level
  451. some text
  452. *** 3rd level
  453. more text
  454. * Another top level headline
  455. Some people find the many stars too noisy and would prefer an outline
  456. that has whitespace followed by a single star as headline starters.
  457. *Note Clean view:: describes a setup to realize this.
  458. An empty line after the end of a subtree is considered part of it and
  459. will be hidden when the subtree is folded. However, if you leave at
  460. least two empty lines, one empty line will remain visible after folding
  461. the subtree, in order to structure the collapsed view. See the
  462. variable `org-cycle-separator-lines' to modify this behavior.
  463. ---------- Footnotes ----------
  464. (1) See the variable `org-special-ctrl-a/e' to configure special
  465. behavior of `C-a' and `C-e' in headlines.
  466. 
  467. File: org, Node: Visibility cycling, Next: Motion, Prev: Headlines, Up: Document structure
  468. 2.3 Visibility cycling
  469. ======================
  470. Outlines make it possible to hide parts of the text in the buffer.
  471. Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
  472. the visibility in the buffer.
  473. `<TAB>'
  474. _Subtree cycling_: Rotate current subtree among the states
  475. ,-> FOLDED -> CHILDREN -> SUBTREE --.
  476. '-----------------------------------'
  477. The cursor must be on a headline for this to work(1). When the
  478. cursor is at the beginning of the buffer and the first line is not
  479. a headline, then <TAB> actually runs global cycling (see
  480. below)(2). Also when called with a prefix argument (`C-u <TAB>'),
  481. global cycling is invoked.
  482. `S-<TAB>'
  483. `C-u <TAB>'
  484. _Global cycling_: Rotate the entire buffer among the states
  485. ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
  486. '--------------------------------------'
  487. When `S-<TAB>' is called with a numerical prefix N, the CONTENTS
  488. view up to headlines of level N will be shown. Note that inside
  489. tables, `S-<TAB>' jumps to the previous field.
  490. `C-c C-a'
  491. Show all.
  492. `C-c C-r'
  493. Reveal context around point, showing the current entry, the
  494. following heading and the hierarchy above. Useful for working
  495. near a location exposed by a sparse tree command (*note Sparse
  496. trees::) or an agenda command (*note Agenda commands::). With
  497. prefix arg show, on each level, all sibling headings.
  498. `C-c C-x b'
  499. Show the current subtree in an indirect buffer(3). With numerical
  500. prefix ARG, go up to this level and then take that tree. If ARG is
  501. negative, go up that many levels. With `C-u' prefix, do not remove
  502. the previously used indirect buffer.
  503. When Emacs first visits an Org-mode file, the global state is set to
  504. OVERVIEW, i.e. only the top level headlines are visible. This can be
  505. configured through the variable `org-startup-folded', or on a per-file
  506. basis by adding one of the following lines anywhere in the buffer:
  507. #+STARTUP: overview
  508. #+STARTUP: content
  509. #+STARTUP: showall
  510. ---------- Footnotes ----------
  511. (1) see, however, the option `org-cycle-emulate-tab'.
  512. (2) see the option `org-cycle-global-at-bob'.
  513. (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
  514. Buffers.) will contain the entire buffer, but will be narrowed to the
  515. current tree. Editing the indirect buffer will also change the
  516. original buffer, but without affecting visibility in that buffer.
  517. 
  518. File: org, Node: Motion, Next: Structure editing, Prev: Visibility cycling, Up: Document structure
  519. 2.4 Motion
  520. ==========
  521. The following commands jump to other headlines in the buffer.
  522. `C-c C-n'
  523. Next heading.
  524. `C-c C-p'
  525. Previous heading.
  526. `C-c C-f'
  527. Next heading same level.
  528. `C-c C-b'
  529. Previous heading same level.
  530. `C-c C-u'
  531. Backward to higher level heading.
  532. `C-c C-j'
  533. Jump to a different place without changing the current outline
  534. visibility. Shows the document structure in a temporary buffer,
  535. where you can use the following keys to find your destination:
  536. <TAB> Cycle visibility.
  537. <down> / <up> Next/previous visible headline.
  538. n / p Next/previous visible headline.
  539. f / b Next/previous headline same level.
  540. u One level up.
  541. 0-9 Digit argument.
  542. <RET> Select this location.
  543. 
  544. File: org, Node: Structure editing, Next: Archiving, Prev: Motion, Up: Document structure
  545. 2.5 Structure editing
  546. =====================
  547. `M-<RET>'
  548. Insert new heading with same level as current. If the cursor is
  549. in a plain list item, a new item is created (*note Plain lists::).
  550. To force creation of a new headline, use a prefix arg, or first
  551. press <RET> to get to the beginning of the next line. When this
  552. command is used in the middle of a line, the line is split and the
  553. rest of the line becomes the new headline. If the command is used
  554. at the beginning of a headline, the new headline is created before
  555. the current line. If at the beginning of any other line, the
  556. content of that line is made the new heading. If the command is
  557. used at the end of a folded subtree (i.e. behind the ellipses at
  558. the end of a headline), then a headline like the current one will
  559. be inserted after the end of the subtree.
  560. `C-<RET>'
  561. Insert a new heading after the current subtree, same level as the
  562. current headline. This command works from anywhere in the entry.
  563. `M-S-<RET>'
  564. Insert new TODO entry with same level as current heading.
  565. `M-<left>'
  566. Promote current heading by one level.
  567. `M-<right>'
  568. Demote current heading by one level.
  569. `M-S-<left>'
  570. Promote the current subtree by one level.
  571. `M-S-<right>'
  572. Demote the current subtree by one level.
  573. `M-S-<up>'
  574. Move subtree up (swap with previous subtree of same level).
  575. `M-S-<down>'
  576. Move subtree down (swap with next subtree of same level).
  577. `C-c C-x C-w'
  578. `C-c C-x C-k'
  579. Kill subtree, i.e. remove it from buffer but save in kill ring.
  580. With prefix arg, kill N sequential subtrees.
  581. `C-c C-x M-w'
  582. Copy subtree to kill ring. With prefix arg, copy N sequential
  583. subtrees.
  584. `C-c C-x C-y'
  585. Yank subtree from kill ring. This does modify the level of the
  586. subtree to make sure the tree fits in nicely at the yank position.
  587. The yank level can also be specified with a prefix arg, or by
  588. yanking after a headline marker like `****'.
  589. `C-c C-w'
  590. Refile entry to a different location. *Note Refiling notes::.
  591. `C-c ^'
  592. Sort same-level entries. When there is an active region, all
  593. entries in the region will be sorted. Otherwise the children of
  594. the current headline are sorted. The command prompts for the
  595. sorting method, which can be alphabetically, numerically, by time
  596. (using the first time stamp in each entry), by priority, and each
  597. of these in reverse order. You can also supply your own function
  598. to extract the sorting key. With a `C-u' prefix, sorting will be
  599. case-sensitive. With two `C-u C-u' prefixes, duplicate entries
  600. will also be removed.
  601. When there is an active region (transient-mark-mode), promotion and
  602. demotion work on all headlines in the region. To select a region of
  603. headlines, it is best to place both point and mark at the beginning of a
  604. line, mark at the beginning of the first headline, and point at the line
  605. just after the last headline to change. Note that when the cursor is
  606. inside a table (*note Tables::), the Meta-Cursor keys have different
  607. functionality.
  608. 
  609. File: org, Node: Archiving, Next: Sparse trees, Prev: Structure editing, Up: Document structure
  610. 2.6 Archiving
  611. =============
  612. When a project represented by a (sub)tree is finished, you may want to
  613. move the tree out of the way and to stop it from contributing to the
  614. agenda. Org-mode knows two ways of archiving. You can mark a tree with
  615. the ARCHIVE tag, or you can move an entire (sub)tree to a different
  616. location.
  617. * Menu:
  618. * ARCHIVE tag:: Marking a tree as inactive
  619. * Moving subtrees:: Moving a tree to an archive file
  620. 
  621. File: org, Node: ARCHIVE tag, Next: Moving subtrees, Prev: Archiving, Up: Archiving
  622. 2.6.1 The ARCHIVE tag
  623. ---------------------
  624. A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
  625. its location in the outline tree, but behaves in the following way:
  626. - It does not open when you attempt to do so with a visibility
  627. cycling command (*note Visibility cycling::). You can force
  628. cycling archived subtrees with `C-<TAB>', or by setting the option
  629. `org-cycle-open-archived-trees'. Also normal outline commands like
  630. `show-all' will open archived subtrees.
  631. - During sparse tree construction (*note Sparse trees::), matches in
  632. archived subtrees are not exposed, unless you configure the option
  633. `org-sparse-tree-open-archived-trees'.
  634. - During agenda view construction (*note Agenda views::), the
  635. content of archived trees is ignored unless you configure the
  636. option `org-agenda-skip-archived-trees'.
  637. - Archived trees are not exported (*note Exporting::), only the
  638. headline is. Configure the details using the variable
  639. `org-export-with-archived-trees'.
  640. The following commands help managing the ARCHIVE tag:
  641. `C-c C-x C-a'
  642. Toggle the ARCHIVE tag for the current headline. When the tag is
  643. set, the headline changes to a shadowish face, and the subtree
  644. below it is hidden.
  645. `C-u C-c C-x C-a'
  646. Check if any direct children of the current headline should be
  647. archived. To do this, each subtree is checked for open TODO
  648. entries. If none are found, the command offers to set the ARCHIVE
  649. tag for the child. If the cursor is _not_ on a headline when this
  650. command is invoked, the level 1 trees will be checked.
  651. `C-TAB'
  652. Cycle a tree even if it is tagged with ARCHIVE.
  653. 
  654. File: org, Node: Moving subtrees, Prev: ARCHIVE tag, Up: Archiving
  655. 2.6.2 Moving subtrees
  656. ---------------------
  657. Once an entire project is finished, you may want to move it to a
  658. different location, either in the current file, or even in a different
  659. file, the archive file.
  660. `C-c C-x C-s'
  661. Archive the subtree starting at the cursor position to the location
  662. given by `org-archive-location'. Context information that could be
  663. lost like the file name, the category, inherited tags, and the todo
  664. state will be store as properties in the entry.
  665. `C-u C-c C-x C-s'
  666. Check if any direct children of the current headline could be
  667. moved to the archive. To do this, each subtree is checked for
  668. open TODO entries. If none are found, the command offers to move
  669. it to the archive location. If the cursor is _not_ on a headline
  670. when this command is invoked, the level 1 trees will be checked.
  671. The default archive location is a file in the same directory as the
  672. current file, with the name derived by appending `_archive' to the
  673. current file name. For information and examples on how to change this,
  674. see the documentation string of the variable `org-archive-location'.
  675. There is also an in-buffer option for setting this variable, for
  676. example(1):
  677. #+ARCHIVE: %s_done::
  678. If you would like to have a special ARCHIVE location for a single entry
  679. or a (sub)tree, give the entry an `:ARCHIVE:' property with the
  680. location as the value (*note Properties and columns::).
  681. ---------- Footnotes ----------
  682. (1) For backward compatibility, the following also works: If there
  683. are several such lines in a file, each specifies the archive location
  684. for the text below it. The first such line also applies to any text
  685. before its definition. However, using this method is _strongly_
  686. deprecated as it is incompatible with the outline structure of the
  687. document. The correct method for setting multiple archive locations in
  688. a buffer is using a property.
  689. 
  690. File: org, Node: Sparse trees, Next: Plain lists, Prev: Archiving, Up: Document structure
  691. 2.7 Sparse trees
  692. ================
  693. An important feature of Org-mode is the ability to construct _sparse
  694. trees_ for selected information in an outline tree. A sparse tree
  695. means that the entire document is folded as much as possible, but the
  696. selected information is made visible along with the headline structure
  697. above it(1). Just try it out and you will see immediately how it works.
  698. Org-mode contains several commands creating such trees, all these
  699. commands can be accessed through a dispatcher:
  700. `C-c /'
  701. This prompts for an extra key to select a sparse-tree creating
  702. command.
  703. `C-c / r'
  704. Occur. Prompts for a regexp and shows a sparse tree with all
  705. matches. If the match is in a headline, the headline is made
  706. visible. If the match is in the body of an entry, headline and
  707. body are made visible. In order to provide minimal context, also
  708. the full hierarchy of headlines above the match is shown, as well
  709. as the headline following the match. Each match is also
  710. highlighted; the highlights disappear when the buffer is changed
  711. by an editing command, or by pressing `C-c C-c'. When called with
  712. a `C-u' prefix argument, previous highlights are kept, so several
  713. calls to this command can be stacked.
  714. For frequently used sparse trees of specific search strings, you can
  715. use the variable `org-agenda-custom-commands' to define fast keyboard
  716. access to specific sparse trees. These commands will then be
  717. accessible through the agenda dispatcher (*note Agenda dispatcher::).
  718. For example:
  719. (setq org-agenda-custom-commands
  720. '(("f" occur-tree "FIXME")))
  721. will define the key `C-c a f' as a shortcut for creating a sparse tree
  722. matching the string `FIXME'.
  723. The other sparse tree commands select headings based on TODO
  724. keywords, tags, or properties and will be discussed later in this
  725. manual.
  726. To print a sparse tree, you can use the Emacs command
  727. `ps-print-buffer-with-faces' which does not print invisible parts of
  728. the document (2). Or you can use the command `C-c C-e v' to export
  729. only the visible part of the document and print the resulting file.
  730. ---------- Footnotes ----------
  731. (1) See also the variables `org-show-hierarchy-above',
  732. `org-show-following-heading', and `org-show-siblings' for detailed
  733. control on how much context is shown around each match.
  734. (2) This does not work under XEmacs, because XEmacs uses selective
  735. display for outlining, not text properties.
  736. 
  737. File: org, Node: Plain lists, Next: Drawers, Prev: Sparse trees, Up: Document structure
  738. 2.8 Plain lists
  739. ===============
  740. Within an entry of the outline tree, hand-formatted lists can provide
  741. additional structure. They also provide a way to create lists of
  742. checkboxes (*note Checkboxes::). Org-mode supports editing such lists,
  743. and the HTML exporter (*note Exporting::) does parse and format them.
  744. Org-mode knows ordered and unordered lists. Unordered list items
  745. start with `-', `+', or `*'(1) as bullets. Ordered list items start
  746. with `1.' or `1)'. Items belonging to the same list must have the same
  747. indentation on the first line. In particular, if an ordered list
  748. reaches number `10.', then the 2-digit numbers must be written
  749. left-aligned with the other numbers in the list. Indentation also
  750. determines the end of a list item. It ends before the next line that
  751. is indented like the bullet/number, or less. Empty lines are part of
  752. the previous item, so you can have several paragraphs in one item. If
  753. you would like an empty line to terminate all currently open plain
  754. lists, configure the variable `org-empty-line-terminates-plain-lists'.
  755. Here is an example:
  756. ** Lord of the Rings
  757. My favorite scenes are (in this order)
  758. 1. The attack of the Rohirrim
  759. 2. Eowyns fight with the witch king
  760. + this was already my favorite scene in the book
  761. + I really like Miranda Otto.
  762. 3. Peter Jackson being shot by Legolas
  763. - on DVD only
  764. He makes a really funny face when it happens.
  765. But in the end, not individual scenes matter but the film as a whole.
  766. Org-mode supports these lists by tuning filling and wrapping
  767. commands to deal with them correctly(2).
  768. The following commands act on items when the cursor is in the first
  769. line of an item (the line with the bullet or number).
  770. `<TAB>'
  771. Items can be folded just like headline levels if you set the
  772. variable `org-cycle-include-plain-lists'. The level of an item is
  773. then given by the indentation of the bullet/number. Items are
  774. always subordinate to real headlines, however; the hierarchies
  775. remain completely separated.
  776. If `org-cycle-include-plain-lists' has not been set, <TAB> fixes
  777. the indentation of the curent line in a heuristic way.
  778. `M-<RET>'
  779. Insert new item at current level. With prefix arg, force a new
  780. heading (*note Structure editing::). If this command is used in
  781. the middle of a line, the line is _split_ and the rest of the line
  782. becomes the new item. If this command is executed in the
  783. _whitespace before a bullet or number_, the new item is created
  784. _before_ the current item. If the command is executed in the
  785. white space before the text that is part of an item but does not
  786. contain the bullet, a bullet is added to the current line.
  787. `M-S-<RET>'
  788. Insert a new item with a checkbox (*note Checkboxes::).
  789. `S-<up>'
  790. `S-<down>'
  791. Jump to the previous/next item in the current list.
  792. `M-S-<up>'
  793. `M-S-<down>'
  794. Move the item including subitems up/down (swap with previous/next
  795. item of same indentation). If the list is ordered, renumbering is
  796. automatic.
  797. `M-S-<left>'
  798. `M-S-<right>'
  799. Decrease/increase the indentation of the item, including subitems.
  800. Initially, the item tree is selected based on current indentation.
  801. When these commands are executed several times in direct
  802. succession, the initially selected region is used, even if the new
  803. indentation would imply a different hierarchy. To use the new
  804. hierarchy, break the command chain with a cursor motion or so.
  805. `C-c C-c'
  806. If there is a checkbox (*note Checkboxes::) in the item line,
  807. toggle the state of the checkbox. If not, make this command makes
  808. sure that all the items on this list level use the same bullet.
  809. Furthermore, if this is an ordered list, make sure the numbering
  810. is ok.
  811. `C-c -'
  812. Cycle the entire list level through the different itemize/enumerate
  813. bullets (`-', `+', `*', `1.', `1)'). With prefix arg, select the
  814. nth bullet from this list.
  815. ---------- Footnotes ----------
  816. (1) When using `*' as a bullet, lines must be indented or they will
  817. be seen as top-level headlines. Also, when you are hiding leading
  818. stars to get a clean outline view, plain list items starting with a
  819. star are visually indistinguishable from true headlines. In short:
  820. even though `*' is supported, it may be better not to use it for plain
  821. list items.
  822. (2) Org-mode only changes the filling settings for Emacs. For
  823. XEmacs, you should use Kyle E. Jones' `filladapt.el'. To turn this on,
  824. put into `.emacs': `(require 'filladapt)'
  825. 
  826. File: org, Node: Drawers, Next: orgstruct-mode, Prev: Plain lists, Up: Document structure
  827. 2.9 Drawers
  828. ===========
  829. Sometimes you want to keep information associated with an entry, but you
  830. normally don't want to see it. For this, Org-mode has _drawers_.
  831. Drawers need to be configured with the variable `org-drawers'(1), and
  832. look like this:
  833. ** This is a headline
  834. Still outside the drawer
  835. :DRAWERNAME:
  836. This is inside the drawer.
  837. :END:
  838. After the drawer.
  839. Visibility cycling (*note Visibility cycling::) on the headline will
  840. hide and show the entry, but keep the drawer collapsed to a single line.
  841. In order to look inside the drawer, you need to move the cursor to the
  842. drawer line and press <TAB> there. Org-mode uses a drawer for storing
  843. properties (*note Properties and columns::).
  844. ---------- Footnotes ----------
  845. (1) You can define drawers on a per-file basis with a line like
  846. `#+DRAWERS: HIDDEN PROPPERTIES STATE'
  847. 
  848. File: org, Node: orgstruct-mode, Prev: Drawers, Up: Document structure
  849. 2.10 The Orgstruct minor mode
  850. =============================
  851. If you like the intuitive way the Org-mode structure editing and list
  852. formatting works, you might want to use these commands in other modes
  853. like text-mode or mail-mode as well. The minor mode Orgstruct-mode
  854. makes this possible. You can always toggle the mode with `M-x
  855. orgstruct-mode'. To turn it on by default, for example in mail mode,
  856. use
  857. (add-hook 'mail-mode-hook 'turn-on-orgstruct)
  858. When this mode is active and the cursor is on a line that looks to
  859. Org-mode like a headline of the first line of a list item, most
  860. structure editing commands will work, even if the same keys normally
  861. have different functionality in the major mode you are using. If the
  862. cursor is not in one of those special lines, Orgstruct-mode lurks
  863. silently in the shadow.
  864. 
  865. File: org, Node: Tables, Next: Hyperlinks, Prev: Document structure, Up: Top
  866. 3 Tables
  867. ********
  868. Org-mode has a very fast and intuitive table editor built-in.
  869. Spreadsheet-like calculations are supported in connection with the
  870. Emacs `calc' package.
  871. * Menu:
  872. * Built-in table editor:: Simple tables
  873. * Narrow columns:: Stop wasting space in tables
  874. * Column groups:: Grouping to trigger vertical lines
  875. * orgtbl-mode:: The table editor as minor mode
  876. * The spreadsheet:: The table editor has spreadsheet capabilities.
  877. 
  878. File: org, Node: Built-in table editor, Next: Narrow columns, Prev: Tables, Up: Tables
  879. 3.1 The built-in table editor
  880. =============================
  881. Org-mode makes it easy to format tables in plain ASCII. Any line with
  882. `|' as the first non-whitespace character is considered part of a
  883. table. `|' is also the column separator. A table might look like this:
  884. | Name | Phone | Age |
  885. |-------+-------+-----|
  886. | Peter | 1234 | 17 |
  887. | Anna | 4321 | 25 |
  888. A table is re-aligned automatically each time you press <TAB> or
  889. <RET> or `C-c C-c' inside the table. <TAB> also moves to the next
  890. field (<RET> to the next row) and creates new table rows at the end of
  891. the table or before horizontal lines. The indentation of the table is
  892. set by the first line. Any line starting with `|-' is considered as a
  893. horizontal separator line and will be expanded on the next re-align to
  894. span the whole table width. So, to create the above table, you would
  895. only type
  896. |Name|Phone|Age|
  897. |-
  898. and then press <TAB> to align the table and start filling in fields.
  899. When typing text into a field, Org-mode treats <DEL>, <Backspace>,
  900. and all character keys in a special way, so that inserting and deleting
  901. avoids shifting other fields. Also, when typing _immediately after the
  902. cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
  903. the field is automatically made blank. If this behavior is too
  904. unpredictable for you, configure the variables
  905. `org-enable-table-editor' and `org-table-auto-blank-field'.
  906. Creation and conversion
  907. .......................
  908. `C-c |'
  909. Convert the active region to table. If every line contains at
  910. least one TAB character, the function assumes that the material is
  911. tab separated. If every line contains a comma, comma-separated
  912. values (CSV) are assumed. If not, lines are split at whitespace
  913. into fields. You can use a prefix argument to force a specific
  914. separator: `C-u' forces CSV, `C-u C-u' forces TAB, and a numeric
  915. argument N indicates that at least N consequtive spaces, or
  916. alternatively a TAB will be the separator.
  917. If there is no active region, this command creates an empty
  918. Org-mode table. But it's easier just to start typing, like
  919. `|Name|Phone|Age <RET> |- <TAB>'.
  920. Re-aligning and field motion
  921. ............................
  922. `C-c C-c'
  923. Re-align the table without moving the cursor.
  924. `<TAB>'
  925. Re-align the table, move to the next field. Creates a new row if
  926. necessary.
  927. `S-<TAB>'
  928. Re-align, move to previous field.
  929. `<RET>'
  930. Re-align the table and move down to next row. Creates a new row if
  931. necessary. At the beginning or end of a line, <RET> still does
  932. NEWLINE, so it can be used to split a table.
  933. Column and row editing
  934. ......................
  935. `M-<left>'
  936. `M-<right>'
  937. Move the current column left/right.
  938. `M-S-<left>'
  939. Kill the current column.
  940. `M-S-<right>'
  941. Insert a new column to the left of the cursor position.
  942. `M-<up>'
  943. `M-<down>'
  944. Move the current row up/down.
  945. `M-S-<up>'
  946. Kill the current row or horizontal line.
  947. `M-S-<down>'
  948. Insert a new row above (with arg: below) the current row.
  949. `C-c -'
  950. Insert a horizontal line below current row. With prefix arg, the
  951. line is created above the current line.
  952. `C-c ^'
  953. Sort the table lines in the region. The position of point
  954. indicates the column to be used for sorting, and the range of
  955. lines is the range between the nearest horizontal separator lines,
  956. or the entire table. If point is before the first column, you
  957. will be prompted for the sorting column. If there is an active
  958. region, the mark specifies the first line and the sorting column,
  959. while point should be in the last line to be included into the
  960. sorting. The command prompts for the sorting type
  961. (alphabetically, numerically, or by time). When called with a
  962. prefix argument, alphabetic sorting will be case-sensitive.
  963. Regions
  964. .......
  965. `C-c C-x M-w'
  966. Copy a rectangular region from a table to a special clipboard.
  967. Point and mark determine edge fields of the rectangle. The
  968. process ignores horizontal separator lines.
  969. `C-c C-x C-w'
  970. Copy a rectangular region from a table to a special clipboard, and
  971. blank all fields in the rectangle. So this is the "cut" operation.
  972. `C-c C-x C-y'
  973. Paste a rectangular region into a table. The upper right corner
  974. ends up in the current field. All involved fields will be
  975. overwritten. If the rectangle does not fit into the present table,
  976. the table is enlarged as needed. The process ignores horizontal
  977. separator lines.
  978. `C-c C-q'
  979. Wrap several fields in a column like a paragraph. If there is an
  980. active region, and both point and mark are in the same column, the
  981. text in the column is wrapped to minimum width for the given
  982. number of lines. A prefix ARG may be used to change the number of
  983. desired lines. If there is no region, the current field is split
  984. at the cursor position and the text fragment to the right of the
  985. cursor is prepended to the field one line down. If there is no
  986. region, but you specify a prefix ARG, the current field is made
  987. blank, and the content is appended to the field above.
  988. Calculations
  989. ............
  990. `C-c +'
  991. Sum the numbers in the current column, or in the rectangle defined
  992. by the active region. The result is shown in the echo area and can
  993. be inserted with `C-y'.
  994. `S-<RET>'
  995. When current field is empty, copy from first non-empty field above.
  996. When not empty, copy current field down to next row and move cursor
  997. along with it. Depending on the variable
  998. `org-table-copy-increment', integer field values will be
  999. incremented during copy. This key is also used by CUA-mode (*note
  1000. Cooperation::).
  1001. Miscellaneous
  1002. .............
  1003. `C-c `'
  1004. Edit the current field in a separate window. This is useful for
  1005. fields that are not fully visible (*note Narrow columns::). When
  1006. called with a `C-u' prefix, just make the full field visible, so
  1007. that it can be edited in place.
  1008. `C-c <TAB>'
  1009. This is an alias for `C-u C-c `' to make the current field fully
  1010. visible.
  1011. `M-x org-table-import'
  1012. Import a file as a table. The table should be TAB- or whitespace
  1013. separated. Useful, for example, to import a spreadsheet table or
  1014. data from a database, because these programs generally can write
  1015. TAB-separated text files. This command works by inserting the
  1016. file into the buffer and then converting the region to a table.
  1017. Any prefix argument is passed on to the converter, which uses it
  1018. to determine the separator.
  1019. `C-c |'
  1020. Tables can also be imported by pasting tabular text into the
  1021. org-mode buffer, selecting the pasted text with `C-x C-x' and then
  1022. using the `C-c |' command (see above under Creation and conversion.
  1023. `M-x org-table-export'
  1024. Export the table as a TAB-separated file. Useful for data
  1025. exchange with, for example, spreadsheet or database programs.
  1026. If you don't like the automatic table editor because it gets in your
  1027. way on lines which you would like to start with `|', you can turn it
  1028. off with
  1029. (setq org-enable-table-editor nil)
  1030. Then the only table command that still works is `C-c C-c' to do a
  1031. manual re-align.
  1032. 
  1033. File: org, Node: Narrow columns, Next: Column groups, Prev: Built-in table editor, Up: Tables
  1034. 3.2 Narrow columns
  1035. ==================
  1036. The width of columns is automatically determined by the table editor.
  1037. Sometimes a single field or a few fields need to carry more text,
  1038. leading to inconveniently wide columns. To limit(1) the width of a
  1039. column, one field anywhere in the column may contain just the string
  1040. `<N>' where `N' is an integer specifying the width of the column in
  1041. characters. The next re-align will then set the width of this column
  1042. to no more than this value.
  1043. |---+------------------------------| |---+--------|
  1044. | | | | | <6> |
  1045. | 1 | one | | 1 | one |
  1046. | 2 | two | ----\ | 2 | two |
  1047. | 3 | This is a long chunk of text | ----/ | 3 | This=> |
  1048. | 4 | four | | 4 | four |
  1049. |---+------------------------------| |---+--------|
  1050. Fields that are wider become clipped and end in the string `=>'. Note
  1051. that the full text is still in the buffer, it is only invisible. To
  1052. see the full text, hold the mouse over the field - a tool-tip window
  1053. will show the full content. To edit such a field, use the command `C-c
  1054. `' (that is `C-c' followed by the backquote). This will open a new
  1055. window with the full field. Edit it and finish with `C-c C-c'.
  1056. When visiting a file containing a table with narrowed columns, the
  1057. necessary character hiding has not yet happened, and the table needs to
  1058. be aligned before it looks nice. Setting the option
  1059. `org-startup-align-all-tables' will realign all tables in a file upon
  1060. visiting, but also slow down startup. You can also set this option on
  1061. a per-file basis with:
  1062. #+STARTUP: align
  1063. #+STARTUP: noalign
  1064. ---------- Footnotes ----------
  1065. (1) This feature does not work on XEmacs.
  1066. 
  1067. File: org, Node: Column groups, Next: orgtbl-mode, Prev: Narrow columns, Up: Tables
  1068. 3.3 Column groups
  1069. =================
  1070. When Org-mode exports tables, it does so by default without vertical
  1071. lines because that is visually more satisfying in general. Occasionally
  1072. however, vertical lines can be useful to structure a table into groups
  1073. of columns, much like horizontal lines can do for groups of rows. In
  1074. order to specify column groups, you can use a special row where the
  1075. first field contains only `/'. The further fields can either contain
  1076. `<' to indicate that this column should start a group, `>' to indicate
  1077. the end of a column, or `<>' to make a column a group of its own.
  1078. Boundaries between colum groups will upon export be marked with
  1079. vertical lines. Here is an example:
  1080. | | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
  1081. |---+----+-----+-----+-----+---------+------------|
  1082. | / | <> | < | | > | < | > |
  1083. | # | 1 | 1 | 1 | 1 | 1 | 1 |
  1084. | # | 2 | 4 | 8 | 16 | 1.4142 | 1.1892 |
  1085. | # | 3 | 9 | 27 | 81 | 1.7321 | 1.3161 |
  1086. |---+----+-----+-----+-----+---------+------------|
  1087. #+TBLFM: $3=$2^2::$4=$2^3::$5=$2^4::$6=sqrt($2)::$7=sqrt(sqrt(($2))
  1088. It is also sufficient to just insert the colum group starters after
  1089. every vertical line you'd like to have:
  1090. | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
  1091. |----+-----+-----+-----+---------+------------|
  1092. | / | < | | | < | |
  1093. 
  1094. File: org, Node: orgtbl-mode, Next: The spreadsheet, Prev: Column groups, Up: Tables
  1095. 3.4 The Orgtbl minor mode
  1096. =========================
  1097. If you like the intuitive way the Org-mode table editor works, you
  1098. might also want to use it in other modes like text-mode or mail-mode.
  1099. The minor mode Orgtbl-mode makes this possible. You can always toggle
  1100. the mode with `M-x orgtbl-mode'. To turn it on by default, for example
  1101. in mail mode, use
  1102. (add-hook 'mail-mode-hook 'turn-on-orgtbl)
  1103. Furthermore, with some special setup, it is possible to maintain
  1104. tables in arbitrary syntax with Orgtbl-mode. For example, it is
  1105. possible to construct LaTeX tables with the underlying ease and power of
  1106. Orgtbl-mode, including spreadsheet capabilities. For details, see
  1107. *Note Tables in arbitrary syntax::.
  1108. 
  1109. File: org, Node: The spreadsheet, Prev: orgtbl-mode, Up: Tables
  1110. 3.5 The spreadsheet
  1111. ===================
  1112. The table editor makes use of the Emacs `calc' package to implement
  1113. spreadsheet-like capabilities. It can also evaluate Emacs Lisp forms to
  1114. derive fields from other fields. While fully featured, Org-mode's
  1115. implementation is not identical to other spreadsheets. For example,
  1116. Org-mode knows the concept of a _column formula_ that will be applied
  1117. to all non-header fields in a column without having to copy the formula
  1118. to each relevant field.
  1119. * Menu:
  1120. * References:: How to refer to another field or range
  1121. * Formula syntax for Calc:: Using Calc to compute stuff
  1122. * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
  1123. * Field formulas:: Formulas valid for a single field
  1124. * Column formulas:: Formulas valid for an entire column
  1125. * Editing and debugging formulas:: Fixing formulas
  1126. * Updating the table:: Recomputing all dependent fields
  1127. * Advanced features:: Field names, parameters and automatic recalc
  1128. 
  1129. File: org, Node: References, Next: Formula syntax for Calc, Prev: The spreadsheet, Up: The spreadsheet
  1130. 3.5.1 References
  1131. ----------------
  1132. To compute fields in the table from other fields, formulas must
  1133. reference other fields or ranges. In Org-mode, fields can be referenced
  1134. by name, by absolute coordinates, and by relative coordinates. To find
  1135. out what the coordinates of a field are, press `C-c ?' in that field,
  1136. or press `C-c }' to toggle the display of a grid.
  1137. Field references
  1138. ................
  1139. Formulas can reference the value of another field in two ways. Like in
  1140. any other spreadsheet, you may reference fields with a letter/number
  1141. combination like `B3', meaning the 2nd field in the 3rd row.
  1142. Org-mode also uses another, more general operator that looks like this:
  1143. @row$column
  1144. Column references can be absolute like `1', `2',...`N', or relative to
  1145. the current column like `+1' or `-2'.
  1146. The row specification only counts data lines and ignores horizontal
  1147. separator lines (hlines). You can use absolute row numbers `1'...`N',
  1148. and row numbers relative to the current row like `+3' or `-1'. Or
  1149. specify the row relative to one of the hlines: `I' refers to the first
  1150. hline(1), `II' to the second etc. `-I' refers to the first such line
  1151. above the current line, `+I' to the first such line below the current
  1152. line. You can also write `III+2' which is the second data line after
  1153. the third hline in the table. Relative row numbers like `-3' will not
  1154. cross hlines if the current line is too close to the hline. Instead,
  1155. the value directly at the hline is used.
  1156. `0' refers to the current row and column. Also, if you omit either
  1157. the column or the row part of the reference, the current row/column is
  1158. implied.
  1159. Org-mode's references with _unsigned_ numbers are fixed references
  1160. in the sense that if you use the same reference in the formula for two
  1161. different fields, the same field will be referenced each time.
  1162. Org-mode's references with _signed_ numbers are floating references
  1163. because the same reference operator can reference different fields
  1164. depending on the field being calculated by the formula.
  1165. Here are a few examples:
  1166. @2$3 2nd row, 3rd column
  1167. C2 same as previous
  1168. $5 column 5 in the current row
  1169. E& same as previous
  1170. @2 current column, row 2
  1171. @-1$-3 the field one row up, three columns to the left
  1172. @-I$2 field just under hline above current row, column 2
  1173. Range references
  1174. ................
  1175. You may reference a rectangular range of fields by specifying two field
  1176. references connected by two dots `..'. If both fields are in the
  1177. current row, you may simply use `$2..$7', but if at least one field is
  1178. in a different row, you need to use the general `@row$column' format at
  1179. least for the first field (i.e the reference must start with `@' in
  1180. order to be interpreted correctly). Examples:
  1181. $1..$3 First three fields in the current row.
  1182. $P..$Q Range, using column names (see under Advanced)
  1183. @2$1..@4$3 6 fields between these two fields.
  1184. A2..C4 Same as above.
  1185. @-1$-2..@-1 3 numbers from the column to the left, 2 up to current row
  1186. Range references return a vector of values that can be fed into Calc
  1187. vector functions. Empty fields in ranges are normally suppressed, so
  1188. that the vector contains only the non-empty fields (but see the `E'
  1189. mode switch below). If there are no non-empty fields, `[0]' is
  1190. returned to avoid syntax errors in formulas.
  1191. Named references
  1192. ................
  1193. `$name' is interpreted as the name of a column, parameter or constant.
  1194. Constants are defined globally through the variable
  1195. `org-table-formula-constants', and locally (for the file) through a
  1196. line like
  1197. #+CONSTANTS: c=299792458. pi=3.14 eps=2.4e-6
  1198. Also properties (*note Properties and columns::) can be used as
  1199. constants in table formulas: For a property `:XYZ:' use the name
  1200. `$PROP_XYZ', and the property will be searched in the current outline
  1201. entry and in the hierarchy above it. If you have the `constants.el'
  1202. package, it will also be used to resolve constants, including natural
  1203. constants like `$h' for Planck's constant, and units like `$km' for
  1204. kilometers(2). Column names and parameters can be specified in special
  1205. table lines. These are described below, see *Note Advanced features::.
  1206. All names must start with a letter, and further consist of letters and
  1207. numbers.
  1208. ---------- Footnotes ----------
  1209. (1) Note that only hlines are counted that _separate_ table lines.
  1210. If the table starts with a hline above the header, it does not count.
  1211. (2) `Constant.el' can supply the values of constants in two
  1212. different unit systems, `SI' and `cgs'. Which one is used depends on
  1213. the value of the variable `constants-unit-system'. You can use the
  1214. `#+STARTUP' options `constSI' and `constcgs' to set this value for the
  1215. current buffer.
  1216. 
  1217. File: org, Node: Formula syntax for Calc, Next: Formula syntax for Lisp, Prev: References, Up: The spreadsheet
  1218. 3.5.2 Formula syntax for Calc
  1219. -----------------------------
  1220. A formula can be any algebraic expression understood by the Emacs
  1221. `Calc' package. Note that `calc' has the non-standard convention that
  1222. `/' has lower precedence than `*', so that `a/b*c' is interpreted as
  1223. `a/(b*c)'. Before evaluation by `calc-eval' (*note calc-eval:
  1224. (calc)Calling Calc from Your Programs.), variable substitution takes
  1225. place according to the rules described above. The range vectors can be
  1226. directly fed into the calc vector functions like `vmean' and `vsum'.
  1227. A formula can contain an optional mode string after a semicolon.
  1228. This string consists of flags to influence Calc and other modes during
  1229. execution. By default, Org-mode uses the standard calc modes (precision
  1230. 12, angular units degrees, fraction and symbolic modes off. The display
  1231. format, however, has been changed to `(float 5)' to keep tables
  1232. compact. The default settings can be configured using the variable
  1233. `org-calc-default-modes'.
  1234. p20 switch the internal precision to 20 digits
  1235. n3 s3 e2 f4 normal, scientific, engineering, or fixed display format
  1236. D R angle modes: degrees, radians
  1237. F S fraction and symbolic modes
  1238. N interpret all fields as numbers, use 0 for non-numbers
  1239. T force text interpretation
  1240. E keep empty fields in ranges
  1241. In addition, you may provide a `printf' format specifier to reformat
  1242. the final result. A few examples:
  1243. $1+$2 Sum of first and second field
  1244. $1+$2;%.2f Same, format result to two decimals
  1245. exp($2)+exp($1) Math functions can be used
  1246. $0;%.1f Reformat current cell to 1 decimal
  1247. ($3-32)*5/9 Degrees F -> C conversion
  1248. $c/$1/$cm Hz -> cm conversion, using `constants.el'
  1249. tan($1);Dp3s1 Compute in degrees, precision 3, display SCI 1
  1250. sin($1);Dp3%.1e Same, but use printf specifier for display
  1251. vmean($2..$7) Compute column range mean, using vector function
  1252. vmean($2..$7);EN Same, but treat empty fields as 0
  1253. taylor($3,x=7,2) taylor series of $3, at x=7, second degree
  1254. Calc also contains a complete set of logical operations. For example
  1255. if($1<20,teen,string("")) "teen" if age $1 less than 20, else empty
  1256. 
  1257. File: org, Node: Formula syntax for Lisp, Next: Field formulas, Prev: Formula syntax for Calc, Up: The spreadsheet
  1258. 3.5.3 Emacs Lisp forms as formulas
  1259. ----------------------------------
  1260. It is also possible to write a formula in Emacs Lisp; this can be useful
  1261. for string manipulation and control structures, if the Calc's
  1262. functionality is not enough. If a formula starts with a single quote
  1263. followed by an opening parenthesis, then it is evaluated as a lisp form.
  1264. The evaluation should return either a string or a number. Just as with
  1265. `calc' formulas, you can specify modes and a printf format after a
  1266. semicolon. With Emacs Lisp forms, you need to be concious about the way
  1267. field references are interpolated into the form. By default, a
  1268. reference will be interpolated as a Lisp string (in double quotes)
  1269. containing the field. If you provide the `N' mode switch, all
  1270. referenced elements will be numbers (non-number fields will be zero) and
  1271. interpolated as Lisp numbers, without quotes. If you provide the `L'
  1272. flag, all fields will be interpolated literally, without quotes. I.e.,
  1273. if you want a reference to be interpreted as a string by the Lisp form,
  1274. enclode the reference operator itself in double quotes, like `"$3"'.
  1275. Ranges are inserted as space-separated fields, so you can embed them in
  1276. list or vector syntax. A few examples, note how the `N' mode is used
  1277. when we do computations in lisp.
  1278. Swap the first two characters of the content of column 1
  1279. '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
  1280. Add columns 1 and 2, equivalent to the Calc's `$1+$2'
  1281. '(+ $1 $2);N
  1282. Compute the sum of columns 1-4, like Calc's `vsum($1..$4)'
  1283. '(apply '+ '($1..$4));N
  1284. 
  1285. File: org, Node: Field formulas, Next: Column formulas, Prev: Formula syntax for Lisp, Up: The spreadsheet
  1286. 3.5.4 Field formulas
  1287. --------------------
  1288. To assign a formula to a particular field, type it directly into the
  1289. field, preceded by `:=', for example `:=$1+$2'. When you press <TAB>
  1290. or <RET> or `C-c C-c' with the cursor still in the field, the formula
  1291. will be stored as the formula for this field, evaluated, and the
  1292. current field replaced with the result.
  1293. Formulas are stored in a special line starting with `#+TBLFM:'
  1294. directly below the table. If you typed the equation in the 4th field of
  1295. the 3rd data line in the table, the formula will look like
  1296. `@3$4=$1+$2'. When inserting/deleting/swapping column and rows with
  1297. the appropriate commands, absolute references (but not relative ones)
  1298. in stored formulas are modified in order to still reference the same
  1299. field. Of cause this is not true if you edit the table structure with
  1300. normal editing commands - then you must fix the equations yourself.
  1301. Instead of typing an equation into the field, you may also use the
  1302. following command
  1303. `C-u C-c ='
  1304. Install a new formula for the current field. The command prompts
  1305. for a formula, with default taken from the `#+TBLFM:' line, applies
  1306. it to the current field and stores it.
  1307. 
  1308. File: org, Node: Column formulas, Next: Editing and debugging formulas, Prev: Field formulas, Up: The spreadsheet
  1309. 3.5.5 Column formulas
  1310. ---------------------
  1311. Often in a table, the same formula should be used for all fields in a
  1312. particular column. Instead of having to copy the formula to all fields
  1313. in that column, org-mode allows to assign a single formula to an entire
  1314. column. If the table contains horizontal separator hlines, everything
  1315. before the first such line is considered part of the table _header_ and
  1316. will not be modified by column formulas.
  1317. To assign a formula to a column, type it directly into any field in
  1318. the column, preceded by an equal sign, like `=$1+$2'. When you press
  1319. <TAB> or <RET> or `C-c C-c' with the cursor still in the field, the
  1320. formula will be stored as the formula for the current column, evaluated
  1321. and the current field replaced with the result. If the field contains
  1322. only `=', the previously stored formula for this column is used. For
  1323. each column, Org-mode will only remember the most recently used
  1324. formula. In the `TBLFM:' line, column formulas will look like
  1325. `$4=$1+$2'.
  1326. Instead of typing an equation into the field, you may also use the
  1327. following command:
  1328. `C-c ='
  1329. Install a new formula for the current column and replace current
  1330. field with the result of the formula. The command prompts for a
  1331. formula, with default taken from the `#+TBLFM' line, applies it to
  1332. the current field and stores it. With a numerical prefix (e.g.
  1333. `C-5 C-c =') will apply it to that many consecutive fields in the
  1334. current column.
  1335. 
  1336. File: org, Node: Editing and debugging formulas, Next: Updating the table, Prev: Column formulas, Up: The spreadsheet
  1337. 3.5.6 Editing and Debugging formulas
  1338. ------------------------------------
  1339. You can edit individual formulas in the minibuffer or directly in the
  1340. field. Org-mode can also prepare a special buffer with all active
  1341. formulas of a table. When offering a formula for editing, Org-mode
  1342. converts references to the standard format (like `B3' or `D&') if
  1343. possible. If you prefer to only work with the internal format (like
  1344. `@3$2' or `$4'), configure the variable
  1345. `org-table-use-standard-references'.
  1346. `C-c ='
  1347. `C-u C-c ='
  1348. Edit the formula associated with the current column/field in the
  1349. minibuffer. See *Note Column formulas:: and *Note Field
  1350. formulas::.
  1351. `C-u C-u C-c ='
  1352. Re-insert the active formula (either a field formula, or a column
  1353. formula) into the current field, so that you can edit it directly
  1354. in the field. The advantage over editing in the minibuffer is
  1355. that you can use the command `C-c ?'.
  1356. `C-c ?'
  1357. While editing a formula in a table field, highlight the field(s)
  1358. referenced by the reference at the cursor position in the formula.
  1359. `C-c }'
  1360. Toggle the display of row and column numbers for a table, using
  1361. overlays. These are updated each time the table is aligned, you
  1362. can force it with `C-c C-c'.
  1363. `C-c {'
  1364. Toggle the formula debugger on and off. See below.
  1365. `C-c ''
  1366. Edit all formulas for the current table in a special buffer, where
  1367. the formulas will be displayed one per line. If the current field
  1368. has an active formula, the cursor in the formula editor will mark
  1369. it. While inside the special buffer, Org-mode will automatically
  1370. highlight any field or range reference at the cursor position.
  1371. You may edit, remove and add formulas, and use the following
  1372. commands:
  1373. `C-c C-c'
  1374. `C-x C-s'
  1375. Exit the formula editor and store the modified formulas.
  1376. With `C-u' prefix, also apply the new formulas to the entire
  1377. table.
  1378. `C-c C-q'
  1379. Exit the formula editor without installing changes.
  1380. `C-c C-r'
  1381. Toggle all references in the formula editor between standard
  1382. (like `B3') and internal (like `@3$2').
  1383. `<TAB>'
  1384. Pretty-print or indent lisp formula at point. When in a line
  1385. containing a lisp formula, format the formula according to
  1386. Emacs Lisp rules. Another <TAB> collapses the formula back
  1387. again. In the open formula, <TAB> re-indents just like in
  1388. Emacs-lisp-mode.
  1389. `M-<TAB>'
  1390. Complete Lisp symbols, just like in Emacs-lisp-mode.
  1391. `S-<up>/<down>/<left>/<right>'
  1392. Shift the reference at point. For example, if the reference
  1393. is `B3' and you press `S-<right>', it will become `C3'. This
  1394. also works for relative references, and for hline references.
  1395. `M-S-<up>/<down>'
  1396. Move the test line for column formulas in the Org-mode buffer
  1397. up and down.
  1398. `M-<up>/<down>'
  1399. Scroll the window displaying the table.
  1400. `C-c }'
  1401. Turn the coordinate grid in the table on and off.
  1402. Making a table field blank does not remove the formula associated
  1403. with the field, because that is stored in a different line (the `TBLFM'
  1404. line) - during the next recalculation the field will be filled again.
  1405. To remove a formula from a field, you have to give an empty reply when
  1406. prompted for the formula, or to edit the `#+TBLFM' line.
  1407. You may edit the `#+TBLFM' directly and re-apply the changed
  1408. equations with `C-c C-c' in that line, or with the normal recalculation
  1409. commands in the table.
  1410. Debugging formulas
  1411. ..................
  1412. When the evaluation of a formula leads to an error, the field content
  1413. becomes the string `#ERROR'. If you would like see what is going on
  1414. during variable substitution and calculation in order to find a bug,
  1415. turn on formula debugging in the `Tbl' menu and repeat the calculation,
  1416. for example by pressing `C-u C-u C-c = <RET>' in a field. Detailed
  1417. information will be displayed.
  1418. 
  1419. File: org, Node: Updating the table, Next: Advanced features, Prev: Editing and debugging formulas, Up: The spreadsheet
  1420. 3.5.7 Updating the Table
  1421. ------------------------
  1422. Recalculation of a table is normally not automatic, but needs to be
  1423. triggered by a command. See *Note Advanced features:: for a way to make
  1424. recalculation at least semi-automatically.
  1425. In order to recalculate a line of a table or the entire table, use
  1426. the following commands:
  1427. `C-c *'
  1428. Recalculate the current row by first applying the stored column
  1429. formulas from left to right, and all field formulas in the current
  1430. row.
  1431. `C-u C-c *'
  1432. `C-u C-c C-c'
  1433. Recompute the entire table, line by line. Any lines before the
  1434. first hline are left alone, assuming that these are part of the
  1435. table header.
  1436. `C-u C-u C-c *'
  1437. `C-u C-u C-c C-c'
  1438. Iterate the table by recomputing it until no further changes occur.
  1439. This may be necessary if some computed fields use the value of
  1440. other fields that are computed later in the calculation sequence.
  1441. 
  1442. File: org, Node: Advanced features, Prev: Updating the table, Up: The spreadsheet
  1443. 3.5.8 Advanced features
  1444. -----------------------
  1445. If you want the recalculation of fields to happen automatically, or if
  1446. you want to be able to assign names to fields and columns, you need to
  1447. reserve the first column of the table for special marking characters.
  1448. `C-#'
  1449. Rotate the calculation mark in first column through the states `',
  1450. `#', `*', `!', `$'. The meaning of these characters is discussed
  1451. below. When there is an active region, change all marks in the
  1452. region.
  1453. Here is an example of a table that collects exam results of students
  1454. and makes use of these features:
  1455. |---+---------+--------+--------+--------+-------+------|
  1456. | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
  1457. |---+---------+--------+--------+--------+-------+------|
  1458. | ! | | P1 | P2 | P3 | Tot | |
  1459. | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
  1460. | ^ | | m1 | m2 | m3 | mt | |
  1461. |---+---------+--------+--------+--------+-------+------|
  1462. | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
  1463. | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
  1464. | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
  1465. |---+---------+--------+--------+--------+-------+------|
  1466. | | Average | | | | 29.7 | |
  1467. | ^ | | | | | at | |
  1468. | $ | max=50 | | | | | |
  1469. |---+---------+--------+--------+--------+-------+------|
  1470. #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
  1471. Important: Please note that for these special tables, recalculating the
  1472. table with `C-u C-c *' will only affect rows that are marked `#' or
  1473. `*', and fields that have a formula assigned to the field itself. The
  1474. column formulas are not applied in rows with empty first field.
  1475. The marking characters have the following meaning:
  1476. `!'
  1477. The fields in this line define names for the columns, so that you
  1478. may refer to a column as `$Tot' instead of `$6'.
  1479. `^'
  1480. This row defines names for the fields _above_ the row. With such
  1481. a definition, any formula in the table may use `$m1' to refer to
  1482. the value `10'. Also, if you assign a formula to a names field, it
  1483. will be stored as `$name=...'.
  1484. `_'
  1485. Similar to `^', but defines names for the fields in the row
  1486. _below_.
  1487. `$'
  1488. Fields in this row can define _parameters_ for formulas. For
  1489. example, if a field in a `$' row contains `max=50', then formulas
  1490. in this table can refer to the value 50 using `$max'. Parameters
  1491. work exactly like constants, only that they can be defined on a
  1492. per-table basis.
  1493. `#'
  1494. Fields in this row are automatically recalculated when pressing
  1495. <TAB> or <RET> or `S-<TAB>' in this row. Also, this row is
  1496. selected for a global recalculation with `C-u C-c *'. Unmarked
  1497. lines will be left alone by this command.
  1498. `*'
  1499. Selects this line for global recalculation with `C-u C-c *', but
  1500. not for automatic recalculation. Use this when automatic
  1501. recalculation slows down editing too much.
  1502. `'
  1503. Unmarked lines are exempt from recalculation with `C-u C-c *'.
  1504. All lines that should be recalculated should be marked with `#' or
  1505. `*'.
  1506. `/'
  1507. Do not export this line. Useful for lines that contain the
  1508. narrowing `<N>' markers.
  1509. Finally, just to whet your appetite on what can be done with the
  1510. fantastic `calc' package, here is a table that computes the Taylor
  1511. series of degree `n' at location `x' for a couple of functions
  1512. (homework: try that with Excel :-)
  1513. |---+-------------+---+-----+--------------------------------------|
  1514. | | Func | n | x | Result |
  1515. |---+-------------+---+-----+--------------------------------------|
  1516. | # | exp(x) | 1 | x | 1 + x |
  1517. | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
  1518. | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
  1519. | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
  1520. | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
  1521. | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
  1522. |---+-------------+---+-----+--------------------------------------|
  1523. #+TBLFM: $5=taylor($2,$4,$3);n3
  1524. 
  1525. File: org, Node: Hyperlinks, Next: TODO items, Prev: Tables, Up: Top
  1526. 4 Hyperlinks
  1527. ************
  1528. Just like HTML, Org-mode provides links inside a file, and external
  1529. links to other files, Usenet articles, emails, and much more.
  1530. * Menu:
  1531. * Link format:: How links in Org-mode are formatted
  1532. * Internal links:: Links to other places in the current file
  1533. * External links:: URL-like links to the world
  1534. * Handling links:: Creating, inserting and following
  1535. * Using links outside Org-mode:: Linking from my C source code?
  1536. * Link abbreviations:: Shortcuts for writing complex links
  1537. * Search options:: Linking to a specific location
  1538. * Custom searches:: When the default search is not enough
  1539. 
  1540. File: org, Node: Link format, Next: Internal links, Prev: Hyperlinks, Up: Hyperlinks
  1541. 4.1 Link format
  1542. ===============
  1543. Org-mode will recognize plain URL-like links and activate them as
  1544. clickable links. The general link format, however, looks like this:
  1545. [[link][description]] or alternatively [[link]]
  1546. Once a link in the buffer is complete (all brackets present),
  1547. Org-mode will change the display so that `description' is displayed
  1548. instead of `[[link][description]]' and `link' is displayed instead of
  1549. `[[link]]'. Links will be highlighted in the face `org-link', which by
  1550. default is an underlined face. You can directly edit the visible part
  1551. of a link. Note that this can be either the `link' part (if there is
  1552. no description) or the `description' part. To edit also the invisible
  1553. `link' part, use `C-c C-l' with the cursor on the link.
  1554. If you place the cursor at the beginning or just behind the end of
  1555. the displayed text and press <BACKSPACE>, you will remove the
  1556. (invisible) bracket at that location. This makes the link incomplete
  1557. and the internals are again displayed as plain text. Inserting the
  1558. missing bracket hides the link internals again. To show the internal
  1559. structure of all links, use the menu entry `Org->Hyperlinks->Literal
  1560. links'.
  1561. 
  1562. File: org, Node: Internal links, Next: External links, Prev: Link format, Up: Hyperlinks
  1563. 4.2 Internal links
  1564. ==================
  1565. If the link does not look like a URL, it is considered to be internal in
  1566. the current file. Links such as `[[My Target]]' or `[[My Target][Find
  1567. my target]]' lead to a text search in the current file. The link can
  1568. be followed with `C-c C-o' when the cursor is on the link, or with a
  1569. mouse click (*note Handling links::). The preferred match for such a
  1570. link is a dedicated target: the same string in double angular brackets.
  1571. Targets may be located anywhere; sometimes it is convenient to put
  1572. them into a comment line. For example
  1573. # <<My Target>>
  1574. In HTML export (*note HTML export::), such targets will become named
  1575. anchors for direct access through `http' links(1).
  1576. If no dedicated target exists, Org-mode will search for the words in
  1577. the link. In the above example the search would be for `my target'.
  1578. Links starting with a star like `*My Target' restrict the search to
  1579. headlines. When searching, Org-mode will first try an exact match, but
  1580. then move on to more and more lenient searches. For example, the link
  1581. `[[*My Targets]]' will find any of the following:
  1582. ** My targets
  1583. ** TODO my targets are bright
  1584. ** my 20 targets are
  1585. To insert a link targeting a headline, in-buffer completion can be
  1586. used. Just type a star followed by a few optional letters into the
  1587. buffer and press `M-<TAB>'. All headlines in the current buffer will be
  1588. offered as completions. *Note Handling links::, for more commands
  1589. creating links.
  1590. Following a link pushes a mark onto Org-mode's own mark ring. You
  1591. can return to the previous position with `C-c &'. Using this command
  1592. several times in direct succession goes back to positions recorded
  1593. earlier.
  1594. * Menu:
  1595. * Radio targets:: Make targets trigger links in plain text.
  1596. ---------- Footnotes ----------
  1597. (1) Note that text before the first headline is usually not
  1598. exported, so the first such target should be after the first headline.
  1599. 
  1600. File: org, Node: Radio targets, Prev: Internal links, Up: Internal links
  1601. 4.2.1 Radio targets
  1602. -------------------
  1603. Org-mode can automatically turn any occurrences of certain target names
  1604. in normal text into a link. So without explicitly creating a link, the
  1605. text connects to the target radioing its position. Radio targets are
  1606. enclosed by triple angular brackets. For example, a target `<<<My
  1607. Target>>>' causes each occurrence of `my target' in normal text to
  1608. become activated as a link. The Org-mode file is scanned automatically
  1609. for radio targets only when the file is first loaded into Emacs. To
  1610. update the target list during editing, press `C-c C-c' with the cursor
  1611. on or at a target.
  1612. 
  1613. File: org, Node: External links, Next: Handling links, Prev: Internal links, Up: Hyperlinks
  1614. 4.3 External links
  1615. ==================
  1616. Org-mode supports links to files, websites, Usenet and email messages,
  1617. and BBDB database entries. External links are URL-like locators. They
  1618. start with a short identifying string followed by a colon. There can be
  1619. no space after the colon. The following list shows examples for each
  1620. link type.
  1621. http://www.astro.uva.nl/~dominik on the web
  1622. file:/home/dominik/images/jupiter.jpg file, absolute path
  1623. file:papers/last.pdf file, relative path
  1624. news:comp.emacs Usenet link
  1625. mailto:adent@galaxy.net Mail link
  1626. vm:folder VM folder link
  1627. vm:folder#id VM message link
  1628. vm://myself@some.where.org/folder#id VM on remote machine
  1629. wl:folder WANDERLUST folder link
  1630. wl:folder#id WANDERLUST message link
  1631. mhe:folder MH-E folder link
  1632. mhe:folder#id MH-E message link
  1633. rmail:folder RMAIL folder link
  1634. rmail:folder#id RMAIL message link
  1635. gnus:group GNUS group link
  1636. gnus:group#id GNUS article link
  1637. bbdb:Richard Stallman BBDB link
  1638. shell:ls *.org A shell command
  1639. elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
  1640. A link should be enclosed in double brackets and may contain a
  1641. descriptive text to be displayed instead of the url (*note Link
  1642. format::), for example:
  1643. [[http://www.gnu.org/software/emacs/][GNU Emacs]]
  1644. If the description is a file name or URL that points to an image, HTML
  1645. export (*note HTML export::) will inline the image as a clickable
  1646. button. If there is no description at all and the link points to an
  1647. image, that image will be inlined into the exported HTML file.
  1648. Org-mode also finds external links in the normal text and activates
  1649. them as links. If spaces must be part of the link (for example in
  1650. `bbdb:Richard Stallman'), or if you need to remove ambiguities about
  1651. the end of the link, enclose them in angular brackets.
  1652. 
  1653. File: org, Node: Handling links, Next: Using links outside Org-mode, Prev: External links, Up: Hyperlinks
  1654. 4.4 Handling links
  1655. ==================
  1656. Org-mode provides methods to create a link in the correct syntax, to
  1657. insert it into an org-mode file, and to follow the link.
  1658. `C-c l'
  1659. Store a link to the current location. This is a _global_ command
  1660. which can be used in any buffer to create a link. The link will be
  1661. stored for later insertion into an Org-mode buffer (see below).
  1662. For Org-mode files, if there is a `<<target>>' at the cursor, the
  1663. link points to the target. Otherwise it points to the current
  1664. headline. For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
  1665. the link will indicate the current article/entry. For W3 and W3M
  1666. buffers, the link goes to the current URL. For any other files,
  1667. the link will point to the file, with a search string (*note
  1668. Search options::) pointing to the contents of the current line.
  1669. If there is an active region, the selected words will form the
  1670. basis of the search string. If the automatically created link is
  1671. not working correctly or accurately enough, you can write custom
  1672. functions to select the search string and to do the search for
  1673. particular file types - see *Note Custom searches::. The key
  1674. binding `C-c l' is only a suggestion - see *Note Installation::.
  1675. `C-c C-l'
  1676. Insert a link. This prompts for a link to be inserted into the
  1677. buffer. You can just type a link, using text for an internal
  1678. link, or one of the link type prefixes mentioned in the examples
  1679. above. All links stored during the current session are part of
  1680. the history for this prompt, so you can access them with <up> and
  1681. <down> (or `M-p/n'). Completion, on the other hand, will help you
  1682. to insert valid link prefixes like `http:' or `ftp:', including
  1683. the prefixes defined through link abbreviations (*note Link
  1684. abbreviations::). The link will be inserted into the buffer(1),
  1685. along with a descriptive text. If some text was selected when
  1686. this command is called, the selected text becomes the default
  1687. description.
  1688. Note that you don't have to use this command to insert a link.
  1689. Links in Org-mode are plain text, and you can type or paste them
  1690. straight into the buffer. By using this command, the links are
  1691. automatically enclosed in double brackets, and you will be asked
  1692. for the optional descriptive text.
  1693. `C-u C-c C-l'
  1694. When `C-c C-l' is called with a `C-u' prefix argument, a link to a
  1695. file will be inserted and you may use file name completion to
  1696. select the name of the file. The path to the file is inserted
  1697. relative to the directory of the current org file, if the linked
  1698. file is in the current directory or in a subdirectory of it, or if
  1699. the path is written relative to the current directory using `../'.
  1700. Otherwise an absolute path is used, if possible with `~/' for
  1701. your home directory. You can force an absolute path with two
  1702. `C-u' prefixes.
  1703. `C-c C-l (with cursor on existing link)'
  1704. When the cursor is on an existing link, `C-c C-l' allows you to
  1705. edit the link and description parts of the link.
  1706. `C-c C-o'
  1707. Open link at point. This will launch a web browser for URLs (using
  1708. `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
  1709. the corresponding links, and execute the command in a shell link.
  1710. When the cursor is on an internal link, this commands runs the
  1711. corresponding search. When the cursor is on a TAG list in a
  1712. headline, it creates the corresponding TAGS view. If the cursor
  1713. is on a time stamp, it compiles the agenda for that date.
  1714. Furthermore, it will visit text and remote files in `file:' links
  1715. with Emacs and select a suitable application for local non-text
  1716. files. Classification of files is based on file extension only.
  1717. See option `org-file-apps'. If you want to override the default
  1718. application and visit the file with Emacs, use a `C-u' prefix.
  1719. `mouse-2'
  1720. `mouse-1'
  1721. On links, `mouse-2' will open the link just as `C-c C-o' would.
  1722. Under Emacs 22, also `mouse-1' will follow a link.
  1723. `mouse-3'
  1724. Like `mouse-2', but force file links to be opened with Emacs, and
  1725. internal links to be displayed in another window(2).
  1726. `C-c %'
  1727. Push the current position onto the mark ring, to be able to return
  1728. easily. Commands following an internal link do this automatically.
  1729. `C-c &'
  1730. Jump back to a recorded position. A position is recorded by the
  1731. commands following internal links, and by `C-c %'. Using this
  1732. command several times in direct succession moves through a ring of
  1733. previously recorded positions.
  1734. `C-c C-x C-n'
  1735. `C-c C-x C-p'
  1736. Move forward/backward to the next link in the buffer. At the
  1737. limit of the buffer, the search fails once, and then wraps around.
  1738. The key bindings for this are really too long, you might want to
  1739. bind this also to `C-n' and `C-p'
  1740. (add-hook 'org-load-hook
  1741. (lambda ()
  1742. (define-key 'org-mode-map "\C-n" 'org-next-link)
  1743. (define-key 'org-mode-map "\C-p" 'org-previous-link)))
  1744. ---------- Footnotes ----------
  1745. (1) After insertion of a stored link, the link will be removed from
  1746. the list of stored links. To keep it in the list later use, use a
  1747. triple `C-u' prefix to `C-c C-l', or configure the option
  1748. `org-keep-stored-link-after-insertion'.
  1749. (2) See the variable `org-display-internal-link-with-indirect-buffer'
  1750. 
  1751. File: org, Node: Using links outside Org-mode, Next: Link abbreviations, Prev: Handling links, Up: Hyperlinks
  1752. 4.5 Using links outside Org-mode
  1753. ================================
  1754. You can insert and follow links that have Org-mode syntax not only in
  1755. Org-mode, but in any Emacs buffer. For this, you should create two
  1756. global commands, like this (please select suitable global keys
  1757. yourself):
  1758. (global-set-key "\C-c L" 'org-insert-link-global)
  1759. (global-set-key "\C-c o" 'org-open-at-point-global)
  1760. 
  1761. File: org, Node: Link abbreviations, Next: Search options, Prev: Using links outside Org-mode, Up: Hyperlinks
  1762. 4.6 Link abbreviations
  1763. ======================
  1764. Long URLs can be cumbersome to type, and often many similar links are
  1765. needed in a document. For this you can use link abbreviations. An
  1766. abbreviated link looks like this
  1767. [[linkword:tag][description]]
  1768. where the tag is optional. Such abbreviations are resolved according to
  1769. the information in the variable `org-link-abbrev-alist' that relates
  1770. the linkwords to replacement text. Here is an example:
  1771. (setq org-link-abbrev-alist
  1772. '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
  1773. ("google" . "http://www.google.com/search?q=")
  1774. ("ads" . "http://adsabs.harvard.edu/cgi-bin/
  1775. nph-abs_connect?author=%s&db_key=AST")))
  1776. If the replacement text contains the string `%s', it will be
  1777. replaced with the tag. Otherwise the tag will be appended to the string
  1778. in order to create the link. You may also specify a function that will
  1779. be called with the tag as the only argument to create the link.
  1780. With the above setting, you could link to a specific bug with
  1781. `[[bugzilla:129]]', search the web for `OrgMode' with
  1782. `[[google:OrgMode]]' and find out what the Org-mode author is doing
  1783. besides Emacs hacking with `[[ads:Dominik,C]]'.
  1784. If you need special abbreviations just for a single Org-mode buffer,
  1785. you can define them in the file with
  1786. #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
  1787. #+LINK: google http://www.google.com/search?q=%s
  1788. In-buffer completion *note Completion:: can be used after `[' to
  1789. complete link abbreviations.
  1790. 
  1791. File: org, Node: Search options, Next: Custom searches, Prev: Link abbreviations, Up: Hyperlinks
  1792. 4.7 Search options in file links
  1793. ================================
  1794. File links can contain additional information to make Emacs jump to a
  1795. particular location in the file when following a link. This can be a
  1796. line number or a search option after a double(1) colon. For example,
  1797. when the command `C-c l' creates a link (*note Handling links::) to a
  1798. file, it encodes the words in the current line as a search string that
  1799. can be used to find this line back later when following the link with
  1800. `C-c C-o'.
  1801. Here is the syntax of the different ways to attach a search to a file
  1802. link, together with an explanation:
  1803. [[file:~/code/main.c::255]]
  1804. [[file:~/xx.org::My Target]]
  1805. [[file:~/xx.org::*My Target]]
  1806. [[file:~/xx.org::/regexp/]]
  1807. `255'
  1808. Jump to line 255.
  1809. `My Target'
  1810. Search for a link target `<<My Target>>', or do a text search for
  1811. `my target', similar to the search in internal links, see *Note
  1812. Internal links::. In HTML export (*note HTML export::), such a
  1813. file link will become an HTML reference to the corresponding named
  1814. anchor in the linked file.
  1815. `*My Target'
  1816. In an Org-mode file, restrict search to headlines.
  1817. `/regexp/'
  1818. Do a regular expression search for `regexp'. This uses the Emacs
  1819. command `occur' to list all matches in a separate window. If the
  1820. target file is in Org-mode, `org-occur' is used to create a sparse
  1821. tree with the matches.
  1822. As a degenerate case, a file link with an empty file name can be used
  1823. to search the current file. For example, `[[file:::find me]]' does a
  1824. search for `find me' in the current file, just as `[[find me]]' would.
  1825. ---------- Footnotes ----------
  1826. (1) For backward compatibility, line numbers can also follow a
  1827. single colon.
  1828. 
  1829. File: org, Node: Custom searches, Prev: Search options, Up: Hyperlinks
  1830. 4.8 Custom Searches
  1831. ===================
  1832. The default mechanism for creating search strings and for doing the
  1833. actual search related to a file link may not work correctly in all
  1834. cases. For example, BibTeX database files have many entries like
  1835. `year="1993"' which would not result in good search strings, because
  1836. the only unique identification for a BibTeX entry is the citation key.
  1837. If you come across such a problem, you can write custom functions to
  1838. set the right search string for a particular file type, and to do the
  1839. search for the string in the file. Using `add-hook', these functions
  1840. need to be added to the hook variables
  1841. `org-create-file-search-functions' and
  1842. `org-execute-file-search-functions'. See the docstring for these
  1843. variables for more information. Org-mode actually uses this mechanism
  1844. for BibTeX database files, and you can use the corresponding code as an
  1845. implementation example. Search for `BibTeX links' in the source file.
  1846. 
  1847. File: org, Node: TODO items, Next: Tags, Prev: Hyperlinks, Up: Top
  1848. 5 TODO items
  1849. ************
  1850. Org-mode does not maintain TODO lists as a separate document. TODO
  1851. items are an integral part of the notes file, because TODO items
  1852. usually come up while taking notes! With Org-mode, you simply mark any
  1853. entry in a tree as being a TODO item. In this way, the information is
  1854. not duplicated, and the entire context from which the item emerged is
  1855. always present when you check.
  1856. Of course, this technique causes TODO items to be scattered
  1857. throughout your file. Org-mode provides methods to give you an
  1858. overview over all things you have to do.
  1859. * Menu:
  1860. * TODO basics:: Marking and displaying TODO entries
  1861. * TODO extensions:: Workflow and assignments
  1862. * Progress logging:: Dates and notes for progress
  1863. * Priorities:: Some things are more important than others
  1864. * Breaking down tasks:: Splitting a task into manageable pieces
  1865. * Checkboxes:: Tick-off lists
  1866. 
  1867. File: org, Node: TODO basics, Next: TODO extensions, Prev: TODO items, Up: TODO items
  1868. 5.1 Basic TODO functionality
  1869. ============================
  1870. Any headline can become a TODO item by starting it with the word TODO,
  1871. for example:
  1872. *** TODO Write letter to Sam Fortune
  1873. The most important commands to work with TODO entries are:
  1874. `C-c C-t'
  1875. Rotate the TODO state of the current item among
  1876. ,-> (unmarked) -> TODO -> DONE --.
  1877. '--------------------------------'
  1878. The same rotation can also be done "remotely" from the timeline and
  1879. agenda buffers with the `t' command key (*note Agenda commands::).
  1880. `C-u C-c C-t'
  1881. Select a specific keyword using completion of (if it has been set
  1882. up) the fast selection interface.
  1883. `S-<right>'
  1884. `S-<left>'
  1885. Select the following/preceding TODO state, similar to cycling.
  1886. Mostly useful if more than two TODO states are possible (*note
  1887. TODO extensions::).
  1888. `C-c C-c'
  1889. Use the fast tag interface to quickly and directly select a
  1890. specific TODO state. For this you need to assign keys to TODO
  1891. state, like this:
  1892. #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) | DONE(d)
  1893. See *Note Per file keywords:: and *Note Setting tags:: for more
  1894. information.
  1895. `C-c C-v'
  1896. `C-c / t'
  1897. View TODO items in a _sparse tree_ (*note Sparse trees::). Folds
  1898. the entire buffer, but shows all TODO items and the headings
  1899. hierarchy above them. With prefix arg, search for a specific
  1900. TODO. You will be prompted for the keyword, and you can also give
  1901. a list of keywords like `kwd1|kwd2|...'. With numerical prefix N,
  1902. show the tree for the Nth keyword in the variable
  1903. `org-todo-keywords'. With two prefix args, find all TODO and DONE
  1904. entries.
  1905. `C-c a t'
  1906. Show the global TODO list. This collects the TODO items from all
  1907. agenda files (*note Agenda views::) into a single buffer. The
  1908. buffer is in `agenda-mode', so there are commands to examine and
  1909. manipulate the TODO entries directly from that buffer (*note
  1910. Agenda commands::). *Note Global TODO list::, for more
  1911. information.
  1912. `S-M-<RET>'
  1913. Insert a new TODO entry below the current one.
  1914. 
  1915. File: org, Node: TODO extensions, Next: Progress logging, Prev: TODO basics, Up: TODO items
  1916. 5.2 Extended use of TODO keywords
  1917. =================================
  1918. The default implementation of TODO entries is just two states: TODO and
  1919. DONE. You can use the TODO feature for more complicated things by
  1920. configuring the variable `org-todo-keywords'. With special setup, the
  1921. TODO keyword system can work differently in different files.
  1922. Note that tags are another way to classify headlines in general and
  1923. TODO items in particular (*note Tags::).
  1924. * Menu:
  1925. * Workflow states:: From TODO to DONE in steps
  1926. * TODO types:: I do this, Fred the rest
  1927. * Multiple sets in one file:: Mixing it all, and still finding your way
  1928. * Fast access to TODO states:: Single letter selection of a state
  1929. * Per file keywords:: Different files, different requirements
  1930. * Faces for TODO keywords:: Highlighting states
  1931. 
  1932. File: org, Node: Workflow states, Next: TODO types, Prev: TODO extensions, Up: TODO extensions
  1933. 5.2.1 TODO keywords as workflow states
  1934. --------------------------------------
  1935. You can use TODO keywords to indicate different _sequential_ states in
  1936. the process of working on an item, for example(1):
  1937. (setq org-todo-keywords
  1938. '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
  1939. The vertical bar separates the TODO keywords (states that _need
  1940. action_) from the DONE states (which need _no further action_. If you
  1941. don't provide the separator bar, the last state is used as the DONE
  1942. state. With this setup, the command `C-c C-t' will cycle an entry from
  1943. TODO to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED.
  1944. You may also use a prefix argument to quickly select a specific state.
  1945. For example `C-3 C-c C-t' will change the state immediately to VERIFY.
  1946. If you define many keywords, you can use in-buffer completion (see
  1947. *Note Completion::) to insert these words into the buffer. Changing a
  1948. todo state can be logged with a timestamp, see *Note Tracking TODO
  1949. state changes:: for more information.
  1950. ---------- Footnotes ----------
  1951. (1) Changing this variable only becomes effective after restarting
  1952. Org-mode in a buffer.
  1953. 
  1954. File: org, Node: TODO types, Next: Multiple sets in one file, Prev: Workflow states, Up: TODO extensions
  1955. 5.2.2 TODO keywords as types
  1956. ----------------------------
  1957. The second possibility is to use TODO keywords to indicate different
  1958. _types_ of action items. For example, you might want to indicate that
  1959. items are for "work" or "home". Or, when you work with several people
  1960. on a single project, you might want to assign action items directly to
  1961. persons, by using their names as TODO keywords. This would be set up
  1962. like this:
  1963. (setq org-todo-keywords '((type "Fred" "Sara" "Lucy" "|" "DONE")))
  1964. In this case, different keywords do not indicate a sequence, but
  1965. rather different types. So the normal work flow would be to assign a
  1966. task to a person, and later to mark it DONE. Org-mode supports this
  1967. style by adapting the workings of the command `C-c C-t'(1). When used
  1968. several times in succession, it will still cycle through all names, in
  1969. order to first select the right type for a task. But when you return
  1970. to the item after some time and execute `C-c C-t' again, it will switch
  1971. from any name directly to DONE. Use prefix arguments or completion to
  1972. quickly select a specific name. You can also review the items of a
  1973. specific TODO type in a sparse tree by using a numeric prefix to `C-c
  1974. C-v'. For example, to see all things Lucy has to do, you would use
  1975. `C-3 C-c C-v'. To collect Lucy's items from all agenda files into a
  1976. single buffer, you would use the prefix arg as well when creating the
  1977. global todo list: `C-3 C-c t'.
  1978. ---------- Footnotes ----------
  1979. (1) This is also true for the `t' command in the timeline and agenda
  1980. buffers.
  1981. 
  1982. File: org, Node: Multiple sets in one file, Next: Fast access to TODO states, Prev: TODO types, Up: TODO extensions
  1983. 5.2.3 Multiple keyword sets in one file
  1984. ---------------------------------------
  1985. Sometimes you may want to use different sets of TODO keywords in
  1986. parallel. For example, you may want to have the basic `TODO'/`DONE',
  1987. but also a workflow for bug fixing, and a separate state indicating
  1988. that an item has been canceled (so it is not DONE, but also does not
  1989. require action). Your setup would then look like this:
  1990. (setq org-todo-keywords
  1991. '((sequence "TODO" "|" "DONE")
  1992. (sequence "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED")
  1993. (sequence "|" "CANCELED")))
  1994. The keywords should all be different, this helps Org-mode to keep
  1995. track of which subsequence should be used for a given entry. In this
  1996. setup, `C-c C-t' only operates within a subsequence, so it switches from
  1997. `DONE' to (nothing) to `TODO', and from `FIXED' to (nothing) to
  1998. `REPORT'. Therefore you need a mechanism to initially select the
  1999. correct sequence. Besides the obvious ways like typing a keyword or
  2000. using completion, you may also apply the following commands:
  2001. `C-S-<right>'
  2002. `C-S-<left>'
  2003. These keys jump from one TODO subset to the next. In the above
  2004. example, `C-S-<right>' would jump from `TODO' or `DONE' to
  2005. `REPORT', and any of the words in the second row to `CANCELED'.
  2006. `S-<right>'
  2007. `S-<left>'
  2008. `S-<<left>>' and `S-<<right>>' and walk through _all_ keywords
  2009. from all sets, so for example `S-<<right>>' would switch from
  2010. `DONE' to `REPORT' in the example above.
  2011. 
  2012. File: org, Node: Fast access to TODO states, Next: Per file keywords, Prev: Multiple sets in one file, Up: TODO extensions
  2013. 5.2.4 Fast access to TODO states
  2014. --------------------------------
  2015. If you would like to quickly change an entry to an arbitrary TODO state
  2016. instead of cycling through the states, you can set up keys for
  2017. single-letter access to the states. This is done by adding the section
  2018. key after each keyword, in parenthesis. For example:
  2019. (setq org-todo-keywords
  2020. '((sequence "TODO(t)" "|" "DONE(d)")
  2021. (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)" "|" "FIXED(f)")
  2022. (sequence "|" "CANCELED(c)")))
  2023. If you then press `C-u C-c C-t' followed by the selection key, the
  2024. entry will be switched to this state. <SPC> can be used to remove any
  2025. TODO keyword from an entry. Should you like this way of selecting TODO
  2026. states a lot, you might want to set the variable
  2027. `org-use-fast-todo-selection' to `t' and make this behavior the
  2028. default. Check also the variable
  2029. `org-fast-tag-selection-include-todo', it allows to change the TODO
  2030. state through the tags interface (*note Setting tags::).
  2031. 
  2032. File: org, Node: Per file keywords, Next: Faces for TODO keywords, Prev: Fast access to TODO states, Up: TODO extensions
  2033. 5.2.5 Setting up keywords for individual files
  2034. ----------------------------------------------
  2035. It can be very useful to use different aspects of the TODO mechanism in
  2036. different files. For file-local settings, you need to add special lines
  2037. to the file which set the keywords and interpretation for that file
  2038. only. For example, to set one of the two examples discussed above, you
  2039. need one of the following lines, starting in column zero anywhere in the
  2040. file:
  2041. #+SEQ_TODO: TODO FEEDBACK VERIFY | DONE CANCELED
  2042. or
  2043. #+TYP_TODO: Fred Sara Lucy Mike | DONE
  2044. A setup for using several sets in parallel would be:
  2045. #+SEQ_TODO: TODO | DONE
  2046. #+SEQ_TODO: REPORT BUG KNOWNCAUSE | FIXED
  2047. #+SEQ_TODO: | CANCELED
  2048. To make sure you are using the correct keyword, type `#+' into the
  2049. buffer and then use `M-<TAB>' completion.
  2050. Remember that the keywords after the vertical bar (or the last
  2051. keyword if no bar is there) must always mean that the item is DONE
  2052. (although you may use a different word). After changing one of these
  2053. lines, use `C-c C-c' with the cursor still in the line to make the
  2054. changes known to Org-mode(1).
  2055. ---------- Footnotes ----------
  2056. (1) Org-mode parses these lines only when Org-mode is activated
  2057. after visiting a file. `C-c C-c' with the cursor in a line starting
  2058. with `#+' is simply restarting Org-mode for the current buffer.
  2059. 
  2060. File: org, Node: Faces for TODO keywords, Prev: Per file keywords, Up: TODO extensions
  2061. 5.2.6 Faces for TODO keywords
  2062. -----------------------------
  2063. Org-mode highlights TODO keywords with special faces: `org-todo' for
  2064. keywords indicating that an item still has to be acted upon, and
  2065. `org-done' for keywords indicating that an item is finished. If you
  2066. are using more than 2 different states, you might want to use special
  2067. faces for some of them. This can be done using the variable
  2068. `org-todo-keyword-faces'. For example:
  2069. (setq org-todo-keyword-faces
  2070. '(("TODO" . org-warning)
  2071. ("DEFERRED" . shadow)
  2072. ("CANCELED" . (:foreground "blue" :weight bold))))
  2073. 
  2074. File: org, Node: Progress logging, Next: Priorities, Prev: TODO extensions, Up: TODO items
  2075. 5.3 Progress Logging
  2076. ====================
  2077. Org-mode can automatically record a time stamp and even a note when you
  2078. mark a TODO item as DONE, or even each time you change the state of a
  2079. TODO item.
  2080. * Menu:
  2081. * Closing items:: When was this entry marked DONE?
  2082. * Tracking TODO state changes:: When did the status change?
  2083. 
  2084. File: org, Node: Closing items, Next: Tracking TODO state changes, Prev: Progress logging, Up: Progress logging
  2085. 5.3.1 Closing items
  2086. -------------------
  2087. If you want to keep track of _when_ a certain TODO item was finished,
  2088. turn on logging with(1)
  2089. (setq org-log-done t)
  2090. Then each time you turn a TODO entry into DONE using either `C-c C-t'
  2091. in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
  2092. [timestamp]' will be inserted just after the headline. If you turn the
  2093. entry back into a TODO item through further state cycling, that line
  2094. will be removed again. In the timeline (*note Timeline::) and in the
  2095. agenda (*note Weekly/Daily agenda::), you can then use the `l' key to
  2096. display the TODO items closed on each day, giving you an overview of
  2097. what has been done on a day. If you want to record a note along with
  2098. the timestamp, use(2)
  2099. (setq org-log-done '(done))
  2100. ---------- Footnotes ----------
  2101. (1) The corresponding in-buffer setting is: `#+STARTUP: logdone'.
  2102. You may also set this for the scope of a subtree by adding a `LOGGING'
  2103. property with one or more of the logging keywords in the value.
  2104. (2) The corresponding in-buffer setting is: `#+STARTUP: lognotedone'
  2105. 
  2106. File: org, Node: Tracking TODO state changes, Prev: Closing items, Up: Progress logging
  2107. 5.3.2 Tracking TODO state changes
  2108. ---------------------------------
  2109. When TODO keywords are used as workflow states (*note Workflow
  2110. states::), you might want to keep track of when a state change occurred
  2111. and record a note about this change. With the setting(1)
  2112. (setq org-log-done '(state))
  2113. each state change will prompt you for a note that will be attached to
  2114. the current headline. If you press `C-c C-c' without typing anything
  2115. into the note buffer, only the time of the state change will be noted.
  2116. Very likely you do not want this verbose tracking all the time, so it
  2117. is probably better to configure this behavior with in-buffer options.
  2118. For example, if you are tracking purchases, put these into a separate
  2119. file that contains:
  2120. #+SEQ_TODO: TODO(t) ORDERED(o) INVOICE(i) PAYED(p) | RECEIVED(r)
  2121. #+STARTUP: lognotestate
  2122. If you only need to take a note for some of the states, mark those
  2123. states with an additional `@', like this:
  2124. #+SEQ_TODO: TODO(t) ORDERED(o@) INVOICE(i@) PAYED(p) | RECEIVED(r)
  2125. #+STARTUP: lognotestate
  2126. ---------- Footnotes ----------
  2127. (1) The corresponding in-buffer setting is: `#+STARTUP:
  2128. lognotestate'.
  2129. 
  2130. File: org, Node: Priorities, Next: Breaking down tasks, Prev: Progress logging, Up: TODO items
  2131. 5.4 Priorities
  2132. ==============
  2133. If you use Org-mode extensively to organize your work, you may end up
  2134. with a number of TODO entries so large that you'd like to prioritize
  2135. them. This can be done by placing a _priority cookie_ into the
  2136. headline, like this
  2137. *** TODO [#A] Write letter to Sam Fortune
  2138. With its standard setup, Org-mode supports priorities `A', `B', and
  2139. `C'. `A' is the highest priority. An entry without a cookie is
  2140. treated as priority `B'. Priorities make a difference only in the
  2141. agenda (*note Weekly/Daily agenda::).
  2142. `C-c ,'
  2143. Set the priority of the current headline. The command prompts for
  2144. a priority character `A', `B' or `C'. When you press <SPC>
  2145. instead, the priority cookie is removed from the headline. The
  2146. priorities can also be changed "remotely" from the timeline and
  2147. agenda buffer with the `,' command (*note Agenda commands::).
  2148. `S-<up>'
  2149. `S-<down>'
  2150. Increase/decrease priority of current headline(1). Note that these
  2151. keys are also used to modify time stamps (*note Creating
  2152. timestamps::). Furthermore, these keys are also used by CUA-mode
  2153. (*note Conflicts::).
  2154. You can change the range of allowed priorities by setting the
  2155. variables `org-highest-priority', `org-lowest-priority', and
  2156. `org-default-priority'. For an individual buffer, you may set these
  2157. values (highest, lowest, default) like this (please make sure that the
  2158. highest priority is earlier in the alphabet than the lowest priority):
  2159. #+PRIORITIES: A C B
  2160. ---------- Footnotes ----------
  2161. (1) See also the option `org-priority-start-cycle-with-default''.
  2162. 
  2163. File: org, Node: Breaking down tasks, Next: Checkboxes, Prev: Priorities, Up: TODO items
  2164. 5.5 Breaking tasks down into subtasks
  2165. =====================================
  2166. It is often advisable to break down large tasks into smaller, manageable
  2167. subtasks. You can do this by creating an outline tree below a TODO
  2168. item, with detailed subtasks on the tree(1). Another possibility is
  2169. the use of checkboxes to identify (a hierarchy of) a large number of
  2170. subtasks (*note Checkboxes::).
  2171. ---------- Footnotes ----------
  2172. (1) To keep subtasks out of the global TODO list, see the
  2173. `org-agenda-todo-list-sublevels'.
  2174. 
  2175. File: org, Node: Checkboxes, Prev: Breaking down tasks, Up: TODO items
  2176. 5.6 Checkboxes
  2177. ==============
  2178. Every item in a plain list (*note Plain lists::) can be made a checkbox
  2179. by starting it with the string `[ ]'. This feature is similar to TODO
  2180. items (*note TODO items::), but more lightweight. Checkboxes are not
  2181. included into the global TODO list, so they are often great to split a
  2182. task into a number of simple steps. Or you can use them in a shopping
  2183. list. To toggle a checkbox, use `C-c C-c', or try Piotr Zielinski's
  2184. `org-mouse.el'. Here is an example of a checkbox list.
  2185. * TODO Organize party [3/6]
  2186. - call people [1/3]
  2187. - [ ] Peter
  2188. - [X] Sarah
  2189. - [ ] Sam
  2190. - [X] order food
  2191. - [ ] think about what music to play
  2192. - [X] talk to the neighbors
  2193. The `[3/6]' and `[1/3]' in the first and second line are cookies
  2194. indicating how many checkboxes are present in this entry, and how many
  2195. of them have been checked off. This can give you an idea on how many
  2196. checkboxes remain, even without opening a folded entry. The cookies
  2197. can be placed into a headline or into (the first line of) a plain list
  2198. item. Each cookie covers all checkboxes structurally below that
  2199. headline/item. You have to insert the cookie yourself by typing either
  2200. `[/]' or `[%]'. In the first case you get an `n out of m' result, in
  2201. the second case you get information about the percentage of checkboxes
  2202. checked (in the above example, this would be `[50%]' and `[33%],
  2203. respectively').
  2204. The following commands work with checkboxes:
  2205. `C-c C-c'
  2206. Toggle checkbox at point. With prefix argument, set it to `[-]',
  2207. which is considered to be an intermediate state.
  2208. `C-c C-x C-b'
  2209. Toggle checkbox at point.
  2210. - If there is an active region, toggle the first checkbox in
  2211. the region and set all remaining boxes to the same status as
  2212. the first. If you want to toggle all boxes in the region
  2213. independently, use a prefix argument.
  2214. - If the cursor is in a headline, toggle checkboxes in the
  2215. region between this headline and the next (so _not_ the
  2216. entire subtree).
  2217. - If there is no active region, just toggle the checkbox at
  2218. point.
  2219. `M-S-<RET>'
  2220. Insert a new item with a checkbox. This works only if the cursor
  2221. is already in a plain list item (*note Plain lists::).
  2222. `C-c #'
  2223. Update the checkbox statistics in the current outline entry. When
  2224. called with a `C-u' prefix, update the entire file. Checkbox
  2225. statistic cookies are updated automatically if you toggle
  2226. checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'. If
  2227. you delete boxes or add/change them by hand, use this command to
  2228. get things back into synch. Or simply toggle any checkbox twice
  2229. with `C-c C-c'.
  2230. 
  2231. File: org, Node: Tags, Next: Properties and columns, Prev: TODO items, Up: Top
  2232. 6 Tags
  2233. ******
  2234. If you wish to implement a system of labels and contexts for
  2235. cross-correlating information, an excellent way is to assign tags to
  2236. headlines. Org-mode has extensive support for using tags.
  2237. Every headline can contain a list of tags, at the end of the
  2238. headline. Tags are normal words containing letters, numbers, `_', and
  2239. `@'. Tags must be preceded and followed by a single colon; like
  2240. `:WORK:'. Several tags can be specified like `:work:URGENT:'.
  2241. * Menu:
  2242. * Tag inheritance:: Tags use the tree structure of the outline
  2243. * Setting tags:: How to assign tags to a headline
  2244. * Tag searches:: Searching for combinations of tags
  2245. 
  2246. File: org, Node: Tag inheritance, Next: Setting tags, Prev: Tags, Up: Tags
  2247. 6.1 Tag inheritance
  2248. ===================
  2249. Tags make use of the hierarchical structure of outline trees. If a
  2250. heading has a certain tag, all subheadings will inherit the tag as
  2251. well. For example, in the list
  2252. * Meeting with the French group :work:
  2253. ** Summary by Frank :boss:notes:
  2254. *** TODO Prepare slides for him :action:
  2255. the final heading will have the tags `:work:', `:boss:', `:notes:', and
  2256. `:action:'. When executing tag searches and Org-mode finds that a
  2257. certain headline matches the search criterion, it will not check any
  2258. sublevel headline, assuming that these likely also match, and that the
  2259. list of matches can become very long. This may not be what you want,
  2260. however, and you can influence inheritance and searching using the
  2261. variables `org-use-tag-inheritance' and `org-tags-match-list-sublevels'.
  2262. 
  2263. File: org, Node: Setting tags, Next: Tag searches, Prev: Tag inheritance, Up: Tags
  2264. 6.2 Setting tags
  2265. ================
  2266. Tags can simply be typed into the buffer at the end of a headline.
  2267. After a colon, `M-<TAB>' offers completion on tags. There is also a
  2268. special command for inserting tags:
  2269. `C-c C-c'
  2270. Enter new tags for the current headline. Org-mode will either
  2271. offer completion or a special single-key interface for setting
  2272. tags, see below. After pressing <RET>, the tags will be inserted
  2273. and aligned to `org-tags-column'. When called with a `C-u'
  2274. prefix, all tags in the current buffer will be aligned to that
  2275. column, just to make things look nice. TAGS are automatically
  2276. realigned after promotion, demotion, and TODO state changes (*note
  2277. TODO basics::).
  2278. Org will support tag insertion based on a _list of tags_. By
  2279. default this list is constructed dynamically, containing all tags
  2280. currently used in the buffer. You may also globally specify a hard list
  2281. of tags with the variable `org-tag-alist'. Finally you can set the
  2282. default tags for a given file with lines like
  2283. #+TAGS: @work @home @tennisclub
  2284. #+TAGS: laptop car pc sailboat
  2285. If you have globally defined your preferred set of tags using the
  2286. variable `org-tag-alist', but would like to use a dynamic tag list in a
  2287. specific file: Just add an empty TAGS option line to that file:
  2288. #+TAGS:
  2289. The default support method for entering tags is minibuffer
  2290. completion. However, Org-mode also implements a much better method:
  2291. _fast tag selection_. This method allows to select and deselect tags
  2292. with a single key per tag. To function efficiently, you should assign
  2293. unique keys to most tags. This can be done globally with
  2294. (setq org-tag-alist '(("@work" . ?w) ("@home" . ?h) ("laptop" . ?l)))
  2295. or on a per-file basis with
  2296. #+TAGS: @work(w) @home(h) @tennisclub(t) laptop(l) pc(p)
  2297. You can also group together tags that are mutually exclusive. With
  2298. curly braces(1)
  2299. #+TAGS: { @work(w) @home(h) @tennisclub(t) } laptop(l) pc(p)
  2300. you indicate that at most one of `@work', `@home', and `@tennisclub'
  2301. should be selected.
  2302. Don't forget to press `C-c C-c' with the cursor in one of these lines
  2303. to activate any changes.
  2304. If at least one tag has a selection key, pressing `C-c C-c' will
  2305. automatically present you with a special interface, listing inherited
  2306. tags, the tags of the current headline, and a list of all legal tags
  2307. with corresponding keys(2). In this interface, you can use the
  2308. following keys:
  2309. `a-z...'
  2310. Pressing keys assigned to tags will add or remove them from the
  2311. list of tags in the current line. Selecting a tag in a group of
  2312. mutually exclusive tags will turn off any other tags from that
  2313. group.
  2314. `<TAB>'
  2315. Enter a tag in the minibuffer, even if the tag is not in the
  2316. predefined list. You will be able to complete on all tags present
  2317. in the buffer.
  2318. `<SPC>'
  2319. Clear all tags for this line.
  2320. `<RET>'
  2321. Accept the modified set.
  2322. `C-g'
  2323. Abort without installing changes.
  2324. `q'
  2325. If `q' is not assigned to a tag, it aborts like `C-g'.
  2326. `!'
  2327. Turn off groups of mutually exclusive tags. Use this to (as an
  2328. exception) assign several tags from such a group.
  2329. `C-c'
  2330. Toggle auto-exit after the next change (see below). If you are
  2331. using expert mode, the first `C-c' will display the selection
  2332. window.
  2333. This method lets you assign tags to a headline with very few keys. With
  2334. the above setup, you could clear the current tags and set `@home',
  2335. `laptop' and `pc' tags with just the following keys: `C-c C-c <SPC> h l
  2336. p <RET>'. Switching from `@home' to `@work' would be done with `C-c
  2337. C-c w <RET>' or alternatively with `C-c C-c C-c w'. Adding the
  2338. non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
  2339. <RET> <RET>'.
  2340. If you find that most of the time, you need only a single keypress to
  2341. modify your list of tags, set the variable
  2342. `org-fast-tag-selection-single-key'. Then you no longer have to press
  2343. <RET> to exit fast tag selection - it will immediately exit after the
  2344. first change. If you then occasionally need more keys, press `C-c' to
  2345. turn off auto-exit for the current tag selection process (in effect:
  2346. start selection with `C-c C-c C-c' instead of `C-c C-c'). If you set
  2347. the variable to the value `expert', the special window is not even
  2348. shown for single-key tag selection, it comes up only when you press an
  2349. extra `C-c'.
  2350. ---------- Footnotes ----------
  2351. (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
  2352. respectively. Several groups are allowed.
  2353. (2) Keys will automatically be assigned to tags which have no
  2354. configured keys.
  2355. 
  2356. File: org, Node: Tag searches, Prev: Setting tags, Up: Tags
  2357. 6.3 Tag searches
  2358. ================
  2359. Once a tags system has been set up, it can be used to collect related
  2360. information into special lists.
  2361. `C-c \'
  2362. `C-c / T'
  2363. Create a sparse tree with all headlines matching a tags search.
  2364. With a `C-u' prefix argument, ignore headlines that are not a TODO
  2365. line.
  2366. `C-c a m'
  2367. Create a global list of tag matches from all agenda files. *Note
  2368. Matching tags and properties::.
  2369. `C-c a M'
  2370. Create a global list of tag matches from all agenda files, but
  2371. check only TODO items and force checking subitems (see variable
  2372. `org-tags-match-list-sublevels').
  2373. A tags search string can use Boolean operators `&' for AND and `|'
  2374. for OR. `&' binds more strongly than `|'. Parenthesis are currently
  2375. not implemented. A tag may also be preceded by `-', to select against
  2376. it, and `+' is syntactic sugar for positive selection. The AND
  2377. operator `&' is optional when `+' or `-' is present. Examples:
  2378. `+work-boss'
  2379. Select headlines tagged `:work:', but discard those also tagged
  2380. `:boss:'.
  2381. `work|laptop'
  2382. Selects lines tagged `:work:' or `:laptop:'.
  2383. `work|laptop&night'
  2384. Like before, but require the `:laptop:' lines to be tagged also
  2385. `night'.
  2386. If you are using multi-state TODO keywords (*note TODO
  2387. extensions::), it can be useful to also match on the TODO keyword.
  2388. This can be done by adding a condition after a slash to a tags match.
  2389. The syntax is similar to the tag matches, but should be applied with
  2390. consideration: For example, a positive selection on several TODO
  2391. keywords can not meaningfully be combined with boolean AND. However,
  2392. _negative selection_ combined with AND can be meaningful. To make sure
  2393. that only lines are checked that actually have any TODO keyword, use
  2394. `C-c a M', or equivalently start the todo part after the slash with `!'.
  2395. Examples:
  2396. `work/WAITING'
  2397. Select `:work:'-tagged TODO lines with the specific TODO keyword
  2398. `WAITING'.
  2399. `work/!-WAITING-NEXT'
  2400. Select `:work:'-tagged TODO lines that are neither `WAITING' nor
  2401. `NEXT'
  2402. `work/+WAITING|+NEXT'
  2403. Select `:work:'-tagged TODO lines that are either `WAITING' or
  2404. `NEXT'.
  2405. Any element of the tag/todo match can be a regular expression - in
  2406. this case it must be enclosed in curly braces. For example,
  2407. `work+{^boss.*}' matches headlines that contain the tag `work' and any
  2408. tag starting with `boss'.
  2409. You can also require a headline to be of a certain level or
  2410. category, by writing instead of any TAG an expression like `LEVEL=3' or
  2411. `CATEGORY="work"', respectively. For example, a search
  2412. `+LEVEL=3+boss/-DONE' lists all level three headlines that have the tag
  2413. `boss' and are _not_ marked with the todo keyword DONE.
  2414. 
  2415. File: org, Node: Properties and columns, Next: Dates and times, Prev: Tags, Up: Top
  2416. 7 Properties and Columns
  2417. ************************
  2418. Properties are a set of key-value pairs associated with an entry. There
  2419. are two main applications for properties in Org-mode. First, properties
  2420. are like tags, but with a value. For example, in a file where you
  2421. document bugs and plan releases of a piece of software, instead of using
  2422. tags like `:release_1:', `:release_2:', it can be more efficient to use
  2423. a property `Release' with a value `1.0' or `2.0'. Second, you can use
  2424. properties to implement (very basic) database capabilities in an
  2425. Org-mode buffer, for example to create a list of Music CD's you own.
  2426. You can edit and view properties conveniently in column view (*note
  2427. Column view::).
  2428. * Menu:
  2429. * Property syntax:: How properties are spelled out
  2430. * Special properties:: Access to other Org-mode features
  2431. * Property searches:: Matching property values
  2432. * Property inheritance:: Passing values down the tree
  2433. * Column view:: Tabular viewing and editing
  2434. * Property API:: Properties for Lisp programmers
  2435. 
  2436. File: org, Node: Property syntax, Next: Special properties, Prev: Properties and columns, Up: Properties and columns
  2437. 7.1 Property Syntax
  2438. ===================
  2439. Properties are key-value pairs. They need to be inserted into a special
  2440. drawer (*note Drawers::) with the name `PROPERTIES'. Each property is
  2441. specified on a single line, with the key (surrounded by colons) first,
  2442. and the value after it. Here is an example:
  2443. * CD collection
  2444. ** Classic
  2445. *** Goldberg Variations
  2446. :PROPERTIES:
  2447. :Title: Goldberg Variations
  2448. :Composer: J.S. Bach
  2449. :Artist: Glen Gould
  2450. :Publisher: Deutsche Grammphon
  2451. :NDisks: 1
  2452. :END:
  2453. You may define the allowed values for a particular property `Xyz' by
  2454. setting a property `Xyz_ALL'. This special property is _inherited_, so
  2455. if you set it in a level 1 entry, it will apply to the entire tree.
  2456. When allowed values are defined, setting the corresponding property
  2457. becomes easier and is less prone to typing errors. For the example
  2458. with the CD collection, we can predefine publishers and the number of
  2459. disks in a box like this:
  2460. * CD collection
  2461. :PROPERTIES:
  2462. :NDisks_ALL: 1 2 3 4
  2463. :Publisher_ALL: "Deutsche Grammophon" Phillips EMI
  2464. :END:
  2465. If you want to set properties that can be inherited by any entry in a
  2466. file, use a line like
  2467. #+PROPERTY: NDisks_ALL 1 2 3 4
  2468. Property values set with the global variable `org-global-properties'
  2469. can be inherited by all entries in all Org-mode files.
  2470. The following commands help to work with properties:
  2471. `M-<TAB>'
  2472. After an initial colon in a line, complete property keys. All
  2473. keys used in the current file will be offered as possible
  2474. completions.
  2475. `C-c C-x p'
  2476. Set a property. This prompts for a property name and a value. If
  2477. necessary, the property drawer is created as well.
  2478. `M-x org-insert-property-drawer'
  2479. Insert a property drawer into the current entry. The drawer will
  2480. be inserted early in the entry, but after the lines with planning
  2481. information like deadlines.
  2482. `C-c C-c'
  2483. With the cursor in a property drawer, this executes property
  2484. commands.
  2485. `C-c C-c s'
  2486. Set a property in the current entry. Both the property and the
  2487. value can be inserted using completion.
  2488. `S-<left>/<right>'
  2489. Switch property at point to the next/previous allowed value.
  2490. `C-c C-c d'
  2491. Remove a property from the current entry.
  2492. `C-c C-c D'
  2493. Globally remove a property, from all entries in the current file.
  2494. `C-c C-c c'
  2495. Compute the property at point, using the operator and scope from
  2496. the nearest column format definition.
  2497. 
  2498. File: org, Node: Special properties, Next: Property searches, Prev: Property syntax, Up: Properties and columns
  2499. 7.2 Special Properties
  2500. ======================
  2501. Special properties provide alternative access method to Org-mode
  2502. features discussed in the previous chapters, like the TODO state or the
  2503. priority of an entry. This interface exists so that you can include
  2504. these states into columns view (*note Column view::), or to use them in
  2505. queries. The following property names are special and should not be
  2506. used as keys in the properties drawer:
  2507. TODO The TODO keyword of the entry.
  2508. TAGS The tags defined directly in the headline.
  2509. ALLTAGS All tags, including inherited ones.
  2510. PRIORITY The priority of the entry, a string with a single letter.
  2511. DEADLINE The deadline time string, without the angular brackets.
  2512. SCHEDULED The scheduling time stamp, without the angular brackets.
  2513. TIMESTAMP The first keyword-less time stamp in the entry.
  2514. TIMESTAMP_IA The first inactive time stamp in the entry.
  2515. 
  2516. File: org, Node: Property searches, Next: Property inheritance, Prev: Special properties, Up: Properties and columns
  2517. 7.3 Property searches
  2518. =====================
  2519. To create sparse trees and special lists with selection based on
  2520. properties, the same commands are used as for tag searches (*note Tag
  2521. searches::), and the same logic applies. For example, a search string
  2522. +work-boss+PRIORITY="A"+Coffee="unlimited"+With={Sarah\|Denny}
  2523. finds entries tagged `:work:' but not `:boss:', which also have a
  2524. priority value `A', a `:Coffee:' property with the value `unlimited',
  2525. and a `:With:' property that is matched by the regular expression
  2526. `Sarah\|Denny'.
  2527. You can configure Org-mode to use property inheritance during a
  2528. search, see *Note Property inheritance:: for details.
  2529. There is also a special command for creating sparse trees based on a
  2530. single property:
  2531. `C-c / p'
  2532. Create a sparse tree based on the value of a property. This first
  2533. prompts for the name of a property, and then for a value. A
  2534. sparse tree is created with all entries that define this property
  2535. with the given value. If you enclose the value into curly braces,
  2536. it is interpreted as a regular expression and matched against the
  2537. property values.
  2538. 
  2539. File: org, Node: Property inheritance, Next: Column view, Prev: Property searches, Up: Properties and columns
  2540. 7.4 Property Inheritance
  2541. ========================
  2542. The outline structure of Org-mode documents lends itself for an
  2543. inheritance model of properties: If the parent in a tree has a certain
  2544. property, the children can inherit this property. Org-mode does not
  2545. turn this on by default, because it can slow down property searches
  2546. significantly and is often not needed. However, if you find inheritance
  2547. useful, you can turn it on by setting the variable
  2548. `org-use-property-inheritance'. It may be set to `t', to make all
  2549. properties inherited from the parent, or to a list of properties that
  2550. should be inherited.
  2551. Org-mode has a few properties for which inheritance is hard-coded, at
  2552. least for the special applications for which they are used:
  2553. `COLUMNS'
  2554. The column property defines the format of column view (*note
  2555. Column view::). It is inherited in the sense that the level where
  2556. a `COLUMNS' property is defined is used as the starting point for a
  2557. column view table, independently of the location in the subtree
  2558. from where columns view is turned on.
  2559. `CATEGORY'
  2560. For agenda view, a category set through a `CATEGORY' property
  2561. applies to the entire subtree.
  2562. `ARCHIVE'
  2563. For archiving, the `ARCHIVE' property may define the archive
  2564. location for the entire subtree (*note Moving subtrees::).
  2565. 
  2566. File: org, Node: Column view, Next: Property API, Prev: Property inheritance, Up: Properties and columns
  2567. 7.5 Column View
  2568. ===============
  2569. A great way to view and edit properties in an outline tree is _column
  2570. view_. In column view, each outline item is turned into a table row.
  2571. Columns in this table provide access to properties of the entries.
  2572. Org-mode implements columns by overlaying a tabular structure over the
  2573. headline of each item. While the headlines have been turned into a
  2574. table row, you can still change the visibility of the outline tree.
  2575. For example, you get a compact table by switching to CONTENTS view
  2576. (`S-<TAB> S-<TAB>', or simply `c' while column view is active), but you
  2577. can still open, read, and edit the entry below each headline. Or, you
  2578. can switch to column view after executing a sparse tree command and in
  2579. this way get a table only for the selected items. Column view also
  2580. works in agenda buffers (*note Agenda views::) where queries have
  2581. collected selected items, possibly from a number of files.
  2582. * Menu:
  2583. * Defining columns:: The COLUMNS format property
  2584. * Using column view:: How to create and use column view
  2585. * Capturing Column View:: A dynamic block for column view
  2586. 
  2587. File: org, Node: Defining columns, Next: Using column view, Prev: Column view, Up: Column view
  2588. 7.5.1 Defining Columns
  2589. ----------------------
  2590. Setting up a column view first requires defining the columns. This is
  2591. done by defining a column format line.
  2592. * Menu:
  2593. * Scope of column definitions:: Where defined, where valid?
  2594. * Column attributes:: Appearance and content of a column
  2595. 
  2596. File: org, Node: Scope of column definitions, Next: Column attributes, Prev: Defining columns, Up: Defining columns
  2597. 7.5.1.1 Scope of column definitions
  2598. ...................................
  2599. To define a column format for an entire file, use a line like
  2600. #+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
  2601. To specify a format that only applies to a specific tree, add a
  2602. COLUMNS property to the top node of that tree, for example
  2603. ** Top node for columns view
  2604. :PROPERTIES:
  2605. :COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
  2606. :END:
  2607. If a `COLUMNS' property is present in an entry, it defines columns
  2608. for the entry itself, and for the entire subtree below it. Since the
  2609. column definition is part of the hierarchical structure of the document,
  2610. you can define columns on level 1 that are general enough for all
  2611. sublevels, and more specific columns further down, when you edit a
  2612. deeper part of the tree.
  2613. 
  2614. File: org, Node: Column attributes, Prev: Scope of column definitions, Up: Defining columns
  2615. 7.5.1.2 Column attributes
  2616. .........................
  2617. A column definition sets the attributes of a column. The general
  2618. definition looks like this:
  2619. %[width]property[(title)][{summary-type}]
  2620. Except for the percent sign and the property name, all items are
  2621. optional. The individual parts have the following meaning:
  2622. width An integer specifying the width of the column in characters.
  2623. If omitted, the width will be determined automatically.
  2624. property The property that should be edited in this column.
  2625. (title) The header text for the column. If omitted, the
  2626. property name is used.
  2627. {summary-type} The summary type. If specified, the column values for
  2628. parent nodes are computed from the children.
  2629. Supported summary types are:
  2630. {+} Sum numbers in this column.
  2631. {+;%.1f} Like `+', but format result with `%.1f'.
  2632. {$} Currency, short for `+;%.2f'.
  2633. {:} Sum times, HH:MM:SS, plain numbers are hours.
  2634. {X} Checkbox status, [X] if all children are [X].
  2635. Here is an example for a complete columns definition, along with allowed
  2636. values.
  2637. :COLUMNS: %20ITEM %9Approved(Approved?){X} %Owner %11Status %10Time_Spent{:}
  2638. :Owner_ALL: Tammy Mark Karl Lisa Don
  2639. :Status_ALL: "In progress" "Not started yet" "Finished" ""
  2640. :Approved_ALL: "[ ]" "[X]"
  2641. The first column, `%25ITEM', means the first 25 characters of the
  2642. item itself, i.e. of the headline. You probably always should start the
  2643. column definition with the ITEM specifier. The other specifiers create
  2644. columns `Owner' with a list of names as allowed values, for `Status'
  2645. with four different possible values, and for a checkbox field
  2646. `Approved'. When no width is given after the `%' character, the column
  2647. will be exactly as wide as it needs to be in order to fully display all
  2648. values. The `Approved' column does have a modified title (`Approved?',
  2649. with a question mark). Summaries will be created for the `Time_Spent'
  2650. column by adding time duration expressions like HH:MM, and for the
  2651. `Approved' column, by providing an `[X]' status if all children have
  2652. been checked.
  2653. 
  2654. File: org, Node: Using column view, Next: Capturing Column View, Prev: Defining columns, Up: Column view
  2655. 7.5.2 Using Column View
  2656. -----------------------
  2657. Turning column view on and off
  2658. ..............................
  2659. `C-c C-x C-c'
  2660. Create the column view for the local environment. This command
  2661. searches the hierarchy, up from point, for a `COLUMNS' property
  2662. that defines a format. When one is found, the column view table
  2663. is established for the entire tree, starting from the entry that
  2664. contains the `COLUMNS' property. If none is found, the format is
  2665. taken from the `#+COLUMNS' line or from the variable
  2666. `org-columns-default-format', and column view is established for
  2667. the current entry and its subtree.
  2668. `q'
  2669. Exit column view.
  2670. Editing values
  2671. ..............
  2672. `<left> <right> <up> <down>'
  2673. Move through the column view from field to field.
  2674. `S-<left>/<right>'
  2675. Switch to the next/previous allowed value of the field. For this,
  2676. you have to have specified allowed values for a property.
  2677. `n / p'
  2678. Same as `S-<left>/<right>'
  2679. `e'
  2680. Edit the property at point. For the special properties, this will
  2681. invoke the same interface that you normally use to change that
  2682. property. For example, when editing a TAGS property, the tag
  2683. completion or fast selection interface will pop up.
  2684. `C-c C-c'
  2685. When there is a checkbox at point, toggle it.
  2686. `v'
  2687. View the full value of this property. This is useful if the width
  2688. of the column is smaller than that of the value.
  2689. `a'
  2690. Edit the list of allowed values for this property. If the list is
  2691. found in the hierarchy, the modified values is stored there. If
  2692. no list is found, the new value is stored in the first entry that
  2693. is part of the current column view.
  2694. Modifying the table structure
  2695. .............................
  2696. `< / >'
  2697. Make the column narrower/wider by one character.
  2698. `S-M-<right>'
  2699. Insert a new column, to the right of the current column.
  2700. `S-M-<left>'
  2701. Delete the current column.
  2702. 
  2703. File: org, Node: Capturing Column View, Prev: Using column view, Up: Column view
  2704. 7.5.3 Capturing Column View
  2705. ---------------------------
  2706. Since column view is just an overlay over a buffer, it cannot be
  2707. exported or printed directly. If you want to capture a column view, use
  2708. the dynamic block (*note Dynamic blocks::). The frame of this block
  2709. looks like this:
  2710. * The column view
  2711. #+BEGIN: columnview :hlines 1 :id "label"
  2712. #+END:
  2713. This dynamic block has the following parameters:
  2714. `:id'
  2715. This is most important parameter. Column view is a feature that is
  2716. often localized to a certain (sub)tree, and the capture block
  2717. might be in a different location in the file. To identify the
  2718. tree whose view to capture, you can use 3 values:
  2719. local use the tree in which the capture block is located
  2720. global make a global view, including all headings in the file
  2721. "label" call column view in the tree that has and `:ID:'
  2722. property with the value label
  2723. `:hlines'
  2724. When `t', insert a hline after every line. When a number N, insert
  2725. a hline before each headline with level `<= N'.
  2726. `:vlines'
  2727. When set to `t', enforce column groups to get vertical lines.
  2728. The following commands insert or update the dynamic block:
  2729. `C-c C-x r'
  2730. Insert a dynamic block capturing a column view. You will be
  2731. prompted for the scope or id of the view.
  2732. `C-c C-c'
  2733. `C-c C-x C-u'
  2734. Update dynamical block at point. The cursor needs to be in the
  2735. `#+BEGIN' line of the dynamic block.
  2736. `C-u C-c C-x C-u'
  2737. Update all dynamic blocks (*note Dynamic blocks::). This is
  2738. useful if you have several clocktable blocks in a buffer.
  2739. 
  2740. File: org, Node: Property API, Prev: Column view, Up: Properties and columns
  2741. 7.6 The Property API
  2742. ====================
  2743. There is a full API for accessing and changing properties. This API can
  2744. be used by Emacs Lisp programs to work with properties and to implement
  2745. features based on them. For more information see *Note Using the
  2746. property API::.
  2747. 
  2748. File: org, Node: Dates and times, Next: Remember, Prev: Properties and columns, Up: Top
  2749. 8 Dates and Times
  2750. *****************
  2751. Items can be labeled with a date and/or a time to make them useful for
  2752. project planning. The specially formatted string carrying the date and
  2753. time information is called a _timestamp_ in Org-mode. This may be a
  2754. little confusing because timestamp is often used as indicating when
  2755. something was created or last changed. However, in Org-mode this term
  2756. is used in a much wider sense.
  2757. * Menu:
  2758. * Time stamps:: Assigning a time to a tree entry
  2759. * Creating timestamps:: Commands which insert timestamps
  2760. * Deadlines and scheduling:: Planning your work
  2761. * Clocking work time::
  2762. 
  2763. File: org, Node: Time stamps, Next: Creating timestamps, Prev: Dates and times, Up: Dates and times
  2764. 8.1 Time stamps, deadlines and scheduling
  2765. =========================================
  2766. A time stamp is a specification of a date (possibly with time or a range
  2767. of times) in a special format, either `<2003-09-16 Tue>' or
  2768. `<2003-09-16 Tue 09:39>' or `<2003-09-16 Tue 12:00-12:30>'(1). A time
  2769. stamp can appear anywhere in the headline or body of an org-tree entry.
  2770. Its presence causes entries to be shown on specific dates in the agenda
  2771. (*note Weekly/Daily agenda::). We distinguish:
  2772. PLAIN TIME STAMP; EVENT; APPOINTMENT
  2773. A simple time stamp just assigns a date/time to an item. This is
  2774. just like writing down an appointment or event in a paper agenda.
  2775. In the timeline and agenda displays, the headline of an entry
  2776. associated with a plain time stamp will be shown exactly on that
  2777. date.
  2778. * Meet Peter at the movies <2006-11-01 Wed 19:15>
  2779. * Discussion on climate change <2006-11-02 Thu 20:00-22:00>
  2780. TIME STAMP WITH REPEATER INTERVAL
  2781. A time stamp may contain a _repeater interval_, indicating that it
  2782. applies not only on the given date, but again and again after a
  2783. certain interval of N days (d), weeks (w), months(m), or years(y).
  2784. The following will show up in the agenda every Wednesday:
  2785. * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
  2786. DIARY-STYLE SEXP ENTRIES
  2787. For more complex date specifications, Org-mode supports using the
  2788. special sexp diary entries implemented in the Emacs calendar/diary
  2789. package. For example
  2790. * The nerd meeting on every 2nd Thursday of the month
  2791. <%%(diary-float t 4 2)>
  2792. TIME/DATE RANGE
  2793. Two time stamps connected by `--' denote a range. The headline
  2794. will be shown on the first and last day of the range, and on any
  2795. dates that are displayed and fall in the range. Here is an
  2796. example:
  2797. ** Meeting in Amsterdam
  2798. <2004-08-23 Mon>--<2004-08-26 Thu>
  2799. INACTIVE TIME STAMP
  2800. Just like a plain time stamp, but with square brackets instead of
  2801. angular ones. These time stamps are inactive in the sense that
  2802. they do _not_ trigger an entry to show up in the agenda.
  2803. * Gillian comes late for the fifth time [2006-11-01 Wed]
  2804. ---------- Footnotes ----------
  2805. (1) This is the standard ISO date/time format. If you cannot get
  2806. used to these, see *Note Custom time format::
  2807. 
  2808. File: org, Node: Creating timestamps, Next: Deadlines and scheduling, Prev: Time stamps, Up: Dates and times
  2809. 8.2 Creating timestamps
  2810. =======================
  2811. For Org-mode to recognize time stamps, they need to be in the specific
  2812. format. All commands listed below produce time stamps in the correct
  2813. format.
  2814. `C-c .'
  2815. Prompt for a date and insert a corresponding time stamp. When the
  2816. cursor is at a previously used time stamp, it is updated to NOW.
  2817. When this command is used twice in succession, a time range is
  2818. inserted.
  2819. `C-u C-c .'
  2820. Like `C-c .', but use the alternative format which contains date
  2821. and time. The default time can be rounded to multiples of 5
  2822. minutes, see the option `org-time-stamp-rounding-minutes'.
  2823. `C-c !'
  2824. Like `C-c .', but insert an inactive time stamp that will not cause
  2825. an agenda entry.
  2826. `C-c <'
  2827. Insert a time stamp corresponding to the cursor date in the
  2828. Calendar.
  2829. `C-c >'
  2830. Access the Emacs calendar for the current date. If there is a
  2831. timestamp in the current line, goto the corresponding date instead.
  2832. `C-c C-o'
  2833. Access the agenda for the date given by the time stamp or -range at
  2834. point (*note Weekly/Daily agenda::).
  2835. `S-<left>'
  2836. `S-<right>'
  2837. Change date at cursor by one day. These key bindings conflict with
  2838. CUA-mode (*note Conflicts::).
  2839. `S-<up>'
  2840. `S-<down>'
  2841. Change the item under the cursor in a timestamp. The cursor can
  2842. be on a year, month, day, hour or minute. Note that if the cursor
  2843. is in a headline and not at a time stamp, these same keys modify
  2844. the priority of an item. (*note Priorities::). The key bindings
  2845. also conflict with CUA-mode (*note Conflicts::).
  2846. `C-c C-y'
  2847. Evaluate a time range by computing the difference between start and
  2848. end. With prefix arg, insert result after the time range (in a
  2849. table: into the following column).
  2850. * Menu:
  2851. * The date/time prompt:: How org-mode helps you entering date and time
  2852. * Custom time format:: Making dates look differently
  2853. 
  2854. File: org, Node: The date/time prompt, Next: Custom time format, Prev: Creating timestamps, Up: Creating timestamps
  2855. 8.2.1 The date/time prompt
  2856. --------------------------
  2857. When Org-mode prompts for a date/time, the default is shown as an ISO
  2858. date, and the prompt therefore seems to ask for an ISO date. But it
  2859. will in fact accept any string containing some date and/or time
  2860. information, and it is really smart about interpreting your input. You
  2861. can, for example, use `C-y' to paste a (possibly multi-line) string
  2862. copied from an email message. Org-mode will find whatever information
  2863. is in there and derive anything you have not specified from the
  2864. _default date and time_. The default is usually the current date and
  2865. time, but when modifying an existing time stamp, or when entering the
  2866. second stamp of a range, it is taken from the stamp in the buffer.
  2867. When filling in information, Org-mode assumes that most of the time you
  2868. will want to enter a date in the future: If you omit the month/year and
  2869. the given day/month is before today, it will assume that you mean a
  2870. future date(1).
  2871. For example, lets assume that today is June 13, 2006. Here is how
  2872. various inputs will be interpreted, the items filled in by Org-mode are
  2873. in bold.
  2874. 3-2-5 --> 2003-02-05
  2875. 14 --> 2006-06-14
  2876. 12 --> 2006-07-12
  2877. Fri --> nearest Friday (defaultdate or later)
  2878. sep 15 --> 2006-11-15
  2879. feb 15 --> 2007-02-15
  2880. sep 12 9 --> 2009-09-12
  2881. 12:45 --> 2006-06-13 12:45
  2882. 22 sept 0:34 --> 2006-09-22 0:34
  2883. Furthermore you can specify a relative date by giving, as the
  2884. _first_ thing in the input: a plus/minus sign, a number and a letter
  2885. [dwmy] to indicate change in days weeks, months, years. With a single
  2886. plus or minus, the date is always relative to today. With a double
  2887. plus or minus, it is relative to the default date. If instead of a
  2888. single letter, you use the abbreviation of day name, the date will be
  2889. the nth such day. E.g.
  2890. +4d --> four days from today
  2891. +4 --> same as above
  2892. +2w --> two weeks from today
  2893. ++5 --> five days from default date
  2894. +2tue --> second tuesday from now.
  2895. The function understands English month and weekday abbreviations. If
  2896. you want to use unabbreviated names and/or other languages, configure
  2897. the variables `parse-time-months' and `parse-time-weekdays'.
  2898. Parallel to the minibuffer prompt, a calendar is popped up(2). When
  2899. you exit the date prompt, either by clicking on a date in the calendar,
  2900. or by pressing <RET>, the date selected in the calendar will be
  2901. combined with the information entered at the prompt. You can control
  2902. the calendar fully from the minibuffer:
  2903. > / < Scroll calendar forward/backward by one month.
  2904. mouse-1 Select date by clicking on it.
  2905. S-<right>/<left> One day forward/backward.
  2906. S-<down>/<up> One week forward/backward.
  2907. M-S-<right>/<left> One month forward/backward.
  2908. <RET> Choose date in calendar.
  2909. The actions of the date/time prompt may seem complex, but I asure you
  2910. they will grow on you. To help you understand what is going on, the
  2911. current interpretation of your input will be displayed live in the
  2912. minibuffer(3).
  2913. ---------- Footnotes ----------
  2914. (1) See the variable `org-read-date-prefer-future'.
  2915. (2) If you don't need/want the calendar, configure the variable
  2916. `org-popup-calendar-for-date-prompt'.
  2917. (3) If you find this distracting, turn the display of with
  2918. `org-read-date-display-live'.
  2919. 
  2920. File: org, Node: Custom time format, Prev: The date/time prompt, Up: Creating timestamps
  2921. 8.2.2 Custom time format
  2922. ------------------------
  2923. Org-mode uses the standard ISO notation for dates and times as it is
  2924. defined in ISO 8601. If you cannot get used to this and require another
  2925. representation of date and time to keep you happy, you can get it by
  2926. customizing the variables `org-display-custom-times' and
  2927. `org-time-stamp-custom-formats'.
  2928. `C-c C-x C-t'
  2929. Toggle the display of custom formats for dates and times.
  2930. Org-mode needs the default format for scanning, so the custom date/time
  2931. format does not _replace_ the default format - instead it is put _over_
  2932. the default format using text properties. This has the following
  2933. consequences:
  2934. * You cannot place the cursor onto a time stamp anymore, only before
  2935. or after.
  2936. * The `S-<up>/<down>' keys can no longer be used to adjust each
  2937. component of a time stamp. If the cursor is at the beginning of
  2938. the stamp, `S-<up>/<down>' will change the stamp by one day, just
  2939. like `S-<left>/<right>'. At the end of the stamp, the time will
  2940. be changed by one minute.
  2941. * If the time stamp contains a range of clock times or a repeater,
  2942. these will not be overlayed, but remain in the buffer as they were.
  2943. * When you delete a time stamp character-by-character, it will only
  2944. disappear from the buffer after _all_ (invisible) characters
  2945. belonging to the ISO timestamp have been removed.
  2946. * If the custom time stamp format is longer than the default and you
  2947. are using dates in tables, table alignment will be messed up. If
  2948. the custom format is shorter, things do work as expected.
  2949. 
  2950. File: org, Node: Deadlines and scheduling, Next: Clocking work time, Prev: Creating timestamps, Up: Dates and times
  2951. 8.3 Deadlines and Scheduling
  2952. ============================
  2953. A time stamp may be preceded by special keywords to facilitate planning
  2954. of work:
  2955. DEADLINE
  2956. The task (most likely a TODO item) is supposed to be finished on
  2957. that date, and it will be listed then. In addition, the
  2958. compilation for _today_ will carry a warning about the approaching
  2959. or missed deadline, starting `org-deadline-warning-days' before
  2960. the due date, and continuing until the entry is marked DONE. An
  2961. example:
  2962. *** TODO write article about the Earth for the Guide
  2963. The editor in charge is [[bbdb:Ford Prefect]]
  2964. DEADLINE: <2004-02-29 Sun>
  2965. You can specify a different lead time for warnings for a specific
  2966. deadlines using the following syntax. Here is an example with a
  2967. warning period of 5 days `DEADLINE: <2004-02-29 Sun -5d>'.
  2968. SCHEDULED
  2969. You are planning to start working on that task on the given date.
  2970. The headline will be listed under the given date(1). In addition,
  2971. a reminder that the scheduled date has passed will be present in
  2972. the compilation for _today_, until the entry is marked DONE.
  2973. I.e., the task will automatically be forwarded until completed.
  2974. *** TODO Call Trillian for a date on New Years Eve.
  2975. SCHEDULED: <2004-12-25 Sat>
  2976. Important: Scheduling an item in Org-mode should not be understood
  2977. like Scheduling a meeting. Setting a date for a meeting is just a
  2978. simple appointment, you should mark this entry with a simple plain
  2979. time stamp, to get this item shown on the date where it applies.
  2980. This is a frequent mis-understanding from Org-users. In Org-mode,
  2981. Scheduling means setting a date when you want to start working on
  2982. an action item.
  2983. * Menu:
  2984. * Inserting deadline/schedule:: Planning items
  2985. * Repeated tasks:: Items that show up again and again
  2986. ---------- Footnotes ----------
  2987. (1) It will still be listed on that date after it has been marked
  2988. DONE. If you don't like this, set the variable
  2989. `org-agenda-skip-scheduled-if-done'.
  2990. 
  2991. File: org, Node: Inserting deadline/schedule, Next: Repeated tasks, Prev: Deadlines and scheduling, Up: Deadlines and scheduling
  2992. 8.3.1 Inserting deadline/schedule
  2993. ---------------------------------
  2994. The following commands allow to quickly insert a deadline or to schedule
  2995. an item:
  2996. `C-c C-d'
  2997. Insert `DEADLINE' keyword along with a stamp. The insertion will
  2998. happen in the line directly following the headline. When called
  2999. with a prefix arg, an existing deadline will be removed from the
  3000. entry.
  3001. `C-c / d'
  3002. Create a sparse tree with all deadlines that are either past-due,
  3003. or which will become due within `org-deadline-warning-days'. With
  3004. `C-u' prefix, show all deadlines in the file. With a numeric
  3005. prefix, check that many days. For example, `C-1 C-c / d' shows
  3006. all deadlines due tomorrow.
  3007. `C-c C-s'
  3008. Insert `SCHEDULED' keyword along with a stamp. The insertion will
  3009. happen in the line directly following the headline. Any CLOSED
  3010. timestamp will be removed. When called with a prefix argument,
  3011. remove the scheduling date from the entry.
  3012. 
  3013. File: org, Node: Repeated tasks, Prev: Inserting deadline/schedule, Up: Deadlines and scheduling
  3014. 8.3.2 Repeated Tasks
  3015. --------------------
  3016. Some tasks need to be repeated again and again, and Org-mode therefore
  3017. allows to use a repeater in a DEADLINE or SCHEDULED time stamp, for
  3018. example:
  3019. ** TODO Pay the rent
  3020. DEADLINE: <2005-10-01 Sat +1m>
  3021. Deadlines and scheduled items produce entries in the agenda when they
  3022. are over-due, so it is important to be able to mark such an entry as
  3023. completed once you have done so. When you mark a DEADLINE or a SCHEDULE
  3024. with the todo keyword DONE, it will no longer produce entries in the
  3025. agenda. The problem with this is, however, that then also the _next_
  3026. instance of the repeated entry will not be active. Org-mode deals with
  3027. this in the following way: When you try to mark such an entry DONE
  3028. (using `C-c C-t'), it will shift the base date of the repeating time
  3029. stamp by the repeater interval, and immediately set the entry state
  3030. back to TODO. In the example above, setting the state to DONE would
  3031. actually switch the date like this:
  3032. ** TODO Pay the rent
  3033. DEADLINE: <2005-11-01 Tue +1m>
  3034. You will also be prompted for a note(1) that will be put under the
  3035. DEADLINE line to keep a record that you actually acted on the previous
  3036. instance of this deadline.
  3037. As a consequence of shifting the base date, this entry will no
  3038. longer be visible in the agenda when checking past dates, but all
  3039. future instances will be visible.
  3040. You may have both scheduling and deadline information for a specific
  3041. task - just make sure that the repeater intervals on both are the same.
  3042. ---------- Footnotes ----------
  3043. (1) You can change this using the option `org-log-repeat', or the
  3044. `#+STARTUP' options `logrepeat' and `nologrepeat'.
  3045. 
  3046. File: org, Node: Clocking work time, Prev: Deadlines and scheduling, Up: Dates and times
  3047. 8.4 Clocking work time
  3048. ======================
  3049. Org-mode allows you to clock the time you spent on specific tasks in a
  3050. project. When you start working on an item, you can start the clock.
  3051. When you stop working on that task, or when you mark the task done, the
  3052. clock is stopped and the corresponding time interval is recorded. It
  3053. also computes the total time spent on each subtree of a project.
  3054. `C-c C-x C-i'
  3055. Start the clock on the current item (clock-in). This inserts the
  3056. CLOCK keyword together with a timestamp. If this is not the first
  3057. clocking of this item, the multiple CLOCK lines will be wrapped
  3058. into a `:CLOCK:' drawer (see also the variable
  3059. `org-clock-into-drawer'.
  3060. `C-c C-x C-o'
  3061. Stop the clock (clock-out). The inserts another timestamp at the
  3062. same location where the clock was last started. It also directly
  3063. computes the resulting time in inserts it after the time range as
  3064. `=> HH:MM'. See the variable `org-log-done' for the possibility to
  3065. record an additional note together with the clock-out time
  3066. stamp(1).
  3067. `C-c C-y'
  3068. Recompute the time interval after changing one of the time stamps.
  3069. This is only necessary if you edit the time stamps directly. If
  3070. you change them with `S-<cursor>' keys, the update is automatic.
  3071. `C-c C-t'
  3072. Changing the TODO state of an item to DONE automatically stops the
  3073. clock if it is running in this same item.
  3074. `C-c C-x C-x'
  3075. Cancel the current clock. This is useful if a clock was started by
  3076. mistake, or if you ended up working on something else.
  3077. `C-c C-x C-j'
  3078. Jump to the entry that contains the currently running clock, an
  3079. another window.
  3080. `C-c C-x C-d'
  3081. Display time summaries for each subtree in the current buffer.
  3082. This puts overlays at the end of each headline, showing the total
  3083. time recorded under that heading, including the time of any
  3084. subheadings. You can use visibility cycling to study the tree, but
  3085. the overlays disappear when you change the buffer (see variable
  3086. `org-remove-highlights-with-change') or press `C-c C-c'.
  3087. `C-c C-x C-r'
  3088. Insert a dynamic block (*note Dynamic blocks::) containing a clock
  3089. report as an org-mode table into the current file. When the
  3090. cursor is at an existing clock table, just update it. When called
  3091. with a prefix argument, jump to the first clock report in the
  3092. current document and update it.
  3093. #+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file
  3094. #+END: clocktable
  3095. If such a block already exists at point, its content is replaced
  3096. by the new table. The `BEGIN' line can specify options:
  3097. :maxlevel Maximum level depth to which times are listed in the table.
  3098. :emphasize When `t', emphasize level one and level two items
  3099. :scope The scope to consider. This can be any of the following:
  3100. nil the current buffer or narrowed region
  3101. file the full current buffer
  3102. subtree the subtree where the clocktable is located
  3103. treeN the surrounding level N tree, for example `tree3'
  3104. tree the surrounding level 1 tree
  3105. agenda all agenda files
  3106. ("file"..) scan these files
  3107. :block The time block to consider. This block is specified relative
  3108. to the current time and may be any of these keywords:
  3109. `today', `yesterday', `thisweek', `lastweek',
  3110. `thismonth', `lastmonth', `thisyear', or `lastyear'.
  3111. :tstart A time string specifying when to start considering times
  3112. :tend A time string specifying when to stop considering times
  3113. So to get a clock summary of the current level 1 tree, for the
  3114. current day, you could write
  3115. #+BEGIN: clocktable :maxlevel 2 :block today :scope tree1
  3116. #+END: clocktable
  3117. and to use a specific time range you could write(2)
  3118. #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
  3119. :tend "<2006-08-10 Thu 12:00>"
  3120. #+END: clocktable
  3121. `C-c C-c'
  3122. `C-c C-x C-u'
  3123. Update dynamical block at point. The cursor needs to be in the
  3124. `#+BEGIN' line of the dynamic block.
  3125. `C-u C-c C-x C-u'
  3126. Update all dynamic blocks (*note Dynamic blocks::). This is
  3127. useful if you have several clocktable blocks in a buffer.
  3128. The `l' key may be used in the timeline (*note Timeline::) and in
  3129. the agenda (*note Weekly/Daily agenda::) to show which tasks have been
  3130. worked on or closed during a day.
  3131. ---------- Footnotes ----------
  3132. (1) The corresponding in-buffer setting is: `#+STARTUP:
  3133. lognoteclock-out'
  3134. (2) Note that all parameters must be specified in a single line -
  3135. the line is broken here only to fit it onto the manual.
  3136. 
  3137. File: org, Node: Remember, Next: Agenda views, Prev: Dates and times, Up: Top
  3138. 9 Remember
  3139. **********
  3140. The Remember package by John Wiegley lets you store quick notes with
  3141. little interruption of your work flow. See
  3142. `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
  3143. information. It is an excellent way to add new notes and tasks to
  3144. Org-mode files. Org-mode significantly expands the possibilities of
  3145. remember: You may define templates for different note types, and
  3146. associate target files and headlines with specific templates. It also
  3147. allows you to select the location where a note should be stored
  3148. interactively, on the fly.
  3149. * Menu:
  3150. * Setting up remember:: Some code for .emacs to get things going
  3151. * Remember templates:: Define the outline of different note types
  3152. * Storing notes:: Directly get the note to where it belongs
  3153. * Refiling notes:: Moving a note or task to a project
  3154. 
  3155. File: org, Node: Setting up remember, Next: Remember templates, Prev: Remember, Up: Remember
  3156. 9.1 Setting up remember
  3157. =======================
  3158. The following customization will tell remember to use org files as
  3159. target, and to create annotations compatible with Org-mode links.
  3160. (org-remember-insinuate)
  3161. (setq org-directory "~/path/to/my/orgfiles/")
  3162. (setq org-default-notes-file (concat org-directory "/notes.org"))
  3163. (define-key global-map "\C-cr" 'org-remember)
  3164. The last line binds the command `org-remember' to a global key(1).
  3165. `org-remember' basically just calls `remember', but it makes a few
  3166. things easier: If there is an active region, it will automatically copy
  3167. the region into the remember buffer. It also allows to jump to the
  3168. buffer and location where remember notes are being stored: Just call
  3169. `org-remember' with a prefix argument.
  3170. ---------- Footnotes ----------
  3171. (1) Please select your own key, `C-c r' is only a suggestion.
  3172. 
  3173. File: org, Node: Remember templates, Next: Storing notes, Prev: Setting up remember, Up: Remember
  3174. 9.2 Remember templates
  3175. ======================
  3176. In combination with Org-mode, you can use templates to generate
  3177. different types of remember notes. For example, if you would like to
  3178. use one template to create general TODO entries, another one for
  3179. journal entries, and a third one for collecting random ideas, you could
  3180. use:
  3181. (setq org-remember-templates
  3182. '(("Todo" ?t "* TODO %?\n %i\n %a" "~/org/TODO.org" "Tasks")
  3183. ("Journal" ?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org")
  3184. ("Idea" ?i "* %^{Title}\n %i\n %a" "~/org/JOURNAL.org" "New Ideas")))
  3185. In these entries, the first string is just a name, and the character
  3186. specifies how to select the template. It is useful if the character is
  3187. also the first letter of the name. The next string specifies the
  3188. template. Two more (optional) strings give the file in which, and the
  3189. headline under which the new note should be stored. The file (if not
  3190. present or `nil') defaults to `org-default-notes-file', the heading to
  3191. `org-remember-default-headline'.
  3192. When you call `M-x remember' (or `M-x org-remember') to remember
  3193. something, org will prompt for a key to select the template (if you have
  3194. more than one template) and then prepare the buffer like
  3195. * TODO
  3196. [[file:link to where you called remember]]
  3197. During expansion of the template, special `%'-escapes allow dynamic
  3198. insertion of content:
  3199. %^{prompt} prompt the user for a string and replace this sequence with it.
  3200. %t time stamp, date only
  3201. %T time stamp with date and time
  3202. %u, %U like the above, but inactive time stamps
  3203. %^t like `%t', but prompt for date. Similarly `%^T', `%^u', `%^U'
  3204. You may define a prompt like `%^{Birthday}t'
  3205. %n user name (taken from `user-full-name')
  3206. %a annotation, normally the link created with `org-store-link'
  3207. %A like `%a', but prompt for the description part
  3208. %i initial content, the region when remember is called with C-u.
  3209. The entire text will be indented like `%i' itself.
  3210. %c Content of the clipboard, or current kill ring head.
  3211. %^g prompt for tags, with completion on tags in target file.
  3212. %^G prompt for tags, with completion all tags in all agenda files.
  3213. %:keyword specific information for certain link types, see below
  3214. %[pathname] insert the contents of the file given by `pathname'
  3215. %(sexp) evaluate elisp `(sexp)' and replace with the result
  3216. For specific link types, the following keywords will be defined(1):
  3217. Link type | Available keywords
  3218. -------------------+----------------------------------------------
  3219. bbdb | %:name %:company
  3220. vm, wl, mh, rmail | %:type %:subject %:message-id
  3221. | %:from %:fromname %:fromaddress
  3222. | %:to %:toname %:toaddress
  3223. | %:fromto (either "to NAME" or "from NAME")(2)
  3224. gnus | %:group, for messages also all email fields
  3225. w3, w3m | %:url
  3226. info | %:file %:node
  3227. calendar | %:date"
  3228. To place the cursor after template expansion use:
  3229. %? After completing the template, position cursor here.
  3230. If you change you mind about which template to use, call `org-remember'
  3231. in the remember buffer. You may then select a new template that will
  3232. be filled with the previous context information.
  3233. ---------- Footnotes ----------
  3234. (1) If you define your own link types (*note Adding hyperlink
  3235. types::), any property you store with `org-store-link-props' can be
  3236. accessed in remember templates in a similar way.
  3237. (2) This will always be the other, not the user. See the variable
  3238. `org-from-is-user-regexp'.
  3239. 
  3240. File: org, Node: Storing notes, Next: Refiling notes, Prev: Remember templates, Up: Remember
  3241. 9.3 Storing notes
  3242. =================
  3243. When you are finished preparing a note with remember, you have to press
  3244. `C-c C-c' to file the note away. The handler will store the note in
  3245. the file and under the headline specified in the template, or it will
  3246. use the default file and headlines. The window configuration will be
  3247. restored, and you are back in the working context before the call to
  3248. `remember'. To re-use the location found during the last call to
  3249. `remember', exit the remember buffer with `C-u C-u C-c C-c', i.e.
  3250. specify a double prefix argument to `C-c C-c'.
  3251. If you want to store the note directly to a different place, use
  3252. `C-u C-c C-c' instead to exit remember(1). The handler will then first
  3253. prompt for a target file - if you press <RET>, the value specified for
  3254. the template is used. Then the command offers the headings tree of the
  3255. selected file, with the cursor position at the default headline (if you
  3256. had specified one in the template). You can either immediately press
  3257. <RET> to get the note placed there. Or you can use the following keys
  3258. to find a different location:
  3259. <TAB> Cycle visibility.
  3260. <down> / <up> Next/previous visible headline.
  3261. n / p Next/previous visible headline.
  3262. f / b Next/previous headline same level.
  3263. u One level up.
  3264. Pressing <RET> or <left> or <right> then leads to the following
  3265. result.
  3266. Cursor Key Note gets inserted
  3267. position
  3268. on headline <RET> as sublevel of the heading at cursor, first or
  3269. last
  3270. depending on `org-reverse-note-order'.
  3271. <left>/<right>as same level, before/after current heading
  3272. buffer-start <RET> as level 2 heading at end of file or level 1
  3273. at beginning
  3274. depending on `org-reverse-note-order'.
  3275. not on <RET> at cursor position, level taken from context.
  3276. headline
  3277. Before inserting the text into a tree, the function ensures that the
  3278. text has a headline, i.e. a first line that starts with a `*'. If not,
  3279. a headline is constructed from the current date and some additional
  3280. data. If you have indented the text of the note below the headline, the
  3281. indentation will be adapted if inserting the note into the tree requires
  3282. demotion from level 1.
  3283. ---------- Footnotes ----------
  3284. (1) Configure the variable `org-remember-store-without-prompt' to
  3285. make this behavior the default.
  3286. 
  3287. File: org, Node: Refiling notes, Prev: Storing notes, Up: Remember
  3288. 9.4 Refiling notes
  3289. ==================
  3290. Remember is usually used to quickly capture notes and tasks into one or
  3291. a few capture lists. When reviewing the captured data, you may want to
  3292. refile some of the entries into a different list, for example into a
  3293. project. Cutting, finding the right location and then pasting the note
  3294. is cumbersome. To simplify this process, you can use the following
  3295. special command:
  3296. `C-c C-w'
  3297. Refile the entry at point. This command offers possible locations
  3298. for refiling the entry and lets you select one with completion.
  3299. The item is filed below the target heading as a subitem.
  3300. Depending on `org-reverse-note-order', it will be either the first
  3301. of last subitem, and you can toggle the value of this variable for
  3302. the duration of the command by using a `C-u' prefix.
  3303. By default, all level 1 headlines in the current buffer are
  3304. considered to be targets, but you can have more complex
  3305. definitions across a number of files. See the variable
  3306. `org-refile-targets' for details. The list of targets is compiled
  3307. upon first use, you can update it by using a double prefix
  3308. argument (`C-u C-u') to this command.
  3309. 
  3310. File: org, Node: Agenda views, Next: Embedded LaTeX, Prev: Remember, Up: Top
  3311. 10 Agenda Views
  3312. ***************
  3313. Due to the way Org-mode works, TODO items, time-stamped items, and
  3314. tagged headlines can be scattered throughout a file or even a number of
  3315. files. To get an overview over open action items, or over events that
  3316. are important for a particular date, this information must be collected,
  3317. sorted and displayed in an organized way.
  3318. Org-mode can select items based on various criteria, and display them
  3319. in a separate buffer. Six different view types are provided:
  3320. * an _agenda_ that is like a calendar and shows information for
  3321. specific dates,
  3322. * a _TODO list_ that covers all unfinished action items,
  3323. * a _tags view_, showings headlines based on the tags associated
  3324. with them,
  3325. * a _timeline view_ that shows all events in a single Org-mode file,
  3326. in time-sorted view,
  3327. * a _stuck projects view_ showing projects that currently don't move
  3328. along, and
  3329. * _custom views_ that are special tag/keyword searches and
  3330. combinations of different views.
  3331. The extracted information is displayed in a special _agenda buffer_.
  3332. This buffer is read-only, but provides commands to visit the
  3333. corresponding locations in the original Org-mode files, and even to
  3334. edit these files remotely.
  3335. Two variables control how the agenda buffer is displayed and whether
  3336. the window configuration is restored when the agenda exits:
  3337. `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
  3338. * Menu:
  3339. * Agenda files:: Files being searched for agenda information
  3340. * Agenda dispatcher:: Keyboard access to agenda views
  3341. * Built-in agenda views:: What is available out of the box?
  3342. * Presentation and sorting:: How agenda items are prepared for display
  3343. * Agenda commands:: Remote editing of org trees
  3344. * Custom agenda views:: Defining special searches and views
  3345. 
  3346. File: org, Node: Agenda files, Next: Agenda dispatcher, Prev: Agenda views, Up: Agenda views
  3347. 10.1 Agenda files
  3348. =================
  3349. The information to be shown is normally collected from all _agenda
  3350. files_, the files listed in the variable `org-agenda-files'(1). If a
  3351. directory is part of this list, all files with the extension `.org' in
  3352. this directory will be part of the list.
  3353. Thus even if you only work with a single Org-mode file, this file
  3354. should be put into that list(2). You can customize `org-agenda-files',
  3355. but the easiest way to maintain it is through the following commands
  3356. `C-c ['
  3357. Add current file to the list of agenda files. The file is added to
  3358. the front of the list. If it was already in the list, it is moved
  3359. to the front. With prefix arg, file is added/moved to the end.
  3360. `C-c ]'
  3361. Remove current file from the list of agenda files.
  3362. `C-,'
  3363. `C-''
  3364. Cycle through agenda file list, visiting one file after the other.
  3365. The Org menu contains the current list of files and can be used to
  3366. visit any of them.
  3367. If you would like to focus the agenda temporarily onto a file not in
  3368. this list, or onto just one file in the list or even only a subtree in a
  3369. file, this can be done in different ways. For a single agenda command,
  3370. you may press `<' once or several times in the dispatcher (*note Agenda
  3371. dispatcher::). To restrict the agenda scope for an extended period,
  3372. use the following commands:
  3373. `C-c C-x <'
  3374. Permanently restrict the agenda to the current subtree. When with
  3375. a prefix argument, or with the cursor before the first headline in
  3376. a file, the agenda scope is set to the entire file. This
  3377. restriction remains in effect until removed with `C-c C-x >', or
  3378. by typing either `<' or `>' in the agenda dispatcher. If there is
  3379. a window displaying an agenda view, the new restriction takes
  3380. effect immediately.
  3381. `C-c C-x <'
  3382. Remove the permanent restriction created by `C-c C-x <'.
  3383. When working with `Speedbar', you can use the following commands in the
  3384. speedbar frame:
  3385. `< in the speedbar frame'
  3386. Permanently restrict the agenda to the item at the cursor in the
  3387. speedbar frame, either an Org-mode file or a subtree in such a
  3388. file. If there is a window displaying an agenda view, the new
  3389. restriction takes effect immediately.
  3390. `> in the speedbar frame'
  3391. Lift the restriction again.
  3392. ---------- Footnotes ----------
  3393. (1) If the value of that variable is not a list, but a single file
  3394. name, then the list of agenda files will be maintained in that external
  3395. file.
  3396. (2) When using the dispatcher, pressing `<' before selecting a
  3397. command will actually limit the command to the current file, and ignore
  3398. `org-agenda-files' until the next dispatcher command.
  3399. 
  3400. File: org, Node: Agenda dispatcher, Next: Built-in agenda views, Prev: Agenda files, Up: Agenda views
  3401. 10.2 The agenda dispatcher
  3402. ==========================
  3403. The views are created through a dispatcher that should be bound to a
  3404. global key, for example `C-c a' (*note Installation::). In the
  3405. following we will assume that `C-c a' is indeed how the dispatcher is
  3406. accessed and list keyboard access to commands accordingly. After
  3407. pressing `C-c a', an additional letter is required to execute a
  3408. command. The dispatcher offers the following default commands:
  3409. `a'
  3410. Create the calendar-like agenda (*note Weekly/Daily agenda::).
  3411. `t / T'
  3412. Create a list of all TODO items (*note Global TODO list::).
  3413. `m / M'
  3414. Create a list of headlines matching a TAGS expression (*note
  3415. Matching tags and properties::).
  3416. `L'
  3417. Create the timeline view for the current buffer (*note Timeline::).
  3418. `# / !'
  3419. Create a list of stuck projects (*note Stuck projects::).
  3420. `/'
  3421. Search for a regular expression in all agenda files and
  3422. additionally in the files listed in
  3423. `org-agenda-multi-occur-extra-files'. This uses the Emacs command
  3424. `multi-occur'. A prefix argument can be used to specify the
  3425. number of context lines for each match, default is 1.
  3426. `<'
  3427. Restrict an agenda command to the current buffer(1). After
  3428. pressing `<', you still need to press the character selecting the
  3429. command.
  3430. `< <'
  3431. If there is an active region, restrict the following agenda
  3432. command to the region. Otherwise, restrict it to the current
  3433. subtree(2). After pressing `< <', you still need to press the
  3434. character selecting the command.
  3435. You can also define custom commands that will be accessible through
  3436. the dispatcher, just like the default commands. This includes the
  3437. possibility to create extended agenda buffers that contain several
  3438. blocks together, for example the weekly agenda, the global TODO list and
  3439. a number of special tags matches. *Note Custom agenda views::.
  3440. ---------- Footnotes ----------
  3441. (1) For backward compatibility, you can also press `1' to restrict
  3442. to the current buffer.
  3443. (2) For backward compatibility, you can also press `0' to restrict
  3444. to the current buffer.
  3445. 
  3446. File: org, Node: Built-in agenda views, Next: Presentation and sorting, Prev: Agenda dispatcher, Up: Agenda views
  3447. 10.3 The built-in agenda views
  3448. ==============================
  3449. In this section we describe the built-in views.
  3450. * Menu:
  3451. * Weekly/Daily agenda:: The calendar page with current tasks
  3452. * Global TODO list:: All unfinished action items
  3453. * Matching tags and properties:: Structured information with fine-tuned search
  3454. * Timeline:: Time-sorted view for single file
  3455. * Stuck projects:: Find projects you need to review
  3456. 
  3457. File: org, Node: Weekly/Daily agenda, Next: Global TODO list, Prev: Built-in agenda views, Up: Built-in agenda views
  3458. 10.3.1 The weekly/daily agenda
  3459. ------------------------------
  3460. The purpose of the weekly/daily _agenda_ is to act like a page of a
  3461. paper agenda, showing all the tasks for the current week or day.
  3462. `C-c a a'
  3463. Compile an agenda for the current week from a list of org files.
  3464. The agenda shows the entries for each day. With a numeric
  3465. prefix(1) (like `C-u 2 1 C-c a a') you may set the number of days
  3466. to be displayed (see also the variable `org-agenda-ndays')
  3467. Remote editing from the agenda buffer means, for example, that you
  3468. can change the dates of deadlines and appointments from the agenda
  3469. buffer. The commands available in the Agenda buffer are listed in
  3470. *Note Agenda commands::.
  3471. Calendar/Diary integration
  3472. ..........................
  3473. Emacs contains the calendar and diary by Edward M. Reingold. The
  3474. calendar displays a three-month calendar with holidays from different
  3475. countries and cultures. The diary allows you to keep track of
  3476. anniversaries, lunar phases, sunrise/set, recurrent appointments
  3477. (weekly, monthly) and more. In this way, it is quite complementary to
  3478. Org-mode. It can be very useful to combine output from Org-mode with
  3479. the diary.
  3480. In order to include entries from the Emacs diary into Org-mode's
  3481. agenda, you only need to customize the variable
  3482. (setq org-agenda-include-diary t)
  3483. After that, everything will happen automatically. All diary entries
  3484. including holidays, anniversaries etc will be included in the agenda
  3485. buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
  3486. the agenda buffer to jump to the diary file in order to edit existing
  3487. diary entries. The `i' command to insert new entries for the current
  3488. date works in the agenda buffer, as well as the commands `S', `M', and
  3489. `C' to display Sunrise/Sunset times, show lunar phases and to convert
  3490. to other calendars, respectively. `c' can be used to switch back and
  3491. forth between calendar and agenda.
  3492. If you are using the diary only for sexp entries and holidays, it is
  3493. faster to not use the above setting, but instead to copy or even move
  3494. the entries into an Org-mode file. Org-mode evaluates diary-style sexp
  3495. entries, and does it faster because there is no overhead for first
  3496. creating the diary display. Note that the sexp entries must start at
  3497. the left margin, no white space is allowed before them. For example,
  3498. the following segment of an Org-mode file will be processed and entries
  3499. will be made in the agenda:
  3500. * Birthdays and similar stuff
  3501. #+CATEGORY: Holiday
  3502. %%(org-calendar-holiday) ; special function for holiday names
  3503. #+CATEGORY: Ann
  3504. %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old
  3505. %%(diary-anniversary 2 10 1869) Mahatma Gandhi would be %d years old
  3506. Appointment reminders
  3507. .....................
  3508. Org can interact with Emacs appointments notification facility.
  3509. To add all the appointments of your agenda files, use the command
  3510. `org-agenda-to-appt'. This commands also lets you filter through the
  3511. list of your appointments and add only those belonging to a specific
  3512. category or matching a regular expression. See the docstring for
  3513. details.
  3514. ---------- Footnotes ----------
  3515. (1) For backward compatibility, the universal prefix `C-u' causes
  3516. all TODO entries to be listed before the agenda. This feature is
  3517. deprecated, use the dedicated TODO list, or a block agenda instead.
  3518. 
  3519. File: org, Node: Global TODO list, Next: Matching tags and properties, Prev: Weekly/Daily agenda, Up: Built-in agenda views
  3520. 10.3.2 The global TODO list
  3521. ---------------------------
  3522. The global TODO list contains all unfinished TODO items, formatted and
  3523. collected into a single place.
  3524. `C-c a t'
  3525. Show the global TODO list. This collects the TODO items from all
  3526. agenda files (*note Agenda views::) into a single buffer. The
  3527. buffer is in `agenda-mode', so there are commands to examine and
  3528. manipulate the TODO entries directly from that buffer (*note
  3529. Agenda commands::).
  3530. `C-c a T'
  3531. Like the above, but allows selection of a specific TODO keyword.
  3532. You can also do this by specifying a prefix argument to `C-c a t'.
  3533. With a `C-u' prefix you are prompted for a keyword, and you may
  3534. also specify several keywords by separating them with `|' as
  3535. boolean OR operator. With a numeric prefix, the Nth keyword in
  3536. `org-todo-keywords' is selected. The `r' key in the agenda buffer
  3537. regenerates it, and you can give a prefix argument to this command
  3538. to change the selected TODO keyword, for example `3 r'. If you
  3539. often need a search for a specific keyword, define a custom
  3540. command for it (*note Agenda dispatcher::).
  3541. Matching specific TODO keywords can also be done as part of a tags
  3542. search (*note Tag searches::).
  3543. Remote editing of TODO items means that you can change the state of a
  3544. TODO entry with a single key press. The commands available in the TODO
  3545. list are described in *Note Agenda commands::.
  3546. Normally the global todo list simply shows all headlines with TODO
  3547. keywords. This list can become very long. There are two ways to keep
  3548. it more compact:
  3549. - Some people view a TODO item that has been _scheduled_ for
  3550. execution (*note Time stamps::) as no longer _open_. Configure the
  3551. variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
  3552. items from the global TODO list.
  3553. - TODO items may have sublevels to break up the task into subtasks.
  3554. In such cases it may be enough to list only the highest level TODO
  3555. headline and omit the sublevels from the global list. Configure
  3556. the variable `org-agenda-todo-list-sublevels' to get this behavior.
  3557. 
  3558. File: org, Node: Matching tags and properties, Next: Timeline, Prev: Global TODO list, Up: Built-in agenda views
  3559. 10.3.3 Matching Tags and Properties
  3560. -----------------------------------
  3561. If headlines in the agenda files are marked with _tags_ (*note Tags::),
  3562. you can select headlines based on the tags that apply to them and
  3563. collect them into an agenda buffer.
  3564. `C-c a m'
  3565. Produce a list of all headlines that match a given set of tags.
  3566. The command prompts for a selection criterion, which is a boolean
  3567. logic expression with tags, like `+work+urgent-withboss' or
  3568. `work|home' (*note Tags::). If you often need a specific search,
  3569. define a custom command for it (*note Agenda dispatcher::).
  3570. `C-c a M'
  3571. Like `C-c a m', but only select headlines that are also TODO items
  3572. and force checking subitems (see variable
  3573. `org-tags-match-list-sublevels'). Matching specific todo keywords
  3574. together with a tags match is also possible, see *Note Tag
  3575. searches::.
  3576. The commands available in the tags list are described in *Note
  3577. Agenda commands::.
  3578. 
  3579. File: org, Node: Timeline, Next: Stuck projects, Prev: Matching tags and properties, Up: Built-in agenda views
  3580. 10.3.4 Timeline for a single file
  3581. ---------------------------------
  3582. The timeline summarizes all time-stamped items from a single Org-mode
  3583. file in a _time-sorted view_. The main purpose of this command is to
  3584. give an overview over events in a project.
  3585. `C-c a L'
  3586. Show a time-sorted view of the org file, with all time-stamped
  3587. items. When called with a `C-u' prefix, all unfinished TODO
  3588. entries (scheduled or not) are also listed under the current date.
  3589. The commands available in the timeline buffer are listed in *Note
  3590. Agenda commands::.
  3591. 
  3592. File: org, Node: Stuck projects, Prev: Timeline, Up: Built-in agenda views
  3593. 10.3.5 Stuck projects
  3594. ---------------------
  3595. If you are following a system like David Allen's GTD to organize your
  3596. work, one of the "duties" you have is a regular review to make sure
  3597. that all projects move along. A _stuck_ project is a project that has
  3598. no defined next actions, so it will never show up in the TODO lists
  3599. Org-mode produces. During the review, you need to identify such
  3600. projects and define next actions for them.
  3601. `C-c a #'
  3602. List projects that are stuck.
  3603. `C-c a !'
  3604. Customize the variable `org-stuck-projects' to define what a stuck
  3605. project is and how to find it.
  3606. You almost certainly will have to configure this view before it will
  3607. work for you. The built-in default assumes that all your projects are
  3608. level-2 headlines, and that a project is not stuck if it has at least
  3609. one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
  3610. Lets assume that you, in your own way of using Org-mode, identify
  3611. projects with a tag PROJECT, and that you use a todo keyword MAYBE to
  3612. indicate a project that should not be considered yet. Lets further
  3613. assume that the todo keyword DONE marks finished projects, and that NEXT
  3614. and TODO indicate next actions. The tag @SHOP indicates shopping and
  3615. is a next action even without the NEXT tag. Finally, if the project
  3616. contains the special word IGNORE anywhere, it should not be listed
  3617. either. In this case you would start by identifying eligible projects
  3618. with a tags/todo match `+PROJECT/-MAYBE-DONE', and then check for TODO,
  3619. NEXT, @SHOP, and IGNORE in the subtree to identify projects that are
  3620. not stuck. The correct customization for this is
  3621. (setq org-stuck-projects
  3622. '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")
  3623. "\\<IGNORE\\>"))
  3624. 
  3625. File: org, Node: Presentation and sorting, Next: Agenda commands, Prev: Built-in agenda views, Up: Agenda views
  3626. 10.4 Presentation and sorting
  3627. =============================
  3628. Before displaying items in an agenda view, Org-mode visually prepares
  3629. the items and sorts them. Each item occupies a single line. The line
  3630. starts with a _prefix_ that contains the _category_ (*note
  3631. Categories::) of the item and other important information. You can
  3632. customize the prefix using the option `org-agenda-prefix-format'. The
  3633. prefix is followed by a cleaned-up version of the outline headline
  3634. associated with the item.
  3635. * Menu:
  3636. * Categories:: Not all tasks are equal
  3637. * Time-of-day specifications:: How the agenda knows the time
  3638. * Sorting of agenda items:: The order of things
  3639. 
  3640. File: org, Node: Categories, Next: Time-of-day specifications, Prev: Presentation and sorting, Up: Presentation and sorting
  3641. 10.4.1 Categories
  3642. -----------------
  3643. The category is a broad label assigned to each agenda item. By default,
  3644. the category is simply derived from the file name, but you can also
  3645. specify it with a special line in the buffer, like this(1):
  3646. #+CATEGORY: Thesis
  3647. If you would like to have a special CATEGORY for a single entry or a
  3648. (sub)tree, give the entry a `:CATEGORY:' property with the location as
  3649. the value (*note Properties and columns::).
  3650. The display in the agenda buffer looks best if the category is not
  3651. longer than 10 characters.
  3652. ---------- Footnotes ----------
  3653. (1) For backward compatibility, the following also works: If there
  3654. are several such lines in a file, each specifies the category for the
  3655. text below it. The first category also applies to any text before the
  3656. first CATEGORY line. However, using this method is _strongly_
  3657. deprecated as it is incompatible with the outline structure of the
  3658. document. The correct method for setting multiple categories in a
  3659. buffer is using a property.
  3660. 
  3661. File: org, Node: Time-of-day specifications, Next: Sorting of agenda items, Prev: Categories, Up: Presentation and sorting
  3662. 10.4.2 Time-of-Day Specifications
  3663. ---------------------------------
  3664. Org-mode checks each agenda item for a time-of-day specification. The
  3665. time can be part of the time stamp that triggered inclusion into the
  3666. agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
  3667. specified with two time stamps, like
  3668. `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
  3669. In the headline of the entry itself, a time(range) may also appear as
  3670. plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
  3671. Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
  3672. entries are recognized as well.
  3673. For agenda display, Org-mode extracts the time and displays it in a
  3674. standard 24 hour format as part of the prefix. The example times in
  3675. the previous paragraphs would end up in the agenda like this:
  3676. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  3677. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  3678. 19:00...... The Vogon reads his poem
  3679. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  3680. If the agenda is in single-day mode, or for the display of today, the
  3681. timed entries are embedded in a time grid, like
  3682. 8:00...... ------------------
  3683. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  3684. 10:00...... ------------------
  3685. 12:00...... ------------------
  3686. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  3687. 14:00...... ------------------
  3688. 16:00...... ------------------
  3689. 18:00...... ------------------
  3690. 19:00...... The Vogon reads his poem
  3691. 20:00...... ------------------
  3692. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  3693. The time grid can be turned on and off with the variable
  3694. `org-agenda-use-time-grid', and can be configured with
  3695. `org-agenda-time-grid'.
  3696. 
  3697. File: org, Node: Sorting of agenda items, Prev: Time-of-day specifications, Up: Presentation and sorting
  3698. 10.4.3 Sorting of agenda items
  3699. ------------------------------
  3700. Before being inserted into a view, the items are sorted. How this is
  3701. done depends on the type of view.
  3702. * For the daily/weekly agenda, the items for each day are sorted.
  3703. The default order is to first collect all items containing an
  3704. explicit time-of-day specification. These entries will be shown
  3705. at the beginning of the list, as a _schedule_ for the day. After
  3706. that, items remain grouped in categories, in the sequence given by
  3707. `org-agenda-files'. Within each category, items are sorted by
  3708. priority (*note Priorities::), which is composed of the base
  3709. priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
  3710. plus additional increments for overdue scheduled or deadline items.
  3711. * For the TODO list, items remain in the order of categories, but
  3712. within each category, sorting takes place according to priority
  3713. (*note Priorities::).
  3714. * For tags matches, items are not sorted at all, but just appear in
  3715. the sequence in which they are found in the agenda files.
  3716. Sorting can be customized using the variable
  3717. `org-agenda-sorting-strategy'.
  3718. 
  3719. File: org, Node: Agenda commands, Next: Custom agenda views, Prev: Presentation and sorting, Up: Agenda views
  3720. 10.5 Commands in the agenda buffer
  3721. ==================================
  3722. Entries in the agenda buffer are linked back to the org file or diary
  3723. file where they originate. You are not allowed to edit the agenda
  3724. buffer itself, but commands are provided to show and jump to the
  3725. original entry location, and to edit the org-files "remotely" from the
  3726. agenda buffer. In this way, all information is stored only once,
  3727. removing the risk that your agenda and note files may diverge.
  3728. Some commands can be executed with mouse clicks on agenda lines. For
  3729. the other commands, the cursor needs to be in the desired line.
  3730. Motion
  3731. ......
  3732. `n'
  3733. Next line (same as <up> and `C-p').
  3734. `p'
  3735. Previous line (same as <down> and `C-n').
  3736. View/GoTo org file
  3737. ..................
  3738. `mouse-3'
  3739. `<SPC>'
  3740. Display the original location of the item in another window.
  3741. `L'
  3742. Display original location and recenter that window.
  3743. `mouse-2'
  3744. `mouse-1'
  3745. `<TAB>'
  3746. Go to the original location of the item in another window. Under
  3747. Emacs 22, `mouse-1' will also works for this.
  3748. `<RET>'
  3749. Go to the original location of the item and delete other windows.
  3750. `f'
  3751. Toggle Follow mode. In Follow mode, as you move the cursor through
  3752. the agenda buffer, the other window always shows the corresponding
  3753. location in the org file. The initial setting for this mode in new
  3754. agenda buffers can be set with the variable
  3755. `org-agenda-start-with-follow-mode'.
  3756. `b'
  3757. Display the entire subtree of the current item in an indirect
  3758. buffer. With numerical prefix ARG, go up to this level and then
  3759. take that tree. If ARG is negative, go up that many levels. With
  3760. `C-u' prefix, do not remove the previously used indirect buffer.
  3761. `l'
  3762. Toggle Logbook mode. In Logbook mode, entries that where marked
  3763. DONE while logging was on (variable `org-log-done') are shown in
  3764. the agenda, as are entries that have been clocked on that day.
  3765. Change display
  3766. ..............
  3767. `o'
  3768. Delete other windows.
  3769. `d w m y'
  3770. Switch to day/week/month/year view. When switching to day or week
  3771. view, this setting becomes the default for subseqent agenda
  3772. commands. Since month and year views are slow to create, the do
  3773. not become the default.
  3774. `D'
  3775. Toggle the inclusion of diary entries. See *Note Weekly/Daily
  3776. agenda::.
  3777. `g'
  3778. Toggle the time grid on and off. See also the variables
  3779. `org-agenda-use-time-grid' and `org-agenda-time-grid'.
  3780. `r'
  3781. Recreate the agenda buffer, for example to reflect the changes
  3782. after modification of the time stamps of items with S-<left> and
  3783. S-<right>. When the buffer is the global todo list, a prefix
  3784. argument is interpreted to create a selective list for a specific
  3785. TODO keyword.
  3786. `s'
  3787. `C-x C-s'
  3788. Save all Org-mode buffers in the current Emacs session.
  3789. `<right>'
  3790. Display the following `org-agenda-ndays' days. For example, if
  3791. the display covers a week, switch to the following week. With
  3792. prefix arg, go forward that many times `org-agenda-ndays' days.
  3793. `<left>'
  3794. Display the previous dates.
  3795. `.'
  3796. Goto today.
  3797. Remote editing
  3798. ..............
  3799. `0-9'
  3800. Digit argument.
  3801. `C-_'
  3802. Undo a change due to a remote editing command. The change is
  3803. undone both in the agenda buffer and in the remote buffer.
  3804. `t'
  3805. Change the TODO state of the item, both in the agenda and in the
  3806. original org file.
  3807. `C-k'
  3808. Delete the current agenda item along with the entire subtree
  3809. belonging to it in the original Org-mode file. If the text to be
  3810. deleted remotely is longer than one line, the kill needs to be
  3811. confirmed by the user. See variable `org-agenda-confirm-kill'.
  3812. `$'
  3813. Archive the subtree corresponding to the current headline.
  3814. `T'
  3815. Show all tags associated with the current item. Because of
  3816. inheritance, this may be more than the tags listed in the line
  3817. itself.
  3818. `:'
  3819. Set tags for the current headline. If there is an active region
  3820. in the agenda, change a tag for all headings in the region.
  3821. `a'
  3822. Toggle the ARCHIVE tag for the current headline.
  3823. `,'
  3824. Set the priority for the current item. Org-mode prompts for the
  3825. priority character. If you reply with <SPC>, the priority cookie
  3826. is removed from the entry.
  3827. `P'
  3828. Display weighted priority of current item.
  3829. `+'
  3830. `S-<up>'
  3831. Increase the priority of the current item. The priority is
  3832. changed in the original buffer, but the agenda is not resorted.
  3833. Use the `r' key for this.
  3834. `-'
  3835. `S-<down>'
  3836. Decrease the priority of the current item.
  3837. `C-c C-s'
  3838. Schedule this item
  3839. `C-c C-d'
  3840. Set a deadline for this item.
  3841. `S-<right>'
  3842. Change the time stamp associated with the current line by one day
  3843. into the future. With prefix argument, change it by that many
  3844. days. For example, `3 6 5 S-<right>' will change it by a year.
  3845. The stamp is changed in the original org file, but the change is
  3846. not directly reflected in the agenda buffer. Use the `r' key to
  3847. update the buffer.
  3848. `S-<left>'
  3849. Change the time stamp associated with the current line by one day
  3850. into the past.
  3851. `>'
  3852. Change the time stamp associated with the current line to today.
  3853. The key `>' has been chosen, because it is the same as `S-.' on my
  3854. keyboard.
  3855. `I'
  3856. Start the clock on the current item. If a clock is running
  3857. already, it is stopped first.
  3858. `O'
  3859. Stop the previously started clock.
  3860. `X'
  3861. Cancel the currently running clock.
  3862. `J'
  3863. Jump to the running clock in another window.
  3864. Calendar commands
  3865. .................
  3866. `c'
  3867. Open the Emacs calendar and move to the date at the agenda cursor.
  3868. `c'
  3869. When in the calendar, compute and show the Org-mode agenda for the
  3870. date at the cursor.
  3871. `i'
  3872. Insert a new entry into the diary. Prompts for the type of entry
  3873. (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
  3874. new entry in the diary, just as `i d' etc. would do in the
  3875. calendar. The date is taken from the cursor position.
  3876. `M'
  3877. Show the phases of the moon for the three months around current
  3878. date.
  3879. `S'
  3880. Show sunrise and sunset times. The geographical location must be
  3881. set with calendar variables, see documentation of the Emacs
  3882. calendar.
  3883. `C'
  3884. Convert the date at cursor into many other cultural and historic
  3885. calendars.
  3886. `H'
  3887. Show holidays for three month around the cursor date.
  3888. `C-c C-x C-c'
  3889. Export a single iCalendar file containing entries from all agenda
  3890. files.
  3891. Exporting to a file
  3892. ...................
  3893. `C-x C-w'
  3894. Write the agenda view to a file. Depending on the extension of the
  3895. selected file name, the view will be exported as HTML (extension
  3896. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  3897. (any other extension). Use the variable
  3898. `org-agenda-exporter-settings' to set options for `ps-print' and
  3899. for `htmlize' to be used during export.
  3900. Quit and Exit
  3901. .............
  3902. `q'
  3903. Quit agenda, remove the agenda buffer.
  3904. `x'
  3905. Exit agenda, remove the agenda buffer and all buffers loaded by
  3906. Emacs for the compilation of the agenda. Buffers created by the
  3907. user to visit org files will not be removed.
  3908. 
  3909. File: org, Node: Custom agenda views, Prev: Agenda commands, Up: Agenda views
  3910. 10.6 Custom agenda views
  3911. ========================
  3912. Custom agenda commands serve two purposes: to store and quickly access
  3913. frequently used TODO and tags searches, and to create special composite
  3914. agenda buffers. Custom agenda commands will be accessible through the
  3915. dispatcher (*note Agenda dispatcher::), just like the default commands.
  3916. * Menu:
  3917. * Storing searches:: Type once, use often
  3918. * Block agenda:: All the stuff you need in a single buffer
  3919. * Setting Options:: Changing the rules
  3920. * Exporting Agenda Views:: Writing agendas to files.
  3921. * Extracting Agenda Information for other programs::
  3922. 
  3923. File: org, Node: Storing searches, Next: Block agenda, Prev: Custom agenda views, Up: Custom agenda views
  3924. 10.6.1 Storing searches
  3925. -----------------------
  3926. The first application of custom searches is the definition of keyboard
  3927. shortcuts for frequently used searches, either creating an agenda
  3928. buffer, or a sparse tree (the latter covering of course only the current
  3929. buffer). Custom commands are configured in the variable
  3930. `org-agenda-custom-commands'. You can customize this variable, for
  3931. example by pressing `C-c a C'. You can also directly set it with Emacs
  3932. Lisp in `.emacs'. The following example contains all valid search
  3933. types:
  3934. (setq org-agenda-custom-commands
  3935. '(("w" todo "WAITING")
  3936. ("W" todo-tree "WAITING")
  3937. ("u" tags "+BOSS-URGENT")
  3938. ("v" tags-todo "+BOSS-URGENT")
  3939. ("U" tags-tree "+BOSS-URGENT")
  3940. ("f" occur-tree "\\<FIXME\\>")
  3941. ("h" . "HOME+Name tags searches") ; description for "h" prefix
  3942. ("hl" tags "+HOME+Lisa")
  3943. ("hp" tags "+HOME+Peter")
  3944. ("hk" tags "+HOME+Kim")))
  3945. The initial string in each entry defines the keys you have to press
  3946. after the dispatcher command `C-c a' in order to access the command.
  3947. Usually this will be just a single character, but if you have many
  3948. similar commands, you can also define two-letter combinations where the
  3949. first character is the same in several combinations and serves as a
  3950. prefix key(1). The second parameter is the search type, followed by
  3951. the string or regular expression to be used for the matching. The
  3952. example above will therefore define:
  3953. `C-c a w'
  3954. as a global search for TODO entries with `WAITING' as the TODO
  3955. keyword
  3956. `C-c a W'
  3957. as the same search, but only in the current buffer and displaying
  3958. the results as a sparse tree
  3959. `C-c a u'
  3960. as a global tags search for headlines marked `:BOSS:' but not
  3961. `:URGENT:'
  3962. `C-c a v'
  3963. as the same search as `C-c a u', but limiting the search to
  3964. headlines that are also TODO items
  3965. `C-c a U'
  3966. as the same search as `C-c a u', but only in the current buffer and
  3967. displaying the result as a sparse tree
  3968. `C-c a f'
  3969. to create a sparse tree (again: current buffer only) with all
  3970. entries containing the word `FIXME'
  3971. `C-c a h'
  3972. as a prefix command for a HOME tags search where you have to press
  3973. an additional key (`l', `p' or `k') to select a name (Lisa, Peter,
  3974. or Kim) as additional tag to match.
  3975. ---------- Footnotes ----------
  3976. (1) You can provide a description for a prefix key by inserting a
  3977. cons cell with the prefix and the description.
  3978. 
  3979. File: org, Node: Block agenda, Next: Setting Options, Prev: Storing searches, Up: Custom agenda views
  3980. 10.6.2 Block agenda
  3981. -------------------
  3982. Another possibility is the construction of agenda views that comprise
  3983. the results of _several_ commands, each of which creates a block in the
  3984. agenda buffer. The available commands include `agenda' for the daily
  3985. or weekly agenda (as created with `C-c a a'), `alltodo' for the global
  3986. todo list (as constructed with `C-c a t'), and the matching commands
  3987. discussed above: `todo', `tags', and `tags-todo'. Here are two
  3988. examples:
  3989. (setq org-agenda-custom-commands
  3990. '(("h" "Agenda and Home-related tasks"
  3991. ((agenda)
  3992. (tags-todo "HOME")
  3993. (tags "GARDEN")))
  3994. ("o" "Agenda and Office-related tasks"
  3995. ((agenda)
  3996. (tags-todo "WORK")
  3997. (tags "OFFICE")))))
  3998. This will define `C-c a h' to create a multi-block view for stuff you
  3999. need to attend to at home. The resulting agenda buffer will contain
  4000. your agenda for the current week, all TODO items that carry the tag
  4001. `HOME', and also all lines tagged with `GARDEN'. Finally the command
  4002. `C-c a o' provides a similar view for office tasks.
  4003. 
  4004. File: org, Node: Setting Options, Next: Exporting Agenda Views, Prev: Block agenda, Up: Custom agenda views
  4005. 10.6.3 Setting Options for custom commands
  4006. ------------------------------------------
  4007. Org-mode contains a number of variables regulating agenda construction
  4008. and display. The global variables define the behavior for all agenda
  4009. commands, including the custom commands. However, if you want to change
  4010. some settings just for a single custom view, you can do so. Setting
  4011. options requires inserting a list of variable names and values at the
  4012. right spot in `org-agenda-custom-commands'. For example:
  4013. (setq org-agenda-custom-commands
  4014. '(("w" todo "WAITING"
  4015. ((org-agenda-sorting-strategy '(priority-down))
  4016. (org-agenda-prefix-format " Mixed: ")))
  4017. ("U" tags-tree "+BOSS-URGENT"
  4018. ((org-show-following-heading nil)
  4019. (org-show-hierarchy-above nil)))))
  4020. Now the `C-c a w' command will sort the collected entries only by
  4021. priority, and the prefix format is modified to just say ` Mixed:'
  4022. instead of giving the category of the entry. The sparse tags tree of
  4023. `C-c a U' will now turn out ultra-compact, because neither the headline
  4024. hierarchy above the match, nor the headline following the match will be
  4025. shown.
  4026. For command sets creating a block agenda,
  4027. `org-agenda-custom-commands' has two separate spots for setting
  4028. options. You can add options that should be valid for just a single
  4029. command in the set, and options that should be valid for all commands in
  4030. the set. The former are just added to the command entry, the latter
  4031. must come after the list of command entries. Going back to the block
  4032. agenda example (*note Block agenda::), let's change the sorting strategy
  4033. for the `C-c a h' commands to `priority-down', but let's sort the
  4034. results for GARDEN tags query in the opposite order, `priority-up'.
  4035. This would look like this:
  4036. (setq org-agenda-custom-commands
  4037. '(("h" "Agenda and Home-related tasks"
  4038. ((agenda)
  4039. (tags-todo "HOME")
  4040. (tags "GARDEN"
  4041. ((org-agenda-sorting-strategy '(priority-up)))))
  4042. ((org-agenda-sorting-strategy '(priority-down))))
  4043. ("o" "Agenda and Office-related tasks"
  4044. ((agenda)
  4045. (tags-todo "WORK")
  4046. (tags "OFFICE")))))
  4047. As you see, the values and parenthesis setting is a little complex.
  4048. When in doubt, use the customize interface to set this variable - it
  4049. fully supports its structure. Just one caveat: When setting options in
  4050. this interface, the _values_ are just lisp expressions. So if the
  4051. value is a string, you need to add the double quotes around the value
  4052. yourself.
  4053. 
  4054. File: org, Node: Exporting Agenda Views, Next: Extracting Agenda Information for other programs, Prev: Setting Options, Up: Custom agenda views
  4055. 10.6.4 Exporting Agenda Views
  4056. -----------------------------
  4057. If you are away from your computer, it can be very useful to have a
  4058. printed version of some agenda views to carry around. Org-mode can
  4059. export custom agenda views as plain text, HTML(1) and postscript. If
  4060. you want to do this only occasionally, use the command
  4061. `C-x C-w'
  4062. Write the agenda view to a file. Depending on the extension of the
  4063. selected file name, the view will be exported as HTML (extension
  4064. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  4065. (any other extension). Use the variable
  4066. `org-agenda-exporter-settings' to set options for `ps-print' and
  4067. for `htmlize' to be used during export, for example
  4068. (setq org-agenda-exporter-settings
  4069. '((ps-number-of-columns 2)
  4070. (ps-landscape-mode t)
  4071. (htmlize-output-type 'css)))
  4072. If you need to export certain agenda views frequently, you can
  4073. associate any custom agenda command with a list of output file names
  4074. (2). Here is an example that first does define custom commands for the
  4075. agenda and the global todo list, together with a number of files to
  4076. which to export them. Then we define two block agenda commands and
  4077. specify filenames for them as well. File names can be relative to the
  4078. current working directory, or absolute.
  4079. (setq org-agenda-custom-commands
  4080. '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
  4081. ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
  4082. ("h" "Agenda and Home-related tasks"
  4083. ((agenda)
  4084. (tags-todo "HOME")
  4085. (tags "GARDEN"))
  4086. nil
  4087. ("~/views/home.html"))
  4088. ("o" "Agenda and Office-related tasks"
  4089. ((agenda)
  4090. (tags-todo "WORK")
  4091. (tags "OFFICE"))
  4092. nil
  4093. ("~/views/office.ps"))))
  4094. The extension of the file name determines the type of export. If it
  4095. is `.html', Org-mode will use the `htmlize.el' package to convert the
  4096. buffer to HTML and save it to this file name. If the extension is
  4097. `.ps', `ps-print-buffer-with-faces' is used to produce postscript
  4098. output. Any other extension produces a plain ASCII file.
  4099. The export files are _not_ created when you use one of those
  4100. commands interactively. Instead, there is a special command to produce
  4101. _all_ specified files in one step:
  4102. `C-c a e'
  4103. Export all agenda views that have export filenames associated with
  4104. them.
  4105. You can use the options section of the custom agenda commands to also
  4106. set options for the export commands. For example:
  4107. (setq org-agenda-custom-commands
  4108. '(("X" agenda ""
  4109. ((ps-number-of-columns 2)
  4110. (ps-landscape-mode t)
  4111. (org-agenda-prefix-format " [ ] ")
  4112. (org-agenda-with-colors nil)
  4113. (org-agenda-remove-tags t))
  4114. ("theagenda.ps"))))
  4115. This command sets two options for the postscript exporter, to make it
  4116. print in two columns in landscape format - the resulting page can be cut
  4117. in two and then used in a paper agenda. The remaining settings modify
  4118. the agenda prefix to omit category and scheduling information, and
  4119. instead include a checkbox to check off items. We also remove the tags
  4120. to make the lines compact, and we don't want to use colors for the
  4121. black-and-white printer. Settings specified in
  4122. `org-agenda-exporter-settings' will also apply, but the settings in
  4123. `org-agenda-custom-commands' take precedence.
  4124. From the command line you may also use
  4125. emacs -f org-batch-store-agenda-views -kill
  4126. or, if you need to modify some parameters
  4127. emacs -eval '(org-batch-store-agenda-views \
  4128. org-agenda-ndays 30 \
  4129. org-agenda-start-day "2007-11-01" \
  4130. org-agenda-include-diary nil \
  4131. org-agenda-files (quote ("~/org/project.org")))' \
  4132. -kill
  4133. which will create the agenda views restricted to the file
  4134. `~/org/project.org', without diary entries and with 30 days extent.
  4135. ---------- Footnotes ----------
  4136. (1) You need to install Hrvoje Niksic' `htmlize.el'.
  4137. (2) If you want to store standard views like the weekly agenda or
  4138. the global TODO list as well, you need to define custom commands for
  4139. them in order to be able to specify filenames.
  4140. 
  4141. File: org, Node: Extracting Agenda Information for other programs, Prev: Exporting Agenda Views, Up: Custom agenda views
  4142. 10.6.5 Extracting Agenda Information for other programs
  4143. -------------------------------------------------------
  4144. Org-mode provides commands to access agenda information for the command
  4145. line in emacs batch mode. This extracted information can be sent
  4146. directly to a printer, or it can be read by a program that does further
  4147. processing of the data. The first of these commands is the function
  4148. `org-batch-agenda', that produces an agenda view and sends it as ASCII
  4149. text to STDOUT. The command takes a single string as parameter. If
  4150. the string has length 1, it is used as a key to one of the commands you
  4151. have configured in `org-agenda-custom-commands', basically any key you
  4152. can use after `C-c a'. For example, to directly print the current TODO
  4153. list, you could use
  4154. emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
  4155. If the parameter is a string with 2 or more characters, it is used
  4156. as a tags/todo match string. For example, to print your local shopping
  4157. list (all items with the tag `shop', but excluding the tag `NewYork'),
  4158. you could use
  4159. emacs -batch -l ~/.emacs \
  4160. -eval '(org-batch-agenda "+shop-NewYork")' | lpr
  4161. You may also modify parameters on the fly like this:
  4162. emacs -batch -l ~/.emacs \
  4163. -eval '(org-batch-agenda "a" \
  4164. org-agenda-ndays 30 \
  4165. org-agenda-include-diary nil \
  4166. org-agenda-files (quote ("~/org/project.org")))' \
  4167. | lpr
  4168. which will produce a 30 day agenda, fully restricted to the Org file
  4169. `~/org/projects.org', not even including the diary.
  4170. If you want to process the agenda data in more sophisticated ways,
  4171. you can use the command `org-batch-agenda-csv' to get a comma-separated
  4172. list of values for each agenda item. Each line in the output will
  4173. contain a number of fields separated by commas. The fields in a line
  4174. are:
  4175. category The category of the item
  4176. head The headline, without TODO kwd, TAGS and PRIORITY
  4177. type The type of the agenda entry, can be
  4178. todo selected in TODO match
  4179. tagsmatch selected in tags match
  4180. diary imported from diary
  4181. deadline a deadline
  4182. scheduled scheduled
  4183. timestamp appointment, selected by timestamp
  4184. closed entry was closed on date
  4185. upcoming-deadline warning about nearing deadline
  4186. past-scheduled forwarded scheduled item
  4187. block entry has date block including date
  4188. todo The todo keyword, if any
  4189. tags All tags including inherited ones, separated by colons
  4190. date The relevant date, like 2007-2-14
  4191. time The time, like 15:00-16:50
  4192. extra String with extra planning info
  4193. priority-l The priority letter if any was given
  4194. priority-n The computed numerical priority
  4195. Time and date will only be given if a timestamp (or deadline/scheduled)
  4196. lead to the selection of the item.
  4197. A CSV list like this is very easy to use in a post processing script.
  4198. For example, here is a Perl program that gets the TODO list from
  4199. Emacs/org-mode and prints all the items, preceded by a checkbox:
  4200. #!/usr/bin/perl
  4201. # define the Emacs command to run
  4202. $cmd = "emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv \"t\")'";
  4203. # run it and capture the output
  4204. $agenda = qx{$cmd 2>/dev/null};
  4205. # loop over all lines
  4206. foreach $line (split(/\n/,$agenda)) {
  4207. # get the individual values
  4208. ($category,$head,$type,$todo,$tags,$date,$time,$extra,
  4209. $priority_l,$priority_n) = split(/,/,$line);
  4210. # proccess and print
  4211. print "[ ] $head\n";
  4212. }
  4213. 
  4214. File: org, Node: Embedded LaTeX, Next: Exporting, Prev: Agenda views, Up: Top
  4215. 11 Embedded LaTeX
  4216. *****************
  4217. Plain ASCII is normally sufficient for almost all note taking. One
  4218. exception, however, are scientific notes which need to be able to
  4219. contain mathematical symbols and the occasional formula. LaTeX(1) is
  4220. widely used to typeset scientific documents. Org-mode supports
  4221. embedding LaTeX code into its files, because many academics are used to
  4222. read LaTeX source code, and because it can be readily processed into
  4223. images for HTML production.
  4224. It is not necessary to mark LaTeX macros and code in any special way.
  4225. If you observe a few conventions, Org-mode knows how to find it and what
  4226. to do with it.
  4227. * Menu:
  4228. * Math symbols:: TeX macros for symbols and Greek letters
  4229. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  4230. * LaTeX fragments:: Complex formulas made easy
  4231. * Processing LaTeX fragments:: Previewing LaTeX processing
  4232. * CDLaTeX mode:: Speed up entering of formulas
  4233. ---------- Footnotes ----------
  4234. (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
  4235. Many of the features described here as "LaTeX" are really from TeX, but
  4236. for simplicity I am blurring this distinction.
  4237. 
  4238. File: org, Node: Math symbols, Next: Subscripts and Superscripts, Prev: Embedded LaTeX, Up: Embedded LaTeX
  4239. 11.1 Math symbols
  4240. =================
  4241. You can use LaTeX macros to insert special symbols like `\alpha' to
  4242. indicate the Greek letter, or `\to' to indicate an arrow. Completion
  4243. for these macros is available, just type `\' and maybe a few letters,
  4244. and press `M-<TAB>' to see possible completions. Unlike LaTeX code,
  4245. Org-mode allows these macros to be present without surrounding math
  4246. delimiters, for example:
  4247. Angles are written as Greek letters \alpha, \beta and \gamma.
  4248. During HTML export (*note HTML export::), these symbols are
  4249. translated into the proper syntax for HTML, for the above examples this
  4250. is `&alpha;' and `&rarr;', respectively.
  4251. 
  4252. File: org, Node: Subscripts and Superscripts, Next: LaTeX fragments, Prev: Math symbols, Up: Embedded LaTeX
  4253. 11.2 Subscripts and Superscripts
  4254. ================================
  4255. Just like in LaTeX, `^' and `_' are used to indicate super- and
  4256. subscripts. Again, these can be used without embedding them in
  4257. math-mode delimiters. To increase the readability of ASCII text, it is
  4258. not necessary (but OK) to surround multi-character sub- and superscripts
  4259. with curly braces. For example
  4260. The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
  4261. the sun is R_{sun} = 6.96 x 10^8 m.
  4262. To avoid interpretation as raised or lowered text, you can quote `^'
  4263. and `_' with a backslash: `\_' and `\^'.
  4264. During HTML export (*note HTML export::), subscript and superscripts
  4265. are surrounded with `<sub>' and `<sup>' tags, respectively.
  4266. 
  4267. File: org, Node: LaTeX fragments, Next: Processing LaTeX fragments, Prev: Subscripts and Superscripts, Up: Embedded LaTeX
  4268. 11.3 LaTeX fragments
  4269. ====================
  4270. With symbols, sub- and superscripts, HTML is pretty much at its end when
  4271. it comes to representing mathematical formulas(1). More complex
  4272. expressions need a dedicated formula processor. To this end, Org-mode
  4273. can contain arbitrary LaTeX fragments. It provides commands to preview
  4274. the typeset result of these fragments, and upon export to HTML, all
  4275. fragments will be converted to images and inlined into the HTML
  4276. document(2). For this to work you need to be on a system with a working
  4277. LaTeX installation. You also need the `dvipng' program, available at
  4278. `http://sourceforge.net/projects/dvipng/'. The LaTeX header that will
  4279. be used when processing a fragment can be configured with the variable
  4280. `org-format-latex-header'.
  4281. LaTeX fragments don't need any special marking at all. The following
  4282. snippets will be identified as LaTeX source code:
  4283. * Environments of any kind. The only requirement is that the
  4284. `\begin' statement appears on a new line, preceded by only
  4285. whitespace.
  4286. * Text within the usual LaTeX math delimiters. To avoid conflicts
  4287. with currency specifications, single `$' characters are only
  4288. recognized as math delimiters if the enclosed text contains at
  4289. most two line breaks, is directly attached to the `$' characters
  4290. with no whitespace in between, and if the closing `$' is followed
  4291. by whitespace or punctuation. For the other delimiters, there is
  4292. no such restriction, so when in doubt, use `\(...\)' as inline
  4293. math delimiters.
  4294. For example:
  4295. \begin{equation} % arbitrary environments,
  4296. x=\sqrt{b} % even tables, figures
  4297. \end{equation} % etc
  4298. If $a^2=b$ and \( b=2 \), then the solution must be
  4299. either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
  4300. If you need any of the delimiter ASCII sequences for other purposes, you
  4301. can configure the option `org-format-latex-options' to deselect the
  4302. ones you do not wish to have interpreted by the LaTeX converter.
  4303. ---------- Footnotes ----------
  4304. (1) Yes, there is MathML, but that is not yet fully supported by
  4305. many browsers, and there is no decent converter for turning LaTeX or
  4306. ASCII representations of formulas into MathML. So for the time being,
  4307. converting formulas into images seems the way to go.
  4308. (2) The LaTeX export will not use images for displaying LaTeX
  4309. fragments but include these fragments directly into the LaTeX code.
  4310. 
  4311. File: org, Node: Processing LaTeX fragments, Next: CDLaTeX mode, Prev: LaTeX fragments, Up: Embedded LaTeX
  4312. 11.4 Processing LaTeX fragments
  4313. ===============================
  4314. LaTeX fragments can be processed to produce a preview images of the
  4315. typeset expressions:
  4316. `C-c C-x C-l'
  4317. Produce a preview image of the LaTeX fragment at point and overlay
  4318. it over the source code. If there is no fragment at point,
  4319. process all fragments in the current entry (between two
  4320. headlines). When called with a prefix argument, process the
  4321. entire subtree. When called with two prefix arguments, or when
  4322. the cursor is before the first headline, process the entire buffer.
  4323. `C-c C-c'
  4324. Remove the overlay preview images.
  4325. During HTML export (*note HTML export::), all LaTeX fragments are
  4326. converted into images and inlined into the document if the following
  4327. setting is active:
  4328. (setq org-export-with-LaTeX-fragments t)
  4329. 
  4330. File: org, Node: CDLaTeX mode, Prev: Processing LaTeX fragments, Up: Embedded LaTeX
  4331. 11.5 Using CDLaTeX to enter math
  4332. ================================
  4333. CDLaTeX-mode is a minor mode that is normally used in combination with a
  4334. major LaTeX mode like AUCTeX in order to speed-up insertion of
  4335. environments and math templates. Inside Org-mode, you can make use of
  4336. some of the features of cdlatex-mode. You need to install `cdlatex.el'
  4337. and `texmathp.el' (the latter comes also with AUCTeX) from
  4338. `http://www.astro.uva.nl/~dominik/Tools/cdlatex'. Don't turn
  4339. cdlatex-mode itself under Org-mode, but use the light version
  4340. `org-cdlatex-mode' that comes as part of Org-mode. Turn it on for the
  4341. current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
  4342. with
  4343. (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
  4344. When this mode is enabled, the following features are present (for
  4345. more details see the documentation of cdlatex-mode):
  4346. * Environment templates can be inserted with `C-c {'.
  4347. * The <TAB> key will do template expansion if the cursor is inside a
  4348. LaTeX fragment(1). For example, <TAB> will expand `fr' to
  4349. `\frac{}{}' and position the cursor correctly inside the first
  4350. brace. Another <TAB> will get you into the second brace. Even
  4351. outside fragments, <TAB> will expand environment abbreviations at
  4352. the beginning of a line. For example, if you write `equ' at the
  4353. beginning of a line and press <TAB>, this abbreviation will be
  4354. expanded to an `equation' environment. To get a list of all
  4355. abbreviations, type `M-x cdlatex-command-help'.
  4356. * Pressing `_' and `^' inside a LaTeX fragment will insert these
  4357. characters together with a pair of braces. If you use <TAB> to
  4358. move out of the braces, and if the braces surround only a single
  4359. character or macro, they are removed again (depending on the
  4360. variable `cdlatex-simplify-sub-super-scripts').
  4361. * Pressing the backquote ``' followed by a character inserts math
  4362. macros, also outside LaTeX fragments. If you wait more than 1.5
  4363. seconds after the backquote, a help window will pop up.
  4364. * Pressing the normal quote `'' followed by another character
  4365. modifies the symbol before point with an accent or a font. If you
  4366. wait more than 1.5 seconds after the backquote, a help window will
  4367. pop up. Character modification will work only inside LaTeX
  4368. fragments, outside the quote is normal.
  4369. ---------- Footnotes ----------
  4370. (1) Org-mode has a method to test if the cursor is inside such a
  4371. fragment, see the documentation of the function
  4372. `org-inside-LaTeX-fragment-p'.
  4373. 
  4374. File: org, Node: Exporting, Next: Publishing, Prev: Embedded LaTeX, Up: Top
  4375. 12 Exporting
  4376. ************
  4377. Org-mode documents can be exported into a variety of other formats. For
  4378. printing and sharing of notes, ASCII export produces a readable and
  4379. simple version of an Org-mode file. HTML export allows you to publish a
  4380. notes file on the web, while the XOXO format provides a solid base for
  4381. exchange with a broad range of other applications. LaTeX export lets
  4382. you use Org-mode and its structured editing functions to easily create
  4383. LaTeX files. To incorporate entries with associated times like
  4384. deadlines or appointments into a desktop calendar program like iCal,
  4385. Org-mode can also produce extracts in the iCalendar format. Currently
  4386. Org-mode only supports export, not import of these different formats.
  4387. When exporting, Org-mode uses special conventions to enrich the
  4388. output produced. *Note Text interpretation::, for more details.
  4389. `C-c C-e'
  4390. Dispatcher for export and publishing commands. Displays a
  4391. help-window listing the additional key(s) needed to launch an
  4392. export or publishing command.
  4393. * Menu:
  4394. * ASCII export:: Exporting to plain ASCII
  4395. * HTML export:: Exporting to HTML
  4396. * LaTeX export:: Exporting to LaTeX
  4397. * XOXO export:: Exporting to XOXO
  4398. * iCalendar export:: Exporting in iCalendar format
  4399. * Text interpretation:: How the exporter looks at the file
  4400. 
  4401. File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
  4402. 12.1 ASCII export
  4403. =================
  4404. ASCII export produces a simple and very readable version of an Org-mode
  4405. file.
  4406. `C-c C-e a'
  4407. Export as ASCII file. For an org file `myfile.org', the ASCII file
  4408. will be `myfile.txt'. The file will be overwritten without
  4409. warning. If there is an active region, only the region will be
  4410. exported. If the selected region is a single tree, the tree head
  4411. will become the document title. If the tree head entry has or
  4412. inherits an EXPORT_FILE_NAME property, that name will be used for
  4413. the export.
  4414. `C-c C-e v a'
  4415. Export only the visible part of the document.
  4416. In the exported version, the first 3 outline levels will become
  4417. headlines, defining a general document structure. Additional levels
  4418. will be exported as itemized lists. If you want that transition to
  4419. occur at a different level, specify it with a prefix argument. For
  4420. example,
  4421. C-1 C-c C-e a
  4422. creates only top level headlines and does the rest as items. When
  4423. headlines are converted to items, the indentation of the text following
  4424. the headline is changed to fit nicely under the item. This is done with
  4425. the assumption that the first bodyline indicates the base indentation of
  4426. the body text. Any indentation larger than this is adjusted to preserve
  4427. the layout relative to the first line. Should there be lines with less
  4428. indentation than the first, these are left alone.
  4429. 
  4430. File: org, Node: HTML export, Next: LaTeX export, Prev: ASCII export, Up: Exporting
  4431. 12.2 HTML export
  4432. ================
  4433. Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
  4434. HTML formatting, in ways similar to John Grubers _markdown_ language,
  4435. but with additional support for tables.
  4436. * Menu:
  4437. * HTML Export commands:: How to invoke LaTeX export
  4438. * Quoting HTML tags:: Using direct HTML in Org-mode
  4439. * Links:: Transformation of links for HTML
  4440. * Images:: How to include images
  4441. * CSS support:: Changing the appearence of the output
  4442. 
  4443. File: org, Node: HTML Export commands, Next: Quoting HTML tags, Prev: HTML export, Up: HTML export
  4444. 12.2.1 HTML export commands
  4445. ---------------------------
  4446. `C-c C-e h'
  4447. Export as HTML file `myfile.html'. For an org file `myfile.org',
  4448. the ASCII file will be `myfile.html'. The file will be
  4449. overwritten without warning. If there is an active region, only
  4450. the region will be exported. If the selected region is a single
  4451. tree, the tree head will become the document title. If the tree
  4452. head entry has or inherits an EXPORT_FILE_NAME property, that name
  4453. will be used for the export.
  4454. `C-c C-e b'
  4455. Export as HTML file and immediately open it with a browser.
  4456. `C-c C-e H'
  4457. Export to a temporary buffer, do not create a file.
  4458. `C-c C-e R'
  4459. Export the active region to a temporary buffer. With prefix arg,
  4460. do not produce file header and foot, but just the plain HTML
  4461. section for the region. This is good for cut-and-paste operations.
  4462. `C-c C-e v h'
  4463. `C-c C-e v b'
  4464. `C-c C-e v H'
  4465. `C-c C-e v R'
  4466. Export only the visible part of the document.
  4467. `M-x org-export-region-as-html'
  4468. Convert the region to HTML under the assumption that it was
  4469. org-mode syntax before. This is a global command that can be
  4470. invoked in any buffer.
  4471. `M-x org-replace-region-by-HTML'
  4472. Replace the active region (assumed to be in Org-mode syntax) by
  4473. HTML code.
  4474. In the exported version, the first 3 outline levels will become
  4475. headlines, defining a general document structure. Additional levels
  4476. will be exported as itemized lists. If you want that transition to
  4477. occur at a different level, specify it with a prefix argument. For
  4478. example,
  4479. C-2 C-c C-e b
  4480. creates two levels of headings and does the rest as items.
  4481. 
  4482. File: org, Node: Quoting HTML tags, Next: Links, Prev: HTML Export commands, Up: HTML export
  4483. 12.2.2 Quoting HTML tags
  4484. ------------------------
  4485. Plain `<' and `>' are always transformed to `&lt;' and `&gt;' in HTML
  4486. export. If you want to include simple HTML tags which should be
  4487. interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
  4488. Note that this really works only for simple tags. For more extensive
  4489. HTML that should be copied verbatim to the exported file use either
  4490. #+HTML: Literal HTML code for export
  4491. or
  4492. #+BEGIN_HTML
  4493. All lines between these markers are exported literally
  4494. #+END_HTML
  4495. 
  4496. File: org, Node: Links, Next: Images, Prev: Quoting HTML tags, Up: HTML export
  4497. 12.2.3 Links
  4498. ------------
  4499. Internal links (*note Internal links::) will continue to work in HTML
  4500. files only if they match a dedicated `<<target>>'. Automatic links
  4501. created by radio targets (*note Radio targets::) will also work in the
  4502. HTML file. Links to external files will still work if the HTML file is
  4503. in the same directory as the Org-mode file. Links to other `.org'
  4504. files will be translated into HTML links under the assumption that an
  4505. HTML version also exists of the linked file. For information related to
  4506. linking files while publishing them to a publishing directory see *Note
  4507. Publishing links::.
  4508. 
  4509. File: org, Node: Images, Next: CSS support, Prev: Links, Up: HTML export
  4510. 12.2.4 Images
  4511. -------------
  4512. HTML export can inline images given as links in the Org-mode file, and
  4513. it can make an image the clickable part of a link. By default(1),
  4514. images are inlined if a link does not have a description. So
  4515. `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
  4516. image]]' will just produce a link `the image' that points to the image.
  4517. If the description part itself is a `file:' link or a `http:' URL
  4518. pointing to an image, this image will be inlined and activated so that
  4519. clicking on the image will activate the link. For example, to include
  4520. a thumbnail that will link to a high resolution version of the image,
  4521. you could use:
  4522. [[file:highres.jpg][file:thumb.jpg]]
  4523. and you could use `http' addresses just as well.
  4524. ---------- Footnotes ----------
  4525. (1) but see the variable `org-export-html-inline-images'
  4526. 
  4527. File: org, Node: CSS support, Prev: Images, Up: HTML export
  4528. 12.2.5 CSS support
  4529. ------------------
  4530. You can also give style information for the exported file. The HTML
  4531. exporter assigns the following CSS classes to appropriate parts of the
  4532. document - your style specifications may change these:
  4533. .todo TODO keywords
  4534. .done the DONE keyword
  4535. .timestamp time stamp
  4536. .timestamp-kwd keyword associated with a time stamp, like SCHEDULED
  4537. .tag tag in a headline
  4538. .target target for links
  4539. The default style specification can be configured through the option
  4540. `org-export-html-style'. If you want to use a file-local style, you
  4541. may use file variables, best wrapped into a COMMENT section at the end
  4542. of the outline tree. For example(1):
  4543. * COMMENT html style specifications
  4544. # Local Variables:
  4545. # org-export-html-style: " <style type=\"text/css\">
  4546. # p {font-weight: normal; color: gray; }
  4547. # h1 {color: black; }
  4548. # </style>"
  4549. # End:
  4550. Remember to execute `M-x normal-mode' after changing this to make
  4551. the new style visible to Emacs. This command restarts org-mode for the
  4552. current buffer and forces Emacs to re-evaluate the local variables
  4553. section in the buffer.
  4554. ---------- Footnotes ----------
  4555. (1) Under Emacs 21, the continuation lines for a variable value
  4556. should have no `#' at the start of the line.
  4557. 
  4558. File: org, Node: LaTeX export, Next: XOXO export, Prev: HTML export, Up: Exporting
  4559. 12.3 LaTeX export
  4560. =================
  4561. Org-mode contains a LaTeX exporter written by Bastien Guerry.
  4562. * Menu:
  4563. * LaTeX export commands:: How to invoke LaTeX export
  4564. * Quoting LaTeX code:: Incorporating literal LaTeX code
  4565. * Sectioning structure::
  4566. 
  4567. File: org, Node: LaTeX export commands, Next: Quoting LaTeX code, Prev: LaTeX export, Up: LaTeX export
  4568. 12.3.1 LaTeX export commands
  4569. ----------------------------
  4570. `C-c C-e l'
  4571. Export as LaTeX file `myfile.tex'.
  4572. `C-c C-e L'
  4573. Export to a temporary buffer, do not create a file.
  4574. `C-c C-e v l'
  4575. `C-c C-e v L'
  4576. Export only the visible part of the document.
  4577. `M-x org-export-region-as-latex'
  4578. Convert the region to LaTeX under the assumption that it was
  4579. org-mode syntax before. This is a global command that can be
  4580. invoked in any buffer.
  4581. `M-x org-replace-region-by-latex'
  4582. Replace the active region (assumed to be in Org-mode syntax) by
  4583. LaTeX code.
  4584. In the exported version, the first 3 outline levels will become
  4585. headlines, defining a general document structure. Additional levels
  4586. will be exported as description lists. The exporter can ignore them or
  4587. convert them to a custom string depending on `org-latex-low-levels'.
  4588. If you want that transition to occur at a different level, specify it
  4589. with a prefix argument. For example,
  4590. C-2 C-c C-e l
  4591. creates two levels of headings and does the rest as items.
  4592. 
  4593. File: org, Node: Quoting LaTeX code, Next: Sectioning structure, Prev: LaTeX export commands, Up: LaTeX export
  4594. 12.3.2 Quoting LaTeX code
  4595. -------------------------
  4596. Embedded LaTeX as described in *Note Embedded LaTeX:: will be correctly
  4597. inserted into the LaTeX file. Forthermore, you can add special code
  4598. that should only be present in LaTeX export with the following
  4599. constructs:
  4600. #+LaTeX: Literal LaTeX code for export
  4601. or
  4602. #+BEGIN_LaTeX
  4603. All lines between these markers are exported literally
  4604. #+END_LaTeX
  4605. 
  4606. File: org, Node: Sectioning structure, Prev: Quoting LaTeX code, Up: LaTeX export
  4607. 12.3.3 Sectioning structure
  4608. ---------------------------
  4609. By default, the LaTeX output uses the class `article'.
  4610. You can change this globally by setting a different value for
  4611. `org-export-latex-default-class' or locally by adding an option like
  4612. `#+LaTeX_CLASS: myclass' in your file. The class should be listed in
  4613. `org-export-latex-classes', where you can also define the sectioning
  4614. structure for each class.
  4615. 
  4616. File: org, Node: XOXO export, Next: iCalendar export, Prev: LaTeX export, Up: Exporting
  4617. 12.4 XOXO export
  4618. ================
  4619. Org-mode contains an exporter that produces XOXO-style output.
  4620. Currently, this exporter only handles the general outline structure and
  4621. does not interpret any additional Org-mode features.
  4622. `C-c C-e x'
  4623. Export as XOXO file `myfile.html'.
  4624. `C-c C-e v x'
  4625. Export only the visible part of the document.
  4626. 
  4627. File: org, Node: iCalendar export, Next: Text interpretation, Prev: XOXO export, Up: Exporting
  4628. 12.5 iCalendar export
  4629. =====================
  4630. Some people like to use Org-mode for keeping track of projects, but
  4631. still prefer a standard calendar application for anniversaries and
  4632. appointments. In this case it can be useful to have deadlines and
  4633. other time-stamped items in Org-mode files show up in the calendar
  4634. application. Org-mode can export calendar information in the standard
  4635. iCalendar format. If you also want to have TODO entries included in the
  4636. export, configure the variable `org-icalendar-include-todo'.
  4637. `C-c C-e i'
  4638. Create iCalendar entries for the current file and store them in
  4639. the same directory, using a file extension `.ics'.
  4640. `C-c C-e I'
  4641. Like `C-c C-e i', but do this for all files in `org-agenda-files'.
  4642. For each of these files, a separate iCalendar file will be
  4643. written.
  4644. `C-c C-e c'
  4645. Create a single large iCalendar file from all files in
  4646. `org-agenda-files' and write it to the file given by
  4647. `org-combined-agenda-icalendar-file'.
  4648. The export will honor SUMMARY, DESCRIPTION and LOCATION properties if
  4649. the selected entries have them. If not, the summary will be derived
  4650. from the headline, and the description from the body (limited to
  4651. `org-icalendar-include-body' characters).
  4652. How this calendar is best read and updated, depends on the
  4653. application you are using. The FAQ covers this issue.
  4654. 
  4655. File: org, Node: Text interpretation, Prev: iCalendar export, Up: Exporting
  4656. 12.6 Text interpretation by the exporter
  4657. ========================================
  4658. The exporter backends interpret additional structure in the Org-mode
  4659. file in order to produce better output.
  4660. * Menu:
  4661. * Comment lines:: Some lines will not be exported
  4662. * Initial text:: Text before the first headline
  4663. * Footnotes:: Numbers like [1]
  4664. * Quoted examples:: Inserting quoted chnuks of text
  4665. * Enhancing text:: Subscripts, symbols and more
  4666. * Export options:: How to influence the export settings
  4667. 
  4668. File: org, Node: Comment lines, Next: Initial text, Prev: Text interpretation, Up: Text interpretation
  4669. 12.6.1 Comment lines
  4670. --------------------
  4671. Lines starting with `#' in column zero are treated as comments and will
  4672. never be exported. Also entire subtrees starting with the word
  4673. `COMMENT' will never be exported.
  4674. `C-c ;'
  4675. Toggle the COMMENT keyword at the beginning of an entry.
  4676. 
  4677. File: org, Node: Initial text, Next: Footnotes, Prev: Comment lines, Up: Text interpretation
  4678. 12.6.2 Text before the first headline
  4679. -------------------------------------
  4680. Org-mode normally ignores any text before the first headline when
  4681. exporting, leaving this region for internal links to speed up navigation
  4682. etc. However, in publishing-oriented files, you might want to have some
  4683. text before the first headline, like a small introduction, special HTML
  4684. code with a navigation bar, etc. You can ask to have this part of the
  4685. file exported as well by setting the variable
  4686. `org-export-skip-text-before-1st-heading' to `nil'. On a per-file
  4687. basis, you can get the same effect with
  4688. #+OPTIONS: skip:nil
  4689. The text before the first headline will be fully processed (*note
  4690. Enhancing text::), and the first non-comment line becomes the title of
  4691. the exported document. If you need to include literal HTML, use the
  4692. special constructs described in *Note Quoting HTML tags::. The table
  4693. of contents is normally inserted directly before the first headline of
  4694. the file. If you would like to get it to a different location, insert
  4695. the string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
  4696. location.
  4697. Finally, if you want to use the space before the first headline for
  4698. internal purposes, but _still_ want to place something before the first
  4699. headline when exporting the file, you can use the `#+TEXT' construct:
  4700. #+OPTIONS: skip:t
  4701. #+TEXT: This text will go before the *first* headline.
  4702. #+TEXT: We place the table of contents here:
  4703. #+TEXT: [TABLE-OF-CONTENTS]
  4704. #+TEXT: This goes between the table of contents and the first headline
  4705. 
  4706. File: org, Node: Footnotes, Next: Quoted examples, Prev: Initial text, Up: Text interpretation
  4707. 12.6.3 Footnotes
  4708. ----------------
  4709. Numbers in square brackets are treated as footnotes, so that you can use
  4710. the Emacs package `footnote.el' to create footnotes. For example:
  4711. The org-mode homepage[1] clearly needs help from
  4712. a good web designer.
  4713. [1] The link is: http://orgmode.org
  4714. Note that the `footnote' package uses `C-c !' to invoke its commands.
  4715. This binding conflicts with the org-mode command for inserting inactive
  4716. time stamps. You could use the variable `footnote-prefix' to switch
  4717. footnotes commands to another key. Or, if you are too used to this
  4718. binding, you could use `org-replace-disputed-keys' and
  4719. `org-disputed-keys' to change the settings in Org-mode.
  4720. 
  4721. File: org, Node: Quoted examples, Next: Enhancing text, Prev: Footnotes, Up: Text interpretation
  4722. 12.6.4 Quoted examples
  4723. ----------------------
  4724. When writing technical documents, you often need to insert examples that
  4725. are not further interpreted by Org-mode. For historical reasons, there
  4726. are several ways to do this:
  4727. * If a headline starts with the word `QUOTE', the text below the
  4728. headline will be typeset as fixed-width, to allow quoting of
  4729. computer codes etc.
  4730. * Lines starting with `:' are also typeset in fixed-width font.
  4731. `C-c :'
  4732. Toggle fixed-width for entry (QUOTE) or region, see below.
  4733. * Finally, text between
  4734. #+BEGIN_EXAMPLE
  4735. quoted text
  4736. #+END_EXAMPLE
  4737. will also be exported in this way.
  4738. 
  4739. File: org, Node: Enhancing text, Next: Export options, Prev: Quoted examples, Up: Text interpretation
  4740. 12.6.5 Enhancing text for export
  4741. --------------------------------
  4742. Some of the export backends of Org-mode allow for sophisticated text
  4743. formatting, this is true in particular for the HTML and LaTeX backends.
  4744. Org-mode has a number of typing conventions that allow to produce a
  4745. richly formatted output.
  4746. * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
  4747. enumerator will be recognized and transformed if the backend
  4748. supports lists. See *Note Plain lists::.
  4749. * You can make words *bold*, /italic/, _underlined_, `=code=' and
  4750. `~verbatim~', and, if you must, `+strikethrough+'. Text in the
  4751. code and verbatim string is not processed for org-mode specific
  4752. syntax, it is exported verbatim.
  4753. * A line consisting of only dashes, and at least 5 of them, will be
  4754. exported as a horizontal line (`<hr/>' in HTML).
  4755. * Many TeX macros and entire LaTeX fragments are converted into HTML
  4756. entities or images (*note Embedded LaTeX::).
  4757. * Tables are transformed into native tables under the exporter, if
  4758. the export backend supports this. Data fields before the first
  4759. horizontal separator line will be formatted as table header fields.
  4760. * If a headline starts with the word `QUOTE', the text below the
  4761. headline will be typeset as fixed-width, to allow quoting of
  4762. computer codes etc. Lines starting with `:' are also typeset in
  4763. fixed-width font.
  4764. `C-c :'
  4765. Toggle fixed-width for entry (QUOTE) or region, see below.
  4766. Finally, text between
  4767. #+BEGIN_EXAMPLE
  4768. quoted text
  4769. #+END_EXAMPLE
  4770. will also be exported in this way.
  4771. * A double backslash _at the end of a line_ enforces a line break at
  4772. this position.
  4773. * Strings like `\alpha' will be exported as `&alpha;', in the HTML
  4774. output. These strings are exported as `$\alpha$' in the LaTeX
  4775. output. Similarly, `\nbsp' will become `&nbsp;' in HTML and in
  4776. LaTeX. This applies for a long list of entities, see the variable
  4777. `org-html-entities' for the complete list.
  4778. If these conversions conflict with your habits of typing ASCII text,
  4779. they can all be turned off with corresponding variables. See the
  4780. customization group `org-export-general', and the following section
  4781. which explains how to set export options with special lines in a buffer.
  4782. 
  4783. File: org, Node: Export options, Prev: Enhancing text, Up: Text interpretation
  4784. 12.6.6 Export options
  4785. ---------------------
  4786. The exporter recognizes special lines in the buffer which provide
  4787. additional information. These lines may be put anywhere in the file.
  4788. The whole set of lines can be inserted into the buffer with `C-c C-e
  4789. t'. For individual lines, a good way to make sure the keyword is
  4790. correct is to type `#+' and then use `M-<TAB>' completion (*note
  4791. Completion::).
  4792. `C-c C-e t'
  4793. Insert template with export options, see example below.
  4794. #+TITLE: the title to be shown (default is the buffer name)
  4795. #+AUTHOR: the author (default taken from `user-full-name')
  4796. #+DATE: A date, fixed, of a format string for `format-time-string'
  4797. #+EMAIL: his/her email address (default from `user-mail-address')
  4798. #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
  4799. #+TEXT: Some descriptive text to be inserted at the beginning.
  4800. #+TEXT: Several lines may be given.
  4801. #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t ...
  4802. The OPTIONS line is a compact form to specify export settings. Here
  4803. you can:
  4804. H: set the number of headline levels for export
  4805. num: turn on/off section-numbers
  4806. toc: turn on/off table of contents, or set level limit (integer)
  4807. \n: turn on/off linebreak-preservation
  4808. @: turn on/off quoted HTML tags
  4809. :: turn on/off fixed-width sections
  4810. |: turn on/off tables
  4811. ^: turn on/off TeX-like syntax for sub- and superscripts. If
  4812. you write "^:{}", `a_{b}' will be interpreted, but
  4813. the simple `a_b' will be left as it is.
  4814. -: turn on/off conversion of special strings.
  4815. f: turn on/off foototes like this[1].
  4816. *: turn on/off emphasized text (bold, italic, underlined)
  4817. TeX: turn on/off simple TeX macros in plain text
  4818. LaTeX: turn on/off LaTeX fragments
  4819. skip: turn on/off skipping the text before the first heading
  4820. author: turn on/off inclusion of author name/email into exported file
  4821. timestamp: turn on/off inclusion creation time into exported file
  4822. d: turn on/off inclusion of drawers
  4823. These options take effect in both the HTML and LaTeX export, except
  4824. for `TeX' and `LaTeX', which are respectively `t' and `nil' for the
  4825. LaTeX export.
  4826. 
  4827. File: org, Node: Publishing, Next: Miscellaneous, Prev: Exporting, Up: Top
  4828. 13 Publishing
  4829. *************
  4830. Org-mode includes(1) a publishing management system that allows you to
  4831. configure automatic HTML conversion of _projects_ composed of
  4832. interlinked org files. This system is called _org-publish_. You can
  4833. also configure org-publish to automatically upload your exported HTML
  4834. pages and related attachments, such as images and source code files, to
  4835. a web server. Org-publish turns org-mode into a web-site authoring tool.
  4836. You can also use Org-publish to convert files into LaTeX, or even
  4837. combine HTML and LaTeX conversion so that files are available in both
  4838. formats on the server(2).
  4839. Org-publish has been contributed to Org-mode by David O'Toole.
  4840. * Menu:
  4841. * Configuration:: Defining projects
  4842. * Sample configuration:: Example projects
  4843. * Triggering publication:: Publication commands
  4844. ---------- Footnotes ----------
  4845. (1) `org-publish.el' is not distributed with Emacs 21, if you are
  4846. still using Emacs 21, you need you need to download this file
  4847. separately.
  4848. (2) Since LaTeX files on a server are not that helpful, you surely
  4849. want to perform further conversion on them - e.g. convert them to `PDF'
  4850. format.
  4851. 
  4852. File: org, Node: Configuration, Next: Sample configuration, Prev: Publishing, Up: Publishing
  4853. 13.1 Configuration
  4854. ==================
  4855. Publishing needs significant configuration to specify files, destination
  4856. and many other properties of a project.
  4857. * Menu:
  4858. * Project alist:: The central configuration variable
  4859. * Sources and destinations:: From here to there
  4860. * Selecting files:: What files are part of the project?
  4861. * Publishing action:: Setting the function doing the publishing
  4862. * Publishing options:: Tweaking HTML export
  4863. * Publishing links:: Which links keep working after publishing?
  4864. * Project page index:: Publishing a list of project files
  4865. 
  4866. File: org, Node: Project alist, Next: Sources and destinations, Prev: Configuration, Up: Configuration
  4867. 13.1.1 The variable `org-publish-project-alist'
  4868. -----------------------------------------------
  4869. Org-publish is configured almost entirely through setting the value of
  4870. one variable, called `org-publish-project-alist'. Each element of the
  4871. list configures one project, and may be in one of the two following
  4872. forms:
  4873. ("project-name" :property value :property value ...)
  4874. or
  4875. ("project-name" :components ("project-name" "project-name" ...))
  4876. In both cases, projects are configured by specifying property values.
  4877. A project defines the set of files that will be published, as well as
  4878. the publishing configuration to use when publishing those files. When
  4879. a project takes the second form listed above, the individual members of
  4880. the "components" property are taken to be components of the project,
  4881. which group together files requiring different publishing options. When
  4882. you publish such a "meta-project" all the components will also publish.
  4883. 
  4884. File: org, Node: Sources and destinations, Next: Selecting files, Prev: Project alist, Up: Configuration
  4885. 13.1.2 Sources and destinations for files
  4886. -----------------------------------------
  4887. Most properties are optional, but some should always be set. In
  4888. particular, org-publish needs to know where to look for source files,
  4889. and where to put published files.
  4890. `:base-directory' Directory containing publishing source files
  4891. `:publishing-directory'Directory (possibly remote) where output files
  4892. will be published.
  4893. `:preparation-function'Function called before starting publishing
  4894. process, for example to run `make' for updating
  4895. files to be published.
  4896. 
  4897. File: org, Node: Selecting files, Next: Publishing action, Prev: Sources and destinations, Up: Configuration
  4898. 13.1.3 Selecting files
  4899. ----------------------
  4900. By default, all files with extension `.org' in the base directory are
  4901. considered part of the project. This can be modified by setting the
  4902. properties
  4903. `:base-extension' Extension (without the dot!) of source files. This
  4904. actually is a regular expression.
  4905. `:exclude' Regular expression to match file names that should
  4906. not be published, even though they have been selected
  4907. on the basis of their extension.
  4908. `:include' List of files to be included regardless of
  4909. `:base-extension' and `:exclude'.
  4910. 
  4911. File: org, Node: Publishing action, Next: Publishing options, Prev: Selecting files, Up: Configuration
  4912. 13.1.4 Publishing Action
  4913. ------------------------
  4914. Publishing means that a file is copied to the destination directory and
  4915. possibly transformed in the process. The default transformation is to
  4916. export Org-mode files as HTML files, and this is done by the function
  4917. `org-publish-org-to-html' which calls the HTML exporter (*note HTML
  4918. export::). But you also can publish your files in LaTeX by using the
  4919. function `org-publish-org-to-latex' instead. Other files like images
  4920. only need to be copied to the publishing destination. For non-Org-mode
  4921. files, you need to specify the publishing function.
  4922. `:publishing-function' Function executing the publication of a file.
  4923. This may also be a list of functions, which will
  4924. all be called in turn.
  4925. The function must accept two arguments: a property list containing at
  4926. least a `:publishing-directory' property, and the name of the file to
  4927. be published. It should take the specified file, make the necessary
  4928. transformation (if any) and place the result into the destination
  4929. folder. You can write your own publishing function, but `org-publish'
  4930. provides one for attachments (files that only need to be copied):
  4931. `org-publish-attachment'.
  4932. 
  4933. File: org, Node: Publishing options, Next: Publishing links, Prev: Publishing action, Up: Configuration
  4934. 13.1.5 Options for the HTML/LaTeX exporters
  4935. -------------------------------------------
  4936. The property list can be used to set many export options for the HTML
  4937. and LaTeX exporters. In most cases, these properties correspond to user
  4938. variables in Org-mode. The table below lists these properties along
  4939. with the variable they belong to. See the documentation string for the
  4940. respective variable for details.
  4941. `:language' `org-export-default-language'
  4942. `:headline-levels' `org-export-headline-levels'
  4943. `:section-numbers' `org-export-with-section-numbers'
  4944. `:table-of-contents' `org-export-with-toc'
  4945. `:archived-trees' `org-export-with-archived-trees'
  4946. `:emphasize' `org-export-with-emphasize'
  4947. `:sub-superscript' `org-export-with-sub-superscripts'
  4948. `:special-strings' `org-export-with-special-strings'
  4949. `:TeX-macros' `org-export-with-TeX-macros'
  4950. `:LaTeX-fragments' `org-export-with-LaTeX-fragments'
  4951. `:fixed-width' `org-export-with-fixed-width'
  4952. `:timestamps' `org-export-with-timestamps'
  4953. .
  4954. `:tags' `org-export-with-tags'
  4955. .
  4956. `:tables' `org-export-with-tables'
  4957. `:table-auto-headline' `org-export-highlight-first-table-line'
  4958. `:style' `org-export-html-style'
  4959. `:convert-org-links' `org-export-html-link-org-files-as-html'
  4960. `:inline-images' `org-export-html-inline-images'
  4961. `:expand-quoted-html' `org-export-html-expand'
  4962. `:timestamp' `org-export-html-with-timestamp'
  4963. `:publishing-directory'`org-export-publishing-directory'
  4964. `:preamble' `org-export-html-preamble'
  4965. `:postamble' `org-export-html-postamble'
  4966. `:auto-preamble' `org-export-html-auto-preamble'
  4967. `:auto-postamble' `org-export-html-auto-postamble'
  4968. `:author' `user-full-name'
  4969. `:email' `user-mail-address'
  4970. If you use several email addresses, separate them by a semi-column.
  4971. Most of the `org-export-with-*' variables have the same effect in
  4972. both HTML and LaTeX exporters, except for `:TeX-macros' and
  4973. `:LaTeX-fragments', respectively `nil' and `t' in the LaTeX export.
  4974. When a property is given a value in `org-publish-project-alist', its
  4975. setting overrides the value of the corresponding user variable (if any)
  4976. during publishing. Options set within a file (*note Export options::),
  4977. however, override everything.
  4978. 
  4979. File: org, Node: Publishing links, Next: Project page index, Prev: Publishing options, Up: Configuration
  4980. 13.1.6 Links between published files
  4981. ------------------------------------
  4982. To create a link from one Org-mode file to another, you would use
  4983. something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
  4984. (*note Hyperlinks::). Upon publishing this link becomes a link to
  4985. `foo.html'. In this way, you can interlink the pages of your "org web"
  4986. project and the links will work as expected when you publish them to
  4987. HTML.
  4988. You may also link to related files, such as images. Provided you are
  4989. careful with relative pathnames, and provided you have also configured
  4990. `org-publish' to upload the related files, these links will work too.
  4991. *Note Complex example:: for an example of this usage.
  4992. Sometime an Org-mode file to be published may contain links that are
  4993. only valid in your production environment, but not in the publishing
  4994. location. In this case, use the property
  4995. `:link-validation-function' Function to validate links
  4996. to define a function for checking link validity. This function must
  4997. accept two arguments, the file name and a directory relative to which
  4998. the file name is interpreted in the production environment. If this
  4999. function returns `nil', then the HTML generator will only insert a
  5000. description into the HTML file, but no link. One option for this
  5001. function is `org-publish-validate-link' which checks if the given file
  5002. is part of any project in `org-publish-project-alist'.
  5003. 
  5004. File: org, Node: Project page index, Prev: Publishing links, Up: Configuration
  5005. 13.1.7 Project page index
  5006. -------------------------
  5007. The following properties may be used to control publishing of an index
  5008. of files or summary page for a given project.
  5009. `:auto-index' When non-nil, publish an index during
  5010. org-publish-current-project or org-publish-all.
  5011. `:index-filename' Filename for output of index. Defaults to `index.org'
  5012. (which becomes `index.html').
  5013. `:index-title' Title of index page. Defaults to name of file.
  5014. `:index-function' Plugin function to use for generation of index.
  5015. Defaults to `org-publish-org-index', which generates
  5016. a plain list of links to all files in the project.
  5017. 
  5018. File: org, Node: Sample configuration, Next: Triggering publication, Prev: Configuration, Up: Publishing
  5019. 13.2 Sample configuration
  5020. =========================
  5021. Below we provide two example configurations. The first one is a simple
  5022. project publishing only a set of Org-mode files. The second example is
  5023. more complex, with a multi-component project.
  5024. * Menu:
  5025. * Simple example:: One-component publishing
  5026. * Complex example:: A multi-component publishing example
  5027. 
  5028. File: org, Node: Simple example, Next: Complex example, Prev: Sample configuration, Up: Sample configuration
  5029. 13.2.1 Example: simple publishing configuration
  5030. -----------------------------------------------
  5031. This example publishes a set of Org-mode files to the `public_html'
  5032. directory on the local machine.
  5033. (setq org-publish-project-alist
  5034. '(("org"
  5035. :base-directory "~/org/"
  5036. :publishing-directory "~/public_html"
  5037. :section-numbers nil
  5038. :table-of-contents nil
  5039. :style "<link rel=stylesheet
  5040. href=\"../other/mystyle.css\"
  5041. type=\"text/css\">")))
  5042. 
  5043. File: org, Node: Complex example, Prev: Simple example, Up: Sample configuration
  5044. 13.2.2 Example: complex publishing configuration
  5045. ------------------------------------------------
  5046. This more complicated example publishes an entire website, including
  5047. org files converted to HTML, image files, emacs lisp source code, and
  5048. stylesheets. The publishing-directory is remote and private files are
  5049. excluded.
  5050. To ensure that links are preserved, care should be taken to replicate
  5051. your directory structure on the web server, and to use relative file
  5052. paths. For example, if your org files are kept in `~/org' and your
  5053. publishable images in `~/images', you'd link to an image with
  5054. file:../images/myimage.png
  5055. On the web server, the relative path to the image should be the
  5056. same. You can accomplish this by setting up an "images" folder in the
  5057. right place on the webserver, and publishing images to it.
  5058. (setq org-publish-project-alist
  5059. '(("orgfiles"
  5060. :base-directory "~/org/"
  5061. :base-extension "org"
  5062. :publishing-directory "/ssh:user@host:~/html/notebook/"
  5063. :publishing-function org-publish-org-to-html
  5064. :exclude "PrivatePage.org" ;; regexp
  5065. :headline-levels 3
  5066. :section-numbers nil
  5067. :table-of-contents nil
  5068. :style "<link rel=stylesheet
  5069. href=\"../other/mystyle.css\" type=\"text/css\">"
  5070. :auto-preamble t
  5071. :auto-postamble nil)
  5072. ("images"
  5073. :base-directory "~/images/"
  5074. :base-extension "jpg\\|gif\\|png"
  5075. :publishing-directory "/ssh:user@host:~/html/images/"
  5076. :publishing-function org-publish-attachment)
  5077. ("other"
  5078. :base-directory "~/other/"
  5079. :base-extension "css\\|el"
  5080. :publishing-directory "/ssh:user@host:~/html/other/"
  5081. :publishing-function org-publish-attachment)
  5082. ("website" :components ("orgfiles" "images" "other"))))
  5083. 
  5084. File: org, Node: Triggering publication, Prev: Sample configuration, Up: Publishing
  5085. 13.3 Triggering publication
  5086. ===========================
  5087. Once org-publish is properly configured, you can publish with the
  5088. following functions:
  5089. `C-c C-e C'
  5090. Prompt for a specific project and publish all files that belong to
  5091. it.
  5092. `C-c C-e P'
  5093. Publish the project containing the current file.
  5094. `C-c C-e F'
  5095. Publish only the current file.
  5096. `C-c C-e A'
  5097. Publish all projects.
  5098. Org uses timestamps to track when a file has changed. The above
  5099. functions normally only publish changed files. You can override this and
  5100. force publishing of all files by giving a prefix argument.
  5101. 
  5102. File: org, Node: Miscellaneous, Next: Extensions and Hacking, Prev: Publishing, Up: Top
  5103. 14 Miscellaneous
  5104. ****************
  5105. * Menu:
  5106. * Completion:: M-TAB knows what you need
  5107. * Customization:: Adapting Org-mode to your taste
  5108. * In-buffer settings:: Overview of the #+KEYWORDS
  5109. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  5110. * Clean view:: Getting rid of leading stars in the outline
  5111. * TTY keys:: Using Org-mode on a tty
  5112. * Interaction:: Other Emacs packages
  5113. * Bugs:: Things which do not work perfectly
  5114. 
  5115. File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
  5116. 14.1 Completion
  5117. ===============
  5118. Org-mode supports in-buffer completion. This type of completion does
  5119. not make use of the minibuffer. You simply type a few letters into the
  5120. buffer and use the key to complete text right there.
  5121. `M-<TAB>'
  5122. Complete word at point
  5123. * At the beginning of a headline, complete TODO keywords.
  5124. * After `\', complete TeX symbols supported by the exporter.
  5125. * After `*', complete headlines in the current buffer so that
  5126. they can be used in search links like `[[*find this
  5127. headline]]'.
  5128. * After `:' in a headline, complete tags. The list of tags is
  5129. taken from the variable `org-tag-alist' (possibly set through
  5130. the `#+TAGS' in-buffer option, *note Setting tags::), or it
  5131. is created dynamically from all tags used in the current
  5132. buffer.
  5133. * After `:' and not in a headline, complete property keys. The
  5134. list of keys is constructed dynamically from all keys used in
  5135. the current buffer.
  5136. * After `[', complete link abbreviations (*note Link
  5137. abbreviations::).
  5138. * After `#+', complete the special keywords like `TYP_TODO' or
  5139. `OPTIONS' which set file-specific options for Org-mode. When
  5140. the option keyword is already complete, pressing `M-<TAB>'
  5141. again will insert example settings for this keyword.
  5142. * In the line after `#+STARTUP: ', complete startup keywords,
  5143. i.e. valid keys for this line.
  5144. * Elsewhere, complete dictionary words using ispell.
  5145. 
  5146. File: org, Node: Customization, Next: In-buffer settings, Prev: Completion, Up: Miscellaneous
  5147. 14.2 Customization
  5148. ==================
  5149. There are more than 180 variables that can be used to customize
  5150. Org-mode. For the sake of compactness of the manual, I am not
  5151. describing the variables here. A structured overview of customization
  5152. variables is available with `M-x org-customize'. Or select `Browse Org
  5153. Group' from the `Org->Customization' menu. Many settings can also be
  5154. activated on a per-file basis, by putting special lines into the buffer
  5155. (*note In-buffer settings::).
  5156. 
  5157. File: org, Node: In-buffer settings, Next: The very busy C-c C-c key, Prev: Customization, Up: Miscellaneous
  5158. 14.3 Summary of in-buffer settings
  5159. ==================================
  5160. Org-mode uses special lines in the buffer to define settings on a
  5161. per-file basis. These lines start with a `#+' followed by a keyword, a
  5162. colon, and then individual words defining a setting. Several setting
  5163. words can be in the same line, but you can also have multiple lines for
  5164. the keyword. While these settings are described throughout the manual,
  5165. here is a summary. After changing any of those lines in the buffer,
  5166. press `C-c C-c' with the cursor still in the line to activate the
  5167. changes immediately. Otherwise they become effective only when the
  5168. file is visited again in a new Emacs session.
  5169. `#+ARCHIVE: %s_done::'
  5170. This line sets the archive location for the agenda file. It
  5171. applies for all subsequent lines until the next `#+ARCHIVE' line,
  5172. or the end of the file. The first such line also applies to any
  5173. entries before it. The corresponding variable is
  5174. `org-archive-location'.
  5175. `#+CATEGORY:'
  5176. This line sets the category for the agenda file. The category
  5177. applies for all subsequent lines until the next `#+CATEGORY' line,
  5178. or the end of the file. The first such line also applies to any
  5179. entries before it.
  5180. `#+COLUMNS: %25ITEM .....'
  5181. Set the default format for columns view. This format applies when
  5182. columns view is invoked in location where no COLUMNS property
  5183. applies.
  5184. `#+CONSTANTS: name1=value1 ...'
  5185. Set file-local values for constants to be used in table formulas.
  5186. This line set the local variable
  5187. `org-table-formula-constants-local'. The global version of this
  5188. variable is `org-table-formula-constants'.
  5189. `#+DRAWERS: NAME1 .....'
  5190. Set the file-local set of drawers. The corresponding global
  5191. variable is `org-drawers'.
  5192. `#+LINK: linkword replace'
  5193. These lines (several are allowed) specify link abbreviations.
  5194. *Note Link abbreviations::. The corresponding variable is
  5195. `org-link-abbrev-alist'.
  5196. `#+PRIORITIES: highest lowest default'
  5197. This line sets the limits and the default for the priorities. All
  5198. three must be either letters A-Z or numbers 0-9. The highest
  5199. priority must have a lower ASCII number that the lowest priority.
  5200. `#+PROPERTY: Property_Name Value'
  5201. This line sets a default inheritance value for entries in the
  5202. current buffer, most useful for specifying the allowed values of a
  5203. property.
  5204. `#+STARTUP:'
  5205. This line sets options to be used at startup of Org-mode, when an
  5206. Org-mode file is being visited. The first set of options deals
  5207. with the initial visibility of the outline tree. The
  5208. corresponding variable for global default settings is
  5209. `org-startup-folded', with a default value `t', which means
  5210. `overview'.
  5211. overview top-level headlines only
  5212. content all headlines
  5213. showall no folding at all, show everything
  5214. Then there are options for aligning tables upon visiting a file.
  5215. This is useful in files containing narrowed table columns. The
  5216. corresponding variable is `org-startup-align-all-tables', with a
  5217. default value `nil'.
  5218. align align all tables
  5219. noalign don't align tables on startup
  5220. Logging TODO state changes and clock intervals (variables
  5221. `org-log-done' and `org-log-repeat') can be configured using these
  5222. options.
  5223. logging record a timestamp when an item is marked DONE
  5224. nologging don't record when items are marked DONE
  5225. lognotedone record timestamp and a note when DONE
  5226. lognotestate record timestamp and a note when TODO state changes
  5227. logrepeat record a note when re-instating a repeating item
  5228. nologrepeat do not record when re-instating repeating item
  5229. lognoteclock-out record timestamp and a note when clocking out
  5230. Here are the options for hiding leading stars in outline headings.
  5231. The corresponding variables are `org-hide-leading-stars' and
  5232. `org-odd-levels-only', both with a default setting `nil' (meaning
  5233. `showstars' and `oddeven').
  5234. hidestars make all but one of the stars starting a headline invisible.
  5235. showstars show all stars starting a headline
  5236. odd allow only odd outline levels (1,3,...)
  5237. oddeven allow all outline levels
  5238. To turn on custom format overlays over time stamps (variables
  5239. `org-put-time-stamp-overlays' and
  5240. `org-time-stamp-overlay-formats'), use
  5241. customtime overlay custom time format
  5242. The following options influence the table spreadsheet (variable
  5243. `constants-unit-system').
  5244. constcgs `constants.el' should use the c-g-s unit system
  5245. constSI `constants.el' should use the SI unit system
  5246. `#+TAGS: TAG1(c1) TAG2(c2)'
  5247. These lines (several such lines are allowed) specify the legal
  5248. tags in this file, and (potentially) the corresponding _fast tag
  5249. selection_ keys. The corresponding variable is `org-tag-alist'.
  5250. `#+TBLFM:'
  5251. This line contains the formulas for the table directly above the
  5252. line.
  5253. `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS, #+DATE:'
  5254. These lines provide settings for exporting files. For more
  5255. details see *Note Export options::.
  5256. `#+SEQ_TODO: #+TYP_TODO:'
  5257. These lines set the TODO keywords and their interpretation in the
  5258. current file. The corresponding variables are `org-todo-keywords'
  5259. and `org-todo-interpretation'.
  5260. 
  5261. File: org, Node: The very busy C-c C-c key, Next: Clean view, Prev: In-buffer settings, Up: Miscellaneous
  5262. 14.4 The very busy C-c C-c key
  5263. ==============================
  5264. The key `C-c C-c' has many purposes in org-mode, which are all
  5265. mentioned scattered throughout this manual. One specific function of
  5266. this key is to add _tags_ to a headline (*note Tags::). In many other
  5267. circumstances it means something like _Hey Org-mode, look here and
  5268. update according to what you see here_. Here is a summary of what this
  5269. means in different contexts.
  5270. - If there are highlights in the buffer from the creation of a sparse
  5271. tree, or from clock display, remove these highlights.
  5272. - If the cursor is in one of the special `#+KEYWORD' lines, this
  5273. triggers scanning the buffer for these lines and updating the
  5274. information.
  5275. - If the cursor is inside a table, realign the table. This command
  5276. works even if the automatic table editor has been turned off.
  5277. - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
  5278. entire table.
  5279. - If the cursor is inside a table created by the `table.el' package,
  5280. activate that table.
  5281. - If the current buffer is a remember buffer, close the note and
  5282. file it. With a prefix argument, file it, without further
  5283. interaction, to the default location.
  5284. - If the cursor is on a `<<<target>>>', update radio targets and
  5285. corresponding links in this buffer.
  5286. - If the cursor is in a property line or at the start or end of a
  5287. property drawer, offer property commands.
  5288. - If the cursor is in a plain list item with a checkbox, toggle the
  5289. status of the checkbox.
  5290. - If the cursor is on a numbered item in a plain list, renumber the
  5291. ordered list.
  5292. - If the cursor is on the `#+BEGIN' line of a dynamical block, the
  5293. block is updated.
  5294. 
  5295. File: org, Node: Clean view, Next: TTY keys, Prev: The very busy C-c C-c key, Up: Miscellaneous
  5296. 14.5 A cleaner outline view
  5297. ===========================
  5298. Some people find it noisy and distracting that the Org-mode headlines
  5299. are starting with a potentially large number of stars. For example the
  5300. tree from *Note Headlines:::
  5301. * Top level headline
  5302. ** Second level
  5303. *** 3rd level
  5304. some text
  5305. *** 3rd level
  5306. more text
  5307. * Another top level headline
  5308. Unfortunately this is deeply ingrained into the code of Org-mode and
  5309. cannot be easily changed. You can, however, modify the display in such
  5310. a way that all leading stars become invisible and the outline more easy
  5311. to read. To do this, customize the variable `org-hide-leading-stars'
  5312. like this:
  5313. (setq org-hide-leading-stars t)
  5314. or change this on a per-file basis with one of the lines (anywhere in
  5315. the buffer)
  5316. #+STARTUP: showstars
  5317. #+STARTUP: hidestars
  5318. Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
  5319. modifications.
  5320. With stars hidden, the tree becomes:
  5321. * Top level headline
  5322. * Second level
  5323. * 3rd level
  5324. some text
  5325. * 3rd level
  5326. more text
  5327. * Another top level headline
  5328. Note that the leading stars are not truly replaced by whitespace, they
  5329. are only fontified with the face `org-hide' that uses the background
  5330. color as font color. If you are not using either white or black
  5331. background, you may have to customize this face to get the wanted
  5332. effect. Another possibility is to set this font such that the extra
  5333. stars are almost invisible, for example using the color `grey90' on a
  5334. white background.
  5335. Things become cleaner still if you skip all the even levels and use
  5336. only odd levels 1, 3, 5..., effectively adding two stars to go from one
  5337. outline level to the next:
  5338. * Top level headline
  5339. * Second level
  5340. * 3rd level
  5341. some text
  5342. * 3rd level
  5343. more text
  5344. * Another top level headline
  5345. In order to make the structure editing and export commands handle this
  5346. convention correctly, use
  5347. (setq org-odd-levels-only t)
  5348. or set this on a per-file basis with one of the following lines (don't
  5349. forget to press `C-c C-c' with the cursor in the startup line to
  5350. activate changes immediately).
  5351. #+STARTUP: odd
  5352. #+STARTUP: oddeven
  5353. You can convert an Org-mode file from single-star-per-level to the
  5354. double-star-per-level convention with `M-x org-convert-to-odd-levels
  5355. RET' in that file. The reverse operation is `M-x
  5356. org-convert-to-oddeven-levels'.
  5357. 
  5358. File: org, Node: TTY keys, Next: Interaction, Prev: Clean view, Up: Miscellaneous
  5359. 14.6 Using org-mode on a tty
  5360. ============================
  5361. Org-mode uses a number of keys that are not accessible on a tty. This
  5362. applies to most special keys like cursor keys, <TAB> and <RET>, when
  5363. these are combined with modifier keys like <Meta> and/or <Shift>.
  5364. Org-mode uses these bindings because it needs to provide keys for a
  5365. large number of commands, and because these keys appeared particularly
  5366. easy to remember. In order to still be able to access the core
  5367. functionality of Org-mode on a tty, alternative bindings are provided.
  5368. Here is a complete list of these bindings, which are obviously more
  5369. cumbersome to use. Note that sometimes a work-around can be better.
  5370. For example changing a time stamp is really only fun with `S-<cursor>'
  5371. keys. On a tty you would rather use `C-c .' to re-insert the
  5372. timestamp.
  5373. Default Alternative 1 Alternative 2
  5374. `S-<TAB>' `C-u <TAB>'
  5375. `M-<left>' `C-c C-x l' `<Esc> <left>'
  5376. `M-S-<left>'`C-c C-x L'
  5377. `M-<right>' `C-c C-x r' `<Esc>
  5378. <right>'
  5379. `M-S-<right>'`C-c C-x R'
  5380. `M-<up>' `C-c C-x u' `<Esc> <up>'
  5381. `M-S-<up>' `C-c C-x U'
  5382. `M-<down>' `C-c C-x d' `<Esc> <down>'
  5383. `M-S-<down>'`C-c C-x D'
  5384. `S-<RET>' `C-c C-x c'
  5385. `M-<RET>' `C-c C-x m' `<Esc> <RET>'
  5386. `M-S-<RET>' `C-c C-x M'
  5387. `S-<left>' `C-c <left>'
  5388. `S-<right>' `C-c <right>'
  5389. `S-<up>' `C-c <up>'
  5390. `S-<down>' `C-c <down>'
  5391. `C-S-<left>'`C-c C-x
  5392. <left>'
  5393. `C-S-<right>'`C-c C-x
  5394. <right>'
  5395. 
  5396. File: org, Node: Interaction, Next: Bugs, Prev: TTY keys, Up: Miscellaneous
  5397. 14.7 Interaction with other packages
  5398. ====================================
  5399. Org-mode lives in the world of GNU Emacs and interacts in various ways
  5400. with other code out there.
  5401. * Menu:
  5402. * Cooperation:: Packages Org-mode cooperates with
  5403. * Conflicts:: Packages that lead to conflicts
  5404. 
  5405. File: org, Node: Cooperation, Next: Conflicts, Prev: Interaction, Up: Interaction
  5406. 14.7.1 Packages that Org-mode cooperates with
  5407. ---------------------------------------------
  5408. `calc.el' by Dave Gillespie
  5409. Org-mode uses the calc package for implementing spreadsheet
  5410. functionality in its tables (*note The spreadsheet::). Org-mode
  5411. checks for the availability of calc by looking for the function
  5412. `calc-eval' which should be autoloaded in your setup if calc has
  5413. been installed properly. As of Emacs 22, calc is part of the Emacs
  5414. distribution. Another possibility for interaction between the two
  5415. packages is using calc for embedded calculations. *Note Embedded
  5416. Mode: (calc)Embedded Mode.
  5417. `constants.el' by Carsten Dominik
  5418. In a table formula (*note The spreadsheet::), it is possible to use
  5419. names for natural constants or units. Instead of defining your own
  5420. constants in the variable `org-table-formula-constants', install
  5421. the `constants' package which defines a large number of constants
  5422. and units, and lets you use unit prefixes like `M' for `Mega' etc.
  5423. You will need version 2.0 of this package, available at
  5424. `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
  5425. function `constants-get', which has to be autoloaded in your
  5426. setup. See the installation instructions in the file
  5427. `constants.el'.
  5428. `cdlatex.el' by Carsten Dominik
  5429. Org-mode can make use of the cdlatex package to efficiently enter
  5430. LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
  5431. `imenu.el' by Ake Stenhoff and Lars Lindberg
  5432. Imenu allows menu access to an index of items in a file. Org-mode
  5433. supports imenu - all you need to do to get the index is the
  5434. following:
  5435. (add-hook 'org-mode-hook
  5436. (lambda () 'imenu-add-to-menubar "Imenu"))
  5437. By default the index is two levels deep - you can modify the depth
  5438. using the option `org-imenu-depth'.
  5439. `remember.el' by John Wiegley
  5440. Org mode cooperates with remember, see *Note Remember::.
  5441. `Remember.el' is not part of Emacs, find it on the web.
  5442. `speedbar.el' by Eric M. Ludlam
  5443. Speedbar is a package that creates a special frame displaying
  5444. files and index items in files. Org-mode supports speedbar and
  5445. allows you to drill into Org-mode files directly from the
  5446. speedbar. It also allows to restrict the scope of agenda commands
  5447. to a file or a subtree by using the command `<' in the speedbar
  5448. frame.
  5449. `table.el' by Takaaki Ota
  5450. Complex ASCII tables with automatic line wrapping, column- and
  5451. row-spanning, and alignment can be created using the Emacs table
  5452. package by Takaaki Ota (`http://sourceforge.net/projects/table',
  5453. and also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in
  5454. such a table, Org-mode will call `table-recognize-table' and move
  5455. the cursor into the table. Inside a table, the keymap of Org-mode
  5456. is inactive. In order to execute Org-mode-related commands, leave
  5457. the table.
  5458. `C-c C-c'
  5459. Recognize `table.el' table. Works when the cursor is in a
  5460. table.el table.
  5461. `C-c ~'
  5462. Insert a table.el table. If there is already a table at
  5463. point, this command converts it between the table.el format
  5464. and the Org-mode format. See the documentation string of the
  5465. command `org-convert-table' for the restrictions under which
  5466. this is possible.
  5467. `table.el' is part of Emacs 22.
  5468. `footnote.el' by Steven L. Baur
  5469. Org-mode recognizes numerical footnotes as provided by this package
  5470. (*note Footnotes::).
  5471. 
  5472. File: org, Node: Conflicts, Prev: Cooperation, Up: Interaction
  5473. 14.7.2 Packages that lead to conflicts with Org-mode
  5474. ----------------------------------------------------
  5475. `allout.el' by Ken Manheimer
  5476. Startup of Org-mode may fail with the error message
  5477. `(wrong-type-argument keymapp nil)' when there is an outdated
  5478. version `allout.el' on the load path, for example the version
  5479. distributed with Emacs 21.x. Upgrade to Emacs 22 and this problem
  5480. will disappear. If for some reason you cannot do this, make sure
  5481. that org.el is loaded _before_ `allout.el', for example by putting
  5482. `(require 'org)' early enough into your `.emacs' file.
  5483. `CUA.el' by Kim. F. Storm
  5484. Keybindings in Org-mode conflict with the `S-<cursor>' keys used by
  5485. CUA-mode (as well as pc-select-mode and s-region-mode) to select
  5486. and extend the region. If you want to use one of these packages
  5487. along with Org-mode, configure the variable
  5488. `org-replace-disputed-keys'. When set, Org-mode will move the
  5489. following keybindings in Org-mode files, and in the agenda buffer
  5490. (but not during date selection).
  5491. S-UP -> M-p S-DOWN -> M-n
  5492. S-LEFT -> M-- S-RIGHT -> M-+
  5493. Yes, these are unfortunately more difficult to remember. If you
  5494. want to have other replacement keys, look at the variable
  5495. `org-disputed-keys'.
  5496. `windmove.el' by Hovav Shacham
  5497. Also this package uses the `S-<cursor>' keys, so everything written
  5498. in the paragraph above about CUA mode also applies here.
  5499. `footnote.el' by Steven L. Baur
  5500. Org-mode supports the syntax of the footnote package, but only the
  5501. numerical footnote markers. Also, the default key for footnote
  5502. commands, `C-c !' is already used by Org-mode. You could use the
  5503. variable `footnote-prefix' to switch footnotes commands to another
  5504. key. Or, you could use `org-replace-disputed-keys' and
  5505. `org-disputed-keys' to change the settings in Org-mode.
  5506. 
  5507. File: org, Node: Bugs, Prev: Interaction, Up: Miscellaneous
  5508. 14.8 Bugs
  5509. =========
  5510. Here is a list of things that should work differently, but which I have
  5511. found too hard to fix.
  5512. * If a table field starts with a link, and if the corresponding table
  5513. column is narrowed (*note Narrow columns::) to a width too small to
  5514. display the link, the field would look entirely empty even though
  5515. it is not. To prevent this, Org-mode throws an error. The
  5516. work-around is to make the column wide enough to fit the link, or
  5517. to add some text (at least 2 characters) before the link in the
  5518. same field.
  5519. * Narrowing table columns does not work on XEmacs, because the
  5520. `format' function does not transport text properties.
  5521. * Text in an entry protected with the `QUOTE' keyword should not
  5522. autowrap.
  5523. * When the application called by `C-c C-o' to open a file link fails
  5524. (for example because the application does not exist or refuses to
  5525. open the file), it does so silently. No error message is
  5526. displayed.
  5527. * Recalculating a table line applies the formulas from left to right.
  5528. If a formula uses _calculated_ fields further down the row,
  5529. multiple recalculation may be needed to get all fields consistent.
  5530. You may use the command `org-table-iterate' (`C-u C-c *') to
  5531. recalculate until convergence.
  5532. * A single letter cannot be made bold, for example `*a*'.
  5533. * The exporters work well, but could be made more efficient.
  5534. 
  5535. File: org, Node: Extensions and Hacking, Next: History and Acknowledgments, Prev: Miscellaneous, Up: Top
  5536. Appendix A Extensions, Hooks and Hacking
  5537. ****************************************
  5538. This appendix lists extensions for Org-mode written by other authors.
  5539. It also covers some aspects where users can extend the functionality of
  5540. Org-mode.
  5541. * Menu:
  5542. * Extensions:: Existing 3rd-part extensions
  5543. * Adding hyperlink types:: New custom link types
  5544. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  5545. * Dynamic blocks:: Automatically filled blocks
  5546. * Special agenda views:: Customized views
  5547. * Using the property API:: Writing programs that use entry properties
  5548. 
  5549. File: org, Node: Extensions, Next: Adding hyperlink types, Prev: Extensions and Hacking, Up: Extensions and Hacking
  5550. A.1 Third-party extensions for Org-mode
  5551. =======================================
  5552. The following extensions for Org-mode have been written by other people:
  5553. `org-publish.el' by David O'Toole
  5554. This package provides facilities for publishing related sets of
  5555. Org-mode files together with linked files like images as webpages.
  5556. It is highly configurable and can be used for other publishing
  5557. purposes as well. As of Org-mode version 4.30, `org-publish.el'
  5558. is part of the Org-mode distribution. It is not yet part of
  5559. Emacs, however, a delay caused by the preparations for the 22.1
  5560. release. In the mean time, `org-publish.el' can be downloaded
  5561. from David's site: `http://dto.freeshell.org/e/org-publish.el'.
  5562. `org-mouse.el' by Piotr Zielinski
  5563. This package implements extended mouse functionality for Org-mode.
  5564. It allows you to cycle visibility and to edit the document
  5565. structure with the mouse. Best of all, it provides a
  5566. context-sensitive menu on <mouse-3> that changes depending on the
  5567. context of a mouse-click. As of Org-mode version 4.53,
  5568. `org-mouse.el' is part of the Org-mode distribution. It is not
  5569. yet part of Emacs, however, a delay caused by the preparations for
  5570. the 22.1 release. In the mean time, `org-mouse.el' can be
  5571. downloaded from Piotr's site:
  5572. `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.
  5573. `org-blog.el' by David O'Toole
  5574. A blogging plug-in for `org-publish.el'.
  5575. `http://dto.freeshell.org/notebook/OrgMode.html'.
  5576. `blorg.el' by Bastien Guerry
  5577. Publish Org-mode files as blogs.
  5578. `http://www.cognition.ens.fr/~guerry/blorg.html'.
  5579. `org2rem.el' by Bastien Guerry
  5580. Translates Org-mode files into something readable by Remind.
  5581. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5582. `org-toc.el' by Bastien Guerry
  5583. Produces a simple table of contents of an Org-mode file, for easy
  5584. navigation. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5585. `org-registry.el' by Bastien Guerry
  5586. Find which Org-file link to a certain document.
  5587. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5588. 
  5589. File: org, Node: Adding hyperlink types, Next: Tables in arbitrary syntax, Prev: Extensions, Up: Extensions and Hacking
  5590. A.2 Adding hyperlink types
  5591. ==========================
  5592. Org-mode has a large number of hyperlink types built-in (*note
  5593. Hyperlinks::). If you would like to add new link types, it provides an
  5594. interface for doing so. Lets look at an example file `org-man.el' that
  5595. will add support for creating links like `[[man:printf][The printf
  5596. manpage]]' to show unix manual pages inside emacs:
  5597. ;;; org-man.el - Support for links to manpages in Org-mode
  5598. (require 'org)
  5599. (org-add-link-type "man" 'org-man-open)
  5600. (add-hook 'org-store-link-functions 'org-man-store-link)
  5601. (defcustom org-man-command 'man
  5602. "The Emacs command to be used to display a man page."
  5603. :group 'org-link
  5604. :type '(choice (const man) (const woman)))
  5605. (defun org-man-open (path)
  5606. "Visit the manpage on PATH.
  5607. PATH should be a topic that can be thrown at the man command."
  5608. (funcall org-man-command path))
  5609. (defun org-man-store-link ()
  5610. "Store a link to a manpage."
  5611. (when (memq major-mode '(Man-mode woman-mode))
  5612. ;; This is a man page, we do make this link
  5613. (let* ((page (org-man-get-page-name))
  5614. (link (concat "man:" page))
  5615. (description (format "Manpage for %s" page)))
  5616. (org-store-link-props
  5617. :type "man"
  5618. :link link
  5619. :description description))))
  5620. (defun org-man-get-page-name ()
  5621. "Extract the page name from the buffer name."
  5622. ;; This works for both `Man-mode' and `woman-mode'.
  5623. (if (string-match " \\(\\S-+\\)\\*" (buffer-name))
  5624. (match-string 1 (buffer-name))
  5625. (error "Cannot create link to this man page")))
  5626. (provide 'org-man)
  5627. ;;; org-man.el ends here
  5628. You would activate this new link type in `.emacs' with
  5629. (require 'org-man)
  5630. Lets go through the file and see what it does.
  5631. 1. It does `(require 'org)' to make sure that `org.el' has been
  5632. loaded.
  5633. 2. The next line calls `org-add-link-type' to define a new link type
  5634. with prefix `man'. The call also contains the name of a function
  5635. that will be called to follow such a link.
  5636. 3. The next line adds a function to `org-store-link-functions', in
  5637. order to allow the command `C-c l' to record a useful link in a
  5638. buffer displaying a man page.
  5639. The rest of the file defines the necessary variables and functions.
  5640. First there is a customization variable that determines which emacs
  5641. command should be used to display manpages. There are two options,
  5642. `man' and `woman'. Then the function to follow a link is defined. It
  5643. gets the link path as an argument - in this case the link path is just
  5644. a topic for the manual command. The function calls the value of
  5645. `org-man-command' to display the man page.
  5646. Finally the function `org-man-store-link' is defined. When you try
  5647. to store a link with `C-c l', also this function will be called to try
  5648. to make a link. The function must first decide if it is supposed to
  5649. create the link for this buffer type, we do this by checking the value
  5650. of the variable `major-mode'. If not, the function must exit and
  5651. retunr the value `nil'. If yes, the link is created by getting the
  5652. manual tpoic from the buffer name and prefixing it with the string
  5653. `man:'. Then it must call the command `org-store-link-props' and set
  5654. the `:type' and `:link' properties. Optionally you can also set the
  5655. `:description' property to provide a default for the link description
  5656. when the link is later inserted into tan Org-mode buffer with `C-c C-l'.
  5657. 
  5658. File: org, Node: Tables in arbitrary syntax, Next: Dynamic blocks, Prev: Adding hyperlink types, Up: Extensions and Hacking
  5659. A.3 Tables and Lists in arbitrary syntax
  5660. ========================================
  5661. Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
  5662. frequent feature request has been to make it work with native tables in
  5663. specific languages, for example LaTeX. However, this is extremely hard
  5664. to do in a general way, would lead to a customization nightmare, and
  5665. would take away much of the simplicity of the Orgtbl-mode table editor.
  5666. This appendix describes a different approach. We keep the
  5667. Orgtbl-mode table in its native format (the source table), and use a
  5668. custom function to translate the table to the correct syntax, and to
  5669. install it in the right location (the target table). This puts the
  5670. burden of writing conversion functions on the user, but it allows for a
  5671. very flexible system.
  5672. Bastien added the ability to do the same with lists. You can use
  5673. Org's facilities to edit and structure lists by turning `orgstruct-mode'
  5674. on, then locally exporting such lists in another format (HTML, LaTeX or
  5675. TeXInfo.)
  5676. * Menu:
  5677. * Radio tables:: Sending and receiving
  5678. * A LaTeX example:: Step by step, almost a tutorial
  5679. * Translator functions:: Copy and modify
  5680. * Radio lists:: Doing the same for lists.
  5681. 
  5682. File: org, Node: Radio tables, Next: A LaTeX example, Prev: Tables in arbitrary syntax, Up: Tables in arbitrary syntax
  5683. A.3.1 Radio tables
  5684. ------------------
  5685. To define the location of the target table, you first need to create two
  5686. lines that are comments in the current mode, but contain magic words for
  5687. Orgtbl-mode to find. Orgtbl-mode will insert the translated table
  5688. between these lines, replacing whatever was there before. For example:
  5689. /* BEGIN RECEIVE ORGTBL table_name */
  5690. /* END RECEIVE ORGTBL table_name */
  5691. Just above the source table, we put a special line that tells
  5692. Orgtbl-mode how to translate this table and where to install it. For
  5693. example:
  5694. #+ORGTBL: SEND table_name translation_function arguments....
  5695. `table_name' is the reference name for the table that is also used in
  5696. the receiver lines. `translation_function' is the Lisp function that
  5697. does the translation. Furthermore, the line can contain a list of
  5698. arguments (alternating key and value) at the end. The arguments will be
  5699. passed as a property list to the translation function for
  5700. interpretation. A few standard parameters are already recognized and
  5701. acted upon before the translation function is called:
  5702. `:skip N'
  5703. Skip the first N lines of the table. Hlines do count!
  5704. `:skipcols (n1 n2 ...)'
  5705. List of columns that should be skipped. If the table has a column
  5706. with calculation marks, that column is automatically discarded as
  5707. well. Please note that the translator function sees the table
  5708. _after_ the removal of these columns, the function never knows
  5709. that there have been additional columns.
  5710. The one problem remaining is how to keep the source table in the buffer
  5711. without disturbing the normal workings of the file, for example during
  5712. compilation of a C file or processing of a LaTeX file. There are a
  5713. number of different solutions:
  5714. * The table could be placed in a block comment if that is supported
  5715. by the language. For example, in C-mode you could wrap the table
  5716. between `/*' and `*/' lines.
  5717. * Sometimes it is possible to put the table after some kind of END
  5718. statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
  5719. * You can just comment the table line by line whenever you want to
  5720. process the file, and uncomment it whenever you need to edit the
  5721. table. This only sounds tedious - the command `M-x
  5722. orgtbl-toggle-comment' does make this comment-toggling very easy,
  5723. in particular if you bind it to a key.
  5724. 
  5725. File: org, Node: A LaTeX example, Next: Translator functions, Prev: Radio tables, Up: Tables in arbitrary syntax
  5726. A.3.2 A LaTeX example of radio tables
  5727. -------------------------------------
  5728. The best way to wrap the source table in LaTeX is to use the `comment'
  5729. environment provided by `comment.sty'. It has to be activated by
  5730. placing `\usepackage{comment}' into the document header. Orgtbl-mode
  5731. can insert a radio table skeleton(1) with the command `M-x
  5732. orgtbl-insert-radio-table'. You will be prompted for a table name,
  5733. lets say we use `salesfigures'. You will then get the following
  5734. template:
  5735. % BEGIN RECEIVE ORGTBL salesfigures
  5736. % END RECEIVE ORGTBL salesfigures
  5737. \begin{comment}
  5738. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  5739. | | |
  5740. \end{comment}
  5741. The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
  5742. `orgtbl-to-latex' to convert the table into LaTeX and to put it into
  5743. the receiver location with name `salesfigures'. You may now fill in
  5744. the table, feel free to use the spreadsheet features(2):
  5745. % BEGIN RECEIVE ORGTBL salesfigures
  5746. % END RECEIVE ORGTBL salesfigures
  5747. \begin{comment}
  5748. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  5749. | Month | Days | Nr sold | per day |
  5750. |-------+------+---------+---------|
  5751. | Jan | 23 | 55 | 2.4 |
  5752. | Feb | 21 | 16 | 0.8 |
  5753. | March | 22 | 278 | 12.6 |
  5754. #+TBLFM: $4=$3/$2;%.1f
  5755. % $ (optional extra dollar to keep font-lock happy, see footnote)
  5756. \end{comment}
  5757. When you are done, press `C-c C-c' in the table to get the converted
  5758. table inserted between the two marker lines.
  5759. Now lets assume you want to make the table header by hand, because
  5760. you want to control how columns are aligned etc. In this case we make
  5761. sure that the table translator does skip the first 2 lines of the source
  5762. table, and tell the command to work as a splice, i.e. to not produce
  5763. header and footer commands of the target table:
  5764. \begin{tabular}{lrrr}
  5765. Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
  5766. % BEGIN RECEIVE ORGTBL salesfigures
  5767. % END RECEIVE ORGTBL salesfigures
  5768. \end{tabular}
  5769. %
  5770. \begin{comment}
  5771. #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
  5772. | Month | Days | Nr sold | per day |
  5773. |-------+------+---------+---------|
  5774. | Jan | 23 | 55 | 2.4 |
  5775. | Feb | 21 | 16 | 0.8 |
  5776. | March | 22 | 278 | 12.6 |
  5777. #+TBLFM: $4=$3/$2;%.1f
  5778. \end{comment}
  5779. The LaTeX translator function `orgtbl-to-latex' is already part of
  5780. Orgtbl-mode. It uses a `tabular' environment to typeset the table and
  5781. marks horizontal lines with `\hline'. Furthermore, it interprets the
  5782. following parameters:
  5783. `:splice nil/t'
  5784. When set to t, return only table body lines, don't wrap them into a
  5785. tabular environment. Default is nil.
  5786. `:fmt fmt'
  5787. A format to be used to wrap each field, should contain `%s' for the
  5788. original field value. For example, to wrap each field value in
  5789. dollars, you could use `:fmt "$%s$"'. This may also be a property
  5790. list with column numbers and formats. for example `:fmt (2 "$%s$"
  5791. 4 "%s\\%%")'.
  5792. `:efmt efmt'
  5793. Use this format to print numbers with exponentials. The format
  5794. should have `%s' twice for inserting mantissa and exponent, for
  5795. example `"%s\\times10^{%s}"'. The default is `"%s\\,(%s)"'. This
  5796. may also be a property list with column numbers and formats, for
  5797. example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
  5798. After `efmt' has been applied to a value, `fmt' will also be
  5799. applied.
  5800. ---------- Footnotes ----------
  5801. (1) By default this works only for LaTeX, HTML, and TeXInfo.
  5802. Configure the variable `orgtbl-radio-tables' to install templates for
  5803. other modes.
  5804. (2) If the `#+TBLFM' line contains an odd number of dollar
  5805. characters, this may cause problems with font-lock in latex-mode. As
  5806. shown in the example you can fix this by adding an extra line inside the
  5807. `comment' environment that is used to balance the dollar expressions.
  5808. If you are using AUCTeX with the font-latex library, a much better
  5809. solution is to add the `comment' environment to the variable
  5810. `LaTeX-verbatim-environments'.
  5811. 
  5812. File: org, Node: Translator functions, Next: Radio lists, Prev: A LaTeX example, Up: Tables in arbitrary syntax
  5813. A.3.3 Translator functions
  5814. --------------------------
  5815. Orgtbl-mode has several translator functions built-in:
  5816. `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'. Except
  5817. for `orgtbl-to-html'(1), these all use a generic translator,
  5818. `orgtbl-to-generic'. For example, `orgtbl-to-latex' itself is a very
  5819. short function that computes the column definitions for the `tabular'
  5820. environment, defines a few field and line separators and then hands
  5821. over to the generic translator. Here is the entire code:
  5822. (defun orgtbl-to-latex (table params)
  5823. "Convert the orgtbl-mode TABLE to LaTeX."
  5824. (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
  5825. org-table-last-alignment ""))
  5826. (params2
  5827. (list
  5828. :tstart (concat "\\begin{tabular}{" alignment "}")
  5829. :tend "\\end{tabular}"
  5830. :lstart "" :lend " \\\\" :sep " & "
  5831. :efmt "%s\\,(%s)" :hline "\\hline")))
  5832. (orgtbl-to-generic table (org-combine-plists params2 params))))
  5833. As you can see, the properties passed into the function (variable
  5834. PARAMS) are combined with the ones newly defined in the function
  5835. (variable PARAMS2). The ones passed into the function (i.e. the ones
  5836. set by the `ORGTBL SEND' line) take precedence. So if you would like
  5837. to use the LaTeX translator, but wanted the line endings to be
  5838. `\\[2mm]' instead of the default `\\', you could just overrule the
  5839. default with
  5840. #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
  5841. For a new language, you can either write your own converter function
  5842. in analogy with the LaTeX translator, or you can use the generic
  5843. function directly. For example, if you have a language where a table
  5844. is started with `!BTBL!', ended with `!ETBL!', and where table lines are
  5845. started with `!BL!', ended with `!EL!' and where the field separator is
  5846. a TAB, you could call the generic translator like this (on a single
  5847. line!):
  5848. #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
  5849. :lstart "!BL! " :lend " !EL!" :sep "\t"
  5850. Please check the documentation string of the function
  5851. `orgtbl-to-generic' for a full list of parameters understood by that
  5852. function and remember that you can pass each of them into
  5853. `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
  5854. the generic function.
  5855. Of course you can also write a completely new function doing
  5856. complicated things the generic translator cannot do. A translator
  5857. function takes two arguments. The first argument is the table, a list
  5858. of lines, each line either the symbol `hline' or a list of fields. The
  5859. second argument is the property list containing all parameters
  5860. specified in the `#+ORGTBL: SEND' line. The function must return a
  5861. single string containing the formatted table. If you write a generally
  5862. useful translator, please post it on `emacs-orgmode@gnu.org' so that
  5863. others can benefit from your work.
  5864. ---------- Footnotes ----------
  5865. (1) The HTML translator uses the same code that produces tables
  5866. during HTML export.
  5867. 
  5868. File: org, Node: Radio lists, Prev: Translator functions, Up: Tables in arbitrary syntax
  5869. A.3.4 Radio lists
  5870. -----------------
  5871. Sending and receiving radio lists works exactly the same way than
  5872. sending and receiving radio tables (*note Radio tables::) (1). As for
  5873. radio tables, you can insert radio lists templates in HTML, LaTeX and
  5874. TeXInfo modes by calling `org-list-insert-radio-list'.
  5875. Here are the differences with radio tables:
  5876. - Use `ORGLST' instead of `ORGTBL'.
  5877. - The available translation functions for radio lists don't take
  5878. parameters.
  5879. - `C-c C-c' will work when pressed on the first item of the list.
  5880. Here is a LaTeX example. Let's say that you have this in your LaTeX
  5881. file:
  5882. % BEGIN RECEIVE ORGLST to-buy
  5883. % END RECEIVE ORGLST to-buy
  5884. \begin{comment}
  5885. #+ORGLIST: SEND to-buy orgtbl-to-latex
  5886. - a new house
  5887. - a new computer
  5888. + a new keyboard
  5889. + a new mouse
  5890. - a new life
  5891. \end{comment}
  5892. Pressing `C-c C-c' on `a new house' and will insert the converted
  5893. LaTeX list between the two marker lines.
  5894. ---------- Footnotes ----------
  5895. (1) You need to load the `org-export-latex.el' package to use radio
  5896. lists since the relevant code is there for now.
  5897. 
  5898. File: org, Node: Dynamic blocks, Next: Special agenda views, Prev: Tables in arbitrary syntax, Up: Extensions and Hacking
  5899. A.4 Dynamic blocks
  5900. ==================
  5901. Org-mode documents can contain _dynamic blocks_. These are specially
  5902. marked regions that are updated by some user-written function. A good
  5903. example for such a block is the clock table inserted by the command
  5904. `C-c C-x C-r' (*note Clocking work time::).
  5905. Dynamic block are enclosed by a BEGIN-END structure that assigns a
  5906. name to the block and can also specify parameters for the function
  5907. producing the content of the block.
  5908. #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
  5909. #+END:
  5910. Dynamic blocks are updated with the following commands
  5911. `C-c C-x C-u'
  5912. Update dynamic block at point.
  5913. `C-u C-c C-x C-u'
  5914. Update all dynamic blocks in the current file.
  5915. Updating a dynamic block means to remove all the text between BEGIN
  5916. and END, parse the BEGIN line for parameters and then call the specific
  5917. writer function for this block to insert the new content. For a block
  5918. with name `myblock', the writer function is `org-dblock-write:myblock'
  5919. with as only parameter a property list with the parameters given in the
  5920. begin line. Here is a trivial example of a block that keeps track of
  5921. when the block update function was last run:
  5922. #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
  5923. #+END:
  5924. The corresponding block writer function could look like this:
  5925. (defun org-dblock-write:block-update-time (params)
  5926. (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
  5927. (insert "Last block update at: "
  5928. (format-time-string fmt (current-time)))))
  5929. If you want to make sure that all dynamic blocks are always
  5930. up-to-date, you could add the function `org-update-all-dblocks' to a
  5931. hook, for example `before-save-hook'. `org-update-all-dblocks' is
  5932. written in a way that is does nothing in buffers that are not in
  5933. Org-mode.
  5934. 
  5935. File: org, Node: Special agenda views, Next: Using the property API, Prev: Dynamic blocks, Up: Extensions and Hacking
  5936. A.5 Special Agenda Views
  5937. ========================
  5938. Org-mode provides a special hook that can be used to narrow down the
  5939. selection made by any of the agenda views. You may specify a function
  5940. that is used at each match to verify if the match should indeed be part
  5941. of the agenda view, and if not, how much should be skipped.
  5942. Let's say you want to produce a list of projects that contain a
  5943. WAITING tag anywhere in the project tree. Let's further assume that
  5944. you have marked all tree headings that define a project with the todo
  5945. keyword PROJECT. In this case you would run a todo search for the
  5946. keyword PROJECT, but skip the match unless there is a WAITING tag
  5947. anywhere in the subtree belonging to the project line.
  5948. To achieve this, you must write a function that searches the subtree
  5949. for the tag. If the tag is found, the function must return `nil' to
  5950. indicate that this match should not be skipped. If there is no such
  5951. tag, return the location of the end of the subtree, to indicate that
  5952. search should continue from there.
  5953. (defun my-skip-unless-waiting ()
  5954. "Skip trees that are not waiting"
  5955. (let ((subtree-end (save-excursion (org-end-of-subtree t))))
  5956. (if (re-search-forward ":WAITING:" subtree-end t)
  5957. nil ; tag found, do not skip
  5958. subtree-end))) ; tag not found, continue after end of subtree
  5959. Now you may use this function in an agenda custom command, for
  5960. example like this:
  5961. (org-add-agenda-custom-command
  5962. '("b" todo "PROJECT"
  5963. ((org-agenda-skip-function 'my-org-waiting-projects)
  5964. (org-agenda-overriding-header "Projects waiting for something: "))))
  5965. Note that this also binds `org-agenda-overriding-header' to get a
  5966. meaningful header in the agenda view.
  5967. You may also put a Lisp form into `org-agenda-skip-function'. In
  5968. particular, you may use the functions `org-agenda-skip-entry-if' and
  5969. `org-agenda-skip-subtree-if' in this form, for example:
  5970. `'(org-agenda-skip-entry-if 'scheduled)'
  5971. Skip current entry if it has been scheduled.
  5972. `'(org-agenda-skip-entry-if 'notscheduled)'
  5973. Skip current entry if it has not been scheduled.
  5974. `'(org-agenda-skip-entry-if 'deadline)'
  5975. Skip current entry if it has a deadline.
  5976. `'(org-agenda-skip-entry-if 'scheduled 'deadline)'
  5977. Skip current entry if it has a deadline, or if it is scheduled.
  5978. `'(org-agenda-skip-entry 'regexp "regular expression")'
  5979. Skip current entry if the regular expression matches in the entry.
  5980. `'(org-agenda-skip-entry 'notregexp "regular expression")'
  5981. Skip current entry unless the regular expression matches.
  5982. `'(org-agenda-skip-subtree-if 'regexp "regular expression")'
  5983. Same as above, but check and skip the entire subtree.
  5984. Therefore we could also have written the search for WAITING projects
  5985. like this, even without defining a special function:
  5986. (org-add-agenda-custom-command
  5987. '("b" todo "PROJECT"
  5988. ((org-agenda-skip-function '(org-agenda-skip-subtree-if
  5989. 'regexp ":WAITING:"))
  5990. (org-agenda-overriding-header "Projects waiting for something: "))))
  5991. 
  5992. File: org, Node: Using the property API, Prev: Special agenda views, Up: Extensions and Hacking
  5993. A.6 Using the property API
  5994. ==========================
  5995. Here is a description of the functions that can be used to work with
  5996. properties.
  5997. -- Function: org-entry-properties &optional pom which
  5998. Get all properties of the entry at point-or-marker POM. This
  5999. includes the TODO keyword, the tags, time strings for deadline,
  6000. scheduled, and clocking, and any additional properties defined in
  6001. the entry. The return value is an alist, keys may occur multiple
  6002. times if the property key was used several times. POM may also be
  6003. nil, in which case the current entry is used. If WHICH is nil or
  6004. `all', get all properties. If WHICH is `special' or `standard',
  6005. only get that subclass.
  6006. -- Function: org-entry-get pom property &optional inherit
  6007. Get value of PROPERTY for entry at point-or-marker POM. If
  6008. INHERIT is non-nil and the entry does not have the property, then
  6009. also check higher levels of the hierarchy. This function ignores
  6010. the value of `org-use-property-inheritance' and requires the
  6011. explicit INHERIT flag.
  6012. -- Function: org-entry-delete pom property
  6013. Delete the property PROPERTY from entry at point-or-marker POM.
  6014. -- Function: org-entry-put pom property value
  6015. Set PROPERTY to VALUE for entry at point-or-marker POM.
  6016. -- Function: org-buffer-property-keys &optional include-specials
  6017. Get all property keys in the current buffer.
  6018. -- Function: org-insert-property-drawer
  6019. Insert a property drawer at point.
  6020. 
  6021. File: org, Node: History and Acknowledgments, Next: Index, Prev: Extensions and Hacking, Up: Top
  6022. Appendix B History and Acknowledgments
  6023. **************************************
  6024. Org-mode was borne in 2003, out of frustration over the user interface
  6025. of the Emacs outline-mode. I was trying to organize my notes and
  6026. projects, and using Emacs seemed to be the natural way to go. However,
  6027. having to remember eleven different commands with two or three keys per
  6028. command, only to hide and unhide parts of the outline tree, that seemed
  6029. entirely unacceptable to me. Also, when using outlines to take notes, I
  6030. constantly want to restructure the tree, organizing it parallel to my
  6031. thoughts and plans. _Visibility cycling_ and _structure editing_ were
  6032. originally implemented in the package `outline-magic.el', but quickly
  6033. moved to the more general `org.el'. As this environment became
  6034. comfortable for project planning, the next step was adding _TODO
  6035. entries_, basic _time stamps_, and _table support_. These areas
  6036. highlight the two main goals that Org-mode still has today: To create a
  6037. new, outline-based, plain text mode with innovative and intuitive
  6038. editing features, and to incorporate project planning functionality
  6039. directly into a notes file.
  6040. Since the first release, literally thousands of emails to me or on
  6041. `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
  6042. feedback, new ideas, and sometimes patches and add-on code. Many
  6043. thanks to everyone who has helped to improve this package. I am trying
  6044. to keep here a list of the people who had significant influence in
  6045. shaping one or more aspects of Org-mode. The list may not be complete,
  6046. if I have forgotten someone, please accept my apologies and let me know.
  6047. * Russel Adams came up with the idea for drawers.
  6048. * Thomas Baumann contributed the code for links to the MH-E email
  6049. system.
  6050. * Alex Bochannek provided a patch for rounding time stamps.
  6051. * Charles Cave's suggestion sparked the implementation of templates
  6052. for Remember.
  6053. * Pavel Chalmoviansky influenced the agenda treatment of items with
  6054. specified time.
  6055. * Gregory Chernov patched support for lisp forms into table
  6056. calculations and improved XEmacs compatibility, in particular by
  6057. porting `nouline.el' to XEmacs.
  6058. * Sacha Chua suggested to copy some linking code from Planner.
  6059. * Eddward DeVilla proposed and tested checkbox statistics. He also
  6060. came up with the idea of properties, and that there should be an
  6061. API for them.
  6062. * Kees Dullemond used to edit projects lists directly in HTML and so
  6063. inspired some of the early development, including HTML export. He
  6064. also asked for a way to narrow wide table columns.
  6065. * Christian Egli converted the documentation into TeXInfo format,
  6066. patched CSS formatting into the HTML exporter, and inspired the
  6067. agenda.
  6068. * David Emery provided a patch for custom CSS support in exported
  6069. HTML agendas.
  6070. * Nic Ferrier contributed mailcap and XOXO support.
  6071. * John Foerch figured out how to make incremental search show context
  6072. around a match in a hidden outline tree.
  6073. * Niels Giesen had the idea to automatically archive DONE trees.
  6074. * Bastien Guerry wrote the LaTeX exporter and has been prolific with
  6075. patches, ideas, and bug reports.
  6076. * Kai Grossjohann pointed out key-binding conflicts with other
  6077. packages.
  6078. * Scott Jaderholm proposed footnotes, control over whitespace between
  6079. folded entries, and column view for properties.
  6080. * Shidai Liu ("Leo") asked for embedded LaTeX and tested it. He also
  6081. provided frequent feedback and some patches.
  6082. * Jason F. McBrayer suggested agenda export to CSV format.
  6083. * Max Mikhanosha came up with the idea of refiling.
  6084. * Dmitri Minaev sent a patch to set priority limits on a per-file
  6085. basis.
  6086. * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
  6087. happy.
  6088. * Rick Moynihan proposed to allow multiple TODO sequences in a file
  6089. and to be able to quickly restrict the agenda to a subtree.
  6090. * Todd Neal provided patches for links to Info files and elisp forms.
  6091. * Tim O'Callaghan suggested in-file links, search options for general
  6092. file links, and TAGS.
  6093. * Takeshi Okano translated the manual and David O'Toole's tutorial
  6094. into Japanese.
  6095. * Oliver Oppitz suggested multi-state TODO items.
  6096. * Scott Otterson sparked the introduction of descriptive text for
  6097. links, among other things.
  6098. * Pete Phillips helped during the development of the TAGS feature,
  6099. and provided frequent feedback.
  6100. * T.V. Raman reported bugs and suggested improvements.
  6101. * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
  6102. control.
  6103. * Kevin Rogers contributed code to access VM files on remote hosts.
  6104. * Frank Ruell solved the mystery of the `keymapp nil' bug, a
  6105. conflict with `allout.el'.
  6106. * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
  6107. * Philip Rooke created the Org-mode reference card and provided lots
  6108. of feedback.
  6109. * Christian Schlauer proposed angular brackets around links, among
  6110. other things.
  6111. * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
  6112. `organizer-mode.el'.
  6113. * Daniel Sinder came up with the idea of internal archiving by
  6114. locking subtrees.
  6115. * Dale Smith proposed link abbreviations.
  6116. * Adam Spiers asked for global linking commands and inspired the link
  6117. extension system. support mairix.
  6118. * David O'Toole wrote `org-publish.el' and drafted the manual
  6119. chapter about publishing.
  6120. * Ju"rgen Vollmer contributed code generating the table of contents
  6121. in HTML output.
  6122. * Chris Wallace provided a patch implementing the `QUOTE' keyword.
  6123. * David Wainberg suggested archiving, and improvements to the linking
  6124. system.
  6125. * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
  6126. development of Org-mode was fully independent, and both systems are
  6127. really different beasts in their basic ideas and implementation
  6128. details. I later looked at John's code, however, and learned from
  6129. his implementation of (i) links where the link itself is hidden
  6130. and only a description is shown, and (ii) popping up a calendar to
  6131. select a date. John has also contributed a number of great ideas
  6132. directly to Org-mode.
  6133. * Carsten Wimmer suggested some changes and helped fix a bug in
  6134. linking to GNUS.
  6135. * Roland Winkler requested additional keybindings to make Org-mode
  6136. work on a tty.
  6137. * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
  6138. contributed various ideas and code snippets.
  6139. 
  6140. File: org, Node: Index, Next: Key Index, Prev: History and Acknowledgments, Up: Top
  6141. Index
  6142. *****
  6143. �[index�]
  6144. * Menu:
  6145. * abbreviation, links: Link abbreviations. (line 6)
  6146. * acknowledgments: History and Acknowledgments.
  6147. (line 6)
  6148. * action, for publishing: Publishing action. (line 6)
  6149. * activation: Activation. (line 6)
  6150. * active region <1>: Built-in table editor.
  6151. (line 143)
  6152. * active region <2>: HTML Export commands.
  6153. (line 6)
  6154. * active region <3>: Structure editing. (line 74)
  6155. * active region: ASCII export. (line 9)
  6156. * agenda: Weekly/Daily agenda. (line 6)
  6157. * agenda dispatcher: Agenda dispatcher. (line 6)
  6158. * agenda files: Agenda files. (line 6)
  6159. * agenda files, removing buffers: Agenda commands. (line 244)
  6160. * agenda views: Agenda views. (line 6)
  6161. * agenda views, custom: Custom agenda views. (line 6)
  6162. * agenda views, exporting <1>: Exporting Agenda Views.
  6163. (line 6)
  6164. * agenda views, exporting <2>: Agenda commands. (line 233)
  6165. * agenda views, exporting: Exporting Agenda Views.
  6166. (line 12)
  6167. * agenda views, user-defined: Special agenda views.
  6168. (line 6)
  6169. * agenda, pipe: Extracting Agenda Information for other programs.
  6170. (line 6)
  6171. * agenda, with block views: Block agenda. (line 6)
  6172. * align, STARTUP keyword: In-buffer settings. (line 72)
  6173. * allout.el: Conflicts. (line 6)
  6174. * angular brackets, around links: External links. (line 43)
  6175. * API, for properties <1>: Using the property API.
  6176. (line 6)
  6177. * API, for properties: Property API. (line 6)
  6178. * appointment reminders: Weekly/Daily agenda. (line 65)
  6179. * appt.el: Weekly/Daily agenda. (line 65)
  6180. * archive locations: Moving subtrees. (line 23)
  6181. * archiving: Archiving. (line 6)
  6182. * ASCII export: ASCII export. (line 6)
  6183. * author: Feedback. (line 6)
  6184. * author info, in export: Export options. (line 26)
  6185. * autoload: Activation. (line 6)
  6186. * backtrace of an error: Feedback. (line 27)
  6187. * BBDB links: External links. (line 6)
  6188. * block agenda: Block agenda. (line 6)
  6189. * blorg.el: Extensions. (line 32)
  6190. * bold text: Enhancing text. (line 15)
  6191. * Boolean logic, for tag searches: Tag searches. (line 24)
  6192. * bug reports: Feedback. (line 6)
  6193. * bugs: Bugs. (line 6)
  6194. * C-c C-c, overview: The very busy C-c C-c key.
  6195. (line 6)
  6196. * calc package: The spreadsheet. (line 6)
  6197. * calc.el: Cooperation. (line 6)
  6198. * calculations, in tables <1>: The spreadsheet. (line 6)
  6199. * calculations, in tables: Built-in table editor.
  6200. (line 143)
  6201. * calendar commands, from agenda: Agenda commands. (line 196)
  6202. * calendar integration: Weekly/Daily agenda. (line 23)
  6203. * calendar, for selecting date: The date/time prompt.
  6204. (line 53)
  6205. * category: Categories. (line 6)
  6206. * category, require for tags/property match: Tag searches. (line 69)
  6207. * CDLaTeX: CDLaTeX mode. (line 6)
  6208. * cdlatex.el: Cooperation. (line 29)
  6209. * checkbox statistics: Checkboxes. (line 23)
  6210. * checkboxes: Checkboxes. (line 6)
  6211. * children, subtree visibility state: Visibility cycling. (line 10)
  6212. * clean outline view: Clean view. (line 6)
  6213. * column formula: Column formulas. (line 6)
  6214. * column view, for properties: Defining columns. (line 6)
  6215. * commands, in agenda buffer: Agenda commands. (line 6)
  6216. * comment lines: Comment lines. (line 6)
  6217. * completion, of dictionary words: Completion. (line 6)
  6218. * completion, of file names: Handling links. (line 44)
  6219. * completion, of link abbreviations: Completion. (line 6)
  6220. * completion, of links: Handling links. (line 25)
  6221. * completion, of option keywords <1>: Completion. (line 6)
  6222. * completion, of option keywords <2>: Per file keywords. (line 23)
  6223. * completion, of option keywords: Export options. (line 6)
  6224. * completion, of property keys: Completion. (line 6)
  6225. * completion, of tags <1>: Completion. (line 6)
  6226. * completion, of tags: Setting tags. (line 11)
  6227. * completion, of TeX symbols: Completion. (line 6)
  6228. * completion, of TODO keywords <1>: Workflow states. (line 15)
  6229. * completion, of TODO keywords: Completion. (line 6)
  6230. * constants, in calculations: References. (line 82)
  6231. * constants.el: Cooperation. (line 14)
  6232. * constcgs, STARTUP keyword: In-buffer settings. (line 98)
  6233. * constSI, STARTUP keyword: In-buffer settings. (line 98)
  6234. * content, STARTUP keyword: In-buffer settings. (line 65)
  6235. * contents, global visibility state: Visibility cycling. (line 22)
  6236. * copying, of subtrees: Structure editing. (line 6)
  6237. * creating timestamps: Creating timestamps. (line 6)
  6238. * CUA.el: Conflicts. (line 15)
  6239. * custom agenda views: Custom agenda views. (line 6)
  6240. * custom date/time format: Custom time format. (line 6)
  6241. * custom search strings: Custom searches. (line 6)
  6242. * customization: Customization. (line 6)
  6243. * customtime, STARTUP keyword: In-buffer settings. (line 95)
  6244. * cutting, of subtrees: Structure editing. (line 6)
  6245. * cycling, of TODO states: TODO basics. (line 13)
  6246. * cycling, visibility: Visibility cycling. (line 6)
  6247. * daily agenda: Weekly/Daily agenda. (line 6)
  6248. * date format, custom: Custom time format. (line 6)
  6249. * date range: Time stamps. (line 40)
  6250. * date stamps <1>: Time stamps. (line 6)
  6251. * date stamps: Dates and times. (line 6)
  6252. * date, reading in minibuffer: The date/time prompt.
  6253. (line 6)
  6254. * dates: Dates and times. (line 6)
  6255. * DEADLINE keyword: Deadlines and scheduling.
  6256. (line 10)
  6257. * deadlines: Time stamps. (line 6)
  6258. * debugging, of table formulas: Editing and debugging formulas.
  6259. (line 97)
  6260. * demotion, of subtrees: Structure editing. (line 6)
  6261. * diary entries, creating from agenda: Agenda commands. (line 201)
  6262. * diary integration: Weekly/Daily agenda. (line 23)
  6263. * dictionary word completion: Completion. (line 6)
  6264. * directories, for publishing: Sources and destinations.
  6265. (line 6)
  6266. * dispatching agenda commands: Agenda dispatcher. (line 6)
  6267. * display changing, in agenda: Agenda commands. (line 65)
  6268. * document structure: Document structure. (line 6)
  6269. * DONE, final TODO keyword: Per file keywords. (line 26)
  6270. * drawer, for properties: Property syntax. (line 6)
  6271. * drawers: Drawers. (line 6)
  6272. * dynamic blocks: Dynamic blocks. (line 6)
  6273. * editing tables: Tables. (line 6)
  6274. * editing, of table formulas: Editing and debugging formulas.
  6275. (line 6)
  6276. * elisp links: External links. (line 6)
  6277. * emphasized text: Export options. (line 26)
  6278. * enhancing text: Enhancing text. (line 6)
  6279. * evaluate time range: Creating timestamps. (line 48)
  6280. * even, STARTUP keyword: In-buffer settings. (line 88)
  6281. * examples, quoted: Quoted examples. (line 6)
  6282. * exporting: Exporting. (line 6)
  6283. * exporting agenda views <1>: Agenda commands. (line 233)
  6284. * exporting agenda views: Exporting Agenda Views.
  6285. (line 12)
  6286. * exporting, not: Comment lines. (line 6)
  6287. * extended TODO keywords: TODO extensions. (line 6)
  6288. * extension, third-party: Extensions. (line 6)
  6289. * external archiving: Moving subtrees. (line 6)
  6290. * external links: External links. (line 6)
  6291. * external links, in HTML export: Links. (line 6)
  6292. * faces, for TODO keywords: Faces for TODO keywords.
  6293. (line 6)
  6294. * FAQ: Summary. (line 56)
  6295. * feedback: Feedback. (line 6)
  6296. * field formula: Field formulas. (line 6)
  6297. * field references: References. (line 15)
  6298. * file links: External links. (line 6)
  6299. * file links, searching: Search options. (line 6)
  6300. * file name completion: Handling links. (line 44)
  6301. * files for agenda: Agenda files. (line 6)
  6302. * files, adding to agenda list: Agenda files. (line 15)
  6303. * files, selecting for publishing: Selecting files. (line 6)
  6304. * fixed width: Enhancing text. (line 30)
  6305. * fixed width text: Quoted examples. (line 6)
  6306. * fixed-width sections: Export options. (line 26)
  6307. * folded, subtree visibility state: Visibility cycling. (line 10)
  6308. * folding, sparse trees: Sparse trees. (line 6)
  6309. * following links: Handling links. (line 59)
  6310. * footnote.el <1>: Footnotes. (line 6)
  6311. * footnote.el <2>: Cooperation. (line 73)
  6312. * footnote.el: Conflicts. (line 35)
  6313. * footnotes <1>: Footnotes. (line 6)
  6314. * footnotes: Export options. (line 26)
  6315. * format specifier: Formula syntax for Calc.
  6316. (line 14)
  6317. * format, of links: Link format. (line 6)
  6318. * formula debugging: Editing and debugging formulas.
  6319. (line 97)
  6320. * formula editing: Editing and debugging formulas.
  6321. (line 6)
  6322. * formula syntax, Calc: Formula syntax for Calc.
  6323. (line 6)
  6324. * formula, for individual table field: Field formulas. (line 6)
  6325. * formula, for table column: Column formulas. (line 6)
  6326. * formula, in tables: Built-in table editor.
  6327. (line 143)
  6328. * global cycling: Visibility cycling. (line 22)
  6329. * global keybindings: Activation. (line 6)
  6330. * global TODO list: Global TODO list. (line 6)
  6331. * global visibility states: Visibility cycling. (line 22)
  6332. * GNUS links: External links. (line 6)
  6333. * grouping columns in tables: Column groups. (line 6)
  6334. * hand-formatted lists: Enhancing text. (line 11)
  6335. * headline levels: Export options. (line 26)
  6336. * headline levels, for exporting <1>: LaTeX export commands.
  6337. (line 26)
  6338. * headline levels, for exporting <2>: HTML Export commands.
  6339. (line 44)
  6340. * headline levels, for exporting: ASCII export. (line 21)
  6341. * headline navigation: Motion. (line 6)
  6342. * headline tagging: Tags. (line 6)
  6343. * headline, promotion and demotion: Structure editing. (line 6)
  6344. * headlines: Headlines. (line 6)
  6345. * hide text: Visibility cycling. (line 6)
  6346. * hidestars, STARTUP keyword: In-buffer settings. (line 88)
  6347. * hiding leading stars: Clean view. (line 6)
  6348. * history: History and Acknowledgments.
  6349. (line 6)
  6350. * horizontal rules, in exported files: Enhancing text. (line 20)
  6351. * HTML entities, LaTeX entities: Enhancing text. (line 45)
  6352. * HTML export: HTML export. (line 6)
  6353. * HTML, and orgtbl-mode: Translator functions.
  6354. (line 6)
  6355. * hyperlinks: Hyperlinks. (line 6)
  6356. * hyperlinks, adding new types: Adding hyperlink types.
  6357. (line 6)
  6358. * iCalendar export: iCalendar export. (line 6)
  6359. * images, inline in HTML: Images. (line 6)
  6360. * imenu.el: Cooperation. (line 33)
  6361. * in-buffer settings: In-buffer settings. (line 6)
  6362. * inactive timestamp: Time stamps. (line 49)
  6363. * index, of published pages: Project page index. (line 6)
  6364. * Info links: External links. (line 6)
  6365. * inheritance, of properties: Property searches. (line 6)
  6366. * inheritance, of tags: Tag inheritance. (line 6)
  6367. * inlining images in HTML: Images. (line 6)
  6368. * inserting links: Handling links. (line 25)
  6369. * installation: Installation. (line 6)
  6370. * internal archiving: ARCHIVE tag. (line 6)
  6371. * internal links: Internal links. (line 6)
  6372. * internal links, in HTML export: Links. (line 6)
  6373. * introduction: Introduction. (line 6)
  6374. * italic text: Enhancing text. (line 15)
  6375. * jumping, to headlines: Motion. (line 6)
  6376. * keybindings, global: Activation. (line 6)
  6377. * keyword options: Per file keywords. (line 6)
  6378. * LaTeX class: Sectioning structure.
  6379. (line 6)
  6380. * LaTeX export: LaTeX export. (line 6)
  6381. * LaTeX fragments <1>: Export options. (line 26)
  6382. * LaTeX fragments: LaTeX fragments. (line 6)
  6383. * LaTeX fragments, export: Enhancing text. (line 23)
  6384. * LaTeX fragments, preview: Processing LaTeX fragments.
  6385. (line 6)
  6386. * LaTeX interpretation: Embedded LaTeX. (line 6)
  6387. * LaTeX sectioning structure: Sectioning structure.
  6388. (line 6)
  6389. * LaTeX, and orgtbl-mode: A LaTeX example. (line 6)
  6390. * level, require for tags/property match: Tag searches. (line 69)
  6391. * linebreak preservation: Export options. (line 26)
  6392. * linebreak, forced: Enhancing text. (line 42)
  6393. * link abbreviations: Link abbreviations. (line 6)
  6394. * link abbreviations, completion of: Completion. (line 6)
  6395. * link completion: Handling links. (line 25)
  6396. * link format: Link format. (line 6)
  6397. * links, external: External links. (line 6)
  6398. * links, finding next/previous: Handling links. (line 92)
  6399. * links, handling: Handling links. (line 6)
  6400. * links, in HTML export: Links. (line 6)
  6401. * links, internal: Internal links. (line 6)
  6402. * links, publishing: Publishing links. (line 6)
  6403. * links, radio targets: Radio targets. (line 6)
  6404. * links, returning to: Handling links. (line 86)
  6405. * Lisp forms, as table formulas: Formula syntax for Lisp.
  6406. (line 6)
  6407. * lists, hand-formatted: Enhancing text. (line 11)
  6408. * lists, in other modes: Tables in arbitrary syntax.
  6409. (line 6)
  6410. * lists, ordered: Plain lists. (line 6)
  6411. * lists, plain: Plain lists. (line 6)
  6412. * logdone, STARTUP keyword: In-buffer settings. (line 77)
  6413. * logging, of progress: Progress logging. (line 6)
  6414. * lognoteclock-out, STARTUP keyword: In-buffer settings. (line 77)
  6415. * lognotedone, STARTUP keyword: In-buffer settings. (line 77)
  6416. * lognotestate, STARTUP keyword: In-buffer settings. (line 77)
  6417. * logrepeat, STARTUP keyword: In-buffer settings. (line 77)
  6418. * maintainer: Feedback. (line 6)
  6419. * mark ring: Handling links. (line 82)
  6420. * marking characters, tables: Advanced features. (line 40)
  6421. * matching, of properties: Matching tags and properties.
  6422. (line 6)
  6423. * matching, of tags: Matching tags and properties.
  6424. (line 6)
  6425. * matching, tags: Tags. (line 6)
  6426. * math symbols: Math symbols. (line 6)
  6427. * MH-E links: External links. (line 6)
  6428. * minor mode for structure editing: orgstruct-mode. (line 6)
  6429. * minor mode for tables: orgtbl-mode. (line 6)
  6430. * mode, for calc: Formula syntax for Calc.
  6431. (line 14)
  6432. * motion commands in agenda: Agenda commands. (line 19)
  6433. * motion, between headlines: Motion. (line 6)
  6434. * name, of column or field: References. (line 82)
  6435. * named references: References. (line 82)
  6436. * names as TODO keywords: TODO types. (line 6)
  6437. * narrow columns in tables: Narrow columns. (line 6)
  6438. * noalign, STARTUP keyword: In-buffer settings. (line 72)
  6439. * nologging, STARTUP keyword: In-buffer settings. (line 77)
  6440. * nologrepeat, STARTUP keyword: In-buffer settings. (line 77)
  6441. * occur, command: Sparse trees. (line 6)
  6442. * odd, STARTUP keyword: In-buffer settings. (line 88)
  6443. * option keyword completion: Completion. (line 6)
  6444. * options, for custom agenda views: Setting Options. (line 6)
  6445. * options, for customization: Customization. (line 6)
  6446. * options, for export: Export options. (line 6)
  6447. * options, for publishing: Publishing options. (line 6)
  6448. * ordered lists: Plain lists. (line 6)
  6449. * org-agenda, command: Weekly/Daily agenda. (line 9)
  6450. * org-blog.el: Extensions. (line 28)
  6451. * org-list-insert-radio-list: Radio lists. (line 6)
  6452. * org-mode, turning on: Activation. (line 22)
  6453. * org-mouse.el: Extensions. (line 16)
  6454. * org-publish-project-alist: Project alist. (line 6)
  6455. * org-publish.el: Extensions. (line 8)
  6456. * org2rem.el: Extensions. (line 36)
  6457. * orgstruct-mode: orgstruct-mode. (line 6)
  6458. * orgtbl-mode <1>: orgtbl-mode. (line 6)
  6459. * orgtbl-mode: Tables in arbitrary syntax.
  6460. (line 6)
  6461. * outline tree: Headlines. (line 6)
  6462. * outline-mode: Outlines. (line 6)
  6463. * outlines: Outlines. (line 6)
  6464. * overview, global visibility state: Visibility cycling. (line 22)
  6465. * overview, STARTUP keyword: In-buffer settings. (line 65)
  6466. * packages, interaction with other: Interaction. (line 6)
  6467. * pasting, of subtrees: Structure editing. (line 6)
  6468. * per file keywords: Per file keywords. (line 6)
  6469. * plain lists: Plain lists. (line 6)
  6470. * plain text external links: External links. (line 43)
  6471. * presentation, of agenda items: Presentation and sorting.
  6472. (line 6)
  6473. * printing sparse trees: Sparse trees. (line 46)
  6474. * priorities: Priorities. (line 6)
  6475. * priorities, of agenda items: Sorting of agenda items.
  6476. (line 6)
  6477. * progress logging: Progress logging. (line 6)
  6478. * projects, for publishing: Project alist. (line 6)
  6479. * promotion, of subtrees: Structure editing. (line 6)
  6480. * properties: Properties and columns.
  6481. (line 6)
  6482. * properties, API <1>: Using the property API.
  6483. (line 6)
  6484. * properties, API: Property API. (line 6)
  6485. * properties, column view: Defining columns. (line 6)
  6486. * properties, inheritance: Property searches. (line 6)
  6487. * properties, searching: Property searches. (line 6)
  6488. * properties, special: Special properties. (line 6)
  6489. * property syntax: Property syntax. (line 6)
  6490. * publishing: Publishing. (line 6)
  6491. * quoted examples: Quoted examples. (line 6)
  6492. * quoted HTML tags: Export options. (line 26)
  6493. * radio lists: Radio lists. (line 6)
  6494. * radio tables: Radio tables. (line 6)
  6495. * radio targets: Radio targets. (line 6)
  6496. * range references: References. (line 60)
  6497. * ranges, time: Time stamps. (line 6)
  6498. * recomputing table fields: Updating the table. (line 6)
  6499. * references: References. (line 6)
  6500. * references, named: References. (line 82)
  6501. * references, to fields: References. (line 15)
  6502. * references, to ranges: References. (line 60)
  6503. * refiling notes: Refiling notes. (line 6)
  6504. * region, active <1>: HTML Export commands.
  6505. (line 6)
  6506. * region, active <2>: Built-in table editor.
  6507. (line 143)
  6508. * region, active <3>: ASCII export. (line 9)
  6509. * region, active: Structure editing. (line 74)
  6510. * regular expressions, with tags search: Tag searches. (line 64)
  6511. * remember.el <1>: Remember. (line 6)
  6512. * remember.el: Cooperation. (line 42)
  6513. * remote editing, from agenda: Agenda commands. (line 107)
  6514. * remote editing, undo: Agenda commands. (line 108)
  6515. * richer text: Enhancing text. (line 6)
  6516. * RMAIL links: External links. (line 6)
  6517. * SCHEDULED keyword: Deadlines and scheduling.
  6518. (line 26)
  6519. * scheduling: Time stamps. (line 6)
  6520. * Scripts, for agenda processing: Extracting Agenda Information for other programs.
  6521. (line 6)
  6522. * search option in file links: Search options. (line 6)
  6523. * search strings, custom: Custom searches. (line 6)
  6524. * searching for tags: Tag searches. (line 6)
  6525. * searching, of properties: Property searches. (line 6)
  6526. * section-numbers: Export options. (line 26)
  6527. * setting tags: Setting tags. (line 6)
  6528. * SHELL links: External links. (line 6)
  6529. * show all, command: Visibility cycling. (line 33)
  6530. * show all, global visibility state: Visibility cycling. (line 22)
  6531. * show hidden text: Visibility cycling. (line 6)
  6532. * showall, STARTUP keyword: In-buffer settings. (line 65)
  6533. * showstars, STARTUP keyword: In-buffer settings. (line 88)
  6534. * sorting, of agenda items: Sorting of agenda items.
  6535. (line 6)
  6536. * sparse tree, for deadlines: Inserting deadline/schedule.
  6537. (line 13)
  6538. * sparse tree, for TODO: TODO basics. (line 38)
  6539. * sparse tree, tag based: Tags. (line 6)
  6540. * sparse trees: Sparse trees. (line 6)
  6541. * special keywords: In-buffer settings. (line 6)
  6542. * special strings: Export options. (line 26)
  6543. * speedbar.el: Cooperation. (line 46)
  6544. * spreadsheet capabilities: The spreadsheet. (line 6)
  6545. * statistics, for checkboxes: Checkboxes. (line 23)
  6546. * storing links: Handling links. (line 9)
  6547. * structure editing: Structure editing. (line 6)
  6548. * structure of document: Document structure. (line 6)
  6549. * sublevels, inclusion into tags match: Tag inheritance. (line 6)
  6550. * sublevels, inclusion into todo list: Global TODO list. (line 34)
  6551. * subscript: Subscripts and Superscripts.
  6552. (line 6)
  6553. * subtree cycling: Visibility cycling. (line 10)
  6554. * subtree visibility states: Visibility cycling. (line 10)
  6555. * subtree, cut and paste: Structure editing. (line 6)
  6556. * subtree, subtree visibility state: Visibility cycling. (line 10)
  6557. * subtrees, cut and paste: Structure editing. (line 6)
  6558. * summary: Summary. (line 6)
  6559. * superscript: Subscripts and Superscripts.
  6560. (line 6)
  6561. * syntax, of formulas: Formula syntax for Calc.
  6562. (line 6)
  6563. * table editor, built-in: Built-in table editor.
  6564. (line 6)
  6565. * table editor, table.el: Cooperation. (line 54)
  6566. * table of contents: Export options. (line 26)
  6567. * table.el: Cooperation. (line 51)
  6568. * tables <1>: Tables. (line 6)
  6569. * tables: Export options. (line 26)
  6570. * tables, export: Enhancing text. (line 26)
  6571. * tables, in other modes: Tables in arbitrary syntax.
  6572. (line 6)
  6573. * tag completion: Completion. (line 6)
  6574. * tag inheritance: Tag inheritance. (line 6)
  6575. * tag searches: Tag searches. (line 6)
  6576. * tags: Tags. (line 6)
  6577. * tags view: Matching tags and properties.
  6578. (line 6)
  6579. * tags, setting: Setting tags. (line 6)
  6580. * targets, for links: Internal links. (line 6)
  6581. * targets, radio: Radio targets. (line 6)
  6582. * tasks, breaking down: Breaking down tasks. (line 6)
  6583. * templates, for remember: Remember templates. (line 6)
  6584. * TeX interpretation: Embedded LaTeX. (line 6)
  6585. * TeX macros <1>: Math symbols. (line 6)
  6586. * TeX macros: Export options. (line 26)
  6587. * TeX macros, export: Enhancing text. (line 23)
  6588. * TeX symbol completion: Completion. (line 6)
  6589. * TeX-like syntax for sub- and superscripts: Export options. (line 26)
  6590. * text, fixed width: Quoted examples. (line 6)
  6591. * thanks: History and Acknowledgments.
  6592. (line 6)
  6593. * time format, custom: Custom time format. (line 6)
  6594. * time grid: Time-of-day specifications.
  6595. (line 26)
  6596. * time info, in export: Export options. (line 26)
  6597. * time stamps <1>: Dates and times. (line 6)
  6598. * time stamps: Time stamps. (line 6)
  6599. * time, reading in minibuffer: The date/time prompt.
  6600. (line 6)
  6601. * time-of-day specification: Time-of-day specifications.
  6602. (line 6)
  6603. * time-sorted view: Timeline. (line 6)
  6604. * timeline, single file: Timeline. (line 6)
  6605. * timerange: Time stamps. (line 40)
  6606. * times: Dates and times. (line 6)
  6607. * timestamp: Time stamps. (line 14)
  6608. * timestamp, inactive: Time stamps. (line 49)
  6609. * timestamp, with repeater interval: Time stamps. (line 24)
  6610. * timestamps, creating: Creating timestamps. (line 6)
  6611. * TODO items: TODO items. (line 6)
  6612. * TODO keyword matching: Global TODO list. (line 17)
  6613. * TODO keyword matching, with tags search: Tag searches. (line 41)
  6614. * todo keyword sets: Multiple sets in one file.
  6615. (line 6)
  6616. * TODO keywords completion: Completion. (line 6)
  6617. * TODO list, global: Global TODO list. (line 6)
  6618. * TODO types: TODO types. (line 6)
  6619. * TODO workflow: Workflow states. (line 6)
  6620. * transient-mark-mode <1>: Built-in table editor.
  6621. (line 143)
  6622. * transient-mark-mode <2>: HTML Export commands.
  6623. (line 6)
  6624. * transient-mark-mode <3>: Structure editing. (line 74)
  6625. * transient-mark-mode: ASCII export. (line 9)
  6626. * translator function: Translator functions.
  6627. (line 6)
  6628. * trees, sparse: Sparse trees. (line 6)
  6629. * trees, visibility: Visibility cycling. (line 6)
  6630. * tty keybindings: TTY keys. (line 6)
  6631. * types as TODO keywords: TODO types. (line 6)
  6632. * underlined text: Enhancing text. (line 15)
  6633. * undoing remote-editing events: Agenda commands. (line 108)
  6634. * updating, table: Updating the table. (line 6)
  6635. * URL links: External links. (line 6)
  6636. * USENET links: External links. (line 6)
  6637. * variables, for customization: Customization. (line 6)
  6638. * vectors, in table calculations: Formula syntax for Calc.
  6639. (line 11)
  6640. * verbatim text: Enhancing text. (line 15)
  6641. * visibility cycling: Visibility cycling. (line 6)
  6642. * visibility cycling, drawers: Drawers. (line 6)
  6643. * visible text, printing: Sparse trees. (line 46)
  6644. * VM links: External links. (line 6)
  6645. * WANDERLUST links: External links. (line 6)
  6646. * weekly agenda: Weekly/Daily agenda. (line 6)
  6647. * windmove.el: Conflicts. (line 32)
  6648. * workflow states as TODO keywords: Workflow states. (line 6)
  6649. * XEmacs: Installation. (line 6)
  6650. * XOXO export: XOXO export. (line 6)
  6651. 
  6652. File: org, Node: Key Index, Prev: Index, Up: Top
  6653. Key Index
  6654. *********
  6655. �[index�]
  6656. * Menu:
  6657. * $: Agenda commands. (line 122)
  6658. * ': CDLaTeX mode. (line 43)
  6659. * +: Agenda commands. (line 145)
  6660. * ,: Agenda commands. (line 137)
  6661. * -: Agenda commands. (line 151)
  6662. * .: Agenda commands. (line 99)
  6663. * :: Agenda commands. (line 130)
  6664. * < <1>: The date/time prompt.
  6665. (line 59)
  6666. * < <2>: Agenda files. (line 51)
  6667. * <: Using column view. (line 57)
  6668. * <left>: Agenda commands. (line 96)
  6669. * <RET> <1>: Setting tags. (line 76)
  6670. * <RET> <2>: Built-in table editor.
  6671. (line 64)
  6672. * <RET> <3>: The date/time prompt.
  6673. (line 59)
  6674. * <RET>: Agenda commands. (line 39)
  6675. * <right>: Agenda commands. (line 91)
  6676. * <SPC> <1>: Setting tags. (line 73)
  6677. * <SPC>: Agenda commands. (line 28)
  6678. * <TAB> <1>: Editing and debugging formulas.
  6679. (line 57)
  6680. * <TAB> <2>: Visibility cycling. (line 10)
  6681. * <TAB> <3>: Plain lists. (line 41)
  6682. * <TAB> <4>: Agenda commands. (line 33)
  6683. * <TAB> <5>: Setting tags. (line 68)
  6684. * <TAB> <6>: Built-in table editor.
  6685. (line 57)
  6686. * <TAB>: CDLaTeX mode. (line 23)
  6687. * > <1>: Agenda commands. (line 173)
  6688. * > <2>: The date/time prompt.
  6689. (line 59)
  6690. * >: Using column view. (line 57)
  6691. * ^: CDLaTeX mode. (line 33)
  6692. * _: CDLaTeX mode. (line 33)
  6693. * `: CDLaTeX mode. (line 39)
  6694. * a <1>: Using column view. (line 46)
  6695. * a: Agenda commands. (line 134)
  6696. * b: Agenda commands. (line 49)
  6697. * c: Agenda commands. (line 196)
  6698. * C: Agenda commands. (line 216)
  6699. * C-#: Advanced features. (line 9)
  6700. * C-': Agenda files. (line 21)
  6701. * C-,: Agenda files. (line 21)
  6702. * C-<RET>: Structure editing. (line 18)
  6703. * C-_: Agenda commands. (line 108)
  6704. * C-c ! <1>: Creating timestamps. (line 19)
  6705. * C-c !: Footnotes. (line 14)
  6706. * C-c #: Checkboxes. (line 57)
  6707. * C-c %: Handling links. (line 82)
  6708. * C-c &: Handling links. (line 86)
  6709. * C-c ': Editing and debugging formulas.
  6710. (line 36)
  6711. * C-c *: Updating the table. (line 13)
  6712. * C-c +: Built-in table editor.
  6713. (line 143)
  6714. * C-c ,: Priorities. (line 18)
  6715. * C-c - <1>: Plain lists. (line 88)
  6716. * C-c -: Built-in table editor.
  6717. (line 92)
  6718. * C-c .: Creating timestamps. (line 10)
  6719. * C-c /: Sparse trees. (line 15)
  6720. * C-c / d: Inserting deadline/schedule.
  6721. (line 13)
  6722. * C-c / p: Property searches. (line 23)
  6723. * C-c / r: Sparse trees. (line 17)
  6724. * C-c / T: Tag searches. (line 9)
  6725. * C-c / t: TODO basics. (line 38)
  6726. * C-c : <1>: Enhancing text. (line 34)
  6727. * C-c :: Quoted examples. (line 15)
  6728. * C-c ;: Comment lines. (line 10)
  6729. * C-c <: Creating timestamps. (line 23)
  6730. * C-c <TAB>: Built-in table editor.
  6731. (line 163)
  6732. * C-c = <1>: Column formulas. (line 26)
  6733. * C-c =: Editing and debugging formulas.
  6734. (line 14)
  6735. * C-c >: Creating timestamps. (line 27)
  6736. * C-c ?: Editing and debugging formulas.
  6737. (line 24)
  6738. * C-c [: Agenda files. (line 15)
  6739. * C-c \: Tag searches. (line 9)
  6740. * C-c ]: Agenda files. (line 18)
  6741. * C-c ^ <1>: Built-in table editor.
  6742. (line 96)
  6743. * C-c ^: Structure editing. (line 61)
  6744. * C-c `: Built-in table editor.
  6745. (line 159)
  6746. * C-c a !: Stuck projects. (line 14)
  6747. * C-c a #: Stuck projects. (line 13)
  6748. * C-c a a: Weekly/Daily agenda. (line 9)
  6749. * C-c a C: Storing searches. (line 9)
  6750. * C-c a e: Exporting Agenda Views.
  6751. (line 57)
  6752. * C-c a L: Timeline. (line 10)
  6753. * C-c a m: Tag searches. (line 13)
  6754. * C-c a M <1>: Matching tags and properties.
  6755. (line 15)
  6756. * C-c a M: Tag searches. (line 17)
  6757. * C-c a m: Matching tags and properties.
  6758. (line 10)
  6759. * C-c a t <1>: Global TODO list. (line 9)
  6760. * C-c a t: TODO basics. (line 49)
  6761. * C-c a T: Global TODO list. (line 14)
  6762. * C-c C-a: Visibility cycling. (line 33)
  6763. * C-c C-b: Motion. (line 15)
  6764. * C-c C-c <1>: Built-in table editor.
  6765. (line 56)
  6766. * C-c C-c <2>: Property syntax. (line 58)
  6767. * C-c C-c <3>: Plain lists. (line 81)
  6768. * C-c C-c <4>: Processing LaTeX fragments.
  6769. (line 15)
  6770. * C-c C-c <5>: Cooperation. (line 63)
  6771. * C-c C-c <6>: Checkboxes. (line 37)
  6772. * C-c C-c <7>: Cooperation. (line 54)
  6773. * C-c C-c <8>: The very busy C-c C-c key.
  6774. (line 6)
  6775. * C-c C-c <9>: TODO basics. (line 30)
  6776. * C-c C-c <10>: Setting tags. (line 10)
  6777. * C-c C-c <11>: Editing and debugging formulas.
  6778. (line 46)
  6779. * C-c C-c <12>: Capturing Column View.
  6780. (line 39)
  6781. * C-c C-c <13>: Clocking work time. (line 89)
  6782. * C-c C-c <14>: Using column view. (line 39)
  6783. * C-c C-c: Editing and debugging formulas.
  6784. (line 90)
  6785. * C-c C-d <1>: Agenda commands. (line 158)
  6786. * C-c C-d: Inserting deadline/schedule.
  6787. (line 9)
  6788. * C-c C-e: Exporting. (line 20)
  6789. * C-c C-e a: ASCII export. (line 9)
  6790. * C-c C-e b: HTML Export commands.
  6791. (line 13)
  6792. * C-c C-e c: iCalendar export. (line 21)
  6793. * C-c C-e h: HTML Export commands.
  6794. (line 6)
  6795. * C-c C-e H: HTML Export commands.
  6796. (line 16)
  6797. * C-c C-e I: iCalendar export. (line 16)
  6798. * C-c C-e i: iCalendar export. (line 14)
  6799. * C-c C-e l: LaTeX export commands.
  6800. (line 6)
  6801. * C-c C-e L: LaTeX export commands.
  6802. (line 7)
  6803. * C-c C-e R: HTML Export commands.
  6804. (line 19)
  6805. * C-c C-e t: Export options. (line 13)
  6806. * C-c C-e v <1>: XOXO export. (line 11)
  6807. * C-c C-e v: Sparse trees. (line 46)
  6808. * C-c C-e v a: ASCII export. (line 16)
  6809. * C-c C-e v b: HTML Export commands.
  6810. (line 24)
  6811. * C-c C-e v h: HTML Export commands.
  6812. (line 24)
  6813. * C-c C-e v H: HTML Export commands.
  6814. (line 24)
  6815. * C-c C-e v L: LaTeX export commands.
  6816. (line 10)
  6817. * C-c C-e v l: LaTeX export commands.
  6818. (line 10)
  6819. * C-c C-e v R: HTML Export commands.
  6820. (line 24)
  6821. * C-c C-e x: XOXO export. (line 10)
  6822. * C-c C-f: Motion. (line 12)
  6823. * C-c C-j: Motion. (line 21)
  6824. * C-c C-l: Handling links. (line 25)
  6825. * C-c C-n: Motion. (line 8)
  6826. * C-c C-o <1>: Creating timestamps. (line 31)
  6827. * C-c C-o: Handling links. (line 59)
  6828. * C-c C-p: Motion. (line 9)
  6829. * C-c C-q <1>: Built-in table editor.
  6830. (line 127)
  6831. * C-c C-q: Editing and debugging formulas.
  6832. (line 50)
  6833. * C-c C-r <1>: Visibility cycling. (line 34)
  6834. * C-c C-r: Editing and debugging formulas.
  6835. (line 53)
  6836. * C-c C-s <1>: Agenda commands. (line 155)
  6837. * C-c C-s: Inserting deadline/schedule.
  6838. (line 20)
  6839. * C-c C-t <1>: TODO basics. (line 13)
  6840. * C-c C-t: Clocking work time. (line 30)
  6841. * C-c C-u: Motion. (line 18)
  6842. * C-c C-v: TODO basics. (line 38)
  6843. * C-c C-w <1>: Refiling notes. (line 13)
  6844. * C-c C-w: Structure editing. (line 58)
  6845. * C-c C-x <: Agenda files. (line 37)
  6846. * C-c C-x b: Visibility cycling. (line 41)
  6847. * C-c C-x C-a: ARCHIVE tag. (line 28)
  6848. * C-c C-x C-b: Checkboxes. (line 39)
  6849. * C-c C-x C-c <1>: Using column view. (line 9)
  6850. * C-c C-x C-c: Agenda commands. (line 223)
  6851. * C-c C-x C-d: Clocking work time. (line 42)
  6852. * C-c C-x C-i: Clocking work time. (line 12)
  6853. * C-c C-x C-j: Clocking work time. (line 38)
  6854. * C-c C-x C-k: Structure editing. (line 43)
  6855. * C-c C-x C-l: Processing LaTeX fragments.
  6856. (line 9)
  6857. * C-c C-x C-n: Handling links. (line 92)
  6858. * C-c C-x C-o: Clocking work time. (line 17)
  6859. * C-c C-x C-p: Handling links. (line 92)
  6860. * C-c C-x C-r: Clocking work time. (line 50)
  6861. * C-c C-x C-s: Moving subtrees. (line 10)
  6862. * C-c C-x C-t: Custom time format. (line 12)
  6863. * C-c C-x C-u <1>: Capturing Column View.
  6864. (line 42)
  6865. * C-c C-x C-u <2>: Clocking work time. (line 91)
  6866. * C-c C-x C-u: Dynamic blocks. (line 21)
  6867. * C-c C-x C-w <1>: Structure editing. (line 43)
  6868. * C-c C-x C-w: Built-in table editor.
  6869. (line 116)
  6870. * C-c C-x C-x: Clocking work time. (line 34)
  6871. * C-c C-x C-y <1>: Built-in table editor.
  6872. (line 120)
  6873. * C-c C-x C-y: Structure editing. (line 52)
  6874. * C-c C-x M-w <1>: Built-in table editor.
  6875. (line 113)
  6876. * C-c C-x M-w: Structure editing. (line 48)
  6877. * C-c C-x p: Property syntax. (line 49)
  6878. * C-c C-x r: Capturing Column View.
  6879. (line 37)
  6880. * C-c C-y <1>: Clocking work time. (line 25)
  6881. * C-c C-y: Creating timestamps. (line 48)
  6882. * C-c l: Handling links. (line 9)
  6883. * C-c { <1>: CDLaTeX mode. (line 21)
  6884. * C-c {: Editing and debugging formulas.
  6885. (line 33)
  6886. * C-c |: Built-in table editor.
  6887. (line 40)
  6888. * C-c }: Editing and debugging formulas.
  6889. (line 79)
  6890. * C-c ~: Cooperation. (line 65)
  6891. * C-k: Agenda commands. (line 116)
  6892. * C-S-<left>: Multiple sets in one file.
  6893. (line 25)
  6894. * C-S-<right>: Multiple sets in one file.
  6895. (line 25)
  6896. * C-TAB: ARCHIVE tag. (line 38)
  6897. * C-u C-c *: Updating the table. (line 16)
  6898. * C-u C-c .: Creating timestamps. (line 14)
  6899. * C-u C-c = <1>: Field formulas. (line 24)
  6900. * C-u C-c =: Editing and debugging formulas.
  6901. (line 14)
  6902. * C-u C-c C-c: Updating the table. (line 19)
  6903. * C-u C-c C-l: Handling links. (line 44)
  6904. * C-u C-c C-t: TODO basics. (line 22)
  6905. * C-u C-c C-x C-a: ARCHIVE tag. (line 31)
  6906. * C-u C-c C-x C-s: Moving subtrees. (line 14)
  6907. * C-u C-c C-x C-u <1>: Dynamic blocks. (line 22)
  6908. * C-u C-c C-x C-u <2>: Clocking work time. (line 93)
  6909. * C-u C-c C-x C-u: Capturing Column View.
  6910. (line 44)
  6911. * C-u C-u C-c *: Updating the table. (line 22)
  6912. * C-u C-u C-c =: Editing and debugging formulas.
  6913. (line 18)
  6914. * C-u C-u C-c C-c: Updating the table. (line 22)
  6915. * C-x C-s <1>: Agenda commands. (line 87)
  6916. * C-x C-s: Editing and debugging formulas.
  6917. (line 46)
  6918. * C-x C-w <1>: Agenda commands. (line 232)
  6919. * C-x C-w: Exporting Agenda Views.
  6920. (line 11)
  6921. * D: Agenda commands. (line 72)
  6922. * d: Agenda commands. (line 66)
  6923. * e: Using column view. (line 33)
  6924. * f: Agenda commands. (line 42)
  6925. * g: Agenda commands. (line 76)
  6926. * H: Agenda commands. (line 220)
  6927. * I: Agenda commands. (line 178)
  6928. * i: Agenda commands. (line 201)
  6929. * J: Agenda commands. (line 190)
  6930. * L: Agenda commands. (line 30)
  6931. * l: Agenda commands. (line 55)
  6932. * M: Agenda commands. (line 207)
  6933. * m: Agenda commands. (line 66)
  6934. * M-<down> <1>: Editing and debugging formulas.
  6935. (line 76)
  6936. * M-<down>: Built-in table editor.
  6937. (line 82)
  6938. * M-<left> <1>: Structure editing. (line 25)
  6939. * M-<left>: Built-in table editor.
  6940. (line 74)
  6941. * M-<RET> <1>: Plain lists. (line 49)
  6942. * M-<RET>: Structure editing. (line 6)
  6943. * M-<right> <1>: Structure editing. (line 28)
  6944. * M-<right>: Built-in table editor.
  6945. (line 74)
  6946. * M-<TAB> <1>: Completion. (line 10)
  6947. * M-<TAB> <2>: Property syntax. (line 46)
  6948. * M-<TAB> <3>: Setting tags. (line 6)
  6949. * M-<TAB> <4>: Per file keywords. (line 23)
  6950. * M-<TAB>: Editing and debugging formulas.
  6951. (line 64)
  6952. * M-<up> <1>: Built-in table editor.
  6953. (line 82)
  6954. * M-<up>: Editing and debugging formulas.
  6955. (line 76)
  6956. * M-S-<down> <1>: Built-in table editor.
  6957. (line 89)
  6958. * M-S-<down> <2>: Editing and debugging formulas.
  6959. (line 72)
  6960. * M-S-<down> <3>: Plain lists. (line 66)
  6961. * M-S-<down>: Structure editing. (line 40)
  6962. * M-S-<left> <1>: Plain lists. (line 72)
  6963. * M-S-<left> <2>: Built-in table editor.
  6964. (line 76)
  6965. * M-S-<left> <3>: Structure editing. (line 31)
  6966. * M-S-<left>: The date/time prompt.
  6967. (line 59)
  6968. * M-S-<RET> <1>: Checkboxes. (line 54)
  6969. * M-S-<RET> <2>: Plain lists. (line 59)
  6970. * M-S-<RET>: Structure editing. (line 22)
  6971. * M-S-<right> <1>: The date/time prompt.
  6972. (line 59)
  6973. * M-S-<right> <2>: Plain lists. (line 72)
  6974. * M-S-<right> <3>: Structure editing. (line 34)
  6975. * M-S-<right>: Built-in table editor.
  6976. (line 79)
  6977. * M-S-<up> <1>: Structure editing. (line 37)
  6978. * M-S-<up> <2>: Plain lists. (line 66)
  6979. * M-S-<up> <3>: Built-in table editor.
  6980. (line 86)
  6981. * M-S-<up>: Editing and debugging formulas.
  6982. (line 72)
  6983. * mouse-1 <1>: Agenda commands. (line 33)
  6984. * mouse-1 <2>: Handling links. (line 73)
  6985. * mouse-1: The date/time prompt.
  6986. (line 59)
  6987. * mouse-2 <1>: Handling links. (line 73)
  6988. * mouse-2: Agenda commands. (line 33)
  6989. * mouse-3 <1>: Agenda commands. (line 28)
  6990. * mouse-3: Handling links. (line 78)
  6991. * n <1>: Agenda commands. (line 19)
  6992. * n: Using column view. (line 30)
  6993. * O: Agenda commands. (line 182)
  6994. * o: Agenda commands. (line 65)
  6995. * p <1>: Using column view. (line 30)
  6996. * p: Agenda commands. (line 20)
  6997. * P: Agenda commands. (line 142)
  6998. * q <1>: Agenda commands. (line 243)
  6999. * q: Using column view. (line 17)
  7000. * r <1>: Global TODO list. (line 22)
  7001. * r: Agenda commands. (line 80)
  7002. * S: Agenda commands. (line 211)
  7003. * s: Agenda commands. (line 87)
  7004. * S-<down> <1>: The date/time prompt.
  7005. (line 59)
  7006. * S-<down> <2>: Creating timestamps. (line 40)
  7007. * S-<down> <3>: Plain lists. (line 62)
  7008. * S-<down> <4>: Editing and debugging formulas.
  7009. (line 67)
  7010. * S-<down> <5>: Agenda commands. (line 151)
  7011. * S-<down>: Priorities. (line 23)
  7012. * S-<left> <1>: The date/time prompt.
  7013. (line 59)
  7014. * S-<left> <2>: Agenda commands. (line 169)
  7015. * S-<left> <3>: Creating timestamps. (line 35)
  7016. * S-<left> <4>: TODO basics. (line 26)
  7017. * S-<left> <5>: Multiple sets in one file.
  7018. (line 29)
  7019. * S-<left> <6>: Using column view. (line 26)
  7020. * S-<left> <7>: Property syntax. (line 66)
  7021. * S-<left>: Editing and debugging formulas.
  7022. (line 67)
  7023. * S-<RET>: Built-in table editor.
  7024. (line 146)
  7025. * S-<right> <1>: Editing and debugging formulas.
  7026. (line 67)
  7027. * S-<right> <2>: Multiple sets in one file.
  7028. (line 29)
  7029. * S-<right> <3>: TODO basics. (line 26)
  7030. * S-<right> <4>: Creating timestamps. (line 35)
  7031. * S-<right> <5>: Using column view. (line 26)
  7032. * S-<right> <6>: The date/time prompt.
  7033. (line 59)
  7034. * S-<right> <7>: Agenda commands. (line 161)
  7035. * S-<right>: Property syntax. (line 66)
  7036. * S-<TAB> <1>: Visibility cycling. (line 22)
  7037. * S-<TAB>: Built-in table editor.
  7038. (line 61)
  7039. * S-<up> <1>: Plain lists. (line 62)
  7040. * S-<up> <2>: The date/time prompt.
  7041. (line 59)
  7042. * S-<up> <3>: Editing and debugging formulas.
  7043. (line 67)
  7044. * S-<up> <4>: Creating timestamps. (line 40)
  7045. * S-<up> <5>: Agenda commands. (line 145)
  7046. * S-<up>: Priorities. (line 23)
  7047. * S-M-<left>: Using column view. (line 61)
  7048. * S-M-<RET>: TODO basics. (line 57)
  7049. * S-M-<right>: Using column view. (line 58)
  7050. * T: Agenda commands. (line 125)
  7051. * t: Agenda commands. (line 112)
  7052. * v: Using column view. (line 42)
  7053. * w: Agenda commands. (line 66)
  7054. * x: Agenda commands. (line 244)
  7055. * X: Agenda commands. (line 185)
  7056. * y: Agenda commands. (line 66)
  7057. 
  7058. Tag Table:
  7059. Node: Top970
  7060. Node: Introduction13509
  7061. Node: Summary13995
  7062. Node: Installation17132
  7063. Node: Activation18510
  7064. Node: Feedback19747
  7065. Node: Conventions21836
  7066. Node: Document structure22528
  7067. Node: Outlines23420
  7068. Node: Headlines24085
  7069. Ref: Headlines-Footnote-125089
  7070. Node: Visibility cycling25200
  7071. Ref: Visibility cycling-Footnote-127410
  7072. Ref: Visibility cycling-Footnote-227468
  7073. Ref: Visibility cycling-Footnote-327518
  7074. Node: Motion27788
  7075. Node: Structure editing28742
  7076. Node: Archiving31990
  7077. Node: ARCHIVE tag32548
  7078. Node: Moving subtrees34341
  7079. Ref: Moving subtrees-Footnote-135888
  7080. Node: Sparse trees36332
  7081. Ref: Sparse trees-Footnote-138604
  7082. Ref: Sparse trees-Footnote-238786
  7083. Node: Plain lists38901
  7084. Ref: Plain lists-Footnote-143098
  7085. Ref: Plain lists-Footnote-243456
  7086. Node: Drawers43637
  7087. Ref: Drawers-Footnote-144514
  7088. Node: orgstruct-mode44620
  7089. Node: Tables45520
  7090. Node: Built-in table editor46101
  7091. Node: Narrow columns53518
  7092. Ref: Narrow columns-Footnote-155453
  7093. Node: Column groups55499
  7094. Node: orgtbl-mode57032
  7095. Node: The spreadsheet57835
  7096. Node: References58922
  7097. Ref: References-Footnote-163389
  7098. Ref: References-Footnote-263530
  7099. Node: Formula syntax for Calc63819
  7100. Node: Formula syntax for Lisp66276
  7101. Node: Field formulas67994
  7102. Node: Column formulas69302
  7103. Node: Editing and debugging formulas70901
  7104. Node: Updating the table75054
  7105. Node: Advanced features76107
  7106. Node: Hyperlinks80632
  7107. Node: Link format81410
  7108. Node: Internal links82703
  7109. Ref: Internal links-Footnote-184628
  7110. Node: Radio targets84763
  7111. Node: External links85463
  7112. Node: Handling links87867
  7113. Ref: Handling links-Footnote-193183
  7114. Ref: Handling links-Footnote-293420
  7115. Node: Using links outside Org-mode93494
  7116. Node: Link abbreviations94004
  7117. Node: Search options95697
  7118. Ref: Search options-Footnote-197477
  7119. Node: Custom searches97558
  7120. Node: TODO items98589
  7121. Node: TODO basics99627
  7122. Node: TODO extensions101842
  7123. Node: Workflow states102786
  7124. Ref: Workflow states-Footnote-1103961
  7125. Node: TODO types104054
  7126. Ref: TODO types-Footnote-1105637
  7127. Node: Multiple sets in one file105719
  7128. Node: Fast access to TODO states107339
  7129. Node: Per file keywords108482
  7130. Ref: Per file keywords-Footnote-1109784
  7131. Node: Faces for TODO keywords109985
  7132. Node: Progress logging110691
  7133. Node: Closing items111122
  7134. Ref: Closing items-Footnote-1112056
  7135. Ref: Closing items-Footnote-2112261
  7136. Node: Tracking TODO state changes112334
  7137. Ref: Tracking TODO state changes-Footnote-1113519
  7138. Node: Priorities113594
  7139. Ref: Priorities-Footnote-1115244
  7140. Node: Breaking down tasks115314
  7141. Ref: Breaking down tasks-Footnote-1115834
  7142. Node: Checkboxes115930
  7143. Node: Tags118779
  7144. Node: Tag inheritance119551
  7145. Node: Setting tags120488
  7146. Ref: Setting tags-Footnote-1125011
  7147. Ref: Setting tags-Footnote-2125123
  7148. Node: Tag searches125206
  7149. Node: Properties and columns127982
  7150. Node: Property syntax129153
  7151. Node: Special properties131843
  7152. Node: Property searches132914
  7153. Node: Property inheritance134175
  7154. Node: Column view135622
  7155. Node: Defining columns136856
  7156. Node: Scope of column definitions137254
  7157. Node: Column attributes138176
  7158. Node: Using column view140572
  7159. Node: Capturing Column View142653
  7160. Node: Property API144380
  7161. Node: Dates and times144734
  7162. Node: Time stamps145463
  7163. Ref: Time stamps-Footnote-1147827
  7164. Node: Creating timestamps147943
  7165. Node: The date/time prompt150022
  7166. Ref: The date/time prompt-Footnote-1153378
  7167. Ref: The date/time prompt-Footnote-2153434
  7168. Ref: The date/time prompt-Footnote-3153540
  7169. Node: Custom time format153633
  7170. Node: Deadlines and scheduling155325
  7171. Ref: Deadlines and scheduling-Footnote-1157403
  7172. Node: Inserting deadline/schedule157558
  7173. Node: Repeated tasks158676
  7174. Ref: Repeated tasks-Footnote-1160354
  7175. Node: Clocking work time160475
  7176. Ref: Clocking work time-Footnote-1165327
  7177. Ref: Clocking work time-Footnote-2165405
  7178. Node: Remember165531
  7179. Node: Setting up remember166477
  7180. Ref: Setting up remember-Footnote-1167386
  7181. Node: Remember templates167452
  7182. Ref: Remember templates-Footnote-1171091
  7183. Ref: Remember templates-Footnote-2171274
  7184. Node: Storing notes171372
  7185. Ref: Storing notes-Footnote-1173883
  7186. Node: Refiling notes173985
  7187. Node: Agenda views175250
  7188. Node: Agenda files177201
  7189. Ref: Agenda files-Footnote-1179642
  7190. Ref: Agenda files-Footnote-2179791
  7191. Node: Agenda dispatcher179984
  7192. Ref: Agenda dispatcher-Footnote-1182038
  7193. Ref: Agenda dispatcher-Footnote-2182132
  7194. Node: Built-in agenda views182226
  7195. Node: Weekly/Daily agenda182808
  7196. Ref: Weekly/Daily agenda-Footnote-1186106
  7197. Node: Global TODO list186310
  7198. Node: Matching tags and properties188590
  7199. Node: Timeline189681
  7200. Node: Stuck projects190355
  7201. Node: Presentation and sorting192208
  7202. Node: Categories193001
  7203. Ref: Categories-Footnote-1193712
  7204. Node: Time-of-day specifications194149
  7205. Node: Sorting of agenda items196122
  7206. Node: Agenda commands197406
  7207. Node: Custom agenda views204869
  7208. Node: Storing searches205590
  7209. Ref: Storing searches-Footnote-1208124
  7210. Node: Block agenda208241
  7211. Node: Setting Options209473
  7212. Node: Exporting Agenda Views212214
  7213. Ref: Exporting Agenda Views-Footnote-1216571
  7214. Ref: Exporting Agenda Views-Footnote-2216628
  7215. Node: Extracting Agenda Information for other programs216814
  7216. Node: Embedded LaTeX220942
  7217. Ref: Embedded LaTeX-Footnote-1222036
  7218. Node: Math symbols222226
  7219. Node: Subscripts and Superscripts222993
  7220. Node: LaTeX fragments223839
  7221. Ref: LaTeX fragments-Footnote-1226072
  7222. Ref: LaTeX fragments-Footnote-2226333
  7223. Node: Processing LaTeX fragments226467
  7224. Node: CDLaTeX mode227415
  7225. Ref: CDLaTeX mode-Footnote-1229901
  7226. Node: Exporting230049
  7227. Node: ASCII export231516
  7228. Node: HTML export233017
  7229. Node: HTML Export commands233643
  7230. Node: Quoting HTML tags235430
  7231. Node: Links236065
  7232. Node: Images236762
  7233. Ref: Images-Footnote-1237633
  7234. Node: CSS support237694
  7235. Ref: CSS support-Footnote-1239013
  7236. Node: LaTeX export239126
  7237. Node: LaTeX export commands239475
  7238. Node: Quoting LaTeX code240637
  7239. Node: Sectioning structure241171
  7240. Node: XOXO export241672
  7241. Node: iCalendar export242112
  7242. Node: Text interpretation243581
  7243. Node: Comment lines244236
  7244. Node: Initial text244631
  7245. Node: Footnotes246300
  7246. Node: Quoted examples247092
  7247. Node: Enhancing text247867
  7248. Node: Export options250316
  7249. Node: Publishing252777
  7250. Ref: Publishing-Footnote-1253738
  7251. Ref: Publishing-Footnote-2253882
  7252. Node: Configuration254033
  7253. Node: Project alist254751
  7254. Node: Sources and destinations255817
  7255. Node: Selecting files256547
  7256. Node: Publishing action257295
  7257. Node: Publishing options258629
  7258. Node: Publishing links261135
  7259. Node: Project page index262650
  7260. Node: Sample configuration263428
  7261. Node: Simple example263920
  7262. Node: Complex example264593
  7263. Node: Triggering publication266669
  7264. Node: Miscellaneous267354
  7265. Node: Completion267988
  7266. Node: Customization269658
  7267. Node: In-buffer settings270241
  7268. Node: The very busy C-c C-c key275911
  7269. Node: Clean view277766
  7270. Node: TTY keys280343
  7271. Node: Interaction281953
  7272. Node: Cooperation282350
  7273. Node: Conflicts286021
  7274. Node: Bugs288031
  7275. Node: Extensions and Hacking289527
  7276. Node: Extensions290252
  7277. Node: Adding hyperlink types292514
  7278. Node: Tables in arbitrary syntax296176
  7279. Node: Radio tables297568
  7280. Node: A LaTeX example300071
  7281. Ref: A LaTeX example-Footnote-1303749
  7282. Ref: A LaTeX example-Footnote-2303897
  7283. Node: Translator functions304332
  7284. Ref: Translator functions-Footnote-1307461
  7285. Node: Radio lists307549
  7286. Ref: Radio lists-Footnote-1308671
  7287. Node: Dynamic blocks308791
  7288. Node: Special agenda views310763
  7289. Node: Using the property API314008
  7290. Node: History and Acknowledgments315606
  7291. Node: Index322287
  7292. Node: Key Index359003
  7293. 
  7294. End Tag Table