org 388 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088
  1. This is org, produced by makeinfo version 4.8 from org.texi.
  2. INFO-DIR-SECTION Emacs
  3. START-INFO-DIR-ENTRY
  4. * Org Mode: (org). Outline-based notes management and organizer
  5. END-INFO-DIR-ENTRY
  6. This manual is for Org-mode (version 5.17).
  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.17).
  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. * Dates and times:: Making items useful for planning
  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 index
  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. * Conventions:: Type-setting conventions in the manual
  60. Document Structure
  61. * Outlines:: Org-mode is based on outline-mode
  62. * Headlines:: How to typeset org-tree headlines
  63. * Visibility cycling:: Show and hide, much simplified
  64. * Motion:: Jumping to other headlines
  65. * Structure editing:: Changing sequence and level of headlines
  66. * Archiving:: Move done task trees to a different place
  67. * Sparse trees:: Matches embedded in context
  68. * Plain lists:: Additional structure within an entry
  69. * Drawers:: Tucking stuff away
  70. * orgstruct-mode:: Structure editing outside Org-mode
  71. Archiving
  72. * ARCHIVE tag:: Marking a tree as inactive
  73. * Moving subtrees:: Moving a tree to an archive file
  74. Tables
  75. * Built-in table editor:: Simple tables
  76. * Narrow columns:: Stop wasting space in tables
  77. * Column groups:: Grouping to trigger vertical lines
  78. * orgtbl-mode:: The table editor as minor mode
  79. * The spreadsheet:: The table editor has spreadsheet capabilities.
  80. The spreadsheet
  81. * References:: How to refer to another field or range
  82. * Formula syntax for Calc:: Using Calc to compute stuff
  83. * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
  84. * Field formulas:: Formulas valid for a single field
  85. * Column formulas:: Formulas valid for an entire column
  86. * Editing and debugging formulas:: Fixing formulas
  87. * Updating the table:: Recomputing all dependent fields
  88. * Advanced features:: Field names, parameters and automatic recalc
  89. Hyperlinks
  90. * Link format:: How links in Org-mode are formatted
  91. * Internal links:: Links to other places in the current file
  92. * External links:: URL-like links to the world
  93. * Handling links:: Creating, inserting and following
  94. * Using links outside Org-mode:: Linking from my C source code?
  95. * Link abbreviations:: Shortcuts for writing complex links
  96. * Search options:: Linking to a specific location
  97. * Custom searches:: When the default search is not enough
  98. Internal links
  99. * Radio targets:: Make targets trigger links in plain text.
  100. TODO items
  101. * TODO basics:: Marking and displaying TODO entries
  102. * TODO extensions:: Workflow and assignments
  103. * Progress logging:: Dates and notes for progress
  104. * Priorities:: Some things are more important than others
  105. * Breaking down tasks:: Splitting a task into manageable pieces
  106. * Checkboxes:: Tick-off lists
  107. Extended use of TODO keywords
  108. * Workflow states:: From TODO to DONE in steps
  109. * TODO types:: I do this, Fred does the rest
  110. * Multiple sets in one file:: Mixing it all, and still finding your way
  111. * Fast access to TODO states:: Single letter selection of a state
  112. * Per-file keywords:: Different files, different requirements
  113. * Faces for TODO keywords:: Highlighting states
  114. Progress Logging
  115. * Closing items:: When was this entry marked DONE?
  116. * Tracking TODO state changes:: When did the status change?
  117. Tags
  118. * Tag inheritance:: Tags use the tree structure of the outline
  119. * Setting tags:: How to assign tags to a headline
  120. * Tag searches:: Searching for combinations of tags
  121. Properties and Columns
  122. * Property syntax:: How properties are spelled out
  123. * Special properties:: Access to other Org-mode features
  124. * Property searches:: Matching property values
  125. * Property inheritance:: Passing values down the tree
  126. * Column view:: Tabular viewing and editing
  127. * Property API:: Properties for Lisp programmers
  128. Column View
  129. * Defining columns:: The COLUMNS format property
  130. * Using column view:: How to create and use column view
  131. * Capturing Column View:: A dynamic block for column view
  132. Defining Columns
  133. * Scope of column definitions:: Where defined, where valid?
  134. * Column attributes:: Appearance and content of a column
  135. Dates and Times
  136. * Time stamps:: Assigning a time to a tree entry
  137. * Creating timestamps:: Commands which insert timestamps
  138. * Deadlines and scheduling:: Planning your work
  139. * Clocking work time::
  140. Creating timestamps
  141. * The date/time prompt:: How org-mode helps you entering date and time
  142. * Custom time format:: Making dates look differently
  143. Deadlines and Scheduling
  144. * Inserting deadline/schedule:: Planning items
  145. * Repeated tasks:: Items that show up again and again
  146. Remember
  147. * Setting up remember:: Some code for .emacs to get things going
  148. * Remember templates:: Define the outline of different note types
  149. * Storing notes:: Directly get the note to where it belongs
  150. * Refiling notes:: Moving a note or task to a project
  151. Agenda Views
  152. * Agenda files:: Files being searched for agenda information
  153. * Agenda dispatcher:: Keyboard access to agenda views
  154. * Built-in agenda views:: What is available out of the box?
  155. * Presentation and sorting:: How agenda items are prepared for display
  156. * Agenda commands:: Remote editing of org trees
  157. * Custom agenda views:: Defining special searches and views
  158. The built-in agenda views
  159. * Weekly/Daily agenda:: The calendar page with current tasks
  160. * Global TODO list:: All unfinished action items
  161. * Matching tags and properties:: Structured information with fine-tuned search
  162. * Timeline:: Time-sorted view for single file
  163. * Stuck projects:: Find projects you need to review
  164. Presentation and sorting
  165. * Categories:: Not all tasks are equal
  166. * Time-of-day specifications:: How the agenda knows the time
  167. * Sorting of agenda items:: The order of things
  168. Custom agenda views
  169. * Storing searches:: Type once, use often
  170. * Block agenda:: All the stuff you need in a single buffer
  171. * Setting Options:: Changing the rules
  172. * Exporting Agenda Views:: Writing agendas to files.
  173. * Extracting Agenda Information for other programs::
  174. Embedded LaTeX
  175. * Math symbols:: TeX macros for symbols and Greek letters
  176. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  177. * LaTeX fragments:: Complex formulas made easy
  178. * Processing LaTeX fragments:: Previewing LaTeX processing
  179. * CDLaTeX mode:: Speed up entering of formulas
  180. Exporting
  181. * ASCII export:: Exporting to plain ASCII
  182. * HTML export:: Exporting to HTML
  183. * LaTeX export:: Exporting to LaTeX
  184. * XOXO export:: Exporting to XOXO
  185. * iCalendar export:: Exporting in iCalendar format
  186. * Text interpretation:: How the exporter looks at the file
  187. HTML export
  188. * HTML Export commands:: How to invoke LaTeX export
  189. * Quoting HTML tags:: Using direct HTML in Org-mode
  190. * Links:: Transformation of links for HTML
  191. * Images:: How to include images
  192. * CSS support:: Changing the appearence of the output
  193. LaTeX export
  194. * LaTeX export commands:: How to invoke LaTeX export
  195. * Quoting LaTeX code:: Incorporating literal LaTeX code
  196. * Sectioning structure::
  197. Text interpretation by the exporter
  198. * Comment lines:: Some lines will not be exported
  199. * Initial text:: Text before the first headline
  200. * Footnotes:: Numbers like [1]
  201. * Quoted examples:: Inserting quoted chnuks of text
  202. * Enhancing text:: Subscripts, symbols and more
  203. * Export options:: How to influence the export settings
  204. Publishing
  205. * Configuration:: Defining projects
  206. * Sample configuration:: Example projects
  207. * Triggering publication:: Publication commands
  208. Configuration
  209. * Project alist:: The central configuration variable
  210. * Sources and destinations:: From here to there
  211. * Selecting files:: What files are part of the project?
  212. * Publishing action:: Setting the function doing the publishing
  213. * Publishing options:: Tweaking HTML export
  214. * Publishing links:: Which links keep working after publishing?
  215. * Project page index:: Publishing a list of project files
  216. Sample configuration
  217. * Simple example:: One-component publishing
  218. * Complex example:: A multi-component publishing example
  219. Miscellaneous
  220. * Completion:: M-TAB knows what you need
  221. * Customization:: Adapting Org-mode to your taste
  222. * In-buffer settings:: Overview of the #+KEYWORDS
  223. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  224. * Clean view:: Getting rid of leading stars in the outline
  225. * TTY keys:: Using Org-mode on a tty
  226. * Interaction:: Other Emacs packages
  227. * Bugs:: Things which do not work perfectly
  228. Interaction with other packages
  229. * Cooperation:: Packages Org-mode cooperates with
  230. * Conflicts:: Packages that lead to conflicts
  231. Extensions, Hooks and Hacking
  232. * Extensions:: Existing 3rd-part extensions
  233. * Adding hyperlink types:: New custom link types
  234. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  235. * Dynamic blocks:: Automatically filled blocks
  236. * Special agenda views:: Customized views
  237. * Using the property API:: Writing programs that use entry properties
  238. Tables and Lists in arbitrary syntax
  239. * Radio tables:: Sending and receiving
  240. * A LaTeX example:: Step by step, almost a tutorial
  241. * Translator functions:: Copy and modify
  242. * Radio lists:: Doing the same for lists.
  243. 
  244. File: org, Node: Introduction, Next: Document structure, Prev: Top, Up: Top
  245. 1 Introduction
  246. **************
  247. * Menu:
  248. * Summary:: Brief summary of what Org-mode does
  249. * Installation:: How to install a downloaded version of Org-mode
  250. * Activation:: How to activate Org-mode for certain buffers.
  251. * Feedback:: Bug reports, ideas, patches etc.
  252. * Conventions:: Type-setting conventions in the manual
  253. 
  254. File: org, Node: Summary, Next: Installation, Prev: Introduction, Up: Introduction
  255. 1.1 Summary
  256. ===========
  257. Org-mode is a mode for keeping notes, maintaining TODO lists, and doing
  258. project planning with a fast and effective plain-text system.
  259. Org-mode develops organizational tasks around NOTES files that
  260. contain lists or information about projects as plain text. Org-mode is
  261. implemented on top of outline-mode, which makes it possible to keep the
  262. content of large files well structured. Visibility cycling and
  263. structure editing help to work with the tree. Tables are easily created
  264. with a built-in table editor. Org-mode supports TODO items, deadlines,
  265. time stamps, and scheduling. It dynamically compiles entries into an
  266. agenda that utilizes and smoothly integrates much of the Emacs calendar
  267. and diary. Plain text URL-like links connect to websites, emails,
  268. Usenet messages, BBDB entries, and any files related to the projects.
  269. For printing and sharing of notes, an Org-mode file can be exported as a
  270. structured ASCII file, as HTML, or (todo and agenda items only) as an
  271. iCalendar file. It can also serve as a publishing tool for a set of
  272. linked webpages.
  273. An important design aspect that distinguishes Org-mode from for
  274. example Planner/Muse is that it encourages to store every piece of
  275. information only once. In Planner, you have project pages, day pages
  276. and possibly other files, duplicating some information such as tasks.
  277. In Org-mode, you only have notes files. In your notes you mark entries
  278. as tasks, label them with tags and timestamps. All necessary lists
  279. like a schedule for the day, the agenda for a meeting, tasks lists
  280. selected by tags etc are created dynamically when you need them.
  281. Org-mode keeps simple things simple. When first fired up, it should
  282. feel like a straightforward, easy to use outliner. Complexity is not
  283. imposed, but a large amount of functionality is available when you need
  284. it. Org-mode is a toolbox and can be used in different ways, for
  285. example as:
  286. * outline extension with visibility cycling and structure editing
  287. * ASCII system and table editor for taking structured notes
  288. * ASCII table editor with spreadsheet-like capabilities
  289. * TODO list editor
  290. * full agenda and planner with deadlines and work scheduling
  291. * environment to implement David Allen's GTD system
  292. * a basic database application
  293. * simple hypertext system, with HTML and LaTeX export
  294. * publishing tool to create a set of interlinked webpages
  295. Org-mode's automatic, context sensitive table editor with spreadsheet
  296. capabilities can be integrated into any major mode by activating the
  297. minor Orgtbl-mode. Using a translation step, it can be used to maintain
  298. tables in arbitrary file types, for example in LaTeX. The structure
  299. editing and list creation capabilities can be used outside Org-mode with
  300. the minor Orgstruct-mode.
  301. There is a website for Org-mode which provides links to the newest
  302. version of Org-mode, as well as additional information, frequently asked
  303. questions (FAQ), links to tutorials etc. This page is located at
  304. `http://orgmode.org'.
  305. 
  306. File: org, Node: Installation, Next: Activation, Prev: Summary, Up: Introduction
  307. 1.2 Installation
  308. ================
  309. Important: If Org-mode is part of the Emacs distribution or an XEmacs
  310. package, please skip this section and go directly to *Note Activation::.
  311. If you have downloaded Org-mode from the Web, you must take the
  312. following steps to install it: Go into the Org-mode distribution
  313. directory and edit the top section of the file `Makefile'. You must
  314. set the name of the Emacs binary (likely either `emacs' or `xemacs'),
  315. and the paths to the directories where local Lisp and Info files are
  316. kept. If you don't have access to the system-wide directories, create
  317. your own two directories for these files, enter them into the Makefile,
  318. and make sure Emacs finds the Lisp files by adding the following line
  319. to `.emacs':
  320. (setq load-path (cons "~/path/to/lispdir" load-path))
  321. XEmacs users now need to install the file `noutline.el' from the
  322. `xemacs' subdirectory of the Org-mode distribution. Use the command:
  323. make install-noutline
  324. Now byte-compile and install the Lisp files with the shell commands:
  325. make
  326. make install
  327. If you want to install the info documentation, use this command:
  328. make install-info
  329. Then add to `.emacs':
  330. ;; This line only if org-mode is not part of the X/Emacs distribution.
  331. (require 'org-install)
  332. 
  333. File: org, Node: Activation, Next: Feedback, Prev: Installation, Up: Introduction
  334. 1.3 Activation
  335. ==============
  336. Add the following lines to your `.emacs' file. The last two lines
  337. define _global_ keys for the commands `org-store-link' and `org-agenda'
  338. - please choose suitable keys yourself.
  339. ;; The following lines are always needed. Choose your own keys.
  340. (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
  341. (global-set-key "\C-cl" 'org-store-link)
  342. (global-set-key "\C-ca" 'org-agenda)
  343. Furthermore, you must activate `font-lock-mode' in org-mode buffers,
  344. because significant functionality depends on font-locking being active.
  345. You can do this with either one of the following two lines (XEmacs
  346. user must use the second option):
  347. (global-font-lock-mode 1) ; for all buffers
  348. (add-hook 'org-mode-hook 'turn-on-font-lock) ; org-mode buffers only
  349. With this setup, all files with extension `.org' will be put into
  350. Org-mode. As an alternative, make the first line of a file look like
  351. this:
  352. MY PROJECTS -*- mode: org; -*-
  353. which will select Org-mode for this buffer no matter what the file's
  354. name is. See also the variable `org-insert-mode-line-in-empty-file'.
  355. 
  356. File: org, Node: Feedback, Next: Conventions, Prev: Activation, Up: Introduction
  357. 1.4 Feedback
  358. ============
  359. If you find problems with Org-mode, or if you have questions, remarks,
  360. or ideas about it, please contact the maintainer Carsten Dominik at
  361. <carsten at orgmode dot org>.
  362. For bug reports, please provide as much information as possible,
  363. including the version information of Emacs (`C-h v emacs-version
  364. <RET>') and Org-mode (`C-h v org-version <RET>'), as well as the
  365. Org-mode related setup in `.emacs'. If an error occurs, a backtrace
  366. can be very useful (see below on how to create one). Often a small
  367. example file helps, along with clear information about:
  368. 1. What exactly did you do?
  369. 2. What did you expect to happen?
  370. 3. What happened instead?
  371. Thank you for helping to improve this mode.
  372. How to create a useful backtrace
  373. ................................
  374. If working with Org-mode produces an error with a message you don't
  375. understand, you may have hit a bug. The best way to report this is by
  376. providing, in addition to what was mentioned above, a _Backtrace_.
  377. This is information from the built-in debugger about where and how the
  378. error occurred. Here is how to produce a useful backtrace:
  379. 1. Start a fresh Emacs or XEmacs, and make sure that it will load the
  380. original Lisp code in `org.el' instead of the compiled version in
  381. `org.elc'. The backtrace contains much more information if it is
  382. produced with uncompiled code. To do this, either rename `org.elc'
  383. to something else before starting Emacs, or ask Emacs explicitly
  384. to load `org.el' by using the command line
  385. emacs -l /path/to/org.el
  386. 2. Go to the `Options' menu and select `Enter Debugger on Error'
  387. (XEmacs has this option in the `Troubleshooting' sub-menu).
  388. 3. Do whatever you have to do to hit the error. Don't forget to
  389. document the steps you take.
  390. 4. When you hit the error, a `*Backtrace*' buffer will appear on the
  391. screen. Save this buffer to a file (for example using `C-x C-w')
  392. and attach it to your bug report.
  393. 
  394. File: org, Node: Conventions, Prev: Feedback, Up: Introduction
  395. 1.5 Typesetting conventions used in this manual
  396. ===============================================
  397. Org-mode uses three types of keywords: TODO keywords, tags, and property
  398. names. In this manual we use the following conventions:
  399. `TODO'
  400. `WAITING'
  401. TODO keywords are written with all capitals, even if they are
  402. user-defined.
  403. `boss'
  404. `ARCHIVE'
  405. User-defined tags are written in lowercase; built-in tags with
  406. special meaning are written with all capitals.
  407. `Release'
  408. `PRIORITY'
  409. User-defined properties are capitalized; built-in properties with
  410. special meaning are written with all capitals.
  411. 
  412. File: org, Node: Document structure, Next: Tables, Prev: Introduction, Up: Top
  413. 2 Document Structure
  414. ********************
  415. Org-mode is based on outline mode and provides flexible commands to
  416. edit the structure of the document.
  417. * Menu:
  418. * Outlines:: Org-mode is based on outline-mode
  419. * Headlines:: How to typeset org-tree headlines
  420. * Visibility cycling:: Show and hide, much simplified
  421. * Motion:: Jumping to other headlines
  422. * Structure editing:: Changing sequence and level of headlines
  423. * Archiving:: Move done task trees to a different place
  424. * Sparse trees:: Matches embedded in context
  425. * Plain lists:: Additional structure within an entry
  426. * Drawers:: Tucking stuff away
  427. * orgstruct-mode:: Structure editing outside Org-mode
  428. 
  429. File: org, Node: Outlines, Next: Headlines, Prev: Document structure, Up: Document structure
  430. 2.1 Outlines
  431. ============
  432. Org-mode is implemented on top of outline-mode. Outlines allow a
  433. document to be organized in a hierarchical structure, which (at least
  434. for me) is the best representation of notes and thoughts. An overview
  435. of this structure is achieved by folding (hiding) large parts of the
  436. document to show only the general document structure and the parts
  437. currently being worked on. Org-mode greatly simplifies the use of
  438. outlines by compressing the entire show/hide functionality into a single
  439. command `org-cycle', which is bound to the <TAB> key.
  440. 
  441. File: org, Node: Headlines, Next: Visibility cycling, Prev: Outlines, Up: Document structure
  442. 2.2 Headlines
  443. =============
  444. Headlines define the structure of an outline tree. The headlines in
  445. Org-mode start with one or more stars, on the left margin(1). For
  446. example:
  447. * Top level headline
  448. ** Second level
  449. *** 3rd level
  450. some text
  451. *** 3rd level
  452. more text
  453. * Another top level headline
  454. Some people find the many stars too noisy and would prefer an outline
  455. that has whitespace followed by a single star as headline starters.
  456. *Note Clean view:: describes a setup to realize this.
  457. An empty line after the end of a subtree is considered part of it and
  458. will be hidden when the subtree is folded. However, if you leave at
  459. least two empty lines, one empty line will remain visible after folding
  460. the subtree, in order to structure the collapsed view. See the
  461. variable `org-cycle-separator-lines' to modify this behavior.
  462. ---------- Footnotes ----------
  463. (1) See the variable `org-special-ctrl-a/e' to configure special
  464. behavior of `C-a' and `C-e' in headlines.
  465. 
  466. File: org, Node: Visibility cycling, Next: Motion, Prev: Headlines, Up: Document structure
  467. 2.3 Visibility cycling
  468. ======================
  469. Outlines make it possible to hide parts of the text in the buffer.
  470. Org-mode uses just two commands, bound to <TAB> and `S-<TAB>' to change
  471. the visibility in the buffer.
  472. `<TAB>'
  473. _Subtree cycling_: Rotate current subtree among the states
  474. ,-> FOLDED -> CHILDREN -> SUBTREE --.
  475. '-----------------------------------'
  476. The cursor must be on a headline for this to work(1). When the
  477. cursor is at the beginning of the buffer and the first line is not
  478. a headline, then <TAB> actually runs global cycling (see
  479. below)(2). Also when called with a prefix argument (`C-u <TAB>'),
  480. global cycling is invoked.
  481. `S-<TAB>'
  482. `C-u <TAB>'
  483. _Global cycling_: Rotate the entire buffer among the states
  484. ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
  485. '--------------------------------------'
  486. When `S-<TAB>' is called with a numerical prefix N, the CONTENTS
  487. view up to headlines of level N will be shown. Note that inside
  488. tables, `S-<TAB>' jumps to the previous field.
  489. `C-c C-a'
  490. Show all.
  491. `C-c C-r'
  492. Reveal context around point, showing the current entry, the
  493. following heading and the hierarchy above. Useful for working
  494. near a location that has been exposed by a sparse tree command
  495. (*note Sparse trees::) or an agenda command (*note Agenda
  496. commands::). With prefix arg show, on each
  497. level, all sibling headings.
  498. `C-c C-x b'
  499. Show the current subtree in an indirect buffer(3). With numerical
  500. prefix ARG, go up to this level and then take that tree. If ARG is
  501. negative, go up that many levels. With `C-u' prefix, do not remove
  502. the previously used indirect buffer.
  503. When Emacs first visits an Org-mode file, the global state is set to
  504. OVERVIEW, i.e. only the top level headlines are visible. This can be
  505. configured through the variable `org-startup-folded', or on a per-file
  506. basis by adding one of the following lines anywhere in the buffer:
  507. #+STARTUP: overview
  508. #+STARTUP: content
  509. #+STARTUP: showall
  510. ---------- Footnotes ----------
  511. (1) see, however, the option `org-cycle-emulate-tab'.
  512. (2) see the option `org-cycle-global-at-bob'.
  513. (3) The indirect buffer (*note Indirect Buffers: (emacs)Indirect
  514. Buffers.) will contain the entire buffer, but will be narrowed to the
  515. current tree. Editing the indirect buffer will also change the
  516. original buffer, but without affecting visibility in that buffer.
  517. 
  518. File: org, Node: Motion, Next: Structure editing, Prev: Visibility cycling, Up: Document structure
  519. 2.4 Motion
  520. ==========
  521. The following commands jump to other headlines in the buffer.
  522. `C-c C-n'
  523. Next heading.
  524. `C-c C-p'
  525. Previous heading.
  526. `C-c C-f'
  527. Next heading same level.
  528. `C-c C-b'
  529. Previous heading same level.
  530. `C-c C-u'
  531. Backward to higher level heading.
  532. `C-c C-j'
  533. Jump to a different place without changing the current outline
  534. visibility. Shows the document structure in a temporary buffer,
  535. where you can use the following keys to find your destination:
  536. <TAB> Cycle visibility.
  537. <down> / <up> Next/previous visible headline.
  538. n / p Next/previous visible headline.
  539. f / b Next/previous headline same level.
  540. u One level up.
  541. 0-9 Digit argument.
  542. <RET> Select this location.
  543. 
  544. File: org, Node: Structure editing, Next: Archiving, Prev: Motion, Up: Document structure
  545. 2.5 Structure editing
  546. =====================
  547. `M-<RET>'
  548. Insert new heading with same level as current. If the cursor is
  549. in a plain list item, a new item is created (*note Plain lists::).
  550. To force creation of a new headline, use a prefix arg, or first
  551. press <RET> to get to the beginning of the next line. When this
  552. command is used in the middle of a line, the line is split and the
  553. rest of the line becomes the new headline. If the command is used
  554. at the beginning of a headline, the new headline is created before
  555. the current line. If at the beginning of any other line, the
  556. content of that line is made the new heading. If the command is
  557. used at the end of a folded subtree (i.e. behind the ellipses at
  558. the end of a headline), then a headline like the current one will
  559. be inserted after the end of the subtree.
  560. `C-<RET>'
  561. Insert a new heading after the current subtree, same level as the
  562. current headline. This command works from anywhere in the entry.
  563. `M-S-<RET>'
  564. Insert new TODO entry with same level as current heading.
  565. `M-<left>'
  566. Promote current heading by one level.
  567. `M-<right>'
  568. Demote current heading by one level.
  569. `M-S-<left>'
  570. Promote the current subtree by one level.
  571. `M-S-<right>'
  572. Demote the current subtree by one level.
  573. `M-S-<up>'
  574. Move subtree up (swap with previous subtree of same level).
  575. `M-S-<down>'
  576. Move subtree down (swap with next subtree of same level).
  577. `C-c C-x C-w'
  578. `C-c C-x C-k'
  579. Kill subtree, i.e. remove it from buffer but save in kill ring.
  580. With prefix arg, kill N sequential subtrees.
  581. `C-c C-x M-w'
  582. Copy subtree to kill ring. With prefix arg, copy N sequential
  583. subtrees.
  584. `C-c C-x C-y'
  585. Yank subtree from kill ring. This does modify the level of the
  586. subtree to make sure the tree fits in nicely at the yank position.
  587. The yank level can also be specified with a prefix arg, or by
  588. yanking after a headline marker like `****'.
  589. `C-c C-w'
  590. Refile entry to a different location. *Note Refiling notes::.
  591. `C-c ^'
  592. Sort same-level entries. When there is an active region, all
  593. entries in the region will be sorted. Otherwise the children of
  594. the current headline are sorted. The command prompts for the
  595. sorting method, which can be alphabetically, numerically, by time
  596. (using the first time stamp in each entry), by priority, and each
  597. of these in reverse order. You can also supply your own function
  598. to extract the sorting key. With a `C-u' prefix, sorting will be
  599. case-sensitive. With two `C-u C-u' prefixes, duplicate entries
  600. will also be removed.
  601. When there is an active region (transient-mark-mode), promotion and
  602. demotion work on all headlines in the region. To select a region of
  603. headlines, it is best to place both point and mark at the beginning of a
  604. line, mark at the beginning of the first headline, and point at the line
  605. just after the last headline to change. Note that when the cursor is
  606. inside a table (*note Tables::), the Meta-Cursor keys have different
  607. functionality.
  608. 
  609. File: org, Node: Archiving, Next: Sparse trees, Prev: Structure editing, Up: Document structure
  610. 2.6 Archiving
  611. =============
  612. When a project represented by a (sub)tree is finished, you may want to
  613. move the tree out of the way and to stop it from contributing to the
  614. agenda. Org-mode knows two ways of archiving. You can mark a tree with
  615. the ARCHIVE tag, or you can move an entire (sub)tree to a different
  616. location.
  617. * Menu:
  618. * ARCHIVE tag:: Marking a tree as inactive
  619. * Moving subtrees:: Moving a tree to an archive file
  620. 
  621. File: org, Node: ARCHIVE tag, Next: Moving subtrees, Prev: Archiving, Up: Archiving
  622. 2.6.1 The ARCHIVE tag
  623. ---------------------
  624. A headline that is marked with the ARCHIVE tag (*note Tags::) stays at
  625. its location in the outline tree, but behaves in the following way:
  626. - It does not open when you attempt to do so with a visibility
  627. cycling command (*note Visibility cycling::). You can force
  628. cycling archived subtrees with `C-<TAB>', or by setting the option
  629. `org-cycle-open-archived-trees'. Also normal outline commands like
  630. `show-all' will open archived subtrees.
  631. - During sparse tree construction (*note Sparse trees::), matches in
  632. archived subtrees are not exposed, unless you configure the option
  633. `org-sparse-tree-open-archived-trees'.
  634. - During agenda view construction (*note Agenda views::), the
  635. content of archived trees is ignored unless you configure the
  636. option `org-agenda-skip-archived-trees'.
  637. - Archived trees are not exported (*note Exporting::), only the
  638. headline is. Configure the details using the variable
  639. `org-export-with-archived-trees'.
  640. The following commands help managing the ARCHIVE tag:
  641. `C-c C-x C-a'
  642. Toggle the ARCHIVE tag for the current headline. When the tag is
  643. set, the headline changes to a shadowish face, and the subtree
  644. below it is hidden.
  645. `C-u C-c C-x C-a'
  646. Check if any direct children of the current headline should be
  647. archived. To do this, each subtree is checked for open TODO
  648. entries. If none are found, the command offers to set the ARCHIVE
  649. tag for the child. If the cursor is _not_ on a headline when this
  650. command is invoked, the level 1 trees will be checked.
  651. `C-TAB'
  652. Cycle a tree even if it is tagged with ARCHIVE.
  653. 
  654. File: org, Node: Moving subtrees, Prev: ARCHIVE tag, Up: Archiving
  655. 2.6.2 Moving subtrees
  656. ---------------------
  657. Once an entire project is finished, you may want to move it to a
  658. different location, either in the current file, or even in a different
  659. file, the archive file.
  660. `C-c C-x C-s'
  661. Archive the subtree starting at the cursor position to the location
  662. given by `org-archive-location'. Context information that could be
  663. lost like the file name, the category, inherited tags, and the todo
  664. state will be store as properties in the entry.
  665. `C-u C-c C-x C-s'
  666. Check if any direct children of the current headline could be
  667. moved to the archive. To do this, each subtree is checked for
  668. open TODO entries. If none are found, the command offers to move
  669. it to the archive location. If the cursor is _not_ on a headline
  670. when this command is invoked, the level 1 trees will be checked.
  671. The default archive location is a file in the same directory as the
  672. current file, with the name derived by appending `_archive' to the
  673. current file name. For information and examples on how to change this,
  674. see the documentation string of the variable `org-archive-location'.
  675. There is also an in-buffer option for setting this variable, for
  676. example(1):
  677. #+ARCHIVE: %s_done::
  678. If you would like to have a special ARCHIVE location for a single entry
  679. or a (sub)tree, give the entry an `:ARCHIVE:' property with the
  680. location as the value (*note Properties and columns::).
  681. ---------- Footnotes ----------
  682. (1) For backward compatibility, the following also works: If there
  683. are several such lines in a file, each specifies the archive location
  684. for the text below it. The first such line also applies to any text
  685. before its definition. However, using this method is _strongly_
  686. deprecated as it is incompatible with the outline structure of the
  687. document. The correct method for setting multiple archive locations in
  688. a buffer is using a property.
  689. 
  690. File: org, Node: Sparse trees, Next: Plain lists, Prev: Archiving, Up: Document structure
  691. 2.7 Sparse trees
  692. ================
  693. An important feature of Org-mode is the ability to construct _sparse
  694. trees_ for selected information in an outline tree, so that the entire
  695. document is folded as much as possible, but the selected information is
  696. made visible along with the headline structure above it(1). Just try
  697. it out and you will see immediately how it works.
  698. Org-mode contains several commands creating such trees, all these
  699. commands can be accessed through a dispatcher:
  700. `C-c /'
  701. This prompts for an extra key to select a sparse-tree creating
  702. command.
  703. `C-c / r'
  704. Occur. Prompts for a regexp and shows a sparse tree with all
  705. matches. If the match is in a headline, the headline is made
  706. visible. If the match is in the body of an entry, headline and
  707. body are made visible. In order to provide minimal context, also
  708. the full hierarchy of headlines above the match is shown, as well
  709. as the headline following the match. Each match is also
  710. highlighted; the highlights disappear when the buffer is changed
  711. by an editing command, or by pressing `C-c C-c'. When called with
  712. a `C-u' prefix argument, previous highlights are kept, so several
  713. calls to this command can be stacked.
  714. For frequently used sparse trees of specific search strings, you can
  715. use the variable `org-agenda-custom-commands' to define fast keyboard
  716. access to specific sparse trees. These commands will then be
  717. accessible through the agenda dispatcher (*note Agenda dispatcher::).
  718. For example:
  719. (setq org-agenda-custom-commands
  720. '(("f" occur-tree "FIXME")))
  721. will define the key `C-c a f' as a shortcut for creating a sparse tree
  722. matching the string `FIXME'.
  723. The other sparse tree commands select headings based on TODO
  724. keywords, tags, or properties and will be discussed later in this
  725. manual.
  726. To print a sparse tree, you can use the Emacs command
  727. `ps-print-buffer-with-faces' which does not print invisible parts of
  728. the document (2). Or you can use the command `C-c C-e v' to export
  729. only the visible part of the document and print the resulting file.
  730. ---------- Footnotes ----------
  731. (1) See also the variables `org-show-hierarchy-above',
  732. `org-show-following-heading', and `org-show-siblings' for detailed
  733. control on how much context is shown around each match.
  734. (2) This does not work under XEmacs, because XEmacs uses selective
  735. display for outlining, not text properties.
  736. 
  737. File: org, Node: Plain lists, Next: Drawers, Prev: Sparse trees, Up: Document structure
  738. 2.8 Plain lists
  739. ===============
  740. Within an entry of the outline tree, hand-formatted lists can provide
  741. additional structure. They also provide a way to create lists of
  742. checkboxes (*note Checkboxes::). Org-mode supports editing such lists,
  743. and the HTML exporter (*note Exporting::) parses and formats them.
  744. Org-mode knows ordered and unordered lists. Unordered list items
  745. start with `-', `+', or `*'(1) as bullets. Ordered list items start
  746. with a numeral followed by either a period or a right parenthesis, such
  747. as `1.' or `1)'. Items belonging to the same list must have the same
  748. indentation on the first line. In particular, if an ordered list
  749. reaches number `10.', then the 2-digit numbers must be written
  750. left-aligned with the other numbers in the list. Indentation also
  751. determines the end of a list item. It ends before the next line that
  752. is indented like the bullet/number, or less. Empty lines are part of
  753. the previous item, so you can have several paragraphs in one item. If
  754. you would like an empty line to terminate all currently open plain
  755. lists, configure the variable `org-empty-line-terminates-plain-lists'.
  756. Here is an example:
  757. ** Lord of the Rings
  758. My favorite scenes are (in this order)
  759. 1. The attack of the Rohirrim
  760. 2. Eowyns fight with the witch king
  761. + this was already my favorite scene in the book
  762. + I really like Miranda Otto.
  763. 3. Peter Jackson being shot by Legolas
  764. - on DVD only
  765. He makes a really funny face when it happens.
  766. But in the end, not individual scenes matter but the film as a whole.
  767. Org-mode supports these lists by tuning filling and wrapping
  768. commands to deal with them correctly(2).
  769. The following commands act on items when the cursor is in the first
  770. line of an item (the line with the bullet or number).
  771. `<TAB>'
  772. Items can be folded just like headline levels if you set the
  773. variable `org-cycle-include-plain-lists'. The level of an item is
  774. then given by the indentation of the bullet/number. Items are
  775. always subordinate to real headlines, however; the hierarchies
  776. remain completely separated.
  777. If `org-cycle-include-plain-lists' has not been set, <TAB> fixes
  778. the indentation of the curent line in a heuristic way.
  779. `M-<RET>'
  780. Insert new item at current level. With prefix arg, force a new
  781. heading (*note Structure editing::). If this command is used in
  782. the middle of a line, the line is _split_ and the rest of the line
  783. becomes the new item. If this command is executed in the
  784. _whitespace before a bullet or number_, the new item is created
  785. _before_ the current item. If the command is executed in the
  786. white space before the text that is part of an item but does not
  787. contain the bullet, a bullet is added to the current line.
  788. `M-S-<RET>'
  789. Insert a new item with a checkbox (*note Checkboxes::).
  790. `S-<up>'
  791. `S-<down>'
  792. Jump to the previous/next item in the current list.
  793. `M-S-<up>'
  794. `M-S-<down>'
  795. Move the item including subitems up/down (swap with previous/next
  796. item of same indentation). If the list is ordered, renumbering is
  797. automatic.
  798. `M-S-<left>'
  799. `M-S-<right>'
  800. Decrease/increase the indentation of the item, including subitems.
  801. Initially, the item tree is selected based on current indentation.
  802. When these commands are executed several times in direct
  803. succession, the initially selected region is used, even if the new
  804. indentation would imply a different hierarchy. To use the new
  805. hierarchy, break the command chain with a cursor motion or so.
  806. `C-c C-c'
  807. If there is a checkbox (*note Checkboxes::) in the item line,
  808. toggle the state of the checkbox. If not, this command makes sure
  809. that all the items on this list level use the same bullet.
  810. Furthermore, if this is an ordered list, make sure the numbering
  811. is ok.
  812. `C-c -'
  813. Cycle the entire list level through the different itemize/enumerate
  814. bullets (`-', `+', `*', `1.', `1)'). With prefix arg, select the
  815. nth bullet from this list.
  816. ---------- Footnotes ----------
  817. (1) When using `*' as a bullet, lines must be indented or they will
  818. be seen as top-level headlines. Also, when you are hiding leading
  819. stars to get a clean outline view, plain list items starting with a
  820. star are visually indistinguishable from true headlines. In short:
  821. even though `*' is supported, it may be better to not use it for plain
  822. list items.
  823. (2) Org-mode only changes the filling settings for Emacs. For
  824. XEmacs, you should use Kyle E. Jones' `filladapt.el'. To turn this on,
  825. put into `.emacs': `(require 'filladapt)'
  826. 
  827. File: org, Node: Drawers, Next: orgstruct-mode, Prev: Plain lists, Up: Document structure
  828. 2.9 Drawers
  829. ===========
  830. Sometimes you want to keep information associated with an entry, but you
  831. normally don't want to see it. For this, Org-mode has _drawers_.
  832. Drawers need to be configured with the variable `org-drawers'(1).
  833. Drawers look like this:
  834. ** This is a headline
  835. Still outside the drawer
  836. :DRAWERNAME:
  837. This is inside the drawer.
  838. :END:
  839. After the drawer.
  840. Visibility cycling (*note Visibility cycling::) on the headline will
  841. hide and show the entry, but keep the drawer collapsed to a single line.
  842. In order to look inside the drawer, you need to move the cursor to the
  843. drawer line and press <TAB> there. Org-mode uses a drawer for storing
  844. properties (*note Properties and columns::).
  845. ---------- Footnotes ----------
  846. (1) You can define drawers on a per-file basis with a line like
  847. `#+DRAWERS: HIDDEN PROPERTIES STATE'
  848. 
  849. File: org, Node: orgstruct-mode, Prev: Drawers, Up: Document structure
  850. 2.10 The Orgstruct minor mode
  851. =============================
  852. If you like the intuitive way the Org-mode structure editing and list
  853. formatting works, you might want to use these commands in other modes
  854. like text-mode or mail-mode as well. The minor mode Orgstruct-mode
  855. makes this possible. You can always toggle the mode with `M-x
  856. orgstruct-mode'. To turn it on by default, for example in mail mode,
  857. use
  858. (add-hook 'mail-mode-hook 'turn-on-orgstruct)
  859. When this mode is active and the cursor is on a line that looks to
  860. Org-mode like a headline of the first line of a list item, most
  861. structure editing commands will work, even if the same keys normally
  862. have different functionality in the major mode you are using. If the
  863. cursor is not in one of those special lines, Orgstruct-mode lurks
  864. silently in the shadow.
  865. 
  866. File: org, Node: Tables, Next: Hyperlinks, Prev: Document structure, Up: Top
  867. 3 Tables
  868. ********
  869. Org-mode comes with a fast and intuitive table editor. Spreadsheet-like
  870. calculations are supported in connection with the Emacs `calc' package
  871. (*note Calc: (calc)Calc.).
  872. * Menu:
  873. * Built-in table editor:: Simple tables
  874. * Narrow columns:: Stop wasting space in tables
  875. * Column groups:: Grouping to trigger vertical lines
  876. * orgtbl-mode:: The table editor as minor mode
  877. * The spreadsheet:: The table editor has spreadsheet capabilities.
  878. 
  879. File: org, Node: Built-in table editor, Next: Narrow columns, Prev: Tables, Up: Tables
  880. 3.1 The built-in table editor
  881. =============================
  882. Org-mode makes it easy to format tables in plain ASCII. Any line with
  883. `|' as the first non-whitespace character is considered part of a
  884. table. `|' is also the column separator. A table might look like this:
  885. | Name | Phone | Age |
  886. |-------+-------+-----|
  887. | Peter | 1234 | 17 |
  888. | Anna | 4321 | 25 |
  889. A table is re-aligned automatically each time you press <TAB> or
  890. <RET> or `C-c C-c' inside the table. <TAB> also moves to the next
  891. field (<RET> to the next row) and creates new table rows at the end of
  892. the table or before horizontal lines. The indentation of the table is
  893. set by the first line. Any line starting with `|-' is considered as a
  894. horizontal separator line and will be expanded on the next re-align to
  895. span the whole table width. So, to create the above table, you would
  896. only type
  897. |Name|Phone|Age|
  898. |-
  899. and then press <TAB> to align the table and start filling in fields.
  900. When typing text into a field, Org-mode treats <DEL>, <Backspace>,
  901. and all character keys in a special way, so that inserting and deleting
  902. avoids shifting other fields. Also, when typing _immediately after the
  903. cursor was moved into a new field with `<TAB>', `S-<TAB>' or `<RET>'_,
  904. the field is automatically made blank. If this behavior is too
  905. unpredictable for you, configure the variables
  906. `org-enable-table-editor' and `org-table-auto-blank-field'.
  907. Creation and conversion
  908. .......................
  909. `C-c |'
  910. Convert the active region to table. If every line contains at
  911. least one TAB character, the function assumes that the material is
  912. tab separated. If every line contains a comma, comma-separated
  913. values (CSV) are assumed. If not, lines are split at whitespace
  914. into fields. You can use a prefix argument to force a specific
  915. separator: `C-u' forces CSV, `C-u C-u' forces TAB, and a numeric
  916. argument N indicates that at least N consequtive spaces, or
  917. alternatively a TAB will be the separator.
  918. If there is no active region, this command creates an empty
  919. Org-mode table. But it's easier just to start typing, like
  920. `|Name|Phone|Age <RET> |- <TAB>'.
  921. Re-aligning and field motion
  922. ............................
  923. `C-c C-c'
  924. Re-align the table without moving the cursor.
  925. `<TAB>'
  926. Re-align the table, move to the next field. Creates a new row if
  927. necessary.
  928. `S-<TAB>'
  929. Re-align, move to previous field.
  930. `<RET>'
  931. Re-align the table and move down to next row. Creates a new row if
  932. necessary. At the beginning or end of a line, <RET> still does
  933. NEWLINE, so it can be used to split a table.
  934. Column and row editing
  935. ......................
  936. `M-<left>'
  937. `M-<right>'
  938. Move the current column left/right.
  939. `M-S-<left>'
  940. Kill the current column.
  941. `M-S-<right>'
  942. Insert a new column to the left of the cursor position.
  943. `M-<up>'
  944. `M-<down>'
  945. Move the current row up/down.
  946. `M-S-<up>'
  947. Kill the current row or horizontal line.
  948. `M-S-<down>'
  949. Insert a new row above (with arg: below) the current row.
  950. `C-c -'
  951. Insert a horizontal line below current row. With prefix arg, the
  952. line is created above the current line.
  953. `C-c ^'
  954. Sort the table lines in the region. The position of point
  955. indicates the column to be used for sorting, and the range of
  956. lines is the range between the nearest horizontal separator lines,
  957. or the entire table. If point is before the first column, you
  958. will be prompted for the sorting column. If there is an active
  959. region, the mark specifies the first line and the sorting column,
  960. while point should be in the last line to be included into the
  961. sorting. The command prompts for the sorting type
  962. (alphabetically, numerically, or by time). When called with a
  963. prefix argument, alphabetic sorting will be case-sensitive.
  964. Regions
  965. .......
  966. `C-c C-x M-w'
  967. Copy a rectangular region from a table to a special clipboard.
  968. Point and mark determine edge fields of the rectangle. The
  969. process ignores horizontal separator lines.
  970. `C-c C-x C-w'
  971. Copy a rectangular region from a table to a special clipboard, and
  972. blank all fields in the rectangle. So this is the "cut" operation.
  973. `C-c C-x C-y'
  974. Paste a rectangular region into a table. The upper right corner
  975. ends up in the current field. All involved fields will be
  976. overwritten. If the rectangle does not fit into the present table,
  977. the table is enlarged as needed. The process ignores horizontal
  978. separator lines.
  979. `C-c C-q'
  980. Wrap several fields in a column like a paragraph. If there is an
  981. active region, and both point and mark are in the same column, the
  982. text in the column is wrapped to minimum width for the given
  983. number of lines. A prefix ARG may be used to change the number of
  984. desired lines. If there is no region, the current field is split
  985. at the cursor position and the text fragment to the right of the
  986. cursor is prepended to the field one line down. If there is no
  987. region, but you specify a prefix ARG, the current field is made
  988. blank, and the content is appended to the field above.
  989. Calculations
  990. ............
  991. `C-c +'
  992. Sum the numbers in the current column, or in the rectangle defined
  993. by the active region. The result is shown in the echo area and can
  994. be inserted with `C-y'.
  995. `S-<RET>'
  996. When current field is empty, copy from first non-empty field above.
  997. When not empty, copy current field down to next row and move cursor
  998. along with it. Depending on the variable
  999. `org-table-copy-increment', integer field values will be
  1000. incremented during copy. This key is also used by CUA-mode (*note
  1001. Cooperation::).
  1002. Miscellaneous
  1003. .............
  1004. `C-c `'
  1005. Edit the current field in a separate window. This is useful for
  1006. fields that are not fully visible (*note Narrow columns::). When
  1007. called with a `C-u' prefix, just make the full field visible, so
  1008. that it can be edited in place.
  1009. `C-c <TAB>'
  1010. This is an alias for `C-u C-c `' to make the current field fully
  1011. visible.
  1012. `M-x org-table-import'
  1013. Import a file as a table. The table should be TAB- or whitespace
  1014. separated. Useful, for example, to import a spreadsheet table or
  1015. data from a database, because these programs generally can write
  1016. TAB-separated text files. This command works by inserting the
  1017. file into the buffer and then converting the region to a table.
  1018. Any prefix argument is passed on to the converter, which uses it
  1019. to determine the separator.
  1020. `C-c |'
  1021. Tables can also be imported by pasting tabular text into the
  1022. org-mode buffer, selecting the pasted text with `C-x C-x' and then
  1023. using the `C-c |' command (see above under Creation and conversion.
  1024. `M-x org-table-export'
  1025. Export the table as a TAB-separated file. Useful for data
  1026. exchange with, for example, spreadsheet or database programs.
  1027. If you don't like the automatic table editor because it gets in your
  1028. way on lines which you would like to start with `|', you can turn it
  1029. off with
  1030. (setq org-enable-table-editor nil)
  1031. Then the only table command that still works is `C-c C-c' to do a
  1032. manual re-align.
  1033. 
  1034. File: org, Node: Narrow columns, Next: Column groups, Prev: Built-in table editor, Up: Tables
  1035. 3.2 Narrow columns
  1036. ==================
  1037. The width of columns is automatically determined by the table editor.
  1038. Sometimes a single field or a few fields need to carry more text,
  1039. leading to inconveniently wide columns. To limit(1) the width of a
  1040. column, one field anywhere in the column may contain just the string
  1041. `<N>' where `N' is an integer specifying the width of the column in
  1042. characters. The next re-align will then set the width of this column
  1043. to no more than this value.
  1044. |---+------------------------------| |---+--------|
  1045. | | | | | <6> |
  1046. | 1 | one | | 1 | one |
  1047. | 2 | two | ----\ | 2 | two |
  1048. | 3 | This is a long chunk of text | ----/ | 3 | This=> |
  1049. | 4 | four | | 4 | four |
  1050. |---+------------------------------| |---+--------|
  1051. Fields that are wider become clipped and end in the string `=>'. Note
  1052. that the full text is still in the buffer, it is only invisible. To
  1053. see the full text, hold the mouse over the field - a tool-tip window
  1054. will show the full content. To edit such a field, use the command `C-c
  1055. `' (that is `C-c' followed by the backquote). This will open a new
  1056. window with the full field. Edit it and finish with `C-c C-c'.
  1057. When visiting a file containing a table with narrowed columns, the
  1058. necessary character hiding has not yet happened, and the table needs to
  1059. be aligned before it looks nice. Setting the option
  1060. `org-startup-align-all-tables' will realign all tables in a file upon
  1061. visiting, but also slow down startup. You can also set this option on
  1062. a per-file basis with:
  1063. #+STARTUP: align
  1064. #+STARTUP: noalign
  1065. ---------- Footnotes ----------
  1066. (1) This feature does not work on XEmacs.
  1067. 
  1068. File: org, Node: Column groups, Next: orgtbl-mode, Prev: Narrow columns, Up: Tables
  1069. 3.3 Column groups
  1070. =================
  1071. When Org-mode exports tables, it does so by default without vertical
  1072. lines because that is visually more satisfying in general. Occasionally
  1073. however, vertical lines can be useful to structure a table into groups
  1074. of columns, much like horizontal lines can do for groups of rows. In
  1075. order to specify column groups, you can use a special row where the
  1076. first field contains only `/'. The further fields can either contain
  1077. `<' to indicate that this column should start a group, `>' to indicate
  1078. the end of a column, or `<>' to make a column a group of its own.
  1079. Boundaries between colum groups will upon export be marked with
  1080. vertical lines. Here is an example:
  1081. | | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
  1082. |---+----+-----+-----+-----+---------+------------|
  1083. | / | <> | < | | > | < | > |
  1084. | # | 1 | 1 | 1 | 1 | 1 | 1 |
  1085. | # | 2 | 4 | 8 | 16 | 1.4142 | 1.1892 |
  1086. | # | 3 | 9 | 27 | 81 | 1.7321 | 1.3161 |
  1087. |---+----+-----+-----+-----+---------+------------|
  1088. #+TBLFM: $3=$2^2::$4=$2^3::$5=$2^4::$6=sqrt($2)::$7=sqrt(sqrt(($2))
  1089. It is also sufficient to just insert the colum group starters after
  1090. every vertical line you'd like to have:
  1091. | N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
  1092. |----+-----+-----+-----+---------+------------|
  1093. | / | < | | | < | |
  1094. 
  1095. File: org, Node: orgtbl-mode, Next: The spreadsheet, Prev: Column groups, Up: Tables
  1096. 3.4 The Orgtbl minor mode
  1097. =========================
  1098. If you like the intuitive way the Org-mode table editor works, you
  1099. might also want to use it in other modes like text-mode or mail-mode.
  1100. The minor mode Orgtbl-mode makes this possible. You can always toggle
  1101. the mode with `M-x orgtbl-mode'. To turn it on by default, for example
  1102. in mail mode, use
  1103. (add-hook 'mail-mode-hook 'turn-on-orgtbl)
  1104. Furthermore, with some special setup, it is possible to maintain
  1105. tables in arbitrary syntax with Orgtbl-mode. For example, it is
  1106. possible to construct LaTeX tables with the underlying ease and power of
  1107. Orgtbl-mode, including spreadsheet capabilities. For details, see
  1108. *Note Tables in arbitrary syntax::.
  1109. 
  1110. File: org, Node: The spreadsheet, Prev: orgtbl-mode, Up: Tables
  1111. 3.5 The spreadsheet
  1112. ===================
  1113. The table editor makes use of the Emacs `calc' package to implement
  1114. spreadsheet-like capabilities. It can also evaluate Emacs Lisp forms to
  1115. derive fields from other fields. While fully featured, Org-mode's
  1116. implementation is not identical to other spreadsheets. For example,
  1117. Org-mode knows the concept of a _column formula_ that will be applied
  1118. to all non-header fields in a column without having to copy the formula
  1119. to each relevant field.
  1120. * Menu:
  1121. * References:: How to refer to another field or range
  1122. * Formula syntax for Calc:: Using Calc to compute stuff
  1123. * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
  1124. * Field formulas:: Formulas valid for a single field
  1125. * Column formulas:: Formulas valid for an entire column
  1126. * Editing and debugging formulas:: Fixing formulas
  1127. * Updating the table:: Recomputing all dependent fields
  1128. * Advanced features:: Field names, parameters and automatic recalc
  1129. 
  1130. File: org, Node: References, Next: Formula syntax for Calc, Prev: The spreadsheet, Up: The spreadsheet
  1131. 3.5.1 References
  1132. ----------------
  1133. To compute fields in the table from other fields, formulas must
  1134. reference other fields or ranges. In Org-mode, fields can be referenced
  1135. by name, by absolute coordinates, and by relative coordinates. To find
  1136. out what the coordinates of a field are, press `C-c ?' in that field,
  1137. or press `C-c }' to toggle the display of a grid.
  1138. Field references
  1139. ................
  1140. Formulas can reference the value of another field in two ways. Like in
  1141. any other spreadsheet, you may reference fields with a letter/number
  1142. combination like `B3', meaning the 2nd field in the 3rd row.
  1143. Org-mode also uses another, more general operator that looks like this:
  1144. @row$column
  1145. Column references can be absolute like `1', `2',...`N', or relative to
  1146. the current column like `+1' or `-2'.
  1147. The row specification only counts data lines and ignores horizontal
  1148. separator lines (hlines). You can use absolute row numbers `1'...`N',
  1149. and row numbers relative to the current row like `+3' or `-1'. Or
  1150. specify the row relative to one of the hlines: `I' refers to the first
  1151. hline(1), `II' to the second etc. `-I' refers to the first such line
  1152. above the current line, `+I' to the first such line below the current
  1153. line. You can also write `III+2' which is the second data line after
  1154. the third hline in the table. Relative row numbers like `-3' will not
  1155. cross hlines if the current line is too close to the hline. Instead,
  1156. the value directly at the hline is used.
  1157. `0' refers to the current row and column. Also, if you omit either
  1158. the column or the row part of the reference, the current row/column is
  1159. implied.
  1160. Org-mode's references with _unsigned_ numbers are fixed references
  1161. in the sense that if you use the same reference in the formula for two
  1162. different fields, the same field will be referenced each time.
  1163. Org-mode's references with _signed_ numbers are floating references
  1164. because the same reference operator can reference different fields
  1165. depending on the field being calculated by the formula.
  1166. Here are a few examples:
  1167. @2$3 2nd row, 3rd column
  1168. C2 same as previous
  1169. $5 column 5 in the current row
  1170. E& same as previous
  1171. @2 current column, row 2
  1172. @-1$-3 the field one row up, three columns to the left
  1173. @-I$2 field just under hline above current row, column 2
  1174. Range references
  1175. ................
  1176. You may reference a rectangular range of fields by specifying two field
  1177. references connected by two dots `..'. If both fields are in the
  1178. current row, you may simply use `$2..$7', but if at least one field is
  1179. in a different row, you need to use the general `@row$column' format at
  1180. least for the first field (i.e the reference must start with `@' in
  1181. order to be interpreted correctly). Examples:
  1182. $1..$3 First three fields in the current row.
  1183. $P..$Q Range, using column names (see under Advanced)
  1184. @2$1..@4$3 6 fields between these two fields.
  1185. A2..C4 Same as above.
  1186. @-1$-2..@-1 3 numbers from the column to the left, 2 up to current row
  1187. Range references return a vector of values that can be fed into Calc
  1188. vector functions. Empty fields in ranges are normally suppressed, so
  1189. that the vector contains only the non-empty fields (but see the `E'
  1190. mode switch below). If there are no non-empty fields, `[0]' is
  1191. returned to avoid syntax errors in formulas.
  1192. Named references
  1193. ................
  1194. `$name' is interpreted as the name of a column, parameter or constant.
  1195. Constants are defined globally through the variable
  1196. `org-table-formula-constants', and locally (for the file) through a
  1197. line like
  1198. #+CONSTANTS: c=299792458. pi=3.14 eps=2.4e-6
  1199. Also properties (*note Properties and columns::) can be used as
  1200. constants in table formulas: For a property `:XYZ:' use the name
  1201. `$PROP_XYZ', and the property will be searched in the current outline
  1202. entry and in the hierarchy above it. If you have the `constants.el'
  1203. package, it will also be used to resolve constants, including natural
  1204. constants like `$h' for Planck's constant, and units like `$km' for
  1205. kilometers(2). Column names and parameters can be specified in special
  1206. table lines. These are described below, see *Note Advanced features::.
  1207. All names must start with a letter, and further consist of letters and
  1208. numbers.
  1209. ---------- Footnotes ----------
  1210. (1) Note that only hlines are counted that _separate_ table lines.
  1211. If the table starts with a hline above the header, it does not count.
  1212. (2) `Constant.el' can supply the values of constants in two
  1213. different unit systems, `SI' and `cgs'. Which one is used depends on
  1214. the value of the variable `constants-unit-system'. You can use the
  1215. `#+STARTUP' options `constSI' and `constcgs' to set this value for the
  1216. current buffer.
  1217. 
  1218. File: org, Node: Formula syntax for Calc, Next: Formula syntax for Lisp, Prev: References, Up: The spreadsheet
  1219. 3.5.2 Formula syntax for Calc
  1220. -----------------------------
  1221. A formula can be any algebraic expression understood by the Emacs
  1222. `Calc' package. Note that `calc' has the non-standard convention that
  1223. `/' has lower precedence than `*', so that `a/b*c' is interpreted as
  1224. `a/(b*c)'. Before evaluation by `calc-eval' (*note calc-eval:
  1225. (calc)Calling Calc from Your Programs.), variable substitution takes
  1226. place according to the rules described above. The range vectors can be
  1227. directly fed into the calc vector functions like `vmean' and `vsum'.
  1228. A formula can contain an optional mode string after a semicolon.
  1229. This string consists of flags to influence Calc and other modes during
  1230. execution. By default, Org-mode uses the standard calc modes (precision
  1231. 12, angular units degrees, fraction and symbolic modes off. The display
  1232. format, however, has been changed to `(float 5)' to keep tables
  1233. compact. The default settings can be configured using the variable
  1234. `org-calc-default-modes'.
  1235. p20 switch the internal precision to 20 digits
  1236. n3 s3 e2 f4 normal, scientific, engineering, or fixed display format
  1237. D R angle modes: degrees, radians
  1238. F S fraction and symbolic modes
  1239. N interpret all fields as numbers, use 0 for non-numbers
  1240. T force text interpretation
  1241. E keep empty fields in ranges
  1242. In addition, you may provide a `printf' format specifier to reformat
  1243. the final result. A few examples:
  1244. $1+$2 Sum of first and second field
  1245. $1+$2;%.2f Same, format result to two decimals
  1246. exp($2)+exp($1) Math functions can be used
  1247. $0;%.1f Reformat current cell to 1 decimal
  1248. ($3-32)*5/9 Degrees F -> C conversion
  1249. $c/$1/$cm Hz -> cm conversion, using `constants.el'
  1250. tan($1);Dp3s1 Compute in degrees, precision 3, display SCI 1
  1251. sin($1);Dp3%.1e Same, but use printf specifier for display
  1252. vmean($2..$7) Compute column range mean, using vector function
  1253. vmean($2..$7);EN Same, but treat empty fields as 0
  1254. taylor($3,x=7,2) taylor series of $3, at x=7, second degree
  1255. Calc also contains a complete set of logical operations. For example
  1256. if($1<20,teen,string("")) "teen" if age $1 less than 20, else empty
  1257. 
  1258. File: org, Node: Formula syntax for Lisp, Next: Field formulas, Prev: Formula syntax for Calc, Up: The spreadsheet
  1259. 3.5.3 Emacs Lisp forms as formulas
  1260. ----------------------------------
  1261. It is also possible to write a formula in Emacs Lisp; this can be useful
  1262. for string manipulation and control structures, if the Calc's
  1263. functionality is not enough. If a formula starts with a single quote
  1264. followed by an opening parenthesis, then it is evaluated as a lisp form.
  1265. The evaluation should return either a string or a number. Just as with
  1266. `calc' formulas, you can specify modes and a printf format after a
  1267. semicolon. With Emacs Lisp forms, you need to be concious about the way
  1268. field references are interpolated into the form. By default, a
  1269. reference will be interpolated as a Lisp string (in double quotes)
  1270. containing the field. If you provide the `N' mode switch, all
  1271. referenced elements will be numbers (non-number fields will be zero) and
  1272. interpolated as Lisp numbers, without quotes. If you provide the `L'
  1273. flag, all fields will be interpolated literally, without quotes. I.e.,
  1274. if you want a reference to be interpreted as a string by the Lisp form,
  1275. enclode the reference operator itself in double quotes, like `"$3"'.
  1276. Ranges are inserted as space-separated fields, so you can embed them in
  1277. list or vector syntax. A few examples, note how the `N' mode is used
  1278. when we do computations in lisp.
  1279. Swap the first two characters of the content of column 1
  1280. '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
  1281. Add columns 1 and 2, equivalent to the Calc's `$1+$2'
  1282. '(+ $1 $2);N
  1283. Compute the sum of columns 1-4, like Calc's `vsum($1..$4)'
  1284. '(apply '+ '($1..$4));N
  1285. 
  1286. File: org, Node: Field formulas, Next: Column formulas, Prev: Formula syntax for Lisp, Up: The spreadsheet
  1287. 3.5.4 Field formulas
  1288. --------------------
  1289. To assign a formula to a particular field, type it directly into the
  1290. field, preceded by `:=', for example `:=$1+$2'. When you press <TAB>
  1291. or <RET> or `C-c C-c' with the cursor still in the field, the formula
  1292. will be stored as the formula for this field, evaluated, and the
  1293. current field replaced with the result.
  1294. Formulas are stored in a special line starting with `#+TBLFM:'
  1295. directly below the table. If you typed the equation in the 4th field of
  1296. the 3rd data line in the table, the formula will look like
  1297. `@3$4=$1+$2'. When inserting/deleting/swapping column and rows with
  1298. the appropriate commands, absolute references (but not relative ones)
  1299. in stored formulas are modified in order to still reference the same
  1300. field. Of cause this is not true if you edit the table structure with
  1301. normal editing commands - then you must fix the equations yourself.
  1302. Instead of typing an equation into the field, you may also use the
  1303. following command
  1304. `C-u C-c ='
  1305. Install a new formula for the current field. The command prompts
  1306. for a formula, with default taken from the `#+TBLFM:' line, applies
  1307. it to the current field and stores it.
  1308. 
  1309. File: org, Node: Column formulas, Next: Editing and debugging formulas, Prev: Field formulas, Up: The spreadsheet
  1310. 3.5.5 Column formulas
  1311. ---------------------
  1312. Often in a table, the same formula should be used for all fields in a
  1313. particular column. Instead of having to copy the formula to all fields
  1314. in that column, org-mode allows to assign a single formula to an entire
  1315. column. If the table contains horizontal separator hlines, everything
  1316. before the first such line is considered part of the table _header_ and
  1317. will not be modified by column formulas.
  1318. To assign a formula to a column, type it directly into any field in
  1319. the column, preceded by an equal sign, like `=$1+$2'. When you press
  1320. <TAB> or <RET> or `C-c C-c' with the cursor still in the field, the
  1321. formula will be stored as the formula for the current column, evaluated
  1322. and the current field replaced with the result. If the field contains
  1323. only `=', the previously stored formula for this column is used. For
  1324. each column, Org-mode will only remember the most recently used
  1325. formula. In the `TBLFM:' line, column formulas will look like
  1326. `$4=$1+$2'.
  1327. Instead of typing an equation into the field, you may also use the
  1328. following command:
  1329. `C-c ='
  1330. Install a new formula for the current column and replace current
  1331. field with the result of the formula. The command prompts for a
  1332. formula, with default taken from the `#+TBLFM' line, applies it to
  1333. the current field and stores it. With a numerical prefix (e.g.
  1334. `C-5 C-c =') will apply it to that many consecutive fields in the
  1335. current column.
  1336. 
  1337. File: org, Node: Editing and debugging formulas, Next: Updating the table, Prev: Column formulas, Up: The spreadsheet
  1338. 3.5.6 Editing and Debugging formulas
  1339. ------------------------------------
  1340. You can edit individual formulas in the minibuffer or directly in the
  1341. field. Org-mode can also prepare a special buffer with all active
  1342. formulas of a table. When offering a formula for editing, Org-mode
  1343. converts references to the standard format (like `B3' or `D&') if
  1344. possible. If you prefer to only work with the internal format (like
  1345. `@3$2' or `$4'), configure the variable
  1346. `org-table-use-standard-references'.
  1347. `C-c ='
  1348. `C-u C-c ='
  1349. Edit the formula associated with the current column/field in the
  1350. minibuffer. See *Note Column formulas:: and *Note Field
  1351. formulas::.
  1352. `C-u C-u C-c ='
  1353. Re-insert the active formula (either a field formula, or a column
  1354. formula) into the current field, so that you can edit it directly
  1355. in the field. The advantage over editing in the minibuffer is
  1356. that you can use the command `C-c ?'.
  1357. `C-c ?'
  1358. While editing a formula in a table field, highlight the field(s)
  1359. referenced by the reference at the cursor position in the formula.
  1360. `C-c }'
  1361. Toggle the display of row and column numbers for a table, using
  1362. overlays. These are updated each time the table is aligned, you
  1363. can force it with `C-c C-c'.
  1364. `C-c {'
  1365. Toggle the formula debugger on and off. See below.
  1366. `C-c ''
  1367. Edit all formulas for the current table in a special buffer, where
  1368. the formulas will be displayed one per line. If the current field
  1369. has an active formula, the cursor in the formula editor will mark
  1370. it. While inside the special buffer, Org-mode will automatically
  1371. highlight any field or range reference at the cursor position.
  1372. You may edit, remove and add formulas, and use the following
  1373. commands:
  1374. `C-c C-c'
  1375. `C-x C-s'
  1376. Exit the formula editor and store the modified formulas.
  1377. With `C-u' prefix, also apply the new formulas to the entire
  1378. table.
  1379. `C-c C-q'
  1380. Exit the formula editor without installing changes.
  1381. `C-c C-r'
  1382. Toggle all references in the formula editor between standard
  1383. (like `B3') and internal (like `@3$2').
  1384. `<TAB>'
  1385. Pretty-print or indent lisp formula at point. When in a line
  1386. containing a lisp formula, format the formula according to
  1387. Emacs Lisp rules. Another <TAB> collapses the formula back
  1388. again. In the open formula, <TAB> re-indents just like in
  1389. Emacs-lisp-mode.
  1390. `M-<TAB>'
  1391. Complete Lisp symbols, just like in Emacs-lisp-mode.
  1392. `S-<up>/<down>/<left>/<right>'
  1393. Shift the reference at point. For example, if the reference
  1394. is `B3' and you press `S-<right>', it will become `C3'. This
  1395. also works for relative references, and for hline references.
  1396. `M-S-<up>/<down>'
  1397. Move the test line for column formulas in the Org-mode buffer
  1398. up and down.
  1399. `M-<up>/<down>'
  1400. Scroll the window displaying the table.
  1401. `C-c }'
  1402. Turn the coordinate grid in the table on and off.
  1403. Making a table field blank does not remove the formula associated
  1404. with the field, because that is stored in a different line (the `TBLFM'
  1405. line) - during the next recalculation the field will be filled again.
  1406. To remove a formula from a field, you have to give an empty reply when
  1407. prompted for the formula, or to edit the `#+TBLFM' line.
  1408. You may edit the `#+TBLFM' directly and re-apply the changed
  1409. equations with `C-c C-c' in that line, or with the normal recalculation
  1410. commands in the table.
  1411. Debugging formulas
  1412. ..................
  1413. When the evaluation of a formula leads to an error, the field content
  1414. becomes the string `#ERROR'. If you would like see what is going on
  1415. during variable substitution and calculation in order to find a bug,
  1416. turn on formula debugging in the `Tbl' menu and repeat the calculation,
  1417. for example by pressing `C-u C-u C-c = <RET>' in a field. Detailed
  1418. information will be displayed.
  1419. 
  1420. File: org, Node: Updating the table, Next: Advanced features, Prev: Editing and debugging formulas, Up: The spreadsheet
  1421. 3.5.7 Updating the Table
  1422. ------------------------
  1423. Recalculation of a table is normally not automatic, but needs to be
  1424. triggered by a command. See *Note Advanced features:: for a way to make
  1425. recalculation at least semi-automatically.
  1426. In order to recalculate a line of a table or the entire table, use
  1427. the following commands:
  1428. `C-c *'
  1429. Recalculate the current row by first applying the stored column
  1430. formulas from left to right, and all field formulas in the current
  1431. row.
  1432. `C-u C-c *'
  1433. `C-u C-c C-c'
  1434. Recompute the entire table, line by line. Any lines before the
  1435. first hline are left alone, assuming that these are part of the
  1436. table header.
  1437. `C-u C-u C-c *'
  1438. `C-u C-u C-c C-c'
  1439. Iterate the table by recomputing it until no further changes occur.
  1440. This may be necessary if some computed fields use the value of
  1441. other fields that are computed later in the calculation sequence.
  1442. 
  1443. File: org, Node: Advanced features, Prev: Updating the table, Up: The spreadsheet
  1444. 3.5.8 Advanced features
  1445. -----------------------
  1446. If you want the recalculation of fields to happen automatically, or if
  1447. you want to be able to assign names to fields and columns, you need to
  1448. reserve the first column of the table for special marking characters.
  1449. `C-#'
  1450. Rotate the calculation mark in first column through the states `',
  1451. `#', `*', `!', `$'. The meaning of these characters is discussed
  1452. below. When there is an active region, change all marks in the
  1453. region.
  1454. Here is an example of a table that collects exam results of students
  1455. and makes use of these features:
  1456. |---+---------+--------+--------+--------+-------+------|
  1457. | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
  1458. |---+---------+--------+--------+--------+-------+------|
  1459. | ! | | P1 | P2 | P3 | Tot | |
  1460. | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
  1461. | ^ | | m1 | m2 | m3 | mt | |
  1462. |---+---------+--------+--------+--------+-------+------|
  1463. | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
  1464. | # | Sara | 6 | 14 | 19 | 39 | 7.8 |
  1465. | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
  1466. |---+---------+--------+--------+--------+-------+------|
  1467. | | Average | | | | 29.7 | |
  1468. | ^ | | | | | at | |
  1469. | $ | max=50 | | | | | |
  1470. |---+---------+--------+--------+--------+-------+------|
  1471. #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
  1472. Important: Please note that for these special tables, recalculating the
  1473. table with `C-u C-c *' will only affect rows that are marked `#' or
  1474. `*', and fields that have a formula assigned to the field itself. The
  1475. column formulas are not applied in rows with empty first field.
  1476. The marking characters have the following meaning:
  1477. `!'
  1478. The fields in this line define names for the columns, so that you
  1479. may refer to a column as `$Tot' instead of `$6'.
  1480. `^'
  1481. This row defines names for the fields _above_ the row. With such
  1482. a definition, any formula in the table may use `$m1' to refer to
  1483. the value `10'. Also, if you assign a formula to a names field, it
  1484. will be stored as `$name=...'.
  1485. `_'
  1486. Similar to `^', but defines names for the fields in the row
  1487. _below_.
  1488. `$'
  1489. Fields in this row can define _parameters_ for formulas. For
  1490. example, if a field in a `$' row contains `max=50', then formulas
  1491. in this table can refer to the value 50 using `$max'. Parameters
  1492. work exactly like constants, only that they can be defined on a
  1493. per-table basis.
  1494. `#'
  1495. Fields in this row are automatically recalculated when pressing
  1496. <TAB> or <RET> or `S-<TAB>' in this row. Also, this row is
  1497. selected for a global recalculation with `C-u C-c *'. Unmarked
  1498. lines will be left alone by this command.
  1499. `*'
  1500. Selects this line for global recalculation with `C-u C-c *', but
  1501. not for automatic recalculation. Use this when automatic
  1502. recalculation slows down editing too much.
  1503. `'
  1504. Unmarked lines are exempt from recalculation with `C-u C-c *'.
  1505. All lines that should be recalculated should be marked with `#' or
  1506. `*'.
  1507. `/'
  1508. Do not export this line. Useful for lines that contain the
  1509. narrowing `<N>' markers.
  1510. Finally, just to whet your appetite on what can be done with the
  1511. fantastic `calc' package, here is a table that computes the Taylor
  1512. series of degree `n' at location `x' for a couple of functions
  1513. (homework: try that with Excel :-)
  1514. |---+-------------+---+-----+--------------------------------------|
  1515. | | Func | n | x | Result |
  1516. |---+-------------+---+-----+--------------------------------------|
  1517. | # | exp(x) | 1 | x | 1 + x |
  1518. | # | exp(x) | 2 | x | 1 + x + x^2 / 2 |
  1519. | # | exp(x) | 3 | x | 1 + x + x^2 / 2 + x^3 / 6 |
  1520. | # | x^2+sqrt(x) | 2 | x=0 | x*(0.5 / 0) + x^2 (2 - 0.25 / 0) / 2 |
  1521. | # | x^2+sqrt(x) | 2 | x=1 | 2 + 2.5 x - 2.5 + 0.875 (x - 1)^2 |
  1522. | * | tan(x) | 3 | x | 0.0175 x + 1.77e-6 x^3 |
  1523. |---+-------------+---+-----+--------------------------------------|
  1524. #+TBLFM: $5=taylor($2,$4,$3);n3
  1525. 
  1526. File: org, Node: Hyperlinks, Next: TODO items, Prev: Tables, Up: Top
  1527. 4 Hyperlinks
  1528. ************
  1529. Like HTML, Org-mode provides links inside a file, external links to
  1530. other files, Usenet articles, emails, and much more.
  1531. * Menu:
  1532. * Link format:: How links in Org-mode are formatted
  1533. * Internal links:: Links to other places in the current file
  1534. * External links:: URL-like links to the world
  1535. * Handling links:: Creating, inserting and following
  1536. * Using links outside Org-mode:: Linking from my C source code?
  1537. * Link abbreviations:: Shortcuts for writing complex links
  1538. * Search options:: Linking to a specific location
  1539. * Custom searches:: When the default search is not enough
  1540. 
  1541. File: org, Node: Link format, Next: Internal links, Prev: Hyperlinks, Up: Hyperlinks
  1542. 4.1 Link format
  1543. ===============
  1544. Org-mode will recognize plain URL-like links and activate them as
  1545. clickable links. The general link format, however, looks like this:
  1546. [[link][description]] or alternatively [[link]]
  1547. Once a link in the buffer is complete (all brackets present),
  1548. Org-mode will change the display so that `description' is displayed
  1549. instead of `[[link][description]]' and `link' is displayed instead of
  1550. `[[link]]'. Links will be highlighted in the face `org-link', which by
  1551. default is an underlined face. You can directly edit the visible part
  1552. of a link. Note that this can be either the `link' part (if there is
  1553. no description) or the `description' part. To edit also the invisible
  1554. `link' part, use `C-c C-l' with the cursor on the link.
  1555. If you place the cursor at the beginning or just behind the end of
  1556. the displayed text and press <BACKSPACE>, you will remove the
  1557. (invisible) bracket at that location. This makes the link incomplete
  1558. and the internals are again displayed as plain text. Inserting the
  1559. missing bracket hides the link internals again. To show the internal
  1560. structure of all links, use the menu entry `Org->Hyperlinks->Literal
  1561. links'.
  1562. 
  1563. File: org, Node: Internal links, Next: External links, Prev: Link format, Up: Hyperlinks
  1564. 4.2 Internal links
  1565. ==================
  1566. If the link does not look like a URL, it is considered to be internal in
  1567. the current file. Links such as `[[My Target]]' or `[[My Target][Find
  1568. my target]]' lead to a text search in the current file. The link can
  1569. be followed with `C-c C-o' when the cursor is on the link, or with a
  1570. mouse click (*note Handling links::). The preferred match for such a
  1571. link is a dedicated target: the same string in double angular brackets.
  1572. Targets may be located anywhere; sometimes it is convenient to put
  1573. them into a comment line. For example
  1574. # <<My Target>>
  1575. In HTML export (*note HTML export::), such targets will become named
  1576. anchors for direct access through `http' links(1).
  1577. If no dedicated target exists, Org-mode will search for the words in
  1578. the link. In the above example the search would be for `my target'.
  1579. Links starting with a star like `*My Target' restrict the search to
  1580. headlines. When searching, Org-mode will first try an exact match, but
  1581. then move on to more and more lenient searches. For example, the link
  1582. `[[*My Targets]]' will find any of the following:
  1583. ** My targets
  1584. ** TODO my targets are bright
  1585. ** my 20 targets are
  1586. To insert a link targeting a headline, in-buffer completion can be
  1587. used. Just type a star followed by a few optional letters into the
  1588. buffer and press `M-<TAB>'. All headlines in the current buffer will be
  1589. offered as completions. *Note Handling links::, for more commands
  1590. creating links.
  1591. Following a link pushes a mark onto Org-mode's own mark ring. You
  1592. can return to the previous position with `C-c &'. Using this command
  1593. several times in direct succession goes back to positions recorded
  1594. earlier.
  1595. * Menu:
  1596. * Radio targets:: Make targets trigger links in plain text.
  1597. ---------- Footnotes ----------
  1598. (1) Note that text before the first headline is usually not
  1599. exported, so the first such target should be after the first headline.
  1600. 
  1601. File: org, Node: Radio targets, Prev: Internal links, Up: Internal links
  1602. 4.2.1 Radio targets
  1603. -------------------
  1604. Org-mode can automatically turn any occurrences of certain target names
  1605. in normal text into a link. So without explicitly creating a link, the
  1606. text connects to the target radioing its position. Radio targets are
  1607. enclosed by triple angular brackets. For example, a target `<<<My
  1608. Target>>>' causes each occurrence of `my target' in normal text to
  1609. become activated as a link. The Org-mode file is scanned automatically
  1610. for radio targets only when the file is first loaded into Emacs. To
  1611. update the target list during editing, press `C-c C-c' with the cursor
  1612. on or at a target.
  1613. 
  1614. File: org, Node: External links, Next: Handling links, Prev: Internal links, Up: Hyperlinks
  1615. 4.3 External links
  1616. ==================
  1617. Org-mode supports links to files, websites, Usenet and email messages,
  1618. and BBDB database entries. External links are URL-like locators. They
  1619. start with a short identifying string followed by a colon. There can be
  1620. no space after the colon. The following list shows examples for each
  1621. link type.
  1622. http://www.astro.uva.nl/~dominik on the web
  1623. file:/home/dominik/images/jupiter.jpg file, absolute path
  1624. file:papers/last.pdf file, relative path
  1625. news:comp.emacs Usenet link
  1626. mailto:adent@galaxy.net Mail link
  1627. vm:folder VM folder link
  1628. vm:folder#id VM message link
  1629. vm://myself@some.where.org/folder#id VM on remote machine
  1630. wl:folder WANDERLUST folder link
  1631. wl:folder#id WANDERLUST message link
  1632. mhe:folder MH-E folder link
  1633. mhe:folder#id MH-E message link
  1634. rmail:folder RMAIL folder link
  1635. rmail:folder#id RMAIL message link
  1636. gnus:group GNUS group link
  1637. gnus:group#id GNUS article link
  1638. bbdb:Richard Stallman BBDB link
  1639. shell:ls *.org A shell command
  1640. elisp:(find-file-other-frame "Elisp.org") An elisp form to evaluate
  1641. A link should be enclosed in double brackets and may contain a
  1642. descriptive text to be displayed instead of the url (*note Link
  1643. format::), for example:
  1644. [[http://www.gnu.org/software/emacs/][GNU Emacs]]
  1645. If the description is a file name or URL that points to an image, HTML
  1646. export (*note HTML export::) will inline the image as a clickable
  1647. button. If there is no description at all and the link points to an
  1648. image, that image will be inlined into the exported HTML file.
  1649. Org-mode also finds external links in the normal text and activates
  1650. them as links. If spaces must be part of the link (for example in
  1651. `bbdb:Richard Stallman'), or if you need to remove ambiguities about
  1652. the end of the link, enclose them in angular brackets.
  1653. 
  1654. File: org, Node: Handling links, Next: Using links outside Org-mode, Prev: External links, Up: Hyperlinks
  1655. 4.4 Handling links
  1656. ==================
  1657. Org-mode provides methods to create a link in the correct syntax, to
  1658. insert it into an org-mode file, and to follow the link.
  1659. `C-c l'
  1660. Store a link to the current location. This is a _global_ command
  1661. which can be used in any buffer to create a link. The link will be
  1662. stored for later insertion into an Org-mode buffer (see below).
  1663. For Org-mode files, if there is a `<<target>>' at the cursor, the
  1664. link points to the target. Otherwise it points to the current
  1665. headline. For VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers,
  1666. the link will indicate the current article/entry. For W3 and W3M
  1667. buffers, the link goes to the current URL. For any other files,
  1668. the link will point to the file, with a search string (*note
  1669. Search options::) pointing to the contents of the current line.
  1670. If there is an active region, the selected words will form the
  1671. basis of the search string. If the automatically created link is
  1672. not working correctly or accurately enough, you can write custom
  1673. functions to select the search string and to do the search for
  1674. particular file types - see *Note Custom searches::. The key
  1675. binding `C-c l' is only a suggestion - see *Note Installation::.
  1676. `C-c C-l'
  1677. Insert a link. This prompts for a link to be inserted into the
  1678. buffer. You can just type a link, using text for an internal
  1679. link, or one of the link type prefixes mentioned in the examples
  1680. above. All links stored during the current session are part of
  1681. the history for this prompt, so you can access them with <up> and
  1682. <down> (or `M-p/n'). Completion, on the other hand, will help you
  1683. to insert valid link prefixes like `http:' or `ftp:', including
  1684. the prefixes defined through link abbreviations (*note Link
  1685. abbreviations::). The link will be inserted into the buffer(1),
  1686. along with a descriptive text. If some text was selected when
  1687. this command is called, the selected text becomes the default
  1688. description.
  1689. Note that you don't have to use this command to insert a link.
  1690. Links in Org-mode are plain text, and you can type or paste them
  1691. straight into the buffer. By using this command, the links are
  1692. automatically enclosed in double brackets, and you will be asked
  1693. for the optional descriptive text.
  1694. `C-u C-c C-l'
  1695. When `C-c C-l' is called with a `C-u' prefix argument, a link to a
  1696. file will be inserted and you may use file name completion to
  1697. select the name of the file. The path to the file is inserted
  1698. relative to the directory of the current org file, if the linked
  1699. file is in the current directory or in a subdirectory of it, or if
  1700. the path is written relative to the current directory using `../'.
  1701. Otherwise an absolute path is used, if possible with `~/' for
  1702. your home directory. You can force an absolute path with two
  1703. `C-u' prefixes.
  1704. `C-c C-l (with cursor on existing link)'
  1705. When the cursor is on an existing link, `C-c C-l' allows you to
  1706. edit the link and description parts of the link.
  1707. `C-c C-o'
  1708. Open link at point. This will launch a web browser for URLs (using
  1709. `browse-url-at-point'), run vm/mh-e/wanderlust/rmail/gnus/bbdb for
  1710. the corresponding links, and execute the command in a shell link.
  1711. When the cursor is on an internal link, this commands runs the
  1712. corresponding search. When the cursor is on a TAG list in a
  1713. headline, it creates the corresponding TAGS view. If the cursor
  1714. is on a time stamp, it compiles the agenda for that date.
  1715. Furthermore, it will visit text and remote files in `file:' links
  1716. with Emacs and select a suitable application for local non-text
  1717. files. Classification of files is based on file extension only.
  1718. See option `org-file-apps'. If you want to override the default
  1719. application and visit the file with Emacs, use a `C-u' prefix.
  1720. `mouse-2'
  1721. `mouse-1'
  1722. On links, `mouse-2' will open the link just as `C-c C-o' would.
  1723. Under Emacs 22, also `mouse-1' will follow a link.
  1724. `mouse-3'
  1725. Like `mouse-2', but force file links to be opened with Emacs, and
  1726. internal links to be displayed in another window(2).
  1727. `C-c %'
  1728. Push the current position onto the mark ring, to be able to return
  1729. easily. Commands following an internal link do this automatically.
  1730. `C-c &'
  1731. Jump back to a recorded position. A position is recorded by the
  1732. commands following internal links, and by `C-c %'. Using this
  1733. command several times in direct succession moves through a ring of
  1734. previously recorded positions.
  1735. `C-c C-x C-n'
  1736. `C-c C-x C-p'
  1737. Move forward/backward to the next link in the buffer. At the
  1738. limit of the buffer, the search fails once, and then wraps around.
  1739. The key bindings for this are really too long, you might want to
  1740. bind this also to `C-n' and `C-p'
  1741. (add-hook 'org-load-hook
  1742. (lambda ()
  1743. (define-key 'org-mode-map "\C-n" 'org-next-link)
  1744. (define-key 'org-mode-map "\C-p" 'org-previous-link)))
  1745. ---------- Footnotes ----------
  1746. (1) After insertion of a stored link, the link will be removed from
  1747. the list of stored links. To keep it in the list later use, use a
  1748. triple `C-u' prefix to `C-c C-l', or configure the option
  1749. `org-keep-stored-link-after-insertion'.
  1750. (2) See the variable `org-display-internal-link-with-indirect-buffer'
  1751. 
  1752. File: org, Node: Using links outside Org-mode, Next: Link abbreviations, Prev: Handling links, Up: Hyperlinks
  1753. 4.5 Using links outside Org-mode
  1754. ================================
  1755. You can insert and follow links that have Org-mode syntax not only in
  1756. Org-mode, but in any Emacs buffer. For this, you should create two
  1757. global commands, like this (please select suitable global keys
  1758. yourself):
  1759. (global-set-key "\C-c L" 'org-insert-link-global)
  1760. (global-set-key "\C-c o" 'org-open-at-point-global)
  1761. 
  1762. File: org, Node: Link abbreviations, Next: Search options, Prev: Using links outside Org-mode, Up: Hyperlinks
  1763. 4.6 Link abbreviations
  1764. ======================
  1765. Long URLs can be cumbersome to type, and often many similar links are
  1766. needed in a document. For this you can use link abbreviations. An
  1767. abbreviated link looks like this
  1768. [[linkword:tag][description]]
  1769. where the tag is optional. Such abbreviations are resolved according to
  1770. the information in the variable `org-link-abbrev-alist' that relates
  1771. the linkwords to replacement text. Here is an example:
  1772. (setq org-link-abbrev-alist
  1773. '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
  1774. ("google" . "http://www.google.com/search?q=")
  1775. ("ads" . "http://adsabs.harvard.edu/cgi-bin/
  1776. nph-abs_connect?author=%s&db_key=AST")))
  1777. If the replacement text contains the string `%s', it will be
  1778. replaced with the tag. Otherwise the tag will be appended to the string
  1779. in order to create the link. You may also specify a function that will
  1780. be called with the tag as the only argument to create the link.
  1781. With the above setting, you could link to a specific bug with
  1782. `[[bugzilla:129]]', search the web for `OrgMode' with
  1783. `[[google:OrgMode]]' and find out what the Org-mode author is doing
  1784. besides Emacs hacking with `[[ads:Dominik,C]]'.
  1785. If you need special abbreviations just for a single Org-mode buffer,
  1786. you can define them in the file with
  1787. #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
  1788. #+LINK: google http://www.google.com/search?q=%s
  1789. In-buffer completion *note Completion:: can be used after `[' to
  1790. complete link abbreviations.
  1791. 
  1792. File: org, Node: Search options, Next: Custom searches, Prev: Link abbreviations, Up: Hyperlinks
  1793. 4.7 Search options in file links
  1794. ================================
  1795. File links can contain additional information to make Emacs jump to a
  1796. particular location in the file when following a link. This can be a
  1797. line number or a search option after a double(1) colon. For example,
  1798. when the command `C-c l' creates a link (*note Handling links::) to a
  1799. file, it encodes the words in the current line as a search string that
  1800. can be used to find this line back later when following the link with
  1801. `C-c C-o'.
  1802. Here is the syntax of the different ways to attach a search to a file
  1803. link, together with an explanation:
  1804. [[file:~/code/main.c::255]]
  1805. [[file:~/xx.org::My Target]]
  1806. [[file:~/xx.org::*My Target]]
  1807. [[file:~/xx.org::/regexp/]]
  1808. `255'
  1809. Jump to line 255.
  1810. `My Target'
  1811. Search for a link target `<<My Target>>', or do a text search for
  1812. `my target', similar to the search in internal links, see *Note
  1813. Internal links::. In HTML export (*note HTML export::), such a
  1814. file link will become an HTML reference to the corresponding named
  1815. anchor in the linked file.
  1816. `*My Target'
  1817. In an Org-mode file, restrict search to headlines.
  1818. `/regexp/'
  1819. Do a regular expression search for `regexp'. This uses the Emacs
  1820. command `occur' to list all matches in a separate window. If the
  1821. target file is in Org-mode, `org-occur' is used to create a sparse
  1822. tree with the matches.
  1823. As a degenerate case, a file link with an empty file name can be used
  1824. to search the current file. For example, `[[file:::find me]]' does a
  1825. search for `find me' in the current file, just as `[[find me]]' would.
  1826. ---------- Footnotes ----------
  1827. (1) For backward compatibility, line numbers can also follow a
  1828. single colon.
  1829. 
  1830. File: org, Node: Custom searches, Prev: Search options, Up: Hyperlinks
  1831. 4.8 Custom Searches
  1832. ===================
  1833. The default mechanism for creating search strings and for doing the
  1834. actual search related to a file link may not work correctly in all
  1835. cases. For example, BibTeX database files have many entries like
  1836. `year="1993"' which would not result in good search strings, because
  1837. the only unique identification for a BibTeX entry is the citation key.
  1838. If you come across such a problem, you can write custom functions to
  1839. set the right search string for a particular file type, and to do the
  1840. search for the string in the file. Using `add-hook', these functions
  1841. need to be added to the hook variables
  1842. `org-create-file-search-functions' and
  1843. `org-execute-file-search-functions'. See the docstring for these
  1844. variables for more information. Org-mode actually uses this mechanism
  1845. for BibTeX database files, and you can use the corresponding code as an
  1846. implementation example. Search for `BibTeX links' in the source file.
  1847. 
  1848. File: org, Node: TODO items, Next: Tags, Prev: Hyperlinks, Up: Top
  1849. 5 TODO items
  1850. ************
  1851. Org-mode does not maintain TODO lists as separate documents. Instead,
  1852. TODO items are an integral part of the notes file, because TODO items
  1853. usually come up while taking notes! With Org-mode, simply mark any
  1854. entry in a tree as being a TODO item. In this way, information is not
  1855. duplicated, and the entire context from which the TODO item emerged is
  1856. always present.
  1857. Of course, this technique for managing TODO items scatters them
  1858. throughout your notes file. Org-mode compensates for this by providing
  1859. methods to give you an overview of all the things that you have to do.
  1860. * Menu:
  1861. * TODO basics:: Marking and displaying TODO entries
  1862. * TODO extensions:: Workflow and assignments
  1863. * Progress logging:: Dates and notes for progress
  1864. * Priorities:: Some things are more important than others
  1865. * Breaking down tasks:: Splitting a task into manageable pieces
  1866. * Checkboxes:: Tick-off lists
  1867. 
  1868. File: org, Node: TODO basics, Next: TODO extensions, Prev: TODO items, Up: TODO items
  1869. 5.1 Basic TODO functionality
  1870. ============================
  1871. Any headline becomes a TODO item when it starts with the word `TODO',
  1872. for example:
  1873. *** TODO Write letter to Sam Fortune
  1874. The most important commands to work with TODO entries are:
  1875. `C-c C-t'
  1876. Rotate the TODO state of the current item among
  1877. ,-> (unmarked) -> TODO -> DONE --.
  1878. '--------------------------------'
  1879. The same rotation can also be done "remotely" from the timeline and
  1880. agenda buffers with the `t' command key (*note Agenda commands::).
  1881. `C-u C-c C-t'
  1882. Select a specific keyword using completion or (if it has been set
  1883. up) the fast selection interface.
  1884. `S-<right>'
  1885. `S-<left>'
  1886. Select the following/preceding TODO state, similar to cycling.
  1887. Useful mostly if more than two TODO states are possible (*note
  1888. TODO extensions::).
  1889. `C-c C-c'
  1890. Use the fast tag interface to directly select a specific TODO
  1891. state. For this you need to assign keys to TODO states, like this:
  1892. #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) | DONE(d)
  1893. See *Note Per-file keywords:: and *Note Setting tags:: for more
  1894. information.
  1895. `C-c C-v'
  1896. `C-c / t'
  1897. View TODO items in a _sparse tree_ (*note Sparse trees::). Folds
  1898. the entire buffer, but shows all TODO items and the headings
  1899. hierarchy above them. With prefix arg, search for a specific
  1900. TODO. You will be prompted for the keyword, and you can also give
  1901. a list of keywords like `kwd1|kwd2|...'. With numerical prefix N,
  1902. show the tree for the Nth keyword in the variable
  1903. `org-todo-keywords'. With two prefix args, find all TODO and DONE
  1904. entries.
  1905. `C-c a t'
  1906. Show the global TODO list. Collects the TODO items from all agenda
  1907. files (*note Agenda views::) into a single buffer. The new buffer
  1908. will be in `agenda-mode', which provides commands to examine and
  1909. manipulate the TODO entries from the new buffer (*note Agenda
  1910. commands::). *Note Global TODO list::, for more information.
  1911. `S-M-<RET>'
  1912. Insert a new TODO entry below the current one.
  1913. 
  1914. File: org, Node: TODO extensions, Next: Progress logging, Prev: TODO basics, Up: TODO items
  1915. 5.2 Extended use of TODO keywords
  1916. =================================
  1917. By default, marked TODO entries have one of only two states: TODO and
  1918. DONE. Org-mode allows you to classify TODO items in more complex ways
  1919. with _TODO keywords_ (stored in `org-todo-keywords'). With special
  1920. setup, the TODO keyword system can work differently in different files.
  1921. Note that tags are another way to classify headlines in general and
  1922. TODO items in particular (*note Tags::).
  1923. * Menu:
  1924. * Workflow states:: From TODO to DONE in steps
  1925. * TODO types:: I do this, Fred does the rest
  1926. * Multiple sets in one file:: Mixing it all, and still finding your way
  1927. * Fast access to TODO states:: Single letter selection of a state
  1928. * Per-file keywords:: Different files, different requirements
  1929. * Faces for TODO keywords:: Highlighting states
  1930. 
  1931. File: org, Node: Workflow states, Next: TODO types, Prev: TODO extensions, Up: TODO extensions
  1932. 5.2.1 TODO keywords as workflow states
  1933. --------------------------------------
  1934. You can use TODO keywords to indicate different _sequential_ states in
  1935. the process of working on an item, for example(1):
  1936. (setq org-todo-keywords
  1937. '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
  1938. The vertical bar separates the TODO keywords (states that _need
  1939. action_) from the DONE states (which need _no further action_. If you
  1940. don't provide the separator bar, the last state is used as the DONE
  1941. state. With this setup, the command `C-c C-t' will cycle an entry from
  1942. TODO to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED.
  1943. You may also use a prefix argument to quickly select a specific state.
  1944. For example `C-3 C-c C-t' will change the state immediately to VERIFY.
  1945. If you define many keywords, you can use in-buffer completion (see
  1946. *Note Completion::) to insert these words into the buffer. Changing a
  1947. todo state can be logged with a timestamp, see *Note Tracking TODO
  1948. state changes:: for more information.
  1949. ---------- Footnotes ----------
  1950. (1) Changing this variable only becomes effective after restarting
  1951. Org-mode in a buffer.
  1952. 
  1953. File: org, Node: TODO types, Next: Multiple sets in one file, Prev: Workflow states, Up: TODO extensions
  1954. 5.2.2 TODO keywords as types
  1955. ----------------------------
  1956. The second possibility is to use TODO keywords to indicate different
  1957. _types_ of action items. For example, you might want to indicate that
  1958. items are for "work" or "home". Or, when you work with several people
  1959. on a single project, you might want to assign action items directly to
  1960. persons, by using their names as TODO keywords. This would be set up
  1961. like this:
  1962. (setq org-todo-keywords '((type "Fred" "Sara" "Lucy" "|" "DONE")))
  1963. In this case, different keywords do not indicate a sequence, but
  1964. rather different types. So the normal work flow would be to assign a
  1965. task to a person, and later to mark it DONE. Org-mode supports this
  1966. style by adapting the workings of the command `C-c C-t'(1). When used
  1967. several times in succession, it will still cycle through all names, in
  1968. order to first select the right type for a task. But when you return
  1969. to the item after some time and execute `C-c C-t' again, it will switch
  1970. from any name directly to DONE. Use prefix arguments or completion to
  1971. quickly select a specific name. You can also review the items of a
  1972. specific TODO type in a sparse tree by using a numeric prefix to `C-c
  1973. C-v'. For example, to see all things Lucy has to do, you would use
  1974. `C-3 C-c C-v'. To collect Lucy's items from all agenda files into a
  1975. single buffer, you would use the prefix arg as well when creating the
  1976. global todo list: `C-3 C-c t'.
  1977. ---------- Footnotes ----------
  1978. (1) This is also true for the `t' command in the timeline and agenda
  1979. buffers.
  1980. 
  1981. File: org, Node: Multiple sets in one file, Next: Fast access to TODO states, Prev: TODO types, Up: TODO extensions
  1982. 5.2.3 Multiple keyword sets in one file
  1983. ---------------------------------------
  1984. Sometimes you may want to use different sets of TODO keywords in
  1985. parallel. For example, you may want to have the basic `TODO'/`DONE',
  1986. but also a workflow for bug fixing, and a separate state indicating
  1987. that an item has been canceled (so it is not DONE, but also does not
  1988. require action). Your setup would then look like this:
  1989. (setq org-todo-keywords
  1990. '((sequence "TODO" "|" "DONE")
  1991. (sequence "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED")
  1992. (sequence "|" "CANCELED")))
  1993. The keywords should all be different, this helps Org-mode to keep
  1994. track of which subsequence should be used for a given entry. In this
  1995. setup, `C-c C-t' only operates within a subsequence, so it switches from
  1996. `DONE' to (nothing) to `TODO', and from `FIXED' to (nothing) to
  1997. `REPORT'. Therefore you need a mechanism to initially select the
  1998. correct sequence. Besides the obvious ways like typing a keyword or
  1999. using completion, you may also apply the following commands:
  2000. `C-S-<right>'
  2001. `C-S-<left>'
  2002. These keys jump from one TODO subset to the next. In the above
  2003. example, `C-S-<right>' would jump from `TODO' or `DONE' to
  2004. `REPORT', and any of the words in the second row to `CANCELED'.
  2005. `S-<right>'
  2006. `S-<left>'
  2007. `S-<<left>>' and `S-<<right>>' and walk through _all_ keywords
  2008. from all sets, so for example `S-<<right>>' would switch from
  2009. `DONE' to `REPORT' in the example above.
  2010. 
  2011. File: org, Node: Fast access to TODO states, Next: Per-file keywords, Prev: Multiple sets in one file, Up: TODO extensions
  2012. 5.2.4 Fast access to TODO states
  2013. --------------------------------
  2014. If you would like to quickly change an entry to an arbitrary TODO state
  2015. instead of cycling through the states, you can set up keys for
  2016. single-letter access to the states. This is done by adding the section
  2017. key after each keyword, in parenthesis. For example:
  2018. (setq org-todo-keywords
  2019. '((sequence "TODO(t)" "|" "DONE(d)")
  2020. (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)" "|" "FIXED(f)")
  2021. (sequence "|" "CANCELED(c)")))
  2022. If you then press `C-u C-c C-t' followed by the selection key, the
  2023. entry will be switched to this state. <SPC> can be used to remove any
  2024. TODO keyword from an entry. Should you like this way of selecting TODO
  2025. states a lot, you might want to set the variable
  2026. `org-use-fast-todo-selection' to `t' and make this behavior the
  2027. default. Check also the variable
  2028. `org-fast-tag-selection-include-todo', it allows to change the TODO
  2029. state through the tags interface (*note Setting tags::).
  2030. 
  2031. File: org, Node: Per-file keywords, Next: Faces for TODO keywords, Prev: Fast access to TODO states, Up: TODO extensions
  2032. 5.2.5 Setting up keywords for individual files
  2033. ----------------------------------------------
  2034. It can be very useful to use different aspects of the TODO mechanism in
  2035. different files. For file-local settings, you need to add special lines
  2036. to the file which set the keywords and interpretation for that file
  2037. only. For example, to set one of the two examples discussed above, you
  2038. need one of the following lines, starting in column zero anywhere in the
  2039. file:
  2040. #+SEQ_TODO: TODO FEEDBACK VERIFY | DONE CANCELED
  2041. or
  2042. #+TYP_TODO: Fred Sara Lucy Mike | DONE
  2043. A setup for using several sets in parallel would be:
  2044. #+SEQ_TODO: TODO | DONE
  2045. #+SEQ_TODO: REPORT BUG KNOWNCAUSE | FIXED
  2046. #+SEQ_TODO: | CANCELED
  2047. To make sure you are using the correct keyword, type `#+' into the
  2048. buffer and then use `M-<TAB>' completion.
  2049. Remember that the keywords after the vertical bar (or the last
  2050. keyword if no bar is there) must always mean that the item is DONE
  2051. (although you may use a different word). After changing one of these
  2052. lines, use `C-c C-c' with the cursor still in the line to make the
  2053. changes known to Org-mode(1).
  2054. ---------- Footnotes ----------
  2055. (1) Org-mode parses these lines only when Org-mode is activated
  2056. after visiting a file. `C-c C-c' with the cursor in a line starting
  2057. with `#+' is simply restarting Org-mode for the current buffer.
  2058. 
  2059. File: org, Node: Faces for TODO keywords, Prev: Per-file keywords, Up: TODO extensions
  2060. 5.2.6 Faces for TODO keywords
  2061. -----------------------------
  2062. Org-mode highlights TODO keywords with special faces: `org-todo' for
  2063. keywords indicating that an item still has to be acted upon, and
  2064. `org-done' for keywords indicating that an item is finished. If you
  2065. are using more than 2 different states, you might want to use special
  2066. faces for some of them. This can be done using the variable
  2067. `org-todo-keyword-faces'. For example:
  2068. (setq org-todo-keyword-faces
  2069. '(("TODO" . org-warning)
  2070. ("DEFERRED" . shadow)
  2071. ("CANCELED" . (:foreground "blue" :weight bold))))
  2072. 
  2073. File: org, Node: Progress logging, Next: Priorities, Prev: TODO extensions, Up: TODO items
  2074. 5.3 Progress Logging
  2075. ====================
  2076. Org-mode can automatically record a time stamp and even a note when you
  2077. mark a TODO item as DONE, or even each time you change the state of a
  2078. TODO item.
  2079. * Menu:
  2080. * Closing items:: When was this entry marked DONE?
  2081. * Tracking TODO state changes:: When did the status change?
  2082. 
  2083. File: org, Node: Closing items, Next: Tracking TODO state changes, Prev: Progress logging, Up: Progress logging
  2084. 5.3.1 Closing items
  2085. -------------------
  2086. If you want to keep track of _when_ a certain TODO item was finished,
  2087. turn on logging with(1)
  2088. (setq org-log-done t)
  2089. Then each time you turn a TODO entry into DONE using either `C-c C-t'
  2090. in the Org-mode buffer or `t' in the agenda buffer, a line `CLOSED:
  2091. [timestamp]' will be inserted just after the headline. If you turn the
  2092. entry back into a TODO item through further state cycling, that line
  2093. will be removed again. In the timeline (*note Timeline::) and in the
  2094. agenda (*note Weekly/Daily agenda::), you can then use the `l' key to
  2095. display the TODO items closed on each day, giving you an overview of
  2096. what has been done on a day. If you want to record a note along with
  2097. the timestamp, use(2)
  2098. (setq org-log-done '(done))
  2099. ---------- Footnotes ----------
  2100. (1) The corresponding in-buffer setting is: `#+STARTUP: logdone'.
  2101. You may also set this for the scope of a subtree by adding a `LOGGING'
  2102. property with one or more of the logging keywords in the value.
  2103. (2) The corresponding in-buffer setting is: `#+STARTUP: lognotedone'
  2104. 
  2105. File: org, Node: Tracking TODO state changes, Prev: Closing items, Up: Progress logging
  2106. 5.3.2 Tracking TODO state changes
  2107. ---------------------------------
  2108. When TODO keywords are used as workflow states (*note Workflow
  2109. states::), you might want to keep track of when a state change occurred
  2110. and record a note about this change. With the setting(1)
  2111. (setq org-log-done '(state))
  2112. each state change will prompt you for a note that will be attached to
  2113. the current headline. If you press `C-c C-c' without typing anything
  2114. into the note buffer, only the time of the state change will be noted.
  2115. Very likely you do not want this verbose tracking all the time, so it
  2116. is probably better to configure this behavior with in-buffer options.
  2117. For example, if you are tracking purchases, put these into a separate
  2118. file that contains:
  2119. #+SEQ_TODO: TODO(t) ORDERED(o) INVOICE(i) PAYED(p) | RECEIVED(r)
  2120. #+STARTUP: lognotestate
  2121. If you only need to take a note for some of the states, mark those
  2122. states with an additional `@', like this:
  2123. #+SEQ_TODO: TODO(t) ORDERED(o@) INVOICE(i@) PAYED(p) | RECEIVED(r)
  2124. #+STARTUP: lognotestate
  2125. ---------- Footnotes ----------
  2126. (1) The corresponding in-buffer setting is: `#+STARTUP:
  2127. lognotestate'.
  2128. 
  2129. File: org, Node: Priorities, Next: Breaking down tasks, Prev: Progress logging, Up: TODO items
  2130. 5.4 Priorities
  2131. ==============
  2132. If you use Org-mode extensively, you may end up enough TODO items that
  2133. it starts to make sense to prioritize them. Prioritizing can be done by
  2134. placing a _priority cookie_ into the headline of a TODO item, like this
  2135. *** TODO [#A] Write letter to Sam Fortune
  2136. By default, Org-mode supports three priorities: `A', `B', and `C'. `A'
  2137. is the highest priority. An entry without a cookie is treated as
  2138. priority `B'. Priorities make a difference only in the agenda (*note
  2139. Weekly/Daily agenda::); outside the agenda, they have no inherent
  2140. meaning to Org-mode.
  2141. Priorities can be attached to any outline tree entries; they do not
  2142. need to be TODO items.
  2143. `C-c ,'
  2144. Set the priority of the current headline. The command prompts for
  2145. a priority character `A', `B' or `C'. When you press <SPC>
  2146. instead, the priority cookie is removed from the headline. The
  2147. priorities can also be changed "remotely" from the timeline and
  2148. agenda buffer with the `,' command (*note Agenda commands::).
  2149. `S-<up>'
  2150. `S-<down>'
  2151. Increase/decrease priority of current headline(1). Note that these
  2152. keys are also used to modify time stamps (*note Creating
  2153. timestamps::). Furthermore, these keys are also used by CUA-mode
  2154. (*note Conflicts::).
  2155. You can change the range of allowed priorities by setting the
  2156. variables `org-highest-priority', `org-lowest-priority', and
  2157. `org-default-priority'. For an individual buffer, you may set these
  2158. values (highest, lowest, default) like this (please make sure that the
  2159. highest priority is earlier in the alphabet than the lowest priority):
  2160. #+PRIORITIES: A C B
  2161. ---------- Footnotes ----------
  2162. (1) See also the option `org-priority-start-cycle-with-default''.
  2163. 
  2164. File: org, Node: Breaking down tasks, Next: Checkboxes, Prev: Priorities, Up: TODO items
  2165. 5.5 Breaking tasks down into subtasks
  2166. =====================================
  2167. It is often advisable to break down large tasks into smaller, manageable
  2168. subtasks. You can do this by creating an outline tree below a TODO
  2169. item, with detailed subtasks on the tree(1). Another possibility is
  2170. the use of checkboxes to identify (a hierarchy of) a large number of
  2171. subtasks (*note Checkboxes::).
  2172. ---------- Footnotes ----------
  2173. (1) To keep subtasks out of the global TODO list, see the
  2174. `org-agenda-todo-list-sublevels'.
  2175. 
  2176. File: org, Node: Checkboxes, Prev: Breaking down tasks, Up: TODO items
  2177. 5.6 Checkboxes
  2178. ==============
  2179. Every item in a plain list (*note Plain lists::) can be made into a
  2180. checkbox by starting it with the string `[ ]'. This feature is similar
  2181. to TODO items (*note TODO items::), but is more lightweight.
  2182. Checkboxes are not included into the global TODO list, so they are often
  2183. great to split a task into a number of simple steps. Or you can use
  2184. them in a shopping list. To toggle a checkbox, use `C-c C-c', or use
  2185. the mouse (thanks to Piotr Zielinski's `org-mouse.el').
  2186. Here is an example of a checkbox list.
  2187. * TODO Organize party [3/6]
  2188. - call people [1/3]
  2189. - [ ] Peter
  2190. - [X] Sarah
  2191. - [ ] Sam
  2192. - [X] order food
  2193. - [ ] think about what music to play
  2194. - [X] talk to the neighbors
  2195. The `[3/6]' and `[1/3]' in the first and second line are cookies
  2196. indicating how many checkboxes present in this entry have been checked
  2197. off, and the total number of checkboxes are present. This can give you
  2198. an idea on how many checkboxes remain, even without opening a folded
  2199. entry. The cookies can be placed into a headline or into (the first
  2200. line of) a plain list item. Each cookie covers all checkboxes
  2201. structurally below the headline/item on which the cookie appear. You
  2202. have to insert the cookie yourself by typing either `[/]' or `[%]'.
  2203. With `[/]' you get an `n out of m' result, as in the examples above.
  2204. With `[%]' you get information about the percentage of checkboxes
  2205. checked (in the above example, this would be `[50%]' and `[33%]',
  2206. respectively).
  2207. The following commands work with checkboxes:
  2208. `C-c C-c'
  2209. Toggle checkbox at point. With prefix argument, set it to `[-]',
  2210. which is considered to be an intermediate state.
  2211. `C-c C-x C-b'
  2212. Toggle checkbox at point.
  2213. - If there is an active region, toggle the first checkbox in
  2214. the region and set all remaining boxes to the same status as
  2215. the first. If you want to toggle all boxes in the region
  2216. independently, use a prefix argument.
  2217. - If the cursor is in a headline, toggle checkboxes in the
  2218. region between this headline and the next (so _not_ the
  2219. entire subtree).
  2220. - If there is no active region, just toggle the checkbox at
  2221. point.
  2222. `M-S-<RET>'
  2223. Insert a new item with a checkbox. This works only if the cursor
  2224. is already in a plain list item (*note Plain lists::).
  2225. `C-c #'
  2226. Update the checkbox statistics in the current outline entry. When
  2227. called with a `C-u' prefix, update the entire file. Checkbox
  2228. statistic cookies are updated automatically if you toggle
  2229. checkboxes with `C-c C-c' and make new ones with `M-S-<RET>'. If
  2230. you delete boxes or add/change them by hand, use this command to
  2231. get things back into synch. Or simply toggle any checkbox twice
  2232. with `C-c C-c'.
  2233. 
  2234. File: org, Node: Tags, Next: Properties and columns, Prev: TODO items, Up: Top
  2235. 6 Tags
  2236. ******
  2237. An excellent way to implement labels and contexts for cross-correlating
  2238. information is to assign tags to headlines. Org-mode has extensive
  2239. support for tags.
  2240. Every headline can contain a list of tags; they occur at the end of
  2241. the headline. Tags are normal words containing letters, numbers, `_',
  2242. and `@'. Tags must be preceded and followed by a single colon, e.g.,
  2243. `:WORK:'. Several tags can be specified, as in `:work:URGENT:'.
  2244. * Menu:
  2245. * Tag inheritance:: Tags use the tree structure of the outline
  2246. * Setting tags:: How to assign tags to a headline
  2247. * Tag searches:: Searching for combinations of tags
  2248. 
  2249. File: org, Node: Tag inheritance, Next: Setting tags, Prev: Tags, Up: Tags
  2250. 6.1 Tag inheritance
  2251. ===================
  2252. Tags make use of the hierarchical structure of outline trees. If a
  2253. heading has a certain tag, all subheadings will inherit the tag as
  2254. well. For example, in the list
  2255. * Meeting with the French group :work:
  2256. ** Summary by Frank :boss:notes:
  2257. *** TODO Prepare slides for him :action:
  2258. the final heading will have the tags `:work:', `:boss:', `:notes:', and
  2259. `:action:' even though the final heading is not explicitly marked with
  2260. those tags. When executing tag searches and Org-mode finds that a
  2261. certain headline matches the search criterion, it will not check any
  2262. sublevel headline, assuming that these also match and that the list of
  2263. matches could become very long because of that. If you do want the
  2264. subevels be tested and listed as well, you may set the variable
  2265. `org-tags-match-list-sublevels'. To turn off tag inheritance entirely,
  2266. use the variable `org-use-tag-inheritance'.
  2267. 
  2268. File: org, Node: Setting tags, Next: Tag searches, Prev: Tag inheritance, Up: Tags
  2269. 6.2 Setting tags
  2270. ================
  2271. Tags can simply be typed into the buffer at the end of a headline.
  2272. After a colon, `M-<TAB>' offers completion on tags. There is also a
  2273. special command for inserting tags:
  2274. `C-c C-c'
  2275. Enter new tags for the current headline. Org-mode will either
  2276. offer completion or a special single-key interface for setting
  2277. tags, see below. After pressing <RET>, the tags will be inserted
  2278. and aligned to `org-tags-column'. When called with a `C-u'
  2279. prefix, all tags in the current buffer will be aligned to that
  2280. column, just to make things look nice. TAGS are automatically
  2281. realigned after promotion, demotion, and TODO state changes (*note
  2282. TODO basics::).
  2283. Org will support tag insertion based on a _list of tags_. By
  2284. default this list is constructed dynamically, containing all tags
  2285. currently used in the buffer. You may also globally specify a hard list
  2286. of tags with the variable `org-tag-alist'. Finally you can set the
  2287. default tags for a given file with lines like
  2288. #+TAGS: @work @home @tennisclub
  2289. #+TAGS: laptop car pc sailboat
  2290. If you have globally defined your preferred set of tags using the
  2291. variable `org-tag-alist', but would like to use a dynamic tag list in a
  2292. specific file, add an empty TAGS option line to that file:
  2293. #+TAGS:
  2294. The default support method for entering tags is minibuffer
  2295. completion. However, Org-mode also implements a much better method:
  2296. _fast tag selection_. This method allows to select and deselect tags
  2297. with a single key per tag. To function efficiently, you should assign
  2298. unique keys to most tags. This can be done globally with
  2299. (setq org-tag-alist '(("@work" . ?w) ("@home" . ?h) ("laptop" . ?l)))
  2300. or on a per-file basis with
  2301. #+TAGS: @work(w) @home(h) @tennisclub(t) laptop(l) pc(p)
  2302. You can also group together tags that are mutually exclusive. With
  2303. curly braces(1)
  2304. #+TAGS: { @work(w) @home(h) @tennisclub(t) } laptop(l) pc(p)
  2305. you indicate that at most one of `@work', `@home', and `@tennisclub'
  2306. should be selected.
  2307. Don't forget to press `C-c C-c' with the cursor in one of these lines
  2308. to activate any changes.
  2309. If at least one tag has a selection key, pressing `C-c C-c' will
  2310. automatically present you with a special interface, listing inherited
  2311. tags, the tags of the current headline, and a list of all legal tags
  2312. with corresponding keys(2). In this interface, you can use the
  2313. following keys:
  2314. `a-z...'
  2315. Pressing keys assigned to tags will add or remove them from the
  2316. list of tags in the current line. Selecting a tag in a group of
  2317. mutually exclusive tags will turn off any other tags from that
  2318. group.
  2319. `<TAB>'
  2320. Enter a tag in the minibuffer, even if the tag is not in the
  2321. predefined list. You will be able to complete on all tags present
  2322. in the buffer.
  2323. `<SPC>'
  2324. Clear all tags for this line.
  2325. `<RET>'
  2326. Accept the modified set.
  2327. `C-g'
  2328. Abort without installing changes.
  2329. `q'
  2330. If `q' is not assigned to a tag, it aborts like `C-g'.
  2331. `!'
  2332. Turn off groups of mutually exclusive tags. Use this to (as an
  2333. exception) assign several tags from such a group.
  2334. `C-c'
  2335. Toggle auto-exit after the next change (see below). If you are
  2336. using expert mode, the first `C-c' will display the selection
  2337. window.
  2338. This method lets you assign tags to a headline with very few keys. With
  2339. the above setup, you could clear the current tags and set `@home',
  2340. `laptop' and `pc' tags with just the following keys: `C-c C-c <SPC> h l
  2341. p <RET>'. Switching from `@home' to `@work' would be done with `C-c
  2342. C-c w <RET>' or alternatively with `C-c C-c C-c w'. Adding the
  2343. non-predefined tag `Sarah' could be done with `C-c C-c <TAB> S a r a h
  2344. <RET> <RET>'.
  2345. If you find that most of the time, you need only a single keypress to
  2346. modify your list of tags, set the variable
  2347. `org-fast-tag-selection-single-key'. Then you no longer have to press
  2348. <RET> to exit fast tag selection - it will immediately exit after the
  2349. first change. If you then occasionally need more keys, press `C-c' to
  2350. turn off auto-exit for the current tag selection process (in effect:
  2351. start selection with `C-c C-c C-c' instead of `C-c C-c'). If you set
  2352. the variable to the value `expert', the special window is not even
  2353. shown for single-key tag selection, it comes up only when you press an
  2354. extra `C-c'.
  2355. ---------- Footnotes ----------
  2356. (1) In `org-mode-alist' use `'(:startgroup)' and `'(:endgroup)',
  2357. respectively. Several groups are allowed.
  2358. (2) Keys will automatically be assigned to tags which have no
  2359. configured keys.
  2360. 
  2361. File: org, Node: Tag searches, Prev: Setting tags, Up: Tags
  2362. 6.3 Tag searches
  2363. ================
  2364. Once a system of tags has been set up, it can be used to collect related
  2365. information into special lists.
  2366. `C-c \'
  2367. `C-c / T'
  2368. Create a sparse tree with all headlines matching a tags search.
  2369. With a `C-u' prefix argument, ignore headlines that are not a TODO
  2370. line.
  2371. `C-c a m'
  2372. Create a global list of tag matches from all agenda files. *Note
  2373. Matching tags and properties::.
  2374. `C-c a M'
  2375. Create a global list of tag matches from all agenda files, but
  2376. check only TODO items and force checking subitems (see variable
  2377. `org-tags-match-list-sublevels').
  2378. A tags search string can use Boolean operators `&' for AND and `|'
  2379. for OR. `&' binds more strongly than `|'. Parenthesis are currently
  2380. not implemented. A tag may also be preceded by `-', to select against
  2381. it, and `+' is syntactic sugar for positive selection. The AND
  2382. operator `&' is optional when `+' or `-' is present. Examples:
  2383. `+work-boss'
  2384. Select headlines tagged `:work:', but discard those also tagged
  2385. `:boss:'.
  2386. `work|laptop'
  2387. Selects lines tagged `:work:' or `:laptop:'.
  2388. `work|laptop&night'
  2389. Like before, but require the `:laptop:' lines to be tagged also
  2390. `night'.
  2391. If you are using multi-state TODO keywords (*note TODO
  2392. extensions::), it can be useful to also match on the TODO keyword.
  2393. This can be done by adding a condition after a slash to a tags match.
  2394. The syntax is similar to the tag matches, but should be applied with
  2395. consideration: For example, a positive selection on several TODO
  2396. keywords can not meaningfully be combined with boolean AND. However,
  2397. _negative selection_ combined with AND can be meaningful. To make sure
  2398. that only lines are checked that actually have any TODO keyword, use
  2399. `C-c a M', or equivalently start the todo part after the slash with `!'.
  2400. Examples:
  2401. `work/WAITING'
  2402. Select `:work:'-tagged TODO lines with the specific TODO keyword
  2403. `WAITING'.
  2404. `work/!-WAITING-NEXT'
  2405. Select `:work:'-tagged TODO lines that are neither `WAITING' nor
  2406. `NEXT'
  2407. `work/+WAITING|+NEXT'
  2408. Select `:work:'-tagged TODO lines that are either `WAITING' or
  2409. `NEXT'.
  2410. Any element of the tag/todo match can be a regular expression - in
  2411. this case it must be enclosed in curly braces. For example,
  2412. `work+{^boss.*}' matches headlines that contain the tag `work' and any
  2413. tag starting with `boss'.
  2414. You can also require a headline to be of a certain level or
  2415. category, by writing instead of any TAG an expression like `LEVEL=3' or
  2416. `CATEGORY="work"', respectively. For example, a search
  2417. `+LEVEL=3+boss/-DONE' lists all level three headlines that have the tag
  2418. `boss' and are _not_ marked with the todo keyword DONE.
  2419. 
  2420. File: org, Node: Properties and columns, Next: Dates and times, Prev: Tags, Up: Top
  2421. 7 Properties and Columns
  2422. ************************
  2423. Properties are a set of key-value pairs associated with an entry. There
  2424. are two main applications for properties in Org-mode. First, properties
  2425. are like tags, but with a value. Second, you can use properties to
  2426. implement (very basic) database capabilities in an Org-mode buffer. For
  2427. an example of the first application, imagine maintaining a file where
  2428. you document bugs and plan releases of a piece of software. Instead of
  2429. using tags like `:release_1:', `:release_2:', one can use a property,
  2430. say `Release', that in different subtrees has different values, such as
  2431. `1.0' or `2.0'. For an example of the second application of
  2432. properties, imagine keeping track of one's music CD's, where properties
  2433. could be things such as the album artist, date of release, number of
  2434. tracks, and so on.
  2435. Properties can be conveiently edited and viewed in column view
  2436. (*note Column view::).
  2437. are like tags, but with a value. For example, in a file where you
  2438. document bugs and plan releases of a piece of software, instead of using
  2439. tags like `:release_1:', `:release_2:', it can be more efficient to use
  2440. a property `Release' with a value `1.0' or `2.0'. Second, you can use
  2441. properties to implement (very basic) database capabilities in an
  2442. Org-mode buffer, for example to create a list of Music CD's you own.
  2443. You can edit and view properties conveniently in column view (*note
  2444. Column view::).
  2445. * Menu:
  2446. * Property syntax:: How properties are spelled out
  2447. * Special properties:: Access to other Org-mode features
  2448. * Property searches:: Matching property values
  2449. * Property inheritance:: Passing values down the tree
  2450. * Column view:: Tabular viewing and editing
  2451. * Property API:: Properties for Lisp programmers
  2452. 
  2453. File: org, Node: Property syntax, Next: Special properties, Prev: Properties and columns, Up: Properties and columns
  2454. 7.1 Property Syntax
  2455. ===================
  2456. Properties are key-value pairs. They need to be inserted into a special
  2457. drawer (*note Drawers::) with the name `PROPERTIES'. Each property is
  2458. specified on a single line, with the key (surrounded by colons) first,
  2459. and the value after it. Here is an example:
  2460. * CD collection
  2461. ** Classic
  2462. *** Goldberg Variations
  2463. :PROPERTIES:
  2464. :Title: Goldberg Variations
  2465. :Composer: J.S. Bach
  2466. :Artist: Glen Gould
  2467. :Publisher: Deutsche Grammphon
  2468. :NDisks: 1
  2469. :END:
  2470. You may define the allowed values for a particular property `Xyz' by
  2471. setting a property `Xyz_ALL'. This special property is _inherited_, so
  2472. if you set it in a level 1 entry, it will apply to the entire tree.
  2473. When allowed values are defined, setting the corresponding property
  2474. becomes easier and is less prone to typing errors. For the example
  2475. with the CD collection, we can predefine publishers and the number of
  2476. disks in a box like this:
  2477. * CD collection
  2478. :PROPERTIES:
  2479. :NDisks_ALL: 1 2 3 4
  2480. :Publisher_ALL: "Deutsche Grammophon" Phillips EMI
  2481. :END:
  2482. If you want to set properties that can be inherited by any entry in a
  2483. file, use a line like
  2484. #+PROPERTY: NDisks_ALL 1 2 3 4
  2485. Property values set with the global variable `org-global-properties'
  2486. can be inherited by all entries in all Org-mode files.
  2487. The following commands help to work with properties:
  2488. `M-<TAB>'
  2489. After an initial colon in a line, complete property keys. All
  2490. keys used in the current file will be offered as possible
  2491. completions.
  2492. `C-c C-x p'
  2493. Set a property. This prompts for a property name and a value. If
  2494. necessary, the property drawer is created as well.
  2495. `M-x org-insert-property-drawer'
  2496. Insert a property drawer into the current entry. The drawer will
  2497. be inserted early in the entry, but after the lines with planning
  2498. information like deadlines.
  2499. `C-c C-c'
  2500. With the cursor in a property drawer, this executes property
  2501. commands.
  2502. `C-c C-c s'
  2503. Set a property in the current entry. Both the property and the
  2504. value can be inserted using completion.
  2505. `S-<left>/<right>'
  2506. Switch property at point to the next/previous allowed value.
  2507. `C-c C-c d'
  2508. Remove a property from the current entry.
  2509. `C-c C-c D'
  2510. Globally remove a property, from all entries in the current file.
  2511. `C-c C-c c'
  2512. Compute the property at point, using the operator and scope from
  2513. the nearest column format definition.
  2514. 
  2515. File: org, Node: Special properties, Next: Property searches, Prev: Property syntax, Up: Properties and columns
  2516. 7.2 Special Properties
  2517. ======================
  2518. Special properties provide alternative access method to Org-mode
  2519. features discussed in the previous chapters, like the TODO state or the
  2520. priority of an entry. This interface exists so that you can include
  2521. these states into columns view (*note Column view::), or to use them in
  2522. queries. The following property names are special and should not be
  2523. used as keys in the properties drawer:
  2524. TODO The TODO keyword of the entry.
  2525. TAGS The tags defined directly in the headline.
  2526. ALLTAGS All tags, including inherited ones.
  2527. PRIORITY The priority of the entry, a string with a single letter.
  2528. DEADLINE The deadline time string, without the angular brackets.
  2529. SCHEDULED The scheduling time stamp, without the angular brackets.
  2530. TIMESTAMP The first keyword-less time stamp in the entry.
  2531. TIMESTAMP_IA The first inactive time stamp in the entry.
  2532. 
  2533. File: org, Node: Property searches, Next: Property inheritance, Prev: Special properties, Up: Properties and columns
  2534. 7.3 Property searches
  2535. =====================
  2536. To create sparse trees and special lists with selection based on
  2537. properties, the same commands are used as for tag searches (*note Tag
  2538. searches::), and the same logic applies. For example, a search string
  2539. +work-boss+PRIORITY="A"+Coffee="unlimited"+With={Sarah\|Denny}
  2540. finds entries tagged `:work:' but not `:boss:', which also have a
  2541. priority value `A', a `:Coffee:' property with the value `unlimited',
  2542. and a `:With:' property that is matched by the regular expression
  2543. `Sarah\|Denny'.
  2544. You can configure Org-mode to use property inheritance during a
  2545. search, see *Note Property inheritance:: for details.
  2546. There is also a special command for creating sparse trees based on a
  2547. single property:
  2548. `C-c / p'
  2549. Create a sparse tree based on the value of a property. This first
  2550. prompts for the name of a property, and then for a value. A
  2551. sparse tree is created with all entries that define this property
  2552. with the given value. If you enclose the value into curly braces,
  2553. it is interpreted as a regular expression and matched against the
  2554. property values.
  2555. 
  2556. File: org, Node: Property inheritance, Next: Column view, Prev: Property searches, Up: Properties and columns
  2557. 7.4 Property Inheritance
  2558. ========================
  2559. The outline structure of Org-mode documents lends itself for an
  2560. inheritance model of properties: If the parent in a tree has a certain
  2561. property, the children can inherit this property. Org-mode does not
  2562. turn this on by default, because it can slow down property searches
  2563. significantly and is often not needed. However, if you find inheritance
  2564. useful, you can turn it on by setting the variable
  2565. `org-use-property-inheritance'. It may be set to `t', to make all
  2566. properties inherited from the parent, or to a list of properties that
  2567. should be inherited.
  2568. Org-mode has a few properties for which inheritance is hard-coded, at
  2569. least for the special applications for which they are used:
  2570. `COLUMNS'
  2571. The column property defines the format of column view (*note
  2572. Column view::). It is inherited in the sense that the level where
  2573. a `COLUMNS' property is defined is used as the starting point for a
  2574. column view table, independently of the location in the subtree
  2575. from where columns view is turned on.
  2576. `CATEGORY'
  2577. For agenda view, a category set through a `CATEGORY' property
  2578. applies to the entire subtree.
  2579. `ARCHIVE'
  2580. For archiving, the `ARCHIVE' property may define the archive
  2581. location for the entire subtree (*note Moving subtrees::).
  2582. 
  2583. File: org, Node: Column view, Next: Property API, Prev: Property inheritance, Up: Properties and columns
  2584. 7.5 Column View
  2585. ===============
  2586. A great way to view and edit properties in an outline tree is _column
  2587. view_. In column view, each outline item is turned into a table row.
  2588. Columns in this table provide access to properties of the entries.
  2589. Org-mode implements columns by overlaying a tabular structure over the
  2590. headline of each item. While the headlines have been turned into a
  2591. table row, you can still change the visibility of the outline tree.
  2592. For example, you get a compact table by switching to CONTENTS view
  2593. (`S-<TAB> S-<TAB>', or simply `c' while column view is active), but you
  2594. can still open, read, and edit the entry below each headline. Or, you
  2595. can switch to column view after executing a sparse tree command and in
  2596. this way get a table only for the selected items. Column view also
  2597. works in agenda buffers (*note Agenda views::) where queries have
  2598. collected selected items, possibly from a number of files.
  2599. * Menu:
  2600. * Defining columns:: The COLUMNS format property
  2601. * Using column view:: How to create and use column view
  2602. * Capturing Column View:: A dynamic block for column view
  2603. 
  2604. File: org, Node: Defining columns, Next: Using column view, Prev: Column view, Up: Column view
  2605. 7.5.1 Defining Columns
  2606. ----------------------
  2607. Setting up a column view first requires defining the columns. This is
  2608. done by defining a column format line.
  2609. * Menu:
  2610. * Scope of column definitions:: Where defined, where valid?
  2611. * Column attributes:: Appearance and content of a column
  2612. 
  2613. File: org, Node: Scope of column definitions, Next: Column attributes, Prev: Defining columns, Up: Defining columns
  2614. 7.5.1.1 Scope of column definitions
  2615. ...................................
  2616. To define a column format for an entire file, use a line like
  2617. #+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
  2618. To specify a format that only applies to a specific tree, add a
  2619. COLUMNS property to the top node of that tree, for example
  2620. ** Top node for columns view
  2621. :PROPERTIES:
  2622. :COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
  2623. :END:
  2624. If a `COLUMNS' property is present in an entry, it defines columns
  2625. for the entry itself, and for the entire subtree below it. Since the
  2626. column definition is part of the hierarchical structure of the document,
  2627. you can define columns on level 1 that are general enough for all
  2628. sublevels, and more specific columns further down, when you edit a
  2629. deeper part of the tree.
  2630. 
  2631. File: org, Node: Column attributes, Prev: Scope of column definitions, Up: Defining columns
  2632. 7.5.1.2 Column attributes
  2633. .........................
  2634. A column definition sets the attributes of a column. The general
  2635. definition looks like this:
  2636. %[width]property[(title)][{summary-type}]
  2637. Except for the percent sign and the property name, all items are
  2638. optional. The individual parts have the following meaning:
  2639. width An integer specifying the width of the column in characters.
  2640. If omitted, the width will be determined automatically.
  2641. property The property that should be edited in this column.
  2642. (title) The header text for the column. If omitted, the
  2643. property name is used.
  2644. {summary-type} The summary type. If specified, the column values for
  2645. parent nodes are computed from the children.
  2646. Supported summary types are:
  2647. {+} Sum numbers in this column.
  2648. {+;%.1f} Like `+', but format result with `%.1f'.
  2649. {$} Currency, short for `+;%.2f'.
  2650. {:} Sum times, HH:MM:SS, plain numbers are hours.
  2651. {X} Checkbox status, [X] if all children are [X].
  2652. Here is an example for a complete columns definition, along with allowed
  2653. values.
  2654. :COLUMNS: %20ITEM %9Approved(Approved?){X} %Owner %11Status %10Time_Spent{:}
  2655. :Owner_ALL: Tammy Mark Karl Lisa Don
  2656. :Status_ALL: "In progress" "Not started yet" "Finished" ""
  2657. :Approved_ALL: "[ ]" "[X]"
  2658. The first column, `%25ITEM', means the first 25 characters of the
  2659. item itself, i.e. of the headline. You probably always should start the
  2660. column definition with the ITEM specifier. The other specifiers create
  2661. columns `Owner' with a list of names as allowed values, for `Status'
  2662. with four different possible values, and for a checkbox field
  2663. `Approved'. When no width is given after the `%' character, the column
  2664. will be exactly as wide as it needs to be in order to fully display all
  2665. values. The `Approved' column does have a modified title (`Approved?',
  2666. with a question mark). Summaries will be created for the `Time_Spent'
  2667. column by adding time duration expressions like HH:MM, and for the
  2668. `Approved' column, by providing an `[X]' status if all children have
  2669. been checked.
  2670. 
  2671. File: org, Node: Using column view, Next: Capturing Column View, Prev: Defining columns, Up: Column view
  2672. 7.5.2 Using Column View
  2673. -----------------------
  2674. Turning column view on and off
  2675. ..............................
  2676. `C-c C-x C-c'
  2677. Create the column view for the local environment. This command
  2678. searches the hierarchy, up from point, for a `COLUMNS' property
  2679. that defines a format. When one is found, the column view table
  2680. is established for the entire tree, starting from the entry that
  2681. contains the `COLUMNS' property. If none is found, the format is
  2682. taken from the `#+COLUMNS' line or from the variable
  2683. `org-columns-default-format', and column view is established for
  2684. the current entry and its subtree.
  2685. `q'
  2686. Exit column view.
  2687. Editing values
  2688. ..............
  2689. `<left> <right> <up> <down>'
  2690. Move through the column view from field to field.
  2691. `S-<left>/<right>'
  2692. Switch to the next/previous allowed value of the field. For this,
  2693. you have to have specified allowed values for a property.
  2694. `n / p'
  2695. Same as `S-<left>/<right>'
  2696. `e'
  2697. Edit the property at point. For the special properties, this will
  2698. invoke the same interface that you normally use to change that
  2699. property. For example, when editing a TAGS property, the tag
  2700. completion or fast selection interface will pop up.
  2701. `C-c C-c'
  2702. When there is a checkbox at point, toggle it.
  2703. `v'
  2704. View the full value of this property. This is useful if the width
  2705. of the column is smaller than that of the value.
  2706. `a'
  2707. Edit the list of allowed values for this property. If the list is
  2708. found in the hierarchy, the modified values is stored there. If
  2709. no list is found, the new value is stored in the first entry that
  2710. is part of the current column view.
  2711. Modifying the table structure
  2712. .............................
  2713. `< / >'
  2714. Make the column narrower/wider by one character.
  2715. `S-M-<right>'
  2716. Insert a new column, to the right of the current column.
  2717. `S-M-<left>'
  2718. Delete the current column.
  2719. 
  2720. File: org, Node: Capturing Column View, Prev: Using column view, Up: Column view
  2721. 7.5.3 Capturing Column View
  2722. ---------------------------
  2723. Since column view is just an overlay over a buffer, it cannot be
  2724. exported or printed directly. If you want to capture a column view, use
  2725. the dynamic block (*note Dynamic blocks::). The frame of this block
  2726. looks like this:
  2727. * The column view
  2728. #+BEGIN: columnview :hlines 1 :id "label"
  2729. #+END:
  2730. This dynamic block has the following parameters:
  2731. `:id'
  2732. This is most important parameter. Column view is a feature that is
  2733. often localized to a certain (sub)tree, and the capture block
  2734. might be in a different location in the file. To identify the
  2735. tree whose view to capture, you can use 3 values:
  2736. local use the tree in which the capture block is located
  2737. global make a global view, including all headings in the file
  2738. "label" call column view in the tree that has and `:ID:'
  2739. property with the value label
  2740. `:hlines'
  2741. When `t', insert a hline after every line. When a number N, insert
  2742. a hline before each headline with level `<= N'.
  2743. `:vlines'
  2744. When set to `t', enforce column groups to get vertical lines.
  2745. The following commands insert or update the dynamic block:
  2746. `C-c C-x r'
  2747. Insert a dynamic block capturing a column view. You will be
  2748. prompted for the scope or id of the view.
  2749. `C-c C-c'
  2750. `C-c C-x C-u'
  2751. Update dynamical block at point. The cursor needs to be in the
  2752. `#+BEGIN' line of the dynamic block.
  2753. `C-u C-c C-x C-u'
  2754. Update all dynamic blocks (*note Dynamic blocks::). This is
  2755. useful if you have several clocktable blocks in a buffer.
  2756. 
  2757. File: org, Node: Property API, Prev: Column view, Up: Properties and columns
  2758. 7.6 The Property API
  2759. ====================
  2760. There is a full API for accessing and changing properties. This API can
  2761. be used by Emacs Lisp programs to work with properties and to implement
  2762. features based on them. For more information see *Note Using the
  2763. property API::.
  2764. 
  2765. File: org, Node: Dates and times, Next: Remember, Prev: Properties and columns, Up: Top
  2766. 8 Dates and Times
  2767. *****************
  2768. To assist project planning, TODO items can be labeled with a date and/or
  2769. a time. The specially formatted string carrying the date and time
  2770. information is called a _timestamp_ in Org-mode. This may be a little
  2771. confusing because timestamp is often used as indicating when something
  2772. was created or last changed. However, in Org-mode this term is used in
  2773. a much wider sense.
  2774. * Menu:
  2775. * Time stamps:: Assigning a time to a tree entry
  2776. * Creating timestamps:: Commands which insert timestamps
  2777. * Deadlines and scheduling:: Planning your work
  2778. * Clocking work time::
  2779. 
  2780. File: org, Node: Time stamps, Next: Creating timestamps, Prev: Dates and times, Up: Dates and times
  2781. 8.1 Time stamps, deadlines and scheduling
  2782. =========================================
  2783. A time stamp is a specification of a date (possibly with time or a range
  2784. of times) in a special format, either `<2003-09-16 Tue>' or
  2785. `<2003-09-16 Tue 09:39>' or `<2003-09-16 Tue 12:00-12:30>'(1). A time
  2786. stamp can appear anywhere in the headline or body of an org-tree entry.
  2787. Its presence causes entries to be shown on specific dates in the agenda
  2788. (*note Weekly/Daily agenda::). We distinguish:
  2789. PLAIN TIME STAMP; EVENT; APPOINTMENT
  2790. A simple time stamp just assigns a date/time to an item. This is
  2791. just like writing down an appointment or event in a paper agenda.
  2792. In the timeline and agenda displays, the headline of an entry
  2793. associated with a plain time stamp will be shown exactly on that
  2794. date.
  2795. * Meet Peter at the movies <2006-11-01 Wed 19:15>
  2796. * Discussion on climate change <2006-11-02 Thu 20:00-22:00>
  2797. TIME STAMP WITH REPEATER INTERVAL
  2798. A time stamp may contain a _repeater interval_, indicating that it
  2799. applies not only on the given date, but again and again after a
  2800. certain interval of N days (d), weeks (w), months(m), or years(y).
  2801. The following will show up in the agenda every Wednesday:
  2802. * Pick up Sam at school <2007-05-16 Wed 12:30 +1w>
  2803. DIARY-STYLE SEXP ENTRIES
  2804. For more complex date specifications, Org-mode supports using the
  2805. special sexp diary entries implemented in the Emacs calendar/diary
  2806. package. For example
  2807. * The nerd meeting on every 2nd Thursday of the month
  2808. <%%(diary-float t 4 2)>
  2809. TIME/DATE RANGE
  2810. Two time stamps connected by `--' denote a range. The headline
  2811. will be shown on the first and last day of the range, and on any
  2812. dates that are displayed and fall in the range. Here is an
  2813. example:
  2814. ** Meeting in Amsterdam
  2815. <2004-08-23 Mon>--<2004-08-26 Thu>
  2816. INACTIVE TIME STAMP
  2817. Just like a plain time stamp, but with square brackets instead of
  2818. angular ones. These time stamps are inactive in the sense that
  2819. they do _not_ trigger an entry to show up in the agenda.
  2820. * Gillian comes late for the fifth time [2006-11-01 Wed]
  2821. ---------- Footnotes ----------
  2822. (1) This is the standard ISO date/time format. To use an
  2823. alternative format, see *Note Custom time format::.
  2824. 
  2825. File: org, Node: Creating timestamps, Next: Deadlines and scheduling, Prev: Time stamps, Up: Dates and times
  2826. 8.2 Creating timestamps
  2827. =======================
  2828. For Org-mode to recognize time stamps, they need to be in the specific
  2829. format. All commands listed below produce time stamps in the correct
  2830. format.
  2831. `C-c .'
  2832. Prompt for a date and insert a corresponding time stamp. When the
  2833. cursor is at a previously used time stamp, it is updated to NOW.
  2834. When this command is used twice in succession, a time range is
  2835. inserted.
  2836. `C-u C-c .'
  2837. Like `C-c .', but use the alternative format which contains date
  2838. and time. The default time can be rounded to multiples of 5
  2839. minutes, see the option `org-time-stamp-rounding-minutes'.
  2840. `C-c !'
  2841. Like `C-c .', but insert an inactive time stamp that will not cause
  2842. an agenda entry.
  2843. `C-c <'
  2844. Insert a time stamp corresponding to the cursor date in the
  2845. Calendar.
  2846. `C-c >'
  2847. Access the Emacs calendar for the current date. If there is a
  2848. timestamp in the current line, goto the corresponding date instead.
  2849. `C-c C-o'
  2850. Access the agenda for the date given by the time stamp or -range at
  2851. point (*note Weekly/Daily agenda::).
  2852. `S-<left>'
  2853. `S-<right>'
  2854. Change date at cursor by one day. These key bindings conflict with
  2855. CUA-mode (*note Conflicts::).
  2856. `S-<up>'
  2857. `S-<down>'
  2858. Change the item under the cursor in a timestamp. The cursor can
  2859. be on a year, month, day, hour or minute. Note that if the cursor
  2860. is in a headline and not at a time stamp, these same keys modify
  2861. the priority of an item. (*note Priorities::). The key bindings
  2862. also conflict with CUA-mode (*note Conflicts::).
  2863. `C-c C-y'
  2864. Evaluate a time range by computing the difference between start and
  2865. end. With prefix arg, insert result after the time range (in a
  2866. table: into the following column).
  2867. * Menu:
  2868. * The date/time prompt:: How org-mode helps you entering date and time
  2869. * Custom time format:: Making dates look differently
  2870. 
  2871. File: org, Node: The date/time prompt, Next: Custom time format, Prev: Creating timestamps, Up: Creating timestamps
  2872. 8.2.1 The date/time prompt
  2873. --------------------------
  2874. When Org-mode prompts for a date/time, the default is shown as an ISO
  2875. date, and the prompt therefore seems to ask for an ISO date. But it
  2876. will in fact accept any string containing some date and/or time
  2877. information, and it is really smart about interpreting your input. You
  2878. can, for example, use `C-y' to paste a (possibly multi-line) string
  2879. copied from an email message. Org-mode will find whatever information
  2880. is in there and derive anything you have not specified from the
  2881. _default date and time_. The default is usually the current date and
  2882. time, but when modifying an existing time stamp, or when entering the
  2883. second stamp of a range, it is taken from the stamp in the buffer.
  2884. When filling in information, Org-mode assumes that most of the time you
  2885. will want to enter a date in the future: If you omit the month/year and
  2886. the given day/month is before today, it will assume that you mean a
  2887. future date(1).
  2888. For example, lets assume that today is June 13, 2006. Here is how
  2889. various inputs will be interpreted, the items filled in by Org-mode are
  2890. in bold.
  2891. 3-2-5 --> 2003-02-05
  2892. 14 --> 2006-06-14
  2893. 12 --> 2006-07-12
  2894. Fri --> nearest Friday (defaultdate or later)
  2895. sep 15 --> 2006-11-15
  2896. feb 15 --> 2007-02-15
  2897. sep 12 9 --> 2009-09-12
  2898. 12:45 --> 2006-06-13 12:45
  2899. 22 sept 0:34 --> 2006-09-22 0:34
  2900. Furthermore you can specify a relative date by giving, as the
  2901. _first_ thing in the input: a plus/minus sign, a number and a letter
  2902. [dwmy] to indicate change in days weeks, months, years. With a single
  2903. plus or minus, the date is always relative to today. With a double
  2904. plus or minus, it is relative to the default date. If instead of a
  2905. single letter, you use the abbreviation of day name, the date will be
  2906. the nth such day. E.g.
  2907. +4d --> four days from today
  2908. +4 --> same as above
  2909. +2w --> two weeks from today
  2910. ++5 --> five days from default date
  2911. +2tue --> second tuesday from now.
  2912. The function understands English month and weekday abbreviations. If
  2913. you want to use unabbreviated names and/or other languages, configure
  2914. the variables `parse-time-months' and `parse-time-weekdays'.
  2915. Parallel to the minibuffer prompt, a calendar is popped up(2). When
  2916. you exit the date prompt, either by clicking on a date in the calendar,
  2917. or by pressing <RET>, the date selected in the calendar will be
  2918. combined with the information entered at the prompt. You can control
  2919. the calendar fully from the minibuffer:
  2920. > / < Scroll calendar forward/backward by one month.
  2921. mouse-1 Select date by clicking on it.
  2922. S-<right>/<left> One day forward/backward.
  2923. S-<down>/<up> One week forward/backward.
  2924. M-S-<right>/<left> One month forward/backward.
  2925. <RET> Choose date in calendar.
  2926. The actions of the date/time prompt may seem complex, but I asure you
  2927. they will grow on you. To help you understand what is going on, the
  2928. current interpretation of your input will be displayed live in the
  2929. minibuffer(3).
  2930. ---------- Footnotes ----------
  2931. (1) See the variable `org-read-date-prefer-future'.
  2932. (2) If you don't need/want the calendar, configure the variable
  2933. `org-popup-calendar-for-date-prompt'.
  2934. (3) If you find this distracting, turn the display of with
  2935. `org-read-date-display-live'.
  2936. 
  2937. File: org, Node: Custom time format, Prev: The date/time prompt, Up: Creating timestamps
  2938. 8.2.2 Custom time format
  2939. ------------------------
  2940. Org-mode uses the standard ISO notation for dates and times as it is
  2941. defined in ISO 8601. If you cannot get used to this and require another
  2942. representation of date and time to keep you happy, you can get it by
  2943. customizing the variables `org-display-custom-times' and
  2944. `org-time-stamp-custom-formats'.
  2945. `C-c C-x C-t'
  2946. Toggle the display of custom formats for dates and times.
  2947. Org-mode needs the default format for scanning, so the custom date/time
  2948. format does not _replace_ the default format - instead it is put _over_
  2949. the default format using text properties. This has the following
  2950. consequences:
  2951. * You cannot place the cursor onto a time stamp anymore, only before
  2952. or after.
  2953. * The `S-<up>/<down>' keys can no longer be used to adjust each
  2954. component of a time stamp. If the cursor is at the beginning of
  2955. the stamp, `S-<up>/<down>' will change the stamp by one day, just
  2956. like `S-<left>/<right>'. At the end of the stamp, the time will
  2957. be changed by one minute.
  2958. * If the time stamp contains a range of clock times or a repeater,
  2959. these will not be overlayed, but remain in the buffer as they were.
  2960. * When you delete a time stamp character-by-character, it will only
  2961. disappear from the buffer after _all_ (invisible) characters
  2962. belonging to the ISO timestamp have been removed.
  2963. * If the custom time stamp format is longer than the default and you
  2964. are using dates in tables, table alignment will be messed up. If
  2965. the custom format is shorter, things do work as expected.
  2966. 
  2967. File: org, Node: Deadlines and scheduling, Next: Clocking work time, Prev: Creating timestamps, Up: Dates and times
  2968. 8.3 Deadlines and Scheduling
  2969. ============================
  2970. A time stamp may be preceded by special keywords to facilitate planning:
  2971. DEADLINE
  2972. Meaning: the task (most likely a TODO item, though not
  2973. necessarily) is supposed to be finished on that date.
  2974. On the deadline date, the task will be listed in the agenda. In
  2975. addition, the agenda for _today_ will carry a warning about the
  2976. approaching or missed deadline, starting
  2977. `org-deadline-warning-days' before the due date, and continuing
  2978. until the entry is marked DONE. An example:
  2979. *** TODO write article about the Earth for the Guide
  2980. The editor in charge is [[bbdb:Ford Prefect]]
  2981. DEADLINE: <2004-02-29 Sun>
  2982. You can specify a different lead time for warnings for a specific
  2983. deadlines using the following syntax. Here is an example with a
  2984. warning period of 5 days `DEADLINE: <2004-02-29 Sun -5d>'.
  2985. SCHEDULED
  2986. Meaning: you are planning to start working on that task on the
  2987. given date.
  2988. The headline will be listed under the given date(1). In addition,
  2989. a reminder that the scheduled date has passed will be present in
  2990. the compilation for _today_, until the entry is marked DONE.
  2991. I.e., the task will automatically be forwarded until completed.
  2992. *** TODO Call Trillian for a date on New Years Eve.
  2993. SCHEDULED: <2004-12-25 Sat>
  2994. Important: Scheduling an item in Org-mode should not be understood
  2995. in the same way that we understand scheduling a meeting. Setting
  2996. a date for a meeting is just a simple appointment, you should mark
  2997. this entry with a simple plain time stamp, to get this item shown
  2998. on the date where it applies. This is a frequent
  2999. mis-understanding from Org-users. In Org-mode, scheduling means
  3000. setting a date when you want to start working on an action item.
  3001. * Menu:
  3002. * Inserting deadline/schedule:: Planning items
  3003. * Repeated tasks:: Items that show up again and again
  3004. ---------- Footnotes ----------
  3005. (1) It will still be listed on that date after it has been marked
  3006. DONE. If you don't like this, set the variable
  3007. `org-agenda-skip-scheduled-if-done'.
  3008. 
  3009. File: org, Node: Inserting deadline/schedule, Next: Repeated tasks, Prev: Deadlines and scheduling, Up: Deadlines and scheduling
  3010. 8.3.1 Inserting deadline/schedule
  3011. ---------------------------------
  3012. The following commands allow to quickly insert a deadline or to schedule
  3013. an item:
  3014. `C-c C-d'
  3015. Insert `DEADLINE' keyword along with a stamp. The insertion will
  3016. happen in the line directly following the headline. When called
  3017. with a prefix arg, an existing deadline will be removed from the
  3018. entry.
  3019. `C-c / d'
  3020. Create a sparse tree with all deadlines that are either past-due,
  3021. or which will become due within `org-deadline-warning-days'. With
  3022. `C-u' prefix, show all deadlines in the file. With a numeric
  3023. prefix, check that many days. For example, `C-1 C-c / d' shows
  3024. all deadlines due tomorrow.
  3025. `C-c C-s'
  3026. Insert `SCHEDULED' keyword along with a stamp. The insertion will
  3027. happen in the line directly following the headline. Any CLOSED
  3028. timestamp will be removed. When called with a prefix argument,
  3029. remove the scheduling date from the entry.
  3030. 
  3031. File: org, Node: Repeated tasks, Prev: Inserting deadline/schedule, Up: Deadlines and scheduling
  3032. 8.3.2 Repeated Tasks
  3033. --------------------
  3034. Some tasks need to be repeated again and again. Org-mode helps to
  3035. organize such tasks using a so-called repeater in a DEADLINE or
  3036. SCHEDULED time stamp. In the following example
  3037. ** TODO Pay the rent
  3038. DEADLINE: <2005-10-01 Sat +1m>
  3039. the `+1m' is a repeater; the intended interpretation is that the
  3040. task has a deadline on <2005-10-01> and repeats itself every (one) month
  3041. starting from that time.
  3042. Deadlines and scheduled items produce entries in the agenda when they
  3043. are over-due, so it is important to be able to mark such an entry as
  3044. completed once you have done so. When you mark a DEADLINE or a SCHEDULE
  3045. with the todo keyword DONE, it will no longer produce entries in the
  3046. agenda. The problem with this is, however, that then also the _next_
  3047. instance of the repeated entry will not be active. Org-mode deals with
  3048. this in the following way: When you try to mark such an entry DONE
  3049. (using `C-c C-t'), it will shift the base date of the repeating time
  3050. stamp by the repeater interval, and immediately set the entry state
  3051. back to TODO. In the example above, setting the state to DONE would
  3052. actually switch the date like this:
  3053. ** TODO Pay the rent
  3054. DEADLINE: <2005-11-01 Tue +1m>
  3055. You will also be prompted for a note(1) that will be put under the
  3056. DEADLINE line to keep a record that you actually acted on the previous
  3057. instance of this deadline.
  3058. As a consequence of shifting the base date, this entry will no
  3059. longer be visible in the agenda when checking past dates, but all
  3060. future instances will be visible.
  3061. You may have both scheduling and deadline information for a specific
  3062. task - just make sure that the repeater intervals on both are the same.
  3063. ---------- Footnotes ----------
  3064. (1) You can change this using the option `org-log-repeat', or the
  3065. `#+STARTUP' options `logrepeat' and `nologrepeat'.
  3066. 
  3067. File: org, Node: Clocking work time, Prev: Deadlines and scheduling, Up: Dates and times
  3068. 8.4 Clocking work time
  3069. ======================
  3070. Org-mode allows you to clock the time you spent on specific tasks in a
  3071. project. When you start working on an item, you can start the clock.
  3072. When you stop working on that task, or when you mark the task done, the
  3073. clock is stopped and the corresponding time interval is recorded. It
  3074. also computes the total time spent on each subtree of a project.
  3075. `C-c C-x C-i'
  3076. Start the clock on the current item (clock-in). This inserts the
  3077. CLOCK keyword together with a timestamp. If this is not the first
  3078. clocking of this item, the multiple CLOCK lines will be wrapped
  3079. into a `:CLOCK:' drawer (see also the variable
  3080. `org-clock-into-drawer'.
  3081. `C-c C-x C-o'
  3082. Stop the clock (clock-out). The inserts another timestamp at the
  3083. same location where the clock was last started. It also directly
  3084. computes the resulting time in inserts it after the time range as
  3085. `=> HH:MM'. See the variable `org-log-done' for the possibility to
  3086. record an additional note together with the clock-out time
  3087. stamp(1).
  3088. `C-c C-y'
  3089. Recompute the time interval after changing one of the time stamps.
  3090. This is only necessary if you edit the time stamps directly. If
  3091. you change them with `S-<cursor>' keys, the update is automatic.
  3092. `C-c C-t'
  3093. Changing the TODO state of an item to DONE automatically stops the
  3094. clock if it is running in this same item.
  3095. `C-c C-x C-x'
  3096. Cancel the current clock. This is useful if a clock was started by
  3097. mistake, or if you ended up working on something else.
  3098. `C-c C-x C-j'
  3099. Jump to the entry that contains the currently running clock, an
  3100. another window.
  3101. `C-c C-x C-d'
  3102. Display time summaries for each subtree in the current buffer.
  3103. This puts overlays at the end of each headline, showing the total
  3104. time recorded under that heading, including the time of any
  3105. subheadings. You can use visibility cycling to study the tree, but
  3106. the overlays disappear when you change the buffer (see variable
  3107. `org-remove-highlights-with-change') or press `C-c C-c'.
  3108. `C-c C-x C-r'
  3109. Insert a dynamic block (*note Dynamic blocks::) containing a clock
  3110. report as an org-mode table into the current file. When the
  3111. cursor is at an existing clock table, just update it. When called
  3112. with a prefix argument, jump to the first clock report in the
  3113. current document and update it.
  3114. #+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file
  3115. #+END: clocktable
  3116. If such a block already exists at point, its content is replaced
  3117. by the new table. The `BEGIN' line can specify options:
  3118. :maxlevel Maximum level depth to which times are listed in the table.
  3119. :emphasize When `t', emphasize level one and level two items
  3120. :scope The scope to consider. This can be any of the following:
  3121. nil the current buffer or narrowed region
  3122. file the full current buffer
  3123. subtree the subtree where the clocktable is located
  3124. treeN the surrounding level N tree, for example `tree3'
  3125. tree the surrounding level 1 tree
  3126. agenda all agenda files
  3127. ("file"..) scan these files
  3128. :block The time block to consider. This block is specified relative
  3129. to the current time and may be any of these keywords:
  3130. `today', `yesterday', `thisweek', `lastweek',
  3131. `thismonth', `lastmonth', `thisyear', or `lastyear'.
  3132. :tstart A time string specifying when to start considering times
  3133. :tend A time string specifying when to stop considering times
  3134. So to get a clock summary of the current level 1 tree, for the
  3135. current day, you could write
  3136. #+BEGIN: clocktable :maxlevel 2 :block today :scope tree1
  3137. #+END: clocktable
  3138. and to use a specific time range you could write(2)
  3139. #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
  3140. :tend "<2006-08-10 Thu 12:00>"
  3141. #+END: clocktable
  3142. `C-c C-c'
  3143. `C-c C-x C-u'
  3144. Update dynamical block at point. The cursor needs to be in the
  3145. `#+BEGIN' line of the dynamic block.
  3146. `C-u C-c C-x C-u'
  3147. Update all dynamic blocks (*note Dynamic blocks::). This is
  3148. useful if you have several clocktable blocks in a buffer.
  3149. The `l' key may be used in the timeline (*note Timeline::) and in
  3150. the agenda (*note Weekly/Daily agenda::) to show which tasks have been
  3151. worked on or closed during a day.
  3152. ---------- Footnotes ----------
  3153. (1) The corresponding in-buffer setting is: `#+STARTUP:
  3154. lognoteclock-out'
  3155. (2) Note that all parameters must be specified in a single line -
  3156. the line is broken here only to fit it onto the manual.
  3157. 
  3158. File: org, Node: Remember, Next: Agenda views, Prev: Dates and times, Up: Top
  3159. 9 Remember
  3160. **********
  3161. The Remember package by John Wiegley lets you store quick notes with
  3162. little interruption of your work flow. See
  3163. `http://www.emacswiki.org/cgi-bin/wiki/RememberMode' for more
  3164. information. It is an excellent way to add new notes and tasks to
  3165. Org-mode files. Org-mode significantly expands the possibilities of
  3166. remember: You may define templates for different note types, and
  3167. associate target files and headlines with specific templates. It also
  3168. allows you to select the location where a note should be stored
  3169. interactively, on the fly.
  3170. * Menu:
  3171. * Setting up remember:: Some code for .emacs to get things going
  3172. * Remember templates:: Define the outline of different note types
  3173. * Storing notes:: Directly get the note to where it belongs
  3174. * Refiling notes:: Moving a note or task to a project
  3175. 
  3176. File: org, Node: Setting up remember, Next: Remember templates, Prev: Remember, Up: Remember
  3177. 9.1 Setting up remember
  3178. =======================
  3179. The following customization will tell remember to use org files as
  3180. target, and to create annotations compatible with Org-mode links.
  3181. (org-remember-insinuate)
  3182. (setq org-directory "~/path/to/my/orgfiles/")
  3183. (setq org-default-notes-file (concat org-directory "/notes.org"))
  3184. (define-key global-map "\C-cr" 'org-remember)
  3185. The last line binds the command `org-remember' to a global key(1).
  3186. `org-remember' basically just calls `remember', but it makes a few
  3187. things easier: If there is an active region, it will automatically copy
  3188. the region into the remember buffer. It also allows to jump to the
  3189. buffer and location where remember notes are being stored: Just call
  3190. `org-remember' with a prefix argument.
  3191. ---------- Footnotes ----------
  3192. (1) Please select your own key, `C-c r' is only a suggestion.
  3193. 
  3194. File: org, Node: Remember templates, Next: Storing notes, Prev: Setting up remember, Up: Remember
  3195. 9.2 Remember templates
  3196. ======================
  3197. In combination with Org-mode, you can use templates to generate
  3198. different types of remember notes. For example, if you would like to
  3199. use one template to create general TODO entries, another one for
  3200. journal entries, and a third one for collecting random ideas, you could
  3201. use:
  3202. (setq org-remember-templates
  3203. '(("Todo" ?t "* TODO %?\n %i\n %a" "~/org/TODO.org" "Tasks")
  3204. ("Journal" ?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org")
  3205. ("Idea" ?i "* %^{Title}\n %i\n %a" "~/org/JOURNAL.org" "New Ideas")))
  3206. In these entries, the first string is just a name, and the character
  3207. specifies how to select the template. It is useful if the character is
  3208. also the first letter of the name. The next string specifies the
  3209. template. Two more (optional) strings give the file in which, and the
  3210. headline under which the new note should be stored. The file (if not
  3211. present or `nil') defaults to `org-default-notes-file', the heading to
  3212. `org-remember-default-headline'.
  3213. When you call `M-x remember' (or `M-x org-remember') to remember
  3214. something, org will prompt for a key to select the template (if you have
  3215. more than one template) and then prepare the buffer like
  3216. * TODO
  3217. [[file:link to where you called remember]]
  3218. During expansion of the template, special `%'-escapes allow dynamic
  3219. insertion of content:
  3220. %^{prompt} prompt the user for a string and replace this sequence with it.
  3221. You may specify a default value and a completion table with
  3222. %^{prompt|default|completion2|completion3...}
  3223. The arrow keys access a prompt-specific history.
  3224. %t time stamp, date only
  3225. %T time stamp with date and time
  3226. %u, %U like the above, but inactive time stamps
  3227. %^t like `%t', but prompt for date. Similarly `%^T', `%^u', `%^U'
  3228. You may define a prompt like `%^{Birthday}t'
  3229. %n user name (taken from `user-full-name')
  3230. %a annotation, normally the link created with `org-store-link'
  3231. %A like `%a', but prompt for the description part
  3232. %i initial content, the region when remember is called with C-u.
  3233. The entire text will be indented like `%i' itself.
  3234. %c Content of the clipboard, or current kill ring head.
  3235. %^g prompt for tags, with completion on tags in target file.
  3236. %^G prompt for tags, with completion all tags in all agenda files.
  3237. %:keyword specific information for certain link types, see below
  3238. %[pathname] insert the contents of the file given by `pathname'
  3239. %(sexp) evaluate elisp `(sexp)' and replace with the result
  3240. %! immediately store note after completing the template
  3241. (skipping the `C-c C-c' that normally triggers storing)
  3242. For specific link types, the following keywords will be defined(1):
  3243. Link type | Available keywords
  3244. -------------------+----------------------------------------------
  3245. bbdb | %:name %:company
  3246. vm, wl, mh, rmail | %:type %:subject %:message-id
  3247. | %:from %:fromname %:fromaddress
  3248. | %:to %:toname %:toaddress
  3249. | %:fromto (either "to NAME" or "from NAME")(2)
  3250. gnus | %:group, for messages also all email fields
  3251. w3, w3m | %:url
  3252. info | %:file %:node
  3253. calendar | %:date"
  3254. To place the cursor after template expansion use:
  3255. %? After completing the template, position cursor here.
  3256. If you change you mind about which template to use, call `org-remember'
  3257. in the remember buffer. You may then select a new template that will
  3258. be filled with the previous context information.
  3259. ---------- Footnotes ----------
  3260. (1) If you define your own link types (*note Adding hyperlink
  3261. types::), any property you store with `org-store-link-props' can be
  3262. accessed in remember templates in a similar way.
  3263. (2) This will always be the other, not the user. See the variable
  3264. `org-from-is-user-regexp'.
  3265. 
  3266. File: org, Node: Storing notes, Next: Refiling notes, Prev: Remember templates, Up: Remember
  3267. 9.3 Storing notes
  3268. =================
  3269. When you are finished preparing a note with remember, you have to press
  3270. `C-c C-c' to file the note away. The handler will store the note in
  3271. the file and under the headline specified in the template, or it will
  3272. use the default file and headlines. The window configuration will be
  3273. restored, sending you back to the working context before the call to
  3274. `remember'. To re-use the location found during the last call to
  3275. `remember', exit the remember buffer with `C-u C-u C-c C-c', i.e.
  3276. specify a double prefix argument to `C-c C-c'.
  3277. If you want to store the note directly to a different place, use
  3278. `C-u C-c C-c' instead to exit remember(1). The handler will then first
  3279. prompt for a target file - if you press <RET>, the value specified for
  3280. the template is used. Then the command offers the headings tree of the
  3281. selected file, with the cursor position at the default headline (if you
  3282. had specified one in the template). You can either immediately press
  3283. <RET> to get the note placed there. Or you can use the following keys
  3284. to find a different location:
  3285. <TAB> Cycle visibility.
  3286. <down> / <up> Next/previous visible headline.
  3287. n / p Next/previous visible headline.
  3288. f / b Next/previous headline same level.
  3289. u One level up.
  3290. Pressing <RET> or <left> or <right> then leads to the following
  3291. result.
  3292. Cursor Key Note gets inserted
  3293. position
  3294. on headline <RET> as sublevel of the heading at cursor, first or
  3295. last
  3296. depending on `org-reverse-note-order'.
  3297. <left>/<right>as same level, before/after current heading
  3298. buffer-start <RET> as level 2 heading at end of file or level 1
  3299. at beginning
  3300. depending on `org-reverse-note-order'.
  3301. not on <RET> at cursor position, level taken from context.
  3302. headline
  3303. Before inserting the text into a tree, the function ensures that the
  3304. text has a headline, i.e. a first line that starts with a `*'. If not,
  3305. a headline is constructed from the current date and some additional
  3306. data. If you have indented the text of the note below the headline, the
  3307. indentation will be adapted if inserting the note into the tree requires
  3308. demotion from level 1.
  3309. ---------- Footnotes ----------
  3310. (1) Configure the variable `org-remember-store-without-prompt' to
  3311. make this behavior the default.
  3312. 
  3313. File: org, Node: Refiling notes, Prev: Storing notes, Up: Remember
  3314. 9.4 Refiling notes
  3315. ==================
  3316. Remember is usually used to quickly capture notes and tasks into one or
  3317. a few capture lists. When reviewing the captured data, you may want to
  3318. refile some of the entries into a different list, for example into a
  3319. project. Cutting, finding the right location and then pasting the note
  3320. is cumbersome. To simplify this process, you can use the following
  3321. special command:
  3322. `C-c C-w'
  3323. Refile the entry at point. This command offers possible locations
  3324. for refiling the entry and lets you select one with completion.
  3325. The item is filed below the target heading as a subitem.
  3326. Depending on `org-reverse-note-order', it will be either the first
  3327. of last subitem, and you can toggle the value of this variable for
  3328. the duration of the command by using a `C-u' prefix.
  3329. By default, all level 1 headlines in the current buffer are
  3330. considered to be targets, but you can have more complex
  3331. definitions across a number of files. See the variable
  3332. `org-refile-targets' for details. The list of targets is compiled
  3333. upon first use, you can update it by using a double prefix
  3334. argument (`C-u C-u') to this command.
  3335. 
  3336. File: org, Node: Agenda views, Next: Embedded LaTeX, Prev: Remember, Up: Top
  3337. 10 Agenda Views
  3338. ***************
  3339. Due to the way Org-mode works, TODO items, time-stamped items, and
  3340. tagged headlines can be scattered throughout a file or even a number of
  3341. files. To get an overview of open action items, or of events that are
  3342. important for a particular date, this information must be collected,
  3343. sorted and displayed in an organized way.
  3344. Org-mode can select items based on various criteria, and display them
  3345. in a separate buffer. Six different view types are provided:
  3346. * an _agenda_ that is like a calendar and shows information for
  3347. specific dates,
  3348. * a _TODO list_ that covers all unfinished action items,
  3349. * a _tags view_, showings headlines based on the tags associated
  3350. with them,
  3351. * a _timeline view_ that shows all events in a single Org-mode file,
  3352. in time-sorted view,
  3353. * a _stuck projects view_ showing projects that currently don't move
  3354. along, and
  3355. * _custom views_ that are special tag/keyword searches and
  3356. combinations of different views.
  3357. The extracted information is displayed in a special _agenda buffer_.
  3358. This buffer is read-only, but provides commands to visit the
  3359. corresponding locations in the original Org-mode files, and even to
  3360. edit these files remotely.
  3361. Two variables control how the agenda buffer is displayed and whether
  3362. the window configuration is restored when the agenda exits:
  3363. `org-agenda-window-setup' and `org-agenda-restore-windows-after-quit'.
  3364. * Menu:
  3365. * Agenda files:: Files being searched for agenda information
  3366. * Agenda dispatcher:: Keyboard access to agenda views
  3367. * Built-in agenda views:: What is available out of the box?
  3368. * Presentation and sorting:: How agenda items are prepared for display
  3369. * Agenda commands:: Remote editing of org trees
  3370. * Custom agenda views:: Defining special searches and views
  3371. 
  3372. File: org, Node: Agenda files, Next: Agenda dispatcher, Prev: Agenda views, Up: Agenda views
  3373. 10.1 Agenda files
  3374. =================
  3375. The information to be shown is normally collected from all _agenda
  3376. files_, the files listed in the variable `org-agenda-files'(1). If a
  3377. directory is part of this list, all files with the extension `.org' in
  3378. this directory will be part of the list.
  3379. Thus even if you only work with a single Org-mode file, this file
  3380. should be put into that list(2). You can customize `org-agenda-files',
  3381. but the easiest way to maintain it is through the following commands
  3382. `C-c ['
  3383. Add current file to the list of agenda files. The file is added to
  3384. the front of the list. If it was already in the list, it is moved
  3385. to the front. With prefix arg, file is added/moved to the end.
  3386. `C-c ]'
  3387. Remove current file from the list of agenda files.
  3388. `C-,'
  3389. `C-''
  3390. Cycle through agenda file list, visiting one file after the other.
  3391. The Org menu contains the current list of files and can be used to
  3392. visit any of them.
  3393. If you would like to focus the agenda temporarily onto a file not in
  3394. this list, or onto just one file in the list or even only a subtree in a
  3395. file, this can be done in different ways. For a single agenda command,
  3396. you may press `<' once or several times in the dispatcher (*note Agenda
  3397. dispatcher::). To restrict the agenda scope for an extended period,
  3398. use the following commands:
  3399. `C-c C-x <'
  3400. Permanently restrict the agenda to the current subtree. When with
  3401. a prefix argument, or with the cursor before the first headline in
  3402. a file, the agenda scope is set to the entire file. This
  3403. restriction remains in effect until removed with `C-c C-x >', or
  3404. by typing either `<' or `>' in the agenda dispatcher. If there is
  3405. a window displaying an agenda view, the new restriction takes
  3406. effect immediately.
  3407. `C-c C-x <'
  3408. Remove the permanent restriction created by `C-c C-x <'.
  3409. When working with `Speedbar', you can use the following commands in the
  3410. speedbar frame:
  3411. `< in the speedbar frame'
  3412. Permanently restrict the agenda to the item at the cursor in the
  3413. speedbar frame, either an Org-mode file or a subtree in such a
  3414. file. If there is a window displaying an agenda view, the new
  3415. restriction takes effect immediately.
  3416. `> in the speedbar frame'
  3417. Lift the restriction again.
  3418. ---------- Footnotes ----------
  3419. (1) If the value of that variable is not a list, but a single file
  3420. name, then the list of agenda files will be maintained in that external
  3421. file.
  3422. (2) When using the dispatcher, pressing `<' before selecting a
  3423. command will actually limit the command to the current file, and ignore
  3424. `org-agenda-files' until the next dispatcher command.
  3425. 
  3426. File: org, Node: Agenda dispatcher, Next: Built-in agenda views, Prev: Agenda files, Up: Agenda views
  3427. 10.2 The agenda dispatcher
  3428. ==========================
  3429. The views are created through a dispatcher that should be bound to a
  3430. global key, for example `C-c a' (*note Installation::). In the
  3431. following we will assume that `C-c a' is indeed how the dispatcher is
  3432. accessed and list keyboard access to commands accordingly. After
  3433. pressing `C-c a', an additional letter is required to execute a
  3434. command. The dispatcher offers the following default commands:
  3435. `a'
  3436. Create the calendar-like agenda (*note Weekly/Daily agenda::).
  3437. `t / T'
  3438. Create a list of all TODO items (*note Global TODO list::).
  3439. `m / M'
  3440. Create a list of headlines matching a TAGS expression (*note
  3441. Matching tags and properties::).
  3442. `L'
  3443. Create the timeline view for the current buffer (*note Timeline::).
  3444. `# / !'
  3445. Create a list of stuck projects (*note Stuck projects::).
  3446. `/'
  3447. Search for a regular expression in all agenda files and
  3448. additionally in the files listed in
  3449. `org-agenda-multi-occur-extra-files'. This uses the Emacs command
  3450. `multi-occur'. A prefix argument can be used to specify the
  3451. number of context lines for each match, default is 1.
  3452. `<'
  3453. Restrict an agenda command to the current buffer(1). After
  3454. pressing `<', you still need to press the character selecting the
  3455. command.
  3456. `< <'
  3457. If there is an active region, restrict the following agenda
  3458. command to the region. Otherwise, restrict it to the current
  3459. subtree(2). After pressing `< <', you still need to press the
  3460. character selecting the command.
  3461. You can also define custom commands that will be accessible through
  3462. the dispatcher, just like the default commands. This includes the
  3463. possibility to create extended agenda buffers that contain several
  3464. blocks together, for example the weekly agenda, the global TODO list and
  3465. a number of special tags matches. *Note Custom agenda views::.
  3466. ---------- Footnotes ----------
  3467. (1) For backward compatibility, you can also press `1' to restrict
  3468. to the current buffer.
  3469. (2) For backward compatibility, you can also press `0' to restrict
  3470. to the current buffer.
  3471. 
  3472. File: org, Node: Built-in agenda views, Next: Presentation and sorting, Prev: Agenda dispatcher, Up: Agenda views
  3473. 10.3 The built-in agenda views
  3474. ==============================
  3475. In this section we describe the built-in views.
  3476. * Menu:
  3477. * Weekly/Daily agenda:: The calendar page with current tasks
  3478. * Global TODO list:: All unfinished action items
  3479. * Matching tags and properties:: Structured information with fine-tuned search
  3480. * Timeline:: Time-sorted view for single file
  3481. * Stuck projects:: Find projects you need to review
  3482. 
  3483. File: org, Node: Weekly/Daily agenda, Next: Global TODO list, Prev: Built-in agenda views, Up: Built-in agenda views
  3484. 10.3.1 The weekly/daily agenda
  3485. ------------------------------
  3486. The purpose of the weekly/daily _agenda_ is to act like a page of a
  3487. paper agenda, showing all the tasks for the current week or day.
  3488. `C-c a a'
  3489. Compile an agenda for the current week from a list of org files.
  3490. The agenda shows the entries for each day. With a numeric
  3491. prefix(1) (like `C-u 2 1 C-c a a') you may set the number of days
  3492. to be displayed (see also the variable `org-agenda-ndays')
  3493. Remote editing from the agenda buffer means, for example, that you
  3494. can change the dates of deadlines and appointments from the agenda
  3495. buffer. The commands available in the Agenda buffer are listed in
  3496. *Note Agenda commands::.
  3497. Calendar/Diary integration
  3498. ..........................
  3499. Emacs contains the calendar and diary by Edward M. Reingold. The
  3500. calendar displays a three-month calendar with holidays from different
  3501. countries and cultures. The diary allows you to keep track of
  3502. anniversaries, lunar phases, sunrise/set, recurrent appointments
  3503. (weekly, monthly) and more. In this way, it is quite complementary to
  3504. Org-mode. It can be very useful to combine output from Org-mode with
  3505. the diary.
  3506. In order to include entries from the Emacs diary into Org-mode's
  3507. agenda, you only need to customize the variable
  3508. (setq org-agenda-include-diary t)
  3509. After that, everything will happen automatically. All diary entries
  3510. including holidays, anniversaries etc will be included in the agenda
  3511. buffer created by Org-mode. <SPC>, <TAB>, and <RET> can be used from
  3512. the agenda buffer to jump to the diary file in order to edit existing
  3513. diary entries. The `i' command to insert new entries for the current
  3514. date works in the agenda buffer, as well as the commands `S', `M', and
  3515. `C' to display Sunrise/Sunset times, show lunar phases and to convert
  3516. to other calendars, respectively. `c' can be used to switch back and
  3517. forth between calendar and agenda.
  3518. If you are using the diary only for sexp entries and holidays, it is
  3519. faster to not use the above setting, but instead to copy or even move
  3520. the entries into an Org-mode file. Org-mode evaluates diary-style sexp
  3521. entries, and does it faster because there is no overhead for first
  3522. creating the diary display. Note that the sexp entries must start at
  3523. the left margin, no white space is allowed before them. For example,
  3524. the following segment of an Org-mode file will be processed and entries
  3525. will be made in the agenda:
  3526. * Birthdays and similar stuff
  3527. #+CATEGORY: Holiday
  3528. %%(org-calendar-holiday) ; special function for holiday names
  3529. #+CATEGORY: Ann
  3530. %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old
  3531. %%(diary-anniversary 2 10 1869) Mahatma Gandhi would be %d years old
  3532. Appointment reminders
  3533. .....................
  3534. Org can interact with Emacs appointments notification facility.
  3535. To add all the appointments of your agenda files, use the command
  3536. `org-agenda-to-appt'. This commands also lets you filter through the
  3537. list of your appointments and add only those belonging to a specific
  3538. category or matching a regular expression. See the docstring for
  3539. details.
  3540. ---------- Footnotes ----------
  3541. (1) For backward compatibility, the universal prefix `C-u' causes
  3542. all TODO entries to be listed before the agenda. This feature is
  3543. deprecated, use the dedicated TODO list, or a block agenda instead.
  3544. 
  3545. File: org, Node: Global TODO list, Next: Matching tags and properties, Prev: Weekly/Daily agenda, Up: Built-in agenda views
  3546. 10.3.2 The global TODO list
  3547. ---------------------------
  3548. The global TODO list contains all unfinished TODO items, formatted and
  3549. collected into a single place.
  3550. `C-c a t'
  3551. Show the global TODO list. This collects the TODO items from all
  3552. agenda files (*note Agenda views::) into a single buffer. The
  3553. buffer is in `agenda-mode', so there are commands to examine and
  3554. manipulate the TODO entries directly from that buffer (*note
  3555. Agenda commands::).
  3556. `C-c a T'
  3557. Like the above, but allows selection of a specific TODO keyword.
  3558. You can also do this by specifying a prefix argument to `C-c a t'.
  3559. With a `C-u' prefix you are prompted for a keyword, and you may
  3560. also specify several keywords by separating them with `|' as
  3561. boolean OR operator. With a numeric prefix, the Nth keyword in
  3562. `org-todo-keywords' is selected. The `r' key in the agenda buffer
  3563. regenerates it, and you can give a prefix argument to this command
  3564. to change the selected TODO keyword, for example `3 r'. If you
  3565. often need a search for a specific keyword, define a custom
  3566. command for it (*note Agenda dispatcher::).
  3567. Matching specific TODO keywords can also be done as part of a tags
  3568. search (*note Tag searches::).
  3569. Remote editing of TODO items means that you can change the state of a
  3570. TODO entry with a single key press. The commands available in the TODO
  3571. list are described in *Note Agenda commands::.
  3572. Normally the global todo list simply shows all headlines with TODO
  3573. keywords. This list can become very long. There are two ways to keep
  3574. it more compact:
  3575. - Some people view a TODO item that has been _scheduled_ for
  3576. execution (*note Time stamps::) as no longer _open_. Configure the
  3577. variable `org-agenda-todo-ignore-scheduled' to exclude scheduled
  3578. items from the global TODO list.
  3579. - TODO items may have sublevels to break up the task into subtasks.
  3580. In such cases it may be enough to list only the highest level TODO
  3581. headline and omit the sublevels from the global list. Configure
  3582. the variable `org-agenda-todo-list-sublevels' to get this behavior.
  3583. 
  3584. File: org, Node: Matching tags and properties, Next: Timeline, Prev: Global TODO list, Up: Built-in agenda views
  3585. 10.3.3 Matching Tags and Properties
  3586. -----------------------------------
  3587. If headlines in the agenda files are marked with _tags_ (*note Tags::),
  3588. you can select headlines based on the tags that apply to them and
  3589. collect them into an agenda buffer.
  3590. `C-c a m'
  3591. Produce a list of all headlines that match a given set of tags.
  3592. The command prompts for a selection criterion, which is a boolean
  3593. logic expression with tags, like `+work+urgent-withboss' or
  3594. `work|home' (*note Tags::). If you often need a specific search,
  3595. define a custom command for it (*note Agenda dispatcher::).
  3596. `C-c a M'
  3597. Like `C-c a m', but only select headlines that are also TODO items
  3598. and force checking subitems (see variable
  3599. `org-tags-match-list-sublevels'). Matching specific todo keywords
  3600. together with a tags match is also possible, see *Note Tag
  3601. searches::.
  3602. The commands available in the tags list are described in *Note
  3603. Agenda commands::.
  3604. 
  3605. File: org, Node: Timeline, Next: Stuck projects, Prev: Matching tags and properties, Up: Built-in agenda views
  3606. 10.3.4 Timeline for a single file
  3607. ---------------------------------
  3608. The timeline summarizes all time-stamped items from a single Org-mode
  3609. file in a _time-sorted view_. The main purpose of this command is to
  3610. give an overview over events in a project.
  3611. `C-c a L'
  3612. Show a time-sorted view of the org file, with all time-stamped
  3613. items. When called with a `C-u' prefix, all unfinished TODO
  3614. entries (scheduled or not) are also listed under the current date.
  3615. The commands available in the timeline buffer are listed in *Note
  3616. Agenda commands::.
  3617. 
  3618. File: org, Node: Stuck projects, Prev: Timeline, Up: Built-in agenda views
  3619. 10.3.5 Stuck projects
  3620. ---------------------
  3621. If you are following a system like David Allen's GTD to organize your
  3622. work, one of the "duties" you have is a regular review to make sure
  3623. that all projects move along. A _stuck_ project is a project that has
  3624. no defined next actions, so it will never show up in the TODO lists
  3625. Org-mode produces. During the review, you need to identify such
  3626. projects and define next actions for them.
  3627. `C-c a #'
  3628. List projects that are stuck.
  3629. `C-c a !'
  3630. Customize the variable `org-stuck-projects' to define what a stuck
  3631. project is and how to find it.
  3632. You almost certainly will have to configure this view before it will
  3633. work for you. The built-in default assumes that all your projects are
  3634. level-2 headlines, and that a project is not stuck if it has at least
  3635. one entry marked with a todo keyword TODO or NEXT or NEXTACTION.
  3636. Lets assume that you, in your own way of using Org-mode, identify
  3637. projects with a tag PROJECT, and that you use a todo keyword MAYBE to
  3638. indicate a project that should not be considered yet. Lets further
  3639. assume that the todo keyword DONE marks finished projects, and that NEXT
  3640. and TODO indicate next actions. The tag @SHOP indicates shopping and
  3641. is a next action even without the NEXT tag. Finally, if the project
  3642. contains the special word IGNORE anywhere, it should not be listed
  3643. either. In this case you would start by identifying eligible projects
  3644. with a tags/todo match `+PROJECT/-MAYBE-DONE', and then check for TODO,
  3645. NEXT, @SHOP, and IGNORE in the subtree to identify projects that are
  3646. not stuck. The correct customization for this is
  3647. (setq org-stuck-projects
  3648. '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@SHOP")
  3649. "\\<IGNORE\\>"))
  3650. 
  3651. File: org, Node: Presentation and sorting, Next: Agenda commands, Prev: Built-in agenda views, Up: Agenda views
  3652. 10.4 Presentation and sorting
  3653. =============================
  3654. Before displaying items in an agenda view, Org-mode visually prepares
  3655. the items and sorts them. Each item occupies a single line. The line
  3656. starts with a _prefix_ that contains the _category_ (*note
  3657. Categories::) of the item and other important information. You can
  3658. customize the prefix using the option `org-agenda-prefix-format'. The
  3659. prefix is followed by a cleaned-up version of the outline headline
  3660. associated with the item.
  3661. * Menu:
  3662. * Categories:: Not all tasks are equal
  3663. * Time-of-day specifications:: How the agenda knows the time
  3664. * Sorting of agenda items:: The order of things
  3665. 
  3666. File: org, Node: Categories, Next: Time-of-day specifications, Prev: Presentation and sorting, Up: Presentation and sorting
  3667. 10.4.1 Categories
  3668. -----------------
  3669. The category is a broad label assigned to each agenda item. By default,
  3670. the category is simply derived from the file name, but you can also
  3671. specify it with a special line in the buffer, like this(1):
  3672. #+CATEGORY: Thesis
  3673. If you would like to have a special CATEGORY for a single entry or a
  3674. (sub)tree, give the entry a `:CATEGORY:' property with the location as
  3675. the value (*note Properties and columns::).
  3676. The display in the agenda buffer looks best if the category is not
  3677. longer than 10 characters.
  3678. ---------- Footnotes ----------
  3679. (1) For backward compatibility, the following also works: If there
  3680. are several such lines in a file, each specifies the category for the
  3681. text below it. The first category also applies to any text before the
  3682. first CATEGORY line. However, using this method is _strongly_
  3683. deprecated as it is incompatible with the outline structure of the
  3684. document. The correct method for setting multiple categories in a
  3685. buffer is using a property.
  3686. 
  3687. File: org, Node: Time-of-day specifications, Next: Sorting of agenda items, Prev: Categories, Up: Presentation and sorting
  3688. 10.4.2 Time-of-Day Specifications
  3689. ---------------------------------
  3690. Org-mode checks each agenda item for a time-of-day specification. The
  3691. time can be part of the time stamp that triggered inclusion into the
  3692. agenda, for example as in `<2005-05-10 Tue 19:00>'. Time ranges can be
  3693. specified with two time stamps, like
  3694. `<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>'.
  3695. In the headline of the entry itself, a time(range) may also appear as
  3696. plain text (like `12:45' or a `8:30-1pm'. If the agenda integrates the
  3697. Emacs diary (*note Weekly/Daily agenda::), time specifications in diary
  3698. entries are recognized as well.
  3699. For agenda display, Org-mode extracts the time and displays it in a
  3700. standard 24 hour format as part of the prefix. The example times in
  3701. the previous paragraphs would end up in the agenda like this:
  3702. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  3703. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  3704. 19:00...... The Vogon reads his poem
  3705. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  3706. If the agenda is in single-day mode, or for the display of today, the
  3707. timed entries are embedded in a time grid, like
  3708. 8:00...... ------------------
  3709. 8:30-13:00 Arthur Dent lies in front of the bulldozer
  3710. 10:00...... ------------------
  3711. 12:00...... ------------------
  3712. 12:45...... Ford Prefect arrives and takes Arthur to the pub
  3713. 14:00...... ------------------
  3714. 16:00...... ------------------
  3715. 18:00...... ------------------
  3716. 19:00...... The Vogon reads his poem
  3717. 20:00...... ------------------
  3718. 20:30-22:15 Marwin escorts the Hitchhikers to the bridge
  3719. The time grid can be turned on and off with the variable
  3720. `org-agenda-use-time-grid', and can be configured with
  3721. `org-agenda-time-grid'.
  3722. 
  3723. File: org, Node: Sorting of agenda items, Prev: Time-of-day specifications, Up: Presentation and sorting
  3724. 10.4.3 Sorting of agenda items
  3725. ------------------------------
  3726. Before being inserted into a view, the items are sorted. How this is
  3727. done depends on the type of view.
  3728. * For the daily/weekly agenda, the items for each day are sorted.
  3729. The default order is to first collect all items containing an
  3730. explicit time-of-day specification. These entries will be shown
  3731. at the beginning of the list, as a _schedule_ for the day. After
  3732. that, items remain grouped in categories, in the sequence given by
  3733. `org-agenda-files'. Within each category, items are sorted by
  3734. priority (*note Priorities::), which is composed of the base
  3735. priority (2000 for priority `A', 1000 for `B', and 0 for `C'),
  3736. plus additional increments for overdue scheduled or deadline items.
  3737. * For the TODO list, items remain in the order of categories, but
  3738. within each category, sorting takes place according to priority
  3739. (*note Priorities::).
  3740. * For tags matches, items are not sorted at all, but just appear in
  3741. the sequence in which they are found in the agenda files.
  3742. Sorting can be customized using the variable
  3743. `org-agenda-sorting-strategy'.
  3744. 
  3745. File: org, Node: Agenda commands, Next: Custom agenda views, Prev: Presentation and sorting, Up: Agenda views
  3746. 10.5 Commands in the agenda buffer
  3747. ==================================
  3748. Entries in the agenda buffer are linked back to the org file or diary
  3749. file where they originate. You are not allowed to edit the agenda
  3750. buffer itself, but commands are provided to show and jump to the
  3751. original entry location, and to edit the org-files "remotely" from the
  3752. agenda buffer. In this way, all information is stored only once,
  3753. removing the risk that your agenda and note files may diverge.
  3754. Some commands can be executed with mouse clicks on agenda lines. For
  3755. the other commands, the cursor needs to be in the desired line.
  3756. Motion
  3757. ......
  3758. `n'
  3759. Next line (same as <up> and `C-p').
  3760. `p'
  3761. Previous line (same as <down> and `C-n').
  3762. View/GoTo org file
  3763. ..................
  3764. `mouse-3'
  3765. `<SPC>'
  3766. Display the original location of the item in another window.
  3767. `L'
  3768. Display original location and recenter that window.
  3769. `mouse-2'
  3770. `mouse-1'
  3771. `<TAB>'
  3772. Go to the original location of the item in another window. Under
  3773. Emacs 22, `mouse-1' will also works for this.
  3774. `<RET>'
  3775. Go to the original location of the item and delete other windows.
  3776. `f'
  3777. Toggle Follow mode. In Follow mode, as you move the cursor through
  3778. the agenda buffer, the other window always shows the corresponding
  3779. location in the org file. The initial setting for this mode in new
  3780. agenda buffers can be set with the variable
  3781. `org-agenda-start-with-follow-mode'.
  3782. `b'
  3783. Display the entire subtree of the current item in an indirect
  3784. buffer. With numerical prefix ARG, go up to this level and then
  3785. take that tree. If ARG is negative, go up that many levels. With
  3786. `C-u' prefix, do not remove the previously used indirect buffer.
  3787. `l'
  3788. Toggle Logbook mode. In Logbook mode, entries that where marked
  3789. DONE while logging was on (variable `org-log-done') are shown in
  3790. the agenda, as are entries that have been clocked on that day.
  3791. Change display
  3792. ..............
  3793. `o'
  3794. Delete other windows.
  3795. `d w m y'
  3796. Switch to day/week/month/year view. When switching to day or week
  3797. view, this setting becomes the default for subseqent agenda
  3798. commands. Since month and year views are slow to create, the do
  3799. not become the default.
  3800. `D'
  3801. Toggle the inclusion of diary entries. See *Note Weekly/Daily
  3802. agenda::.
  3803. `g'
  3804. Toggle the time grid on and off. See also the variables
  3805. `org-agenda-use-time-grid' and `org-agenda-time-grid'.
  3806. `r'
  3807. Recreate the agenda buffer, for example to reflect the changes
  3808. after modification of the time stamps of items with S-<left> and
  3809. S-<right>. When the buffer is the global todo list, a prefix
  3810. argument is interpreted to create a selective list for a specific
  3811. TODO keyword.
  3812. `s'
  3813. `C-x C-s'
  3814. Save all Org-mode buffers in the current Emacs session.
  3815. `<right>'
  3816. Display the following `org-agenda-ndays' days. For example, if
  3817. the display covers a week, switch to the following week. With
  3818. prefix arg, go forward that many times `org-agenda-ndays' days.
  3819. `<left>'
  3820. Display the previous dates.
  3821. `.'
  3822. Goto today.
  3823. Remote editing
  3824. ..............
  3825. `0-9'
  3826. Digit argument.
  3827. `C-_'
  3828. Undo a change due to a remote editing command. The change is
  3829. undone both in the agenda buffer and in the remote buffer.
  3830. `t'
  3831. Change the TODO state of the item, both in the agenda and in the
  3832. original org file.
  3833. `C-k'
  3834. Delete the current agenda item along with the entire subtree
  3835. belonging to it in the original Org-mode file. If the text to be
  3836. deleted remotely is longer than one line, the kill needs to be
  3837. confirmed by the user. See variable `org-agenda-confirm-kill'.
  3838. `$'
  3839. Archive the subtree corresponding to the current headline.
  3840. `T'
  3841. Show all tags associated with the current item. Because of
  3842. inheritance, this may be more than the tags listed in the line
  3843. itself.
  3844. `:'
  3845. Set tags for the current headline. If there is an active region
  3846. in the agenda, change a tag for all headings in the region.
  3847. `a'
  3848. Toggle the ARCHIVE tag for the current headline.
  3849. `,'
  3850. Set the priority for the current item. Org-mode prompts for the
  3851. priority character. If you reply with <SPC>, the priority cookie
  3852. is removed from the entry.
  3853. `P'
  3854. Display weighted priority of current item.
  3855. `+'
  3856. `S-<up>'
  3857. Increase the priority of the current item. The priority is
  3858. changed in the original buffer, but the agenda is not resorted.
  3859. Use the `r' key for this.
  3860. `-'
  3861. `S-<down>'
  3862. Decrease the priority of the current item.
  3863. `C-c C-s'
  3864. Schedule this item
  3865. `C-c C-d'
  3866. Set a deadline for this item.
  3867. `S-<right>'
  3868. Change the time stamp associated with the current line by one day
  3869. into the future. With prefix argument, change it by that many
  3870. days. For example, `3 6 5 S-<right>' will change it by a year.
  3871. The stamp is changed in the original org file, but the change is
  3872. not directly reflected in the agenda buffer. Use the `r' key to
  3873. update the buffer.
  3874. `S-<left>'
  3875. Change the time stamp associated with the current line by one day
  3876. into the past.
  3877. `>'
  3878. Change the time stamp associated with the current line to today.
  3879. The key `>' has been chosen, because it is the same as `S-.' on my
  3880. keyboard.
  3881. `I'
  3882. Start the clock on the current item. If a clock is running
  3883. already, it is stopped first.
  3884. `O'
  3885. Stop the previously started clock.
  3886. `X'
  3887. Cancel the currently running clock.
  3888. `J'
  3889. Jump to the running clock in another window.
  3890. Calendar commands
  3891. .................
  3892. `c'
  3893. Open the Emacs calendar and move to the date at the agenda cursor.
  3894. `c'
  3895. When in the calendar, compute and show the Org-mode agenda for the
  3896. date at the cursor.
  3897. `i'
  3898. Insert a new entry into the diary. Prompts for the type of entry
  3899. (day, weekly, monthly, yearly, anniversary, cyclic) and creates a
  3900. new entry in the diary, just as `i d' etc. would do in the
  3901. calendar. The date is taken from the cursor position.
  3902. `M'
  3903. Show the phases of the moon for the three months around current
  3904. date.
  3905. `S'
  3906. Show sunrise and sunset times. The geographical location must be
  3907. set with calendar variables, see documentation of the Emacs
  3908. calendar.
  3909. `C'
  3910. Convert the date at cursor into many other cultural and historic
  3911. calendars.
  3912. `H'
  3913. Show holidays for three month around the cursor date.
  3914. `C-c C-x C-c'
  3915. Export a single iCalendar file containing entries from all agenda
  3916. files.
  3917. Exporting to a file
  3918. ...................
  3919. `C-x C-w'
  3920. Write the agenda view to a file. Depending on the extension of the
  3921. selected file name, the view will be exported as HTML (extension
  3922. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  3923. (any other extension). Use the variable
  3924. `org-agenda-exporter-settings' to set options for `ps-print' and
  3925. for `htmlize' to be used during export.
  3926. Quit and Exit
  3927. .............
  3928. `q'
  3929. Quit agenda, remove the agenda buffer.
  3930. `x'
  3931. Exit agenda, remove the agenda buffer and all buffers loaded by
  3932. Emacs for the compilation of the agenda. Buffers created by the
  3933. user to visit org files will not be removed.
  3934. 
  3935. File: org, Node: Custom agenda views, Prev: Agenda commands, Up: Agenda views
  3936. 10.6 Custom agenda views
  3937. ========================
  3938. Custom agenda commands serve two purposes: to store and quickly access
  3939. frequently used TODO and tags searches, and to create special composite
  3940. agenda buffers. Custom agenda commands will be accessible through the
  3941. dispatcher (*note Agenda dispatcher::), just like the default commands.
  3942. * Menu:
  3943. * Storing searches:: Type once, use often
  3944. * Block agenda:: All the stuff you need in a single buffer
  3945. * Setting Options:: Changing the rules
  3946. * Exporting Agenda Views:: Writing agendas to files.
  3947. * Extracting Agenda Information for other programs::
  3948. 
  3949. File: org, Node: Storing searches, Next: Block agenda, Prev: Custom agenda views, Up: Custom agenda views
  3950. 10.6.1 Storing searches
  3951. -----------------------
  3952. The first application of custom searches is the definition of keyboard
  3953. shortcuts for frequently used searches, either creating an agenda
  3954. buffer, or a sparse tree (the latter covering of course only the current
  3955. buffer). Custom commands are configured in the variable
  3956. `org-agenda-custom-commands'. You can customize this variable, for
  3957. example by pressing `C-c a C'. You can also directly set it with Emacs
  3958. Lisp in `.emacs'. The following example contains all valid search
  3959. types:
  3960. (setq org-agenda-custom-commands
  3961. '(("w" todo "WAITING")
  3962. ("W" todo-tree "WAITING")
  3963. ("u" tags "+BOSS-URGENT")
  3964. ("v" tags-todo "+BOSS-URGENT")
  3965. ("U" tags-tree "+BOSS-URGENT")
  3966. ("f" occur-tree "\\<FIXME\\>")
  3967. ("h" . "HOME+Name tags searches") ; description for "h" prefix
  3968. ("hl" tags "+HOME+Lisa")
  3969. ("hp" tags "+HOME+Peter")
  3970. ("hk" tags "+HOME+Kim")))
  3971. The initial string in each entry defines the keys you have to press
  3972. after the dispatcher command `C-c a' in order to access the command.
  3973. Usually this will be just a single character, but if you have many
  3974. similar commands, you can also define two-letter combinations where the
  3975. first character is the same in several combinations and serves as a
  3976. prefix key(1). The second parameter is the search type, followed by
  3977. the string or regular expression to be used for the matching. The
  3978. example above will therefore define:
  3979. `C-c a w'
  3980. as a global search for TODO entries with `WAITING' as the TODO
  3981. keyword
  3982. `C-c a W'
  3983. as the same search, but only in the current buffer and displaying
  3984. the results as a sparse tree
  3985. `C-c a u'
  3986. as a global tags search for headlines marked `:BOSS:' but not
  3987. `:URGENT:'
  3988. `C-c a v'
  3989. as the same search as `C-c a u', but limiting the search to
  3990. headlines that are also TODO items
  3991. `C-c a U'
  3992. as the same search as `C-c a u', but only in the current buffer and
  3993. displaying the result as a sparse tree
  3994. `C-c a f'
  3995. to create a sparse tree (again: current buffer only) with all
  3996. entries containing the word `FIXME'
  3997. `C-c a h'
  3998. as a prefix command for a HOME tags search where you have to press
  3999. an additional key (`l', `p' or `k') to select a name (Lisa, Peter,
  4000. or Kim) as additional tag to match.
  4001. ---------- Footnotes ----------
  4002. (1) You can provide a description for a prefix key by inserting a
  4003. cons cell with the prefix and the description.
  4004. 
  4005. File: org, Node: Block agenda, Next: Setting Options, Prev: Storing searches, Up: Custom agenda views
  4006. 10.6.2 Block agenda
  4007. -------------------
  4008. Another possibility is the construction of agenda views that comprise
  4009. the results of _several_ commands, each of which creates a block in the
  4010. agenda buffer. The available commands include `agenda' for the daily
  4011. or weekly agenda (as created with `C-c a a'), `alltodo' for the global
  4012. todo list (as constructed with `C-c a t'), and the matching commands
  4013. discussed above: `todo', `tags', and `tags-todo'. Here are two
  4014. examples:
  4015. (setq org-agenda-custom-commands
  4016. '(("h" "Agenda and Home-related tasks"
  4017. ((agenda)
  4018. (tags-todo "HOME")
  4019. (tags "GARDEN")))
  4020. ("o" "Agenda and Office-related tasks"
  4021. ((agenda)
  4022. (tags-todo "WORK")
  4023. (tags "OFFICE")))))
  4024. This will define `C-c a h' to create a multi-block view for stuff you
  4025. need to attend to at home. The resulting agenda buffer will contain
  4026. your agenda for the current week, all TODO items that carry the tag
  4027. `HOME', and also all lines tagged with `GARDEN'. Finally the command
  4028. `C-c a o' provides a similar view for office tasks.
  4029. 
  4030. File: org, Node: Setting Options, Next: Exporting Agenda Views, Prev: Block agenda, Up: Custom agenda views
  4031. 10.6.3 Setting Options for custom commands
  4032. ------------------------------------------
  4033. Org-mode contains a number of variables regulating agenda construction
  4034. and display. The global variables define the behavior for all agenda
  4035. commands, including the custom commands. However, if you want to change
  4036. some settings just for a single custom view, you can do so. Setting
  4037. options requires inserting a list of variable names and values at the
  4038. right spot in `org-agenda-custom-commands'. For example:
  4039. (setq org-agenda-custom-commands
  4040. '(("w" todo "WAITING"
  4041. ((org-agenda-sorting-strategy '(priority-down))
  4042. (org-agenda-prefix-format " Mixed: ")))
  4043. ("U" tags-tree "+BOSS-URGENT"
  4044. ((org-show-following-heading nil)
  4045. (org-show-hierarchy-above nil)))))
  4046. Now the `C-c a w' command will sort the collected entries only by
  4047. priority, and the prefix format is modified to just say ` Mixed:'
  4048. instead of giving the category of the entry. The sparse tags tree of
  4049. `C-c a U' will now turn out ultra-compact, because neither the headline
  4050. hierarchy above the match, nor the headline following the match will be
  4051. shown.
  4052. For command sets creating a block agenda,
  4053. `org-agenda-custom-commands' has two separate spots for setting
  4054. options. You can add options that should be valid for just a single
  4055. command in the set, and options that should be valid for all commands in
  4056. the set. The former are just added to the command entry, the latter
  4057. must come after the list of command entries. Going back to the block
  4058. agenda example (*note Block agenda::), let's change the sorting strategy
  4059. for the `C-c a h' commands to `priority-down', but let's sort the
  4060. results for GARDEN tags query in the opposite order, `priority-up'.
  4061. This would look like this:
  4062. (setq org-agenda-custom-commands
  4063. '(("h" "Agenda and Home-related tasks"
  4064. ((agenda)
  4065. (tags-todo "HOME")
  4066. (tags "GARDEN"
  4067. ((org-agenda-sorting-strategy '(priority-up)))))
  4068. ((org-agenda-sorting-strategy '(priority-down))))
  4069. ("o" "Agenda and Office-related tasks"
  4070. ((agenda)
  4071. (tags-todo "WORK")
  4072. (tags "OFFICE")))))
  4073. As you see, the values and parenthesis setting is a little complex.
  4074. When in doubt, use the customize interface to set this variable - it
  4075. fully supports its structure. Just one caveat: When setting options in
  4076. this interface, the _values_ are just lisp expressions. So if the
  4077. value is a string, you need to add the double quotes around the value
  4078. yourself.
  4079. 
  4080. File: org, Node: Exporting Agenda Views, Next: Extracting Agenda Information for other programs, Prev: Setting Options, Up: Custom agenda views
  4081. 10.6.4 Exporting Agenda Views
  4082. -----------------------------
  4083. If you are away from your computer, it can be very useful to have a
  4084. printed version of some agenda views to carry around. Org-mode can
  4085. export custom agenda views as plain text, HTML(1) and postscript. If
  4086. you want to do this only occasionally, use the command
  4087. `C-x C-w'
  4088. Write the agenda view to a file. Depending on the extension of the
  4089. selected file name, the view will be exported as HTML (extension
  4090. `.html' or `.htm'), Postscript (extension `.ps'), or plain text
  4091. (any other extension). Use the variable
  4092. `org-agenda-exporter-settings' to set options for `ps-print' and
  4093. for `htmlize' to be used during export, for example
  4094. (setq org-agenda-exporter-settings
  4095. '((ps-number-of-columns 2)
  4096. (ps-landscape-mode t)
  4097. (htmlize-output-type 'css)))
  4098. If you need to export certain agenda views frequently, you can
  4099. associate any custom agenda command with a list of output file names
  4100. (2). Here is an example that first does define custom commands for the
  4101. agenda and the global todo list, together with a number of files to
  4102. which to export them. Then we define two block agenda commands and
  4103. specify filenames for them as well. File names can be relative to the
  4104. current working directory, or absolute.
  4105. (setq org-agenda-custom-commands
  4106. '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
  4107. ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
  4108. ("h" "Agenda and Home-related tasks"
  4109. ((agenda)
  4110. (tags-todo "HOME")
  4111. (tags "GARDEN"))
  4112. nil
  4113. ("~/views/home.html"))
  4114. ("o" "Agenda and Office-related tasks"
  4115. ((agenda)
  4116. (tags-todo "WORK")
  4117. (tags "OFFICE"))
  4118. nil
  4119. ("~/views/office.ps"))))
  4120. The extension of the file name determines the type of export. If it
  4121. is `.html', Org-mode will use the `htmlize.el' package to convert the
  4122. buffer to HTML and save it to this file name. If the extension is
  4123. `.ps', `ps-print-buffer-with-faces' is used to produce postscript
  4124. output. Any other extension produces a plain ASCII file.
  4125. The export files are _not_ created when you use one of those
  4126. commands interactively. Instead, there is a special command to produce
  4127. _all_ specified files in one step:
  4128. `C-c a e'
  4129. Export all agenda views that have export filenames associated with
  4130. them.
  4131. You can use the options section of the custom agenda commands to also
  4132. set options for the export commands. For example:
  4133. (setq org-agenda-custom-commands
  4134. '(("X" agenda ""
  4135. ((ps-number-of-columns 2)
  4136. (ps-landscape-mode t)
  4137. (org-agenda-prefix-format " [ ] ")
  4138. (org-agenda-with-colors nil)
  4139. (org-agenda-remove-tags t))
  4140. ("theagenda.ps"))))
  4141. This command sets two options for the postscript exporter, to make it
  4142. print in two columns in landscape format - the resulting page can be cut
  4143. in two and then used in a paper agenda. The remaining settings modify
  4144. the agenda prefix to omit category and scheduling information, and
  4145. instead include a checkbox to check off items. We also remove the tags
  4146. to make the lines compact, and we don't want to use colors for the
  4147. black-and-white printer. Settings specified in
  4148. `org-agenda-exporter-settings' will also apply, but the settings in
  4149. `org-agenda-custom-commands' take precedence.
  4150. From the command line you may also use
  4151. emacs -f org-batch-store-agenda-views -kill
  4152. or, if you need to modify some parameters
  4153. emacs -eval '(org-batch-store-agenda-views \
  4154. org-agenda-ndays 30 \
  4155. org-agenda-start-day "2007-11-01" \
  4156. org-agenda-include-diary nil \
  4157. org-agenda-files (quote ("~/org/project.org")))' \
  4158. -kill
  4159. which will create the agenda views restricted to the file
  4160. `~/org/project.org', without diary entries and with 30 days extent.
  4161. ---------- Footnotes ----------
  4162. (1) You need to install Hrvoje Niksic' `htmlize.el'.
  4163. (2) If you want to store standard views like the weekly agenda or
  4164. the global TODO list as well, you need to define custom commands for
  4165. them in order to be able to specify filenames.
  4166. 
  4167. File: org, Node: Extracting Agenda Information for other programs, Prev: Exporting Agenda Views, Up: Custom agenda views
  4168. 10.6.5 Extracting Agenda Information for other programs
  4169. -------------------------------------------------------
  4170. Org-mode provides commands to access agenda information for the command
  4171. line in emacs batch mode. This extracted information can be sent
  4172. directly to a printer, or it can be read by a program that does further
  4173. processing of the data. The first of these commands is the function
  4174. `org-batch-agenda', that produces an agenda view and sends it as ASCII
  4175. text to STDOUT. The command takes a single string as parameter. If
  4176. the string has length 1, it is used as a key to one of the commands you
  4177. have configured in `org-agenda-custom-commands', basically any key you
  4178. can use after `C-c a'. For example, to directly print the current TODO
  4179. list, you could use
  4180. emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
  4181. If the parameter is a string with 2 or more characters, it is used
  4182. as a tags/todo match string. For example, to print your local shopping
  4183. list (all items with the tag `shop', but excluding the tag `NewYork'),
  4184. you could use
  4185. emacs -batch -l ~/.emacs \
  4186. -eval '(org-batch-agenda "+shop-NewYork")' | lpr
  4187. You may also modify parameters on the fly like this:
  4188. emacs -batch -l ~/.emacs \
  4189. -eval '(org-batch-agenda "a" \
  4190. org-agenda-ndays 30 \
  4191. org-agenda-include-diary nil \
  4192. org-agenda-files (quote ("~/org/project.org")))' \
  4193. | lpr
  4194. which will produce a 30 day agenda, fully restricted to the Org file
  4195. `~/org/projects.org', not even including the diary.
  4196. If you want to process the agenda data in more sophisticated ways,
  4197. you can use the command `org-batch-agenda-csv' to get a comma-separated
  4198. list of values for each agenda item. Each line in the output will
  4199. contain a number of fields separated by commas. The fields in a line
  4200. are:
  4201. category The category of the item
  4202. head The headline, without TODO kwd, TAGS and PRIORITY
  4203. type The type of the agenda entry, can be
  4204. todo selected in TODO match
  4205. tagsmatch selected in tags match
  4206. diary imported from diary
  4207. deadline a deadline
  4208. scheduled scheduled
  4209. timestamp appointment, selected by timestamp
  4210. closed entry was closed on date
  4211. upcoming-deadline warning about nearing deadline
  4212. past-scheduled forwarded scheduled item
  4213. block entry has date block including date
  4214. todo The todo keyword, if any
  4215. tags All tags including inherited ones, separated by colons
  4216. date The relevant date, like 2007-2-14
  4217. time The time, like 15:00-16:50
  4218. extra String with extra planning info
  4219. priority-l The priority letter if any was given
  4220. priority-n The computed numerical priority
  4221. Time and date will only be given if a timestamp (or deadline/scheduled)
  4222. lead to the selection of the item.
  4223. A CSV list like this is very easy to use in a post processing script.
  4224. For example, here is a Perl program that gets the TODO list from
  4225. Emacs/org-mode and prints all the items, preceded by a checkbox:
  4226. #!/usr/bin/perl
  4227. # define the Emacs command to run
  4228. $cmd = "emacs -batch -l ~/.emacs -eval '(org-batch-agenda-csv \"t\")'";
  4229. # run it and capture the output
  4230. $agenda = qx{$cmd 2>/dev/null};
  4231. # loop over all lines
  4232. foreach $line (split(/\n/,$agenda)) {
  4233. # get the individual values
  4234. ($category,$head,$type,$todo,$tags,$date,$time,$extra,
  4235. $priority_l,$priority_n) = split(/,/,$line);
  4236. # proccess and print
  4237. print "[ ] $head\n";
  4238. }
  4239. 
  4240. File: org, Node: Embedded LaTeX, Next: Exporting, Prev: Agenda views, Up: Top
  4241. 11 Embedded LaTeX
  4242. *****************
  4243. Plain ASCII is normally sufficient for almost all note taking. One
  4244. exception, however, are scientific notes which need to be able to
  4245. contain mathematical symbols and the occasional formula. LaTeX(1) is
  4246. widely used to typeset scientific documents. Org-mode supports
  4247. embedding LaTeX code into its files, because many academics are used to
  4248. read LaTeX source code, and because it can be readily processed into
  4249. images for HTML production.
  4250. It is not necessary to mark LaTeX macros and code in any special way.
  4251. If you observe a few conventions, Org-mode knows how to find it and what
  4252. to do with it.
  4253. * Menu:
  4254. * Math symbols:: TeX macros for symbols and Greek letters
  4255. * Subscripts and Superscripts:: Simple syntax for raising/lowering text
  4256. * LaTeX fragments:: Complex formulas made easy
  4257. * Processing LaTeX fragments:: Previewing LaTeX processing
  4258. * CDLaTeX mode:: Speed up entering of formulas
  4259. ---------- Footnotes ----------
  4260. (1) LaTeX is a macro system based on Donald E. Knuth's TeX system.
  4261. Many of the features described here as "LaTeX" are really from TeX, but
  4262. for simplicity I am blurring this distinction.
  4263. 
  4264. File: org, Node: Math symbols, Next: Subscripts and Superscripts, Prev: Embedded LaTeX, Up: Embedded LaTeX
  4265. 11.1 Math symbols
  4266. =================
  4267. You can use LaTeX macros to insert special symbols like `\alpha' to
  4268. indicate the Greek letter, or `\to' to indicate an arrow. Completion
  4269. for these macros is available, just type `\' and maybe a few letters,
  4270. and press `M-<TAB>' to see possible completions. Unlike LaTeX code,
  4271. Org-mode allows these macros to be present without surrounding math
  4272. delimiters, for example:
  4273. Angles are written as Greek letters \alpha, \beta and \gamma.
  4274. During HTML export (*note HTML export::), these symbols are
  4275. translated into the proper syntax for HTML, for the above examples this
  4276. is `&alpha;' and `&rarr;', respectively.
  4277. 
  4278. File: org, Node: Subscripts and Superscripts, Next: LaTeX fragments, Prev: Math symbols, Up: Embedded LaTeX
  4279. 11.2 Subscripts and Superscripts
  4280. ================================
  4281. Just like in LaTeX, `^' and `_' are used to indicate super- and
  4282. subscripts. Again, these can be used without embedding them in
  4283. math-mode delimiters. To increase the readability of ASCII text, it is
  4284. not necessary (but OK) to surround multi-character sub- and superscripts
  4285. with curly braces. For example
  4286. The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of
  4287. the sun is R_{sun} = 6.96 x 10^8 m.
  4288. To avoid interpretation as raised or lowered text, you can quote `^'
  4289. and `_' with a backslash: `\_' and `\^'.
  4290. During HTML export (*note HTML export::), subscript and superscripts
  4291. are surrounded with `<sub>' and `<sup>' tags, respectively.
  4292. 
  4293. File: org, Node: LaTeX fragments, Next: Processing LaTeX fragments, Prev: Subscripts and Superscripts, Up: Embedded LaTeX
  4294. 11.3 LaTeX fragments
  4295. ====================
  4296. With symbols, sub- and superscripts, HTML is pretty much at its end when
  4297. it comes to representing mathematical formulas(1). More complex
  4298. expressions need a dedicated formula processor. To this end, Org-mode
  4299. can contain arbitrary LaTeX fragments. It provides commands to preview
  4300. the typeset result of these fragments, and upon export to HTML, all
  4301. fragments will be converted to images and inlined into the HTML
  4302. document(2). For this to work you need to be on a system with a working
  4303. LaTeX installation. You also need the `dvipng' program, available at
  4304. `http://sourceforge.net/projects/dvipng/'. The LaTeX header that will
  4305. be used when processing a fragment can be configured with the variable
  4306. `org-format-latex-header'.
  4307. LaTeX fragments don't need any special marking at all. The following
  4308. snippets will be identified as LaTeX source code:
  4309. * Environments of any kind. The only requirement is that the
  4310. `\begin' statement appears on a new line, preceded by only
  4311. whitespace.
  4312. * Text within the usual LaTeX math delimiters. To avoid conflicts
  4313. with currency specifications, single `$' characters are only
  4314. recognized as math delimiters if the enclosed text contains at
  4315. most two line breaks, is directly attached to the `$' characters
  4316. with no whitespace in between, and if the closing `$' is followed
  4317. by whitespace or punctuation. For the other delimiters, there is
  4318. no such restriction, so when in doubt, use `\(...\)' as inline
  4319. math delimiters.
  4320. For example:
  4321. \begin{equation} % arbitrary environments,
  4322. x=\sqrt{b} % even tables, figures
  4323. \end{equation} % etc
  4324. If $a^2=b$ and \( b=2 \), then the solution must be
  4325. either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
  4326. If you need any of the delimiter ASCII sequences for other purposes, you
  4327. can configure the option `org-format-latex-options' to deselect the
  4328. ones you do not wish to have interpreted by the LaTeX converter.
  4329. ---------- Footnotes ----------
  4330. (1) Yes, there is MathML, but that is not yet fully supported by
  4331. many browsers, and there is no decent converter for turning LaTeX or
  4332. ASCII representations of formulas into MathML. So for the time being,
  4333. converting formulas into images seems the way to go.
  4334. (2) The LaTeX export will not use images for displaying LaTeX
  4335. fragments but include these fragments directly into the LaTeX code.
  4336. 
  4337. File: org, Node: Processing LaTeX fragments, Next: CDLaTeX mode, Prev: LaTeX fragments, Up: Embedded LaTeX
  4338. 11.4 Processing LaTeX fragments
  4339. ===============================
  4340. LaTeX fragments can be processed to produce a preview images of the
  4341. typeset expressions:
  4342. `C-c C-x C-l'
  4343. Produce a preview image of the LaTeX fragment at point and overlay
  4344. it over the source code. If there is no fragment at point,
  4345. process all fragments in the current entry (between two
  4346. headlines). When called with a prefix argument, process the
  4347. entire subtree. When called with two prefix arguments, or when
  4348. the cursor is before the first headline, process the entire buffer.
  4349. `C-c C-c'
  4350. Remove the overlay preview images.
  4351. During HTML export (*note HTML export::), all LaTeX fragments are
  4352. converted into images and inlined into the document if the following
  4353. setting is active:
  4354. (setq org-export-with-LaTeX-fragments t)
  4355. 
  4356. File: org, Node: CDLaTeX mode, Prev: Processing LaTeX fragments, Up: Embedded LaTeX
  4357. 11.5 Using CDLaTeX to enter math
  4358. ================================
  4359. CDLaTeX-mode is a minor mode that is normally used in combination with a
  4360. major LaTeX mode like AUCTeX in order to speed-up insertion of
  4361. environments and math templates. Inside Org-mode, you can make use of
  4362. some of the features of cdlatex-mode. You need to install `cdlatex.el'
  4363. and `texmathp.el' (the latter comes also with AUCTeX) from
  4364. `http://www.astro.uva.nl/~dominik/Tools/cdlatex'. Don't turn
  4365. cdlatex-mode itself under Org-mode, but use the light version
  4366. `org-cdlatex-mode' that comes as part of Org-mode. Turn it on for the
  4367. current buffer with `M-x org-cdlatex-mode', or for all Org-mode files
  4368. with
  4369. (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
  4370. When this mode is enabled, the following features are present (for
  4371. more details see the documentation of cdlatex-mode):
  4372. * Environment templates can be inserted with `C-c {'.
  4373. * The <TAB> key will do template expansion if the cursor is inside a
  4374. LaTeX fragment(1). For example, <TAB> will expand `fr' to
  4375. `\frac{}{}' and position the cursor correctly inside the first
  4376. brace. Another <TAB> will get you into the second brace. Even
  4377. outside fragments, <TAB> will expand environment abbreviations at
  4378. the beginning of a line. For example, if you write `equ' at the
  4379. beginning of a line and press <TAB>, this abbreviation will be
  4380. expanded to an `equation' environment. To get a list of all
  4381. abbreviations, type `M-x cdlatex-command-help'.
  4382. * Pressing `_' and `^' inside a LaTeX fragment will insert these
  4383. characters together with a pair of braces. If you use <TAB> to
  4384. move out of the braces, and if the braces surround only a single
  4385. character or macro, they are removed again (depending on the
  4386. variable `cdlatex-simplify-sub-super-scripts').
  4387. * Pressing the backquote ``' followed by a character inserts math
  4388. macros, also outside LaTeX fragments. If you wait more than 1.5
  4389. seconds after the backquote, a help window will pop up.
  4390. * Pressing the normal quote `'' followed by another character
  4391. modifies the symbol before point with an accent or a font. If you
  4392. wait more than 1.5 seconds after the backquote, a help window will
  4393. pop up. Character modification will work only inside LaTeX
  4394. fragments, outside the quote is normal.
  4395. ---------- Footnotes ----------
  4396. (1) Org-mode has a method to test if the cursor is inside such a
  4397. fragment, see the documentation of the function
  4398. `org-inside-LaTeX-fragment-p'.
  4399. 
  4400. File: org, Node: Exporting, Next: Publishing, Prev: Embedded LaTeX, Up: Top
  4401. 12 Exporting
  4402. ************
  4403. Org-mode documents can be exported into a variety of other formats. For
  4404. printing and sharing of notes, ASCII export produces a readable and
  4405. simple version of an Org-mode file. HTML export allows you to publish a
  4406. notes file on the web, while the XOXO format provides a solid base for
  4407. exchange with a broad range of other applications. LaTeX export lets
  4408. you use Org-mode and its structured editing functions to easily create
  4409. LaTeX files. To incorporate entries with associated times like
  4410. deadlines or appointments into a desktop calendar program like iCal,
  4411. Org-mode can also produce extracts in the iCalendar format. Currently
  4412. Org-mode only supports export, not import of these different formats.
  4413. When exporting, Org-mode uses special conventions to enrich the
  4414. output produced. *Note Text interpretation::, for more details.
  4415. `C-c C-e'
  4416. Dispatcher for export and publishing commands. Displays a
  4417. help-window listing the additional key(s) needed to launch an
  4418. export or publishing command.
  4419. * Menu:
  4420. * ASCII export:: Exporting to plain ASCII
  4421. * HTML export:: Exporting to HTML
  4422. * LaTeX export:: Exporting to LaTeX
  4423. * XOXO export:: Exporting to XOXO
  4424. * iCalendar export:: Exporting in iCalendar format
  4425. * Text interpretation:: How the exporter looks at the file
  4426. 
  4427. File: org, Node: ASCII export, Next: HTML export, Prev: Exporting, Up: Exporting
  4428. 12.1 ASCII export
  4429. =================
  4430. ASCII export produces a simple and very readable version of an Org-mode
  4431. file.
  4432. `C-c C-e a'
  4433. Export as ASCII file. For an org file `myfile.org', the ASCII file
  4434. will be `myfile.txt'. The file will be overwritten without
  4435. warning. If there is an active region, only the region will be
  4436. exported. If the selected region is a single tree, the tree head
  4437. will become the document title. If the tree head entry has or
  4438. inherits an EXPORT_FILE_NAME property, that name will be used for
  4439. the export.
  4440. `C-c C-e v a'
  4441. Export only the visible part of the document.
  4442. In the exported version, the first 3 outline levels will become
  4443. headlines, defining a general document structure. Additional levels
  4444. will be exported as itemized lists. If you want that transition to
  4445. occur at a different level, specify it with a prefix argument. For
  4446. example,
  4447. C-1 C-c C-e a
  4448. creates only top level headlines and does the rest as items. When
  4449. headlines are converted to items, the indentation of the text following
  4450. the headline is changed to fit nicely under the item. This is done with
  4451. the assumption that the first bodyline indicates the base indentation of
  4452. the body text. Any indentation larger than this is adjusted to preserve
  4453. the layout relative to the first line. Should there be lines with less
  4454. indentation than the first, these are left alone.
  4455. 
  4456. File: org, Node: HTML export, Next: LaTeX export, Prev: ASCII export, Up: Exporting
  4457. 12.2 HTML export
  4458. ================
  4459. Org-mode contains an HTML (XHTML 1.0 strict) exporter with extensive
  4460. HTML formatting, in ways similar to John Grubers _markdown_ language,
  4461. but with additional support for tables.
  4462. * Menu:
  4463. * HTML Export commands:: How to invoke LaTeX export
  4464. * Quoting HTML tags:: Using direct HTML in Org-mode
  4465. * Links:: Transformation of links for HTML
  4466. * Images:: How to include images
  4467. * CSS support:: Changing the appearence of the output
  4468. 
  4469. File: org, Node: HTML Export commands, Next: Quoting HTML tags, Prev: HTML export, Up: HTML export
  4470. 12.2.1 HTML export commands
  4471. ---------------------------
  4472. `C-c C-e h'
  4473. Export as HTML file `myfile.html'. For an org file `myfile.org',
  4474. the ASCII file will be `myfile.html'. The file will be
  4475. overwritten without warning. If there is an active region, only
  4476. the region will be exported. If the selected region is a single
  4477. tree, the tree head will become the document title. If the tree
  4478. head entry has or inherits an EXPORT_FILE_NAME property, that name
  4479. will be used for the export.
  4480. `C-c C-e b'
  4481. Export as HTML file and immediately open it with a browser.
  4482. `C-c C-e H'
  4483. Export to a temporary buffer, do not create a file.
  4484. `C-c C-e R'
  4485. Export the active region to a temporary buffer. With prefix arg,
  4486. do not produce file header and foot, but just the plain HTML
  4487. section for the region. This is good for cut-and-paste operations.
  4488. `C-c C-e v h'
  4489. `C-c C-e v b'
  4490. `C-c C-e v H'
  4491. `C-c C-e v R'
  4492. Export only the visible part of the document.
  4493. `M-x org-export-region-as-html'
  4494. Convert the region to HTML under the assumption that it was
  4495. org-mode syntax before. This is a global command that can be
  4496. invoked in any buffer.
  4497. `M-x org-replace-region-by-HTML'
  4498. Replace the active region (assumed to be in Org-mode syntax) by
  4499. HTML code.
  4500. In the exported version, the first 3 outline levels will become
  4501. headlines, defining a general document structure. Additional levels
  4502. will be exported as itemized lists. If you want that transition to
  4503. occur at a different level, specify it with a prefix argument. For
  4504. example,
  4505. C-2 C-c C-e b
  4506. creates two levels of headings and does the rest as items.
  4507. 
  4508. File: org, Node: Quoting HTML tags, Next: Links, Prev: HTML Export commands, Up: HTML export
  4509. 12.2.2 Quoting HTML tags
  4510. ------------------------
  4511. Plain `<' and `>' are always transformed to `&lt;' and `&gt;' in HTML
  4512. export. If you want to include simple HTML tags which should be
  4513. interpreted as such, mark them with `@' as in `@<b>bold text@</b>'.
  4514. Note that this really works only for simple tags. For more extensive
  4515. HTML that should be copied verbatim to the exported file use either
  4516. #+HTML: Literal HTML code for export
  4517. or
  4518. #+BEGIN_HTML
  4519. All lines between these markers are exported literally
  4520. #+END_HTML
  4521. 
  4522. File: org, Node: Links, Next: Images, Prev: Quoting HTML tags, Up: HTML export
  4523. 12.2.3 Links
  4524. ------------
  4525. Internal links (*note Internal links::) will continue to work in HTML
  4526. files only if they match a dedicated `<<target>>'. Automatic links
  4527. created by radio targets (*note Radio targets::) will also work in the
  4528. HTML file. Links to external files will still work if the HTML file is
  4529. in the same directory as the Org-mode file. Links to other `.org'
  4530. files will be translated into HTML links under the assumption that an
  4531. HTML version also exists of the linked file. For information related to
  4532. linking files while publishing them to a publishing directory see *Note
  4533. Publishing links::.
  4534. 
  4535. File: org, Node: Images, Next: CSS support, Prev: Links, Up: HTML export
  4536. 12.2.4 Images
  4537. -------------
  4538. HTML export can inline images given as links in the Org-mode file, and
  4539. it can make an image the clickable part of a link. By default(1),
  4540. images are inlined if a link does not have a description. So
  4541. `[[file:myimg.jpg]]' will be inlined, while `[[file:myimg.jpg][the
  4542. image]]' will just produce a link `the image' that points to the image.
  4543. If the description part itself is a `file:' link or a `http:' URL
  4544. pointing to an image, this image will be inlined and activated so that
  4545. clicking on the image will activate the link. For example, to include
  4546. a thumbnail that will link to a high resolution version of the image,
  4547. you could use:
  4548. [[file:highres.jpg][file:thumb.jpg]]
  4549. and you could use `http' addresses just as well.
  4550. ---------- Footnotes ----------
  4551. (1) but see the variable `org-export-html-inline-images'
  4552. 
  4553. File: org, Node: CSS support, Prev: Images, Up: HTML export
  4554. 12.2.5 CSS support
  4555. ------------------
  4556. You can also give style information for the exported file. The HTML
  4557. exporter assigns the following CSS classes to appropriate parts of the
  4558. document - your style specifications may change these:
  4559. .todo TODO keywords
  4560. .done the DONE keyword
  4561. .timestamp time stamp
  4562. .timestamp-kwd keyword associated with a time stamp, like SCHEDULED
  4563. .tag tag in a headline
  4564. .target target for links
  4565. The default style specification can be configured through the option
  4566. `org-export-html-style'. If you want to use a file-local style, you
  4567. may use file variables, best wrapped into a COMMENT section at the end
  4568. of the outline tree. For example(1):
  4569. * COMMENT html style specifications
  4570. # Local Variables:
  4571. # org-export-html-style: " <style type=\"text/css\">
  4572. # p {font-weight: normal; color: gray; }
  4573. # h1 {color: black; }
  4574. # </style>"
  4575. # End:
  4576. Remember to execute `M-x normal-mode' after changing this to make
  4577. the new style visible to Emacs. This command restarts org-mode for the
  4578. current buffer and forces Emacs to re-evaluate the local variables
  4579. section in the buffer.
  4580. ---------- Footnotes ----------
  4581. (1) Under Emacs 21, the continuation lines for a variable value
  4582. should have no `#' at the start of the line.
  4583. 
  4584. File: org, Node: LaTeX export, Next: XOXO export, Prev: HTML export, Up: Exporting
  4585. 12.3 LaTeX export
  4586. =================
  4587. Org-mode contains a LaTeX exporter written by Bastien Guerry.
  4588. * Menu:
  4589. * LaTeX export commands:: How to invoke LaTeX export
  4590. * Quoting LaTeX code:: Incorporating literal LaTeX code
  4591. * Sectioning structure::
  4592. 
  4593. File: org, Node: LaTeX export commands, Next: Quoting LaTeX code, Prev: LaTeX export, Up: LaTeX export
  4594. 12.3.1 LaTeX export commands
  4595. ----------------------------
  4596. `C-c C-e l'
  4597. Export as LaTeX file `myfile.tex'.
  4598. `C-c C-e L'
  4599. Export to a temporary buffer, do not create a file.
  4600. `C-c C-e v l'
  4601. `C-c C-e v L'
  4602. Export only the visible part of the document.
  4603. `M-x org-export-region-as-latex'
  4604. Convert the region to LaTeX under the assumption that it was
  4605. org-mode syntax before. This is a global command that can be
  4606. invoked in any buffer.
  4607. `M-x org-replace-region-by-latex'
  4608. Replace the active region (assumed to be in Org-mode syntax) by
  4609. LaTeX code.
  4610. In the exported version, the first 3 outline levels will become
  4611. headlines, defining a general document structure. Additional levels
  4612. will be exported as description lists. The exporter can ignore them or
  4613. convert them to a custom string depending on `org-latex-low-levels'.
  4614. If you want that transition to occur at a different level, specify it
  4615. with a prefix argument. For example,
  4616. C-2 C-c C-e l
  4617. creates two levels of headings and does the rest as items.
  4618. 
  4619. File: org, Node: Quoting LaTeX code, Next: Sectioning structure, Prev: LaTeX export commands, Up: LaTeX export
  4620. 12.3.2 Quoting LaTeX code
  4621. -------------------------
  4622. Embedded LaTeX as described in *Note Embedded LaTeX:: will be correctly
  4623. inserted into the LaTeX file. Forthermore, you can add special code
  4624. that should only be present in LaTeX export with the following
  4625. constructs:
  4626. #+LaTeX: Literal LaTeX code for export
  4627. or
  4628. #+BEGIN_LaTeX
  4629. All lines between these markers are exported literally
  4630. #+END_LaTeX
  4631. 
  4632. File: org, Node: Sectioning structure, Prev: Quoting LaTeX code, Up: LaTeX export
  4633. 12.3.3 Sectioning structure
  4634. ---------------------------
  4635. By default, the LaTeX output uses the class `article'.
  4636. You can change this globally by setting a different value for
  4637. `org-export-latex-default-class' or locally by adding an option like
  4638. `#+LaTeX_CLASS: myclass' in your file. The class should be listed in
  4639. `org-export-latex-classes', where you can also define the sectioning
  4640. structure for each class.
  4641. 
  4642. File: org, Node: XOXO export, Next: iCalendar export, Prev: LaTeX export, Up: Exporting
  4643. 12.4 XOXO export
  4644. ================
  4645. Org-mode contains an exporter that produces XOXO-style output.
  4646. Currently, this exporter only handles the general outline structure and
  4647. does not interpret any additional Org-mode features.
  4648. `C-c C-e x'
  4649. Export as XOXO file `myfile.html'.
  4650. `C-c C-e v x'
  4651. Export only the visible part of the document.
  4652. 
  4653. File: org, Node: iCalendar export, Next: Text interpretation, Prev: XOXO export, Up: Exporting
  4654. 12.5 iCalendar export
  4655. =====================
  4656. Some people like to use Org-mode for keeping track of projects, but
  4657. still prefer a standard calendar application for anniversaries and
  4658. appointments. In this case it can be useful to have deadlines and
  4659. other time-stamped items in Org-mode files show up in the calendar
  4660. application. Org-mode can export calendar information in the standard
  4661. iCalendar format. If you also want to have TODO entries included in the
  4662. export, configure the variable `org-icalendar-include-todo'.
  4663. `C-c C-e i'
  4664. Create iCalendar entries for the current file and store them in
  4665. the same directory, using a file extension `.ics'.
  4666. `C-c C-e I'
  4667. Like `C-c C-e i', but do this for all files in `org-agenda-files'.
  4668. For each of these files, a separate iCalendar file will be
  4669. written.
  4670. `C-c C-e c'
  4671. Create a single large iCalendar file from all files in
  4672. `org-agenda-files' and write it to the file given by
  4673. `org-combined-agenda-icalendar-file'.
  4674. The export will honor SUMMARY, DESCRIPTION and LOCATION properties if
  4675. the selected entries have them. If not, the summary will be derived
  4676. from the headline, and the description from the body (limited to
  4677. `org-icalendar-include-body' characters).
  4678. How this calendar is best read and updated, depends on the
  4679. application you are using. The FAQ covers this issue.
  4680. 
  4681. File: org, Node: Text interpretation, Prev: iCalendar export, Up: Exporting
  4682. 12.6 Text interpretation by the exporter
  4683. ========================================
  4684. The exporter backends interpret additional structure in the Org-mode
  4685. file in order to produce better output.
  4686. * Menu:
  4687. * Comment lines:: Some lines will not be exported
  4688. * Initial text:: Text before the first headline
  4689. * Footnotes:: Numbers like [1]
  4690. * Quoted examples:: Inserting quoted chnuks of text
  4691. * Enhancing text:: Subscripts, symbols and more
  4692. * Export options:: How to influence the export settings
  4693. 
  4694. File: org, Node: Comment lines, Next: Initial text, Prev: Text interpretation, Up: Text interpretation
  4695. 12.6.1 Comment lines
  4696. --------------------
  4697. Lines starting with `#' in column zero are treated as comments and will
  4698. never be exported. Also entire subtrees starting with the word
  4699. `COMMENT' will never be exported.
  4700. `C-c ;'
  4701. Toggle the COMMENT keyword at the beginning of an entry.
  4702. 
  4703. File: org, Node: Initial text, Next: Footnotes, Prev: Comment lines, Up: Text interpretation
  4704. 12.6.2 Text before the first headline
  4705. -------------------------------------
  4706. Org-mode normally ignores any text before the first headline when
  4707. exporting, leaving this region for internal links to speed up navigation
  4708. etc. However, in publishing-oriented files, you might want to have some
  4709. text before the first headline, like a small introduction, special HTML
  4710. code with a navigation bar, etc. You can ask to have this part of the
  4711. file exported as well by setting the variable
  4712. `org-export-skip-text-before-1st-heading' to `nil'. On a per-file
  4713. basis, you can get the same effect with
  4714. #+OPTIONS: skip:nil
  4715. The text before the first headline will be fully processed (*note
  4716. Enhancing text::), and the first non-comment line becomes the title of
  4717. the exported document. If you need to include literal HTML, use the
  4718. special constructs described in *Note Quoting HTML tags::. The table
  4719. of contents is normally inserted directly before the first headline of
  4720. the file. If you would like to get it to a different location, insert
  4721. the string `[TABLE-OF-CONTENTS]' on a line by itself at the desired
  4722. location.
  4723. Finally, if you want to use the space before the first headline for
  4724. internal purposes, but _still_ want to place something before the first
  4725. headline when exporting the file, you can use the `#+TEXT' construct:
  4726. #+OPTIONS: skip:t
  4727. #+TEXT: This text will go before the *first* headline.
  4728. #+TEXT: We place the table of contents here:
  4729. #+TEXT: [TABLE-OF-CONTENTS]
  4730. #+TEXT: This goes between the table of contents and the first headline
  4731. 
  4732. File: org, Node: Footnotes, Next: Quoted examples, Prev: Initial text, Up: Text interpretation
  4733. 12.6.3 Footnotes
  4734. ----------------
  4735. Numbers in square brackets are treated as footnotes, so that you can use
  4736. the Emacs package `footnote.el' to create footnotes. For example:
  4737. The org-mode homepage[1] clearly needs help from
  4738. a good web designer.
  4739. [1] The link is: http://orgmode.org
  4740. Note that the `footnote' package uses `C-c !' to invoke its commands.
  4741. This binding conflicts with the org-mode command for inserting inactive
  4742. time stamps. You could use the variable `footnote-prefix' to switch
  4743. footnotes commands to another key. Or, if you are too used to this
  4744. binding, you could use `org-replace-disputed-keys' and
  4745. `org-disputed-keys' to change the settings in Org-mode.
  4746. 
  4747. File: org, Node: Quoted examples, Next: Enhancing text, Prev: Footnotes, Up: Text interpretation
  4748. 12.6.4 Quoted examples
  4749. ----------------------
  4750. When writing technical documents, you often need to insert examples that
  4751. are not further interpreted by Org-mode. For historical reasons, there
  4752. are several ways to do this:
  4753. * If a headline starts with the word `QUOTE', the text below the
  4754. headline will be typeset as fixed-width, to allow quoting of
  4755. computer codes etc.
  4756. * Lines starting with `:' are also typeset in fixed-width font.
  4757. `C-c :'
  4758. Toggle fixed-width for entry (QUOTE) or region, see below.
  4759. * Finally, text between
  4760. #+BEGIN_EXAMPLE
  4761. quoted text
  4762. #+END_EXAMPLE
  4763. will also be exported in this way.
  4764. 
  4765. File: org, Node: Enhancing text, Next: Export options, Prev: Quoted examples, Up: Text interpretation
  4766. 12.6.5 Enhancing text for export
  4767. --------------------------------
  4768. Some of the export backends of Org-mode allow for sophisticated text
  4769. formatting, this is true in particular for the HTML and LaTeX backends.
  4770. Org-mode has a number of typing conventions that allow to produce a
  4771. richly formatted output.
  4772. * Plain lists `-', `*' or `+' as bullet, or with `1.' or `2)' as
  4773. enumerator will be recognized and transformed if the backend
  4774. supports lists. See *Note Plain lists::.
  4775. * You can make words *bold*, /italic/, _underlined_, `=code=' and
  4776. `~verbatim~', and, if you must, `+strikethrough+'. Text in the
  4777. code and verbatim string is not processed for org-mode specific
  4778. syntax, it is exported verbatim.
  4779. * A line consisting of only dashes, and at least 5 of them, will be
  4780. exported as a horizontal line (`<hr/>' in HTML).
  4781. * Many TeX macros and entire LaTeX fragments are converted into HTML
  4782. entities or images (*note Embedded LaTeX::).
  4783. * Tables are transformed into native tables under the exporter, if
  4784. the export backend supports this. Data fields before the first
  4785. horizontal separator line will be formatted as table header fields.
  4786. * If a headline starts with the word `QUOTE', the text below the
  4787. headline will be typeset as fixed-width, to allow quoting of
  4788. computer codes etc. Lines starting with `:' are also typeset in
  4789. fixed-width font.
  4790. `C-c :'
  4791. Toggle fixed-width for entry (QUOTE) or region, see below.
  4792. Finally, text between
  4793. #+BEGIN_EXAMPLE
  4794. quoted text
  4795. #+END_EXAMPLE
  4796. will also be exported in this way.
  4797. * A double backslash _at the end of a line_ enforces a line break at
  4798. this position.
  4799. * Strings like `\alpha' will be exported as `&alpha;', in the HTML
  4800. output. These strings are exported as `$\alpha$' in the LaTeX
  4801. output. Similarly, `\nbsp' will become `&nbsp;' in HTML and in
  4802. LaTeX. This applies for a long list of entities, see the variable
  4803. `org-html-entities' for the complete list.
  4804. If these conversions conflict with your habits of typing ASCII text,
  4805. they can all be turned off with corresponding variables. See the
  4806. customization group `org-export-general', and the following section
  4807. which explains how to set export options with special lines in a buffer.
  4808. 
  4809. File: org, Node: Export options, Prev: Enhancing text, Up: Text interpretation
  4810. 12.6.6 Export options
  4811. ---------------------
  4812. The exporter recognizes special lines in the buffer which provide
  4813. additional information. These lines may be put anywhere in the file.
  4814. The whole set of lines can be inserted into the buffer with `C-c C-e
  4815. t'. For individual lines, a good way to make sure the keyword is
  4816. correct is to type `#+' and then use `M-<TAB>' completion (*note
  4817. Completion::).
  4818. `C-c C-e t'
  4819. Insert template with export options, see example below.
  4820. #+TITLE: the title to be shown (default is the buffer name)
  4821. #+AUTHOR: the author (default taken from `user-full-name')
  4822. #+DATE: A date, fixed, of a format string for `format-time-string'
  4823. #+EMAIL: his/her email address (default from `user-mail-address')
  4824. #+LANGUAGE: language for HTML, e.g. `en' (`org-export-default-language')
  4825. #+TEXT: Some descriptive text to be inserted at the beginning.
  4826. #+TEXT: Several lines may be given.
  4827. #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t ...
  4828. The OPTIONS line is a compact form to specify export settings. Here
  4829. you can:
  4830. H: set the number of headline levels for export
  4831. num: turn on/off section-numbers
  4832. toc: turn on/off table of contents, or set level limit (integer)
  4833. \n: turn on/off linebreak-preservation
  4834. @: turn on/off quoted HTML tags
  4835. :: turn on/off fixed-width sections
  4836. |: turn on/off tables
  4837. ^: turn on/off TeX-like syntax for sub- and superscripts. If
  4838. you write "^:{}", `a_{b}' will be interpreted, but
  4839. the simple `a_b' will be left as it is.
  4840. -: turn on/off conversion of special strings.
  4841. f: turn on/off foototes like this[1].
  4842. *: turn on/off emphasized text (bold, italic, underlined)
  4843. TeX: turn on/off simple TeX macros in plain text
  4844. LaTeX: turn on/off LaTeX fragments
  4845. skip: turn on/off skipping the text before the first heading
  4846. author: turn on/off inclusion of author name/email into exported file
  4847. timestamp: turn on/off inclusion creation time into exported file
  4848. d: turn on/off inclusion of drawers
  4849. These options take effect in both the HTML and LaTeX export, except
  4850. for `TeX' and `LaTeX', which are respectively `t' and `nil' for the
  4851. LaTeX export.
  4852. 
  4853. File: org, Node: Publishing, Next: Miscellaneous, Prev: Exporting, Up: Top
  4854. 13 Publishing
  4855. *************
  4856. Org-mode includes(1) a publishing management system that allows you to
  4857. configure automatic HTML conversion of _projects_ composed of
  4858. interlinked org files. This system is called _org-publish_. You can
  4859. also configure org-publish to automatically upload your exported HTML
  4860. pages and related attachments, such as images and source code files, to
  4861. a web server. Org-publish turns org-mode into a web-site authoring tool.
  4862. You can also use Org-publish to convert files into LaTeX, or even
  4863. combine HTML and LaTeX conversion so that files are available in both
  4864. formats on the server(2).
  4865. Org-publish has been contributed to Org-mode by David O'Toole.
  4866. * Menu:
  4867. * Configuration:: Defining projects
  4868. * Sample configuration:: Example projects
  4869. * Triggering publication:: Publication commands
  4870. ---------- Footnotes ----------
  4871. (1) `org-publish.el' is not distributed with Emacs 21, if you are
  4872. still using Emacs 21, you need you need to download this file
  4873. separately.
  4874. (2) Since LaTeX files on a server are not that helpful, you surely
  4875. want to perform further conversion on them - e.g. convert them to `PDF'
  4876. format.
  4877. 
  4878. File: org, Node: Configuration, Next: Sample configuration, Prev: Publishing, Up: Publishing
  4879. 13.1 Configuration
  4880. ==================
  4881. Publishing needs significant configuration to specify files, destination
  4882. and many other properties of a project.
  4883. * Menu:
  4884. * Project alist:: The central configuration variable
  4885. * Sources and destinations:: From here to there
  4886. * Selecting files:: What files are part of the project?
  4887. * Publishing action:: Setting the function doing the publishing
  4888. * Publishing options:: Tweaking HTML export
  4889. * Publishing links:: Which links keep working after publishing?
  4890. * Project page index:: Publishing a list of project files
  4891. 
  4892. File: org, Node: Project alist, Next: Sources and destinations, Prev: Configuration, Up: Configuration
  4893. 13.1.1 The variable `org-publish-project-alist'
  4894. -----------------------------------------------
  4895. Org-publish is configured almost entirely through setting the value of
  4896. one variable, called `org-publish-project-alist'. Each element of the
  4897. list configures one project, and may be in one of the two following
  4898. forms:
  4899. ("project-name" :property value :property value ...)
  4900. or
  4901. ("project-name" :components ("project-name" "project-name" ...))
  4902. In both cases, projects are configured by specifying property values.
  4903. A project defines the set of files that will be published, as well as
  4904. the publishing configuration to use when publishing those files. When
  4905. a project takes the second form listed above, the individual members of
  4906. the "components" property are taken to be components of the project,
  4907. which group together files requiring different publishing options. When
  4908. you publish such a "meta-project" all the components will also publish.
  4909. 
  4910. File: org, Node: Sources and destinations, Next: Selecting files, Prev: Project alist, Up: Configuration
  4911. 13.1.2 Sources and destinations for files
  4912. -----------------------------------------
  4913. Most properties are optional, but some should always be set. In
  4914. particular, org-publish needs to know where to look for source files,
  4915. and where to put published files.
  4916. `:base-directory' Directory containing publishing source files
  4917. `:publishing-directory'Directory (possibly remote) where output files
  4918. will be published.
  4919. `:preparation-function'Function called before starting publishing
  4920. process, for example to run `make' for updating
  4921. files to be published.
  4922. 
  4923. File: org, Node: Selecting files, Next: Publishing action, Prev: Sources and destinations, Up: Configuration
  4924. 13.1.3 Selecting files
  4925. ----------------------
  4926. By default, all files with extension `.org' in the base directory are
  4927. considered part of the project. This can be modified by setting the
  4928. properties
  4929. `:base-extension' Extension (without the dot!) of source files. This
  4930. actually is a regular expression.
  4931. `:exclude' Regular expression to match file names that should
  4932. not be published, even though they have been selected
  4933. on the basis of their extension.
  4934. `:include' List of files to be included regardless of
  4935. `:base-extension' and `:exclude'.
  4936. 
  4937. File: org, Node: Publishing action, Next: Publishing options, Prev: Selecting files, Up: Configuration
  4938. 13.1.4 Publishing Action
  4939. ------------------------
  4940. Publishing means that a file is copied to the destination directory and
  4941. possibly transformed in the process. The default transformation is to
  4942. export Org-mode files as HTML files, and this is done by the function
  4943. `org-publish-org-to-html' which calls the HTML exporter (*note HTML
  4944. export::). But you also can publish your files in LaTeX by using the
  4945. function `org-publish-org-to-latex' instead. Other files like images
  4946. only need to be copied to the publishing destination. For non-Org-mode
  4947. files, you need to specify the publishing function.
  4948. `:publishing-function' Function executing the publication of a file.
  4949. This may also be a list of functions, which will
  4950. all be called in turn.
  4951. The function must accept two arguments: a property list containing at
  4952. least a `:publishing-directory' property, and the name of the file to
  4953. be published. It should take the specified file, make the necessary
  4954. transformation (if any) and place the result into the destination
  4955. folder. You can write your own publishing function, but `org-publish'
  4956. provides one for attachments (files that only need to be copied):
  4957. `org-publish-attachment'.
  4958. 
  4959. File: org, Node: Publishing options, Next: Publishing links, Prev: Publishing action, Up: Configuration
  4960. 13.1.5 Options for the HTML/LaTeX exporters
  4961. -------------------------------------------
  4962. The property list can be used to set many export options for the HTML
  4963. and LaTeX exporters. In most cases, these properties correspond to user
  4964. variables in Org-mode. The table below lists these properties along
  4965. with the variable they belong to. See the documentation string for the
  4966. respective variable for details.
  4967. `:language' `org-export-default-language'
  4968. `:headline-levels' `org-export-headline-levels'
  4969. `:section-numbers' `org-export-with-section-numbers'
  4970. `:table-of-contents' `org-export-with-toc'
  4971. `:archived-trees' `org-export-with-archived-trees'
  4972. `:emphasize' `org-export-with-emphasize'
  4973. `:sub-superscript' `org-export-with-sub-superscripts'
  4974. `:special-strings' `org-export-with-special-strings'
  4975. `:TeX-macros' `org-export-with-TeX-macros'
  4976. `:LaTeX-fragments' `org-export-with-LaTeX-fragments'
  4977. `:fixed-width' `org-export-with-fixed-width'
  4978. `:timestamps' `org-export-with-timestamps'
  4979. .
  4980. `:tags' `org-export-with-tags'
  4981. .
  4982. `:tables' `org-export-with-tables'
  4983. `:table-auto-headline' `org-export-highlight-first-table-line'
  4984. `:style' `org-export-html-style'
  4985. `:convert-org-links' `org-export-html-link-org-files-as-html'
  4986. `:inline-images' `org-export-html-inline-images'
  4987. `:expand-quoted-html' `org-export-html-expand'
  4988. `:timestamp' `org-export-html-with-timestamp'
  4989. `:publishing-directory'`org-export-publishing-directory'
  4990. `:preamble' `org-export-html-preamble'
  4991. `:postamble' `org-export-html-postamble'
  4992. `:auto-preamble' `org-export-html-auto-preamble'
  4993. `:auto-postamble' `org-export-html-auto-postamble'
  4994. `:author' `user-full-name'
  4995. `:email' `user-mail-address'
  4996. If you use several email addresses, separate them by a semi-column.
  4997. Most of the `org-export-with-*' variables have the same effect in
  4998. both HTML and LaTeX exporters, except for `:TeX-macros' and
  4999. `:LaTeX-fragments', respectively `nil' and `t' in the LaTeX export.
  5000. When a property is given a value in `org-publish-project-alist', its
  5001. setting overrides the value of the corresponding user variable (if any)
  5002. during publishing. Options set within a file (*note Export options::),
  5003. however, override everything.
  5004. 
  5005. File: org, Node: Publishing links, Next: Project page index, Prev: Publishing options, Up: Configuration
  5006. 13.1.6 Links between published files
  5007. ------------------------------------
  5008. To create a link from one Org-mode file to another, you would use
  5009. something like `[[file:foo.org][The foo]]' or simply `file:foo.org.'
  5010. (*note Hyperlinks::). Upon publishing this link becomes a link to
  5011. `foo.html'. In this way, you can interlink the pages of your "org web"
  5012. project and the links will work as expected when you publish them to
  5013. HTML.
  5014. You may also link to related files, such as images. Provided you are
  5015. careful with relative pathnames, and provided you have also configured
  5016. `org-publish' to upload the related files, these links will work too.
  5017. *Note Complex example:: for an example of this usage.
  5018. Sometime an Org-mode file to be published may contain links that are
  5019. only valid in your production environment, but not in the publishing
  5020. location. In this case, use the property
  5021. `:link-validation-function' Function to validate links
  5022. to define a function for checking link validity. This function must
  5023. accept two arguments, the file name and a directory relative to which
  5024. the file name is interpreted in the production environment. If this
  5025. function returns `nil', then the HTML generator will only insert a
  5026. description into the HTML file, but no link. One option for this
  5027. function is `org-publish-validate-link' which checks if the given file
  5028. is part of any project in `org-publish-project-alist'.
  5029. 
  5030. File: org, Node: Project page index, Prev: Publishing links, Up: Configuration
  5031. 13.1.7 Project page index
  5032. -------------------------
  5033. The following properties may be used to control publishing of an index
  5034. of files or summary page for a given project.
  5035. `:auto-index' When non-nil, publish an index during
  5036. org-publish-current-project or org-publish-all.
  5037. `:index-filename' Filename for output of index. Defaults to `index.org'
  5038. (which becomes `index.html').
  5039. `:index-title' Title of index page. Defaults to name of file.
  5040. `:index-function' Plugin function to use for generation of index.
  5041. Defaults to `org-publish-org-index', which generates
  5042. a plain list of links to all files in the project.
  5043. 
  5044. File: org, Node: Sample configuration, Next: Triggering publication, Prev: Configuration, Up: Publishing
  5045. 13.2 Sample configuration
  5046. =========================
  5047. Below we provide two example configurations. The first one is a simple
  5048. project publishing only a set of Org-mode files. The second example is
  5049. more complex, with a multi-component project.
  5050. * Menu:
  5051. * Simple example:: One-component publishing
  5052. * Complex example:: A multi-component publishing example
  5053. 
  5054. File: org, Node: Simple example, Next: Complex example, Prev: Sample configuration, Up: Sample configuration
  5055. 13.2.1 Example: simple publishing configuration
  5056. -----------------------------------------------
  5057. This example publishes a set of Org-mode files to the `public_html'
  5058. directory on the local machine.
  5059. (setq org-publish-project-alist
  5060. '(("org"
  5061. :base-directory "~/org/"
  5062. :publishing-directory "~/public_html"
  5063. :section-numbers nil
  5064. :table-of-contents nil
  5065. :style "<link rel=stylesheet
  5066. href=\"../other/mystyle.css\"
  5067. type=\"text/css\">")))
  5068. 
  5069. File: org, Node: Complex example, Prev: Simple example, Up: Sample configuration
  5070. 13.2.2 Example: complex publishing configuration
  5071. ------------------------------------------------
  5072. This more complicated example publishes an entire website, including
  5073. org files converted to HTML, image files, emacs lisp source code, and
  5074. stylesheets. The publishing-directory is remote and private files are
  5075. excluded.
  5076. To ensure that links are preserved, care should be taken to replicate
  5077. your directory structure on the web server, and to use relative file
  5078. paths. For example, if your org files are kept in `~/org' and your
  5079. publishable images in `~/images', you'd link to an image with
  5080. file:../images/myimage.png
  5081. On the web server, the relative path to the image should be the
  5082. same. You can accomplish this by setting up an "images" folder in the
  5083. right place on the webserver, and publishing images to it.
  5084. (setq org-publish-project-alist
  5085. '(("orgfiles"
  5086. :base-directory "~/org/"
  5087. :base-extension "org"
  5088. :publishing-directory "/ssh:user@host:~/html/notebook/"
  5089. :publishing-function org-publish-org-to-html
  5090. :exclude "PrivatePage.org" ;; regexp
  5091. :headline-levels 3
  5092. :section-numbers nil
  5093. :table-of-contents nil
  5094. :style "<link rel=stylesheet
  5095. href=\"../other/mystyle.css\" type=\"text/css\">"
  5096. :auto-preamble t
  5097. :auto-postamble nil)
  5098. ("images"
  5099. :base-directory "~/images/"
  5100. :base-extension "jpg\\|gif\\|png"
  5101. :publishing-directory "/ssh:user@host:~/html/images/"
  5102. :publishing-function org-publish-attachment)
  5103. ("other"
  5104. :base-directory "~/other/"
  5105. :base-extension "css\\|el"
  5106. :publishing-directory "/ssh:user@host:~/html/other/"
  5107. :publishing-function org-publish-attachment)
  5108. ("website" :components ("orgfiles" "images" "other"))))
  5109. 
  5110. File: org, Node: Triggering publication, Prev: Sample configuration, Up: Publishing
  5111. 13.3 Triggering publication
  5112. ===========================
  5113. Once org-publish is properly configured, you can publish with the
  5114. following functions:
  5115. `C-c C-e C'
  5116. Prompt for a specific project and publish all files that belong to
  5117. it.
  5118. `C-c C-e P'
  5119. Publish the project containing the current file.
  5120. `C-c C-e F'
  5121. Publish only the current file.
  5122. `C-c C-e A'
  5123. Publish all projects.
  5124. Org uses timestamps to track when a file has changed. The above
  5125. functions normally only publish changed files. You can override this and
  5126. force publishing of all files by giving a prefix argument.
  5127. 
  5128. File: org, Node: Miscellaneous, Next: Extensions and Hacking, Prev: Publishing, Up: Top
  5129. 14 Miscellaneous
  5130. ****************
  5131. * Menu:
  5132. * Completion:: M-TAB knows what you need
  5133. * Customization:: Adapting Org-mode to your taste
  5134. * In-buffer settings:: Overview of the #+KEYWORDS
  5135. * The very busy C-c C-c key:: When in doubt, press C-c C-c
  5136. * Clean view:: Getting rid of leading stars in the outline
  5137. * TTY keys:: Using Org-mode on a tty
  5138. * Interaction:: Other Emacs packages
  5139. * Bugs:: Things which do not work perfectly
  5140. 
  5141. File: org, Node: Completion, Next: Customization, Prev: Miscellaneous, Up: Miscellaneous
  5142. 14.1 Completion
  5143. ===============
  5144. Org-mode supports in-buffer completion. This type of completion does
  5145. not make use of the minibuffer. You simply type a few letters into the
  5146. buffer and use the key to complete text right there.
  5147. `M-<TAB>'
  5148. Complete word at point
  5149. * At the beginning of a headline, complete TODO keywords.
  5150. * After `\', complete TeX symbols supported by the exporter.
  5151. * After `*', complete headlines in the current buffer so that
  5152. they can be used in search links like `[[*find this
  5153. headline]]'.
  5154. * After `:' in a headline, complete tags. The list of tags is
  5155. taken from the variable `org-tag-alist' (possibly set through
  5156. the `#+TAGS' in-buffer option, *note Setting tags::), or it
  5157. is created dynamically from all tags used in the current
  5158. buffer.
  5159. * After `:' and not in a headline, complete property keys. The
  5160. list of keys is constructed dynamically from all keys used in
  5161. the current buffer.
  5162. * After `[', complete link abbreviations (*note Link
  5163. abbreviations::).
  5164. * After `#+', complete the special keywords like `TYP_TODO' or
  5165. `OPTIONS' which set file-specific options for Org-mode. When
  5166. the option keyword is already complete, pressing `M-<TAB>'
  5167. again will insert example settings for this keyword.
  5168. * In the line after `#+STARTUP: ', complete startup keywords,
  5169. i.e. valid keys for this line.
  5170. * Elsewhere, complete dictionary words using ispell.
  5171. 
  5172. File: org, Node: Customization, Next: In-buffer settings, Prev: Completion, Up: Miscellaneous
  5173. 14.2 Customization
  5174. ==================
  5175. There are more than 180 variables that can be used to customize
  5176. Org-mode. For the sake of compactness of the manual, I am not
  5177. describing the variables here. A structured overview of customization
  5178. variables is available with `M-x org-customize'. Or select `Browse Org
  5179. Group' from the `Org->Customization' menu. Many settings can also be
  5180. activated on a per-file basis, by putting special lines into the buffer
  5181. (*note In-buffer settings::).
  5182. 
  5183. File: org, Node: In-buffer settings, Next: The very busy C-c C-c key, Prev: Customization, Up: Miscellaneous
  5184. 14.3 Summary of in-buffer settings
  5185. ==================================
  5186. Org-mode uses special lines in the buffer to define settings on a
  5187. per-file basis. These lines start with a `#+' followed by a keyword, a
  5188. colon, and then individual words defining a setting. Several setting
  5189. words can be in the same line, but you can also have multiple lines for
  5190. the keyword. While these settings are described throughout the manual,
  5191. here is a summary. After changing any of those lines in the buffer,
  5192. press `C-c C-c' with the cursor still in the line to activate the
  5193. changes immediately. Otherwise they become effective only when the
  5194. file is visited again in a new Emacs session.
  5195. `#+ARCHIVE: %s_done::'
  5196. This line sets the archive location for the agenda file. It
  5197. applies for all subsequent lines until the next `#+ARCHIVE' line,
  5198. or the end of the file. The first such line also applies to any
  5199. entries before it. The corresponding variable is
  5200. `org-archive-location'.
  5201. `#+CATEGORY:'
  5202. This line sets the category for the agenda file. The category
  5203. applies for all subsequent lines until the next `#+CATEGORY' line,
  5204. or the end of the file. The first such line also applies to any
  5205. entries before it.
  5206. `#+COLUMNS: %25ITEM .....'
  5207. Set the default format for columns view. This format applies when
  5208. columns view is invoked in location where no COLUMNS property
  5209. applies.
  5210. `#+CONSTANTS: name1=value1 ...'
  5211. Set file-local values for constants to be used in table formulas.
  5212. This line set the local variable
  5213. `org-table-formula-constants-local'. The global version of this
  5214. variable is `org-table-formula-constants'.
  5215. `#+DRAWERS: NAME1 .....'
  5216. Set the file-local set of drawers. The corresponding global
  5217. variable is `org-drawers'.
  5218. `#+LINK: linkword replace'
  5219. These lines (several are allowed) specify link abbreviations.
  5220. *Note Link abbreviations::. The corresponding variable is
  5221. `org-link-abbrev-alist'.
  5222. `#+PRIORITIES: highest lowest default'
  5223. This line sets the limits and the default for the priorities. All
  5224. three must be either letters A-Z or numbers 0-9. The highest
  5225. priority must have a lower ASCII number that the lowest priority.
  5226. `#+PROPERTY: Property_Name Value'
  5227. This line sets a default inheritance value for entries in the
  5228. current buffer, most useful for specifying the allowed values of a
  5229. property.
  5230. `#+STARTUP:'
  5231. This line sets options to be used at startup of Org-mode, when an
  5232. Org-mode file is being visited. The first set of options deals
  5233. with the initial visibility of the outline tree. The
  5234. corresponding variable for global default settings is
  5235. `org-startup-folded', with a default value `t', which means
  5236. `overview'.
  5237. overview top-level headlines only
  5238. content all headlines
  5239. showall no folding at all, show everything
  5240. Then there are options for aligning tables upon visiting a file.
  5241. This is useful in files containing narrowed table columns. The
  5242. corresponding variable is `org-startup-align-all-tables', with a
  5243. default value `nil'.
  5244. align align all tables
  5245. noalign don't align tables on startup
  5246. Logging TODO state changes and clock intervals (variables
  5247. `org-log-done' and `org-log-repeat') can be configured using these
  5248. options.
  5249. logging record a timestamp when an item is marked DONE
  5250. nologging don't record when items are marked DONE
  5251. lognotedone record timestamp and a note when DONE
  5252. lognotestate record timestamp and a note when TODO state changes
  5253. logrepeat record a note when re-instating a repeating item
  5254. nologrepeat do not record when re-instating repeating item
  5255. lognoteclock-out record timestamp and a note when clocking out
  5256. Here are the options for hiding leading stars in outline headings.
  5257. The corresponding variables are `org-hide-leading-stars' and
  5258. `org-odd-levels-only', both with a default setting `nil' (meaning
  5259. `showstars' and `oddeven').
  5260. hidestars make all but one of the stars starting a headline invisible.
  5261. showstars show all stars starting a headline
  5262. odd allow only odd outline levels (1,3,...)
  5263. oddeven allow all outline levels
  5264. To turn on custom format overlays over time stamps (variables
  5265. `org-put-time-stamp-overlays' and
  5266. `org-time-stamp-overlay-formats'), use
  5267. customtime overlay custom time format
  5268. The following options influence the table spreadsheet (variable
  5269. `constants-unit-system').
  5270. constcgs `constants.el' should use the c-g-s unit system
  5271. constSI `constants.el' should use the SI unit system
  5272. `#+TAGS: TAG1(c1) TAG2(c2)'
  5273. These lines (several such lines are allowed) specify the legal
  5274. tags in this file, and (potentially) the corresponding _fast tag
  5275. selection_ keys. The corresponding variable is `org-tag-alist'.
  5276. `#+TBLFM:'
  5277. This line contains the formulas for the table directly above the
  5278. line.
  5279. `#+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS, #+DATE:'
  5280. These lines provide settings for exporting files. For more
  5281. details see *Note Export options::.
  5282. `#+SEQ_TODO: #+TYP_TODO:'
  5283. These lines set the TODO keywords and their interpretation in the
  5284. current file. The corresponding variables are `org-todo-keywords'
  5285. and `org-todo-interpretation'.
  5286. 
  5287. File: org, Node: The very busy C-c C-c key, Next: Clean view, Prev: In-buffer settings, Up: Miscellaneous
  5288. 14.4 The very busy C-c C-c key
  5289. ==============================
  5290. The key `C-c C-c' has many purposes in org-mode, which are all
  5291. mentioned scattered throughout this manual. One specific function of
  5292. this key is to add _tags_ to a headline (*note Tags::). In many other
  5293. circumstances it means something like _Hey Org-mode, look here and
  5294. update according to what you see here_. Here is a summary of what this
  5295. means in different contexts.
  5296. - If there are highlights in the buffer from the creation of a sparse
  5297. tree, or from clock display, remove these highlights.
  5298. - If the cursor is in one of the special `#+KEYWORD' lines, this
  5299. triggers scanning the buffer for these lines and updating the
  5300. information.
  5301. - If the cursor is inside a table, realign the table. This command
  5302. works even if the automatic table editor has been turned off.
  5303. - If the cursor is on a `#+TBLFM' line, re-apply the formulas to the
  5304. entire table.
  5305. - If the cursor is inside a table created by the `table.el' package,
  5306. activate that table.
  5307. - If the current buffer is a remember buffer, close the note and
  5308. file it. With a prefix argument, file it, without further
  5309. interaction, to the default location.
  5310. - If the cursor is on a `<<<target>>>', update radio targets and
  5311. corresponding links in this buffer.
  5312. - If the cursor is in a property line or at the start or end of a
  5313. property drawer, offer property commands.
  5314. - If the cursor is in a plain list item with a checkbox, toggle the
  5315. status of the checkbox.
  5316. - If the cursor is on a numbered item in a plain list, renumber the
  5317. ordered list.
  5318. - If the cursor is on the `#+BEGIN' line of a dynamical block, the
  5319. block is updated.
  5320. 
  5321. File: org, Node: Clean view, Next: TTY keys, Prev: The very busy C-c C-c key, Up: Miscellaneous
  5322. 14.5 A cleaner outline view
  5323. ===========================
  5324. Some people find it noisy and distracting that the Org-mode headlines
  5325. are starting with a potentially large number of stars. For example the
  5326. tree from *Note Headlines:::
  5327. * Top level headline
  5328. ** Second level
  5329. *** 3rd level
  5330. some text
  5331. *** 3rd level
  5332. more text
  5333. * Another top level headline
  5334. Unfortunately this is deeply ingrained into the code of Org-mode and
  5335. cannot be easily changed. You can, however, modify the display in such
  5336. a way that all leading stars become invisible and the outline more easy
  5337. to read. To do this, customize the variable `org-hide-leading-stars'
  5338. like this:
  5339. (setq org-hide-leading-stars t)
  5340. or change this on a per-file basis with one of the lines (anywhere in
  5341. the buffer)
  5342. #+STARTUP: showstars
  5343. #+STARTUP: hidestars
  5344. Press `C-c C-c' with the cursor in a `STARTUP' line to activate the
  5345. modifications.
  5346. With stars hidden, the tree becomes:
  5347. * Top level headline
  5348. * Second level
  5349. * 3rd level
  5350. some text
  5351. * 3rd level
  5352. more text
  5353. * Another top level headline
  5354. Note that the leading stars are not truly replaced by whitespace, they
  5355. are only fontified with the face `org-hide' that uses the background
  5356. color as font color. If you are not using either white or black
  5357. background, you may have to customize this face to get the wanted
  5358. effect. Another possibility is to set this font such that the extra
  5359. stars are almost invisible, for example using the color `grey90' on a
  5360. white background.
  5361. Things become cleaner still if you skip all the even levels and use
  5362. only odd levels 1, 3, 5..., effectively adding two stars to go from one
  5363. outline level to the next:
  5364. * Top level headline
  5365. * Second level
  5366. * 3rd level
  5367. some text
  5368. * 3rd level
  5369. more text
  5370. * Another top level headline
  5371. In order to make the structure editing and export commands handle this
  5372. convention correctly, use
  5373. (setq org-odd-levels-only t)
  5374. or set this on a per-file basis with one of the following lines (don't
  5375. forget to press `C-c C-c' with the cursor in the startup line to
  5376. activate changes immediately).
  5377. #+STARTUP: odd
  5378. #+STARTUP: oddeven
  5379. You can convert an Org-mode file from single-star-per-level to the
  5380. double-star-per-level convention with `M-x org-convert-to-odd-levels
  5381. RET' in that file. The reverse operation is `M-x
  5382. org-convert-to-oddeven-levels'.
  5383. 
  5384. File: org, Node: TTY keys, Next: Interaction, Prev: Clean view, Up: Miscellaneous
  5385. 14.6 Using org-mode on a tty
  5386. ============================
  5387. Because Org-mode contains a large number of commands, by default much of
  5388. Org-mode's core commands are bound to keys that are generally not
  5389. accessible on a tty, such as the cursor keys (<left>, <right>, <up>,
  5390. <down>), <TAB> and <RET>, in particular when used together with
  5391. modifiers like <Meta> and/or <Shift>. To access these commands on a
  5392. tty when special keys are unavailable, the following alternative
  5393. bindings can be used. The tty bindings below will likely be more
  5394. cumbersome; you may find for some of the bindings below that a
  5395. customized work-around suits you better. For example, changing a time
  5396. stamp is really only fun with `S-<cursor>' keys, whereas on a tty you
  5397. would rather use `C-c .' to re-insert the timestamp.
  5398. Default Alternative 1 Alternative 2
  5399. `S-<TAB>' `C-u <TAB>'
  5400. `M-<left>' `C-c C-x l' `<Esc> <left>'
  5401. `M-S-<left>'`C-c C-x L'
  5402. `M-<right>' `C-c C-x r' `<Esc>
  5403. <right>'
  5404. `M-S-<right>'`C-c C-x R'
  5405. `M-<up>' `C-c C-x u' `<Esc> <up>'
  5406. `M-S-<up>' `C-c C-x U'
  5407. `M-<down>' `C-c C-x d' `<Esc> <down>'
  5408. `M-S-<down>'`C-c C-x D'
  5409. `S-<RET>' `C-c C-x c'
  5410. `M-<RET>' `C-c C-x m' `<Esc> <RET>'
  5411. `M-S-<RET>' `C-c C-x M'
  5412. `S-<left>' `C-c <left>'
  5413. `S-<right>' `C-c <right>'
  5414. `S-<up>' `C-c <up>'
  5415. `S-<down>' `C-c <down>'
  5416. `C-S-<left>'`C-c C-x
  5417. <left>'
  5418. `C-S-<right>'`C-c C-x
  5419. <right>'
  5420. 
  5421. File: org, Node: Interaction, Next: Bugs, Prev: TTY keys, Up: Miscellaneous
  5422. 14.7 Interaction with other packages
  5423. ====================================
  5424. Org-mode lives in the world of GNU Emacs and interacts in various ways
  5425. with other code out there.
  5426. * Menu:
  5427. * Cooperation:: Packages Org-mode cooperates with
  5428. * Conflicts:: Packages that lead to conflicts
  5429. 
  5430. File: org, Node: Cooperation, Next: Conflicts, Prev: Interaction, Up: Interaction
  5431. 14.7.1 Packages that Org-mode cooperates with
  5432. ---------------------------------------------
  5433. `calc.el' by Dave Gillespie
  5434. Org-mode uses the calc package for implementing spreadsheet
  5435. functionality in its tables (*note The spreadsheet::). Org-mode
  5436. checks for the availability of calc by looking for the function
  5437. `calc-eval' which should be autoloaded in your setup if calc has
  5438. been installed properly. As of Emacs 22, calc is part of the Emacs
  5439. distribution. Another possibility for interaction between the two
  5440. packages is using calc for embedded calculations. *Note Embedded
  5441. Mode: (calc)Embedded Mode.
  5442. `constants.el' by Carsten Dominik
  5443. In a table formula (*note The spreadsheet::), it is possible to use
  5444. names for natural constants or units. Instead of defining your own
  5445. constants in the variable `org-table-formula-constants', install
  5446. the `constants' package which defines a large number of constants
  5447. and units, and lets you use unit prefixes like `M' for `Mega' etc.
  5448. You will need version 2.0 of this package, available at
  5449. `http://www.astro.uva.nl/~dominik/Tools'. Org-mode checks for the
  5450. function `constants-get', which has to be autoloaded in your
  5451. setup. See the installation instructions in the file
  5452. `constants.el'.
  5453. `cdlatex.el' by Carsten Dominik
  5454. Org-mode can make use of the cdlatex package to efficiently enter
  5455. LaTeX fragments into Org-mode files. See *Note CDLaTeX mode::.
  5456. `imenu.el' by Ake Stenhoff and Lars Lindberg
  5457. Imenu allows menu access to an index of items in a file. Org-mode
  5458. supports imenu - all you need to do to get the index is the
  5459. following:
  5460. (add-hook 'org-mode-hook
  5461. (lambda () 'imenu-add-to-menubar "Imenu"))
  5462. By default the index is two levels deep - you can modify the depth
  5463. using the option `org-imenu-depth'.
  5464. `remember.el' by John Wiegley
  5465. Org mode cooperates with remember, see *Note Remember::.
  5466. `Remember.el' is not part of Emacs, find it on the web.
  5467. `speedbar.el' by Eric M. Ludlam
  5468. Speedbar is a package that creates a special frame displaying
  5469. files and index items in files. Org-mode supports speedbar and
  5470. allows you to drill into Org-mode files directly from the
  5471. speedbar. It also allows to restrict the scope of agenda commands
  5472. to a file or a subtree by using the command `<' in the speedbar
  5473. frame.
  5474. `table.el' by Takaaki Ota
  5475. Complex ASCII tables with automatic line wrapping, column- and
  5476. row-spanning, and alignment can be created using the Emacs table
  5477. package by Takaaki Ota (`http://sourceforge.net/projects/table',
  5478. and also part of Emacs 22). When <TAB> or `C-c C-c' is pressed in
  5479. such a table, Org-mode will call `table-recognize-table' and move
  5480. the cursor into the table. Inside a table, the keymap of Org-mode
  5481. is inactive. In order to execute Org-mode-related commands, leave
  5482. the table.
  5483. `C-c C-c'
  5484. Recognize `table.el' table. Works when the cursor is in a
  5485. table.el table.
  5486. `C-c ~'
  5487. Insert a table.el table. If there is already a table at
  5488. point, this command converts it between the table.el format
  5489. and the Org-mode format. See the documentation string of the
  5490. command `org-convert-table' for the restrictions under which
  5491. this is possible.
  5492. `table.el' is part of Emacs 22.
  5493. `footnote.el' by Steven L. Baur
  5494. Org-mode recognizes numerical footnotes as provided by this package
  5495. (*note Footnotes::).
  5496. 
  5497. File: org, Node: Conflicts, Prev: Cooperation, Up: Interaction
  5498. 14.7.2 Packages that lead to conflicts with Org-mode
  5499. ----------------------------------------------------
  5500. `allout.el' by Ken Manheimer
  5501. Startup of Org-mode may fail with the error message
  5502. `(wrong-type-argument keymapp nil)' when there is an outdated
  5503. version `allout.el' on the load path, for example the version
  5504. distributed with Emacs 21.x. Upgrade to Emacs 22 and this problem
  5505. will disappear. If for some reason you cannot do this, make sure
  5506. that org.el is loaded _before_ `allout.el', for example by putting
  5507. `(require 'org)' early enough into your `.emacs' file.
  5508. `CUA.el' by Kim. F. Storm
  5509. Keybindings in Org-mode conflict with the `S-<cursor>' keys used by
  5510. CUA-mode (as well as pc-select-mode and s-region-mode) to select
  5511. and extend the region. If you want to use one of these packages
  5512. along with Org-mode, configure the variable
  5513. `org-replace-disputed-keys'. When set, Org-mode will move the
  5514. following keybindings in Org-mode files, and in the agenda buffer
  5515. (but not during date selection).
  5516. S-UP -> M-p S-DOWN -> M-n
  5517. S-LEFT -> M-- S-RIGHT -> M-+
  5518. Yes, these are unfortunately more difficult to remember. If you
  5519. want to have other replacement keys, look at the variable
  5520. `org-disputed-keys'.
  5521. `windmove.el' by Hovav Shacham
  5522. Also this package uses the `S-<cursor>' keys, so everything written
  5523. in the paragraph above about CUA mode also applies here.
  5524. `footnote.el' by Steven L. Baur
  5525. Org-mode supports the syntax of the footnote package, but only the
  5526. numerical footnote markers. Also, the default key for footnote
  5527. commands, `C-c !' is already used by Org-mode. You could use the
  5528. variable `footnote-prefix' to switch footnotes commands to another
  5529. key. Or, you could use `org-replace-disputed-keys' and
  5530. `org-disputed-keys' to change the settings in Org-mode.
  5531. 
  5532. File: org, Node: Bugs, Prev: Interaction, Up: Miscellaneous
  5533. 14.8 Bugs
  5534. =========
  5535. Here is a list of things that should work differently, but which I have
  5536. found too hard to fix.
  5537. * If a table field starts with a link, and if the corresponding table
  5538. column is narrowed (*note Narrow columns::) to a width too small to
  5539. display the link, the field would look entirely empty even though
  5540. it is not. To prevent this, Org-mode throws an error. The
  5541. work-around is to make the column wide enough to fit the link, or
  5542. to add some text (at least 2 characters) before the link in the
  5543. same field.
  5544. * Narrowing table columns does not work on XEmacs, because the
  5545. `format' function does not transport text properties.
  5546. * Text in an entry protected with the `QUOTE' keyword should not
  5547. autowrap.
  5548. * When the application called by `C-c C-o' to open a file link fails
  5549. (for example because the application does not exist or refuses to
  5550. open the file), it does so silently. No error message is
  5551. displayed.
  5552. * Recalculating a table line applies the formulas from left to right.
  5553. If a formula uses _calculated_ fields further down the row,
  5554. multiple recalculation may be needed to get all fields consistent.
  5555. You may use the command `org-table-iterate' (`C-u C-c *') to
  5556. recalculate until convergence.
  5557. * A single letter cannot be made bold, for example `*a*'.
  5558. * The exporters work well, but could be made more efficient.
  5559. 
  5560. File: org, Node: Extensions and Hacking, Next: History and Acknowledgments, Prev: Miscellaneous, Up: Top
  5561. Appendix A Extensions, Hooks and Hacking
  5562. ****************************************
  5563. This appendix lists extensions for Org-mode written by other authors.
  5564. It also covers some aspects where users can extend the functionality of
  5565. Org-mode.
  5566. * Menu:
  5567. * Extensions:: Existing 3rd-part extensions
  5568. * Adding hyperlink types:: New custom link types
  5569. * Tables in arbitrary syntax:: Orgtbl for LaTeX and other programs
  5570. * Dynamic blocks:: Automatically filled blocks
  5571. * Special agenda views:: Customized views
  5572. * Using the property API:: Writing programs that use entry properties
  5573. 
  5574. File: org, Node: Extensions, Next: Adding hyperlink types, Prev: Extensions and Hacking, Up: Extensions and Hacking
  5575. A.1 Third-party extensions for Org-mode
  5576. =======================================
  5577. The following extensions for Org-mode have been written by other people:
  5578. `org-publish.el' by David O'Toole
  5579. This package provides facilities for publishing related sets of
  5580. Org-mode files together with linked files like images as webpages.
  5581. It is highly configurable and can be used for other publishing
  5582. purposes as well. As of Org-mode version 4.30, `org-publish.el'
  5583. is part of the Org-mode distribution. It is not yet part of
  5584. Emacs, however, a delay caused by the preparations for the 22.1
  5585. release. In the mean time, `org-publish.el' can be downloaded
  5586. from David's site: `http://dto.freeshell.org/e/org-publish.el'.
  5587. `org-mouse.el' by Piotr Zielinski
  5588. This package implements extended mouse functionality for Org-mode.
  5589. It allows you to cycle visibility and to edit the document
  5590. structure with the mouse. Best of all, it provides a
  5591. context-sensitive menu on <mouse-3> that changes depending on the
  5592. context of a mouse-click. As of Org-mode version 4.53,
  5593. `org-mouse.el' is part of the Org-mode distribution. It is not
  5594. yet part of Emacs, however, a delay caused by the preparations for
  5595. the 22.1 release. In the mean time, `org-mouse.el' can be
  5596. downloaded from Piotr's site:
  5597. `http://www.cl.cam.ac.uk/~pz215/files/org-mouse.el'.
  5598. `org-blog.el' by David O'Toole
  5599. A blogging plug-in for `org-publish.el'.
  5600. `http://dto.freeshell.org/notebook/OrgMode.html'.
  5601. `blorg.el' by Bastien Guerry
  5602. Publish Org-mode files as blogs.
  5603. `http://www.cognition.ens.fr/~guerry/blorg.html'.
  5604. `org2rem.el' by Bastien Guerry
  5605. Translates Org-mode files into something readable by Remind.
  5606. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5607. `org-toc.el' by Bastien Guerry
  5608. Produces a simple table of contents of an Org-mode file, for easy
  5609. navigation.
  5610. `http://www.cognition.ens.fr/~guerry/u/org-registry.el'.
  5611. `org-registry.el' by Bastien Guerry
  5612. Find which Org-file link to a certain document.
  5613. `http://www.cognition.ens.fr/~guerry/u/org2rem.el'.
  5614. 
  5615. File: org, Node: Adding hyperlink types, Next: Tables in arbitrary syntax, Prev: Extensions, Up: Extensions and Hacking
  5616. A.2 Adding hyperlink types
  5617. ==========================
  5618. Org-mode has a large number of hyperlink types built-in (*note
  5619. Hyperlinks::). If you would like to add new link types, it provides an
  5620. interface for doing so. Lets look at an example file `org-man.el' that
  5621. will add support for creating links like `[[man:printf][The printf
  5622. manpage]]' to show unix manual pages inside emacs:
  5623. ;;; org-man.el - Support for links to manpages in Org-mode
  5624. (require 'org)
  5625. (org-add-link-type "man" 'org-man-open)
  5626. (add-hook 'org-store-link-functions 'org-man-store-link)
  5627. (defcustom org-man-command 'man
  5628. "The Emacs command to be used to display a man page."
  5629. :group 'org-link
  5630. :type '(choice (const man) (const woman)))
  5631. (defun org-man-open (path)
  5632. "Visit the manpage on PATH.
  5633. PATH should be a topic that can be thrown at the man command."
  5634. (funcall org-man-command path))
  5635. (defun org-man-store-link ()
  5636. "Store a link to a manpage."
  5637. (when (memq major-mode '(Man-mode woman-mode))
  5638. ;; This is a man page, we do make this link
  5639. (let* ((page (org-man-get-page-name))
  5640. (link (concat "man:" page))
  5641. (description (format "Manpage for %s" page)))
  5642. (org-store-link-props
  5643. :type "man"
  5644. :link link
  5645. :description description))))
  5646. (defun org-man-get-page-name ()
  5647. "Extract the page name from the buffer name."
  5648. ;; This works for both `Man-mode' and `woman-mode'.
  5649. (if (string-match " \\(\\S-+\\)\\*" (buffer-name))
  5650. (match-string 1 (buffer-name))
  5651. (error "Cannot create link to this man page")))
  5652. (provide 'org-man)
  5653. ;;; org-man.el ends here
  5654. You would activate this new link type in `.emacs' with
  5655. (require 'org-man)
  5656. Lets go through the file and see what it does.
  5657. 1. It does `(require 'org)' to make sure that `org.el' has been
  5658. loaded.
  5659. 2. The next line calls `org-add-link-type' to define a new link type
  5660. with prefix `man'. The call also contains the name of a function
  5661. that will be called to follow such a link.
  5662. 3. The next line adds a function to `org-store-link-functions', in
  5663. order to allow the command `C-c l' to record a useful link in a
  5664. buffer displaying a man page.
  5665. The rest of the file defines the necessary variables and functions.
  5666. First there is a customization variable that determines which emacs
  5667. command should be used to display manpages. There are two options,
  5668. `man' and `woman'. Then the function to follow a link is defined. It
  5669. gets the link path as an argument - in this case the link path is just
  5670. a topic for the manual command. The function calls the value of
  5671. `org-man-command' to display the man page.
  5672. Finally the function `org-man-store-link' is defined. When you try
  5673. to store a link with `C-c l', also this function will be called to try
  5674. to make a link. The function must first decide if it is supposed to
  5675. create the link for this buffer type, we do this by checking the value
  5676. of the variable `major-mode'. If not, the function must exit and
  5677. retunr the value `nil'. If yes, the link is created by getting the
  5678. manual tpoic from the buffer name and prefixing it with the string
  5679. `man:'. Then it must call the command `org-store-link-props' and set
  5680. the `:type' and `:link' properties. Optionally you can also set the
  5681. `:description' property to provide a default for the link description
  5682. when the link is later inserted into tan Org-mode buffer with `C-c C-l'.
  5683. 
  5684. File: org, Node: Tables in arbitrary syntax, Next: Dynamic blocks, Prev: Adding hyperlink types, Up: Extensions and Hacking
  5685. A.3 Tables and Lists in arbitrary syntax
  5686. ========================================
  5687. Since Orgtbl-mode can be used as a minor mode in arbitrary buffers, a
  5688. frequent feature request has been to make it work with native tables in
  5689. specific languages, for example LaTeX. However, this is extremely hard
  5690. to do in a general way, would lead to a customization nightmare, and
  5691. would take away much of the simplicity of the Orgtbl-mode table editor.
  5692. This appendix describes a different approach. We keep the
  5693. Orgtbl-mode table in its native format (the source table), and use a
  5694. custom function to translate the table to the correct syntax, and to
  5695. install it in the right location (the target table). This puts the
  5696. burden of writing conversion functions on the user, but it allows for a
  5697. very flexible system.
  5698. Bastien added the ability to do the same with lists. You can use
  5699. Org's facilities to edit and structure lists by turning `orgstruct-mode'
  5700. on, then locally exporting such lists in another format (HTML, LaTeX or
  5701. TeXInfo.)
  5702. * Menu:
  5703. * Radio tables:: Sending and receiving
  5704. * A LaTeX example:: Step by step, almost a tutorial
  5705. * Translator functions:: Copy and modify
  5706. * Radio lists:: Doing the same for lists.
  5707. 
  5708. File: org, Node: Radio tables, Next: A LaTeX example, Prev: Tables in arbitrary syntax, Up: Tables in arbitrary syntax
  5709. A.3.1 Radio tables
  5710. ------------------
  5711. To define the location of the target table, you first need to create two
  5712. lines that are comments in the current mode, but contain magic words for
  5713. Orgtbl-mode to find. Orgtbl-mode will insert the translated table
  5714. between these lines, replacing whatever was there before. For example:
  5715. /* BEGIN RECEIVE ORGTBL table_name */
  5716. /* END RECEIVE ORGTBL table_name */
  5717. Just above the source table, we put a special line that tells
  5718. Orgtbl-mode how to translate this table and where to install it. For
  5719. example:
  5720. #+ORGTBL: SEND table_name translation_function arguments....
  5721. `table_name' is the reference name for the table that is also used in
  5722. the receiver lines. `translation_function' is the Lisp function that
  5723. does the translation. Furthermore, the line can contain a list of
  5724. arguments (alternating key and value) at the end. The arguments will be
  5725. passed as a property list to the translation function for
  5726. interpretation. A few standard parameters are already recognized and
  5727. acted upon before the translation function is called:
  5728. `:skip N'
  5729. Skip the first N lines of the table. Hlines do count!
  5730. `:skipcols (n1 n2 ...)'
  5731. List of columns that should be skipped. If the table has a column
  5732. with calculation marks, that column is automatically discarded as
  5733. well. Please note that the translator function sees the table
  5734. _after_ the removal of these columns, the function never knows
  5735. that there have been additional columns.
  5736. The one problem remaining is how to keep the source table in the buffer
  5737. without disturbing the normal workings of the file, for example during
  5738. compilation of a C file or processing of a LaTeX file. There are a
  5739. number of different solutions:
  5740. * The table could be placed in a block comment if that is supported
  5741. by the language. For example, in C-mode you could wrap the table
  5742. between `/*' and `*/' lines.
  5743. * Sometimes it is possible to put the table after some kind of END
  5744. statement, for example `\bye' in TeX and `\end{document}' in LaTeX.
  5745. * You can just comment the table line by line whenever you want to
  5746. process the file, and uncomment it whenever you need to edit the
  5747. table. This only sounds tedious - the command `M-x
  5748. orgtbl-toggle-comment' does make this comment-toggling very easy,
  5749. in particular if you bind it to a key.
  5750. 
  5751. File: org, Node: A LaTeX example, Next: Translator functions, Prev: Radio tables, Up: Tables in arbitrary syntax
  5752. A.3.2 A LaTeX example of radio tables
  5753. -------------------------------------
  5754. The best way to wrap the source table in LaTeX is to use the `comment'
  5755. environment provided by `comment.sty'. It has to be activated by
  5756. placing `\usepackage{comment}' into the document header. Orgtbl-mode
  5757. can insert a radio table skeleton(1) with the command `M-x
  5758. orgtbl-insert-radio-table'. You will be prompted for a table name,
  5759. lets say we use `salesfigures'. You will then get the following
  5760. template:
  5761. % BEGIN RECEIVE ORGTBL salesfigures
  5762. % END RECEIVE ORGTBL salesfigures
  5763. \begin{comment}
  5764. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  5765. | | |
  5766. \end{comment}
  5767. The `#+ORGTBL: SEND' line tells orgtbl-mode to use the function
  5768. `orgtbl-to-latex' to convert the table into LaTeX and to put it into
  5769. the receiver location with name `salesfigures'. You may now fill in
  5770. the table, feel free to use the spreadsheet features(2):
  5771. % BEGIN RECEIVE ORGTBL salesfigures
  5772. % END RECEIVE ORGTBL salesfigures
  5773. \begin{comment}
  5774. #+ORGTBL: SEND salesfigures orgtbl-to-latex
  5775. | Month | Days | Nr sold | per day |
  5776. |-------+------+---------+---------|
  5777. | Jan | 23 | 55 | 2.4 |
  5778. | Feb | 21 | 16 | 0.8 |
  5779. | March | 22 | 278 | 12.6 |
  5780. #+TBLFM: $4=$3/$2;%.1f
  5781. % $ (optional extra dollar to keep font-lock happy, see footnote)
  5782. \end{comment}
  5783. When you are done, press `C-c C-c' in the table to get the converted
  5784. table inserted between the two marker lines.
  5785. Now lets assume you want to make the table header by hand, because
  5786. you want to control how columns are aligned etc. In this case we make
  5787. sure that the table translator does skip the first 2 lines of the source
  5788. table, and tell the command to work as a splice, i.e. to not produce
  5789. header and footer commands of the target table:
  5790. \begin{tabular}{lrrr}
  5791. Month & \multicolumn{1}{c}{Days} & Nr.\ sold & per day\\
  5792. % BEGIN RECEIVE ORGTBL salesfigures
  5793. % END RECEIVE ORGTBL salesfigures
  5794. \end{tabular}
  5795. %
  5796. \begin{comment}
  5797. #+ORGTBL: SEND salesfigures orgtbl-to-latex :splice t :skip 2
  5798. | Month | Days | Nr sold | per day |
  5799. |-------+------+---------+---------|
  5800. | Jan | 23 | 55 | 2.4 |
  5801. | Feb | 21 | 16 | 0.8 |
  5802. | March | 22 | 278 | 12.6 |
  5803. #+TBLFM: $4=$3/$2;%.1f
  5804. \end{comment}
  5805. The LaTeX translator function `orgtbl-to-latex' is already part of
  5806. Orgtbl-mode. It uses a `tabular' environment to typeset the table and
  5807. marks horizontal lines with `\hline'. Furthermore, it interprets the
  5808. following parameters:
  5809. `:splice nil/t'
  5810. When set to t, return only table body lines, don't wrap them into a
  5811. tabular environment. Default is nil.
  5812. `:fmt fmt'
  5813. A format to be used to wrap each field, should contain `%s' for the
  5814. original field value. For example, to wrap each field value in
  5815. dollars, you could use `:fmt "$%s$"'. This may also be a property
  5816. list with column numbers and formats. for example `:fmt (2 "$%s$"
  5817. 4 "%s\\%%")'.
  5818. `:efmt efmt'
  5819. Use this format to print numbers with exponentials. The format
  5820. should have `%s' twice for inserting mantissa and exponent, for
  5821. example `"%s\\times10^{%s}"'. The default is `"%s\\,(%s)"'. This
  5822. may also be a property list with column numbers and formats, for
  5823. example `:efmt (2 "$%s\\times10^{%s}$" 4 "$%s\\cdot10^{%s}$")'.
  5824. After `efmt' has been applied to a value, `fmt' will also be
  5825. applied.
  5826. ---------- Footnotes ----------
  5827. (1) By default this works only for LaTeX, HTML, and TeXInfo.
  5828. Configure the variable `orgtbl-radio-tables' to install templates for
  5829. other modes.
  5830. (2) If the `#+TBLFM' line contains an odd number of dollar
  5831. characters, this may cause problems with font-lock in latex-mode. As
  5832. shown in the example you can fix this by adding an extra line inside the
  5833. `comment' environment that is used to balance the dollar expressions.
  5834. If you are using AUCTeX with the font-latex library, a much better
  5835. solution is to add the `comment' environment to the variable
  5836. `LaTeX-verbatim-environments'.
  5837. 
  5838. File: org, Node: Translator functions, Next: Radio lists, Prev: A LaTeX example, Up: Tables in arbitrary syntax
  5839. A.3.3 Translator functions
  5840. --------------------------
  5841. Orgtbl-mode has several translator functions built-in:
  5842. `orgtbl-to-latex', `orgtbl-to-html', and `orgtbl-to-texinfo'. Except
  5843. for `orgtbl-to-html'(1), these all use a generic translator,
  5844. `orgtbl-to-generic'. For example, `orgtbl-to-latex' itself is a very
  5845. short function that computes the column definitions for the `tabular'
  5846. environment, defines a few field and line separators and then hands
  5847. over to the generic translator. Here is the entire code:
  5848. (defun orgtbl-to-latex (table params)
  5849. "Convert the orgtbl-mode TABLE to LaTeX."
  5850. (let* ((alignment (mapconcat (lambda (x) (if x "r" "l"))
  5851. org-table-last-alignment ""))
  5852. (params2
  5853. (list
  5854. :tstart (concat "\\begin{tabular}{" alignment "}")
  5855. :tend "\\end{tabular}"
  5856. :lstart "" :lend " \\\\" :sep " & "
  5857. :efmt "%s\\,(%s)" :hline "\\hline")))
  5858. (orgtbl-to-generic table (org-combine-plists params2 params))))
  5859. As you can see, the properties passed into the function (variable
  5860. PARAMS) are combined with the ones newly defined in the function
  5861. (variable PARAMS2). The ones passed into the function (i.e. the ones
  5862. set by the `ORGTBL SEND' line) take precedence. So if you would like
  5863. to use the LaTeX translator, but wanted the line endings to be
  5864. `\\[2mm]' instead of the default `\\', you could just overrule the
  5865. default with
  5866. #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
  5867. For a new language, you can either write your own converter function
  5868. in analogy with the LaTeX translator, or you can use the generic
  5869. function directly. For example, if you have a language where a table
  5870. is started with `!BTBL!', ended with `!ETBL!', and where table lines are
  5871. started with `!BL!', ended with `!EL!' and where the field separator is
  5872. a TAB, you could call the generic translator like this (on a single
  5873. line!):
  5874. #+ORGTBL: SEND test orgtbl-to-generic :tstart "!BTBL!" :tend "!ETBL!"
  5875. :lstart "!BL! " :lend " !EL!" :sep "\t"
  5876. Please check the documentation string of the function
  5877. `orgtbl-to-generic' for a full list of parameters understood by that
  5878. function and remember that you can pass each of them into
  5879. `orgtbl-to-latex', `orgtbl-to-texinfo', and any other function using
  5880. the generic function.
  5881. Of course you can also write a completely new function doing
  5882. complicated things the generic translator cannot do. A translator
  5883. function takes two arguments. The first argument is the table, a list
  5884. of lines, each line either the symbol `hline' or a list of fields. The
  5885. second argument is the property list containing all parameters
  5886. specified in the `#+ORGTBL: SEND' line. The function must return a
  5887. single string containing the formatted table. If you write a generally
  5888. useful translator, please post it on `emacs-orgmode@gnu.org' so that
  5889. others can benefit from your work.
  5890. ---------- Footnotes ----------
  5891. (1) The HTML translator uses the same code that produces tables
  5892. during HTML export.
  5893. 
  5894. File: org, Node: Radio lists, Prev: Translator functions, Up: Tables in arbitrary syntax
  5895. A.3.4 Radio lists
  5896. -----------------
  5897. Sending and receiving radio lists works exactly the same way than
  5898. sending and receiving radio tables (*note Radio tables::) (1). As for
  5899. radio tables, you can insert radio lists templates in HTML, LaTeX and
  5900. TeXInfo modes by calling `org-list-insert-radio-list'.
  5901. Here are the differences with radio tables:
  5902. - Use `ORGLST' instead of `ORGTBL'.
  5903. - The available translation functions for radio lists don't take
  5904. parameters.
  5905. - `C-c C-c' will work when pressed on the first item of the list.
  5906. Here is a LaTeX example. Let's say that you have this in your LaTeX
  5907. file:
  5908. % BEGIN RECEIVE ORGLST to-buy
  5909. % END RECEIVE ORGLST to-buy
  5910. \begin{comment}
  5911. #+ORGLIST: SEND to-buy orgtbl-to-latex
  5912. - a new house
  5913. - a new computer
  5914. + a new keyboard
  5915. + a new mouse
  5916. - a new life
  5917. \end{comment}
  5918. Pressing `C-c C-c' on `a new house' and will insert the converted
  5919. LaTeX list between the two marker lines.
  5920. ---------- Footnotes ----------
  5921. (1) You need to load the `org-export-latex.el' package to use radio
  5922. lists since the relevant code is there for now.
  5923. 
  5924. File: org, Node: Dynamic blocks, Next: Special agenda views, Prev: Tables in arbitrary syntax, Up: Extensions and Hacking
  5925. A.4 Dynamic blocks
  5926. ==================
  5927. Org-mode documents can contain _dynamic blocks_. These are specially
  5928. marked regions that are updated by some user-written function. A good
  5929. example for such a block is the clock table inserted by the command
  5930. `C-c C-x C-r' (*note Clocking work time::).
  5931. Dynamic block are enclosed by a BEGIN-END structure that assigns a
  5932. name to the block and can also specify parameters for the function
  5933. producing the content of the block.
  5934. #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
  5935. #+END:
  5936. Dynamic blocks are updated with the following commands
  5937. `C-c C-x C-u'
  5938. Update dynamic block at point.
  5939. `C-u C-c C-x C-u'
  5940. Update all dynamic blocks in the current file.
  5941. Updating a dynamic block means to remove all the text between BEGIN
  5942. and END, parse the BEGIN line for parameters and then call the specific
  5943. writer function for this block to insert the new content. For a block
  5944. with name `myblock', the writer function is `org-dblock-write:myblock'
  5945. with as only parameter a property list with the parameters given in the
  5946. begin line. Here is a trivial example of a block that keeps track of
  5947. when the block update function was last run:
  5948. #+BEGIN: block-update-time :format "on %m/%d/%Y at %H:%M"
  5949. #+END:
  5950. The corresponding block writer function could look like this:
  5951. (defun org-dblock-write:block-update-time (params)
  5952. (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
  5953. (insert "Last block update at: "
  5954. (format-time-string fmt (current-time)))))
  5955. If you want to make sure that all dynamic blocks are always
  5956. up-to-date, you could add the function `org-update-all-dblocks' to a
  5957. hook, for example `before-save-hook'. `org-update-all-dblocks' is
  5958. written in a way that is does nothing in buffers that are not in
  5959. Org-mode.
  5960. 
  5961. File: org, Node: Special agenda views, Next: Using the property API, Prev: Dynamic blocks, Up: Extensions and Hacking
  5962. A.5 Special Agenda Views
  5963. ========================
  5964. Org-mode provides a special hook that can be used to narrow down the
  5965. selection made by any of the agenda views. You may specify a function
  5966. that is used at each match to verify if the match should indeed be part
  5967. of the agenda view, and if not, how much should be skipped.
  5968. Let's say you want to produce a list of projects that contain a
  5969. WAITING tag anywhere in the project tree. Let's further assume that
  5970. you have marked all tree headings that define a project with the todo
  5971. keyword PROJECT. In this case you would run a todo search for the
  5972. keyword PROJECT, but skip the match unless there is a WAITING tag
  5973. anywhere in the subtree belonging to the project line.
  5974. To achieve this, you must write a function that searches the subtree
  5975. for the tag. If the tag is found, the function must return `nil' to
  5976. indicate that this match should not be skipped. If there is no such
  5977. tag, return the location of the end of the subtree, to indicate that
  5978. search should continue from there.
  5979. (defun my-skip-unless-waiting ()
  5980. "Skip trees that are not waiting"
  5981. (let ((subtree-end (save-excursion (org-end-of-subtree t))))
  5982. (if (re-search-forward ":WAITING:" subtree-end t)
  5983. nil ; tag found, do not skip
  5984. subtree-end))) ; tag not found, continue after end of subtree
  5985. Now you may use this function in an agenda custom command, for
  5986. example like this:
  5987. (org-add-agenda-custom-command
  5988. '("b" todo "PROJECT"
  5989. ((org-agenda-skip-function 'my-org-waiting-projects)
  5990. (org-agenda-overriding-header "Projects waiting for something: "))))
  5991. Note that this also binds `org-agenda-overriding-header' to get a
  5992. meaningful header in the agenda view.
  5993. You may also put a Lisp form into `org-agenda-skip-function'. In
  5994. particular, you may use the functions `org-agenda-skip-entry-if' and
  5995. `org-agenda-skip-subtree-if' in this form, for example:
  5996. `'(org-agenda-skip-entry-if 'scheduled)'
  5997. Skip current entry if it has been scheduled.
  5998. `'(org-agenda-skip-entry-if 'notscheduled)'
  5999. Skip current entry if it has not been scheduled.
  6000. `'(org-agenda-skip-entry-if 'deadline)'
  6001. Skip current entry if it has a deadline.
  6002. `'(org-agenda-skip-entry-if 'scheduled 'deadline)'
  6003. Skip current entry if it has a deadline, or if it is scheduled.
  6004. `'(org-agenda-skip-entry 'regexp "regular expression")'
  6005. Skip current entry if the regular expression matches in the entry.
  6006. `'(org-agenda-skip-entry 'notregexp "regular expression")'
  6007. Skip current entry unless the regular expression matches.
  6008. `'(org-agenda-skip-subtree-if 'regexp "regular expression")'
  6009. Same as above, but check and skip the entire subtree.
  6010. Therefore we could also have written the search for WAITING projects
  6011. like this, even without defining a special function:
  6012. (org-add-agenda-custom-command
  6013. '("b" todo "PROJECT"
  6014. ((org-agenda-skip-function '(org-agenda-skip-subtree-if
  6015. 'regexp ":WAITING:"))
  6016. (org-agenda-overriding-header "Projects waiting for something: "))))
  6017. 
  6018. File: org, Node: Using the property API, Prev: Special agenda views, Up: Extensions and Hacking
  6019. A.6 Using the property API
  6020. ==========================
  6021. Here is a description of the functions that can be used to work with
  6022. properties.
  6023. -- Function: org-entry-properties &optional pom which
  6024. Get all properties of the entry at point-or-marker POM. This
  6025. includes the TODO keyword, the tags, time strings for deadline,
  6026. scheduled, and clocking, and any additional properties defined in
  6027. the entry. The return value is an alist, keys may occur multiple
  6028. times if the property key was used several times. POM may also be
  6029. nil, in which case the current entry is used. If WHICH is nil or
  6030. `all', get all properties. If WHICH is `special' or `standard',
  6031. only get that subclass.
  6032. -- Function: org-entry-get pom property &optional inherit
  6033. Get value of PROPERTY for entry at point-or-marker POM. If
  6034. INHERIT is non-nil and the entry does not have the property, then
  6035. also check higher levels of the hierarchy. This function ignores
  6036. the value of `org-use-property-inheritance' and requires the
  6037. explicit INHERIT flag.
  6038. -- Function: org-entry-delete pom property
  6039. Delete the property PROPERTY from entry at point-or-marker POM.
  6040. -- Function: org-entry-put pom property value
  6041. Set PROPERTY to VALUE for entry at point-or-marker POM.
  6042. -- Function: org-buffer-property-keys &optional include-specials
  6043. Get all property keys in the current buffer.
  6044. -- Function: org-insert-property-drawer
  6045. Insert a property drawer at point.
  6046. 
  6047. File: org, Node: History and Acknowledgments, Next: Index, Prev: Extensions and Hacking, Up: Top
  6048. Appendix B History and Acknowledgments
  6049. **************************************
  6050. Org-mode was borne in 2003, out of frustration over the user interface
  6051. of the Emacs outline-mode. I was trying to organize my notes and
  6052. projects, and using Emacs seemed to be the natural way to go. However,
  6053. having to remember eleven different commands with two or three keys per
  6054. command, only to hide and unhide parts of the outline tree, that seemed
  6055. entirely unacceptable to me. Also, when using outlines to take notes, I
  6056. constantly want to restructure the tree, organizing it parallel to my
  6057. thoughts and plans. _Visibility cycling_ and _structure editing_ were
  6058. originally implemented in the package `outline-magic.el', but quickly
  6059. moved to the more general `org.el'. As this environment became
  6060. comfortable for project planning, the next step was adding _TODO
  6061. entries_, basic _time stamps_, and _table support_. These areas
  6062. highlight the two main goals that Org-mode still has today: To create a
  6063. new, outline-based, plain text mode with innovative and intuitive
  6064. editing features, and to incorporate project planning functionality
  6065. directly into a notes file.
  6066. Since the first release, literally thousands of emails to me or on
  6067. `emacs-orgmode@gnu.org' have provided a constant stream of bug reports,
  6068. feedback, new ideas, and sometimes patches and add-on code. Many
  6069. thanks to everyone who has helped to improve this package. I am trying
  6070. to keep here a list of the people who had significant influence in
  6071. shaping one or more aspects of Org-mode. The list may not be complete,
  6072. if I have forgotten someone, please accept my apologies and let me know.
  6073. * Russel Adams came up with the idea for drawers.
  6074. * Thomas Baumann contributed the code for links to the MH-E email
  6075. system.
  6076. * Alex Bochannek provided a patch for rounding time stamps.
  6077. * Charles Cave's suggestion sparked the implementation of templates
  6078. for Remember.
  6079. * Pavel Chalmoviansky influenced the agenda treatment of items with
  6080. specified time.
  6081. * Gregory Chernov patched support for lisp forms into table
  6082. calculations and improved XEmacs compatibility, in particular by
  6083. porting `nouline.el' to XEmacs.
  6084. * Sacha Chua suggested to copy some linking code from Planner.
  6085. * Eddward DeVilla proposed and tested checkbox statistics. He also
  6086. came up with the idea of properties, and that there should be an
  6087. API for them.
  6088. * Kees Dullemond used to edit projects lists directly in HTML and so
  6089. inspired some of the early development, including HTML export. He
  6090. also asked for a way to narrow wide table columns.
  6091. * Christian Egli converted the documentation into TeXInfo format,
  6092. patched CSS formatting into the HTML exporter, and inspired the
  6093. agenda.
  6094. * David Emery provided a patch for custom CSS support in exported
  6095. HTML agendas.
  6096. * Nic Ferrier contributed mailcap and XOXO support.
  6097. * John Foerch figured out how to make incremental search show context
  6098. around a match in a hidden outline tree.
  6099. * Niels Giesen had the idea to automatically archive DONE trees.
  6100. * Bastien Guerry wrote the LaTeX exporter and has been prolific with
  6101. patches, ideas, and bug reports.
  6102. * Kai Grossjohann pointed out key-binding conflicts with other
  6103. packages.
  6104. * Scott Jaderholm proposed footnotes, control over whitespace between
  6105. folded entries, and column view for properties.
  6106. * Shidai Liu ("Leo") asked for embedded LaTeX and tested it. He also
  6107. provided frequent feedback and some patches.
  6108. * Jason F. McBrayer suggested agenda export to CSV format.
  6109. * Max Mikhanosha came up with the idea of refiling.
  6110. * Dmitri Minaev sent a patch to set priority limits on a per-file
  6111. basis.
  6112. * Stefan Monnier provided a patch to keep the Emacs-Lisp compiler
  6113. happy.
  6114. * Rick Moynihan proposed to allow multiple TODO sequences in a file
  6115. and to be able to quickly restrict the agenda to a subtree.
  6116. * Todd Neal provided patches for links to Info files and elisp forms.
  6117. * Tim O'Callaghan suggested in-file links, search options for general
  6118. file links, and TAGS.
  6119. * Takeshi Okano translated the manual and David O'Toole's tutorial
  6120. into Japanese.
  6121. * Oliver Oppitz suggested multi-state TODO items.
  6122. * Scott Otterson sparked the introduction of descriptive text for
  6123. links, among other things.
  6124. * Pete Phillips helped during the development of the TAGS feature,
  6125. and provided frequent feedback.
  6126. * T.V. Raman reported bugs and suggested improvements.
  6127. * Matthias Rempe (Oelde) provided ideas, Windows support, and quality
  6128. control.
  6129. * Kevin Rogers contributed code to access VM files on remote hosts.
  6130. * Frank Ruell solved the mystery of the `keymapp nil' bug, a
  6131. conflict with `allout.el'.
  6132. * Jason Riedy sent a patch to fix a bug with export of TODO keywords.
  6133. * Philip Rooke created the Org-mode reference card and provided lots
  6134. of feedback.
  6135. * Christian Schlauer proposed angular brackets around links, among
  6136. other things.
  6137. * Linking to VM/BBDB/GNUS was inspired by Tom Shannon's
  6138. `organizer-mode.el'.
  6139. * Daniel Sinder came up with the idea of internal archiving by
  6140. locking subtrees.
  6141. * Dale Smith proposed link abbreviations.
  6142. * Adam Spiers asked for global linking commands and inspired the link
  6143. extension system. support mairix.
  6144. * David O'Toole wrote `org-publish.el' and drafted the manual
  6145. chapter about publishing.
  6146. * Ju"rgen Vollmer contributed code generating the table of contents
  6147. in HTML output.
  6148. * Chris Wallace provided a patch implementing the `QUOTE' keyword.
  6149. * David Wainberg suggested archiving, and improvements to the linking
  6150. system.
  6151. * John Wiegley wrote `emacs-wiki.el' and `planner.el'. The
  6152. development of Org-mode was fully independent, and both systems are
  6153. really different beasts in their basic ideas and implementation
  6154. details. I later looked at John's code, however, and learned from
  6155. his implementation of (i) links where the link itself is hidden
  6156. and only a description is shown, and (ii) popping up a calendar to
  6157. select a date. John has also contributed a number of great ideas
  6158. directly to Org-mode.
  6159. * Carsten Wimmer suggested some changes and helped fix a bug in
  6160. linking to GNUS.
  6161. * Roland Winkler requested additional keybindings to make Org-mode
  6162. work on a tty.
  6163. * Piotr Zielinski wrote `org-mouse.el', proposed agenda blocks and
  6164. contributed various ideas and code snippets.
  6165. 
  6166. File: org, Node: Index, Next: Key Index, Prev: History and Acknowledgments, Up: Top
  6167. The Main Index
  6168. **************
  6169. �[index�]
  6170. * Menu:
  6171. * abbreviation, links: Link abbreviations. (line 6)
  6172. * acknowledgments: History and Acknowledgments.
  6173. (line 6)
  6174. * action, for publishing: Publishing action. (line 6)
  6175. * activation: Activation. (line 6)
  6176. * active region <1>: Built-in table editor.
  6177. (line 143)
  6178. * active region <2>: HTML Export commands.
  6179. (line 6)
  6180. * active region <3>: Structure editing. (line 74)
  6181. * active region: ASCII export. (line 9)
  6182. * agenda: Weekly/Daily agenda. (line 6)
  6183. * agenda dispatcher: Agenda dispatcher. (line 6)
  6184. * agenda files: Agenda files. (line 6)
  6185. * agenda files, removing buffers: Agenda commands. (line 244)
  6186. * agenda views: Agenda views. (line 6)
  6187. * agenda views, custom: Custom agenda views. (line 6)
  6188. * agenda views, exporting <1>: Exporting Agenda Views.
  6189. (line 6)
  6190. * agenda views, exporting <2>: Agenda commands. (line 233)
  6191. * agenda views, exporting: Exporting Agenda Views.
  6192. (line 12)
  6193. * agenda views, user-defined: Special agenda views.
  6194. (line 6)
  6195. * agenda, pipe: Extracting Agenda Information for other programs.
  6196. (line 6)
  6197. * agenda, with block views: Block agenda. (line 6)
  6198. * align, STARTUP keyword: In-buffer settings. (line 72)
  6199. * allout.el: Conflicts. (line 6)
  6200. * angular brackets, around links: External links. (line 43)
  6201. * API, for properties <1>: Using the property API.
  6202. (line 6)
  6203. * API, for properties: Property API. (line 6)
  6204. * appointment reminders: Weekly/Daily agenda. (line 65)
  6205. * appt.el: Weekly/Daily agenda. (line 65)
  6206. * archive locations: Moving subtrees. (line 23)
  6207. * archiving: Archiving. (line 6)
  6208. * ASCII export: ASCII export. (line 6)
  6209. * author: Feedback. (line 6)
  6210. * author info, in export: Export options. (line 26)
  6211. * autoload: Activation. (line 6)
  6212. * backtrace of an error: Feedback. (line 27)
  6213. * BBDB links: External links. (line 6)
  6214. * block agenda: Block agenda. (line 6)
  6215. * blorg.el: Extensions. (line 32)
  6216. * bold text: Enhancing text. (line 15)
  6217. * Boolean logic, for tag searches: Tag searches. (line 24)
  6218. * bug reports: Feedback. (line 6)
  6219. * bugs: Bugs. (line 6)
  6220. * C-c C-c, overview: The very busy C-c C-c key.
  6221. (line 6)
  6222. * calc package: The spreadsheet. (line 6)
  6223. * calc.el: Cooperation. (line 6)
  6224. * calculations, in tables <1>: The spreadsheet. (line 6)
  6225. * calculations, in tables: Built-in table editor.
  6226. (line 143)
  6227. * calendar commands, from agenda: Agenda commands. (line 196)
  6228. * calendar integration: Weekly/Daily agenda. (line 23)
  6229. * calendar, for selecting date: The date/time prompt.
  6230. (line 53)
  6231. * category: Categories. (line 6)
  6232. * category, require for tags/property match: Tag searches. (line 69)
  6233. * CDLaTeX: CDLaTeX mode. (line 6)
  6234. * cdlatex.el: Cooperation. (line 29)
  6235. * checkbox statistics: Checkboxes. (line 25)
  6236. * checkboxes: Checkboxes. (line 6)
  6237. * children, subtree visibility state: Visibility cycling. (line 10)
  6238. * clean outline view: Clean view. (line 6)
  6239. * column formula: Column formulas. (line 6)
  6240. * column view, for properties: Defining columns. (line 6)
  6241. * commands, in agenda buffer: Agenda commands. (line 6)
  6242. * comment lines: Comment lines. (line 6)
  6243. * completion, of dictionary words: Completion. (line 6)
  6244. * completion, of file names: Handling links. (line 44)
  6245. * completion, of link abbreviations: Completion. (line 6)
  6246. * completion, of links: Handling links. (line 25)
  6247. * completion, of option keywords <1>: Completion. (line 6)
  6248. * completion, of option keywords <2>: Per-file keywords. (line 23)
  6249. * completion, of option keywords: Export options. (line 6)
  6250. * completion, of property keys: Completion. (line 6)
  6251. * completion, of tags <1>: Completion. (line 6)
  6252. * completion, of tags: Setting tags. (line 11)
  6253. * completion, of TeX symbols: Completion. (line 6)
  6254. * completion, of TODO keywords <1>: Workflow states. (line 15)
  6255. * completion, of TODO keywords: Completion. (line 6)
  6256. * constants, in calculations: References. (line 82)
  6257. * constants.el: Cooperation. (line 14)
  6258. * constcgs, STARTUP keyword: In-buffer settings. (line 98)
  6259. * constSI, STARTUP keyword: In-buffer settings. (line 98)
  6260. * content, STARTUP keyword: In-buffer settings. (line 65)
  6261. * contents, global visibility state: Visibility cycling. (line 22)
  6262. * copying, of subtrees: Structure editing. (line 6)
  6263. * creating timestamps: Creating timestamps. (line 6)
  6264. * CUA.el: Conflicts. (line 15)
  6265. * custom agenda views: Custom agenda views. (line 6)
  6266. * custom date/time format: Custom time format. (line 6)
  6267. * custom search strings: Custom searches. (line 6)
  6268. * customization: Customization. (line 6)
  6269. * customtime, STARTUP keyword: In-buffer settings. (line 95)
  6270. * cutting, of subtrees: Structure editing. (line 6)
  6271. * cycling, of TODO states: TODO basics. (line 13)
  6272. * cycling, visibility: Visibility cycling. (line 6)
  6273. * daily agenda: Weekly/Daily agenda. (line 6)
  6274. * date format, custom: Custom time format. (line 6)
  6275. * date range: Time stamps. (line 40)
  6276. * date stamps <1>: Time stamps. (line 6)
  6277. * date stamps: Dates and times. (line 6)
  6278. * date, reading in minibuffer: The date/time prompt.
  6279. (line 6)
  6280. * dates: Dates and times. (line 6)
  6281. * DEADLINE keyword: Deadlines and scheduling.
  6282. (line 9)
  6283. * deadlines: Time stamps. (line 6)
  6284. * debugging, of table formulas: Editing and debugging formulas.
  6285. (line 97)
  6286. * demotion, of subtrees: Structure editing. (line 6)
  6287. * diary entries, creating from agenda: Agenda commands. (line 201)
  6288. * diary integration: Weekly/Daily agenda. (line 23)
  6289. * dictionary word completion: Completion. (line 6)
  6290. * directories, for publishing: Sources and destinations.
  6291. (line 6)
  6292. * dispatching agenda commands: Agenda dispatcher. (line 6)
  6293. * display changing, in agenda: Agenda commands. (line 65)
  6294. * document structure: Document structure. (line 6)
  6295. * DONE, final TODO keyword: Per-file keywords. (line 26)
  6296. * drawer, for properties: Property syntax. (line 6)
  6297. * drawers: Drawers. (line 6)
  6298. * dynamic blocks: Dynamic blocks. (line 6)
  6299. * editing tables: Tables. (line 6)
  6300. * editing, of table formulas: Editing and debugging formulas.
  6301. (line 6)
  6302. * elisp links: External links. (line 6)
  6303. * emphasized text: Export options. (line 26)
  6304. * enhancing text: Enhancing text. (line 6)
  6305. * evaluate time range: Creating timestamps. (line 48)
  6306. * even, STARTUP keyword: In-buffer settings. (line 88)
  6307. * examples, quoted: Quoted examples. (line 6)
  6308. * exporting: Exporting. (line 6)
  6309. * exporting agenda views <1>: Agenda commands. (line 233)
  6310. * exporting agenda views: Exporting Agenda Views.
  6311. (line 12)
  6312. * exporting, not: Comment lines. (line 6)
  6313. * extended TODO keywords: TODO extensions. (line 6)
  6314. * extension, third-party: Extensions. (line 6)
  6315. * external archiving: Moving subtrees. (line 6)
  6316. * external links: External links. (line 6)
  6317. * external links, in HTML export: Links. (line 6)
  6318. * faces, for TODO keywords: Faces for TODO keywords.
  6319. (line 6)
  6320. * FAQ: Summary. (line 56)
  6321. * feedback: Feedback. (line 6)
  6322. * field formula: Field formulas. (line 6)
  6323. * field references: References. (line 15)
  6324. * file links: External links. (line 6)
  6325. * file links, searching: Search options. (line 6)
  6326. * file name completion: Handling links. (line 44)
  6327. * files for agenda: Agenda files. (line 6)
  6328. * files, adding to agenda list: Agenda files. (line 15)
  6329. * files, selecting for publishing: Selecting files. (line 6)
  6330. * fixed width: Enhancing text. (line 30)
  6331. * fixed width text: Quoted examples. (line 6)
  6332. * fixed-width sections: Export options. (line 26)
  6333. * folded, subtree visibility state: Visibility cycling. (line 10)
  6334. * folding, sparse trees: Sparse trees. (line 6)
  6335. * following links: Handling links. (line 59)
  6336. * footnote.el <1>: Footnotes. (line 6)
  6337. * footnote.el <2>: Cooperation. (line 73)
  6338. * footnote.el: Conflicts. (line 35)
  6339. * footnotes <1>: Footnotes. (line 6)
  6340. * footnotes: Export options. (line 26)
  6341. * format specifier: Formula syntax for Calc.
  6342. (line 14)
  6343. * format, of links: Link format. (line 6)
  6344. * formula debugging: Editing and debugging formulas.
  6345. (line 97)
  6346. * formula editing: Editing and debugging formulas.
  6347. (line 6)
  6348. * formula syntax, Calc: Formula syntax for Calc.
  6349. (line 6)
  6350. * formula, for individual table field: Field formulas. (line 6)
  6351. * formula, for table column: Column formulas. (line 6)
  6352. * formula, in tables: Built-in table editor.
  6353. (line 143)
  6354. * global cycling: Visibility cycling. (line 22)
  6355. * global keybindings: Activation. (line 6)
  6356. * global TODO list: Global TODO list. (line 6)
  6357. * global visibility states: Visibility cycling. (line 22)
  6358. * GNUS links: External links. (line 6)
  6359. * grouping columns in tables: Column groups. (line 6)
  6360. * hand-formatted lists: Enhancing text. (line 11)
  6361. * headline levels: Export options. (line 26)
  6362. * headline levels, for exporting <1>: LaTeX export commands.
  6363. (line 26)
  6364. * headline levels, for exporting <2>: HTML Export commands.
  6365. (line 44)
  6366. * headline levels, for exporting: ASCII export. (line 21)
  6367. * headline navigation: Motion. (line 6)
  6368. * headline tagging: Tags. (line 6)
  6369. * headline, promotion and demotion: Structure editing. (line 6)
  6370. * headlines: Headlines. (line 6)
  6371. * hide text: Visibility cycling. (line 6)
  6372. * hidestars, STARTUP keyword: In-buffer settings. (line 88)
  6373. * hiding leading stars: Clean view. (line 6)
  6374. * history: History and Acknowledgments.
  6375. (line 6)
  6376. * horizontal rules, in exported files: Enhancing text. (line 20)
  6377. * HTML entities, LaTeX entities: Enhancing text. (line 45)
  6378. * HTML export: HTML export. (line 6)
  6379. * HTML, and orgtbl-mode: Translator functions.
  6380. (line 6)
  6381. * hyperlinks: Hyperlinks. (line 6)
  6382. * hyperlinks, adding new types: Adding hyperlink types.
  6383. (line 6)
  6384. * iCalendar export: iCalendar export. (line 6)
  6385. * images, inline in HTML: Images. (line 6)
  6386. * imenu.el: Cooperation. (line 33)
  6387. * in-buffer settings: In-buffer settings. (line 6)
  6388. * inactive timestamp: Time stamps. (line 49)
  6389. * index, of published pages: Project page index. (line 6)
  6390. * Info links: External links. (line 6)
  6391. * inheritance, of properties: Property searches. (line 6)
  6392. * inheritance, of tags: Tag inheritance. (line 6)
  6393. * inlining images in HTML: Images. (line 6)
  6394. * inserting links: Handling links. (line 25)
  6395. * installation: Installation. (line 6)
  6396. * internal archiving: ARCHIVE tag. (line 6)
  6397. * internal links: Internal links. (line 6)
  6398. * internal links, in HTML export: Links. (line 6)
  6399. * introduction: Introduction. (line 6)
  6400. * italic text: Enhancing text. (line 15)
  6401. * jumping, to headlines: Motion. (line 6)
  6402. * keybindings, global: Activation. (line 6)
  6403. * keyword options: Per-file keywords. (line 6)
  6404. * LaTeX class: Sectioning structure.
  6405. (line 6)
  6406. * LaTeX export: LaTeX export. (line 6)
  6407. * LaTeX fragments <1>: Export options. (line 26)
  6408. * LaTeX fragments: LaTeX fragments. (line 6)
  6409. * LaTeX fragments, export: Enhancing text. (line 23)
  6410. * LaTeX fragments, preview: Processing LaTeX fragments.
  6411. (line 6)
  6412. * LaTeX interpretation: Embedded LaTeX. (line 6)
  6413. * LaTeX sectioning structure: Sectioning structure.
  6414. (line 6)
  6415. * LaTeX, and orgtbl-mode: A LaTeX example. (line 6)
  6416. * level, require for tags/property match: Tag searches. (line 69)
  6417. * linebreak preservation: Export options. (line 26)
  6418. * linebreak, forced: Enhancing text. (line 42)
  6419. * link abbreviations: Link abbreviations. (line 6)
  6420. * link abbreviations, completion of: Completion. (line 6)
  6421. * link completion: Handling links. (line 25)
  6422. * link format: Link format. (line 6)
  6423. * links, external: External links. (line 6)
  6424. * links, finding next/previous: Handling links. (line 92)
  6425. * links, handling: Handling links. (line 6)
  6426. * links, in HTML export: Links. (line 6)
  6427. * links, internal: Internal links. (line 6)
  6428. * links, publishing: Publishing links. (line 6)
  6429. * links, radio targets: Radio targets. (line 6)
  6430. * links, returning to: Handling links. (line 86)
  6431. * Lisp forms, as table formulas: Formula syntax for Lisp.
  6432. (line 6)
  6433. * lists, hand-formatted: Enhancing text. (line 11)
  6434. * lists, in other modes: Tables in arbitrary syntax.
  6435. (line 6)
  6436. * lists, ordered: Plain lists. (line 6)
  6437. * lists, plain: Plain lists. (line 6)
  6438. * logdone, STARTUP keyword: In-buffer settings. (line 77)
  6439. * logging, of progress: Progress logging. (line 6)
  6440. * lognoteclock-out, STARTUP keyword: In-buffer settings. (line 77)
  6441. * lognotedone, STARTUP keyword: In-buffer settings. (line 77)
  6442. * lognotestate, STARTUP keyword: In-buffer settings. (line 77)
  6443. * logrepeat, STARTUP keyword: In-buffer settings. (line 77)
  6444. * maintainer: Feedback. (line 6)
  6445. * mark ring: Handling links. (line 82)
  6446. * marking characters, tables: Advanced features. (line 40)
  6447. * matching, of properties: Matching tags and properties.
  6448. (line 6)
  6449. * matching, of tags: Matching tags and properties.
  6450. (line 6)
  6451. * matching, tags: Tags. (line 6)
  6452. * math symbols: Math symbols. (line 6)
  6453. * MH-E links: External links. (line 6)
  6454. * minor mode for structure editing: orgstruct-mode. (line 6)
  6455. * minor mode for tables: orgtbl-mode. (line 6)
  6456. * mode, for calc: Formula syntax for Calc.
  6457. (line 14)
  6458. * motion commands in agenda: Agenda commands. (line 19)
  6459. * motion, between headlines: Motion. (line 6)
  6460. * name, of column or field: References. (line 82)
  6461. * named references: References. (line 82)
  6462. * names as TODO keywords: TODO types. (line 6)
  6463. * narrow columns in tables: Narrow columns. (line 6)
  6464. * noalign, STARTUP keyword: In-buffer settings. (line 72)
  6465. * nologging, STARTUP keyword: In-buffer settings. (line 77)
  6466. * nologrepeat, STARTUP keyword: In-buffer settings. (line 77)
  6467. * occur, command: Sparse trees. (line 6)
  6468. * odd, STARTUP keyword: In-buffer settings. (line 88)
  6469. * option keyword completion: Completion. (line 6)
  6470. * options, for custom agenda views: Setting Options. (line 6)
  6471. * options, for customization: Customization. (line 6)
  6472. * options, for export: Export options. (line 6)
  6473. * options, for publishing: Publishing options. (line 6)
  6474. * ordered lists: Plain lists. (line 6)
  6475. * org-agenda, command: Weekly/Daily agenda. (line 9)
  6476. * org-blog.el: Extensions. (line 28)
  6477. * org-list-insert-radio-list: Radio lists. (line 6)
  6478. * org-mode, turning on: Activation. (line 22)
  6479. * org-mouse.el: Extensions. (line 16)
  6480. * org-publish-project-alist: Project alist. (line 6)
  6481. * org-publish.el: Extensions. (line 8)
  6482. * org2rem.el: Extensions. (line 36)
  6483. * orgstruct-mode: orgstruct-mode. (line 6)
  6484. * orgtbl-mode <1>: orgtbl-mode. (line 6)
  6485. * orgtbl-mode: Tables in arbitrary syntax.
  6486. (line 6)
  6487. * outline tree: Headlines. (line 6)
  6488. * outline-mode: Outlines. (line 6)
  6489. * outlines: Outlines. (line 6)
  6490. * overview, global visibility state: Visibility cycling. (line 22)
  6491. * overview, STARTUP keyword: In-buffer settings. (line 65)
  6492. * packages, interaction with other: Interaction. (line 6)
  6493. * pasting, of subtrees: Structure editing. (line 6)
  6494. * per-file keywords: Per-file keywords. (line 6)
  6495. * plain lists: Plain lists. (line 6)
  6496. * plain text external links: External links. (line 43)
  6497. * presentation, of agenda items: Presentation and sorting.
  6498. (line 6)
  6499. * printing sparse trees: Sparse trees. (line 47)
  6500. * priorities: Priorities. (line 6)
  6501. * priorities, of agenda items: Sorting of agenda items.
  6502. (line 6)
  6503. * progress logging: Progress logging. (line 6)
  6504. * projects, for publishing: Project alist. (line 6)
  6505. * promotion, of subtrees: Structure editing. (line 6)
  6506. * properties: Properties and columns.
  6507. (line 6)
  6508. * properties, API <1>: Using the property API.
  6509. (line 6)
  6510. * properties, API: Property API. (line 6)
  6511. * properties, column view: Defining columns. (line 6)
  6512. * properties, inheritance: Property searches. (line 6)
  6513. * properties, searching: Property searches. (line 6)
  6514. * properties, special: Special properties. (line 6)
  6515. * property syntax: Property syntax. (line 6)
  6516. * publishing: Publishing. (line 6)
  6517. * quoted examples: Quoted examples. (line 6)
  6518. * quoted HTML tags: Export options. (line 26)
  6519. * radio lists: Radio lists. (line 6)
  6520. * radio tables: Radio tables. (line 6)
  6521. * radio targets: Radio targets. (line 6)
  6522. * range references: References. (line 60)
  6523. * ranges, time: Time stamps. (line 6)
  6524. * recomputing table fields: Updating the table. (line 6)
  6525. * references: References. (line 6)
  6526. * references, named: References. (line 82)
  6527. * references, to fields: References. (line 15)
  6528. * references, to ranges: References. (line 60)
  6529. * refiling notes: Refiling notes. (line 6)
  6530. * region, active <1>: HTML Export commands.
  6531. (line 6)
  6532. * region, active <2>: Built-in table editor.
  6533. (line 143)
  6534. * region, active <3>: ASCII export. (line 9)
  6535. * region, active: Structure editing. (line 74)
  6536. * regular expressions, with tags search: Tag searches. (line 64)
  6537. * remember.el <1>: Remember. (line 6)
  6538. * remember.el: Cooperation. (line 42)
  6539. * remote editing, from agenda: Agenda commands. (line 107)
  6540. * remote editing, undo: Agenda commands. (line 108)
  6541. * richer text: Enhancing text. (line 6)
  6542. * RMAIL links: External links. (line 6)
  6543. * SCHEDULED keyword: Deadlines and scheduling.
  6544. (line 27)
  6545. * scheduling: Time stamps. (line 6)
  6546. * Scripts, for agenda processing: Extracting Agenda Information for other programs.
  6547. (line 6)
  6548. * search option in file links: Search options. (line 6)
  6549. * search strings, custom: Custom searches. (line 6)
  6550. * searching for tags: Tag searches. (line 6)
  6551. * searching, of properties: Property searches. (line 6)
  6552. * section-numbers: Export options. (line 26)
  6553. * setting tags: Setting tags. (line 6)
  6554. * SHELL links: External links. (line 6)
  6555. * show all, command: Visibility cycling. (line 33)
  6556. * show all, global visibility state: Visibility cycling. (line 22)
  6557. * show hidden text: Visibility cycling. (line 6)
  6558. * showall, STARTUP keyword: In-buffer settings. (line 65)
  6559. * showstars, STARTUP keyword: In-buffer settings. (line 88)
  6560. * sorting, of agenda items: Sorting of agenda items.
  6561. (line 6)
  6562. * sparse tree, for deadlines: Inserting deadline/schedule.
  6563. (line 13)
  6564. * sparse tree, for TODO: TODO basics. (line 37)
  6565. * sparse tree, tag based: Tags. (line 6)
  6566. * sparse trees: Sparse trees. (line 6)
  6567. * special keywords: In-buffer settings. (line 6)
  6568. * special strings: Export options. (line 26)
  6569. * speedbar.el: Cooperation. (line 46)
  6570. * spreadsheet capabilities: The spreadsheet. (line 6)
  6571. * statistics, for checkboxes: Checkboxes. (line 25)
  6572. * storing links: Handling links. (line 9)
  6573. * structure editing: Structure editing. (line 6)
  6574. * structure of document: Document structure. (line 6)
  6575. * sublevels, inclusion into tags match: Tag inheritance. (line 6)
  6576. * sublevels, inclusion into todo list: Global TODO list. (line 34)
  6577. * subscript: Subscripts and Superscripts.
  6578. (line 6)
  6579. * subtree cycling: Visibility cycling. (line 10)
  6580. * subtree visibility states: Visibility cycling. (line 10)
  6581. * subtree, cut and paste: Structure editing. (line 6)
  6582. * subtree, subtree visibility state: Visibility cycling. (line 10)
  6583. * subtrees, cut and paste: Structure editing. (line 6)
  6584. * summary: Summary. (line 6)
  6585. * superscript: Subscripts and Superscripts.
  6586. (line 6)
  6587. * syntax, of formulas: Formula syntax for Calc.
  6588. (line 6)
  6589. * table editor, built-in: Built-in table editor.
  6590. (line 6)
  6591. * table editor, table.el: Cooperation. (line 54)
  6592. * table of contents: Export options. (line 26)
  6593. * table.el: Cooperation. (line 51)
  6594. * tables <1>: Tables. (line 6)
  6595. * tables: Export options. (line 26)
  6596. * tables, export: Enhancing text. (line 26)
  6597. * tables, in other modes: Tables in arbitrary syntax.
  6598. (line 6)
  6599. * tag completion: Completion. (line 6)
  6600. * tag inheritance: Tag inheritance. (line 6)
  6601. * tag searches: Tag searches. (line 6)
  6602. * tags: Tags. (line 6)
  6603. * tags view: Matching tags and properties.
  6604. (line 6)
  6605. * tags, setting: Setting tags. (line 6)
  6606. * targets, for links: Internal links. (line 6)
  6607. * targets, radio: Radio targets. (line 6)
  6608. * tasks, breaking down: Breaking down tasks. (line 6)
  6609. * templates, for remember: Remember templates. (line 6)
  6610. * TeX interpretation: Embedded LaTeX. (line 6)
  6611. * TeX macros <1>: Math symbols. (line 6)
  6612. * TeX macros: Export options. (line 26)
  6613. * TeX macros, export: Enhancing text. (line 23)
  6614. * TeX symbol completion: Completion. (line 6)
  6615. * TeX-like syntax for sub- and superscripts: Export options. (line 26)
  6616. * text, fixed width: Quoted examples. (line 6)
  6617. * thanks: History and Acknowledgments.
  6618. (line 6)
  6619. * time format, custom: Custom time format. (line 6)
  6620. * time grid: Time-of-day specifications.
  6621. (line 26)
  6622. * time info, in export: Export options. (line 26)
  6623. * time stamps <1>: Dates and times. (line 6)
  6624. * time stamps: Time stamps. (line 6)
  6625. * time, reading in minibuffer: The date/time prompt.
  6626. (line 6)
  6627. * time-of-day specification: Time-of-day specifications.
  6628. (line 6)
  6629. * time-sorted view: Timeline. (line 6)
  6630. * timeline, single file: Timeline. (line 6)
  6631. * timerange: Time stamps. (line 40)
  6632. * times: Dates and times. (line 6)
  6633. * timestamp: Time stamps. (line 14)
  6634. * timestamp, inactive: Time stamps. (line 49)
  6635. * timestamp, with repeater interval: Time stamps. (line 24)
  6636. * timestamps, creating: Creating timestamps. (line 6)
  6637. * TODO items: TODO items. (line 6)
  6638. * TODO keyword matching: Global TODO list. (line 17)
  6639. * TODO keyword matching, with tags search: Tag searches. (line 41)
  6640. * todo keyword sets: Multiple sets in one file.
  6641. (line 6)
  6642. * TODO keywords completion: Completion. (line 6)
  6643. * TODO list, global: Global TODO list. (line 6)
  6644. * TODO types: TODO types. (line 6)
  6645. * TODO workflow: Workflow states. (line 6)
  6646. * transient-mark-mode <1>: Built-in table editor.
  6647. (line 143)
  6648. * transient-mark-mode <2>: HTML Export commands.
  6649. (line 6)
  6650. * transient-mark-mode <3>: Structure editing. (line 74)
  6651. * transient-mark-mode: ASCII export. (line 9)
  6652. * translator function: Translator functions.
  6653. (line 6)
  6654. * trees, sparse: Sparse trees. (line 6)
  6655. * trees, visibility: Visibility cycling. (line 6)
  6656. * tty keybindings: TTY keys. (line 6)
  6657. * types as TODO keywords: TODO types. (line 6)
  6658. * underlined text: Enhancing text. (line 15)
  6659. * undoing remote-editing events: Agenda commands. (line 108)
  6660. * updating, table: Updating the table. (line 6)
  6661. * URL links: External links. (line 6)
  6662. * USENET links: External links. (line 6)
  6663. * variables, for customization: Customization. (line 6)
  6664. * vectors, in table calculations: Formula syntax for Calc.
  6665. (line 11)
  6666. * verbatim text: Enhancing text. (line 15)
  6667. * visibility cycling: Visibility cycling. (line 6)
  6668. * visibility cycling, drawers: Drawers. (line 6)
  6669. * visible text, printing: Sparse trees. (line 47)
  6670. * VM links: External links. (line 6)
  6671. * WANDERLUST links: External links. (line 6)
  6672. * weekly agenda: Weekly/Daily agenda. (line 6)
  6673. * windmove.el: Conflicts. (line 32)
  6674. * workflow states as TODO keywords: Workflow states. (line 6)
  6675. * XEmacs: Installation. (line 6)
  6676. * XOXO export: XOXO export. (line 6)
  6677. 
  6678. File: org, Node: Key Index, Prev: Index, Up: Top
  6679. Key Index
  6680. *********
  6681. �[index�]
  6682. * Menu:
  6683. * $: Agenda commands. (line 122)
  6684. * ': CDLaTeX mode. (line 43)
  6685. * +: Agenda commands. (line 145)
  6686. * ,: Agenda commands. (line 137)
  6687. * -: Agenda commands. (line 151)
  6688. * .: Agenda commands. (line 99)
  6689. * :: Agenda commands. (line 130)
  6690. * < <1>: The date/time prompt.
  6691. (line 59)
  6692. * < <2>: Agenda files. (line 51)
  6693. * <: Using column view. (line 57)
  6694. * <left>: Agenda commands. (line 96)
  6695. * <RET> <1>: Setting tags. (line 76)
  6696. * <RET> <2>: Built-in table editor.
  6697. (line 64)
  6698. * <RET> <3>: The date/time prompt.
  6699. (line 59)
  6700. * <RET>: Agenda commands. (line 39)
  6701. * <right>: Agenda commands. (line 91)
  6702. * <SPC> <1>: Setting tags. (line 73)
  6703. * <SPC>: Agenda commands. (line 28)
  6704. * <TAB> <1>: Editing and debugging formulas.
  6705. (line 57)
  6706. * <TAB> <2>: Visibility cycling. (line 10)
  6707. * <TAB> <3>: Plain lists. (line 42)
  6708. * <TAB> <4>: Agenda commands. (line 33)
  6709. * <TAB> <5>: Setting tags. (line 68)
  6710. * <TAB> <6>: Built-in table editor.
  6711. (line 57)
  6712. * <TAB>: CDLaTeX mode. (line 23)
  6713. * > <1>: Agenda commands. (line 173)
  6714. * > <2>: The date/time prompt.
  6715. (line 59)
  6716. * >: Using column view. (line 57)
  6717. * ^: CDLaTeX mode. (line 33)
  6718. * _: CDLaTeX mode. (line 33)
  6719. * `: CDLaTeX mode. (line 39)
  6720. * a <1>: Using column view. (line 46)
  6721. * a: Agenda commands. (line 134)
  6722. * b: Agenda commands. (line 49)
  6723. * c: Agenda commands. (line 196)
  6724. * C: Agenda commands. (line 216)
  6725. * C-#: Advanced features. (line 9)
  6726. * C-': Agenda files. (line 21)
  6727. * C-,: Agenda files. (line 21)
  6728. * C-<RET>: Structure editing. (line 18)
  6729. * C-_: Agenda commands. (line 108)
  6730. * C-c ! <1>: Creating timestamps. (line 19)
  6731. * C-c !: Footnotes. (line 14)
  6732. * C-c #: Checkboxes. (line 60)
  6733. * C-c %: Handling links. (line 82)
  6734. * C-c &: Handling links. (line 86)
  6735. * C-c ': Editing and debugging formulas.
  6736. (line 36)
  6737. * C-c *: Updating the table. (line 13)
  6738. * C-c +: Built-in table editor.
  6739. (line 143)
  6740. * C-c ,: Priorities. (line 21)
  6741. * C-c - <1>: Plain lists. (line 89)
  6742. * C-c -: Built-in table editor.
  6743. (line 92)
  6744. * C-c .: Creating timestamps. (line 10)
  6745. * C-c /: Sparse trees. (line 15)
  6746. * C-c / d: Inserting deadline/schedule.
  6747. (line 13)
  6748. * C-c / p: Property searches. (line 23)
  6749. * C-c / r: Sparse trees. (line 17)
  6750. * C-c / T: Tag searches. (line 9)
  6751. * C-c / t: TODO basics. (line 37)
  6752. * C-c : <1>: Enhancing text. (line 34)
  6753. * C-c :: Quoted examples. (line 15)
  6754. * C-c ;: Comment lines. (line 10)
  6755. * C-c <: Creating timestamps. (line 23)
  6756. * C-c <TAB>: Built-in table editor.
  6757. (line 163)
  6758. * C-c = <1>: Column formulas. (line 26)
  6759. * C-c =: Editing and debugging formulas.
  6760. (line 14)
  6761. * C-c >: Creating timestamps. (line 27)
  6762. * C-c ?: Editing and debugging formulas.
  6763. (line 24)
  6764. * C-c [: Agenda files. (line 15)
  6765. * C-c \: Tag searches. (line 9)
  6766. * C-c ]: Agenda files. (line 18)
  6767. * C-c ^ <1>: Built-in table editor.
  6768. (line 96)
  6769. * C-c ^: Structure editing. (line 61)
  6770. * C-c `: Built-in table editor.
  6771. (line 159)
  6772. * C-c a !: Stuck projects. (line 14)
  6773. * C-c a #: Stuck projects. (line 13)
  6774. * C-c a a: Weekly/Daily agenda. (line 9)
  6775. * C-c a C: Storing searches. (line 9)
  6776. * C-c a e: Exporting Agenda Views.
  6777. (line 57)
  6778. * C-c a L: Timeline. (line 10)
  6779. * C-c a m: Tag searches. (line 13)
  6780. * C-c a M <1>: Matching tags and properties.
  6781. (line 15)
  6782. * C-c a M: Tag searches. (line 17)
  6783. * C-c a m: Matching tags and properties.
  6784. (line 10)
  6785. * C-c a t <1>: Global TODO list. (line 9)
  6786. * C-c a t: TODO basics. (line 48)
  6787. * C-c a T: Global TODO list. (line 14)
  6788. * C-c C-a: Visibility cycling. (line 33)
  6789. * C-c C-b: Motion. (line 15)
  6790. * C-c C-c <1>: Built-in table editor.
  6791. (line 56)
  6792. * C-c C-c <2>: Property syntax. (line 58)
  6793. * C-c C-c <3>: Plain lists. (line 82)
  6794. * C-c C-c <4>: Processing LaTeX fragments.
  6795. (line 15)
  6796. * C-c C-c <5>: Cooperation. (line 63)
  6797. * C-c C-c <6>: Checkboxes. (line 40)
  6798. * C-c C-c <7>: Cooperation. (line 54)
  6799. * C-c C-c <8>: The very busy C-c C-c key.
  6800. (line 6)
  6801. * C-c C-c <9>: TODO basics. (line 30)
  6802. * C-c C-c <10>: Setting tags. (line 10)
  6803. * C-c C-c <11>: Editing and debugging formulas.
  6804. (line 46)
  6805. * C-c C-c <12>: Capturing Column View.
  6806. (line 39)
  6807. * C-c C-c <13>: Clocking work time. (line 89)
  6808. * C-c C-c <14>: Using column view. (line 39)
  6809. * C-c C-c: Editing and debugging formulas.
  6810. (line 90)
  6811. * C-c C-d <1>: Agenda commands. (line 158)
  6812. * C-c C-d: Inserting deadline/schedule.
  6813. (line 9)
  6814. * C-c C-e: Exporting. (line 20)
  6815. * C-c C-e a: ASCII export. (line 9)
  6816. * C-c C-e b: HTML Export commands.
  6817. (line 13)
  6818. * C-c C-e c: iCalendar export. (line 21)
  6819. * C-c C-e h: HTML Export commands.
  6820. (line 6)
  6821. * C-c C-e H: HTML Export commands.
  6822. (line 16)
  6823. * C-c C-e I: iCalendar export. (line 16)
  6824. * C-c C-e i: iCalendar export. (line 14)
  6825. * C-c C-e l: LaTeX export commands.
  6826. (line 6)
  6827. * C-c C-e L: LaTeX export commands.
  6828. (line 7)
  6829. * C-c C-e R: HTML Export commands.
  6830. (line 19)
  6831. * C-c C-e t: Export options. (line 13)
  6832. * C-c C-e v <1>: XOXO export. (line 11)
  6833. * C-c C-e v: Sparse trees. (line 47)
  6834. * C-c C-e v a: ASCII export. (line 16)
  6835. * C-c C-e v b: HTML Export commands.
  6836. (line 24)
  6837. * C-c C-e v h: HTML Export commands.
  6838. (line 24)
  6839. * C-c C-e v H: HTML Export commands.
  6840. (line 24)
  6841. * C-c C-e v L: LaTeX export commands.
  6842. (line 10)
  6843. * C-c C-e v l: LaTeX export commands.
  6844. (line 10)
  6845. * C-c C-e v R: HTML Export commands.
  6846. (line 24)
  6847. * C-c C-e x: XOXO export. (line 10)
  6848. * C-c C-f: Motion. (line 12)
  6849. * C-c C-j: Motion. (line 21)
  6850. * C-c C-l: Handling links. (line 25)
  6851. * C-c C-n: Motion. (line 8)
  6852. * C-c C-o <1>: Creating timestamps. (line 31)
  6853. * C-c C-o: Handling links. (line 59)
  6854. * C-c C-p: Motion. (line 9)
  6855. * C-c C-q <1>: Built-in table editor.
  6856. (line 127)
  6857. * C-c C-q: Editing and debugging formulas.
  6858. (line 50)
  6859. * C-c C-r <1>: Visibility cycling. (line 34)
  6860. * C-c C-r: Editing and debugging formulas.
  6861. (line 53)
  6862. * C-c C-s <1>: Agenda commands. (line 155)
  6863. * C-c C-s: Inserting deadline/schedule.
  6864. (line 20)
  6865. * C-c C-t <1>: TODO basics. (line 13)
  6866. * C-c C-t: Clocking work time. (line 30)
  6867. * C-c C-u: Motion. (line 18)
  6868. * C-c C-v: TODO basics. (line 37)
  6869. * C-c C-w <1>: Refiling notes. (line 13)
  6870. * C-c C-w: Structure editing. (line 58)
  6871. * C-c C-x <: Agenda files. (line 37)
  6872. * C-c C-x b: Visibility cycling. (line 43)
  6873. * C-c C-x C-a: ARCHIVE tag. (line 28)
  6874. * C-c C-x C-b: Checkboxes. (line 42)
  6875. * C-c C-x C-c <1>: Using column view. (line 9)
  6876. * C-c C-x C-c: Agenda commands. (line 223)
  6877. * C-c C-x C-d: Clocking work time. (line 42)
  6878. * C-c C-x C-i: Clocking work time. (line 12)
  6879. * C-c C-x C-j: Clocking work time. (line 38)
  6880. * C-c C-x C-k: Structure editing. (line 43)
  6881. * C-c C-x C-l: Processing LaTeX fragments.
  6882. (line 9)
  6883. * C-c C-x C-n: Handling links. (line 92)
  6884. * C-c C-x C-o: Clocking work time. (line 17)
  6885. * C-c C-x C-p: Handling links. (line 92)
  6886. * C-c C-x C-r: Clocking work time. (line 50)
  6887. * C-c C-x C-s: Moving subtrees. (line 10)
  6888. * C-c C-x C-t: Custom time format. (line 12)
  6889. * C-c C-x C-u <1>: Capturing Column View.
  6890. (line 42)
  6891. * C-c C-x C-u <2>: Clocking work time. (line 91)
  6892. * C-c C-x C-u: Dynamic blocks. (line 21)
  6893. * C-c C-x C-w <1>: Structure editing. (line 43)
  6894. * C-c C-x C-w: Built-in table editor.
  6895. (line 116)
  6896. * C-c C-x C-x: Clocking work time. (line 34)
  6897. * C-c C-x C-y <1>: Built-in table editor.
  6898. (line 120)
  6899. * C-c C-x C-y: Structure editing. (line 52)
  6900. * C-c C-x M-w <1>: Built-in table editor.
  6901. (line 113)
  6902. * C-c C-x M-w: Structure editing. (line 48)
  6903. * C-c C-x p: Property syntax. (line 49)
  6904. * C-c C-x r: Capturing Column View.
  6905. (line 37)
  6906. * C-c C-y <1>: Clocking work time. (line 25)
  6907. * C-c C-y: Creating timestamps. (line 48)
  6908. * C-c l: Handling links. (line 9)
  6909. * C-c { <1>: CDLaTeX mode. (line 21)
  6910. * C-c {: Editing and debugging formulas.
  6911. (line 33)
  6912. * C-c |: Built-in table editor.
  6913. (line 40)
  6914. * C-c }: Editing and debugging formulas.
  6915. (line 79)
  6916. * C-c ~: Cooperation. (line 65)
  6917. * C-k: Agenda commands. (line 116)
  6918. * C-S-<left>: Multiple sets in one file.
  6919. (line 25)
  6920. * C-S-<right>: Multiple sets in one file.
  6921. (line 25)
  6922. * C-TAB: ARCHIVE tag. (line 38)
  6923. * C-u C-c *: Updating the table. (line 16)
  6924. * C-u C-c .: Creating timestamps. (line 14)
  6925. * C-u C-c = <1>: Field formulas. (line 24)
  6926. * C-u C-c =: Editing and debugging formulas.
  6927. (line 14)
  6928. * C-u C-c C-c: Updating the table. (line 19)
  6929. * C-u C-c C-l: Handling links. (line 44)
  6930. * C-u C-c C-t: TODO basics. (line 22)
  6931. * C-u C-c C-x C-a: ARCHIVE tag. (line 31)
  6932. * C-u C-c C-x C-s: Moving subtrees. (line 14)
  6933. * C-u C-c C-x C-u <1>: Dynamic blocks. (line 22)
  6934. * C-u C-c C-x C-u <2>: Clocking work time. (line 93)
  6935. * C-u C-c C-x C-u: Capturing Column View.
  6936. (line 44)
  6937. * C-u C-u C-c *: Updating the table. (line 22)
  6938. * C-u C-u C-c =: Editing and debugging formulas.
  6939. (line 18)
  6940. * C-u C-u C-c C-c: Updating the table. (line 22)
  6941. * C-x C-s <1>: Agenda commands. (line 87)
  6942. * C-x C-s: Editing and debugging formulas.
  6943. (line 46)
  6944. * C-x C-w <1>: Agenda commands. (line 232)
  6945. * C-x C-w: Exporting Agenda Views.
  6946. (line 11)
  6947. * D: Agenda commands. (line 72)
  6948. * d: Agenda commands. (line 66)
  6949. * e: Using column view. (line 33)
  6950. * f: Agenda commands. (line 42)
  6951. * g: Agenda commands. (line 76)
  6952. * H: Agenda commands. (line 220)
  6953. * I: Agenda commands. (line 178)
  6954. * i: Agenda commands. (line 201)
  6955. * J: Agenda commands. (line 190)
  6956. * L: Agenda commands. (line 30)
  6957. * l: Agenda commands. (line 55)
  6958. * M: Agenda commands. (line 207)
  6959. * m: Agenda commands. (line 66)
  6960. * M-<down> <1>: Editing and debugging formulas.
  6961. (line 76)
  6962. * M-<down>: Built-in table editor.
  6963. (line 82)
  6964. * M-<left> <1>: Structure editing. (line 25)
  6965. * M-<left>: Built-in table editor.
  6966. (line 74)
  6967. * M-<RET> <1>: Plain lists. (line 50)
  6968. * M-<RET>: Structure editing. (line 6)
  6969. * M-<right> <1>: Structure editing. (line 28)
  6970. * M-<right>: Built-in table editor.
  6971. (line 74)
  6972. * M-<TAB> <1>: Completion. (line 10)
  6973. * M-<TAB> <2>: Property syntax. (line 46)
  6974. * M-<TAB> <3>: Setting tags. (line 6)
  6975. * M-<TAB> <4>: Per-file keywords. (line 23)
  6976. * M-<TAB>: Editing and debugging formulas.
  6977. (line 64)
  6978. * M-<up> <1>: Built-in table editor.
  6979. (line 82)
  6980. * M-<up>: Editing and debugging formulas.
  6981. (line 76)
  6982. * M-S-<down> <1>: Built-in table editor.
  6983. (line 89)
  6984. * M-S-<down> <2>: Editing and debugging formulas.
  6985. (line 72)
  6986. * M-S-<down> <3>: Plain lists. (line 67)
  6987. * M-S-<down>: Structure editing. (line 40)
  6988. * M-S-<left> <1>: Plain lists. (line 73)
  6989. * M-S-<left> <2>: Built-in table editor.
  6990. (line 76)
  6991. * M-S-<left> <3>: Structure editing. (line 31)
  6992. * M-S-<left>: The date/time prompt.
  6993. (line 59)
  6994. * M-S-<RET> <1>: Checkboxes. (line 57)
  6995. * M-S-<RET> <2>: Plain lists. (line 60)
  6996. * M-S-<RET>: Structure editing. (line 22)
  6997. * M-S-<right> <1>: The date/time prompt.
  6998. (line 59)
  6999. * M-S-<right> <2>: Plain lists. (line 73)
  7000. * M-S-<right> <3>: Structure editing. (line 34)
  7001. * M-S-<right>: Built-in table editor.
  7002. (line 79)
  7003. * M-S-<up> <1>: Structure editing. (line 37)
  7004. * M-S-<up> <2>: Plain lists. (line 67)
  7005. * M-S-<up> <3>: Built-in table editor.
  7006. (line 86)
  7007. * M-S-<up>: Editing and debugging formulas.
  7008. (line 72)
  7009. * mouse-1 <1>: Agenda commands. (line 33)
  7010. * mouse-1 <2>: Handling links. (line 73)
  7011. * mouse-1: The date/time prompt.
  7012. (line 59)
  7013. * mouse-2 <1>: Handling links. (line 73)
  7014. * mouse-2: Agenda commands. (line 33)
  7015. * mouse-3 <1>: Agenda commands. (line 28)
  7016. * mouse-3: Handling links. (line 78)
  7017. * n <1>: Agenda commands. (line 19)
  7018. * n: Using column view. (line 30)
  7019. * O: Agenda commands. (line 182)
  7020. * o: Agenda commands. (line 65)
  7021. * p <1>: Using column view. (line 30)
  7022. * p: Agenda commands. (line 20)
  7023. * P: Agenda commands. (line 142)
  7024. * q <1>: Agenda commands. (line 243)
  7025. * q: Using column view. (line 17)
  7026. * r <1>: Global TODO list. (line 22)
  7027. * r: Agenda commands. (line 80)
  7028. * S: Agenda commands. (line 211)
  7029. * s: Agenda commands. (line 87)
  7030. * S-<down> <1>: The date/time prompt.
  7031. (line 59)
  7032. * S-<down> <2>: Creating timestamps. (line 40)
  7033. * S-<down> <3>: Plain lists. (line 63)
  7034. * S-<down> <4>: Editing and debugging formulas.
  7035. (line 67)
  7036. * S-<down> <5>: Agenda commands. (line 151)
  7037. * S-<down>: Priorities. (line 26)
  7038. * S-<left> <1>: The date/time prompt.
  7039. (line 59)
  7040. * S-<left> <2>: Agenda commands. (line 169)
  7041. * S-<left> <3>: Creating timestamps. (line 35)
  7042. * S-<left> <4>: TODO basics. (line 26)
  7043. * S-<left> <5>: Multiple sets in one file.
  7044. (line 29)
  7045. * S-<left> <6>: Using column view. (line 26)
  7046. * S-<left> <7>: Property syntax. (line 66)
  7047. * S-<left>: Editing and debugging formulas.
  7048. (line 67)
  7049. * S-<RET>: Built-in table editor.
  7050. (line 146)
  7051. * S-<right> <1>: Editing and debugging formulas.
  7052. (line 67)
  7053. * S-<right> <2>: Multiple sets in one file.
  7054. (line 29)
  7055. * S-<right> <3>: TODO basics. (line 26)
  7056. * S-<right> <4>: Creating timestamps. (line 35)
  7057. * S-<right> <5>: Using column view. (line 26)
  7058. * S-<right> <6>: The date/time prompt.
  7059. (line 59)
  7060. * S-<right> <7>: Agenda commands. (line 161)
  7061. * S-<right>: Property syntax. (line 66)
  7062. * S-<TAB> <1>: Visibility cycling. (line 22)
  7063. * S-<TAB>: Built-in table editor.
  7064. (line 61)
  7065. * S-<up> <1>: Plain lists. (line 63)
  7066. * S-<up> <2>: The date/time prompt.
  7067. (line 59)
  7068. * S-<up> <3>: Editing and debugging formulas.
  7069. (line 67)
  7070. * S-<up> <4>: Creating timestamps. (line 40)
  7071. * S-<up> <5>: Agenda commands. (line 145)
  7072. * S-<up>: Priorities. (line 26)
  7073. * S-M-<left>: Using column view. (line 61)
  7074. * S-M-<RET>: TODO basics. (line 55)
  7075. * S-M-<right>: Using column view. (line 58)
  7076. * T: Agenda commands. (line 125)
  7077. * t: Agenda commands. (line 112)
  7078. * v: Using column view. (line 42)
  7079. * w: Agenda commands. (line 66)
  7080. * x: Agenda commands. (line 244)
  7081. * X: Agenda commands. (line 185)
  7082. * y: Agenda commands. (line 66)
  7083. 
  7084. Tag Table:
  7085. Node: Top970
  7086. Node: Introduction13486
  7087. Node: Summary13972
  7088. Node: Installation17109
  7089. Node: Activation18487
  7090. Node: Feedback19724
  7091. Node: Conventions21813
  7092. Node: Document structure22497
  7093. Node: Outlines23389
  7094. Node: Headlines24054
  7095. Ref: Headlines-Footnote-125058
  7096. Node: Visibility cycling25169
  7097. Ref: Visibility cycling-Footnote-127399
  7098. Ref: Visibility cycling-Footnote-227457
  7099. Ref: Visibility cycling-Footnote-327507
  7100. Node: Motion27777
  7101. Node: Structure editing28731
  7102. Node: Archiving31979
  7103. Node: ARCHIVE tag32537
  7104. Node: Moving subtrees34330
  7105. Ref: Moving subtrees-Footnote-135877
  7106. Node: Sparse trees36321
  7107. Ref: Sparse trees-Footnote-138573
  7108. Ref: Sparse trees-Footnote-238755
  7109. Node: Plain lists38870
  7110. Ref: Plain lists-Footnote-143129
  7111. Ref: Plain lists-Footnote-243487
  7112. Node: Drawers43668
  7113. Ref: Drawers-Footnote-144549
  7114. Node: orgstruct-mode44654
  7115. Node: Tables45554
  7116. Node: Built-in table editor46155
  7117. Node: Narrow columns53572
  7118. Ref: Narrow columns-Footnote-155507
  7119. Node: Column groups55553
  7120. Node: orgtbl-mode57086
  7121. Node: The spreadsheet57889
  7122. Node: References58976
  7123. Ref: References-Footnote-163443
  7124. Ref: References-Footnote-263584
  7125. Node: Formula syntax for Calc63873
  7126. Node: Formula syntax for Lisp66330
  7127. Node: Field formulas68048
  7128. Node: Column formulas69356
  7129. Node: Editing and debugging formulas70955
  7130. Node: Updating the table75108
  7131. Node: Advanced features76161
  7132. Node: Hyperlinks80686
  7133. Node: Link format81455
  7134. Node: Internal links82748
  7135. Ref: Internal links-Footnote-184673
  7136. Node: Radio targets84808
  7137. Node: External links85508
  7138. Node: Handling links87912
  7139. Ref: Handling links-Footnote-193228
  7140. Ref: Handling links-Footnote-293465
  7141. Node: Using links outside Org-mode93539
  7142. Node: Link abbreviations94049
  7143. Node: Search options95742
  7144. Ref: Search options-Footnote-197522
  7145. Node: Custom searches97603
  7146. Node: TODO items98634
  7147. Node: TODO basics99704
  7148. Node: TODO extensions101897
  7149. Node: Workflow states102856
  7150. Ref: Workflow states-Footnote-1104031
  7151. Node: TODO types104124
  7152. Ref: TODO types-Footnote-1105707
  7153. Node: Multiple sets in one file105789
  7154. Node: Fast access to TODO states107409
  7155. Node: Per-file keywords108552
  7156. Ref: Per-file keywords-Footnote-1109854
  7157. Node: Faces for TODO keywords110055
  7158. Node: Progress logging110761
  7159. Node: Closing items111192
  7160. Ref: Closing items-Footnote-1112126
  7161. Ref: Closing items-Footnote-2112331
  7162. Node: Tracking TODO state changes112404
  7163. Ref: Tracking TODO state changes-Footnote-1113589
  7164. Node: Priorities113664
  7165. Ref: Priorities-Footnote-1115459
  7166. Node: Breaking down tasks115529
  7167. Ref: Breaking down tasks-Footnote-1116049
  7168. Node: Checkboxes116145
  7169. Node: Tags119084
  7170. Node: Tag inheritance119839
  7171. Node: Setting tags120885
  7172. Ref: Setting tags-Footnote-1125403
  7173. Ref: Setting tags-Footnote-2125515
  7174. Node: Tag searches125598
  7175. Node: Properties and columns128377
  7176. Node: Property syntax130288
  7177. Node: Special properties132978
  7178. Node: Property searches134049
  7179. Node: Property inheritance135310
  7180. Node: Column view136757
  7181. Node: Defining columns137991
  7182. Node: Scope of column definitions138389
  7183. Node: Column attributes139311
  7184. Node: Using column view141707
  7185. Node: Capturing Column View143788
  7186. Node: Property API145515
  7187. Node: Dates and times145869
  7188. Node: Time stamps146590
  7189. Ref: Time stamps-Footnote-1148954
  7190. Node: Creating timestamps149068
  7191. Node: The date/time prompt151147
  7192. Ref: The date/time prompt-Footnote-1154503
  7193. Ref: The date/time prompt-Footnote-2154559
  7194. Ref: The date/time prompt-Footnote-3154665
  7195. Node: Custom time format154758
  7196. Node: Deadlines and scheduling156450
  7197. Ref: Deadlines and scheduling-Footnote-1158633
  7198. Node: Inserting deadline/schedule158788
  7199. Node: Repeated tasks159906
  7200. Ref: Repeated tasks-Footnote-1161781
  7201. Node: Clocking work time161902
  7202. Ref: Clocking work time-Footnote-1166754
  7203. Ref: Clocking work time-Footnote-2166832
  7204. Node: Remember166958
  7205. Node: Setting up remember167904
  7206. Ref: Setting up remember-Footnote-1168813
  7207. Node: Remember templates168879
  7208. Ref: Remember templates-Footnote-1172867
  7209. Ref: Remember templates-Footnote-2173050
  7210. Node: Storing notes173148
  7211. Ref: Storing notes-Footnote-1175659
  7212. Node: Refiling notes175761
  7213. Node: Agenda views177026
  7214. Node: Agenda files178973
  7215. Ref: Agenda files-Footnote-1181414
  7216. Ref: Agenda files-Footnote-2181563
  7217. Node: Agenda dispatcher181756
  7218. Ref: Agenda dispatcher-Footnote-1183810
  7219. Ref: Agenda dispatcher-Footnote-2183904
  7220. Node: Built-in agenda views183998
  7221. Node: Weekly/Daily agenda184580
  7222. Ref: Weekly/Daily agenda-Footnote-1187878
  7223. Node: Global TODO list188082
  7224. Node: Matching tags and properties190362
  7225. Node: Timeline191453
  7226. Node: Stuck projects192127
  7227. Node: Presentation and sorting193980
  7228. Node: Categories194773
  7229. Ref: Categories-Footnote-1195484
  7230. Node: Time-of-day specifications195921
  7231. Node: Sorting of agenda items197894
  7232. Node: Agenda commands199178
  7233. Node: Custom agenda views206641
  7234. Node: Storing searches207362
  7235. Ref: Storing searches-Footnote-1209896
  7236. Node: Block agenda210013
  7237. Node: Setting Options211245
  7238. Node: Exporting Agenda Views213986
  7239. Ref: Exporting Agenda Views-Footnote-1218343
  7240. Ref: Exporting Agenda Views-Footnote-2218400
  7241. Node: Extracting Agenda Information for other programs218586
  7242. Node: Embedded LaTeX222714
  7243. Ref: Embedded LaTeX-Footnote-1223808
  7244. Node: Math symbols223998
  7245. Node: Subscripts and Superscripts224765
  7246. Node: LaTeX fragments225611
  7247. Ref: LaTeX fragments-Footnote-1227844
  7248. Ref: LaTeX fragments-Footnote-2228105
  7249. Node: Processing LaTeX fragments228239
  7250. Node: CDLaTeX mode229187
  7251. Ref: CDLaTeX mode-Footnote-1231673
  7252. Node: Exporting231821
  7253. Node: ASCII export233288
  7254. Node: HTML export234789
  7255. Node: HTML Export commands235415
  7256. Node: Quoting HTML tags237202
  7257. Node: Links237837
  7258. Node: Images238534
  7259. Ref: Images-Footnote-1239405
  7260. Node: CSS support239466
  7261. Ref: CSS support-Footnote-1240785
  7262. Node: LaTeX export240898
  7263. Node: LaTeX export commands241247
  7264. Node: Quoting LaTeX code242409
  7265. Node: Sectioning structure242943
  7266. Node: XOXO export243444
  7267. Node: iCalendar export243884
  7268. Node: Text interpretation245353
  7269. Node: Comment lines246008
  7270. Node: Initial text246403
  7271. Node: Footnotes248072
  7272. Node: Quoted examples248864
  7273. Node: Enhancing text249639
  7274. Node: Export options252088
  7275. Node: Publishing254549
  7276. Ref: Publishing-Footnote-1255510
  7277. Ref: Publishing-Footnote-2255654
  7278. Node: Configuration255805
  7279. Node: Project alist256523
  7280. Node: Sources and destinations257589
  7281. Node: Selecting files258319
  7282. Node: Publishing action259067
  7283. Node: Publishing options260401
  7284. Node: Publishing links262907
  7285. Node: Project page index264422
  7286. Node: Sample configuration265200
  7287. Node: Simple example265692
  7288. Node: Complex example266365
  7289. Node: Triggering publication268441
  7290. Node: Miscellaneous269126
  7291. Node: Completion269760
  7292. Node: Customization271430
  7293. Node: In-buffer settings272013
  7294. Node: The very busy C-c C-c key277683
  7295. Node: Clean view279538
  7296. Node: TTY keys282115
  7297. Node: Interaction283692
  7298. Node: Cooperation284089
  7299. Node: Conflicts287760
  7300. Node: Bugs289770
  7301. Node: Extensions and Hacking291266
  7302. Node: Extensions291991
  7303. Node: Adding hyperlink types294263
  7304. Node: Tables in arbitrary syntax297925
  7305. Node: Radio tables299317
  7306. Node: A LaTeX example301820
  7307. Ref: A LaTeX example-Footnote-1305498
  7308. Ref: A LaTeX example-Footnote-2305646
  7309. Node: Translator functions306081
  7310. Ref: Translator functions-Footnote-1309210
  7311. Node: Radio lists309298
  7312. Ref: Radio lists-Footnote-1310420
  7313. Node: Dynamic blocks310540
  7314. Node: Special agenda views312512
  7315. Node: Using the property API315757
  7316. Node: History and Acknowledgments317355
  7317. Node: Index324036
  7318. Node: Key Index360770
  7319. 
  7320. End Tag Table