org 267 KB

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