org 321 KB

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