org 355 KB

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