org 304 KB

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