org 303 KB

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