org 367 KB

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