org 302 KB

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