org 371 KB

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