org 304 KB

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