org 383 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997
  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.15).
  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.15).
  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 collected from all _agenda files_, the
  3350. files listed in the variable `org-agenda-files'(1). If a directory is
  3351. part of this list, all files with the extension `.org' in this
  3352. 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. ---------- Footnotes ----------
  3368. (1) If the value of that variable is not a list, but a single file
  3369. name, then the list of agenda files will be maintained in that external
  3370. file.
  3371. (2) When using the dispatcher, pressing `<' before selecting a
  3372. command will actually limit the command to the current file, and ignore
  3373. `org-agenda-files' until the next dispatcher command.
  3374. 
  3375. File: org, Node: Agenda dispatcher, Next: Built-in agenda views, Prev: Agenda files, Up: Agenda views
  3376. 10.2 The agenda dispatcher
  3377. ==========================
  3378. The views are created through a dispatcher that should be bound to a
  3379. global key, for example `C-c a' (*note Installation::). In the
  3380. following we will assume that `C-c a' is indeed how the dispatcher is
  3381. accessed and list keyboard access to commands accordingly. After
  3382. pressing `C-c a', an additional letter is required to execute a
  3383. command. The dispatcher offers the following default commands:
  3384. `a'
  3385. Create the calendar-like agenda (*note Weekly/Daily agenda::).
  3386. `t / T'
  3387. Create a list of all TODO items (*note Global TODO list::).
  3388. `m / M'
  3389. Create a list of headlines matching a TAGS expression (*note
  3390. Matching tags and properties::).
  3391. `L'
  3392. Create the timeline view for the current buffer (*note Timeline::).
  3393. `# / !'
  3394. Create a list of stuck projects (*note Stuck projects::).
  3395. `/'
  3396. Search for a regular expression in all agenda files and
  3397. additionally in the files listed in
  3398. `org-agenda-multi-occur-extra-files'. This uses the Emacs command
  3399. `multi-occur'. A prefix argument can be used to specify the
  3400. number of context lines for each match, default is 1.
  3401. `<'
  3402. Restrict an agenda command to the current buffer(1). After
  3403. pressing `<', you still need to press the character selecting the
  3404. command.
  3405. `< <'
  3406. If there is an active region, restrict the following agenda
  3407. command to the region. Otherwise, restrict it to the current
  3408. subtree(2). After pressing `< <', you still need to press the
  3409. character selecting the command.
  3410. You can also define custom commands that will be accessible through
  3411. the dispatcher, just like the default commands. This includes the
  3412. possibility to create extended agenda buffers that contain several
  3413. blocks together, for example the weekly agenda, the global TODO list and
  3414. a number of special tags matches. *Note Custom agenda views::.
  3415. ---------- Footnotes ----------
  3416. (1) For backward compatibility, you can also press `1' to restrict
  3417. to the current buffer.
  3418. (2) For backward compatibility, you can also press `0' to restrict
  3419. to the current buffer.
  3420. 
  3421. File: org, Node: Built-in agenda views, Next: Presentation and sorting, Prev: Agenda dispatcher, Up: Agenda views
  3422. 10.3 The built-in agenda views
  3423. ==============================
  3424. In this section we describe the built-in views.
  3425. * Menu:
  3426. * Weekly/Daily agenda:: The calendar page with current tasks
  3427. * Global TODO list:: All unfinished action items
  3428. * Matching tags and properties:: Structured information with fine-tuned search
  3429. * Timeline:: Time-sorted view for single file
  3430. * Stuck projects:: Find projects you need to review
  3431. 
  3432. File: org, Node: Weekly/Daily agenda, Next: Global TODO list, Prev: Built-in agenda views, Up: Built-in agenda views
  3433. 10.3.1 The weekly/daily agenda
  3434. ------------------------------
  3435. The purpose of the weekly/daily _agenda_ is to act like a page of a
  3436. paper agenda, showing all the tasks for the current week or day.
  3437. `C-c a a'
  3438. Compile an agenda for the current week from a list of org files.
  3439. The agenda shows the entries for each day. With a numeric
  3440. prefix(1) (like `C-u 2 1 C-c a a') you may set the number of days
  3441. to be displayed (see also the variable `org-agenda-ndays')
  3442. Remote editing from the agenda buffer means, for example, that you
  3443. can change the dates of deadlines and appointments from the agenda
  3444. buffer. The commands available in the Agenda buffer are listed in
  3445. *Note Agenda commands::.
  3446. Calendar/Diary integration
  3447. ..........................
  3448. Emacs contains the calendar and diary by Edward M. Reingold. The
  3449. calendar displays a three-month calendar with holidays from different
  3450. countries and cultures. The diary allows you to keep track of
  3451. anniversaries, lunar phases, sunrise/set, recurrent appointments
  3452. (weekly, monthly) and more. In this way, it is quite complementary to
  3453. Org-mode. It can be very useful to combine output from Org-mode with
  3454. the diary.
  3455. In order to include entries from the Emacs diary into Org-mode's
  3456. agenda, you only need to customize the variable
  3457. (setq org-agenda-include-diary t)
  3458. After that, everything will happen automatically. All diary entries
  3459. including holidays, anniversaries etc will be included in the agenda
  3460. buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
  3461. the agenda buffer to jump to the diary file in order to edit existing
  3462. diary entries. The `i' command to insert new entries for the current
  3463. date works in the agenda buffer, as well as the commands `S', `M', and
  3464. `C' to display Sunrise/Sunset times, show lunar phases and to convert
  3465. to other calendars, respectively. `c' can be used to switch back and
  3466. forth between calendar and agenda.
  3467. If you are using the diary only for sexp entries and holidays, it is
  3468. faster to not use the above setting, but instead to copy or even move
  3469. the entries into an Org-mode file. Org-mode evaluates diary-style sexp
  3470. entries, and does it faster because there is no overhead for first
  3471. creating the diary display. Note that the sexp entries must start at
  3472. the left margin, no white space is allowed before them. For example,
  3473. the following segment of an Org-mode file will be processed and entries
  3474. will be made in the agenda:
  3475. * Birthdays and similar stuff
  3476. #+CATEGORY: Holiday
  3477. %%(org-calendar-holiday) ; special function for holiday names
  3478. #+CATEGORY: Ann
  3479. %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old
  3480. %%(diary-anniversary 2 10 1869) Mahatma Gandhi would be %d years old
  3481. Appointment reminders
  3482. .....................
  3483. Org can interact with Emacs appointments notification facility.
  3484. To add all the appointments of your agenda files, use the command
  3485. `org-agenda-to-appt'. This commands also lets you filter through the
  3486. list of your appointments and add only those belonging to a specific
  3487. category or matching a regular expression. See the docstring for
  3488. details.
  3489. ---------- Footnotes ----------
  3490. (1) For backward compatibility, the universal prefix `C-u' causes
  3491. all TODO entries to be listed before the agenda. This feature is
  3492. deprecated, use the dedicated TODO list, or a block agenda instead.
  3493. 
  3494. File: org, Node: Global TODO list, Next: Matching tags and properties, Prev: Weekly/Daily agenda, Up: Built-in agenda views
  3495. 10.3.2 The global TODO list
  3496. ---------------------------
  3497. The global TODO list contains all unfinished TODO items, formatted and
  3498. collected into a single place.
  3499. `C-c a t'
  3500. Show the global TODO list. This collects the TODO items from all
  3501. agenda files (*note Agenda views::) into a single buffer. The
  3502. buffer is in `agenda-mode', so there are commands to examine and
  3503. manipulate the TODO entries directly from that buffer (*note
  3504. Agenda commands::).
  3505. `C-c a T'
  3506. Like the above, but allows selection of a specific TODO keyword.
  3507. You can also do this by specifying a prefix argument to `C-c a t'.
  3508. With a `C-u' prefix you are prompted for a keyword, and you may
  3509. also specify several keywords by separating them with `|' as
  3510. boolean OR operator. With a numeric prefix, the Nth keyword in
  3511. `org-todo-keywords' is selected. The `r' key in the agenda buffer
  3512. regenerates it, and you can give a prefix argument to this command
  3513. to change the selected TODO keyword, for example `3 r'. If you
  3514. often need a search for a specific keyword, define a custom
  3515. command for it (*note Agenda dispatcher::).
  3516. Matching specific TODO keywords can also be done as part of a tags
  3517. search (*note Tag searches::).
  3518. Remote editing of TODO items means that you can change the state of a
  3519. TODO entry with a single key press. The commands available in the TODO
  3520. list are described in *Note Agenda commands::.
  3521. Normally the global todo list simply shows all headlines with TODO
  3522. keywords. This list can become very long. There are two ways to keep
  3523. it more compact:
  3524. - Some people view a TODO item that has been _scheduled_ for
  3525. execution (*note Time stamps::) as no longer _open_. Configure the
  3526. variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
  3527. items from the global TODO list.
  3528. - TODO items may have sublevels to break up the task into subtasks.
  3529. In such cases it may be enough to list only the highest level TODO
  3530. headline and omit the sublevels from the global list. Configure
  3531. the variable `org-agenda-todo-list-sublevels' to get this behavior.
  3532. 
  3533. File: org, Node: Matching tags and properties, Next: Timeline, Prev: Global TODO list, Up: Built-in agenda views
  3534. 10.3.3 Matching Tags and Properties
  3535. -----------------------------------
  3536. If headlines in the agenda files are marked with _tags_ (*note Tags::),
  3537. you can select headlines based on the tags that apply to them and
  3538. collect them into an agenda buffer.
  3539. `C-c a m'
  3540. Produce a list of all headlines that match a given set of tags.
  3541. The command prompts for a selection criterion, which is a boolean
  3542. logic expression with tags, like `+work+urgent-withboss' or
  3543. `work|home' (*note Tags::). If you often need a specific search,
  3544. define a custom command for it (*note Agenda dispatcher::).
  3545. `C-c a M'
  3546. Like `C-c a m', but only select headlines that are also TODO items
  3547. and force checking subitems (see variable
  3548. `org-tags-match-list-sublevels'). Matching specific todo keywords
  3549. together with a tags match is also possible, see *Note Tag
  3550. searches::.
  3551. The commands available in the tags list are described in *Note
  3552. Agenda commands::.
  3553. 
  3554. File: org, Node: Timeline, Next: Stuck projects, Prev: Matching tags and properties, Up: Built-in agenda views
  3555. 10.3.4 Timeline for a single file
  3556. ---------------------------------
  3557. The timeline summarizes all time-stamped items from a single Org-mode
  3558. file in a _time-sorted view_. The main purpose of this command is to
  3559. give an overview over events in a project.
  3560. `C-c a L'
  3561. Show a time-sorted view of the org file, with all time-stamped
  3562. items. When called with a `C-u' prefix, all unfinished TODO
  3563. entries (scheduled or not) are also listed under the current date.
  3564. The commands available in the timeline buffer are listed in *Note
  3565. Agenda commands::.
  3566. 
  3567. File: org, Node: Stuck projects, Prev: Timeline, Up: Built-in agenda views
  3568. 10.3.5 Stuck projects
  3569. ---------------------
  3570. If you are following a system like David Allen's GTD to organize your
  3571. work, one of the "duties" you have is a regular review to make sure
  3572. that all projects move along. A _stuck_ project is a project that has
  3573. no defined next actions, so it will never show up in the TODO lists
  3574. Org-mode produces. During the review, you need to identify such
  3575. projects and define next actions for them.
  3576. `C-c a #'
  3577. List projects that are stuck.
  3578. `C-c a !'
  3579. Customize the variable `org-stuck-projects' to define what a stuck
  3580. project is and how to find it.
  3581. You almost certainly will have to configure this view before it will
  3582. work for you. The built-in default assumes that all your projects are
  3583. level-2 headlines, and that a project is not stuck if it has at least
  3584. one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
  3585. Lets assume that you, in your own way of using Org-mode, identify
  3586. projects with a tag PROJECT, and that you use a todo keyword MAYBE to
  3587. indicate a project that should not be considered yet. Lets further
  3588. assume that the todo keyword DONE marks finished projects, and that NEXT
  3589. and TODO indicate next actions. The tag @SHOP indicates shopping and
  3590. is a next action even without the NEXT tag. Finally, if the project
  3591. contains the special word IGNORE anywhere, it should not be listed
  3592. either. In this case you would start by identifying eligible projects
  3593. with a tags/todo match `+PROJECT/-MAYBE-DONE', and then check for TODO,
  3594. NEXT, @SHOP, and IGNORE in the subtree to identify projects that are
  3595. not stuck. The correct customization for this is
  3596. (setq org-stuck-projects
  3597. '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")
  3598. "\\<IGNORE\\>"))
  3599. 
  3600. File: org, Node: Presentation and sorting, Next: Agenda commands, Prev: Built-in agenda views, Up: Agenda views
  3601. 10.4 Presentation and sorting
  3602. =============================
  3603. Before displaying items in an agenda view, Org-mode visually prepares
  3604. the items and sorts them. Each item occupies a single line. The line
  3605. starts with a _prefix_ that contains the _category_ (*note
  3606. Categories::) of the item and other important information. You can
  3607. customize the prefix using the option `org-agenda-prefix-format'. The
  3608. prefix is followed by a cleaned-up version of the outline headline
  3609. associated with the item.
  3610. * Menu:
  3611. * Categories:: Not all tasks are equal
  3612. * Time-of-day specifications:: How the agenda knows the time
  3613. * Sorting of agenda items:: The order of things
  3614. 
  3615. File: org, Node: Categories, Next: Time-of-day specifications, Prev: Presentation and sorting, Up: Presentation and sorting
  3616. 10.4.1 Categories
  3617. -----------------
  3618. The category is a broad label assigned to each agenda item. By default,
  3619. the category is simply derived from the file name, but you can also
  3620. specify it with a special line in the buffer, like this(1):
  3621. #+CATEGORY: Thesis
  3622. If you would like to have a special CATEGORY for a single entry or a
  3623. (sub)tree, give the entry a `:CATEGORY:' property with the location as
  3624. the value (*note Properties and columns::).
  3625. The display in the agenda buffer looks best if the category is not
  3626. longer than 10 characters.
  3627. ---------- Footnotes ----------
  3628. (1) For backward compatibility, the following also works: If there
  3629. are several such lines in a file, each specifies the category for the
  3630. text below it. The first category also applies to any text before the
  3631. first CATEGORY line. However, using this method is _strongly_
  3632. deprecated as it is incompatible with the outline structure of the
  3633. document. The correct method for setting multiple categories in a
  3634. buffer is using a property.
  3635. 
  3636. File: org, Node: Time-of-day specifications, Next: Sorting of agenda items, Prev: Categories, Up: Presentation and sorting
  3637. 10.4.2 Time-of-Day Specifications
  3638. ---------------------------------
  3639. Org-mode checks each agenda item for a time-of-day specification. The
  3640. time can be part of the time stamp that triggered inclusion into the
  3641. agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
  3642. specified with two time stamps, like
  3643. `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
  3644. In the headline of the entry itself, a time(range) may also appear as
  3645. plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
  3646. Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
  3647. entries are recognized as well.
  3648. For agenda display, Org-mode extracts the time and displays it in a
  3649. standard 24 hour format as part of the prefix. The example times in
  3650. the previous paragraphs would end up in the agenda like this:
  3651. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  3652. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  3653. 19:00...... The Vogon reads his poem
  3654. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  3655. If the agenda is in single-day mode, or for the display of today, the
  3656. timed entries are embedded in a time grid, like
  3657. 8:00...... ------------------
  3658. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  3659. 10:00...... ------------------
  3660. 12:00...... ------------------
  3661. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  3662. 14:00...... ------------------
  3663. 16:00...... ------------------
  3664. 18:00...... ------------------
  3665. 19:00...... The Vogon reads his poem
  3666. 20:00...... ------------------
  3667. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  3668. The time grid can be turned on and off with the variable
  3669. `org-agenda-use-time-grid', and can be configured with
  3670. `org-agenda-time-grid'.
  3671. 
  3672. File: org, Node: Sorting of agenda items, Prev: Time-of-day specifications, Up: Presentation and sorting
  3673. 10.4.3 Sorting of agenda items
  3674. ------------------------------
  3675. Before being inserted into a view, the items are sorted. How this is
  3676. done depends on the type of view.
  3677. * For the daily/weekly agenda, the items for each day are sorted.
  3678. The default order is to first collect all items containing an
  3679. explicit time-of-day specification. These entries will be shown
  3680. at the beginning of the list, as a _schedule_ for the day. After
  3681. that, items remain grouped in categories, in the sequence given by
  3682. `org-agenda-files'. Within each category, items are sorted by
  3683. priority (*note Priorities::), which is composed of the base
  3684. priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
  3685. plus additional increments for overdue scheduled or deadline items.
  3686. * For the TODO list, items remain in the order of categories, but
  3687. within each category, sorting takes place according to priority
  3688. (*note Priorities::).
  3689. * For tags matches, items are not sorted at all, but just appear in
  3690. the sequence in which they are found in the agenda files.
  3691. Sorting can be customized using the variable
  3692. `org-agenda-sorting-strategy'.
  3693. 
  3694. File: org, Node: Agenda commands, Next: Custom agenda views, Prev: Presentation and sorting, Up: Agenda views
  3695. 10.5 Commands in the agenda buffer
  3696. ==================================
  3697. Entries in the agenda buffer are linked back to the org file or diary
  3698. file where they originate. You are not allowed to edit the agenda
  3699. buffer itself, but commands are provided to show and jump to the
  3700. original entry location, and to edit the org-files "remotely" from the
  3701. agenda buffer. In this way, all information is stored only once,
  3702. removing the risk that your agenda and note files may diverge.
  3703. Some commands can be executed with mouse clicks on agenda lines. For
  3704. the other commands, the cursor needs to be in the desired line.
  3705. Motion
  3706. ......
  3707. `n'
  3708. Next line (same as <up> and `C-p').
  3709. `p'
  3710. Previous line (same as <down> and `C-n').
  3711. View/GoTo org file
  3712. ..................
  3713. `mouse-3'
  3714. `<SPC>'
  3715. Display the original location of the item in another window.
  3716. `L'
  3717. Display original location and recenter that window.
  3718. `mouse-2'
  3719. `mouse-1'
  3720. `<TAB>'
  3721. Go to the original location of the item in another window. Under
  3722. Emacs 22, `mouse-1' will also works for this.
  3723. `<RET>'
  3724. Go to the original location of the item and delete other windows.
  3725. `f'
  3726. Toggle Follow mode. In Follow mode, as you move the cursor through
  3727. the agenda buffer, the other window always shows the corresponding
  3728. location in the org file. The initial setting for this mode in new
  3729. agenda buffers can be set with the variable
  3730. `org-agenda-start-with-follow-mode'.
  3731. `b'
  3732. Display the entire subtree of the current item in an indirect
  3733. buffer. With numerical prefix ARG, go up to this level and then
  3734. take that tree. If ARG is negative, go up that many levels. With
  3735. `C-u' prefix, do not remove the previously used indirect buffer.
  3736. `l'
  3737. Toggle Logbook mode. In Logbook mode, entries that where marked
  3738. DONE while logging was on (variable `org-log-done') are shown in
  3739. the agenda, as are entries that have been clocked on that day.
  3740. Change display
  3741. ..............
  3742. `o'
  3743. Delete other windows.
  3744. `d w m y'
  3745. Switch to day/week/month/year view. When switching to day or week
  3746. view, this setting becomes the default for subseqent agenda
  3747. commands. Since month and year views are slow to create, the do
  3748. not become the default.
  3749. `D'
  3750. Toggle the inclusion of diary entries. See *Note Weekly/Daily
  3751. agenda::.
  3752. `g'
  3753. Toggle the time grid on and off. See also the variables
  3754. `org-agenda-use-time-grid' and `org-agenda-time-grid'.
  3755. `r'
  3756. Recreate the agenda buffer, for example to reflect the changes
  3757. after modification of the time stamps of items with S-<left> and
  3758. S-<right>. When the buffer is the global todo list, a prefix
  3759. argument is interpreted to create a selective list for a specific
  3760. TODO keyword.
  3761. `s'
  3762. `C-x C-s'
  3763. Save all Org-mode buffers in the current Emacs session.
  3764. `<right>'
  3765. Display the following `org-agenda-ndays' days. For example, if
  3766. the display covers a week, switch to the following week. With
  3767. prefix arg, go forward that many times `org-agenda-ndays' days.
  3768. `<left>'
  3769. Display the previous dates.
  3770. `.'
  3771. Goto today.
  3772. Remote editing
  3773. ..............
  3774. `0-9'
  3775. Digit argument.
  3776. `C-_'
  3777. Undo a change due to a remote editing command. The change is
  3778. undone both in the agenda buffer and in the remote buffer.
  3779. `t'
  3780. Change the TODO state of the item, both in the agenda and in the
  3781. original org file.
  3782. `C-k'
  3783. Delete the current agenda item along with the entire subtree
  3784. belonging to it in the original Org-mode file. If the text to be
  3785. deleted remotely is longer than one line, the kill needs to be
  3786. confirmed by the user. See variable `org-agenda-confirm-kill'.
  3787. `$'
  3788. Archive the subtree corresponding to the current headline.
  3789. `T'
  3790. Show all tags associated with the current item. Because of
  3791. inheritance, this may be more than the tags listed in the line
  3792. itself.
  3793. `:'
  3794. Set tags for the current headline. If there is an active region
  3795. in the agenda, change a tag for all headings in the region.
  3796. `a'
  3797. Toggle the ARCHIVE tag for the current headline.
  3798. `,'
  3799. Set the priority for the current item. Org-mode prompts for the
  3800. priority character. If you reply with <SPC>, the priority cookie
  3801. is removed from the entry.
  3802. `P'
  3803. Display weighted priority of current item.
  3804. `+'
  3805. `S-<up>'
  3806. Increase the priority of the current item. The priority is
  3807. changed in the original buffer, but the agenda is not resorted.
  3808. Use the `r' key for this.
  3809. `-'
  3810. `S-<down>'
  3811. Decrease the priority of the current item.
  3812. `C-c C-s'
  3813. Schedule this item
  3814. `C-c C-d'
  3815. Set a deadline for this item.
  3816. `S-<right>'
  3817. Change the time stamp associated with the current line by one day
  3818. into the future. With prefix argument, change it by that many
  3819. days. For example, `3 6 5 S-<right>' will change it by a year.
  3820. The stamp is changed in the original org file, but the change is
  3821. not directly reflected in the agenda buffer. Use the `r' key to
  3822. update the buffer.
  3823. `S-<left>'
  3824. Change the time stamp associated with the current line by one day
  3825. into the past.
  3826. `>'
  3827. Change the time stamp associated with the current line to today.
  3828. The key `>' has been chosen, because it is the same as `S-.' on my
  3829. keyboard.
  3830. `I'
  3831. Start the clock on the current item. If a clock is running
  3832. already, it is stopped first.
  3833. `O'
  3834. Stop the previously started clock.
  3835. `X'
  3836. Cancel the currently running clock.
  3837. `J'
  3838. Jump to the running clock in another window.
  3839. Calendar commands
  3840. .................
  3841. `c'
  3842. Open the Emacs calendar and move to the date at the agenda cursor.
  3843. `c'
  3844. When in the calendar, compute and show the Org-mode agenda for the
  3845. date at the cursor.
  3846. `i'
  3847. Insert a new entry into the diary. Prompts for the type of entry
  3848. (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
  3849. new entry in the diary, just as `i d' etc. would do in the
  3850. calendar. The date is taken from the cursor position.
  3851. `M'
  3852. Show the phases of the moon for the three months around current
  3853. date.
  3854. `S'
  3855. Show sunrise and sunset times. The geographical location must be
  3856. set with calendar variables, see documentation of the Emacs
  3857. calendar.
  3858. `C'
  3859. Convert the date at cursor into many other cultural and historic
  3860. calendars.
  3861. `H'
  3862. Show holidays for three month around the cursor date.
  3863. `C-c C-x C-c'
  3864. Export a single iCalendar file containing entries from all agenda
  3865. files.
  3866. Exporting to a file
  3867. ...................
  3868. `C-x C-w'
  3869. Write the agenda view to a file. Depending on the extension of the
  3870. selected file name, the view will be exported as HTML (extension
  3871. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  3872. (any other extension). Use the variable
  3873. `org-agenda-exporter-settings' to set options for `ps-print' and
  3874. for `htmlize' to be used during export.
  3875. Quit and Exit
  3876. .............
  3877. `q'
  3878. Quit agenda, remove the agenda buffer.
  3879. `x'
  3880. Exit agenda, remove the agenda buffer and all buffers loaded by
  3881. Emacs for the compilation of the agenda. Buffers created by the
  3882. user to visit org files will not be removed.
  3883. 
  3884. File: org, Node: Custom agenda views, Prev: Agenda commands, Up: Agenda views
  3885. 10.6 Custom agenda views
  3886. ========================
  3887. Custom agenda commands serve two purposes: to store and quickly access
  3888. frequently used TODO and tags searches, and to create special composite
  3889. agenda buffers. Custom agenda commands will be accessible through the
  3890. dispatcher (*note Agenda dispatcher::), just like the default commands.
  3891. * Menu:
  3892. * Storing searches:: Type once, use often
  3893. * Block agenda:: All the stuff you need in a single buffer
  3894. * Setting Options:: Changing the rules
  3895. * Exporting Agenda Views:: Writing agendas to files.
  3896. * Extracting Agenda Information for other programs::
  3897. 
  3898. File: org, Node: Storing searches, Next: Block agenda, Prev: Custom agenda views, Up: Custom agenda views
  3899. 10.6.1 Storing searches
  3900. -----------------------
  3901. The first application of custom searches is the definition of keyboard
  3902. shortcuts for frequently used searches, either creating an agenda
  3903. buffer, or a sparse tree (the latter covering of course only the current
  3904. buffer). Custom commands are configured in the variable
  3905. `org-agenda-custom-commands'. You can customize this variable, for
  3906. example by pressing `C-c a C'. You can also directly set it with Emacs
  3907. Lisp in `.emacs'. The following example contains all valid search
  3908. types:
  3909. (setq org-agenda-custom-commands
  3910. '(("w" todo "WAITING")
  3911. ("W" todo-tree "WAITING")
  3912. ("u" tags "+BOSS-URGENT")
  3913. ("v" tags-todo "+BOSS-URGENT")
  3914. ("U" tags-tree "+BOSS-URGENT")
  3915. ("f" occur-tree "\\<FIXME\\>")
  3916. ("h" . "HOME+Name tags searches") ; description for "h" prefix
  3917. ("hl" tags "+HOME+Lisa")
  3918. ("hp" tags "+HOME+Peter")
  3919. ("hk" tags "+HOME+Kim")))
  3920. The initial string in each entry defines the keys you have to press
  3921. after the dispatcher command `C-c a' in order to access the command.
  3922. Usually this will be just a single character, but if you have many
  3923. similar commands, you can also define two-letter combinations where the
  3924. first character is the same in several combinations and serves as a
  3925. prefix key(1). The second parameter is the search type, followed by
  3926. the string or regular expression to be used for the matching. The
  3927. example above will therefore define:
  3928. `C-c a w'
  3929. as a global search for TODO entries with `WAITING' as the TODO
  3930. keyword
  3931. `C-c a W'
  3932. as the same search, but only in the current buffer and displaying
  3933. the results as a sparse tree
  3934. `C-c a u'
  3935. as a global tags search for headlines marked `:BOSS:' but not
  3936. `:URGENT:'
  3937. `C-c a v'
  3938. as the same search as `C-c a u', but limiting the search to
  3939. headlines that are also TODO items
  3940. `C-c a U'
  3941. as the same search as `C-c a u', but only in the current buffer and
  3942. displaying the result as a sparse tree
  3943. `C-c a f'
  3944. to create a sparse tree (again: current buffer only) with all
  3945. entries containing the word `FIXME'
  3946. `C-c a h'
  3947. as a prefix command for a HOME tags search where you have to press
  3948. an additional key (`l', `p' or `k') to select a name (Lisa, Peter,
  3949. or Kim) as additional tag to match.
  3950. ---------- Footnotes ----------
  3951. (1) You can provide a description for a prefix key by inserting a
  3952. cons cell with the prefix and the description.
  3953. 
  3954. File: org, Node: Block agenda, Next: Setting Options, Prev: Storing searches, Up: Custom agenda views
  3955. 10.6.2 Block agenda
  3956. -------------------
  3957. Another possibility is the construction of agenda views that comprise
  3958. the results of _several_ commands, each of which creates a block in the
  3959. agenda buffer. The available commands include `agenda' for the daily
  3960. or weekly agenda (as created with `C-c a a'), `alltodo' for the global
  3961. todo list (as constructed with `C-c a t'), and the matching commands
  3962. discussed above: `todo', `tags', and `tags-todo'. Here are two
  3963. examples:
  3964. (setq org-agenda-custom-commands
  3965. '(("h" "Agenda and Home-related tasks"
  3966. ((agenda)
  3967. (tags-todo "HOME")
  3968. (tags "GARDEN")))
  3969. ("o" "Agenda and Office-related tasks"
  3970. ((agenda)
  3971. (tags-todo "WORK")
  3972. (tags "OFFICE")))))
  3973. This will define `C-c a h' to create a multi-block view for stuff you
  3974. need to attend to at home. The resulting agenda buffer will contain
  3975. your agenda for the current week, all TODO items that carry the tag
  3976. `HOME', and also all lines tagged with `GARDEN'. Finally the command
  3977. `C-c a o' provides a similar view for office tasks.
  3978. 
  3979. File: org, Node: Setting Options, Next: Exporting Agenda Views, Prev: Block agenda, Up: Custom agenda views
  3980. 10.6.3 Setting Options for custom commands
  3981. ------------------------------------------
  3982. Org-mode contains a number of variables regulating agenda construction
  3983. and display. The global variables define the behavior for all agenda
  3984. commands, including the custom commands. However, if you want to change
  3985. some settings just for a single custom view, you can do so. Setting
  3986. options requires inserting a list of variable names and values at the
  3987. right spot in `org-agenda-custom-commands'. For example:
  3988. (setq org-agenda-custom-commands
  3989. '(("w" todo "WAITING"
  3990. ((org-agenda-sorting-strategy '(priority-down))
  3991. (org-agenda-prefix-format " Mixed: ")))
  3992. ("U" tags-tree "+BOSS-URGENT"
  3993. ((org-show-following-heading nil)
  3994. (org-show-hierarchy-above nil)))))
  3995. Now the `C-c a w' command will sort the collected entries only by
  3996. priority, and the prefix format is modified to just say ` Mixed:'
  3997. instead of giving the category of the entry. The sparse tags tree of
  3998. `C-c a U' will now turn out ultra-compact, because neither the headline
  3999. hierarchy above the match, nor the headline following the match will be
  4000. shown.
  4001. For command sets creating a block agenda,
  4002. `org-agenda-custom-commands' has two separate spots for setting
  4003. options. You can add options that should be valid for just a single
  4004. command in the set, and options that should be valid for all commands in
  4005. the set. The former are just added to the command entry, the latter
  4006. must come after the list of command entries. Going back to the block
  4007. agenda example (*note Block agenda::), let's change the sorting strategy
  4008. for the `C-c a h' commands to `priority-down', but let's sort the
  4009. results for GARDEN tags query in the opposite order, `priority-up'.
  4010. This would look like this:
  4011. (setq org-agenda-custom-commands
  4012. '(("h" "Agenda and Home-related tasks"
  4013. ((agenda)
  4014. (tags-todo "HOME")
  4015. (tags "GARDEN"
  4016. ((org-agenda-sorting-strategy '(priority-up)))))
  4017. ((org-agenda-sorting-strategy '(priority-down))))
  4018. ("o" "Agenda and Office-related tasks"
  4019. ((agenda)
  4020. (tags-todo "WORK")
  4021. (tags "OFFICE")))))
  4022. As you see, the values and parenthesis setting is a little complex.
  4023. When in doubt, use the customize interface to set this variable - it
  4024. fully supports its structure. Just one caveat: When setting options in
  4025. this interface, the _values_ are just lisp expressions. So if the
  4026. value is a string, you need to add the double quotes around the value
  4027. yourself.
  4028. 
  4029. File: org, Node: Exporting Agenda Views, Next: Extracting Agenda Information for other programs, Prev: Setting Options, Up: Custom agenda views
  4030. 10.6.4 Exporting Agenda Views
  4031. -----------------------------
  4032. If you are away from your computer, it can be very useful to have a
  4033. printed version of some agenda views to carry around. Org-mode can
  4034. export custom agenda views as plain text, HTML(1) and postscript. If
  4035. you want to do this only occasionally, use the command
  4036. `C-x C-w'
  4037. Write the agenda view to a file. Depending on the extension of the
  4038. selected file name, the view will be exported as HTML (extension
  4039. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  4040. (any other extension). Use the variable
  4041. `org-agenda-exporter-settings' to set options for `ps-print' and
  4042. for `htmlize' to be used during export, for example
  4043. (setq org-agenda-exporter-settings
  4044. '((ps-number-of-columns 2)
  4045. (ps-landscape-mode t)
  4046. (htmlize-output-type 'css)))
  4047. If you need to export certain agenda views frequently, you can
  4048. associate any custom agenda command with a list of output file names
  4049. (2). Here is an example that first does define custom commands for the
  4050. agenda and the global todo list, together with a number of files to
  4051. which to export them. Then we define two block agenda commands and
  4052. specify filenames for them as well. File names can be relative to the
  4053. current working directory, or absolute.
  4054. (setq org-agenda-custom-commands
  4055. '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
  4056. ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
  4057. ("h" "Agenda and Home-related tasks"
  4058. ((agenda)
  4059. (tags-todo "HOME")
  4060. (tags "GARDEN"))
  4061. nil
  4062. ("~/views/home.html"))
  4063. ("o" "Agenda and Office-related tasks"
  4064. ((agenda)
  4065. (tags-todo "WORK")
  4066. (tags "OFFICE"))
  4067. nil
  4068. ("~/views/office.ps"))))
  4069. The extension of the file name determines the type of export. If it
  4070. is `.html', Org-mode will use the `htmlize.el' package to convert the
  4071. buffer to HTML and save it to this file name. If the extension is
  4072. `.ps', `ps-print-buffer-with-faces' is used to produce postscript
  4073. output. Any other extension produces a plain ASCII file.
  4074. The export files are _not_ created when you use one of those
  4075. commands interactively. Instead, there is a special command to produce
  4076. _all_ specified files in one step:
  4077. `C-c a e'
  4078. Export all agenda views that have export filenames associated with
  4079. them.
  4080. You can use the options section of the custom agenda commands to also
  4081. set options for the export commands. For example:
  4082. (setq org-agenda-custom-commands
  4083. '(("X" agenda ""
  4084. ((ps-number-of-columns 2)
  4085. (ps-landscape-mode t)
  4086. (org-agenda-prefix-format " [ ] ")
  4087. (org-agenda-with-colors nil)
  4088. (org-agenda-remove-tags t))
  4089. ("theagenda.ps"))))
  4090. This command sets two options for the postscript exporter, to make it
  4091. print in two columns in landscape format - the resulting page can be cut
  4092. in two and then used in a paper agenda. The remaining settings modify
  4093. the agenda prefix to omit category and scheduling information, and
  4094. instead include a checkbox to check off items. We also remove the tags
  4095. to make the lines compact, and we don't want to use colors for the
  4096. black-and-white printer. Settings specified in
  4097. `org-agenda-exporter-settings' will also apply, but the settings in
  4098. `org-agenda-custom-commands' take precedence.
  4099. From the command line you may also use
  4100. emacs -f org-batch-store-agenda-views -kill
  4101. or, if you need to modify some parameters
  4102. emacs -eval '(org-batch-store-agenda-views \
  4103. org-agenda-ndays 30 \
  4104. org-agenda-start-day "2007-11-01" \
  4105. org-agenda-include-diary nil \
  4106. org-agenda-files (quote ("~/org/project.org")))' \
  4107. -kill
  4108. which will create the agenda views restricted to the file
  4109. `~/org/project.org', without diary entries and with 30 days extent.
  4110. ---------- Footnotes ----------
  4111. (1) You need to install Hrvoje Niksic' `htmlize.el'.
  4112. (2) If you want to store standard views like the weekly agenda or
  4113. the global TODO list as well, you need to define custom commands for
  4114. them in order to be able to specify filenames.
  4115. 
  4116. File: org, Node: Extracting Agenda Information for other programs, Prev: Exporting Agenda Views, Up: Custom agenda views
  4117. 10.6.5 Extracting Agenda Information for other programs
  4118. -------------------------------------------------------
  4119. Org-mode provides commands to access agenda information for the command
  4120. line in emacs batch mode. This extracted information can be sent
  4121. directly to a printer, or it can be read by a program that does further
  4122. processing of the data. The first of these commands is the function
  4123. `org-batch-agenda', that produces an agenda view and sends it as ASCII
  4124. text to STDOUT. The command takes a single string as parameter. If
  4125. the string has length 1, it is used as a key to one of the commands you
  4126. have configured in `org-agenda-custom-commands', basically any key you
  4127. can use after `C-c a'. For example, to directly print the current TODO
  4128. list, you could use
  4129. emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
  4130. If the parameter is a string with 2 or more characters, it is used
  4131. as a tags/todo match string. For example, to print your local shopping
  4132. list (all items with the tag `shop', but excluding the tag `NewYork'),
  4133. you could use
  4134. emacs -batch -l ~/.emacs \
  4135. -eval '(org-batch-agenda "+shop-NewYork")' | lpr
  4136. You may also modify parameters on the fly like this:
  4137. emacs -batch -l ~/.emacs \
  4138. -eval '(org-batch-agenda "a" \
  4139. org-agenda-ndays 30 \
  4140. org-agenda-include-diary nil \
  4141. org-agenda-files (quote ("~/org/project.org")))' \
  4142. | lpr
  4143. which will produce a 30 day agenda, fully restricted to the Org file
  4144. `~/org/projects.org', not even including the diary.
  4145. If you want to process the agenda data in more sophisticated ways,
  4146. you can use the command `org-batch-agenda-csv' to get a comma-separated
  4147. list of values for each agenda item. Each line in the output will
  4148. contain a number of fields separated by commas. The fields in a line
  4149. are:
  4150. category The category of the item
  4151. head The headline, without TODO kwd, TAGS and PRIORITY
  4152. type The type of the agenda entry, can be
  4153. todo selected in TODO match
  4154. tagsmatch selected in tags match
  4155. diary imported from diary
  4156. deadline a deadline
  4157. scheduled scheduled
  4158. timestamp appointment, selected by timestamp
  4159. closed entry was closed on date
  4160. upcoming-deadline warning about nearing deadline
  4161. past-scheduled forwarded scheduled item
  4162. block entry has date block including date
  4163. todo The todo keyword, if any
  4164. tags All tags including inherited ones, separated by colons
  4165. date The relevant date, like 2007-2-14
  4166. time The time, like 15:00-16:50
  4167. extra String with extra planning info
  4168. priority-l The priority letter if any was given
  4169. priority-n The computed numerical priority
  4170. Time and date will only be given if a timestamp (or deadline/scheduled)
  4171. lead to the selection of the item.
  4172. A CSV list like this is very easy to use in a post processing script.
  4173. For example, here is a Perl program that gets the TODO list from
  4174. Emacs/org-mode and prints all the items, preceded by a checkbox:
  4175. #!/usr/bin/perl
  4176. # define the Emacs command to run
  4177. $cmd = "emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv \"t\")'";
  4178. # run it and capture the output
  4179. $agenda = qx{$cmd 2>/dev/null};
  4180. # loop over all lines
  4181. foreach $line (split(/\n/,$agenda)) {
  4182. # get the individual values
  4183. ($category,$head,$type,$todo,$tags,$date,$time,$extra,
  4184. $priority_l,$priority_n) = split(/,/,$line);
  4185. # proccess and print
  4186. print "[ ] $head\n";
  4187. }
  4188. 
  4189. File: org, Node: Embedded LaTeX, Next: Exporting, Prev: Agenda views, Up: Top
  4190. 11 Embedded LaTeX
  4191. *****************
  4192. Plain ASCII is normally sufficient for almost all note taking. One
  4193. exception, however, are scientific notes which need to be able to
  4194. contain mathematical symbols and the occasional formula. LaTeX(1) is
  4195. widely used to typeset scientific documents. Org-mode supports
  4196. embedding LaTeX code into its files, because many academics are used to
  4197. read LaTeX source code, and because it can be readily processed into
  4198. images for HTML production.
  4199. It is not necessary to mark LaTeX macros and code in any special way.
  4200. If you observe a few conventions, Org-mode knows how to find it and what
  4201. to do with it.
  4202. * Menu:
  4203. * Math symbols:: TeX macros for symbols and Greek letters
  4204. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  4205. * LaTeX fragments:: Complex formulas made easy
  4206. * Processing LaTeX fragments:: Previewing LaTeX processing
  4207. * CDLaTeX mode:: Speed up entering of formulas
  4208. ---------- Footnotes ----------
  4209. (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
  4210. Many of the features described here as "LaTeX" are really from TeX, but
  4211. for simplicity I am blurring this distinction.
  4212. 
  4213. File: org, Node: Math symbols, Next: Subscripts and Superscripts, Prev: Embedded LaTeX, Up: Embedded LaTeX
  4214. 11.1 Math symbols
  4215. =================
  4216. You can use LaTeX macros to insert special symbols like `\alpha' to
  4217. indicate the Greek letter, or `\to' to indicate an arrow. Completion
  4218. for these macros is available, just type `\' and maybe a few letters,
  4219. and press `M-<TAB>' to see possible completions. Unlike LaTeX code,
  4220. Org-mode allows these macros to be present without surrounding math
  4221. delimiters, for example:
  4222. Angles are written as Greek letters \alpha, \beta and \gamma.
  4223. During HTML export (*note HTML export::), these symbols are
  4224. translated into the proper syntax for HTML, for the above examples this
  4225. is `&alpha;' and `&rarr;', respectively.
  4226. 
  4227. File: org, Node: Subscripts and Superscripts, Next: LaTeX fragments, Prev: Math symbols, Up: Embedded LaTeX
  4228. 11.2 Subscripts and Superscripts
  4229. ================================
  4230. Just like in LaTeX, `^' and `_' are used to indicate super- and
  4231. subscripts. Again, these can be used without embedding them in
  4232. math-mode delimiters. To increase the readability of ASCII text, it is
  4233. not necessary (but OK) to surround multi-character sub- and superscripts
  4234. with curly braces. For example
  4235. The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
  4236. the sun is R_{sun} = 6.96 x 10^8 m.
  4237. To avoid interpretation as raised or lowered text, you can quote `^'
  4238. and `_' with a backslash: `\_' and `\^'.
  4239. During HTML export (*note HTML export::), subscript and superscripts
  4240. are surrounded with `<sub>' and `<sup>' tags, respectively.
  4241. 
  4242. File: org, Node: LaTeX fragments, Next: Processing LaTeX fragments, Prev: Subscripts and Superscripts, Up: Embedded LaTeX
  4243. 11.3 LaTeX fragments
  4244. ====================
  4245. With symbols, sub- and superscripts, HTML is pretty much at its end when
  4246. it comes to representing mathematical formulas(1). More complex
  4247. expressions need a dedicated formula processor. To this end, Org-mode
  4248. can contain arbitrary LaTeX fragments. It provides commands to preview
  4249. the typeset result of these fragments, and upon export to HTML, all
  4250. fragments will be converted to images and inlined into the HTML
  4251. document(2). For this to work you need to be on a system with a working
  4252. LaTeX installation. You also need the `dvipng' program, available at
  4253. `http://sourceforge.net/projects/dvipng/'. The LaTeX header that will
  4254. be used when processing a fragment can be configured with the variable
  4255. `org-format-latex-header'.
  4256. LaTeX fragments don't need any special marking at all. The following
  4257. snippets will be identified as LaTeX source code:
  4258. * Environments of any kind. The only requirement is that the
  4259. `\begin' statement appears on a new line, preceded by only
  4260. whitespace.
  4261. * Text within the usual LaTeX math delimiters. To avoid conflicts
  4262. with currency specifications, single `$' characters are only
  4263. recognized as math delimiters if the enclosed text contains at
  4264. most two line breaks, is directly attached to the `$' characters
  4265. with no whitespace in between, and if the closing `$' is followed
  4266. by whitespace or punctuation. For the other delimiters, there is
  4267. no such restriction, so when in doubt, use `\(...\)' as inline
  4268. math delimiters.
  4269. For example:
  4270. \begin{equation} % arbitrary environments,
  4271. x=\sqrt{b} % even tables, figures
  4272. \end{equation} % etc
  4273. If $a^2=b$ and \( b=2 \), then the solution must be
  4274. either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
  4275. If you need any of the delimiter ASCII sequences for other purposes, you
  4276. can configure the option `org-format-latex-options' to deselect the
  4277. ones you do not wish to have interpreted by the LaTeX converter.
  4278. ---------- Footnotes ----------
  4279. (1) Yes, there is MathML, but that is not yet fully supported by
  4280. many browsers, and there is no decent converter for turning LaTeX or
  4281. ASCII representations of formulas into MathML. So for the time being,
  4282. converting formulas into images seems the way to go.
  4283. (2) The LaTeX export will not use images for displaying LaTeX
  4284. fragments but include these fragments directly into the LaTeX code.
  4285. 
  4286. File: org, Node: Processing LaTeX fragments, Next: CDLaTeX mode, Prev: LaTeX fragments, Up: Embedded LaTeX
  4287. 11.4 Processing LaTeX fragments
  4288. ===============================
  4289. LaTeX fragments can be processed to produce a preview images of the
  4290. typeset expressions:
  4291. `C-c C-x C-l'
  4292. Produce a preview image of the LaTeX fragment at point and overlay
  4293. it over the source code. If there is no fragment at point,
  4294. process all fragments in the current entry (between two
  4295. headlines). When called with a prefix argument, process the
  4296. entire subtree. When called with two prefix arguments, or when
  4297. the cursor is before the first headline, process the entire buffer.
  4298. `C-c C-c'
  4299. Remove the overlay preview images.
  4300. During HTML export (*note HTML export::), all LaTeX fragments are
  4301. converted into images and inlined into the document if the following
  4302. setting is active:
  4303. (setq org-export-with-LaTeX-fragments t)
  4304. 
  4305. File: org, Node: CDLaTeX mode, Prev: Processing LaTeX fragments, Up: Embedded LaTeX
  4306. 11.5 Using CDLaTeX to enter math
  4307. ================================
  4308. CDLaTeX-mode is a minor mode that is normally used in combination with a
  4309. major LaTeX mode like AUCTeX in order to speed-up insertion of
  4310. environments and math templates. Inside Org-mode, you can make use of
  4311. some of the features of cdlatex-mode. You need to install `cdlatex.el'
  4312. and `texmathp.el' (the latter comes also with AUCTeX) from
  4313. `http://www.astro.uva.nl/~dominik/Tools/cdlatex'. Don't turn
  4314. cdlatex-mode itself under Org-mode, but use the light version
  4315. `org-cdlatex-mode' that comes as part of Org-mode. Turn it on for the
  4316. current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
  4317. with
  4318. (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
  4319. When this mode is enabled, the following features are present (for
  4320. more details see the documentation of cdlatex-mode):
  4321. * Environment templates can be inserted with `C-c {'.
  4322. * The <TAB> key will do template expansion if the cursor is inside a
  4323. LaTeX fragment(1). For example, <TAB> will expand `fr' to
  4324. `\frac{}{}' and position the cursor correctly inside the first
  4325. brace. Another <TAB> will get you into the second brace. Even
  4326. outside fragments, <TAB> will expand environment abbreviations at
  4327. the beginning of a line. For example, if you write `equ' at the
  4328. beginning of a line and press <TAB>, this abbreviation will be
  4329. expanded to an `equation' environment. To get a list of all
  4330. abbreviations, type `M-x cdlatex-command-help'.
  4331. * Pressing `_' and `^' inside a LaTeX fragment will insert these
  4332. characters together with a pair of braces. If you use <TAB> to
  4333. move out of the braces, and if the braces surround only a single
  4334. character or macro, they are removed again (depending on the
  4335. variable `cdlatex-simplify-sub-super-scripts').
  4336. * Pressing the backquote ``' followed by a character inserts math
  4337. macros, also outside LaTeX fragments. If you wait more than 1.5
  4338. seconds after the backquote, a help window will pop up.
  4339. * Pressing the normal quote `'' followed by another character
  4340. modifies the symbol before point with an accent or a font. If you
  4341. wait more than 1.5 seconds after the backquote, a help window will
  4342. pop up. Character modification will work only inside LaTeX
  4343. fragments, outside the quote is normal.
  4344. ---------- Footnotes ----------
  4345. (1) Org-mode has a method to test if the cursor is inside such a
  4346. fragment, see the documentation of the function
  4347. `org-inside-LaTeX-fragment-p'.
  4348. 
  4349. File: org, Node: Exporting, Next: Publishing, Prev: Embedded LaTeX, Up: Top
  4350. 12 Exporting
  4351. ************
  4352. Org-mode documents can be exported into a variety of other formats. For
  4353. printing and sharing of notes, ASCII export produces a readable and
  4354. simple version of an Org-mode file. HTML export allows you to publish a
  4355. notes file on the web, while the XOXO format provides a solid base for
  4356. exchange with a broad range of other applications. LaTeX export lets
  4357. you use Org-mode and its structured editing functions to easily create
  4358. LaTeX files. To incorporate entries with associated times like
  4359. deadlines or appointments into a desktop calendar program like iCal,
  4360. Org-mode can also produce extracts in the iCalendar format. Currently
  4361. Org-mode only supports export, not import of these different formats.
  4362. When exporting, Org-mode uses special conventions to enrich the
  4363. output produced. *Note Text interpretation::, for more details.
  4364. `C-c C-e'
  4365. Dispatcher for export and publishing commands. Displays a
  4366. help-window listing the additional key(s) needed to launch an
  4367. export or publishing command.
  4368. * Menu:
  4369. * ASCII export:: Exporting to plain ASCII
  4370. * HTML export:: Exporting to HTML
  4371. * LaTeX export:: Exporting to LaTeX
  4372. * XOXO export:: Exporting to XOXO
  4373. * iCalendar export:: Exporting in iCalendar format
  4374. * Text interpretation:: How the exporter looks at the file
  4375. 
  4376. File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
  4377. 12.1 ASCII export
  4378. =================
  4379. ASCII export produces a simple and very readable version of an Org-mode
  4380. file.
  4381. `C-c C-e a'
  4382. Export as ASCII file. For an org file `myfile.org', the ASCII file
  4383. will be `myfile.txt'. The file will be overwritten without
  4384. warning. If there is an active region, only the region will be
  4385. exported. If the selected region is a single tree, the tree head
  4386. will become the document title. If the tree head entry has or
  4387. inherits an EXPORT_FILE_NAME property, that name will be used for
  4388. the export.
  4389. `C-c C-e v a'
  4390. Export only the visible part of the document.
  4391. In the exported version, the first 3 outline levels will become
  4392. headlines, defining a general document structure. Additional levels
  4393. will be exported as itemized lists. If you want that transition to
  4394. occur at a different level, specify it with a prefix argument. For
  4395. example,
  4396. C-1 C-c C-e a
  4397. creates only top level headlines and does the rest as items. When
  4398. headlines are converted to items, the indentation of the text following
  4399. the headline is changed to fit nicely under the item. This is done with
  4400. the assumption that the first bodyline indicates the base indentation of
  4401. the body text. Any indentation larger than this is adjusted to preserve
  4402. the layout relative to the first line. Should there be lines with less
  4403. indentation than the first, these are left alone.
  4404. 
  4405. File: org, Node: HTML export, Next: LaTeX export, Prev: ASCII export, Up: Exporting
  4406. 12.2 HTML export
  4407. ================
  4408. Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
  4409. HTML formatting, in ways similar to John Grubers _markdown_ language,
  4410. but with additional support for tables.
  4411. * Menu:
  4412. * HTML Export commands:: How to invoke LaTeX export
  4413. * Quoting HTML tags:: Using direct HTML in Org-mode
  4414. * Links:: Transformation of links for HTML
  4415. * Images:: How to include images
  4416. * CSS support:: Changing the appearence of the output
  4417. 
  4418. File: org, Node: HTML Export commands, Next: Quoting HTML tags, Prev: HTML export, Up: HTML export
  4419. 12.2.1 HTML export commands
  4420. ---------------------------
  4421. `C-c C-e h'
  4422. Export as HTML file `myfile.html'. For an org file `myfile.org',
  4423. the ASCII file will be `myfile.html'. The file will be
  4424. overwritten without warning. If there is an active region, only
  4425. the region will be exported. If the selected region is a single
  4426. tree, the tree head will become the document title. If the tree
  4427. head entry has or inherits an EXPORT_FILE_NAME property, that name
  4428. will be used for the export.
  4429. `C-c C-e b'
  4430. Export as HTML file and immediately open it with a browser.
  4431. `C-c C-e H'
  4432. Export to a temporary buffer, do not create a file.
  4433. `C-c C-e R'
  4434. Export the active region to a temporary buffer. With prefix arg,
  4435. do not produce file header and foot, but just the plain HTML
  4436. section for the region. This is good for cut-and-paste operations.
  4437. `C-c C-e v h'
  4438. `C-c C-e v b'
  4439. `C-c C-e v H'
  4440. `C-c C-e v R'
  4441. Export only the visible part of the document.
  4442. `M-x org-export-region-as-html'
  4443. Convert the region to HTML under the assumption that it was
  4444. org-mode syntax before. This is a global command that can be
  4445. invoked in any buffer.
  4446. `M-x org-replace-region-by-HTML'
  4447. Replace the active region (assumed to be in Org-mode syntax) by
  4448. HTML code.
  4449. In the exported version, the first 3 outline levels will become
  4450. headlines, defining a general document structure. Additional levels
  4451. will be exported as itemized lists. If you want that transition to
  4452. occur at a different level, specify it with a prefix argument. For
  4453. example,
  4454. C-2 C-c C-e b
  4455. creates two levels of headings and does the rest as items.
  4456. 
  4457. File: org, Node: Quoting HTML tags, Next: Links, Prev: HTML Export commands, Up: HTML export
  4458. 12.2.2 Quoting HTML tags
  4459. ------------------------
  4460. Plain `<' and `>' are always transformed to `&lt;' and `&gt;' in HTML
  4461. export. If you want to include simple HTML tags which should be
  4462. interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
  4463. Note that this really works only for simple tags. For more extensive
  4464. HTML that should be copied verbatim to the exported file use either
  4465. #+HTML: Literal HTML code for export
  4466. or
  4467. #+BEGIN_HTML
  4468. All lines between these markers are exported literally
  4469. #+END_HTML
  4470. 
  4471. File: org, Node: Links, Next: Images, Prev: Quoting HTML tags, Up: HTML export
  4472. 12.2.3 Links
  4473. ------------
  4474. Internal links (*note Internal links::) will continue to work in HTML
  4475. files only if they match a dedicated `<<target>>'. Automatic links
  4476. created by radio targets (*note Radio targets::) will also work in the
  4477. HTML file. Links to external files will still work if the HTML file is
  4478. in the same directory as the Org-mode file. Links to other `.org'
  4479. files will be translated into HTML links under the assumption that an
  4480. HTML version also exists of the linked file. For information related to
  4481. linking files while publishing them to a publishing directory see *Note
  4482. Publishing links::.
  4483. 
  4484. File: org, Node: Images, Next: CSS support, Prev: Links, Up: HTML export
  4485. 12.2.4 Images
  4486. -------------
  4487. HTML export can inline images given as links in the Org-mode file, and
  4488. it can make an image the clickable part of a link. By default(1),
  4489. images are inlined if a link does not have a description. So
  4490. `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
  4491. image]]' will just produce a link `the image' that points to the image.
  4492. If the description part itself is a `file:' link or a `http:' URL
  4493. pointing to an image, this image will be inlined and activated so that
  4494. clicking on the image will activate the link. For example, to include
  4495. a thumbnail that will link to a high resolution version of the image,
  4496. you could use:
  4497. [[file:highres.jpg][file:thumb.jpg]]
  4498. and you could use `http' addresses just as well.
  4499. ---------- Footnotes ----------
  4500. (1) but see the variable `org-export-html-inline-images'
  4501. 
  4502. File: org, Node: CSS support, Prev: Images, Up: HTML export
  4503. 12.2.5 CSS support
  4504. ------------------
  4505. You can also give style information for the exported file. The HTML
  4506. exporter assigns the following CSS classes to appropriate parts of the
  4507. document - your style specifications may change these:
  4508. .todo TODO keywords
  4509. .done the DONE keyword
  4510. .timestamp time stamp
  4511. .timestamp-kwd keyword associated with a time stamp, like SCHEDULED
  4512. .tag tag in a headline
  4513. .target target for links
  4514. The default style specification can be configured through the option
  4515. `org-export-html-style'. If you want to use a file-local style, you
  4516. may use file variables, best wrapped into a COMMENT section at the end
  4517. of the outline tree. For example(1):
  4518. * COMMENT html style specifications
  4519. # Local Variables:
  4520. # org-export-html-style: " <style type=\"text/css\">
  4521. # p {font-weight: normal; color: gray; }
  4522. # h1 {color: black; }
  4523. # </style>"
  4524. # End:
  4525. Remember to execute `M-x normal-mode' after changing this to make
  4526. the new style visible to Emacs. This command restarts org-mode for the
  4527. current buffer and forces Emacs to re-evaluate the local variables
  4528. section in the buffer.
  4529. ---------- Footnotes ----------
  4530. (1) Under Emacs 21, the continuation lines for a variable value
  4531. should have no `#' at the start of the line.
  4532. 
  4533. File: org, Node: LaTeX export, Next: XOXO export, Prev: HTML export, Up: Exporting
  4534. 12.3 LaTeX export
  4535. =================
  4536. Org-mode contains a LaTeX exporter written by Bastien Guerry.
  4537. * Menu:
  4538. * LaTeX export commands:: How to invoke LaTeX export
  4539. * Quoting LaTeX code:: Incorporating literal LaTeX code
  4540. * Sectioning structure::
  4541. 
  4542. File: org, Node: LaTeX export commands, Next: Quoting LaTeX code, Prev: LaTeX export, Up: LaTeX export
  4543. 12.3.1 LaTeX export commands
  4544. ----------------------------
  4545. `C-c C-e l'
  4546. Export as LaTeX file `myfile.tex'.
  4547. `C-c C-e L'
  4548. Export to a temporary buffer, do not create a file.
  4549. `C-c C-e v l'
  4550. `C-c C-e v L'
  4551. Export only the visible part of the document.
  4552. `M-x org-export-region-as-latex'
  4553. Convert the region to LaTeX under the assumption that it was
  4554. org-mode syntax before. This is a global command that can be
  4555. invoked in any buffer.
  4556. `M-x org-replace-region-by-latex'
  4557. Replace the active region (assumed to be in Org-mode syntax) by
  4558. LaTeX code.
  4559. In the exported version, the first 3 outline levels will become
  4560. headlines, defining a general document structure. Additional levels
  4561. will be exported as description lists. The exporter can ignore them or
  4562. convert them to a custom string depending on `org-latex-low-levels'.
  4563. If you want that transition to occur at a different level, specify it
  4564. with a prefix argument. For example,
  4565. C-2 C-c C-e l
  4566. creates two levels of headings and does the rest as items.
  4567. 
  4568. File: org, Node: Quoting LaTeX code, Next: Sectioning structure, Prev: LaTeX export commands, Up: LaTeX export
  4569. 12.3.2 Quoting LaTeX code
  4570. -------------------------
  4571. Embedded LaTeX as described in *Note Embedded LaTeX:: will be correctly
  4572. inserted into the LaTeX file. Forthermore, you can add special code
  4573. that should only be present in LaTeX export with the following
  4574. constructs:
  4575. #+LaTeX: Literal LaTeX code for export
  4576. or
  4577. #+BEGIN_LaTeX
  4578. All lines between these markers are exported literally
  4579. #+END_LaTeX
  4580. 
  4581. File: org, Node: Sectioning structure, Prev: Quoting LaTeX code, Up: LaTeX export
  4582. 12.3.3 Sectioning structure
  4583. ---------------------------
  4584. By default, the LaTeX output uses the class `article'.
  4585. You can change this globally by setting a different value for
  4586. `org-export-latex-default-class' or locally by adding an option like
  4587. `#+LaTeX_CLASS: myclass' in your file. The class should be listed in
  4588. `org-export-latex-classes', where you can also define the sectioning
  4589. structure for each class.
  4590. 
  4591. File: org, Node: XOXO export, Next: iCalendar export, Prev: LaTeX export, Up: Exporting
  4592. 12.4 XOXO export
  4593. ================
  4594. Org-mode contains an exporter that produces XOXO-style output.
  4595. Currently, this exporter only handles the general outline structure and
  4596. does not interpret any additional Org-mode features.
  4597. `C-c C-e x'
  4598. Export as XOXO file `myfile.html'.
  4599. `C-c C-e v x'
  4600. Export only the visible part of the document.
  4601. 
  4602. File: org, Node: iCalendar export, Next: Text interpretation, Prev: XOXO export, Up: Exporting
  4603. 12.5 iCalendar export
  4604. =====================
  4605. Some people like to use Org-mode for keeping track of projects, but
  4606. still prefer a standard calendar application for anniversaries and
  4607. appointments. In this case it can be useful to have deadlines and
  4608. other time-stamped items in Org-mode files show up in the calendar
  4609. application. Org-mode can export calendar information in the standard
  4610. iCalendar format. If you also want to have TODO entries included in the
  4611. export, configure the variable `org-icalendar-include-todo'.
  4612. `C-c C-e i'
  4613. Create iCalendar entries for the current file and store them in
  4614. the same directory, using a file extension `.ics'.
  4615. `C-c C-e I'
  4616. Like `C-c C-e i', but do this for all files in `org-agenda-files'.
  4617. For each of these files, a separate iCalendar file will be
  4618. written.
  4619. `C-c C-e c'
  4620. Create a single large iCalendar file from all files in
  4621. `org-agenda-files' and write it to the file given by
  4622. `org-combined-agenda-icalendar-file'.
  4623. The export will honor SUMMARY, DESCRIPTION and LOCATION properties if
  4624. the selected entries have them. If not, the summary will be derived
  4625. from the headline, and the description from the body (limited to
  4626. `org-icalendar-include-body' characters).
  4627. How this calendar is best read and updated, depends on the
  4628. application you are using. The FAQ covers this issue.
  4629. 
  4630. File: org, Node: Text interpretation, Prev: iCalendar export, Up: Exporting
  4631. 12.6 Text interpretation by the exporter
  4632. ========================================
  4633. The exporter backends interpret additional structure in the Org-mode
  4634. file in order to produce better output.
  4635. * Menu:
  4636. * Comment lines:: Some lines will not be exported
  4637. * Initial text:: Text before the first headline
  4638. * Footnotes:: Numbers like [1]
  4639. * Quoted examples:: Inserting quoted chnuks of text
  4640. * Enhancing text:: Subscripts, symbols and more
  4641. * Export options:: How to influence the export settings
  4642. 
  4643. File: org, Node: Comment lines, Next: Initial text, Prev: Text interpretation, Up: Text interpretation
  4644. 12.6.1 Comment lines
  4645. --------------------
  4646. Lines starting with `#' in column zero are treated as comments and will
  4647. never be exported. Also entire subtrees starting with the word
  4648. `COMMENT' will never be exported.
  4649. `C-c ;'
  4650. Toggle the COMMENT keyword at the beginning of an entry.
  4651. 
  4652. File: org, Node: Initial text, Next: Footnotes, Prev: Comment lines, Up: Text interpretation
  4653. 12.6.2 Text before the first headline
  4654. -------------------------------------
  4655. Org-mode normally ignores any text before the first headline when
  4656. exporting, leaving this region for internal links to speed up navigation
  4657. etc. However, in publishing-oriented files, you might want to have some
  4658. text before the first headline, like a small introduction, special HTML
  4659. code with a navigation bar, etc. You can ask to have this part of the
  4660. file exported as well by setting the variable
  4661. `org-export-skip-text-before-1st-heading' to `nil'. On a per-file
  4662. basis, you can get the same effect with
  4663. #+OPTIONS: skip:nil
  4664. The text before the first headline will be fully processed (*note
  4665. Enhancing text::), and the first non-comment line becomes the title of
  4666. the exported document. If you need to include literal HTML, use the
  4667. special constructs described in *Note Quoting HTML tags::. The table
  4668. of contents is normally inserted directly before the first headline of
  4669. the file. If you would like to get it to a different location, insert
  4670. the string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
  4671. location.
  4672. Finally, if you want to use the space before the first headline for
  4673. internal purposes, but _still_ want to place something before the first
  4674. headline when exporting the file, you can use the `#+TEXT' construct:
  4675. #+OPTIONS: skip:t
  4676. #+TEXT: This text will go before the *first* headline.
  4677. #+TEXT: We place the table of contents here:
  4678. #+TEXT: [TABLE-OF-CONTENTS]
  4679. #+TEXT: This goes between the table of contents and the first headline
  4680. 
  4681. File: org, Node: Footnotes, Next: Quoted examples, Prev: Initial text, Up: Text interpretation
  4682. 12.6.3 Footnotes
  4683. ----------------
  4684. Numbers in square brackets are treated as footnotes, so that you can use
  4685. the Emacs package `footnote.el' to create footnotes. For example:
  4686. The org-mode homepage[1] clearly needs help from
  4687. a good web designer.
  4688. [1] The link is: http://orgmode.org
  4689. Note that the `footnote' package uses `C-c !' to invoke its commands.
  4690. This binding conflicts with the org-mode command for inserting inactive
  4691. time stamps. You could use the variable `footnote-prefix' to switch
  4692. footnotes commands to another key. Or, if you are too used to this
  4693. binding, you could use `org-replace-disputed-keys' and
  4694. `org-disputed-keys' to change the settings in Org-mode.
  4695. 
  4696. File: org, Node: Quoted examples, Next: Enhancing text, Prev: Footnotes, Up: Text interpretation
  4697. 12.6.4 Quoted examples
  4698. ----------------------
  4699. When writing technical documents, you often need to insert examples that
  4700. are not further interpreted by Org-mode. For historical reasons, there
  4701. are several ways to do this:
  4702. * If a headline starts with the word `QUOTE', the text below the
  4703. headline will be typeset as fixed-width, to allow quoting of
  4704. computer codes etc.
  4705. * Lines starting with `:' are also typeset in fixed-width font.
  4706. `C-c :'
  4707. Toggle fixed-width for entry (QUOTE) or region, see below.
  4708. * Finally, text between
  4709. #+BEGIN_EXAMPLE
  4710. quoted text
  4711. #+END_EXAMPLE
  4712. will also be exported in this way.
  4713. 
  4714. File: org, Node: Enhancing text, Next: Export options, Prev: Quoted examples, Up: Text interpretation
  4715. 12.6.5 Enhancing text for export
  4716. --------------------------------
  4717. Some of the export backends of Org-mode allow for sophisticated text
  4718. formatting, this is true in particular for the HTML and LaTeX backends.
  4719. Org-mode has a number of typing conventions that allow to produce a
  4720. richly formatted output.
  4721. * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
  4722. enumerator will be recognized and transformed if the backend
  4723. supports lists. See *Note Plain lists::.
  4724. * You can make words *bold*, /italic/, _underlined_, `=code=' and
  4725. `~verbatim~', and, if you must, `+strikethrough+'. Text in the
  4726. code and verbatim string is not processed for org-mode specific
  4727. syntax, it is exported verbatim.
  4728. * A line consisting of only dashes, and at least 5 of them, will be
  4729. exported as a horizontal line (`<hr/>' in HTML).
  4730. * Many TeX macros and entire LaTeX fragments are converted into HTML
  4731. entities or images (*note Embedded LaTeX::).
  4732. * Tables are transformed into native tables under the exporter, if
  4733. the export backend supports this. Data fields before the first
  4734. horizontal separator line will be formatted as table header fields.
  4735. * If a headline starts with the word `QUOTE', the text below the
  4736. headline will be typeset as fixed-width, to allow quoting of
  4737. computer codes etc. Lines starting with `:' are also typeset in
  4738. fixed-width font.
  4739. `C-c :'
  4740. Toggle fixed-width for entry (QUOTE) or region, see below.
  4741. Finally, text between
  4742. #+BEGIN_EXAMPLE
  4743. quoted text
  4744. #+END_EXAMPLE
  4745. will also be exported in this way.
  4746. * A double backslash _at the end of a line_ enforces a line break at
  4747. this position.
  4748. * Strings like `\alpha' will be exported as `&alpha;', in the HTML
  4749. output. These strings are exported as `$\alpha$' in the LaTeX
  4750. output. Similarly, `\nbsp' will become `&nbsp;' in HTML and in
  4751. LaTeX. This applies for a long list of entities, see the variable
  4752. `org-html-entities' for the complete list.
  4753. If these conversions conflict with your habits of typing ASCII text,
  4754. they can all be turned off with corresponding variables. See the
  4755. customization group `org-export-general', and the following section
  4756. which explains how to set export options with special lines in a buffer.
  4757. 
  4758. File: org, Node: Export options, Prev: Enhancing text, Up: Text interpretation
  4759. 12.6.6 Export options
  4760. ---------------------
  4761. The exporter recognizes special lines in the buffer which provide
  4762. additional information. These lines may be put anywhere in the file.
  4763. The whole set of lines can be inserted into the buffer with `C-c C-e
  4764. t'. For individual lines, a good way to make sure the keyword is
  4765. correct is to type `#+' and then use `M-<TAB>' completion (*note
  4766. Completion::).
  4767. `C-c C-e t'
  4768. Insert template with export options, see example below.
  4769. #+TITLE: the title to be shown (default is the buffer name)
  4770. #+AUTHOR: the author (default taken from `user-full-name')
  4771. #+DATE: A date, fixed, of a format string for `format-time-string'
  4772. #+EMAIL: his/her email address (default from `user-mail-address')
  4773. #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
  4774. #+TEXT: Some descriptive text to be inserted at the beginning.
  4775. #+TEXT: Several lines may be given.
  4776. #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t ...
  4777. The OPTIONS line is a compact form to specify export settings. Here
  4778. you can:
  4779. H: set the number of headline levels for export
  4780. num: turn on/off section-numbers
  4781. toc: turn on/off table of contents, or set level limit (integer)
  4782. \n: turn on/off linebreak-preservation
  4783. @: turn on/off quoted HTML tags
  4784. :: turn on/off fixed-width sections
  4785. |: turn on/off tables
  4786. ^: turn on/off TeX-like syntax for sub- and superscripts. If
  4787. you write "^:{}", `a_{b}' will be interpreted, but
  4788. the simple `a_b' will be left as it is.
  4789. -: turn on/off conversion of special strings.
  4790. f: turn on/off foototes like this[1].
  4791. *: turn on/off emphasized text (bold, italic, underlined)
  4792. TeX: turn on/off simple TeX macros in plain text
  4793. LaTeX: turn on/off LaTeX fragments
  4794. skip: turn on/off skipping the text before the first heading
  4795. author: turn on/off inclusion of author name/email into exported file
  4796. timestamp: turn on/off inclusion creation time into exported file
  4797. d: turn on/off inclusion of drawers
  4798. These options take effect in both the HTML and LaTeX export, except
  4799. for `TeX' and `LaTeX', which are respectively `t' and `nil' for the
  4800. LaTeX export.
  4801. 
  4802. File: org, Node: Publishing, Next: Miscellaneous, Prev: Exporting, Up: Top
  4803. 13 Publishing
  4804. *************
  4805. Org-mode includes(1) a publishing management system that allows you to
  4806. configure automatic HTML conversion of _projects_ composed of
  4807. interlinked org files. This system is called _org-publish_. You can
  4808. also configure org-publish to automatically upload your exported HTML
  4809. pages and related attachments, such as images and source code files, to
  4810. a web server. Org-publish turns org-mode into a web-site authoring tool.
  4811. You can also use Org-publish to convert files into LaTeX, or even
  4812. combine HTML and LaTeX conversion so that files are available in both
  4813. formats on the server(2).
  4814. Org-publish has been contributed to Org-mode by David O'Toole.
  4815. * Menu:
  4816. * Configuration:: Defining projects
  4817. * Sample configuration:: Example projects
  4818. * Triggering publication:: Publication commands
  4819. ---------- Footnotes ----------
  4820. (1) `org-publish.el' is not distributed with Emacs 21, if you are
  4821. still using Emacs 21, you need you need to download this file
  4822. separately.
  4823. (2) Since LaTeX files on a server are not that helpful, you surely
  4824. want to perform further conversion on them - e.g. convert them to `PDF'
  4825. format.
  4826. 
  4827. File: org, Node: Configuration, Next: Sample configuration, Prev: Publishing, Up: Publishing
  4828. 13.1 Configuration
  4829. ==================
  4830. Publishing needs significant configuration to specify files, destination
  4831. and many other properties of a project.
  4832. * Menu:
  4833. * Project alist:: The central configuration variable
  4834. * Sources and destinations:: From here to there
  4835. * Selecting files:: What files are part of the project?
  4836. * Publishing action:: Setting the function doing the publishing
  4837. * Publishing options:: Tweaking HTML export
  4838. * Publishing links:: Which links keep working after publishing?
  4839. * Project page index:: Publishing a list of project files
  4840. 
  4841. File: org, Node: Project alist, Next: Sources and destinations, Prev: Configuration, Up: Configuration
  4842. 13.1.1 The variable `org-publish-project-alist'
  4843. -----------------------------------------------
  4844. Org-publish is configured almost entirely through setting the value of
  4845. one variable, called `org-publish-project-alist'. Each element of the
  4846. list configures one project, and may be in one of the two following
  4847. forms:
  4848. ("project-name" :property value :property value ...)
  4849. or
  4850. ("project-name" :components ("project-name" "project-name" ...))
  4851. In both cases, projects are configured by specifying property values.
  4852. A project defines the set of files that will be published, as well as
  4853. the publishing configuration to use when publishing those files. When
  4854. a project takes the second form listed above, the individual members of
  4855. the "components" property are taken to be components of the project,
  4856. which group together files requiring different publishing options. When
  4857. you publish such a "meta-project" all the components will also publish.
  4858. 
  4859. File: org, Node: Sources and destinations, Next: Selecting files, Prev: Project alist, Up: Configuration
  4860. 13.1.2 Sources and destinations for files
  4861. -----------------------------------------
  4862. Most properties are optional, but some should always be set. In
  4863. particular, org-publish needs to know where to look for source files,
  4864. and where to put published files.
  4865. `:base-directory' Directory containing publishing source files
  4866. `:publishing-directory'Directory (possibly remote) where output files
  4867. will be published.
  4868. `:preparation-function'Function called before starting publishing
  4869. process, for example to run `make' for updating
  4870. files to be published.
  4871. 
  4872. File: org, Node: Selecting files, Next: Publishing action, Prev: Sources and destinations, Up: Configuration
  4873. 13.1.3 Selecting files
  4874. ----------------------
  4875. By default, all files with extension `.org' in the base directory are
  4876. considered part of the project. This can be modified by setting the
  4877. properties
  4878. `:base-extension' Extension (without the dot!) of source files. This
  4879. actually is a regular expression.
  4880. `:exclude' Regular expression to match file names that should
  4881. not be published, even though they have been selected
  4882. on the basis of their extension.
  4883. `:include' List of files to be included regardless of
  4884. `:base-extension' and `:exclude'.
  4885. 
  4886. File: org, Node: Publishing action, Next: Publishing options, Prev: Selecting files, Up: Configuration
  4887. 13.1.4 Publishing Action
  4888. ------------------------
  4889. Publishing means that a file is copied to the destination directory and
  4890. possibly transformed in the process. The default transformation is to
  4891. export Org-mode files as HTML files, and this is done by the function
  4892. `org-publish-org-to-html' which calls the HTML exporter (*note HTML
  4893. export::). But you also can publish your files in LaTeX by using the
  4894. function `org-publish-org-to-latex' instead. Other files like images
  4895. only need to be copied to the publishing destination. For non-Org-mode
  4896. files, you need to specify the publishing function.
  4897. `:publishing-function' Function executing the publication of a file.
  4898. This may also be a list of functions, which will
  4899. all be called in turn.
  4900. The function must accept two arguments: a property list containing at
  4901. least a `:publishing-directory' property, and the name of the file to
  4902. be published. It should take the specified file, make the necessary
  4903. transformation (if any) and place the result into the destination
  4904. folder. You can write your own publishing function, but `org-publish'
  4905. provides one for attachments (files that only need to be copied):
  4906. `org-publish-attachment'.
  4907. 
  4908. File: org, Node: Publishing options, Next: Publishing links, Prev: Publishing action, Up: Configuration
  4909. 13.1.5 Options for the HTML/LaTeX exporters
  4910. -------------------------------------------
  4911. The property list can be used to set many export options for the HTML
  4912. and LaTeX exporters. In most cases, these properties correspond to user
  4913. variables in Org-mode. The table below lists these properties along
  4914. with the variable they belong to. See the documentation string for the
  4915. respective variable for details.
  4916. `:language' `org-export-default-language'
  4917. `:headline-levels' `org-export-headline-levels'
  4918. `:section-numbers' `org-export-with-section-numbers'
  4919. `:table-of-contents' `org-export-with-toc'
  4920. `:archived-trees' `org-export-with-archived-trees'
  4921. `:emphasize' `org-export-with-emphasize'
  4922. `:sub-superscript' `org-export-with-sub-superscripts'
  4923. `:special-strings' `org-export-with-special-strings'
  4924. `:TeX-macros' `org-export-with-TeX-macros'
  4925. `:LaTeX-fragments' `org-export-with-LaTeX-fragments'
  4926. `:fixed-width' `org-export-with-fixed-width'
  4927. `:timestamps' `org-export-with-timestamps'
  4928. .
  4929. `:tags' `org-export-with-tags'
  4930. .
  4931. `:tables' `org-export-with-tables'
  4932. `:table-auto-headline' `org-export-highlight-first-table-line'
  4933. `:style' `org-export-html-style'
  4934. `:convert-org-links' `org-export-html-link-org-files-as-html'
  4935. `:inline-images' `org-export-html-inline-images'
  4936. `:expand-quoted-html' `org-export-html-expand'
  4937. `:timestamp' `org-export-html-with-timestamp'
  4938. `:publishing-directory'`org-export-publishing-directory'
  4939. `:preamble' `org-export-html-preamble'
  4940. `:postamble' `org-export-html-postamble'
  4941. `:auto-preamble' `org-export-html-auto-preamble'
  4942. `:auto-postamble' `org-export-html-auto-postamble'
  4943. `:author' `user-full-name'
  4944. `:email' `user-mail-address'
  4945. If you use several email addresses, separate them by a semi-column.
  4946. Most of the `org-export-with-*' variables have the same effect in
  4947. both HTML and LaTeX exporters, except for `:TeX-macros' and
  4948. `:LaTeX-fragments', respectively `nil' and `t' in the LaTeX export.
  4949. When a property is given a value in `org-publish-project-alist', its
  4950. setting overrides the value of the corresponding user variable (if any)
  4951. during publishing. Options set within a file (*note Export options::),
  4952. however, override everything.
  4953. 
  4954. File: org, Node: Publishing links, Next: Project page index, Prev: Publishing options, Up: Configuration
  4955. 13.1.6 Links between published files
  4956. ------------------------------------
  4957. To create a link from one Org-mode file to another, you would use
  4958. something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
  4959. (*note Hyperlinks::). Upon publishing this link becomes a link to
  4960. `foo.html'. In this way, you can interlink the pages of your "org web"
  4961. project and the links will work as expected when you publish them to
  4962. HTML.
  4963. You may also link to related files, such as images. Provided you are
  4964. careful with relative pathnames, and provided you have also configured
  4965. `org-publish' to upload the related files, these links will work too.
  4966. *Note Complex example:: for an example of this usage.
  4967. Sometime an Org-mode file to be published may contain links that are
  4968. only valid in your production environment, but not in the publishing
  4969. location. In this case, use the property
  4970. `:link-validation-function' Function to validate links
  4971. to define a function for checking link validity. This function must
  4972. accept two arguments, the file name and a directory relative to which
  4973. the file name is interpreted in the production environment. If this
  4974. function returns `nil', then the HTML generator will only insert a
  4975. description into the HTML file, but no link. One option for this
  4976. function is `org-publish-validate-link' which checks if the given file
  4977. is part of any project in `org-publish-project-alist'.
  4978. 
  4979. File: org, Node: Project page index, Prev: Publishing links, Up: Configuration
  4980. 13.1.7 Project page index
  4981. -------------------------
  4982. The following properties may be used to control publishing of an index
  4983. of files or summary page for a given project.
  4984. `:auto-index' When non-nil, publish an index during
  4985. org-publish-current-project or org-publish-all.
  4986. `:index-filename' Filename for output of index. Defaults to `index.org'
  4987. (which becomes `index.html').
  4988. `:index-title' Title of index page. Defaults to name of file.
  4989. `:index-function' Plugin function to use for generation of index.
  4990. Defaults to `org-publish-org-index', which generates
  4991. a plain list of links to all files in the project.
  4992. 
  4993. File: org, Node: Sample configuration, Next: Triggering publication, Prev: Configuration, Up: Publishing
  4994. 13.2 Sample configuration
  4995. =========================
  4996. Below we provide two example configurations. The first one is a simple
  4997. project publishing only a set of Org-mode files. The second example is
  4998. more complex, with a multi-component project.
  4999. * Menu:
  5000. * Simple example:: One-component publishing
  5001. * Complex example:: A multi-component publishing example
  5002. 
  5003. File: org, Node: Simple example, Next: Complex example, Prev: Sample configuration, Up: Sample configuration
  5004. 13.2.1 Example: simple publishing configuration
  5005. -----------------------------------------------
  5006. This example publishes a set of Org-mode files to the `public_html'
  5007. directory on the local machine.
  5008. (setq org-publish-project-alist
  5009. '(("org"
  5010. :base-directory "~/org/"
  5011. :publishing-directory "~/public_html"
  5012. :section-numbers nil
  5013. :table-of-contents nil
  5014. :style "<link rel=stylesheet
  5015. href=\"../other/mystyle.css\"
  5016. type=\"text/css\">")))
  5017. 
  5018. File: org, Node: Complex example, Prev: Simple example, Up: Sample configuration
  5019. 13.2.2 Example: complex publishing configuration
  5020. ------------------------------------------------
  5021. This more complicated example publishes an entire website, including
  5022. org files converted to HTML, image files, emacs lisp source code, and
  5023. stylesheets. The publishing-directory is remote and private files are
  5024. excluded.
  5025. To ensure that links are preserved, care should be taken to replicate
  5026. your directory structure on the web server, and to use relative file
  5027. paths. For example, if your org files are kept in `~/org' and your
  5028. publishable images in `~/images', you'd link to an image with
  5029. file:../images/myimage.png
  5030. On the web server, the relative path to the image should be the
  5031. same. You can accomplish this by setting up an "images" folder in the
  5032. right place on the webserver, and publishing images to it.
  5033. (setq org-publish-project-alist
  5034. '(("orgfiles"
  5035. :base-directory "~/org/"
  5036. :base-extension "org"
  5037. :publishing-directory "/ssh:user@host:~/html/notebook/"
  5038. :publishing-function org-publish-org-to-html
  5039. :exclude "PrivatePage.org" ;; regexp
  5040. :headline-levels 3
  5041. :section-numbers nil
  5042. :table-of-contents nil
  5043. :style "<link rel=stylesheet
  5044. href=\"../other/mystyle.css\" type=\"text/css\">"
  5045. :auto-preamble t
  5046. :auto-postamble nil)
  5047. ("images"
  5048. :base-directory "~/images/"
  5049. :base-extension "jpg\\|gif\\|png"
  5050. :publishing-directory "/ssh:user@host:~/html/images/"
  5051. :publishing-function org-publish-attachment)
  5052. ("other"
  5053. :base-directory "~/other/"
  5054. :base-extension "css\\|el"
  5055. :publishing-directory "/ssh:user@host:~/html/other/"
  5056. :publishing-function org-publish-attachment)
  5057. ("website" :components ("orgfiles" "images" "other"))))
  5058. 
  5059. File: org, Node: Triggering publication, Prev: Sample configuration, Up: Publishing
  5060. 13.3 Triggering publication
  5061. ===========================
  5062. Once org-publish is properly configured, you can publish with the
  5063. following functions:
  5064. `C-c C-e C'
  5065. Prompt for a specific project and publish all files that belong to
  5066. it.
  5067. `C-c C-e P'
  5068. Publish the project containing the current file.
  5069. `C-c C-e F'
  5070. Publish only the current file.
  5071. `C-c C-e A'
  5072. Publish all projects.
  5073. Org uses timestamps to track when a file has changed. The above
  5074. functions normally only publish changed files. You can override this and
  5075. force publishing of all files by giving a prefix argument.
  5076. 
  5077. File: org, Node: Miscellaneous, Next: Extensions and Hacking, Prev: Publishing, Up: Top
  5078. 14 Miscellaneous
  5079. ****************
  5080. * Menu:
  5081. * Completion:: M-TAB knows what you need
  5082. * Customization:: Adapting Org-mode to your taste
  5083. * In-buffer settings:: Overview of the #+KEYWORDS
  5084. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  5085. * Clean view:: Getting rid of leading stars in the outline
  5086. * TTY keys:: Using Org-mode on a tty
  5087. * Interaction:: Other Emacs packages
  5088. * Bugs:: Things which do not work perfectly
  5089. 
  5090. File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
  5091. 14.1 Completion
  5092. ===============
  5093. Org-mode supports in-buffer completion. This type of completion does
  5094. not make use of the minibuffer. You simply type a few letters into the
  5095. buffer and use the key to complete text right there.
  5096. `M-<TAB>'
  5097. Complete word at point
  5098. * At the beginning of a headline, complete TODO keywords.
  5099. * After `\', complete TeX symbols supported by the exporter.
  5100. * After `*', complete headlines in the current buffer so that
  5101. they can be used in search links like `[[*find this
  5102. headline]]'.
  5103. * After `:' in a headline, complete tags. The list of tags is
  5104. taken from the variable `org-tag-alist' (possibly set through
  5105. the `#+TAGS' in-buffer option, *note Setting tags::), or it
  5106. is created dynamically from all tags used in the current
  5107. buffer.
  5108. * After `:' and not in a headline, complete property keys. The
  5109. list of keys is constructed dynamically from all keys used in
  5110. the current buffer.
  5111. * After `[', complete link abbreviations (*note Link
  5112. abbreviations::).
  5113. * After `#+', complete the special keywords like `TYP_TODO' or
  5114. `OPTIONS' which set file-specific options for Org-mode. When
  5115. the option keyword is already complete, pressing `M-<TAB>'
  5116. again will insert example settings for this keyword.
  5117. * In the line after `#+STARTUP: ', complete startup keywords,
  5118. i.e. valid keys for this line.
  5119. * Elsewhere, complete dictionary words using ispell.
  5120. 
  5121. File: org, Node: Customization, Next: In-buffer settings, Prev: Completion, Up: Miscellaneous
  5122. 14.2 Customization
  5123. ==================
  5124. There are more than 180 variables that can be used to customize
  5125. Org-mode. For the sake of compactness of the manual, I am not
  5126. describing the variables here. A structured overview of customization
  5127. variables is available with `M-x org-customize'. Or select `Browse Org
  5128. Group' from the `Org->Customization' menu. Many settings can also be
  5129. activated on a per-file basis, by putting special lines into the buffer
  5130. (*note In-buffer settings::).
  5131. 
  5132. File: org, Node: In-buffer settings, Next: The very busy C-c C-c key, Prev: Customization, Up: Miscellaneous
  5133. 14.3 Summary of in-buffer settings
  5134. ==================================
  5135. Org-mode uses special lines in the buffer to define settings on a
  5136. per-file basis. These lines start with a `#+' followed by a keyword, a
  5137. colon, and then individual words defining a setting. Several setting
  5138. words can be in the same line, but you can also have multiple lines for
  5139. the keyword. While these settings are described throughout the manual,
  5140. here is a summary. After changing any of those lines in the buffer,
  5141. press `C-c C-c' with the cursor still in the line to activate the
  5142. changes immediately. Otherwise they become effective only when the
  5143. file is visited again in a new Emacs session.
  5144. `#+ARCHIVE: %s_done::'
  5145. This line sets the archive location for the agenda file. It
  5146. applies for all subsequent lines until the next `#+ARCHIVE' line,
  5147. or the end of the file. The first such line also applies to any
  5148. entries before it. The corresponding variable is
  5149. `org-archive-location'.
  5150. `#+CATEGORY:'
  5151. This line sets the category for the agenda file. The category
  5152. applies for all subsequent lines until the next `#+CATEGORY' line,
  5153. or the end of the file. The first such line also applies to any
  5154. entries before it.
  5155. `#+COLUMNS: %25ITEM .....'
  5156. Set the default format for columns view. This format applies when
  5157. columns view is invoked in location where no COLUMNS property
  5158. applies.
  5159. `#+CONSTANTS: name1=value1 ...'
  5160. Set file-local values for constants to be used in table formulas.
  5161. This line set the local variable
  5162. `org-table-formula-constants-local'. The global version of this
  5163. variable is `org-table-formula-constants'.
  5164. `#+DRAWERS: NAME1 .....'
  5165. Set the file-local set of drawers. The corresponding global
  5166. variable is `org-drawers'.
  5167. `#+LINK: linkword replace'
  5168. These lines (several are allowed) specify link abbreviations.
  5169. *Note Link abbreviations::. The corresponding variable is
  5170. `org-link-abbrev-alist'.
  5171. `#+PRIORITIES: highest lowest default'
  5172. This line sets the limits and the default for the priorities. All
  5173. three must be either letters A-Z or numbers 0-9. The highest
  5174. priority must have a lower ASCII number that the lowest priority.
  5175. `#+PROPERTY: Property_Name Value'
  5176. This line sets a default inheritance value for entries in the
  5177. current buffer, most useful for specifying the allowed values of a
  5178. property.
  5179. `#+STARTUP:'
  5180. This line sets options to be used at startup of Org-mode, when an
  5181. Org-mode file is being visited. The first set of options deals
  5182. with the initial visibility of the outline tree. The
  5183. corresponding variable for global default settings is
  5184. `org-startup-folded', with a default value `t', which means
  5185. `overview'.
  5186. overview top-level headlines only
  5187. content all headlines
  5188. showall no folding at all, show everything
  5189. Then there are options for aligning tables upon visiting a file.
  5190. This is useful in files containing narrowed table columns. The
  5191. corresponding variable is `org-startup-align-all-tables', with a
  5192. default value `nil'.
  5193. align align all tables
  5194. noalign don't align tables on startup
  5195. Logging TODO state changes and clock intervals (variables
  5196. `org-log-done' and `org-log-repeat') can be configured using these
  5197. options.
  5198. logging record a timestamp when an item is marked DONE
  5199. nologging don't record when items are marked DONE
  5200. lognotedone record timestamp and a note when DONE
  5201. lognotestate record timestamp and a note when TODO state changes
  5202. logrepeat record a note when re-instating a repeating item
  5203. nologrepeat do not record when re-instating repeating item
  5204. lognoteclock-out record timestamp and a note when clocking out
  5205. Here are the options for hiding leading stars in outline headings.
  5206. The corresponding variables are `org-hide-leading-stars' and
  5207. `org-odd-levels-only', both with a default setting `nil' (meaning
  5208. `showstars' and `oddeven').
  5209. hidestars make all but one of the stars starting a headline invisible.
  5210. showstars show all stars starting a headline
  5211. odd allow only odd outline levels (1,3,...)
  5212. oddeven allow all outline levels
  5213. To turn on custom format overlays over time stamps (variables
  5214. `org-put-time-stamp-overlays' and
  5215. `org-time-stamp-overlay-formats'), use
  5216. customtime overlay custom time format
  5217. The following options influence the table spreadsheet (variable
  5218. `constants-unit-system').
  5219. constcgs `constants.el' should use the c-g-s unit system
  5220. constSI `constants.el' should use the SI unit system
  5221. `#+TAGS: TAG1(c1) TAG2(c2)'
  5222. These lines (several such lines are allowed) specify the legal
  5223. tags in this file, and (potentially) the corresponding _fast tag
  5224. selection_ keys. The corresponding variable is `org-tag-alist'.
  5225. `#+TBLFM:'
  5226. This line contains the formulas for the table directly above the
  5227. line.
  5228. `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS, #+DATE:'
  5229. These lines provide settings for exporting files. For more
  5230. details see *Note Export options::.
  5231. `#+SEQ_TODO: #+TYP_TODO:'
  5232. These lines set the TODO keywords and their interpretation in the
  5233. current file. The corresponding variables are `org-todo-keywords'
  5234. and `org-todo-interpretation'.
  5235. 
  5236. File: org, Node: The very busy C-c C-c key, Next: Clean view, Prev: In-buffer settings, Up: Miscellaneous
  5237. 14.4 The very busy C-c C-c key
  5238. ==============================
  5239. The key `C-c C-c' has many purposes in org-mode, which are all
  5240. mentioned scattered throughout this manual. One specific function of
  5241. this key is to add _tags_ to a headline (*note Tags::). In many other
  5242. circumstances it means something like _Hey Org-mode, look here and
  5243. update according to what you see here_. Here is a summary of what this
  5244. means in different contexts.
  5245. - If there are highlights in the buffer from the creation of a sparse
  5246. tree, or from clock display, remove these highlights.
  5247. - If the cursor is in one of the special `#+KEYWORD' lines, this
  5248. triggers scanning the buffer for these lines and updating the
  5249. information.
  5250. - If the cursor is inside a table, realign the table. This command
  5251. works even if the automatic table editor has been turned off.
  5252. - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
  5253. entire table.
  5254. - If the cursor is inside a table created by the `table.el' package,
  5255. activate that table.
  5256. - If the current buffer is a remember buffer, close the note and
  5257. file it. With a prefix argument, file it, without further
  5258. interaction, to the default location.
  5259. - If the cursor is on a `<<<target>>>', update radio targets and
  5260. corresponding links in this buffer.
  5261. - If the cursor is in a property line or at the start or end of a
  5262. property drawer, offer property commands.
  5263. - If the cursor is in a plain list item with a checkbox, toggle the
  5264. status of the checkbox.
  5265. - If the cursor is on a numbered item in a plain list, renumber the
  5266. ordered list.
  5267. - If the cursor is on the `#+BEGIN' line of a dynamical block, the
  5268. block is updated.
  5269. 
  5270. File: org, Node: Clean view, Next: TTY keys, Prev: The very busy C-c C-c key, Up: Miscellaneous
  5271. 14.5 A cleaner outline view
  5272. ===========================
  5273. Some people find it noisy and distracting that the Org-mode headlines
  5274. are starting with a potentially large number of stars. For example the
  5275. tree from *Note Headlines:::
  5276. * Top level headline
  5277. ** Second level
  5278. *** 3rd level
  5279. some text
  5280. *** 3rd level
  5281. more text
  5282. * Another top level headline
  5283. Unfortunately this is deeply ingrained into the code of Org-mode and
  5284. cannot be easily changed. You can, however, modify the display in such
  5285. a way that all leading stars become invisible and the outline more easy
  5286. to read. To do this, customize the variable `org-hide-leading-stars'
  5287. like this:
  5288. (setq org-hide-leading-stars t)
  5289. or change this on a per-file basis with one of the lines (anywhere in
  5290. the buffer)
  5291. #+STARTUP: showstars
  5292. #+STARTUP: hidestars
  5293. Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
  5294. modifications.
  5295. With stars hidden, the tree becomes:
  5296. * Top level headline
  5297. * Second level
  5298. * 3rd level
  5299. some text
  5300. * 3rd level
  5301. more text
  5302. * Another top level headline
  5303. Note that the leading stars are not truly replaced by whitespace, they
  5304. are only fontified with the face `org-hide' that uses the background
  5305. color as font color. If you are not using either white or black
  5306. background, you may have to customize this face to get the wanted
  5307. effect. Another possibility is to set this font such that the extra
  5308. stars are almost invisible, for example using the color `grey90' on a
  5309. white background.
  5310. Things become cleaner still if you skip all the even levels and use
  5311. only odd levels 1, 3, 5..., effectively adding two stars to go from one
  5312. outline level to the next:
  5313. * Top level headline
  5314. * Second level
  5315. * 3rd level
  5316. some text
  5317. * 3rd level
  5318. more text
  5319. * Another top level headline
  5320. In order to make the structure editing and export commands handle this
  5321. convention correctly, use
  5322. (setq org-odd-levels-only t)
  5323. or set this on a per-file basis with one of the following lines (don't
  5324. forget to press `C-c C-c' with the cursor in the startup line to
  5325. activate changes immediately).
  5326. #+STARTUP: odd
  5327. #+STARTUP: oddeven
  5328. You can convert an Org-mode file from single-star-per-level to the
  5329. double-star-per-level convention with `M-x org-convert-to-odd-levels
  5330. RET' in that file. The reverse operation is `M-x
  5331. org-convert-to-oddeven-levels'.
  5332. 
  5333. File: org, Node: TTY keys, Next: Interaction, Prev: Clean view, Up: Miscellaneous
  5334. 14.6 Using org-mode on a tty
  5335. ============================
  5336. Org-mode uses a number of keys that are not accessible on a tty. This
  5337. applies to most special keys like cursor keys, <TAB> and <RET>, when
  5338. these are combined with modifier keys like <Meta> and/or <Shift>.
  5339. Org-mode uses these bindings because it needs to provide keys for a
  5340. large number of commands, and because these keys appeared particularly
  5341. easy to remember. In order to still be able to access the core
  5342. functionality of Org-mode on a tty, alternative bindings are provided.
  5343. Here is a complete list of these bindings, which are obviously more
  5344. cumbersome to use. Note that sometimes a work-around can be better.
  5345. For example changing a time stamp is really only fun with `S-<cursor>'
  5346. keys. On a tty you would rather use `C-c .' to re-insert the
  5347. timestamp.
  5348. Default Alternative 1 Alternative 2
  5349. `S-<TAB>' `C-u <TAB>'
  5350. `M-<left>' `C-c C-x l' `<Esc> <left>'
  5351. `M-S-<left>'`C-c C-x L'
  5352. `M-<right>' `C-c C-x r' `<Esc>
  5353. <right>'
  5354. `M-S-<right>'`C-c C-x R'
  5355. `M-<up>' `C-c C-x u' `<Esc> <up>'
  5356. `M-S-<up>' `C-c C-x U'
  5357. `M-<down>' `C-c C-x d' `<Esc> <down>'
  5358. `M-S-<down>'`C-c C-x D'
  5359. `S-<RET>' `C-c C-x c'
  5360. `M-<RET>' `C-c C-x m' `<Esc> <RET>'
  5361. `M-S-<RET>' `C-c C-x M'
  5362. `S-<left>' `C-c <left>'
  5363. `S-<right>' `C-c <right>'
  5364. `S-<up>' `C-c <up>'
  5365. `S-<down>' `C-c <down>'
  5366. `C-S-<left>'`C-c C-x
  5367. <left>'
  5368. `C-S-<right>'`C-c C-x
  5369. <right>'
  5370. 
  5371. File: org, Node: Interaction, Next: Bugs, Prev: TTY keys, Up: Miscellaneous
  5372. 14.7 Interaction with other packages
  5373. ====================================
  5374. Org-mode lives in the world of GNU Emacs and interacts in various ways
  5375. with other code out there.
  5376. * Menu:
  5377. * Cooperation:: Packages Org-mode cooperates with
  5378. * Conflicts:: Packages that lead to conflicts
  5379. 
  5380. File: org, Node: Cooperation, Next: Conflicts, Prev: Interaction, Up: Interaction
  5381. 14.7.1 Packages that Org-mode cooperates with
  5382. ---------------------------------------------
  5383. `calc.el' by Dave Gillespie
  5384. Org-mode uses the calc package for implementing spreadsheet
  5385. functionality in its tables (*note The spreadsheet::). Org-mode
  5386. checks for the availability of calc by looking for the function
  5387. `calc-eval' which should be autoloaded in your setup if calc has
  5388. been installed properly. As of Emacs 22, calc is part of the Emacs
  5389. distribution. Another possibility for interaction between the two
  5390. packages is using calc for embedded calculations. *Note Embedded
  5391. Mode: (calc)Embedded Mode.
  5392. `constants.el' by Carsten Dominik
  5393. In a table formula (*note The spreadsheet::), it is possible to use
  5394. names for natural constants or units. Instead of defining your own
  5395. constants in the variable `org-table-formula-constants', install
  5396. the `constants' package which defines a large number of constants
  5397. and units, and lets you use unit prefixes like `M' for `Mega' etc.
  5398. You will need version 2.0 of this package, available at
  5399. `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
  5400. function `constants-get', which has to be autoloaded in your
  5401. setup. See the installation instructions in the file
  5402. `constants.el'.
  5403. `cdlatex.el' by Carsten Dominik
  5404. Org-mode can make use of the cdlatex package to efficiently enter
  5405. LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
  5406. `remember.el' by John Wiegley
  5407. Org mode cooperates with remember, see *Note Remember::.
  5408. `Remember.el' is not part of Emacs, find it on the web.
  5409. `table.el' by Takaaki Ota
  5410. Complex ASCII tables with automatic line wrapping, column- and
  5411. row-spanning, and alignment can be created using the Emacs table
  5412. package by Takaaki Ota (`http://sourceforge.net/projects/table',
  5413. and also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in
  5414. such a table, Org-mode will call `table-recognize-table' and move
  5415. the cursor into the table. Inside a table, the keymap of Org-mode
  5416. is inactive. In order to execute Org-mode-related commands, leave
  5417. the table.
  5418. `C-c C-c'
  5419. Recognize `table.el' table. Works when the cursor is in a
  5420. table.el table.
  5421. `C-c ~'
  5422. Insert a table.el table. If there is already a table at
  5423. point, this command converts it between the table.el format
  5424. and the Org-mode format. See the documentation string of the
  5425. command `org-convert-table' for the restrictions under which
  5426. this is possible.
  5427. `table.el' is part of Emacs 22.
  5428. `footnote.el' by Steven L. Baur
  5429. Org-mode recognizes numerical footnotes as provided by this package
  5430. (*note Footnotes::).
  5431. 
  5432. File: org, Node: Conflicts, Prev: Cooperation, Up: Interaction
  5433. 14.7.2 Packages that lead to conflicts with Org-mode
  5434. ----------------------------------------------------
  5435. `allout.el' by Ken Manheimer
  5436. Startup of Org-mode may fail with the error message
  5437. `(wrong-type-argument keymapp nil)' when there is an outdated
  5438. version `allout.el' on the load path, for example the version
  5439. distributed with Emacs 21.x. Upgrade to Emacs 22 and this problem
  5440. will disappear. If for some reason you cannot do this, make sure
  5441. that org.el is loaded _before_ `allout.el', for example by putting
  5442. `(require 'org)' early enough into your `.emacs' file.
  5443. `CUA.el' by Kim. F. Storm
  5444. Keybindings in Org-mode conflict with the `S-<cursor>' keys used by
  5445. CUA-mode (as well as pc-select-mode and s-region-mode) to select
  5446. and extend the region. If you want to use one of these packages
  5447. along with Org-mode, configure the variable
  5448. `org-replace-disputed-keys'. When set, Org-mode will move the
  5449. following keybindings in Org-mode files, and in the agenda buffer
  5450. (but not during date selection).
  5451. S-UP -> M-p S-DOWN -> M-n
  5452. S-LEFT -> M-- S-RIGHT -> M-+
  5453. Yes, these are unfortunately more difficult to remember. If you
  5454. want to have other replacement keys, look at the variable
  5455. `org-disputed-keys'.
  5456. `windmove.el' by Hovav Shacham
  5457. Also this package uses the `S-<cursor>' keys, so everything written
  5458. in the paragraph above about CUA mode also applies here.
  5459. `footnote.el' by Steven L. Baur
  5460. Org-mode supports the syntax of the footnote package, but only the
  5461. numerical footnote markers. Also, the default key for footnote
  5462. commands, `C-c !' is already used by Org-mode. You could use the
  5463. variable `footnote-prefix' to switch footnotes commands to another
  5464. key. Or, you could use `org-replace-disputed-keys' and
  5465. `org-disputed-keys' to change the settings in Org-mode.
  5466. 
  5467. File: org, Node: Bugs, Prev: Interaction, Up: Miscellaneous
  5468. 14.8 Bugs
  5469. =========
  5470. Here is a list of things that should work differently, but which I have
  5471. found too hard to fix.
  5472. * If a table field starts with a link, and if the corresponding table
  5473. column is narrowed (*note Narrow columns::) to a width too small to
  5474. display the link, the field would look entirely empty even though
  5475. it is not. To prevent this, Org-mode throws an error. The
  5476. work-around is to make the column wide enough to fit the link, or
  5477. to add some text (at least 2 characters) before the link in the
  5478. same field.
  5479. * Narrowing table columns does not work on XEmacs, because the
  5480. `format' function does not transport text properties.
  5481. * Text in an entry protected with the `QUOTE' keyword should not
  5482. autowrap.
  5483. * When the application called by `C-c C-o' to open a file link fails
  5484. (for example because the application does not exist or refuses to
  5485. open the file), it does so silently. No error message is
  5486. displayed.
  5487. * Recalculating a table line applies the formulas from left to right.
  5488. If a formula uses _calculated_ fields further down the row,
  5489. multiple recalculation may be needed to get all fields consistent.
  5490. You may use the command `org-table-iterate' (`C-u C-c *') to
  5491. recalculate until convergence.
  5492. * A single letter cannot be made bold, for example `*a*'.
  5493. * The exporters work well, but could be made more efficient.
  5494. 
  5495. File: org, Node: Extensions and Hacking, Next: History and Acknowledgments, Prev: Miscellaneous, Up: Top
  5496. Appendix A Extensions, Hooks and Hacking
  5497. ****************************************
  5498. This appendix lists extensions for Org-mode written by other authors.
  5499. It also covers some aspects where users can extend the functionality of
  5500. Org-mode.
  5501. * Menu:
  5502. * Extensions:: Existing 3rd-part extensions
  5503. * Adding hyperlink types:: New custom link types
  5504. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  5505. * Dynamic blocks:: Automatically filled blocks
  5506. * Special agenda views:: Customized views
  5507. * Using the property API:: Writing programs that use entry properties
  5508. 
  5509. File: org, Node: Extensions, Next: Adding hyperlink types, Prev: Extensions and Hacking, Up: Extensions and Hacking
  5510. A.1 Third-party extensions for Org-mode
  5511. =======================================
  5512. The following extensions for Org-mode have been written by other people:
  5513. `org-publish.el' by David O'Toole
  5514. This package provides facilities for publishing related sets of
  5515. Org-mode files together with linked files like images as webpages.
  5516. It is highly configurable and can be used for other publishing
  5517. purposes as well. As of Org-mode version 4.30, `org-publish.el'
  5518. is part of the Org-mode distribution. It is not yet part of
  5519. Emacs, however, a delay caused by the preparations for the 22.1
  5520. release. In the mean time, `org-publish.el' can be downloaded
  5521. from David's site: `http://dto.freeshell.org/e/org-publish.el'.
  5522. `org-mouse.el' by Piotr Zielinski
  5523. This package implements extended mouse functionality for Org-mode.
  5524. It allows you to cycle visibility and to edit the document
  5525. structure with the mouse. Best of all, it provides a
  5526. context-sensitive menu on <mouse-3> that changes depending on the
  5527. context of a mouse-click. As of Org-mode version 4.53,
  5528. `org-mouse.el' is part of the Org-mode distribution. It is not
  5529. yet part of Emacs, however, a delay caused by the preparations for
  5530. the 22.1 release. In the mean time, `org-mouse.el' can be
  5531. downloaded from Piotr's site:
  5532. `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.
  5533. `org-blog.el' by David O'Toole
  5534. A blogging plug-in for `org-publish.el'.
  5535. `http://dto.freeshell.org/notebook/OrgMode.html'.
  5536. `blorg.el' by Bastien Guerry
  5537. Publish Org-mode files as blogs.
  5538. `http://www.cognition.ens.fr/~guerry/blorg.html'.
  5539. `org2rem.el' by Bastien Guerry
  5540. Translates Org-mode files into something readable by Remind.
  5541. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5542. `org-toc.el' by Bastien Guerry
  5543. Produces a simple table of contents of an Org-mode file, for easy
  5544. navigation. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5545. `org-registry.el' by Bastien Guerry
  5546. Find which Org-file link to a certain document.
  5547. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5548. 
  5549. File: org, Node: Adding hyperlink types, Next: Tables in arbitrary syntax, Prev: Extensions, Up: Extensions and Hacking
  5550. A.2 Adding hyperlink types
  5551. ==========================
  5552. Org-mode has a large number of hyperlink types built-in (*note
  5553. Hyperlinks::). If you would like to add new link types, it provides an
  5554. interface for doing so. Lets look at an example file `org-man.el' that
  5555. will add support for creating links like `[[man:printf][The printf
  5556. manpage]]' to show unix manual pages inside emacs:
  5557. ;;; org-man.el - Support for links to manpages in Org-mode
  5558. (require 'org)
  5559. (org-add-link-type "man" 'org-man-open)
  5560. (add-hook 'org-store-link-functions 'org-man-store-link)
  5561. (defcustom org-man-command 'man
  5562. "The Emacs command to be used to display a man page."
  5563. :group 'org-link
  5564. :type '(choice (const man) (const woman)))
  5565. (defun org-man-open (path)
  5566. "Visit the manpage on PATH.
  5567. PATH should be a topic that can be thrown at the man command."
  5568. (funcall org-man-command path))
  5569. (defun org-man-store-link ()
  5570. "Store a link to a manpage."
  5571. (when (memq major-mode '(Man-mode woman-mode))
  5572. ;; This is a man page, we do make this link
  5573. (let* ((page (org-man-get-page-name))
  5574. (link (concat "man:" page))
  5575. (description (format "Manpage for %s" page)))
  5576. (org-store-link-props
  5577. :type "man"
  5578. :link link
  5579. :description description))))
  5580. (defun org-man-get-page-name ()
  5581. "Extract the page name from the buffer name."
  5582. ;; This works for both `Man-mode' and `woman-mode'.
  5583. (if (string-match " \\(\\S-+\\)\\*" (buffer-name))
  5584. (match-string 1 (buffer-name))
  5585. (error "Cannot create link to this man page")))
  5586. (provide 'org-man)
  5587. ;;; org-man.el ends here
  5588. You would activate this new link type in `.emacs' with
  5589. (require 'org-man)
  5590. Lets go through the file and see what it does.
  5591. 1. It does `(require 'org)' to make sure that `org.el' has been
  5592. loaded.
  5593. 2. The next line calls `org-add-link-type' to define a new link type
  5594. with prefix `man'. The call also contains the name of a function
  5595. that will be called to follow such a link.
  5596. 3. The next line adds a function to `org-store-link-functions', in
  5597. order to allow the command `C-c l' to record a useful link in a
  5598. buffer displaying a man page.
  5599. The rest of the file defines the necessary variables and functions.
  5600. First there is a customization variable that determines which emacs
  5601. command should be used to display manpages. There are two options,
  5602. `man' and `woman'. Then the function to follow a link is defined. It
  5603. gets the link path as an argument - in this case the link path is just
  5604. a topic for the manual command. The function calls the value of
  5605. `org-man-command' to display the man page.
  5606. Finally the function `org-man-store-link' is defined. When you try
  5607. to store a link with `C-c l', also this function will be called to try
  5608. to make a link. The function must first decide if it is supposed to
  5609. create the link for this buffer type, we do this by checking the value
  5610. of the variable `major-mode'. If not, the function must exit and
  5611. retunr the value `nil'. If yes, the link is created by getting the
  5612. manual tpoic from the buffer name and prefixing it with the string
  5613. `man:'. Then it must call the command `org-store-link-props' and set
  5614. the `:type' and `:link' properties. Optionally you can also set the
  5615. `:description' property to provide a default for the link description
  5616. when the link is later inserted into tan Org-mode buffer with `C-c C-l'.
  5617. 
  5618. File: org, Node: Tables in arbitrary syntax, Next: Dynamic blocks, Prev: Adding hyperlink types, Up: Extensions and Hacking
  5619. A.3 Tables and Lists in arbitrary syntax
  5620. ========================================
  5621. Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
  5622. frequent feature request has been to make it work with native tables in
  5623. specific languages, for example LaTeX. However, this is extremely hard
  5624. to do in a general way, would lead to a customization nightmare, and
  5625. would take away much of the simplicity of the Orgtbl-mode table editor.
  5626. This appendix describes a different approach. We keep the
  5627. Orgtbl-mode table in its native format (the source table), and use a
  5628. custom function to translate the table to the correct syntax, and to
  5629. install it in the right location (the target table). This puts the
  5630. burden of writing conversion functions on the user, but it allows for a
  5631. very flexible system.
  5632. Bastien added the ability to do the same with lists. You can use
  5633. Org's facilities to edit and structure lists by turning `orgstruct-mode'
  5634. on, then locally exporting such lists in another format (HTML, LaTeX or
  5635. TeXInfo.)
  5636. * Menu:
  5637. * Radio tables:: Sending and receiving
  5638. * A LaTeX example:: Step by step, almost a tutorial
  5639. * Translator functions:: Copy and modify
  5640. * Radio lists:: Doing the same for lists.
  5641. 
  5642. File: org, Node: Radio tables, Next: A LaTeX example, Prev: Tables in arbitrary syntax, Up: Tables in arbitrary syntax
  5643. A.3.1 Radio tables
  5644. ------------------
  5645. To define the location of the target table, you first need to create two
  5646. lines that are comments in the current mode, but contain magic words for
  5647. Orgtbl-mode to find. Orgtbl-mode will insert the translated table
  5648. between these lines, replacing whatever was there before. For example:
  5649. /* BEGIN RECEIVE ORGTBL table_name */
  5650. /* END RECEIVE ORGTBL table_name */
  5651. Just above the source table, we put a special line that tells
  5652. Orgtbl-mode how to translate this table and where to install it. For
  5653. example:
  5654. #+ORGTBL: SEND table_name translation_function arguments....
  5655. `table_name' is the reference name for the table that is also used in
  5656. the receiver lines. `translation_function' is the Lisp function that
  5657. does the translation. Furthermore, the line can contain a list of
  5658. arguments (alternating key and value) at the end. The arguments will be
  5659. passed as a property list to the translation function for
  5660. interpretation. A few standard parameters are already recognized and
  5661. acted upon before the translation function is called:
  5662. `:skip N'
  5663. Skip the first N lines of the table. Hlines do count!
  5664. `:skipcols (n1 n2 ...)'
  5665. List of columns that should be skipped. If the table has a column
  5666. with calculation marks, that column is automatically discarded as
  5667. well. Please note that the translator function sees the table
  5668. _after_ the removal of these columns, the function never knows
  5669. that there have been additional columns.
  5670. The one problem remaining is how to keep the source table in the buffer
  5671. without disturbing the normal workings of the file, for example during
  5672. compilation of a C file or processing of a LaTeX file. There are a
  5673. number of different solutions:
  5674. * The table could be placed in a block comment if that is supported
  5675. by the language. For example, in C-mode you could wrap the table
  5676. between `/*' and `*/' lines.
  5677. * Sometimes it is possible to put the table after some kind of END
  5678. statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
  5679. * You can just comment the table line by line whenever you want to
  5680. process the file, and uncomment it whenever you need to edit the
  5681. table. This only sounds tedious - the command `M-x
  5682. orgtbl-toggle-comment' does make this comment-toggling very easy,
  5683. in particular if you bind it to a key.
  5684. 
  5685. File: org, Node: A LaTeX example, Next: Translator functions, Prev: Radio tables, Up: Tables in arbitrary syntax
  5686. A.3.2 A LaTeX example of radio tables
  5687. -------------------------------------
  5688. The best way to wrap the source table in LaTeX is to use the `comment'
  5689. environment provided by `comment.sty'. It has to be activated by
  5690. placing `\usepackage{comment}' into the document header. Orgtbl-mode
  5691. can insert a radio table skeleton(1) with the command `M-x
  5692. orgtbl-insert-radio-table'. You will be prompted for a table name,
  5693. lets say we use `salesfigures'. You will then get the following
  5694. template:
  5695. % BEGIN RECEIVE ORGTBL salesfigures
  5696. % END RECEIVE ORGTBL salesfigures
  5697. \begin{comment}
  5698. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  5699. | | |
  5700. \end{comment}
  5701. The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
  5702. `orgtbl-to-latex' to convert the table into LaTeX and to put it into
  5703. the receiver location with name `salesfigures'. You may now fill in
  5704. the table, feel free to use the spreadsheet features(2):
  5705. % BEGIN RECEIVE ORGTBL salesfigures
  5706. % END RECEIVE ORGTBL salesfigures
  5707. \begin{comment}
  5708. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  5709. | Month | Days | Nr sold | per day |
  5710. |-------+------+---------+---------|
  5711. | Jan | 23 | 55 | 2.4 |
  5712. | Feb | 21 | 16 | 0.8 |
  5713. | March | 22 | 278 | 12.6 |
  5714. #+TBLFM: $4=$3/$2;%.1f
  5715. % $ (optional extra dollar to keep font-lock happy, see footnote)
  5716. \end{comment}
  5717. When you are done, press `C-c C-c' in the table to get the converted
  5718. table inserted between the two marker lines.
  5719. Now lets assume you want to make the table header by hand, because
  5720. you want to control how columns are aligned etc. In this case we make
  5721. sure that the table translator does skip the first 2 lines of the source
  5722. table, and tell the command to work as a splice, i.e. to not produce
  5723. header and footer commands of the target table:
  5724. \begin{tabular}{lrrr}
  5725. Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
  5726. % BEGIN RECEIVE ORGTBL salesfigures
  5727. % END RECEIVE ORGTBL salesfigures
  5728. \end{tabular}
  5729. %
  5730. \begin{comment}
  5731. #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
  5732. | Month | Days | Nr sold | per day |
  5733. |-------+------+---------+---------|
  5734. | Jan | 23 | 55 | 2.4 |
  5735. | Feb | 21 | 16 | 0.8 |
  5736. | March | 22 | 278 | 12.6 |
  5737. #+TBLFM: $4=$3/$2;%.1f
  5738. \end{comment}
  5739. The LaTeX translator function `orgtbl-to-latex' is already part of
  5740. Orgtbl-mode. It uses a `tabular' environment to typeset the table and
  5741. marks horizontal lines with `\hline'. Furthermore, it interprets the
  5742. following parameters:
  5743. `:splice nil/t'
  5744. When set to t, return only table body lines, don't wrap them into a
  5745. tabular environment. Default is nil.
  5746. `:fmt fmt'
  5747. A format to be used to wrap each field, should contain `%s' for the
  5748. original field value. For example, to wrap each field value in
  5749. dollars, you could use `:fmt "$%s$"'. This may also be a property
  5750. list with column numbers and formats. for example `:fmt (2 "$%s$"
  5751. 4 "%s\\%%")'.
  5752. `:efmt efmt'
  5753. Use this format to print numbers with exponentials. The format
  5754. should have `%s' twice for inserting mantissa and exponent, for
  5755. example `"%s\\times10^{%s}"'. The default is `"%s\\,(%s)"'. This
  5756. may also be a property list with column numbers and formats, for
  5757. example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
  5758. After `efmt' has been applied to a value, `fmt' will also be
  5759. applied.
  5760. ---------- Footnotes ----------
  5761. (1) By default this works only for LaTeX, HTML, and TeXInfo.
  5762. Configure the variable `orgtbl-radio-tables' to install templates for
  5763. other modes.
  5764. (2) If the `#+TBLFM' line contains an odd number of dollar
  5765. characters, this may cause problems with font-lock in latex-mode. As
  5766. shown in the example you can fix this by adding an extra line inside the
  5767. `comment' environment that is used to balance the dollar expressions.
  5768. If you are using AUCTeX with the font-latex library, a much better
  5769. solution is to add the `comment' environment to the variable
  5770. `LaTeX-verbatim-environments'.
  5771. 
  5772. File: org, Node: Translator functions, Next: Radio lists, Prev: A LaTeX example, Up: Tables in arbitrary syntax
  5773. A.3.3 Translator functions
  5774. --------------------------
  5775. Orgtbl-mode has several translator functions built-in:
  5776. `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'. Except
  5777. for `orgtbl-to-html'(1), these all use a generic translator,
  5778. `orgtbl-to-generic'. For example, `orgtbl-to-latex' itself is a very
  5779. short function that computes the column definitions for the `tabular'
  5780. environment, defines a few field and line separators and then hands
  5781. over to the generic translator. Here is the entire code:
  5782. (defun orgtbl-to-latex (table params)
  5783. "Convert the orgtbl-mode TABLE to LaTeX."
  5784. (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
  5785. org-table-last-alignment ""))
  5786. (params2
  5787. (list
  5788. :tstart (concat "\\begin{tabular}{" alignment "}")
  5789. :tend "\\end{tabular}"
  5790. :lstart "" :lend " \\\\" :sep " & "
  5791. :efmt "%s\\,(%s)" :hline "\\hline")))
  5792. (orgtbl-to-generic table (org-combine-plists params2 params))))
  5793. As you can see, the properties passed into the function (variable
  5794. PARAMS) are combined with the ones newly defined in the function
  5795. (variable PARAMS2). The ones passed into the function (i.e. the ones
  5796. set by the `ORGTBL SEND' line) take precedence. So if you would like
  5797. to use the LaTeX translator, but wanted the line endings to be
  5798. `\\[2mm]' instead of the default `\\', you could just overrule the
  5799. default with
  5800. #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
  5801. For a new language, you can either write your own converter function
  5802. in analogy with the LaTeX translator, or you can use the generic
  5803. function directly. For example, if you have a language where a table
  5804. is started with `!BTBL!', ended with `!ETBL!', and where table lines are
  5805. started with `!BL!', ended with `!EL!' and where the field separator is
  5806. a TAB, you could call the generic translator like this (on a single
  5807. line!):
  5808. #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
  5809. :lstart "!BL! " :lend " !EL!" :sep "\t"
  5810. Please check the documentation string of the function
  5811. `orgtbl-to-generic' for a full list of parameters understood by that
  5812. function and remember that you can pass each of them into
  5813. `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
  5814. the generic function.
  5815. Of course you can also write a completely new function doing
  5816. complicated things the generic translator cannot do. A translator
  5817. function takes two arguments. The first argument is the table, a list
  5818. of lines, each line either the symbol `hline' or a list of fields. The
  5819. second argument is the property list containing all parameters
  5820. specified in the `#+ORGTBL: SEND' line. The function must return a
  5821. single string containing the formatted table. If you write a generally
  5822. useful translator, please post it on `emacs-orgmode@gnu.org' so that
  5823. others can benefit from your work.
  5824. ---------- Footnotes ----------
  5825. (1) The HTML translator uses the same code that produces tables
  5826. during HTML export.
  5827. 
  5828. File: org, Node: Radio lists, Prev: Translator functions, Up: Tables in arbitrary syntax
  5829. A.3.4 Radio lists
  5830. -----------------
  5831. Sending and receiving radio lists works exactly the same way than
  5832. sending and receiving radio tables (*note Radio tables::) (1). As for
  5833. radio tables, you can insert radio lists templates in HTML, LaTeX and
  5834. TeXInfo modes by calling `org-list-insert-radio-list'.
  5835. Here are the differences with radio tables:
  5836. - Use `ORGLST' instead of `ORGTBL'.
  5837. - The available translation functions for radio lists don't take
  5838. parameters.
  5839. - `C-c C-c' will work when pressed on the first item of the list.
  5840. Here is a LaTeX example. Let's say that you have this in your LaTeX
  5841. file:
  5842. % BEGIN RECEIVE ORGLST to-buy
  5843. % END RECEIVE ORGLST to-buy
  5844. \begin{comment}
  5845. #+ORGLIST: SEND to-buy orgtbl-to-latex
  5846. - a new house
  5847. - a new computer
  5848. + a new keyboard
  5849. + a new mouse
  5850. - a new life
  5851. \end{comment}
  5852. Pressing `C-c C-c' on `a new house' and will insert the converted
  5853. LaTeX list between the two marker lines.
  5854. ---------- Footnotes ----------
  5855. (1) You need to load the `org-export-latex.el' package to use radio
  5856. lists since the relevant code is there for now.
  5857. 
  5858. File: org, Node: Dynamic blocks, Next: Special agenda views, Prev: Tables in arbitrary syntax, Up: Extensions and Hacking
  5859. A.4 Dynamic blocks
  5860. ==================
  5861. Org-mode documents can contain _dynamic blocks_. These are specially
  5862. marked regions that are updated by some user-written function. A good
  5863. example for such a block is the clock table inserted by the command
  5864. `C-c C-x C-r' (*note Clocking work time::).
  5865. Dynamic block are enclosed by a BEGIN-END structure that assigns a
  5866. name to the block and can also specify parameters for the function
  5867. producing the content of the block.
  5868. #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
  5869. #+END:
  5870. Dynamic blocks are updated with the following commands
  5871. `C-c C-x C-u'
  5872. Update dynamic block at point.
  5873. `C-u C-c C-x C-u'
  5874. Update all dynamic blocks in the current file.
  5875. Updating a dynamic block means to remove all the text between BEGIN
  5876. and END, parse the BEGIN line for parameters and then call the specific
  5877. writer function for this block to insert the new content. For a block
  5878. with name `myblock', the writer function is `org-dblock-write:myblock'
  5879. with as only parameter a property list with the parameters given in the
  5880. begin line. Here is a trivial example of a block that keeps track of
  5881. when the block update function was last run:
  5882. #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
  5883. #+END:
  5884. The corresponding block writer function could look like this:
  5885. (defun org-dblock-write:block-update-time (params)
  5886. (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
  5887. (insert "Last block update at: "
  5888. (format-time-string fmt (current-time)))))
  5889. If you want to make sure that all dynamic blocks are always
  5890. up-to-date, you could add the function `org-update-all-dblocks' to a
  5891. hook, for example `before-save-hook'. `org-update-all-dblocks' is
  5892. written in a way that is does nothing in buffers that are not in
  5893. Org-mode.
  5894. 
  5895. File: org, Node: Special agenda views, Next: Using the property API, Prev: Dynamic blocks, Up: Extensions and Hacking
  5896. A.5 Special Agenda Views
  5897. ========================
  5898. Org-mode provides a special hook that can be used to narrow down the
  5899. selection made by any of the agenda views. You may specify a function
  5900. that is used at each match to verify if the match should indeed be part
  5901. of the agenda view, and if not, how much should be skipped.
  5902. Let's say you want to produce a list of projects that contain a
  5903. WAITING tag anywhere in the project tree. Let's further assume that
  5904. you have marked all tree headings that define a project with the todo
  5905. keyword PROJECT. In this case you would run a todo search for the
  5906. keyword PROJECT, but skip the match unless there is a WAITING tag
  5907. anywhere in the subtree belonging to the project line.
  5908. To achieve this, you must write a function that searches the subtree
  5909. for the tag. If the tag is found, the function must return `nil' to
  5910. indicate that this match should not be skipped. If there is no such
  5911. tag, return the location of the end of the subtree, to indicate that
  5912. search should continue from there.
  5913. (defun my-skip-unless-waiting ()
  5914. "Skip trees that are not waiting"
  5915. (let ((subtree-end (save-excursion (org-end-of-subtree t))))
  5916. (if (re-search-forward ":WAITING:" subtree-end t)
  5917. nil ; tag found, do not skip
  5918. subtree-end))) ; tag not found, continue after end of subtree
  5919. Now you may use this function in an agenda custom command, for
  5920. example like this:
  5921. (org-add-agenda-custom-command
  5922. '("b" todo "PROJECT"
  5923. ((org-agenda-skip-function 'my-org-waiting-projects)
  5924. (org-agenda-overriding-header "Projects waiting for something: "))))
  5925. Note that this also binds `org-agenda-overriding-header' to get a
  5926. meaningful header in the agenda view.
  5927. You may also put a Lisp form into `org-agenda-skip-function'. In
  5928. particular, you may use the functions `org-agenda-skip-entry-if' and
  5929. `org-agenda-skip-subtree-if' in this form, for example:
  5930. `'(org-agenda-skip-entry-if 'scheduled)'
  5931. Skip current entry if it has been scheduled.
  5932. `'(org-agenda-skip-entry-if 'notscheduled)'
  5933. Skip current entry if it has not been scheduled.
  5934. `'(org-agenda-skip-entry-if 'deadline)'
  5935. Skip current entry if it has a deadline.
  5936. `'(org-agenda-skip-entry-if 'scheduled 'deadline)'
  5937. Skip current entry if it has a deadline, or if it is scheduled.
  5938. `'(org-agenda-skip-entry 'regexp "regular expression")'
  5939. Skip current entry if the regular expression matches in the entry.
  5940. `'(org-agenda-skip-entry 'notregexp "regular expression")'
  5941. Skip current entry unless the regular expression matches.
  5942. `'(org-agenda-skip-subtree-if 'regexp "regular expression")'
  5943. Same as above, but check and skip the entire subtree.
  5944. Therefore we could also have written the search for WAITING projects
  5945. like this, even without defining a special function:
  5946. (org-add-agenda-custom-command
  5947. '("b" todo "PROJECT"
  5948. ((org-agenda-skip-function '(org-agenda-skip-subtree-if
  5949. 'regexp ":WAITING:"))
  5950. (org-agenda-overriding-header "Projects waiting for something: "))))
  5951. 
  5952. File: org, Node: Using the property API, Prev: Special agenda views, Up: Extensions and Hacking
  5953. A.6 Using the property API
  5954. ==========================
  5955. Here is a description of the functions that can be used to work with
  5956. properties.
  5957. -- Function: org-entry-properties &optional pom which
  5958. Get all properties of the entry at point-or-marker POM. This
  5959. includes the TODO keyword, the tags, time strings for deadline,
  5960. scheduled, and clocking, and any additional properties defined in
  5961. the entry. The return value is an alist, keys may occur multiple
  5962. times if the property key was used several times. POM may also be
  5963. nil, in which case the current entry is used. If WHICH is nil or
  5964. `all', get all properties. If WHICH is `special' or `standard',
  5965. only get that subclass.
  5966. -- Function: org-entry-get pom property &optional inherit
  5967. Get value of PROPERTY for entry at point-or-marker POM. If
  5968. INHERIT is non-nil and the entry does not have the property, then
  5969. also check higher levels of the hierarchy. This function ignores
  5970. the value of `org-use-property-inheritance' and requires the
  5971. explicit INHERIT flag.
  5972. -- Function: org-entry-delete pom property
  5973. Delete the property PROPERTY from entry at point-or-marker POM.
  5974. -- Function: org-entry-put pom property value
  5975. Set PROPERTY to VALUE for entry at point-or-marker POM.
  5976. -- Function: org-buffer-property-keys &optional include-specials
  5977. Get all property keys in the current buffer.
  5978. -- Function: org-insert-property-drawer
  5979. Insert a property drawer at point.
  5980. 
  5981. File: org, Node: History and Acknowledgments, Next: Index, Prev: Extensions and Hacking, Up: Top
  5982. Appendix B History and Acknowledgments
  5983. **************************************
  5984. Org-mode was borne in 2003, out of frustration over the user interface
  5985. of the Emacs outline-mode. I was trying to organize my notes and
  5986. projects, and using Emacs seemed to be the natural way to go. However,
  5987. having to remember eleven different commands with two or three keys per
  5988. command, only to hide and unhide parts of the outline tree, that seemed
  5989. entirely unacceptable to me. Also, when using outlines to take notes, I
  5990. constantly want to restructure the tree, organizing it parallel to my
  5991. thoughts and plans. _Visibility cycling_ and _structure editing_ were
  5992. originally implemented in the package `outline-magic.el', but quickly
  5993. moved to the more general `org.el'. As this environment became
  5994. comfortable for project planning, the next step was adding _TODO
  5995. entries_, basic _time stamps_, and _table support_. These areas
  5996. highlight the two main goals that Org-mode still has today: To create a
  5997. new, outline-based, plain text mode with innovative and intuitive
  5998. editing features, and to incorporate project planning functionality
  5999. directly into a notes file.
  6000. Since the first release, literally thousands of emails to me or on
  6001. `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
  6002. feedback, new ideas, and sometimes patches and add-on code. Many
  6003. thanks to everyone who has helped to improve this package. I am trying
  6004. to keep here a list of the people who had significant influence in
  6005. shaping one or more aspects of Org-mode. The list may not be complete,
  6006. if I have forgotten someone, please accept my apologies and let me know.
  6007. * Russel Adams came up with the idea for drawers.
  6008. * Thomas Baumann contributed the code for links to the MH-E email
  6009. system.
  6010. * Alex Bochannek provided a patch for rounding time stamps.
  6011. * Charles Cave's suggestion sparked the implementation of templates
  6012. for Remember.
  6013. * Pavel Chalmoviansky influenced the agenda treatment of items with
  6014. specified time.
  6015. * Gregory Chernov patched support for lisp forms into table
  6016. calculations and improved XEmacs compatibility, in particular by
  6017. porting `nouline.el' to XEmacs.
  6018. * Sacha Chua suggested to copy some linking code from Planner.
  6019. * Eddward DeVilla proposed and tested checkbox statistics. He also
  6020. came up with the idea of properties, and that there should be an
  6021. API for them.
  6022. * Kees Dullemond used to edit projects lists directly in HTML and so
  6023. inspired some of the early development, including HTML export. He
  6024. also asked for a way to narrow wide table columns.
  6025. * Christian Egli converted the documentation into TeXInfo format,
  6026. patched CSS formatting into the HTML exporter, and inspired the
  6027. agenda.
  6028. * David Emery provided a patch for custom CSS support in exported
  6029. HTML agendas.
  6030. * Nic Ferrier contributed mailcap and XOXO support.
  6031. * John Foerch figured out how to make incremental search show context
  6032. around a match in a hidden outline tree.
  6033. * Niels Giesen had the idea to automatically archive DONE trees.
  6034. * Bastien Guerry wrote the LaTeX exporter and has been prolific with
  6035. patches, ideas, and bug reports.
  6036. * Kai Grossjohann pointed out key-binding conflicts with other
  6037. packages.
  6038. * Scott Jaderholm proposed footnotes, control over whitespace between
  6039. folded entries, and column view for properties.
  6040. * Shidai Liu ("Leo") asked for embedded LaTeX and tested it. He also
  6041. provided frequent feedback and some patches.
  6042. * Jason F. McBrayer suggested agenda export to CSV format.
  6043. * Dmitri Minaev sent a patch to set priority limits on a per-file
  6044. basis.
  6045. * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
  6046. happy.
  6047. * Rick Moynihan proposed to allow multiple TODO sequences in a file.
  6048. * Todd Neal provided patches for links to Info files and elisp forms.
  6049. * Tim O'Callaghan suggested in-file links, search options for general
  6050. file links, and TAGS.
  6051. * Takeshi Okano translated the manual and David O'Toole's tutorial
  6052. into Japanese.
  6053. * Oliver Oppitz suggested multi-state TODO items.
  6054. * Scott Otterson sparked the introduction of descriptive text for
  6055. links, among other things.
  6056. * Pete Phillips helped during the development of the TAGS feature,
  6057. and provided frequent feedback.
  6058. * T.V. Raman reported bugs and suggested improvements.
  6059. * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
  6060. control.
  6061. * Kevin Rogers contributed code to access VM files on remote hosts.
  6062. * Frank Ruell solved the mystery of the `keymapp nil' bug, a
  6063. conflict with `allout.el'.
  6064. * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
  6065. * Philip Rooke created the Org-mode reference card and provided lots
  6066. of feedback.
  6067. * Christian Schlauer proposed angular brackets around links, among
  6068. other things.
  6069. * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
  6070. `organizer-mode.el'.
  6071. * Daniel Sinder came up with the idea of internal archiving by
  6072. locking subtrees.
  6073. * Dale Smith proposed link abbreviations.
  6074. * Adam Spiers asked for global linking commands and inspired the link
  6075. extension system. support mairix.
  6076. * David O'Toole wrote `org-publish.el' and drafted the manual
  6077. chapter about publishing.
  6078. * Ju"rgen Vollmer contributed code generating the table of contents
  6079. in HTML output.
  6080. * Chris Wallace provided a patch implementing the `QUOTE' keyword.
  6081. * David Wainberg suggested archiving, and improvements to the linking
  6082. system.
  6083. * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
  6084. development of Org-mode was fully independent, and both systems are
  6085. really different beasts in their basic ideas and implementation
  6086. details. I later looked at John's code, however, and learned from
  6087. his implementation of (i) links where the link itself is hidden
  6088. and only a description is shown, and (ii) popping up a calendar to
  6089. select a date. John has also contributed a number of great ideas
  6090. directly to Org-mode.
  6091. * Carsten Wimmer suggested some changes and helped fix a bug in
  6092. linking to GNUS.
  6093. * Roland Winkler requested additional keybindings to make Org-mode
  6094. work on a tty.
  6095. * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
  6096. contributed various ideas and code snippets.
  6097. 
  6098. File: org, Node: Index, Next: Key Index, Prev: History and Acknowledgments, Up: Top
  6099. Index
  6100. *****
  6101. �[index�]
  6102. * Menu:
  6103. * abbreviation, links: Link abbreviations. (line 6)
  6104. * acknowledgments: History and Acknowledgments.
  6105. (line 6)
  6106. * action, for publishing: Publishing action. (line 6)
  6107. * activation: Activation. (line 6)
  6108. * active region <1>: Structure editing. (line 74)
  6109. * active region <2>: HTML Export commands.
  6110. (line 6)
  6111. * active region <3>: ASCII export. (line 9)
  6112. * active region: Built-in table editor.
  6113. (line 143)
  6114. * agenda: Weekly/Daily agenda. (line 6)
  6115. * agenda dispatcher: Agenda dispatcher. (line 6)
  6116. * agenda files: Agenda files. (line 6)
  6117. * agenda files, removing buffers: Agenda commands. (line 244)
  6118. * agenda views: Agenda views. (line 6)
  6119. * agenda views, custom: Custom agenda views. (line 6)
  6120. * agenda views, exporting <1>: Agenda commands. (line 233)
  6121. * agenda views, exporting: Exporting Agenda Views.
  6122. (line 6)
  6123. * agenda views, user-defined: Special agenda views.
  6124. (line 6)
  6125. * agenda, pipe: Extracting Agenda Information for other programs.
  6126. (line 6)
  6127. * agenda, with block views: Block agenda. (line 6)
  6128. * align, STARTUP keyword: In-buffer settings. (line 72)
  6129. * allout.el: Conflicts. (line 6)
  6130. * angular brackets, around links: External links. (line 43)
  6131. * API, for properties <1>: Property API. (line 6)
  6132. * API, for properties: Using the property API.
  6133. (line 6)
  6134. * appointment reminders: Weekly/Daily agenda. (line 65)
  6135. * appt.el: Weekly/Daily agenda. (line 65)
  6136. * archive locations: Moving subtrees. (line 23)
  6137. * archiving: Archiving. (line 6)
  6138. * ASCII export: ASCII export. (line 6)
  6139. * author: Feedback. (line 6)
  6140. * author info, in export: Export options. (line 26)
  6141. * autoload: Activation. (line 6)
  6142. * backtrace of an error: Feedback. (line 27)
  6143. * BBDB links: External links. (line 6)
  6144. * block agenda: Block agenda. (line 6)
  6145. * blorg.el: Extensions. (line 32)
  6146. * bold text: Enhancing text. (line 15)
  6147. * Boolean logic, for tag searches: Tag searches. (line 24)
  6148. * bug reports: Feedback. (line 6)
  6149. * bugs: Bugs. (line 6)
  6150. * C-c C-c, overview: The very busy C-c C-c key.
  6151. (line 6)
  6152. * calc package: The spreadsheet. (line 6)
  6153. * calc.el: Cooperation. (line 6)
  6154. * calculations, in tables <1>: Built-in table editor.
  6155. (line 143)
  6156. * calculations, in tables: The spreadsheet. (line 6)
  6157. * calendar commands, from agenda: Agenda commands. (line 196)
  6158. * calendar integration: Weekly/Daily agenda. (line 23)
  6159. * calendar, for selecting date: The date/time prompt.
  6160. (line 53)
  6161. * category: Categories. (line 6)
  6162. * category, require for tags/property match: Tag searches. (line 69)
  6163. * CDLaTeX: CDLaTeX mode. (line 6)
  6164. * cdlatex.el: Cooperation. (line 29)
  6165. * checkbox statistics: Checkboxes. (line 23)
  6166. * checkboxes: Checkboxes. (line 6)
  6167. * children, subtree visibility state: Visibility cycling. (line 10)
  6168. * clean outline view: Clean view. (line 6)
  6169. * column formula: Column formulas. (line 6)
  6170. * column view, for properties: Defining columns. (line 6)
  6171. * commands, in agenda buffer: Agenda commands. (line 6)
  6172. * comment lines: Comment lines. (line 6)
  6173. * completion, of dictionary words: Completion. (line 6)
  6174. * completion, of file names: Handling links. (line 44)
  6175. * completion, of link abbreviations: Completion. (line 6)
  6176. * completion, of links: Handling links. (line 25)
  6177. * completion, of option keywords <1>: Per file keywords. (line 23)
  6178. * completion, of option keywords <2>: Completion. (line 6)
  6179. * completion, of option keywords: Export options. (line 6)
  6180. * completion, of property keys: Completion. (line 6)
  6181. * completion, of tags <1>: Setting tags. (line 11)
  6182. * completion, of tags: Completion. (line 6)
  6183. * completion, of TeX symbols: Completion. (line 6)
  6184. * completion, of TODO keywords <1>: Completion. (line 6)
  6185. * completion, of TODO keywords: Workflow states. (line 15)
  6186. * constants, in calculations: References. (line 82)
  6187. * constants.el: Cooperation. (line 14)
  6188. * constcgs, STARTUP keyword: In-buffer settings. (line 98)
  6189. * constSI, STARTUP keyword: In-buffer settings. (line 98)
  6190. * content, STARTUP keyword: In-buffer settings. (line 65)
  6191. * contents, global visibility state: Visibility cycling. (line 22)
  6192. * copying, of subtrees: Structure editing. (line 6)
  6193. * creating timestamps: Creating timestamps. (line 6)
  6194. * CUA.el: Conflicts. (line 15)
  6195. * custom agenda views: Custom agenda views. (line 6)
  6196. * custom date/time format: Custom time format. (line 6)
  6197. * custom search strings: Custom searches. (line 6)
  6198. * customization: Customization. (line 6)
  6199. * customtime, STARTUP keyword: In-buffer settings. (line 95)
  6200. * cutting, of subtrees: Structure editing. (line 6)
  6201. * cycling, of TODO states: TODO basics. (line 13)
  6202. * cycling, visibility: Visibility cycling. (line 6)
  6203. * daily agenda: Weekly/Daily agenda. (line 6)
  6204. * date format, custom: Custom time format. (line 6)
  6205. * date range: Time stamps. (line 40)
  6206. * date stamps <1>: Dates and times. (line 6)
  6207. * date stamps: Time stamps. (line 6)
  6208. * date, reading in minibuffer: The date/time prompt.
  6209. (line 6)
  6210. * dates: Dates and times. (line 6)
  6211. * DEADLINE keyword: Deadlines and scheduling.
  6212. (line 10)
  6213. * deadlines: Time stamps. (line 6)
  6214. * debugging, of table formulas: Editing and debugging formulas.
  6215. (line 97)
  6216. * demotion, of subtrees: Structure editing. (line 6)
  6217. * diary entries, creating from agenda: Agenda commands. (line 201)
  6218. * diary integration: Weekly/Daily agenda. (line 23)
  6219. * dictionary word completion: Completion. (line 6)
  6220. * directories, for publishing: Sources and destinations.
  6221. (line 6)
  6222. * dispatching agenda commands: Agenda dispatcher. (line 6)
  6223. * display changing, in agenda: Agenda commands. (line 65)
  6224. * document structure: Document structure. (line 6)
  6225. * DONE, final TODO keyword: Per file keywords. (line 26)
  6226. * drawer, for properties: Property syntax. (line 6)
  6227. * drawers: Drawers. (line 6)
  6228. * dynamic blocks: Dynamic blocks. (line 6)
  6229. * editing tables: Tables. (line 6)
  6230. * editing, of table formulas: Editing and debugging formulas.
  6231. (line 6)
  6232. * elisp links: External links. (line 6)
  6233. * emphasized text: Export options. (line 26)
  6234. * enhancing text: Enhancing text. (line 6)
  6235. * evaluate time range: Creating timestamps. (line 48)
  6236. * even, STARTUP keyword: In-buffer settings. (line 88)
  6237. * examples, quoted: Quoted examples. (line 6)
  6238. * exporting: Exporting. (line 6)
  6239. * exporting agenda views <1>: Agenda commands. (line 233)
  6240. * exporting agenda views: Exporting Agenda Views.
  6241. (line 12)
  6242. * exporting, not: Comment lines. (line 6)
  6243. * extended TODO keywords: TODO extensions. (line 6)
  6244. * extension, third-party: Extensions. (line 6)
  6245. * external archiving: Moving subtrees. (line 6)
  6246. * external links: External links. (line 6)
  6247. * external links, in HTML export: Links. (line 6)
  6248. * faces, for TODO keywords: Faces for TODO keywords.
  6249. (line 6)
  6250. * FAQ: Summary. (line 56)
  6251. * feedback: Feedback. (line 6)
  6252. * field formula: Field formulas. (line 6)
  6253. * field references: References. (line 15)
  6254. * file links: External links. (line 6)
  6255. * file links, searching: Search options. (line 6)
  6256. * file name completion: Handling links. (line 44)
  6257. * files for agenda: Agenda files. (line 6)
  6258. * files, adding to agenda list: Agenda files. (line 15)
  6259. * files, selecting for publishing: Selecting files. (line 6)
  6260. * fixed width: Enhancing text. (line 30)
  6261. * fixed width text: Quoted examples. (line 6)
  6262. * fixed-width sections: Export options. (line 26)
  6263. * folded, subtree visibility state: Visibility cycling. (line 10)
  6264. * folding, sparse trees: Sparse trees. (line 6)
  6265. * following links: Handling links. (line 59)
  6266. * footnote.el <1>: Cooperation. (line 56)
  6267. * footnote.el <2>: Footnotes. (line 6)
  6268. * footnote.el: Conflicts. (line 35)
  6269. * footnotes <1>: Footnotes. (line 6)
  6270. * footnotes: Export options. (line 26)
  6271. * format specifier: Formula syntax for Calc.
  6272. (line 14)
  6273. * format, of links: Link format. (line 6)
  6274. * formula debugging: Editing and debugging formulas.
  6275. (line 97)
  6276. * formula editing: Editing and debugging formulas.
  6277. (line 6)
  6278. * formula syntax, Calc: Formula syntax for Calc.
  6279. (line 6)
  6280. * formula, for individual table field: Field formulas. (line 6)
  6281. * formula, for table column: Column formulas. (line 6)
  6282. * formula, in tables: Built-in table editor.
  6283. (line 143)
  6284. * global cycling: Visibility cycling. (line 22)
  6285. * global keybindings: Activation. (line 6)
  6286. * global TODO list: Global TODO list. (line 6)
  6287. * global visibility states: Visibility cycling. (line 22)
  6288. * GNUS links: External links. (line 6)
  6289. * grouping columns in tables: Column groups. (line 6)
  6290. * hand-formatted lists: Enhancing text. (line 11)
  6291. * headline levels: Export options. (line 26)
  6292. * headline levels, for exporting <1>: LaTeX export commands.
  6293. (line 26)
  6294. * headline levels, for exporting <2>: HTML Export commands.
  6295. (line 44)
  6296. * headline levels, for exporting: ASCII export. (line 21)
  6297. * headline navigation: Motion. (line 6)
  6298. * headline tagging: Tags. (line 6)
  6299. * headline, promotion and demotion: Structure editing. (line 6)
  6300. * headlines: Headlines. (line 6)
  6301. * hide text: Visibility cycling. (line 6)
  6302. * hidestars, STARTUP keyword: In-buffer settings. (line 88)
  6303. * hiding leading stars: Clean view. (line 6)
  6304. * history: History and Acknowledgments.
  6305. (line 6)
  6306. * horizontal rules, in exported files: Enhancing text. (line 20)
  6307. * HTML entities, LaTeX entities: Enhancing text. (line 45)
  6308. * HTML export: HTML export. (line 6)
  6309. * HTML, and orgtbl-mode: Translator functions.
  6310. (line 6)
  6311. * hyperlinks: Hyperlinks. (line 6)
  6312. * hyperlinks, adding new types: Adding hyperlink types.
  6313. (line 6)
  6314. * iCalendar export: iCalendar export. (line 6)
  6315. * images, inline in HTML: Images. (line 6)
  6316. * in-buffer settings: In-buffer settings. (line 6)
  6317. * inactive timestamp: Time stamps. (line 49)
  6318. * index, of published pages: Project page index. (line 6)
  6319. * Info links: External links. (line 6)
  6320. * inheritance, of properties: Property searches. (line 6)
  6321. * inheritance, of tags: Tag inheritance. (line 6)
  6322. * inlining images in HTML: Images. (line 6)
  6323. * inserting links: Handling links. (line 25)
  6324. * installation: Installation. (line 6)
  6325. * internal archiving: ARCHIVE tag. (line 6)
  6326. * internal links: Internal links. (line 6)
  6327. * internal links, in HTML export: Links. (line 6)
  6328. * introduction: Introduction. (line 6)
  6329. * italic text: Enhancing text. (line 15)
  6330. * jumping, to headlines: Motion. (line 6)
  6331. * keybindings, global: Activation. (line 6)
  6332. * keyword options: Per file keywords. (line 6)
  6333. * LaTeX class: Sectioning structure.
  6334. (line 6)
  6335. * LaTeX export: LaTeX export. (line 6)
  6336. * LaTeX fragments <1>: Export options. (line 26)
  6337. * LaTeX fragments: LaTeX fragments. (line 6)
  6338. * LaTeX fragments, export: Enhancing text. (line 23)
  6339. * LaTeX fragments, preview: Processing LaTeX fragments.
  6340. (line 6)
  6341. * LaTeX interpretation: Embedded LaTeX. (line 6)
  6342. * LaTeX sectioning structure: Sectioning structure.
  6343. (line 6)
  6344. * LaTeX, and orgtbl-mode: A LaTeX example. (line 6)
  6345. * level, require for tags/property match: Tag searches. (line 69)
  6346. * linebreak preservation: Export options. (line 26)
  6347. * linebreak, forced: Enhancing text. (line 42)
  6348. * link abbreviations: Link abbreviations. (line 6)
  6349. * link abbreviations, completion of: Completion. (line 6)
  6350. * link completion: Handling links. (line 25)
  6351. * link format: Link format. (line 6)
  6352. * links, external: External links. (line 6)
  6353. * links, finding next/previous: Handling links. (line 92)
  6354. * links, handling: Handling links. (line 6)
  6355. * links, in HTML export: Links. (line 6)
  6356. * links, internal: Internal links. (line 6)
  6357. * links, publishing: Publishing links. (line 6)
  6358. * links, radio targets: Radio targets. (line 6)
  6359. * links, returning to: Handling links. (line 86)
  6360. * Lisp forms, as table formulas: Formula syntax for Lisp.
  6361. (line 6)
  6362. * lists, hand-formatted: Enhancing text. (line 11)
  6363. * lists, in other modes: Tables in arbitrary syntax.
  6364. (line 6)
  6365. * lists, ordered: Plain lists. (line 6)
  6366. * lists, plain: Plain lists. (line 6)
  6367. * logdone, STARTUP keyword: In-buffer settings. (line 77)
  6368. * logging, of progress: Progress logging. (line 6)
  6369. * lognoteclock-out, STARTUP keyword: In-buffer settings. (line 77)
  6370. * lognotedone, STARTUP keyword: In-buffer settings. (line 77)
  6371. * lognotestate, STARTUP keyword: In-buffer settings. (line 77)
  6372. * logrepeat, STARTUP keyword: In-buffer settings. (line 77)
  6373. * maintainer: Feedback. (line 6)
  6374. * mark ring: Handling links. (line 82)
  6375. * marking characters, tables: Advanced features. (line 40)
  6376. * matching, of properties: Matching tags and properties.
  6377. (line 6)
  6378. * matching, of tags: Matching tags and properties.
  6379. (line 6)
  6380. * matching, tags: Tags. (line 6)
  6381. * math symbols: Math symbols. (line 6)
  6382. * MH-E links: External links. (line 6)
  6383. * minor mode for structure editing: orgstruct-mode. (line 6)
  6384. * minor mode for tables: orgtbl-mode. (line 6)
  6385. * mode, for calc: Formula syntax for Calc.
  6386. (line 14)
  6387. * motion commands in agenda: Agenda commands. (line 19)
  6388. * motion, between headlines: Motion. (line 6)
  6389. * name, of column or field: References. (line 82)
  6390. * named references: References. (line 82)
  6391. * names as TODO keywords: TODO types. (line 6)
  6392. * narrow columns in tables: Narrow columns. (line 6)
  6393. * noalign, STARTUP keyword: In-buffer settings. (line 72)
  6394. * nologging, STARTUP keyword: In-buffer settings. (line 77)
  6395. * nologrepeat, STARTUP keyword: In-buffer settings. (line 77)
  6396. * occur, command: Sparse trees. (line 6)
  6397. * odd, STARTUP keyword: In-buffer settings. (line 88)
  6398. * option keyword completion: Completion. (line 6)
  6399. * options, for custom agenda views: Setting Options. (line 6)
  6400. * options, for customization: Customization. (line 6)
  6401. * options, for export: Export options. (line 6)
  6402. * options, for publishing: Publishing options. (line 6)
  6403. * ordered lists: Plain lists. (line 6)
  6404. * org-agenda, command: Weekly/Daily agenda. (line 9)
  6405. * org-blog.el: Extensions. (line 28)
  6406. * org-list-insert-radio-list: Radio lists. (line 6)
  6407. * org-mode, turning on: Activation. (line 22)
  6408. * org-mouse.el: Extensions. (line 16)
  6409. * org-publish-project-alist: Project alist. (line 6)
  6410. * org-publish.el: Extensions. (line 8)
  6411. * org2rem.el: Extensions. (line 36)
  6412. * orgstruct-mode: orgstruct-mode. (line 6)
  6413. * orgtbl-mode <1>: orgtbl-mode. (line 6)
  6414. * orgtbl-mode: Tables in arbitrary syntax.
  6415. (line 6)
  6416. * outline tree: Headlines. (line 6)
  6417. * outline-mode: Outlines. (line 6)
  6418. * outlines: Outlines. (line 6)
  6419. * overview, global visibility state: Visibility cycling. (line 22)
  6420. * overview, STARTUP keyword: In-buffer settings. (line 65)
  6421. * packages, interaction with other: Interaction. (line 6)
  6422. * pasting, of subtrees: Structure editing. (line 6)
  6423. * per file keywords: Per file keywords. (line 6)
  6424. * plain lists: Plain lists. (line 6)
  6425. * plain text external links: External links. (line 43)
  6426. * presentation, of agenda items: Presentation and sorting.
  6427. (line 6)
  6428. * printing sparse trees: Sparse trees. (line 46)
  6429. * priorities: Priorities. (line 6)
  6430. * priorities, of agenda items: Sorting of agenda items.
  6431. (line 6)
  6432. * progress logging: Progress logging. (line 6)
  6433. * projects, for publishing: Project alist. (line 6)
  6434. * promotion, of subtrees: Structure editing. (line 6)
  6435. * properties: Properties and columns.
  6436. (line 6)
  6437. * properties, API <1>: Property API. (line 6)
  6438. * properties, API: Using the property API.
  6439. (line 6)
  6440. * properties, column view: Defining columns. (line 6)
  6441. * properties, inheritance: Property searches. (line 6)
  6442. * properties, searching: Property searches. (line 6)
  6443. * properties, special: Special properties. (line 6)
  6444. * property syntax: Property syntax. (line 6)
  6445. * publishing: Publishing. (line 6)
  6446. * quoted examples: Quoted examples. (line 6)
  6447. * quoted HTML tags: Export options. (line 26)
  6448. * radio lists: Radio lists. (line 6)
  6449. * radio tables: Radio tables. (line 6)
  6450. * radio targets: Radio targets. (line 6)
  6451. * range references: References. (line 60)
  6452. * ranges, time: Time stamps. (line 6)
  6453. * recomputing table fields: Updating the table. (line 6)
  6454. * references: References. (line 6)
  6455. * references, named: References. (line 82)
  6456. * references, to fields: References. (line 15)
  6457. * references, to ranges: References. (line 60)
  6458. * refiling notes: Refiling notes. (line 6)
  6459. * region, active <1>: Built-in table editor.
  6460. (line 143)
  6461. * region, active <2>: Structure editing. (line 74)
  6462. * region, active <3>: HTML Export commands.
  6463. (line 6)
  6464. * region, active: ASCII export. (line 9)
  6465. * regular expressions, with tags search: Tag searches. (line 64)
  6466. * remember.el <1>: Remember. (line 6)
  6467. * remember.el: Cooperation. (line 33)
  6468. * remote editing, from agenda: Agenda commands. (line 107)
  6469. * remote editing, undo: Agenda commands. (line 108)
  6470. * richer text: Enhancing text. (line 6)
  6471. * RMAIL links: External links. (line 6)
  6472. * SCHEDULED keyword: Deadlines and scheduling.
  6473. (line 26)
  6474. * scheduling: Time stamps. (line 6)
  6475. * Scripts, for agenda processing: Extracting Agenda Information for other programs.
  6476. (line 6)
  6477. * search option in file links: Search options. (line 6)
  6478. * search strings, custom: Custom searches. (line 6)
  6479. * searching for tags: Tag searches. (line 6)
  6480. * searching, of properties: Property searches. (line 6)
  6481. * section-numbers: Export options. (line 26)
  6482. * setting tags: Setting tags. (line 6)
  6483. * SHELL links: External links. (line 6)
  6484. * show all, command: Visibility cycling. (line 33)
  6485. * show all, global visibility state: Visibility cycling. (line 22)
  6486. * show hidden text: Visibility cycling. (line 6)
  6487. * showall, STARTUP keyword: In-buffer settings. (line 65)
  6488. * showstars, STARTUP keyword: In-buffer settings. (line 88)
  6489. * sorting, of agenda items: Sorting of agenda items.
  6490. (line 6)
  6491. * sparse tree, for deadlines: Inserting deadline/schedule.
  6492. (line 13)
  6493. * sparse tree, for TODO: TODO basics. (line 38)
  6494. * sparse tree, tag based: Tags. (line 6)
  6495. * sparse trees: Sparse trees. (line 6)
  6496. * special keywords: In-buffer settings. (line 6)
  6497. * special strings: Export options. (line 26)
  6498. * spreadsheet capabilities: The spreadsheet. (line 6)
  6499. * statistics, for checkboxes: Checkboxes. (line 23)
  6500. * storing links: Handling links. (line 9)
  6501. * structure editing: Structure editing. (line 6)
  6502. * structure of document: Document structure. (line 6)
  6503. * sublevels, inclusion into tags match: Tag inheritance. (line 6)
  6504. * sublevels, inclusion into todo list: Global TODO list. (line 34)
  6505. * subscript: Subscripts and Superscripts.
  6506. (line 6)
  6507. * subtree cycling: Visibility cycling. (line 10)
  6508. * subtree visibility states: Visibility cycling. (line 10)
  6509. * subtree, cut and paste: Structure editing. (line 6)
  6510. * subtree, subtree visibility state: Visibility cycling. (line 10)
  6511. * subtrees, cut and paste: Structure editing. (line 6)
  6512. * summary: Summary. (line 6)
  6513. * superscript: Subscripts and Superscripts.
  6514. (line 6)
  6515. * syntax, of formulas: Formula syntax for Calc.
  6516. (line 6)
  6517. * table editor, built-in: Built-in table editor.
  6518. (line 6)
  6519. * table editor, table.el: Cooperation. (line 37)
  6520. * table of contents: Export options. (line 26)
  6521. * table.el: Cooperation. (line 34)
  6522. * tables <1>: Export options. (line 26)
  6523. * tables: Tables. (line 6)
  6524. * tables, export: Enhancing text. (line 26)
  6525. * tables, in other modes: Tables in arbitrary syntax.
  6526. (line 6)
  6527. * tag completion: Completion. (line 6)
  6528. * tag inheritance: Tag inheritance. (line 6)
  6529. * tag searches: Tag searches. (line 6)
  6530. * tags: Tags. (line 6)
  6531. * tags view: Matching tags and properties.
  6532. (line 6)
  6533. * tags, setting: Setting tags. (line 6)
  6534. * targets, for links: Internal links. (line 6)
  6535. * targets, radio: Radio targets. (line 6)
  6536. * tasks, breaking down: Breaking down tasks. (line 6)
  6537. * templates, for remember: Remember templates. (line 6)
  6538. * TeX interpretation: Embedded LaTeX. (line 6)
  6539. * TeX macros <1>: Math symbols. (line 6)
  6540. * TeX macros: Export options. (line 26)
  6541. * TeX macros, export: Enhancing text. (line 23)
  6542. * TeX symbol completion: Completion. (line 6)
  6543. * TeX-like syntax for sub- and superscripts: Export options. (line 26)
  6544. * text, fixed width: Quoted examples. (line 6)
  6545. * thanks: History and Acknowledgments.
  6546. (line 6)
  6547. * time format, custom: Custom time format. (line 6)
  6548. * time grid: Time-of-day specifications.
  6549. (line 26)
  6550. * time info, in export: Export options. (line 26)
  6551. * time stamps <1>: Dates and times. (line 6)
  6552. * time stamps: Time stamps. (line 6)
  6553. * time, reading in minibuffer: The date/time prompt.
  6554. (line 6)
  6555. * time-of-day specification: Time-of-day specifications.
  6556. (line 6)
  6557. * time-sorted view: Timeline. (line 6)
  6558. * timeline, single file: Timeline. (line 6)
  6559. * timerange: Time stamps. (line 40)
  6560. * times: Dates and times. (line 6)
  6561. * timestamp: Time stamps. (line 14)
  6562. * timestamp, inactive: Time stamps. (line 49)
  6563. * timestamp, with repeater interval: Time stamps. (line 24)
  6564. * timestamps, creating: Creating timestamps. (line 6)
  6565. * TODO items: TODO items. (line 6)
  6566. * TODO keyword matching: Global TODO list. (line 17)
  6567. * TODO keyword matching, with tags search: Tag searches. (line 41)
  6568. * todo keyword sets: Multiple sets in one file.
  6569. (line 6)
  6570. * TODO keywords completion: Completion. (line 6)
  6571. * TODO list, global: Global TODO list. (line 6)
  6572. * TODO types: TODO types. (line 6)
  6573. * TODO workflow: Workflow states. (line 6)
  6574. * transient-mark-mode <1>: ASCII export. (line 9)
  6575. * transient-mark-mode <2>: Built-in table editor.
  6576. (line 143)
  6577. * transient-mark-mode <3>: Structure editing. (line 74)
  6578. * transient-mark-mode: HTML Export commands.
  6579. (line 6)
  6580. * translator function: Translator functions.
  6581. (line 6)
  6582. * trees, sparse: Sparse trees. (line 6)
  6583. * trees, visibility: Visibility cycling. (line 6)
  6584. * tty keybindings: TTY keys. (line 6)
  6585. * types as TODO keywords: TODO types. (line 6)
  6586. * underlined text: Enhancing text. (line 15)
  6587. * undoing remote-editing events: Agenda commands. (line 108)
  6588. * updating, table: Updating the table. (line 6)
  6589. * URL links: External links. (line 6)
  6590. * USENET links: External links. (line 6)
  6591. * variables, for customization: Customization. (line 6)
  6592. * vectors, in table calculations: Formula syntax for Calc.
  6593. (line 11)
  6594. * verbatim text: Enhancing text. (line 15)
  6595. * visibility cycling: Visibility cycling. (line 6)
  6596. * visibility cycling, drawers: Drawers. (line 6)
  6597. * visible text, printing: Sparse trees. (line 46)
  6598. * VM links: External links. (line 6)
  6599. * WANDERLUST links: External links. (line 6)
  6600. * weekly agenda: Weekly/Daily agenda. (line 6)
  6601. * windmove.el: Conflicts. (line 32)
  6602. * workflow states as TODO keywords: Workflow states. (line 6)
  6603. * XEmacs: Installation. (line 6)
  6604. * XOXO export: XOXO export. (line 6)
  6605. 
  6606. File: org, Node: Key Index, Prev: Index, Up: Top
  6607. Key Index
  6608. *********
  6609. �[index�]
  6610. * Menu:
  6611. * $: Agenda commands. (line 122)
  6612. * ': CDLaTeX mode. (line 43)
  6613. * +: Agenda commands. (line 145)
  6614. * ,: Agenda commands. (line 137)
  6615. * -: Agenda commands. (line 151)
  6616. * .: Agenda commands. (line 99)
  6617. * :: Agenda commands. (line 130)
  6618. * < <1>: The date/time prompt.
  6619. (line 59)
  6620. * <: Using column view. (line 57)
  6621. * <left>: Agenda commands. (line 96)
  6622. * <RET> <1>: The date/time prompt.
  6623. (line 59)
  6624. * <RET> <2>: Setting tags. (line 76)
  6625. * <RET> <3>: Agenda commands. (line 39)
  6626. * <RET>: Built-in table editor.
  6627. (line 64)
  6628. * <right>: Agenda commands. (line 91)
  6629. * <SPC> <1>: Agenda commands. (line 28)
  6630. * <SPC>: Setting tags. (line 73)
  6631. * <TAB> <1>: Visibility cycling. (line 10)
  6632. * <TAB> <2>: Editing and debugging formulas.
  6633. (line 57)
  6634. * <TAB> <3>: Built-in table editor.
  6635. (line 57)
  6636. * <TAB> <4>: Plain lists. (line 41)
  6637. * <TAB> <5>: Agenda commands. (line 33)
  6638. * <TAB> <6>: CDLaTeX mode. (line 23)
  6639. * <TAB>: Setting tags. (line 68)
  6640. * > <1>: Using column view. (line 57)
  6641. * > <2>: Agenda commands. (line 173)
  6642. * >: The date/time prompt.
  6643. (line 59)
  6644. * ^: CDLaTeX mode. (line 33)
  6645. * _: CDLaTeX mode. (line 33)
  6646. * `: CDLaTeX mode. (line 39)
  6647. * a <1>: Using column view. (line 46)
  6648. * a: Agenda commands. (line 134)
  6649. * b: Agenda commands. (line 49)
  6650. * C: Agenda commands. (line 216)
  6651. * c: Agenda commands. (line 196)
  6652. * C-#: Advanced features. (line 9)
  6653. * C-': Agenda files. (line 21)
  6654. * C-,: Agenda files. (line 21)
  6655. * C-<RET>: Structure editing. (line 18)
  6656. * C-_: Agenda commands. (line 108)
  6657. * C-c ! <1>: Footnotes. (line 14)
  6658. * C-c !: Creating timestamps. (line 19)
  6659. * C-c #: Checkboxes. (line 57)
  6660. * C-c %: Handling links. (line 82)
  6661. * C-c &: Handling links. (line 86)
  6662. * C-c ': Editing and debugging formulas.
  6663. (line 36)
  6664. * C-c *: Updating the table. (line 13)
  6665. * C-c +: Built-in table editor.
  6666. (line 143)
  6667. * C-c ,: Priorities. (line 18)
  6668. * C-c - <1>: Plain lists. (line 88)
  6669. * C-c -: Built-in table editor.
  6670. (line 92)
  6671. * C-c .: Creating timestamps. (line 10)
  6672. * C-c /: Sparse trees. (line 15)
  6673. * C-c / d: Inserting deadline/schedule.
  6674. (line 13)
  6675. * C-c / p: Property searches. (line 23)
  6676. * C-c / r: Sparse trees. (line 17)
  6677. * C-c / T: Tag searches. (line 9)
  6678. * C-c / t: TODO basics. (line 38)
  6679. * C-c : <1>: Quoted examples. (line 15)
  6680. * C-c :: Enhancing text. (line 34)
  6681. * C-c ;: Comment lines. (line 10)
  6682. * C-c <: Creating timestamps. (line 23)
  6683. * C-c <TAB>: Built-in table editor.
  6684. (line 163)
  6685. * C-c = <1>: Column formulas. (line 26)
  6686. * C-c =: Editing and debugging formulas.
  6687. (line 14)
  6688. * C-c >: Creating timestamps. (line 27)
  6689. * C-c ?: Editing and debugging formulas.
  6690. (line 24)
  6691. * C-c [: Agenda files. (line 15)
  6692. * C-c \: Tag searches. (line 9)
  6693. * C-c ]: Agenda files. (line 18)
  6694. * C-c ^ <1>: Structure editing. (line 61)
  6695. * C-c ^: Built-in table editor.
  6696. (line 96)
  6697. * C-c `: Built-in table editor.
  6698. (line 159)
  6699. * C-c a !: Stuck projects. (line 14)
  6700. * C-c a #: Stuck projects. (line 13)
  6701. * C-c a a: Weekly/Daily agenda. (line 9)
  6702. * C-c a C: Storing searches. (line 9)
  6703. * C-c a e: Exporting Agenda Views.
  6704. (line 57)
  6705. * C-c a L: Timeline. (line 10)
  6706. * C-c a M <1>: Tag searches. (line 17)
  6707. * C-c a M: Matching tags and properties.
  6708. (line 15)
  6709. * C-c a m <1>: Tag searches. (line 13)
  6710. * C-c a m: Matching tags and properties.
  6711. (line 10)
  6712. * C-c a t <1>: Global TODO list. (line 9)
  6713. * C-c a t: TODO basics. (line 49)
  6714. * C-c a T: Global TODO list. (line 14)
  6715. * C-c C-a: Visibility cycling. (line 33)
  6716. * C-c C-b: Motion. (line 15)
  6717. * C-c C-c <1>: TODO basics. (line 30)
  6718. * C-c C-c <2>: Cooperation. (line 37)
  6719. * C-c C-c <3>: The very busy C-c C-c key.
  6720. (line 6)
  6721. * C-c C-c <4>: Processing LaTeX fragments.
  6722. (line 15)
  6723. * C-c C-c <5>: Plain lists. (line 81)
  6724. * C-c C-c <6>: Built-in table editor.
  6725. (line 56)
  6726. * C-c C-c <7>: Clocking work time. (line 89)
  6727. * C-c C-c <8>: Editing and debugging formulas.
  6728. (line 46)
  6729. * C-c C-c <9>: Capturing Column View.
  6730. (line 39)
  6731. * C-c C-c <10>: Using column view. (line 39)
  6732. * C-c C-c <11>: Editing and debugging formulas.
  6733. (line 90)
  6734. * C-c C-c <12>: Property syntax. (line 58)
  6735. * C-c C-c <13>: Setting tags. (line 10)
  6736. * C-c C-c: Checkboxes. (line 37)
  6737. * C-c C-d <1>: Inserting deadline/schedule.
  6738. (line 9)
  6739. * C-c C-d: Agenda commands. (line 158)
  6740. * C-c C-e: Exporting. (line 20)
  6741. * C-c C-e a: ASCII export. (line 9)
  6742. * C-c C-e b: HTML Export commands.
  6743. (line 13)
  6744. * C-c C-e c: iCalendar export. (line 21)
  6745. * C-c C-e h: HTML Export commands.
  6746. (line 6)
  6747. * C-c C-e H: HTML Export commands.
  6748. (line 16)
  6749. * C-c C-e i: iCalendar export. (line 14)
  6750. * C-c C-e I: iCalendar export. (line 16)
  6751. * C-c C-e L: LaTeX export commands.
  6752. (line 7)
  6753. * C-c C-e l: LaTeX export commands.
  6754. (line 6)
  6755. * C-c C-e R: HTML Export commands.
  6756. (line 19)
  6757. * C-c C-e t: Export options. (line 13)
  6758. * C-c C-e v <1>: XOXO export. (line 11)
  6759. * C-c C-e v: Sparse trees. (line 46)
  6760. * C-c C-e v a: ASCII export. (line 16)
  6761. * C-c C-e v b: HTML Export commands.
  6762. (line 24)
  6763. * C-c C-e v H: HTML Export commands.
  6764. (line 24)
  6765. * C-c C-e v h: HTML Export commands.
  6766. (line 24)
  6767. * C-c C-e v l: LaTeX export commands.
  6768. (line 10)
  6769. * C-c C-e v L: LaTeX export commands.
  6770. (line 10)
  6771. * C-c C-e v R: HTML Export commands.
  6772. (line 24)
  6773. * C-c C-e x: XOXO export. (line 10)
  6774. * C-c C-f: Motion. (line 12)
  6775. * C-c C-j: Motion. (line 21)
  6776. * C-c C-l: Handling links. (line 25)
  6777. * C-c C-n: Motion. (line 8)
  6778. * C-c C-o <1>: Creating timestamps. (line 31)
  6779. * C-c C-o: Handling links. (line 59)
  6780. * C-c C-p: Motion. (line 9)
  6781. * C-c C-q <1>: Built-in table editor.
  6782. (line 127)
  6783. * C-c C-q: Editing and debugging formulas.
  6784. (line 50)
  6785. * C-c C-r <1>: Visibility cycling. (line 34)
  6786. * C-c C-r: Editing and debugging formulas.
  6787. (line 53)
  6788. * C-c C-s <1>: Inserting deadline/schedule.
  6789. (line 20)
  6790. * C-c C-s: Agenda commands. (line 155)
  6791. * C-c C-t <1>: Clocking work time. (line 30)
  6792. * C-c C-t: TODO basics. (line 13)
  6793. * C-c C-u: Motion. (line 18)
  6794. * C-c C-v: TODO basics. (line 38)
  6795. * C-c C-w <1>: Structure editing. (line 58)
  6796. * C-c C-w: Refiling notes. (line 13)
  6797. * C-c C-x b: Visibility cycling. (line 41)
  6798. * C-c C-x C-a: ARCHIVE tag. (line 28)
  6799. * C-c C-x C-b: Checkboxes. (line 39)
  6800. * C-c C-x C-c <1>: Agenda commands. (line 223)
  6801. * C-c C-x C-c: Using column view. (line 9)
  6802. * C-c C-x C-d: Clocking work time. (line 42)
  6803. * C-c C-x C-i: Clocking work time. (line 12)
  6804. * C-c C-x C-j: Clocking work time. (line 38)
  6805. * C-c C-x C-k: Structure editing. (line 43)
  6806. * C-c C-x C-l: Processing LaTeX fragments.
  6807. (line 9)
  6808. * C-c C-x C-n: Handling links. (line 92)
  6809. * C-c C-x C-o: Clocking work time. (line 17)
  6810. * C-c C-x C-p: Handling links. (line 92)
  6811. * C-c C-x C-r: Clocking work time. (line 50)
  6812. * C-c C-x C-s: Moving subtrees. (line 10)
  6813. * C-c C-x C-t: Custom time format. (line 12)
  6814. * C-c C-x C-u <1>: Clocking work time. (line 91)
  6815. * C-c C-x C-u <2>: Dynamic blocks. (line 21)
  6816. * C-c C-x C-u: Capturing Column View.
  6817. (line 42)
  6818. * C-c C-x C-w <1>: Built-in table editor.
  6819. (line 116)
  6820. * C-c C-x C-w: Structure editing. (line 43)
  6821. * C-c C-x C-x: Clocking work time. (line 34)
  6822. * C-c C-x C-y <1>: Built-in table editor.
  6823. (line 120)
  6824. * C-c C-x C-y: Structure editing. (line 52)
  6825. * C-c C-x M-w <1>: Structure editing. (line 48)
  6826. * C-c C-x M-w: Built-in table editor.
  6827. (line 113)
  6828. * C-c C-x p: Property syntax. (line 49)
  6829. * C-c C-x r: Capturing Column View.
  6830. (line 37)
  6831. * C-c C-y <1>: Creating timestamps. (line 48)
  6832. * C-c C-y: Clocking work time. (line 25)
  6833. * C-c l: Handling links. (line 9)
  6834. * C-c { <1>: CDLaTeX mode. (line 21)
  6835. * C-c {: Editing and debugging formulas.
  6836. (line 33)
  6837. * C-c |: Built-in table editor.
  6838. (line 40)
  6839. * C-c }: Editing and debugging formulas.
  6840. (line 79)
  6841. * C-c ~: Cooperation. (line 48)
  6842. * C-k: Agenda commands. (line 116)
  6843. * C-S-<left>: Multiple sets in one file.
  6844. (line 25)
  6845. * C-S-<right>: Multiple sets in one file.
  6846. (line 25)
  6847. * C-TAB: ARCHIVE tag. (line 38)
  6848. * C-u C-c *: Updating the table. (line 16)
  6849. * C-u C-c .: Creating timestamps. (line 14)
  6850. * C-u C-c = <1>: Field formulas. (line 24)
  6851. * C-u C-c =: Editing and debugging formulas.
  6852. (line 14)
  6853. * C-u C-c C-c: Updating the table. (line 19)
  6854. * C-u C-c C-l: Handling links. (line 44)
  6855. * C-u C-c C-t: TODO basics. (line 22)
  6856. * C-u C-c C-x C-a: ARCHIVE tag. (line 31)
  6857. * C-u C-c C-x C-s: Moving subtrees. (line 14)
  6858. * C-u C-c C-x C-u <1>: Dynamic blocks. (line 22)
  6859. * C-u C-c C-x C-u <2>: Clocking work time. (line 93)
  6860. * C-u C-c C-x C-u: Capturing Column View.
  6861. (line 44)
  6862. * C-u C-u C-c *: Updating the table. (line 22)
  6863. * C-u C-u C-c =: Editing and debugging formulas.
  6864. (line 18)
  6865. * C-u C-u C-c C-c: Updating the table. (line 22)
  6866. * C-x C-s <1>: Agenda commands. (line 87)
  6867. * C-x C-s: Editing and debugging formulas.
  6868. (line 46)
  6869. * C-x C-w <1>: Agenda commands. (line 232)
  6870. * C-x C-w: Exporting Agenda Views.
  6871. (line 11)
  6872. * D: Agenda commands. (line 72)
  6873. * d: Agenda commands. (line 66)
  6874. * e: Using column view. (line 33)
  6875. * f: Agenda commands. (line 42)
  6876. * g: Agenda commands. (line 76)
  6877. * H: Agenda commands. (line 220)
  6878. * I: Agenda commands. (line 178)
  6879. * i: Agenda commands. (line 201)
  6880. * J: Agenda commands. (line 190)
  6881. * L: Agenda commands. (line 30)
  6882. * l: Agenda commands. (line 55)
  6883. * M: Agenda commands. (line 207)
  6884. * m: Agenda commands. (line 66)
  6885. * M-<down> <1>: Editing and debugging formulas.
  6886. (line 76)
  6887. * M-<down>: Built-in table editor.
  6888. (line 82)
  6889. * M-<left> <1>: Structure editing. (line 25)
  6890. * M-<left>: Built-in table editor.
  6891. (line 74)
  6892. * M-<RET> <1>: Plain lists. (line 49)
  6893. * M-<RET>: Structure editing. (line 6)
  6894. * M-<right> <1>: Structure editing. (line 28)
  6895. * M-<right>: Built-in table editor.
  6896. (line 74)
  6897. * M-<TAB> <1>: Completion. (line 10)
  6898. * M-<TAB> <2>: Property syntax. (line 46)
  6899. * M-<TAB> <3>: Setting tags. (line 6)
  6900. * M-<TAB> <4>: Per file keywords. (line 23)
  6901. * M-<TAB>: Editing and debugging formulas.
  6902. (line 64)
  6903. * M-<up> <1>: Built-in table editor.
  6904. (line 82)
  6905. * M-<up>: Editing and debugging formulas.
  6906. (line 76)
  6907. * M-S-<down> <1>: Built-in table editor.
  6908. (line 89)
  6909. * M-S-<down> <2>: Editing and debugging formulas.
  6910. (line 72)
  6911. * M-S-<down> <3>: Plain lists. (line 66)
  6912. * M-S-<down>: Structure editing. (line 40)
  6913. * M-S-<left> <1>: Plain lists. (line 72)
  6914. * M-S-<left> <2>: Built-in table editor.
  6915. (line 76)
  6916. * M-S-<left> <3>: Structure editing. (line 31)
  6917. * M-S-<left>: The date/time prompt.
  6918. (line 59)
  6919. * M-S-<RET> <1>: Checkboxes. (line 54)
  6920. * M-S-<RET> <2>: Plain lists. (line 59)
  6921. * M-S-<RET>: Structure editing. (line 22)
  6922. * M-S-<right> <1>: The date/time prompt.
  6923. (line 59)
  6924. * M-S-<right> <2>: Plain lists. (line 72)
  6925. * M-S-<right> <3>: Structure editing. (line 34)
  6926. * M-S-<right>: Built-in table editor.
  6927. (line 79)
  6928. * M-S-<up> <1>: Structure editing. (line 37)
  6929. * M-S-<up> <2>: Plain lists. (line 66)
  6930. * M-S-<up> <3>: Built-in table editor.
  6931. (line 86)
  6932. * M-S-<up>: Editing and debugging formulas.
  6933. (line 72)
  6934. * mouse-1 <1>: Agenda commands. (line 33)
  6935. * mouse-1 <2>: Handling links. (line 73)
  6936. * mouse-1: The date/time prompt.
  6937. (line 59)
  6938. * mouse-2 <1>: Handling links. (line 73)
  6939. * mouse-2: Agenda commands. (line 33)
  6940. * mouse-3 <1>: Agenda commands. (line 28)
  6941. * mouse-3: Handling links. (line 78)
  6942. * n <1>: Agenda commands. (line 19)
  6943. * n: Using column view. (line 30)
  6944. * O: Agenda commands. (line 182)
  6945. * o: Agenda commands. (line 65)
  6946. * p <1>: Using column view. (line 30)
  6947. * p: Agenda commands. (line 20)
  6948. * P: Agenda commands. (line 142)
  6949. * q <1>: Agenda commands. (line 243)
  6950. * q: Using column view. (line 17)
  6951. * r <1>: Global TODO list. (line 22)
  6952. * r: Agenda commands. (line 80)
  6953. * S: Agenda commands. (line 211)
  6954. * s: Agenda commands. (line 87)
  6955. * S-<down> <1>: The date/time prompt.
  6956. (line 59)
  6957. * S-<down> <2>: Creating timestamps. (line 40)
  6958. * S-<down> <3>: Plain lists. (line 62)
  6959. * S-<down> <4>: Editing and debugging formulas.
  6960. (line 67)
  6961. * S-<down> <5>: Agenda commands. (line 151)
  6962. * S-<down>: Priorities. (line 23)
  6963. * S-<left> <1>: The date/time prompt.
  6964. (line 59)
  6965. * S-<left> <2>: Agenda commands. (line 169)
  6966. * S-<left> <3>: Creating timestamps. (line 35)
  6967. * S-<left> <4>: TODO basics. (line 26)
  6968. * S-<left> <5>: Multiple sets in one file.
  6969. (line 29)
  6970. * S-<left> <6>: Using column view. (line 26)
  6971. * S-<left> <7>: Property syntax. (line 66)
  6972. * S-<left>: Editing and debugging formulas.
  6973. (line 67)
  6974. * S-<RET>: Built-in table editor.
  6975. (line 146)
  6976. * S-<right> <1>: Editing and debugging formulas.
  6977. (line 67)
  6978. * S-<right> <2>: Multiple sets in one file.
  6979. (line 29)
  6980. * S-<right> <3>: TODO basics. (line 26)
  6981. * S-<right> <4>: Creating timestamps. (line 35)
  6982. * S-<right> <5>: Using column view. (line 26)
  6983. * S-<right> <6>: The date/time prompt.
  6984. (line 59)
  6985. * S-<right> <7>: Agenda commands. (line 161)
  6986. * S-<right>: Property syntax. (line 66)
  6987. * S-<TAB> <1>: Visibility cycling. (line 22)
  6988. * S-<TAB>: Built-in table editor.
  6989. (line 61)
  6990. * S-<up> <1>: Plain lists. (line 62)
  6991. * S-<up> <2>: The date/time prompt.
  6992. (line 59)
  6993. * S-<up> <3>: Editing and debugging formulas.
  6994. (line 67)
  6995. * S-<up> <4>: Creating timestamps. (line 40)
  6996. * S-<up> <5>: Agenda commands. (line 145)
  6997. * S-<up>: Priorities. (line 23)
  6998. * S-M-<left>: Using column view. (line 61)
  6999. * S-M-<RET>: TODO basics. (line 57)
  7000. * S-M-<right>: Using column view. (line 58)
  7001. * T: Agenda commands. (line 125)
  7002. * t: Agenda commands. (line 112)
  7003. * v: Using column view. (line 42)
  7004. * w: Agenda commands. (line 66)
  7005. * x: Agenda commands. (line 244)
  7006. * X: Agenda commands. (line 185)
  7007. * y: Agenda commands. (line 66)
  7008. 
  7009. Tag Table:
  7010. Node: Top970
  7011. Node: Introduction13509
  7012. Node: Summary13995
  7013. Node: Installation17132
  7014. Node: Activation18510
  7015. Node: Feedback19747
  7016. Node: Conventions21836
  7017. Node: Document structure22528
  7018. Node: Outlines23420
  7019. Node: Headlines24085
  7020. Ref: Headlines-Footnote-125089
  7021. Node: Visibility cycling25200
  7022. Ref: Visibility cycling-Footnote-127410
  7023. Ref: Visibility cycling-Footnote-227468
  7024. Ref: Visibility cycling-Footnote-327518
  7025. Node: Motion27788
  7026. Node: Structure editing28742
  7027. Node: Archiving31990
  7028. Node: ARCHIVE tag32548
  7029. Node: Moving subtrees34341
  7030. Ref: Moving subtrees-Footnote-135888
  7031. Node: Sparse trees36332
  7032. Ref: Sparse trees-Footnote-138604
  7033. Ref: Sparse trees-Footnote-238786
  7034. Node: Plain lists38901
  7035. Ref: Plain lists-Footnote-143098
  7036. Ref: Plain lists-Footnote-243456
  7037. Node: Drawers43637
  7038. Ref: Drawers-Footnote-144514
  7039. Node: orgstruct-mode44620
  7040. Node: Tables45520
  7041. Node: Built-in table editor46101
  7042. Node: Narrow columns53518
  7043. Ref: Narrow columns-Footnote-155453
  7044. Node: Column groups55499
  7045. Node: orgtbl-mode57032
  7046. Node: The spreadsheet57835
  7047. Node: References58922
  7048. Ref: References-Footnote-163389
  7049. Ref: References-Footnote-263530
  7050. Node: Formula syntax for Calc63819
  7051. Node: Formula syntax for Lisp66276
  7052. Node: Field formulas67994
  7053. Node: Column formulas69302
  7054. Node: Editing and debugging formulas70901
  7055. Node: Updating the table75054
  7056. Node: Advanced features76107
  7057. Node: Hyperlinks80632
  7058. Node: Link format81410
  7059. Node: Internal links82703
  7060. Ref: Internal links-Footnote-184628
  7061. Node: Radio targets84763
  7062. Node: External links85463
  7063. Node: Handling links87867
  7064. Ref: Handling links-Footnote-193183
  7065. Ref: Handling links-Footnote-293420
  7066. Node: Using links outside Org-mode93494
  7067. Node: Link abbreviations94004
  7068. Node: Search options95697
  7069. Ref: Search options-Footnote-197477
  7070. Node: Custom searches97558
  7071. Node: TODO items98589
  7072. Node: TODO basics99627
  7073. Node: TODO extensions101842
  7074. Node: Workflow states102786
  7075. Ref: Workflow states-Footnote-1103961
  7076. Node: TODO types104054
  7077. Ref: TODO types-Footnote-1105637
  7078. Node: Multiple sets in one file105719
  7079. Node: Fast access to TODO states107339
  7080. Node: Per file keywords108482
  7081. Ref: Per file keywords-Footnote-1109784
  7082. Node: Faces for TODO keywords109985
  7083. Node: Progress logging110691
  7084. Node: Closing items111122
  7085. Ref: Closing items-Footnote-1112056
  7086. Ref: Closing items-Footnote-2112261
  7087. Node: Tracking TODO state changes112334
  7088. Ref: Tracking TODO state changes-Footnote-1113519
  7089. Node: Priorities113594
  7090. Ref: Priorities-Footnote-1115244
  7091. Node: Breaking down tasks115314
  7092. Ref: Breaking down tasks-Footnote-1115834
  7093. Node: Checkboxes115930
  7094. Node: Tags118779
  7095. Node: Tag inheritance119551
  7096. Node: Setting tags120488
  7097. Ref: Setting tags-Footnote-1125011
  7098. Ref: Setting tags-Footnote-2125123
  7099. Node: Tag searches125206
  7100. Node: Properties and columns127982
  7101. Node: Property syntax129153
  7102. Node: Special properties131843
  7103. Node: Property searches132914
  7104. Node: Property inheritance134175
  7105. Node: Column view135622
  7106. Node: Defining columns136856
  7107. Node: Scope of column definitions137254
  7108. Node: Column attributes138176
  7109. Node: Using column view140572
  7110. Node: Capturing Column View142653
  7111. Node: Property API144380
  7112. Node: Dates and times144734
  7113. Node: Time stamps145463
  7114. Ref: Time stamps-Footnote-1147827
  7115. Node: Creating timestamps147943
  7116. Node: The date/time prompt150022
  7117. Ref: The date/time prompt-Footnote-1153378
  7118. Ref: The date/time prompt-Footnote-2153434
  7119. Ref: The date/time prompt-Footnote-3153540
  7120. Node: Custom time format153633
  7121. Node: Deadlines and scheduling155325
  7122. Ref: Deadlines and scheduling-Footnote-1157403
  7123. Node: Inserting deadline/schedule157558
  7124. Node: Repeated tasks158676
  7125. Ref: Repeated tasks-Footnote-1160354
  7126. Node: Clocking work time160475
  7127. Ref: Clocking work time-Footnote-1165327
  7128. Ref: Clocking work time-Footnote-2165405
  7129. Node: Remember165531
  7130. Node: Setting up remember166477
  7131. Ref: Setting up remember-Footnote-1167386
  7132. Node: Remember templates167452
  7133. Ref: Remember templates-Footnote-1171091
  7134. Ref: Remember templates-Footnote-2171274
  7135. Node: Storing notes171372
  7136. Ref: Storing notes-Footnote-1173883
  7137. Node: Refiling notes173985
  7138. Node: Agenda views175250
  7139. Node: Agenda files177201
  7140. Ref: Agenda files-Footnote-1178289
  7141. Ref: Agenda files-Footnote-2178438
  7142. Node: Agenda dispatcher178631
  7143. Ref: Agenda dispatcher-Footnote-1180685
  7144. Ref: Agenda dispatcher-Footnote-2180779
  7145. Node: Built-in agenda views180873
  7146. Node: Weekly/Daily agenda181455
  7147. Ref: Weekly/Daily agenda-Footnote-1184753
  7148. Node: Global TODO list184957
  7149. Node: Matching tags and properties187237
  7150. Node: Timeline188328
  7151. Node: Stuck projects189002
  7152. Node: Presentation and sorting190855
  7153. Node: Categories191648
  7154. Ref: Categories-Footnote-1192359
  7155. Node: Time-of-day specifications192796
  7156. Node: Sorting of agenda items194769
  7157. Node: Agenda commands196053
  7158. Node: Custom agenda views203516
  7159. Node: Storing searches204237
  7160. Ref: Storing searches-Footnote-1206771
  7161. Node: Block agenda206888
  7162. Node: Setting Options208120
  7163. Node: Exporting Agenda Views210861
  7164. Ref: Exporting Agenda Views-Footnote-1215218
  7165. Ref: Exporting Agenda Views-Footnote-2215275
  7166. Node: Extracting Agenda Information for other programs215461
  7167. Node: Embedded LaTeX219589
  7168. Ref: Embedded LaTeX-Footnote-1220683
  7169. Node: Math symbols220873
  7170. Node: Subscripts and Superscripts221640
  7171. Node: LaTeX fragments222486
  7172. Ref: LaTeX fragments-Footnote-1224719
  7173. Ref: LaTeX fragments-Footnote-2224980
  7174. Node: Processing LaTeX fragments225114
  7175. Node: CDLaTeX mode226062
  7176. Ref: CDLaTeX mode-Footnote-1228548
  7177. Node: Exporting228696
  7178. Node: ASCII export230163
  7179. Node: HTML export231664
  7180. Node: HTML Export commands232290
  7181. Node: Quoting HTML tags234077
  7182. Node: Links234712
  7183. Node: Images235409
  7184. Ref: Images-Footnote-1236280
  7185. Node: CSS support236341
  7186. Ref: CSS support-Footnote-1237660
  7187. Node: LaTeX export237773
  7188. Node: LaTeX export commands238122
  7189. Node: Quoting LaTeX code239284
  7190. Node: Sectioning structure239818
  7191. Node: XOXO export240319
  7192. Node: iCalendar export240759
  7193. Node: Text interpretation242228
  7194. Node: Comment lines242883
  7195. Node: Initial text243278
  7196. Node: Footnotes244947
  7197. Node: Quoted examples245739
  7198. Node: Enhancing text246514
  7199. Node: Export options248963
  7200. Node: Publishing251424
  7201. Ref: Publishing-Footnote-1252385
  7202. Ref: Publishing-Footnote-2252529
  7203. Node: Configuration252680
  7204. Node: Project alist253398
  7205. Node: Sources and destinations254464
  7206. Node: Selecting files255194
  7207. Node: Publishing action255942
  7208. Node: Publishing options257276
  7209. Node: Publishing links259782
  7210. Node: Project page index261297
  7211. Node: Sample configuration262075
  7212. Node: Simple example262567
  7213. Node: Complex example263240
  7214. Node: Triggering publication265316
  7215. Node: Miscellaneous266001
  7216. Node: Completion266635
  7217. Node: Customization268305
  7218. Node: In-buffer settings268888
  7219. Node: The very busy C-c C-c key274558
  7220. Node: Clean view276413
  7221. Node: TTY keys278990
  7222. Node: Interaction280600
  7223. Node: Cooperation280997
  7224. Node: Conflicts283873
  7225. Node: Bugs285883
  7226. Node: Extensions and Hacking287379
  7227. Node: Extensions288104
  7228. Node: Adding hyperlink types290366
  7229. Node: Tables in arbitrary syntax294028
  7230. Node: Radio tables295420
  7231. Node: A LaTeX example297923
  7232. Ref: A LaTeX example-Footnote-1301601
  7233. Ref: A LaTeX example-Footnote-2301749
  7234. Node: Translator functions302184
  7235. Ref: Translator functions-Footnote-1305313
  7236. Node: Radio lists305401
  7237. Ref: Radio lists-Footnote-1306523
  7238. Node: Dynamic blocks306643
  7239. Node: Special agenda views308615
  7240. Node: Using the property API311860
  7241. Node: History and Acknowledgments313458
  7242. Node: Index320019
  7243. Node: Key Index356451
  7244. 
  7245. End Tag Table