org 314 KB

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