12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270 |
- \input texinfo
- c %**start of header
- settitle The Org Manual
- include org-version.inc
- set MAINTAINERSITE
- set AUTHOR Carsten Dominik
- set MAINTAINEREMAIL
- set MAINTAINERCONTACT
- c %**end of header
- c -----------------------------------------------------------------------------
- c =======================================
- c When set, commands names are shown. When clear, they are not shown.
- c Below we define the following macros for Org key tables:
- c orgcmd{key,cmd} Key with command name
- itemx
- c orgcmdtkc{text,key,cmd} Like orgcmd,special text instead of key
- c orgcmdkxkc{key1,key2,cmd} Two keys with one command name, but
- itemx
- c xorgcmdkskc{key1,key2,cmd} Same as previous, but use
- c orgcmdkkcc{key1,key2,cmd1,cmd2} Two keys and two commands
- c Inserts:
- macro orgkey{key}
- item
- end macro
- kindex \key\
- kbd{\key\}
- c one key with a command
- item KEY COMMAND
- ifset cmdnames
- findex \command\
- item hskip 0pt plus 1filll
- end iftex
- item tie{}tie{}code{\command\})
- end ifset
- kindex \key\
- kbd{\key\}
- end macro
- itemx
- itemx KEY COMMAND
- ifset cmdnames
- findex \command\
- itemx hskip 0pt plus 1filll
- end iftex
- itemx tie{}tie{}code{\command\})
- end ifset
- kindex \key\
- kbd{\key\}
- end macro
- c Inserts:
- macro orgcmdnki{key,command}
- findex \command\
- item hskip 0pt plus 1filll
- end iftex
- item tie{}tie{}code{\command\})
- end ifset
- item
- end ifclear
- c one key with a command, and special text to replace key in item
- item TEXT COMMAND
- ifset cmdnames
- findex \command\
- item hskip 0pt plus 1filll
- end iftex
- item tie{}tie{}code{\command\})
- end ifset
- kindex \key\
- kbd{\text\}
- end macro
- c Inserts:
- macro orgcmdkkc{key1,key2,command}
- kindex \key1\
- findex \command\
- item hskip 0pt plus 1filll
- end iftex
- item tie{}tie{}code{\command\})
- end ifset
- kindex \key1\
- item
- end ifclear
- c Two keys with one command name, but different functions, so format as
- itemx
- item KEY1
- itemx KEY2 COMMAND
- ifset cmdnames
- kindex \key2\
- iftex
- kbd{\key1\}
- kbd{\key2\} code{\command\}
- ifnottex
- kbd{\key1\}
- kbd{\key2\} tie{}tie{}(
- end ifnottex
- ifclear cmdnames
- kindex \key2\
- kbd{\key1\}
- kbd{\key2\}
- end macro
- c Inserts:
- macro orgcmdkskc{key1,key2,command}
- kindex \key1\
- findex \command\
- item hskip 0pt plus 1filll
- end iftex
- item tie{}tie{}code{\command\})
- end ifset
- kindex \key1\
- item
- end ifclear
- c Same as previous, but use
- c Inserts:
- macro xorgcmdkskc{key1,key2,command}
- kindex \key1\
- findex \command\
- itemx hskip 0pt plus 1filll
- end iftex
- itemx tie{}tie{}code{\command\})
- end ifset
- kindex \key1\
- itemx
- end ifclear
- c two keys with two commands
- item KEY1 COMMAND1
- itemx KEY2 COMMAND2
- ifset cmdnames
- kindex \key2\
- findex \command2\
- item hskip 0pt plus 1filll
- itemx hskip 0pt plus 1filll
- end iftex
- item tie{}tie{}code{\command1\})
- kbd{\key2\} tie{}tie{}(
- end ifnottex
- ifclear cmdnames
- kindex \key2\
- kbd{\key1\}
- kbd{\key2\}
- end macro
- iftex
- hyphenation{time-stamp time-stamps time-stamp-ing time-stamp-ed}
- c Subheadings inside a table.
- ifinfo
- end ifinfo
- item
- end ifnotinfo
- copying
- This manual is for Org version
- copyright{} 2004--2017 Free Software Foundation, Inc.
- end quotation
- dircategory Emacs editing modes
- end direntry
- title The Org Manual
- value{VERSION}
- c The following two commands start the copyright page.
- vskip 0pt plus 1filll
- end titlepage
- shortcontents
- contents
- node Top, Introduction, (dir), (dir)
- insertcopying
- menu
- * Introduction:: Getting started
- * Document structure:: A tree works like your brain
- * Tables:: Pure magic for quick formatting
- * Hyperlinks:: Notes in context
- * TODO items:: Every tree branch can be a TODO item
- * Tags:: Tagging headlines and matching sets of tags
- * Properties and columns:: Storing information about an entry
- * Dates and times:: Making items useful for planning
- * Capture - Refile - Archive:: The ins and outs for projects
- * Agenda views:: Collecting information into views
- * Markup:: Prepare text for rich export
- * Exporting:: Sharing and publishing notes
- * Publishing:: Create a web site of linked Org files
- * Working with source code:: Export, evaluate, and tangle code blocks
- * Miscellaneous:: All the rest which did not fit elsewhere
- * Hacking:: How to hack your way around
- * MobileOrg:: Viewing and capture on a mobile device
- * History and acknowledgments:: How Org came into being
- * GNU Free Documentation License:: The license for this documentation.
- * Main Index:: An index of Org's concepts and features
- * Key Index:: Key bindings and where they are described
- * Command and Function Index:: Command names and some internal functions
- * Variable Index:: Variables mentioned in the manual
- LaTeX{}:: LaTeX can be freely used inside Org documents
- Embedded
- LaTeX{} fragments:: Complex formulas made easy
- * Previewing
- LaTeX{} export:: Exporting to
- LaTeX{} export
- * LaTeX{} and PDF
- * LaTeX{}
- *
- LaTeX{} code:: Incorporating literal
- LaTeX{} export:: Specific attributes for tables
- * Images in
- LaTeX{} export:: Specific attributes for plain lists
- * Source blocks in
- LaTeX{} export:: Specific attributes for example blocks
- * Special blocks in
- LaTeX{} export:: Specific attributes for horizontal rules
- OpenDocument Text export
- * Pre-requisites for ODT export:: What packages ODT exporter relies on
- * ODT export commands:: How to invoke ODT export
- * ODT specific export settings:: Export settings for ODT
- * Extending ODT export:: How to produce samp{pdf} files
- * Applying custom styles:: How to apply custom styles to the output
- * Links in ODT export:: How links will be interpreted and formatted
- * Tables in ODT export:: How Tables are exported
- * Images in ODT export:: How to insert images
- * Math formatting in ODT export:: How
- LaTeX{} math snippets:: How to embed
- samp{Top} node:: Installing a manual in Info Top node
- * Headings and sectioning structure:: Building document structure
- * Indices:: Creating indices
- * Quoting Texinfo code:: Incorporating literal Texinfo code
- * Plain lists in Texinfo export:: Specific attributes for plain lists
- * Tables in Texinfo export:: Specific attributes for tables
- * Images in Texinfo export:: Specific attributes for images
- * Special blocks in Texinfo export:: Specific attributes for special blocks
- * A Texinfo example:: Illustrating Org to Texinfo process
- Publishing
- * Configuration:: Defining projects
- * Uploading files:: How to get files up on the server
- * Sample configuration:: Example projects
- * Triggering publication:: Publication commands
- Configuration
- * Project alist:: The central configuration variable
- * Sources and destinations:: From here to there
- * Selecting files:: What files are part of the project?
- * Publishing action:: Setting the function doing the publishing
- * Publishing options:: Tweaking HTML/
- samp{src} code blocks
- * results:: Specify results type; how to collect
- * file:: Specify a path for output file
- * file-desc:: Specify a description for file results
- * file-ext:: Specify an extension for file output
- * output-dir:: Specify a directory for output file
- * dir:: Specify the default directory for code block execution
- * exports:: Specify exporting code, results, both, none
- * tangle:: Toggle tangling; or specify file name
- * mkdirp:: Toggle for parent directory creation for target files during tangling
- * comments:: Toggle insertion of comments in tangled code files
- * padline:: Control insertion of padding lines in tangled code files
- * no-expand:: Turn off variable assignment and noweb expansion during tangling
- * session:: Preserve the state of code evaluation
- * noweb:: Toggle expansion of noweb references
- * noweb-ref:: Specify block's noweb reference resolution target
- * noweb-sep:: String to separate noweb references
- * cache:: Avoid re-evaluating unchanged code blocks
- * sep:: Delimiter for writing tabular results outside Org
- * hlines:: Handle horizontal lines in tables
- * colnames:: Handle column names in tables
- * rownames:: Handle row names in tables
- * shebang:: Make tangled files executable
- * tangle-mode:: Set permission of tangled files
- * eval:: Limit evaluation of specific code blocks
- * wrap:: Mark source block evaluation results
- * post:: Post processing of results of code block evaluation
- * prologue:: Text to prepend to body of code block
- * epilogue:: Text to append to body of code block
- Miscellaneous
- * Completion:: M-TAB guesses completions
- * Easy templates:: Quick insertion of structural elements
- * Speed keys:: Electric commands at the beginning of a headline
- * Code evaluation security:: Org mode files evaluate inline code
- * Customization:: Adapting Org to changing tastes
- * In-buffer settings:: Overview of the #+KEYWORDS
- * The very busy C-c C-c key:: When in doubt, press C-c C-c
- * Clean view:: Getting rid of leading stars in the outline
- * TTY keys:: Using Org on a tty
- * Interaction:: With other Emacs packages
- * org-crypt:: Encrypting Org files
- Interaction with other packages
- * Cooperation:: Packages Org cooperates with
- * Conflicts:: Packages that lead to conflicts
- Hacking
- * Hooks:: How to reach into Org's internals
- * Add-on packages:: Available extensions
- * Adding hyperlink types:: New custom link types
- * Adding export back-ends:: How to write new export back-ends
- * Context-sensitive commands:: How to add functionality to such commands
- * Tables in arbitrary syntax:: Orgtbl for
- LaTeX{} example:: Step by step, almost a tutorial
- * Translator functions:: Copy and modify
- * Radio lists:: Sending and receiving lists
- MobileOrg
- * Setting up the staging area:: For the mobile device
- * Pushing to MobileOrg:: Uploading Org files and agendas
- * Pulling from MobileOrg:: Integrating captured and flagged items
- end menu
- chapter Introduction
- menu
- * Summary:: Brief summary of what Org does
- * Installation:: Installing Org
- * Activation:: How to activate Org for certain buffers
- * Feedback:: Bug reports, ideas, patches etc.
- * Conventions:: Typesetting conventions in the manual
- node Summary
- cindex summary
- Org is a mode for keeping notes, maintaining TODO lists, and project planning
- with a fast and effective plain-text system. It also is an authoring system
- with unique support for literate programming and reproducible research.
- Org is implemented on top of Outline mode, which makes it possible to keep
- the content of large files well structured. Visibility cycling and structure
- editing help to work with the tree. Tables are easily created with a
- built-in table editor. Plain text URL-like links connect to websites,
- emails, Usenet messages, BBDB entries, and any files related to the projects.
- Org develops organizational tasks around notes files that contain lists or
- information about projects as plain text. Project planning and task
- management makes use of metadata which is part of an outline node. Based on
- this data, specific entries can be extracted in queries and create dynamic
- LaTeX{}, Open Document, and Markdown. New
- export backends can be derived from existing ones, or defined from scratch.
- Org files can include source code blocks, which makes Org uniquely suited for
- authoring technical documents with code examples. Org source code blocks are
- fully functional; they can be evaluated in place and their results can be
- captured in the file. This makes it possible to create a single file
- reproducible research compendium.
- Org keeps simple things simple. When first fired up, it should feel like a
- straightforward, easy to use outliner. Complexity is not imposed, but a
- large amount of functionality is available when needed. Org is a toolbox.
- Many users actually run only a (very personal) fraction of Org's capabilities, and
- know that there is more whenever they need it.
- All of this is achieved with strictly plain text files, the most portable and
- future-proof file format. Org runs in Emacs. Emacs is one of the most
- widely ported programs, so that Org mode is available on every major
- platform.
- uref{http://orgmode.org}.
- uref{http://www.network-theory.co.uk/org/manual/, paperback book from
- Network Theory Ltd.}
- node Installation
- cindex installation
- Org is part of recent distributions of GNU Emacs, so you normally don't need
- to install it. If, for one reason or another, you want to install Org on top
- of this pre-packaged version, there are three ways to do it:
- bullet
- item By downloading Org as an archive.
- end itemize
- We
- subsubheading Using Emacs packaging system
- Recent Emacs distributions include a packaging system which lets you install
- Elisp libraries. You can install Org with
- noindent code{.org} file has
- been visited, i.e., where no Org built-in function have been loaded.
- Otherwise autoload Org functions will mess up the installation.
- Then, to make sure your Org configuration is taken into account, initialize
- the package system with
- uref{http://orgmode.org/elpa.html, Org ELPA page}.
- uref{http://orgmode.org/, Org's
- website}. In this case, make sure you set the load-path correctly in your
- Emacs init file:
- end lisp
- The downloaded archive contains contributed libraries that are not included
- in Emacs. If you want to use them, add the
- lisp
- (add-to-list 'load-path "~/path/to/orgdir/contrib/lisp" t)
- code{make help} to list compilation and installation options.
- example
- $ cd ~/src/
- $ git clone git://orgmode.org/org-mode.git
- $ make autoloads
- code{make autoloads} is mandatory: it defines Org's
- version in
- file{org-loaddefs.el}.
- Remember to add the correct load-path as described in the method above.
- You can also compile with
- code{make doc}, create a local configuration with
- code{make install}. Please run
- uref{http://orgmode.org/worg/dev/org-build-system.html,
- Worg}.
- section Activation
- cindex autoload
- cindex global key bindings
- findex org-agenda
- findex org-store-link
- footnote{If you don't use font-lock globally, turn it on in Org buffer
- with
- pxref{Conflicts}).
- The four Org commands command{org-capture},
- command{org-iswitchb} should be accessible through
- global keys (i.e., anywhere in Emacs, not just in Org buffers). Here are
- suggested bindings for these keys, please modify the keys to your own
- liking.
- end lisp
- file{.org} extension use Org mode by default. To turn on Org
- mode in a file that does not have the extension
- example
- MY PROJECTS -*- mode: org; -*-
- vindex org-insert-mode-line-in-empty-file
- code{org-insert-mode-line-in-empty-file}.
- Many commands in Org work on the region if the region is
- code{transient-mark-mode} turned on, which is
- the default. If you do not like
- kbd{C-
- node Feedback
- cindex feedback
- cindex maintainer
- email{emacs-orgmodegnu.org}.
- You can subscribe to the list
- footnote{Please consider subscribing
- to the mailing list, in order to minimize the work the mailing list
- moderators have to do.}.
- For bug reports, please first try to reproduce the bug with the latest
- version of Org available---if you are running an outdated version, it is
- quite possible that the bug has been fixed already. If the bug persists,
- prepare a report and provide as much information as possible, including the
- version information of Emacs (key{RET}}) and Org
- (
- example
- end example
- example
- $ emacs -Q -l /path/to/minimal-org.el
- code{emacs -Q}. The
- lisp
- ;;; Minimal setup to load latest 'org-mode'
- ;; activate debugging
- (setq debug-on-error t
- debug-on-signal nil
- debug-on-quit nil)
- ;; add latest org-mode to load path
- (add-to-list 'load-path (expand-file-name "/path/to/org-mode/lisp"))
- (add-to-list 'load-path (expand-file-name "/path/to/org-mode/contrib/lisp" t))
- enumerate
- item What did you expect to happen?
- end enumerate
- subsubheading How to create a useful backtrace
- emph{backtrace}.
- This is information from the built-in debugger about where and how the
- error occurred. Here is how to produce a useful backtrace:
- item
- Reload uncompiled versions of all Org mode Lisp files. The backtrace
- contains much more information if it is produced with uncompiled code.
- To do this, use
- kbd{C-u M-x org-reload RET}
- noindent
- or select
- item
- Go to the code{Enter Debugger on Error}.
- item
- When you hit the error, a
- kbd{C-x C-w}) and
- attach it to your bug report.
- node Conventions
- subsubheading TODO keywords, tags, properties, etc.
- Org mainly uses three types of keywords: TODO keywords, tags and property
- names. In this manual we use the following conventions:
- code
- itemx WAITING
- TODO keywords are written with all capitals, even if they are
- user-defined.
- itemx ARCHIVE
- User-defined tags are written in lowercase; built-in tags with special
- meaning are written with all capitals.
- itemx PRIORITY
- User-defined properties are capitalized; built-in properties with
- special meaning are written with all capitals.
- i{option keywords} (like
- i{environment keywords} (like
- code{HTML} environment). They are written in uppercase in the manual to
- enhance its readability, but you can use lowercase in your Org file.
- kindex C-c a
- kindex C-c c
- kbd{C-c a} for
- kbd{C-c c} for
- code{org-metaright}. In the manual we will, wherever
- possible, give the function that is internally called by the generic command.
- For example, in the chapter on document structure, key{right}} will
- be listed to call
- code{org-table-move-column-right}. If you prefer,
- you can compile the manual without the command names by unsetting the flag
- file{org.texi}.
- chapter Document structure
- cindex structure of document
- Org is based on Outline mode and provides flexible commands to
- edit the structure of the document.
- end menu
- section Outlines
- cindex Outline mode
- Org is implemented on top of Outline mode. Outlines allow a
- document to be organized in a hierarchical structure, which (at least
- for me) is the best representation of notes and thoughts. An overview
- of this structure is achieved by folding (hiding) large parts of the
- document to show only the general document structure and the parts
- currently being worked on. Org greatly simplifies the use of
- outlines by compressing the entire show/hide functionality into a single
- command, key{TAB} key.
- section Headlines
- cindex outline tree
- vindex org-special-ctrl-k
- footnote{See the variables
- code{org-special-ctrl-k}, and
- kbd{C-a},
- kbd{C-k} in headlines.}
- example
- * Top level headline
- ** Second level
- *** 3rd level
- some text
- *** 3rd level
- more text
- * Another top level headline
- vindex org-footnote-section
- code{org-footnote-section},
- which defaults to
- ref{Clean view}, describes a setup to realize this.
- code{org-cycle-separator-lines} to modify this behavior.
- section Visibility cycling
- cindex visibility cycling
- cindex show hidden text
- menu
- * Global and local cycling:: Cycling through various visibility states
- * Initial visibility:: Setting the initial visibility state
- * Catching invisible edits:: Preventing mistakes when editing invisible parts
- node Global and local cycling
- key{TAB} and
- key{TAB}} to change the visibility in the buffer.
- cindex subtree cycling
- cindex children, subtree visibility state
- table
- orgcmd{
- emph{Subtree cycling}: Rotate current subtree among the states
- end example
- vindex org-cycle-global-at-bob
- The cursor must be on a headline for this to work
- code{org-cycle-emulate-tab}.}. When the cursor is at the
- beginning of the buffer and the first line is not a headline, then
- footnote{see the
- option
- kbd{C-u
- cindex global visibility states
- cindex overview, global visibility state
- cindex show all, global visibility state
- key{TAB},org-global-cycle}
- key{TAB}
- example
- ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
- '--------------------------------------'
- kbd{S-
- kbd{S-
- cindex set startup visibility, command
- key{TAB},org-set-startup-visibility}
- Switch back to the startup visibility of the buffer (
- cindex show all, command
- key{TAB},outline-show-all}
- Show all, including drawers.
- orgcmd{C-c C-r,org-reveal}
- Reveal context around point, showing the current entry, the following heading
- and the hierarchy above. Useful for working near a location that has been
- exposed by a sparse tree command (
- pxref{Agenda commands}). With a prefix argument show, on each
- level, all sibling headings. With a double prefix argument, also show the
- entire subtree of the parent.
- orgcmd{C-c C-k,outline-show-branches}
- Expose all the headings of the subtree, CONTENT view for just one subtree.
- orgcmd{C-c
- .
- footnote{The indirect buffer
- (
- kbd{C-u} prefix, do not remove the previously used indirect buffer.
- i{visible} text in the region into the kill ring.
- node Initial visibility
- cindex visibility, initialize
- vindex org-agenda-inhibit-startup
- code{overview}, STARTUP keyword
- code{content}, STARTUP keyword
- code{showall}, STARTUP keyword
- code{showeverything}, STARTUP keyword
- When Emacs first visits an Org file, the global state is set to OVERVIEW,
- i.e., only the top level headlines are visible
- code{org-agenda-inhibit-startup} is non-
- pxref{Speeding up
- your agendas}).}. This can be configured through the variable
- example
- #+STARTUP: overview
- #+STARTUP: content
- #+STARTUP: showall
- #+STARTUP: showeverything
- cindex property, VISIBILITY
- samp{VISIBILITY} property (
- code{folded}, code{content}, and
- table
- orgcmd{C-u C-u
- samp{VISIBILITY} properties in individual
- entries.
- node Catching invisible edits
- vindex org-catch-invisible-edits
- code{org-catch-invisible-edits} to non-
- node Motion
- cindex motion, between headlines
- cindex headline navigation
- The following commands jump to other headlines in the buffer.
- asis
- orgcmd{C-c C-p,org-previous-visible-heading}
- Previous heading.
- orgcmd{C-c C-b,org-backward-same-level}
- Previous heading same level.
- orgcmd{C-c C-j,org-goto}
- Jump to a different place without changing the current outline
- visibility. Shows the document structure in a temporary buffer, where
- you can use the following keys to find your destination:
- example
- r{Cycle visibility.}
- key{up}
- key{RET}
- kbd{/}
- r{The following keys work if you turn off
- r{Next/previous visible headline.}
- f / b
- r{One level up.}
- 0-9
- r{Quit}
- vindex org-goto-interface
- code{org-goto-interface}.
- node Structure editing
- cindex structure editing
- cindex promotion, of subtrees
- cindex subtree, cut and paste
- cindex cutting, of subtrees
- cindex sorting, of subtrees
- table
- orgcmd{M-
- vindex org-M-RET-may-split-line
- Insert a new heading, item or row.
- If the command is used at the
- pxref{Plain lists}) at point, the new
- heading/item is created
- code{org-M-RET-may-split-line}.
- Calling the command with a
- kbd{C-u C-u} prefix, the new heading is created at the end of
- the parent subtree instead.
- key{RET},org-insert-heading-respect-content}
- Insert a new heading at the end of the current subtree.
- key{RET},org-insert-todo-heading}
- code{org-treat-insert-todo-heading-as-state-change}.
- key{RET},org-insert-todo-heading-respect-content}
- Insert new TODO entry with same level as current heading. Like
- key{RET}}, the new headline will be inserted after the current
- subtree.
- key{TAB},org-cycle}
- In a new entry with no text yet, the first
- key{TAB} makes it a parent,
- and so on, all the way to top level. Yet another
- orgcmd{M-
- orgcmd{M-
- orgcmd{M-S-
- orgcmd{M-S-
- orgcmd{M-S-
- orgcmd{M-S-
- orgcmd{M-h,org-mark-element}
- Mark the element at point. Hitting repeatedly will mark subsequent elements
- of the one just marked. E.g., hitting
- key{M-h} immediately again will mark the next one.
- orgcmd{C-c C-x C-w,org-cut-subtree}
- Kill subtree, i.e., remove it from buffer but save in kill ring.
- With a numeric prefix argument N, kill N sequential subtrees.
- orgcmd{C-c C-x C-y,org-paste-subtree}
- Yank subtree from kill ring. This does modify the level of the subtree to
- make sure the tree fits in nicely at the yank position. The yank level can
- also be specified with a numeric prefix argument, or by yanking after a
- headline marker like
- orgcmd{C-y,org-yank}
- vindex org-yank-folded-subtrees
- Depending on the options
- code{org-yank-folded-subtrees}, Org's internal
- kbd{C-c
- C-x C-y}. With the default settings, no level adjustment will take place,
- but the yanked tree will be folded unless doing so would swallow text
- previously visible. Any prefix argument to this command will force a normal
- kbd{C-u C-y}. If you use
- orgcmd{C-c C-x c,org-clone-subtree-with-time-shift}
- Clone a subtree by making a number of sibling copies of it. You will be
- prompted for the number of copies to make, and you can also specify if any
- timestamps in the entry should be shifted. This can be useful, for example,
- to create a number of tasks related to a series of lectures to prepare. For
- more details, see the docstring of the command
- orgcmd{C-c C-w,org-refile}
- Refile entry or region to a different location.
- orgcmd{C-c ^,org-sort}
- Sort same-level entries. When there is an active region, all entries in the
- region will be sorted. Otherwise the children of the current headline are
- sorted. The command prompts for the sorting method, which can be
- alphabetically, numerically, by time (first timestamp with active preferred,
- creation time, scheduled time, deadline time), by priority, by TODO keyword
- (in the sequence the keywords have been defined in the setup) or by the value
- of a property. Reverse sorting is possible as well. You can also supply
- your own function to extract the sorting key. With a
- orgcmd{C-x n s,org-narrow-to-subtree}
- Narrow buffer to current subtree.
- orgcmd{C-x n w,widen}
- Widen buffer to remove narrowing.
- end table
- cindex active region
- pxref{Tables}), the Meta-Cursor keys have different
- functionality.
- section Sparse trees
- cindex trees, sparse
- cindex occur, command
- emph{sparse
- trees} for selected information in an outline tree, so that the entire
- document is folded as much as possible, but the selected information is made
- visible along with the headline structure above it
- code{org-show-context-detail} to decide how much context is shown
- around each match.}. Just try it out and you will see immediately how it
- works.
- Org mode contains several commands for creating such trees, all these
- commands can be accessed through a dispatcher:
- asis
- orgcmdkkc{C-c / r,C-c / /,org-occur}
- footnote{This depends on the option
- kbd{C-c C-c}.
- When called with a
- orgcmdkkc{M-g n,M-g M-n,next-error}
- Jump to the next sparse tree match in this buffer.
- end table
- vindex org-agenda-custom-commands
- For frequently used sparse trees of specific search strings, you can
- use the option
- pxref{Agenda dispatcher}).
- For example:
- end lisp
- kbd{C-c a f} as a shortcut for creating
- a sparse tree matching the string
- kindex C-c C-e C-v
- cindex visible text, printing
- To print a sparse tree, you can use the Emacs command
- kbd{C-c C-e C-v} to export only the visible part
- of the document and print the resulting file.
- section Plain lists
- cindex lists, plain
- cindex ordered lists
- Within an entry of the outline tree, hand-formatted lists can provide
- additional structure. They also provide a way to create lists of checkboxes
- (
- pxref{Exporting}) can parse and format them.
- Org knows ordered lists, unordered lists, and description lists.
- bullet
- emph{Unordered} list items start with samp{+}, or
- footnote{When using
- samp{*}
- is supported, it may be better to not use it for plain list items.} as
- bullets.
- vindex org-plain-list-ordered-item-terminator
- emph{Ordered} list items start with a numeral followed by either a period or
- a right parenthesis
- code{org-plain-list-ordered-item-terminator}.}, such as
- samp{1)}samp{a.}, samp{a)} and
- code{org-list-allow-alphabetical}. To minimize
- confusion with normal text, those are limited to one character only. Beyond
- that limit, bullets will automatically fallback to numbers.}. If you want a
- list to start with a different value (e.g., 20), start the text of the item
- with footnote{If there's a checkbox in the item, the cookie
- must be put
- code{[b]}.}. Those constructs can
- be used in any item of the list in order to enforce a particular numbering.
- emph{Description} list items are unordered list items, and contain the
- separator emph{term} from the
- description.
- samp{10.}, then the
- 2--digit numbers must be written left-aligned with the other numbers in the
- list. An item ends before the next line that is less or equally indented
- than its bullet/number.
- footnote{See also
- example
- b{Elijah Wood} :: He plays Frodo
- -
- i{The Goonies}.
- end example
- Org supports these lists by tuning filling and wrapping commands to deal with
- them correctly, and by exporting them properly (
- code{#+BEGIN_...} blocks can be indented to signal that they
- belong to a particular item.
- vindex org-list-indent-offset
- If you find that using a different bullet for a sub-list (than that used for
- the current list-level) improves readability, customize the variable
- code{org-list-indent-offset}.
- code{org-list-automatic-rules}
- to disable them individually.
- asis
- key{TAB},org-cycle}
- vindex org-cycle-include-plain-lists
- Items can be folded just like headline levels. Normally this works only if
- the cursor is on a plain list item. For more details, see the variable
- code{integrate}, plain list items will be treated like low-level
- headlines. The level of an item is then given by the indentation of the
- bullet/number. Items are always subordinate to real headlines, however; the
- hierarchies remain completely separated. In a new item with no text yet, the
- first
- key{TAB}s move the item to meaningful levels in the list
- and eventually get it back to its initial position.
- key{RET},org-insert-heading}
- vindex org-list-automatic-rules
- Insert new item at current level. With a prefix argument, force a new
- heading (
- emph{split} in two, and the second part becomes the
- new item
- code{org-M-RET-may-split-line}.}. If this command is executed
- emph{before} the current
- one.
- table
- kindex M-S-
- item M-S-
- pxref{Checkboxes}).
- key{down}
- itemx S-down
- vindex org-support-shift-select
- footnote{If you want to
- cycle around items that way, you may customize
- code{org-support-shift-select} is off. If not, you can still use paragraph
- jumping commands like key{up}} and key{down}} to quite
- similar effect.
- key{up}
- key{down}
- itemx M-down
- Move the item including subitems up/down
- code{org-list-use-circular-motion} for a cyclic behavior.} (swap with
- previous/next item of same indentation). If the list is ordered, renumbering
- is automatic.
- key{left}
- key{right}
- itemx M-right
- Decrease/increase the indentation of an item, leaving children alone.
- key{left}
- key{right}
- key{left}
- key{right}
- Decrease/increase the indentation of the item, including subitems.
- Initially, the item tree is selected based on current indentation. When
- these commands are executed several times in direct succession, the initially
- selected region is used, even if the new indentation would imply a different
- hierarchy. To use the new hierarchy, break the command chain with a cursor
- motion or so.
- As a special case, using this command on the very first item of a list will
- move the whole list. This behavior can be disabled by configuring
- emph{after} the list.
- item C-c C-c
- If there is a checkbox (
- kindex C-c -
- item C-c -
- Cycle the entire list level through the different itemize/enumerate bullets
- (samp{+}, samp{1.},
- code{org-plain-list-ordered-item-terminator}, the type of list,
- and its indentation. With a numeric prefix argument N, select the Nth bullet
- from this list. If there is an active region when calling this, all selected
- lines are converted to list items. With a prefix argument, selected text is
- changed into a single item. If the first line already was a list item, any
- item marker will be removed from the list. Finally, even without an active
- region, a normal line will be converted into a list item.
- item C-c *
- Turn a plain list item into a headline (so that it becomes a subheading at
- its location).
- kindex C-c C-*
- pxref{Checkboxes}) will become TODO (resp. DONE) keywords when unchecked
- (resp. checked).
- key{left}
- key{right}
- vindex org-support-shift-select
- This command also cycles bullet styles when the cursor in on the bullet or
- anywhere in an item line, details depending on
- kindex C-c ^
- item C-c ^
- Sort the plain list. You will be prompted for the sorting method:
- numerically, alphabetically, by time, by checked status for check lists,
- or by a custom function.
- node Drawers
- cindex drawers
- cindex org-insert-drawer
- emph{drawers}. They
- can contain anything but a headline and another drawer. Drawers look like
- this:
- end example
- You can interactively insert drawers at point by calling
- key{C-c C-x d}. With an active
- region, this command will put the region inside the drawer. With a prefix
- argument, this command calls
- key{M-TAB}.
- Visibility cycling (
- key{TAB} there. Org mode uses the
- pxref{Properties and columns}), and you can also arrange
- for state change notes (
- pxref{Clocking work time}) to be stored in a drawer
- table
- kindex C-c C-z
- end table
- vindex org-export-with-properties
- You can select the name of the drawers which should be exported with
- code{org-export-with-properties} instead.
- section Blocks
- cindex blocks, folding
- Org mode uses begin...end blocks for various purposes from including source
- code examples (
- pxref{Clocking work time}). These blocks can be folded and
- unfolded by pressing TAB in the begin line. You can also get all blocks
- folded at startup by configuring the option
- cindex
- cindex
- example
- #+STARTUP: hideblocks
- #+STARTUP: nohideblocks
- node Footnotes
- cindex footnotes
- Org mode supports the creation of footnotes.
- A footnote is started by a footnote marker in square brackets in column 0, no
- indentation allowed. It ends at the next footnote definition, headline, or
- after two consecutive empty lines. The footnote reference is simply the
- marker in square brackets, inside text. Markers always start with
- example
- The Org homepage[fn:1] now looks a lot better than it used to.
- ...
- [fn:1] The link is: http://orgmode.org
- emph{named} footnotes and
- optional inline definition. Here are the valid references:
- code
- code{name} is a unique label word, or, for
- simplicity of automatic creation, a number.
- LaTeX{}-like anonymous footnote where the definition is given directly at the
- reference point.
- code{[fn:name]} to create additional references.
- vindex org-footnote-auto-label
- Footnote labels can be created automatically, or you can create names yourself.
- This is handled by the variable
- code{#+STARTUP} keywords. See the docstring of that variable
- for details.
- table
- kindex C-c C-x f
- vindex org-footnote-define-inline
- vindex org-footnote-auto-adjust
- Otherwise, create a new footnote. Depending on the option
- footnote{The corresponding in-buffer
- setting is: code{#+STARTUP: nofninline}}, the
- definition will be placed right into the text as part of the reference, or
- separately into the location determined by the option
- example
- s
- r{Org makes no effort to sort footnote definitions into a particular}
-
- r{also move entries according to
- r{sorting after each insertion/deletion can be configured using the}
- code{org-footnote-auto-adjust}.}
- r code{fn:N} footnotes. Automatic renumbering}
-
- r{
- r{Short for first code{s} action.}
- n
- r{inline definitions) into a special section, and then numbering them}
-
- r{Delete the footnote at point, and all definitions of and references}
-
- end example
- Depending on the variable footnote{the
- corresponding in-buffer options are code{nofnadjust}.},
- renumbering and sorting footnotes can be automatic after each insertion or
- deletion.
- item C-c C-c
- If the cursor is on a footnote reference, jump to the definition. If it is a
- the definition, jump back to the reference. When called at a footnote
- location with a prefix argument, offer the same menu as
- kindex C-c C-o
- kindex mouse-2
- r{or} mouse-1/2
- Footnote labels are also links to the corresponding definition/reference, and
- you can use the usual commands to follow these links.
- kindex C-c '
- item C-c '
- Edit the footnote definition corresponding to the reference at point in
- a seperate window. The window can be closed by pressing
- end table
- section The Orgstruct minor mode
- cindex minor mode for structure editing
- If you like the intuitive way the Org mode structure editing and list
- formatting works, you might want to use these commands in other modes like
- Text mode or Mail mode as well. The minor mode
- kbd{M-x orgstruct-mode RET}, or
- turn it on by default, for example in Message mode, with one of:
- end lisp
- When this mode is active and the cursor is on a line that looks to Org like a
- headline or the first line of a list item, most structure editing commands
- will work, even if the same keys normally have different functionality in the
- major mode you are using. If the cursor is not in one of those special
- lines, Orgstruct mode lurks silently in the shadows.
- When you use
- vindex orgstruct-heading-prefix-regexp
- You can also use Org structure editing to fold and unfold headlines in
- code{orgstruct-heading-prefix-regexp}:
- the regular expression must match the local prefix to use before Org's
- headlines. For example, if you set this variable to
- code{org-demote} are disabled when the
- prefix is set, but folding/unfolding will work correctly.
- section Org syntax
- uref{http://orgmode.org/worg/dev/org-syntax.html, a draft on
- Worg}, written and maintained by Nicolas Goaziou. It defines Org's core
- internal concepts such as code{sections},
- code{(greater) elements} and
- lisp
- M-: (org-element-parse-buffer) RET
- cindex syntax checker
- code{org-lint} command.
- chapter Tables
- cindex editing tables
- Org comes with a fast and intuitive table editor. Spreadsheet-like
- calculations are supported using the Emacs
- pxref{Top, Calc, , calc, Gnu Emacs Calculator Manual}).
- end menu
- section The built-in table editor
- . Any line with
- samp{|}
- is also the column separator
- code{\vert} or, inside a word {
- example
- | Name | Phone | Age |
- |-------+-------+-----|
- | Peter | 1234 | 17 |
- | Anna | 4321 | 25 |
- key{TAB} or
- kbd{C-c C-c} inside the table.
- key{RET} to the next row) and creates new table rows
- at the end of the table or before horizontal lines. The indentation
- of the table is set by the first line. Any line starting with
- example
- |Name|Phone|Age|
- |-
- noindent and then press
- code{|Name|Phone|Age} followed by
- key{RET}}.
- vindex org-table-auto-blank-field
- When typing text into a field, Org treats
- key{Backspace}, and all character keys in a special way, so that
- inserting and deleting avoids shifting other fields. Also, when
- typing
- kbd{kbd{S-kbd{
- code{org-enable-table-editor} and
- table
- tsubheading{Creation and conversion}
- kbd{C-u} forces CSV,
- kbd{C-u C-u C-u} will prompt for a regular expression to
- match the separator, and a numeric argument N indicates that at least N
- consecutive spaces, or alternatively a TAB will be the separator.
- kbd{|Name|Phone|Age key{TAB}}.
- orgcmd{C-c C-c,org-table-align}
- Re-align the table and don't move to another field.
- orgcmd{C-c SPC,org-table-blank-field}
- Blank the field at point.
- orgcmd{<TAB>,org-table-next-field}
- Re-align the table, move to the next field. Creates a new row if
- necessary.
- orgcmd{S-
- c
- key{RET},org-table-next-row}
- Re-align the table and move down to next row. Creates a new row if
- necessary. At the beginning or end of a line,
- c
- orgcmd{M-e,org-table-end-of-field}
- Move to end of the current table field, or on to the next field.
- orgcmdkkcc{M-key{right},org-table-move-column-left,org-table-move-column-right}
- Move the current column left/right.
- orgcmd{M-S-
- c
- key{right},org-table-insert-column}
- Insert a new column to the left of the cursor position.
- orgcmdkkcc{M-key{down},org-table-move-row-up,org-table-move-row-down}
- Move the current row up/down.
- orgcmd{M-S-
- c
- key{down},org-table-insert-row}
- Insert a new row above the current row. With a prefix argument, the line is
- created below the current one.
- orgcmd{C-c -,org-table-insert-hline}
- Insert a horizontal line below current row. With a prefix argument, the line
- is created above the current line.
- orgcmd{C-c
- c
- tsubheading{Regions}
- c
- c
- c
- key{RET},org-table-wrap-region}
- Split the current field at the cursor position and move the rest to the line
- below. If there is an active region, and both point and mark are in the same
- column, the text in the column is wrapped to minimum width for the given
- number of lines. A numeric prefix argument may be used to change the number
- of desired lines. If there is no region, but you specify a prefix argument,
- the current field is made blank, and the content is appended to the field
- above.
- cindex formula, in tables
- cindex region, active
- cindex transient mark mode
- kbd{C-y}.
- orgcmd{S-
- vindex org-table-copy-increment
- When current field is empty, copy from first non-empty field above. When not
- empty, copy current field down to next row and move cursor along with it.
- Depending on the option
- code{0} prefix argument temporarily disables the
- increment. This key is also used by shift-selection and related modes
- (
- tsubheading{Miscellaneous}
- pxref{Column width and alignment}). When called with
- a
- kbd{C-u} prefixes, make the editor
- window follow the cursor through the table and always show the current
- field. The follow mode exits automatically when the cursor leaves the table,
- or when you repeat this command with
- c
- orgcmd{C-c |,org-table-create-or-convert-from-region}
- Tables can also be imported by pasting tabular text into the Org
- buffer, selecting the pasted text with
- kbd{C-c |} command (see above under
- c
- findex org-table-export
- code{org-table-export-default-format}. You may also use properties
- code{TABLE_EXPORT_FORMAT} to specify the file
- name and the format for table export in a subtree. Org supports quite
- general formats for exported tables. The exporter format is the same as the
- format used by Orgtbl radio tables, see
- end table
- If you don't like the automatic table editor because it gets in your
- way on lines which you would like to start with
- lisp
- (setq org-enable-table-editor nil)
- noindent Then the only table command that still works is
- node Column width and alignment
- cindex narrow columns in tables
- samp{<N>} where
- example
- end group
- noindent
- Fields that are wider become clipped and end in the string
- kbd{C-c `} (that is
- kbd{C-c
- C-c}.
- code{org-startup-align-all-tables} will realign all tables in a file
- upon visiting, but also slow down startup. You can also set this option
- on a per-file basis with:
- end example
- If you would like to overrule the automatic alignment of number-rich columns
- to the right and of string-rich columns to the left, you can use
- samp{<c>}
- samp{<l>} in a similar fashion. You may
- also combine alignment and field width like this:
- node Column groups
- cindex grouping columns in tables
- When Org exports tables, it does so by default without vertical lines because
- that is visually more satisfying in general. Occasionally however, vertical
- lines can be useful to structure a table into groups of columns, much like
- horizontal lines can do for groups of rows. In order to specify column
- groups, you can use a special row where the first field contains only
- samp{<} to indicate that
- this column should start a group,
- samp{<>} (no space between samp{>}) to make a column a group
- of its own. Boundaries between column groups will upon export be marked with
- vertical lines. Here is an example:
- end example
- It is also sufficient to just insert the column group starters after
- every vertical line you would like to have:
- end example
- section The Orgtbl minor mode
- cindex minor mode for tables
- If you like the intuitive way the Org table editor works, you
- might also want to use it in other modes like Text mode or Mail mode.
- The minor mode Orgtbl mode makes this possible. You can always toggle
- the mode with
- lisp
- (add-hook 'message-mode-hook 'turn-on-orgtbl)
- LaTeX{} tables with the underlying ease and power of
- Orgtbl mode, including spreadsheet capabilities. For details, see
- node The spreadsheet
- cindex calculations, in tables
- cindex
- file{calc} package to implement
- spreadsheet-like capabilities. It can also evaluate Emacs Lisp forms to
- derive fields from other fields. While fully featured, Org's implementation
- is not identical to other spreadsheets. For example, Org knows the concept
- of a
- menu
- * References:: How to refer to another field or range
- * Formula syntax for Calc:: Using Calc to compute stuff
- * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
- * Durations and time values:: How to compute durations and time values
- * Field and range formulas:: Formula for specific (ranges of) fields
- * Column formulas:: Formulas valid for an entire column
- * Lookup functions:: Lookup functions for searching tables
- * Editing and debugging formulas:: Fixing formulas
- * Updating the table:: Recomputing all dependent fields
- * Advanced features:: Field and column names, parameters and automatic recalc
- node References
- cindex references
- To compute fields in the table from other fields, formulas must
- reference other fields or ranges. In Org, fields can be referenced
- by name, by absolute coordinates, and by relative coordinates. To find
- out what the coordinates of a field are, press
- kbd{C-c
- subsubheading Field references
- cindex references, to fields
- Formulas can reference the value of another field in two ways. Like in
- any other spreadsheet, you may reference fields with a letter/number
- combination like
- vindex org-table-use-standard-references
- However, Org prefers
- samp{B4}, but it will not use this syntax when offering a formula
- for editing. You can customize this behavior using the option
- example
- var{column}
- code{$1},
- code{$
- code{$+1} or
- code{$<} and
- code{$>>>} to indicate the third
- column from the right.
- The row specification only counts data lines and ignores horizontal separator
- lines (hlines). Like with columns, you can use absolute row numbers
- code{2},...var{N}}, and row numbers relative to the
- current row like code{-1}. code{>} are
- immutable references the first and last
- code{$LR5} and
- code{>$} instead.} row in the table, respectively. You may also
- specify the row relative to one of the hlines:
- code{II} to the second, etc.
- code{+I} to the first such line below the
- current line. You can also write
- code{0} and
- emph{unsigned} numbers are fixed references
- in the sense that if you use the same reference in the formula for two
- different fields, the same field will be referenced each time.
- Org's references with
- example
- 2$3 code{C2})}
- $5 code{E&})}
- 2
- r{the field one row up, three columns to the left}
- -I$2
- r{field in the last row, in column 5}
- subsubheading Range references
- cindex references, to ranges
- You may reference a rectangular range of fields by specifying two field
- references connected by two dots
- samp{$2..$7}, but if at least one field
- is in a different row, you need to use the general
- samp{} in order to be interpreted correctly). Examples:
- r{first three fields in the current row}
- $P..$Q
- r{start in third column, continue to the last but one}
- 2$1..4$3 code{A2..C4})}
- -1$-2..-1
- r{between first and second hline, short for
- end example
- samp{E}, pxref{Formula syntax
- for Calc}.
- cindex field coordinates
- cindex row, of field coordinates
- code{#} and
- code{org-table-current-dline} and
- table
- item if(# % 2, $#, string(""))
- Insert column number on odd rows, set field to empty on even rows.
- code{FOO}
- into column 2 of the current table.
- code{FOO} into row 3 of the current table.
- noindent For the second/third example, the table named
- footnote{The computation time scales as O(N^2) because the table
- named
- subsubheading Named references
- cindex references, named
- cindex constants, in calculations
- vindex org-table-formula-constants
- code{org-table-formula-constants}, and locally (for the file) through a
- line like
- end example
- vindex constants-unit-system
- pxref{Properties and columns}) can be used as
- constants in table formulas: for a property
- samp{$PROP_Xyz}, and the property will be searched in the current
- outline entry and in the hierarchy above it. If you have the
- samp{$h} for Planck's constant, and
- units like footnote{
- code{SI}
- and
- code{constants-unit-system}. You can use the
- code{constSI} and
- ref{Advanced features}. All
- names must start with a letter, and further consist of letters and
- numbers.
- cindex remote references
- cindex references, to a different table
- cindex constants, in calculations
- example
- remote(NAME-OR-ID,REF)
- noindent
- where NAME can be the name of a table in the current file as set by a
- code{3$3} or
- code{ROW$COLUMN}
- it will be substituted with the name or ID found in this field of the current
- table. For example code{remote(year_2013,
- >$1)}. The format
- node Formula syntax for Calc
- cindex formula syntax, Calc
- file{Calc}
- package. Note that samp{/}
- has lower precedence than samp{a/b*c} is interpreted as
- code{calc-eval} (
- cindex vectors, in table calculations
- The range vectors can be directly fed into the Calc vector functions
- like samp{vsum}.
- cindex mode, for
- vindex org-calc-default-modes
- A formula can contain an optional mode string after a semicolon. This
- string consists of flags to influence Calc and other modes during
- execution. By default, Org uses the standard Calc modes (precision
- 12, angular units degrees, fraction and symbolic modes off). The display
- format, however, has been changed to
- code{org-calc-default-modes}.
- table
- item
- item code{s3}, code{f4}
- Normal, scientific, engineering or fixed format of the result of Calc passed
- back to Org. Calc formatting is unlimited in precision as long as the Calc
- calculation precision is greater.
- code{D},
- item code{S}
- Fraction and symbolic modes of Calc.
- code{T},
- pxref{Durations and time values}.
- code{E}
- If and how to consider empty fields. Without
- samp{E} the empty fields are kept. For empty
- fields in ranges or empty field references the value
- samp{N} to use 0 instead for both formula types. For the
- value of a field the mode samp{E}.
- code{N}
- Interpret all fields as numbers, use 0 for non-numbers. See the next section
- to see how this is essential for computations with Lisp formulas. In Calc
- formulas it is used only occasionally because there number strings are
- already interpreted as numbers without
- item
- end table
- samp{printf} format specifier to reformat the Calc result after it has been
- passed back to Org instead of letting Calc already do the
- formattingsamp{printf} reformatting is limited in precision
- because the value passed to it is converted into an
- samp{double}. The
- samp{double} is limited in precision to 64
- bits overall which leaves approximately 16 significant decimal digits.}. A
- few examples:
- r{Sum of first and second field}
- $1+$2;%.2f
- r{Math functions can be used}
- $0;%.1f
- r{Degrees F -> C conversion}
- $c/$1/$cm file{constants.el}}
- tan($1);Dp3s1
- r{Same, but use printf specifier for display}
- taylor($3,x=7,2)
- end example
- Calc also contains a complete set of logical operations, (
- table
- item if($1 < 20, teen, string(""))
- "teen" if age $1 is less than 20, else the Org table result field is set to
- empty with the empty string.
- samp{E} is required to not
- convert empty fields to 0.
- samp{%.1f} but leaves empty results empty.
- samp{nan} which lets
- samp{nan}. Then samp{nan} from
- item if("$1..$7" == "[]", string(""), vmean($1..$7))
- Mean value of a range with empty fields skipped. Every field in the range
- that is empty is skipped. When all fields in the range are empty the mean
- value is not defined and the Org table result field is set to empty. Use
- this when the sample set can have a variable size.
- end table
- You can add your own Calc functions defined in Emacs Lisp with
- node Formula syntax for Lisp
- cindex Lisp forms, as table formulas
- It is also possible to write a formula in Emacs Lisp. This can be useful
- for string manipulation and control structures, if Calc's functionality is
- not enough.
- If a formula starts with an apostrophe followed by an opening parenthesis,
- then it is evaluated as a Lisp form. The evaluation should return either a
- string or a number. Just as with
- samp{N} mode switch, all referenced elements will be numbers
- (non-number fields will be zero) and interpolated as Lisp numbers, without
- quotes. If you provide the
- code{"$3"}. Ranges are inserted as space-separated
- fields, so you can embed them in list or vector syntax.
- Here are a few examples---note how the
- table
- item '(concat (substring $1 1 2) (substring $1 0 1) (substring $1 2))
- Swap the first two characters of the content of column 1.
- code{$1+$2}.
- code{vsum($1..$4)}.
- node Durations and time values
- cindex Duration, computing
- vindex org-table-duration-custom-format
- If you want to compute time values use the
- example
- end group
- code{HH:MM[:SS]}, where seconds
- are optional. With the
- code{HH:MM:SS} (see the first formula above). With the
- code{org-table-duration-custom-format}, which defaults to
- node Field and range formulas
- cindex field formula
- cindex formula, for individual table field
- samp{:=}, for example
- key{TAB} or kbd{C-c C-c} with the cursor still in the field,
- the formula will be stored as the formula for this field, evaluated, and the
- current field will be replaced with the result.
- samp{#+TBLFM:} directly
- below the table. If you type the equation in the 4th field of the 3rd data
- line in the table, the formula will look like
- i{absolute references} (but not relative ones) in stored formulas are
- modified in order to still reference the same field. To avoid this, in
- particular in range references, anchor ranges at the table borders (using
- code{>}, code{$>}), or at hlines using the
- table
- orgcmd{C-u C-c =,org-table-eval-formula}
- Install a new formula for the current field. The command prompts for a
- formula with default taken from the
- end table
- The left-hand side of a formula can also be a special expression in order to
- assign the formula to a number of different fields. There is no keyboard
- shortcut to enter such range formulas. To add them, use the formula editor
- (code{#+TBLFM:} line
- directly.
- code
- ref{Column formulas}.
- code{>=} means
- the last row.
- item $name=
- Named field, see
- end table
- subsection Column formulas
- cindex formula, for table column
- When you assign a formula to a simple column reference like
- emph{header} and will not be modified by column
- formulas. Therefore a header is mandatory when you use column formulas and
- want to add hlines to group rows, like for example to separate a total row at
- the bottom from the summand rows above. (ii) Fields that already get a value
- from a field/range formula will be left alone by column formulas. These
- conditions make column formulas very easy to use.
- To assign a formula to a column, type it directly into any field in the
- column, preceded by an equal sign, like
- key{TAB} or kbd{C-c C-c} with the cursor still in the field,
- the formula will be stored as the formula for the current column, evaluated
- and the current field replaced with the result. If the field contains only
- samp{#+TBLFM:} line, column formulas will look like
- code{$>}.
- Instead of typing an equation into the field, you may also use the
- following command:
- kbd
- samp{#+TBLFM} line, applies it to the current field and
- stores it. With a numeric prefix argument(e.g.,
- end table
- subsection Lookup functions
- cindex table lookup functions
- Org has three predefined Emacs Lisp functions for lookups in tables.
- code
- findex org-lookup-first
- Searches for the first element code{S-LIST} for which
- end lisp
- is
- code{R-LIST}. The default code{equal}. Note that the
- parameters code{S} are passed to
- code{org-lookup-first}, where code{S-LIST}. If
- code{nil}, the matching element code{S-LIST}
- is returned.
- findex org-lookup-last
- Similar to i{last}
- element for which code{t}.
- findex org-lookup-all
- Similar to i{all} elements for
- which code{t}, and returns
- end table
- If the ranges used in these functions contain empty fields, the
- code{S-LIST} and/or
- code{S-LIST} to the corresponding
- element of
- uref{http://orgmode.org/worg/org-tutorials/org-lookups.html, this
- tutorial on Worg}.
- subsection Editing and debugging formulas
- cindex editing, of table formulas
- code{B3} or
- code{3$2} or
- code{org-table-use-standard-references}.
- kbd
- ref{Column formulas}, and
- orgcmd{C-u C-u C-c =,org-table-eval-formula}
- Re-insert the active formula (either a
- field formula, or a column formula) into the current field, so that you
- can edit it directly in the field. The advantage over editing in the
- minibuffer is that you can use the command
- orgcmd{C-c ?,org-table-field-info}
- While editing a formula in a table field, highlight the field(s)
- referenced by the reference at the cursor position in the formula.
- }
- item C-c
- command{org-table-toggle-coordinate-overlays}). These are updated each
- time the table is aligned; you can force it with
- kindex C-c
- findex org-table-toggle-formula-debugger
- {
- Toggle the formula debugger on and off
- (
- orgcmd{C-c ',org-table-edit-formulas}
- Edit all formulas for the current table in a special buffer, where the
- formulas will be displayed one per line. If the current field has an
- active formula, the cursor in the formula editor will mark it.
- While inside the special buffer, Org will automatically highlight
- any field or range reference at the cursor position. You may edit,
- remove and add formulas, and use the following commands:
- kbd
- kbd{C-u}
- prefix, also apply the new formulas to the entire table.
- orgcmd{C-c C-r,org-table-fedit-toggle-ref-type}
- Toggle all references in the formula editor between standard (like
- code{3$2}).
- key{TAB},org-table-fedit-lisp-indent}
- Pretty-print or indent Lisp formula at point. When in a line containing
- a Lisp formula, format the formula according to Emacs Lisp rules.
- Another
- key{TAB} re-indents just like in Emacs Lisp mode.
- key{TAB},lisp-complete-symbol}
- Complete Lisp symbols, just like in Emacs Lisp mode.
- key{up}
- key{down}
- key{left}
- key{right}
- findex org-table-fedit-ref-down
- findex org-table-fedit-ref-right
- key{up}/key{left}/
- code{B3} and you press key{right}}, it will become
- orgcmdkkcc{M-S-key{down},org-table-fedit-line-up,org-table-fedit-line-down}
- Move the test line for column formulas in the Org buffer up and
- down.
- key{up},M-
- kindex C-c
- findex org-table-toggle-coordinate-overlays
- }
- Turn the coordinate grid in the table on and off.
- end table
- Making a table field blank does not remove the formula associated with
- the field, because that is stored in a different line (the
- samp{#+TBLFM} line.
- samp{#+TBLFM} directly and re-apply the changed
- equations with
- anchor{Using multiple #+TBLFM lines}
- cindex #+TBLFM line, multiple
- cindex #+TBLFM, switching
- samp{#+TBLFM} lines right
- after the table, and then press
- example
- | x | y |
- |---+---|
- | 1 | |
- | 2 | |
- #+TBLFM: $2=$1*1
- #+TBLFM: $2=$1*2
- noindent
- Pressing samp{#+TBLFM: $2=$1*2} yields:
- end example
- kbd{C-u C-c *}, for example), you
- will get the following result of applying only the first
- example
- | x | y |
- |---+---|
- | 1 | 1 |
- | 2 | 2 |
- #+TBLFM: $2=$1*1
- #+TBLFM: $2=$1*2
- subsubheading Debugging formulas
- cindex debugging, of table formulas
- When the evaluation of a formula leads to an error, the field content
- becomes the string
- code{Tbl} menu and repeat the
- calculation, for example by pressing key{RET}} in a
- field. Detailed information will be displayed.
- subsection Updating the table
- cindex updating, table
- Recalculation of a table is normally not automatic, but needs to be
- triggered by a command. See
- table
- orgcmd{C-c *,org-table-recalculate}
- Recalculate the current row by first applying the stored column formulas
- from left to right, and all field/range formulas in the current row.
- kindex C-u C-c *
- kindex C-u C-c C-c
- c
- i{later} in the calculation sequence.
- findex org-table-recalculate-buffer-tables
- Recompute all tables in the current buffer.
- findex org-table-iterate-buffer-tables
- Iterate all tables in the current buffer, in order to converge table-to-table
- dependencies.
- node Advanced features
- i{names}
- table
- orgcmd{C-#,org-table-rotate-recalc-marks}
- Rotate the calculation mark in first column through the states
- samp{#}, samp{!},
- end table
- Here is an example of a table that collects exam results of students and
- makes use of these features:
- group
- |---+---------+--------+--------+--------+-------+------|
- | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
- |---+---------+--------+--------+--------+-------+------|
- | ! | | P1 | P2 | P3 | Tot | |
- | # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
- | ^ | | m1 | m2 | m3 | mt | |
- |---+---------+--------+--------+--------+-------+------|
- | # | Peter | 10 | 8 | 23 | 41 | 8.2 |
- | # | Sam | 2 | 4 | 3 | 9 | 1.8 |
- |---+---------+--------+--------+--------+-------+------|
- | | Average | | | | 25.0 | |
- | ^ | | | | | at | |
- | $ | max=50 | | | | | |
- |---+---------+--------+--------+--------+-------+------|
- #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(-II..-I);%.1f
- end example
- b{Important}: please note that for these special tables,
- recalculating the table with
- samp{#} or
- cindex marking characters, tables
- The marking characters have the following meaning:
- samp
- samp{$Tot} instead of
- item ^
- This row defines names for the fields
- samp{$m1} to refer to
- the value
- samp{$name=...}.
- samp{^}, but defines names for the fields in the row
- item $
- Fields in this row can define
- samp{$} row contains
- samp{$max}.
- Parameters work exactly like constants, only that they can be defined on
- a per-table basis.
- key{TAB} or kbd{S-
- kbd{C-u C-c *}. Unmarked
- lines will be left alone by this command.
- kbd{C-u C-c *}, but
- not for automatic recalculation. Use this when automatic
- recalculation slows down editing too much.
- w{ }
- Unmarked lines are exempt from recalculation with
- samp{#}
- or
- item /
- Do not export this line. Useful for lines that contain the narrowing
- end table
- Finally, just to whet your appetite for what can be done with the
- fantastic
- code{n} at location
- example
- end group
- node Org-Plot
- cindex graph, in tables
- cindex #+PLOT
- Org-Plot can produce graphs of information stored in org tables, either
- graphically or in ASCII-art.
- file{Gnuplot}
- Org-Plot produces 2D and 3D graphs using
- uref{http://www.gnuplot.info/} and
- uref{http://xafs.org/BruceRavel/GnuplotMode}. To see this in action, ensure
- that you have both Gnuplot and Gnuplot mode installed on your system, then
- call kbd{M-x org-plot/gnuplot
- example
- end group
- code{#+PLOT:} lines preceding a table. See below
- for a complete list of Org-plot options. The
- uref{http://orgmode.org/worg/org-tutorials/org-plot.html}.
- table
- item set
- Specify any
- item title
- Specify the title of the plot.
- code{x} axis.
- code{dep:(3 4)} to graph the third and
- fourth columns (defaults to graphing all other columns aside from the
- item type
- Specify whether the plot will be code{3d}, or
- item with
- Specify a
- code{lines}, code{boxes},
- code{lines}.
- code{"@var{path/to/desired/output-file}"}.
- code{deps} (defaults to the column headers
- if they exist).
- item map
- When plotting code{grid} types, set this to
- code{3d} slope.
- samp{%Y-%m-%d-%H:%M:%S}.
- code{$datafile} in the specified script will be replaced with
- the path to the generated data file. Note: even if you set this option, you
- may still want to specify the plot type, as that can impact the content of
- the data file.
- subheading ASCII bar plots
- While the cursor is on a column, typing
- kbd{M-x orgtbl-ascii-plot
- kbd{C-u C-c *}.
- group
- | Sede | Max cites | |
- |---------------+-----------+--------------|
- | Chile | 257.72 | WWWWWWWWWWWW |
- | Leeds | 165.77 | WWWWWWWh |
- | Sao Paolo | 71.00 | WWW; |
- | Stockholm | 134.19 | WWWWWW: |
- | Morelia | 257.56 | WWWWWWWWWWWH |
- | Rochefourchat | 0.00 | |
- #+TBLFM: $3='(orgtbl-ascii-draw $2 0.0 257.72 12)
- end example
- The formula is an elisp call:
- end lisp
- code
- item MIN MAX
- are the minimal and maximal values displayed. Sources values
- outside this range are displayed as
- samp{too large}.
- samp{12}.
- node Hyperlinks
- cindex hyperlinks
- Like HTML, Org provides links inside a file, external links to
- other files, Usenet articles, emails, and much more.
- end menu
- section Link format
- cindex format, of links
- Org will recognize plain URL-like links and activate them as
- clickable links. The general link format, however, looks like this:
- r{or alternatively} [[link]]
- noindent
- Once a link in the buffer is complete (all brackets present), Org
- will change the display so that
- samp{[[link][description]]} and
- samp{[[link]]}. Links will be highlighted in the face
- samp{link}
- part (if there is no description) or the
- samp{link} part, use
- key{BACKSPACE}, you will remove the
- (invisible) bracket at that location. This makes the link incomplete
- and the internals are again displayed as plain text. Inserting the
- missing bracket hides the link internals again. To show the
- internal structure of all links, use the menu entry
- node Internal links
- cindex internal links
- cindex targets, for links
- samp{[[#my-custom-id]]} which will link to the entry with the
- samp{my-custom-id}. You are responsible yourself
- to make sure these custom IDs are unique in a file.
- Links such as samp{[[My Target][Find my target]]}
- lead to a text search in the current file.
- The link can be followed with
- pxref{Handling links}). Links to custom IDs will
- point to the corresponding headline. The preferred match for a text link is
- a
- samp{<<My Target>>}.
- code{#+NAME}
- keyword, which has to be put in the line before the element it refers to, as
- in the following example
- end example
- If none of the above succeeds, Org will search for a headline that is exactly
- the link text but may also include a TODO keyword and tags
- kbd{M-
- footnote{When targeting a
- code{#+CAPTION} keyword is mandatory in order to get proper numbering
- (
- example
- - one item
- - <<target>>another item
- Here we refer to item [[target]].
- noindent
- The last sentence will appear as
- samp{my target}.
- Following a link pushes a mark onto Org's own mark ring. You can
- return to the previous position with
- menu
- * Radio targets:: Make targets trigger links in plain text
- node Radio targets
- cindex radio targets
- cindex links, radio targets
- Org can automatically turn any occurrences of certain target names
- in normal text into a link. So without explicitly creating a link, the
- text connects to the target radioing its position. Radio targets are
- enclosed by triple angular brackets. For example, a target
- samp{my target} in normal text to
- become activated as a link. The Org file is scanned automatically
- for radio targets only when the file is first loaded into Emacs. To
- update the target list during editing, press
- node External links
- cindex links, external
- cindex Gnus links
- cindex IRC links
- cindex file links
- cindex MH-E links
- cindex SHELL links
- cindex Elisp links
- Org supports links to files, websites, Usenet and email messages, BBDB
- database entries and links to both IRC conversations and their logs.
- External links are URL-like locators. They start with a short identifying
- string followed by a colon. There can be no space after the colon. The
- following list shows examples for each link type.
- r{on the web}
- doi:10.1000/182
- r{file, absolute path}
- /home/dominik/images/jupiter.jpg
- r{file, relative path}
- ./papers/last.pdf
- r{file, path on remote machine}
- /myselfsome.where:papers/last.pdf
- r{file, jump to line number}
- file:projects.org
- r{text search in Org file}
- code{org-link-search-must-match-exact-headline}. If its value
- is
- code{query-to-create}, then an exact headline will be searched; if it is not
- found, then the user will be queried to create it.}
- file:projects.org::*task title
- footnote{Headline searches always match the exact headline, ignoring
- spaces and cookies. If the headline is not found and the value of the option
- code{query-to-create},
- then the user will be queried to create it.}
- docview:papers/last.pdf::NNN
- r{Link to heading by ID}
- news:comp.emacs
- r{Mail link}
- mhe:folder
- r{MH-E message link}
- rmail:folder
- r{RMAIL message link}
- gnus:group
- r{Gnus article link}
- bbdb:R.*Stallman
- r{IRC link}
- info:org#External links
- r{A shell command}
- elisp:org-agenda
- r{Elisp form to evaluate}
- cindex VM links
- code{contrib/} directory (
- code{contrib/} directory:
- r{VM folder link}
- vm:folder#id
- r{VM on remote machine}
- vm-imap:account:folder
- r{VM IMAP message link}
- wl:folder
- r{WANDERLUST message link}
- ref{Adding hyperlink types}.
- A link should be enclosed in double brackets and may contain a descriptive
- text to be displayed instead of the URL (
- example
- [[http://www.gnu.org/software/emacs/][GNU Emacs]]
- noindent
- If the description is a file name or URL that points to an image, HTML
- export (
- cindex square brackets, around links
- samp{bbdb:Richard Stallman}), or if you need to remove ambiguities
- about the end of the link, enclose them in square brackets.
- section Handling links
- table
- orgcmd{C-c l,org-store-link}
- emph{global} command (you
- must create the key binding yourself) which can be used in any buffer to
- create a link. The link will be stored for later insertion into an Org
- buffer (see below). What kind of link will be created depends on the current
- buffer:
- *
- For Org files, if there is a
- footnote{If the headline contains a timestamp, it will be
- removed from the link and result in a wrong link---you should avoid putting
- timestamp in the headline.}.
- cindex property, CUSTOM_ID
- code{CUSTOM_ID} property, a link to this custom ID
- will be stored. In addition or alternatively (depending on the value of
- code{ID} property will
- be created and/or used to construct a link
- file{org-id.el} must first be loaded, either through
- code{org-id} in code{(require
- 'org-id)} in your Emacs init file.}. So using this command in Org buffers
- will potentially create two links: a human-readable from the custom ID, and
- one that is globally unique and works even if the entry is moved from file to
- file. Later, when inserting the link, you need to decide which one to use.
- *
- Pretty much all Emacs mail clients are supported. The link will point to the
- current article, or, in some GNUS buffers, to the group. The description is
- constructed from the author and the subject.
- *
- Here the link will be the current URL, with the page title as description.
- *
- Links created in a BBDB buffer will point to the current entry.
- *
- code{org-irc-link-to-logs} to
- samp{file:/} style link to the relevant point in the logs for the current
- conversation is created. Otherwise an
- b{Other files}
- pxref{Search options}) pointing to the contents of the current line. If
- there is an active region, the selected words will form the basis of the
- search string. If the automatically created link is not working correctly or
- accurately enough, you can write custom functions to select the search string
- and to do the search for particular file types---see
- kbd{C-c l} is only a suggestion---see
- b{Agenda view}
- c
- cindex link completion
- cindex inserting links
- vindex org-link-parameters
- Insert a link
- footnote{After insertion of a stored link, the link will be
- removed from the list of stored links. To keep it in the list later use, use
- a triple kbd{C-c C-l}, or configure the option
- b{Inserting stored links}
- key{up} and kbd{M-p/n}).
- * Completion with
- samp{http:} or
- pxref{Link abbreviations}). If you
- press var{prefix}, Org will offer
- specific completion support for some link types
- samp{:complete} property of a link
- in kbd{file
- kbd{C-u C-c C-l}, see
- below) will be offered, and after key{RET}} you can complete
- contact names.
- cindex file name completion
- kbd{C-c C-l} is called with a
- samp{../}. Otherwise an absolute path
- is used, if possible with
- kbd{C-u} prefixes.
- item C-c C-l r{(with cursor on existing link)}
- When the cursor is on an existing link,
- c
- orgcmd{C-c C-o,org-open-at-point}
- vindex org-link-frame-setup
- Open link at point. This will launch a web browser for URLs (using
- samp{file:} links
- with Emacs and select a suitable application for local non-text files.
- Classification of files is based on file extension only. See option
- kbd{C-u} prefix. If you want to avoid
- opening in Emacs, use a *
- If the cursor is on a headline, but not on a link, offer all links in the
- headline and entry text. If you want to setup the frame configuration for
- following links, customize
- orgkey
- vindex org-return-follows-link
- When kbd{
- c
- kindex mouse-1
- itemx mouse-1
- On links, kbd{mouse-2} will open the link just as
- c
- item mouse-3
- kbd{mouse-2}, but force file links to be opened with Emacs, and
- internal links to be displayed in another window
- code{org-display-internal-link-with-indirect-buffer}}.
- orgcmd{C-c C-x C-v,org-toggle-inline-images}
- cindex images, inlining
- cindex
- cindex
- code{org-startup-with-inline-images}
- code{#+STARTUP} keywords code{noinlineimages}}.
- cindex mark ring
- Push the current position onto the mark ring, to be able to return
- easily. Commands following an internal link do this automatically.
- orgcmd{C-c &,org-mark-ring-goto}
- kbd{C-c %}. Using this
- command several times in direct succession moves through a ring of
- previously recorded positions.
- orgcmdkkcc{C-c C-x C-n,C-c C-x C-p,org-next-link,org-previous-link}
- kbd{C-n} and
- lisp
- (add-hook 'org-load-hook
- (lambda ()
- (define-key org-mode-map "\C-n" 'org-next-link)
- (define-key org-mode-map "\C-p" 'org-previous-link)))
- end table
- section Using links outside Org
- You can insert and follow links that have Org syntax not only in
- Org, but in any Emacs buffer. For this, you should create two
- global commands, like this (please select suitable global keys
- yourself):
- end lisp
- section Link abbreviations
- cindex abbreviation, links
- Long URLs can be cumbersome to type, and often many similar links are
- needed in a document. For this you can use link abbreviations. An
- abbreviated link looks like this
- end example
- vindex org-link-abbrev-alist
- where the tag is optional.
- The
- samp{-}, and
- code{org-link-abbrev-alist}
- that relates the linkwords to replacement text. Here is an example:
- group
- (setq org-link-abbrev-alist
- '(("bugzilla" . "http://10.1.2.9/bugzilla/show_bug.cgi?id=")
- ("url-to-ja" . "http://translate.google.fr/translate?sl=en&tl=ja&u=%h")
- ("google" . "http://www.google.com/search?q=")
- ("gmap" . "http://maps.google.com/maps?q=%s")
- ("omap" . "http://nominatim.openstreetmap.org/search?q=%s&polygon=1")
- ("ads" . "http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author=%s&db_key=AST")))
- end smalllisp
- If the replacement text contains the string
- samp{%h} instead of
- samp{%(my-function)} will pass the tag
- to a custom function, and replace it by the resulting string.
- If the replacement text doesn't contain any specifier, the tag will simply be
- appended in order to create the link.
- Instead of a string, you may also specify a function that will be
- called with the tag as the only argument to create the link.
- With the above setting, you could link to a specific bug with
- samp{OrgMode} with
- code{[[gmap:51 Franklin Street, Boston]]} or of Carsten office
- code{[[ads:Dominik,C]]}.
- If you need special abbreviations just for a single Org buffer, you
- can define them in the file with
- example
- #+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
- #+LINK: google http://www.google.com/search?q=%s
- noindent
- In-buffer completion (samp{[} to
- complete link abbreviations. You may also define a function that implements
- special (e.g., completion) support for inserting such a link with
- lisp
- (org-link-set-parameters ``type'' :complete #'some-function)
- node Search options
- cindex search option in file links
- footnote{For backward
- compatibility, line numbers can also follow a single colon.} colon. For
- example, when the command pxref{Handling
- links}) to a file, it encodes the words in the current line as a search
- string that can be used to find this line back later when following the
- link with
- example
- [[file:~/code/main.c::255]]
- [[file:~/xx.org::My Target]]
- [[file:~/xx.org::*My Target]]
- [[file:~/xx.org::#my-custom-id]]
- [[file:~/xx.org::/regexp/]]
- table
- item 255
- Jump to line 255.
- samp{<<My Target>>}, or do a text search for
- ref{Internal links}. In HTML export (
- item *My Target
- In an Org file, restrict search to headlines.
- code{CUSTOM_ID} property
- code{regexp}. This uses the Emacs
- command
- code{org-occur} is used to create a
- sparse tree with the matches.
- c
- end table
- As a degenerate case, a file link with an empty file name can be used
- to search the current file. For example,
- samp{find me} in the current file, just as
- node Custom searches
- cindex custom search strings
- TeX{} database files have many entries like
- TeX{} entry is the
- citation key.
- vindex org-execute-file-search-functions
- If you come across such a problem, you can write custom functions to set
- the right search string for a particular file type, and to do the search
- for the string in the file. Using
- code{org-create-file-search-functions} and
- TeX{} database files, and you can use the corresponding code as
- an implementation example. See the file
- node TODO items
- cindex TODO items
- Org mode does not maintain TODO lists as separate documents
- menu
- * TODO basics:: Marking and displaying TODO entries
- * TODO extensions:: Workflow and assignments
- * Progress logging:: Dates and notes for progress
- * Priorities:: Some things are more important than others
- * Breaking down tasks:: Splitting a task into manageable pieces
- * Checkboxes:: Tick-off lists
- node TODO basics
- samp{TODO}, for example:
- end example
- table
- orgcmd{C-c C-t,org-todo}
- vindex org-use-fast-todo-selection
- Rotate the TODO state of the current item among
- end example
- If TODO keywords have fast access keys (see
- code{org-use-fast-todo-selection} is non-
- kbd{t} command key (
- orgkey{C-u C-c C-t}
- When TODO keywords have no selection keys, select a specific keyword using
- completion; otherwise force cycling through TODO states with no prompt. When
- code{prefix}, use the fast
- selection interface.
- key{right}
- key{left}
- key{right} r{/} key{left}
- pxref{TODO
- extensions}). See also
- code{shift-selection-mode}. See also the variable
- orgcmd{C-c / t,org-show-todo-tree}
- vindex org-todo-keywords
- View TODO items in a pxref{Sparse trees}). Folds the
- entire buffer, but shows all TODO items (with not-DONE state) and the
- headings hierarchy above them. With a prefix argument (or by using
- . You will be prompted for the keyword,
- and you can also give a list of keywords like
- code{org-todo-keywords}.
- With two prefix arguments, find all TODO states, both un-done and done.
- pxref{Agenda views}) into a single buffer. The new
- buffer will be in
- pxref{Agenda commands}).
- orgcmd{S-M-
- end table
- vindex org-todo-state-tags-triggers
- Changing a TODO state can also trigger tag changes. See the docstring of the
- option
- node TODO extensions
- cindex extended TODO keywords
- . Org mode allows you to classify TODO items in more complex ways
- with code{org-todo-keywords}). With
- special setup, the TODO keyword system can work differently in different
- files.
- Note that
- pxref{Tags}).
- end menu
- subsection TODO keywords as workflow states
- cindex workflow states as TODO keywords
- You can use TODO keywords to indicate different
- footnote{Changing
- this variable only becomes effective after restarting Org mode in a
- buffer.}:
- end lisp
- The vertical bar separates the TODO keywords (states that
- emph{no further action}). If
- you don't provide the separator bar, the last state is used as the DONE
- state.
- kbd{C-c C-t} will cycle an entry from TODO
- to FEEDBACK, then to VERIFY, and finally to DONE and DELEGATED
- kbd{C-3 C-c C-t} will change the state immediately to VERIFY
- kbd{S-
- pxref{Completion}) or even a special one-key selection scheme
- (
- ref{Tracking TODO state changes}, for more information.
- subsection TODO keywords as types
- cindex names as TODO keywords
- emph{types} of action items. For example, you might want to indicate
- that items are for ``work'' or ``home''. Or, when you work with several
- people on a single project, you might want to assign action items
- directly to persons, by using their names as TODO keywords. This would
- be set up like this:
- end lisp
- In this case, different keywords do not indicate a sequence, but rather
- different types. So the normal work flow would be to assign a task to
- a person, and later to mark it DONE
- kbd{C-c C-t}
- kbd{t} command in the agenda buffers.}. When used several times in
- succession, it will still cycle through all names, in order to first select
- the right type for a task. But when you return to the item after some time
- and execute
- . Use prefix arguments or completion to quickly select a specific name.
- You can also review the items of a specific TODO type in a sparse tree by
- using a numeric prefix to
- kbd{C-3 C-c / t}. To collect Lucy's items from all
- agenda files into a single buffer, you would use the numeric prefix argument
- as well when creating the global TODO list:
- node Multiple sets in one file
- cindex TODO keyword sets
- Sometimes you may want to use different sets of TODO keywords in
- parallel. For example, you may want to have the basic
- code{DONE}, but also a workflow for bug fixing, and a
- separate state indicating that an item has been canceled (so it is not
- DONE, but also does not require action). Your setup would then look
- like this:
- end lisp
- The keywords should all be different, this helps Org mode to keep track
- of which subsequence should be used for a given entry. In this setup,
- code{DONE} to (nothing) to code{FIXED} to
- (nothing) to
- table
- kindex C-S-
- kindex C-S-
- kindex C-u C-u C-c C-t
- itemx C-S-
- itemx C-S-
- kbd{C-u C-u C-c C-t} or key{right}} would jump from
- code{DONE} to
- code{CANCELED}. Note that the
- code{shift-selection-mode} (
- kindex S-
- kindex S-
- item S-
- itemx S-
- kbd{S-kbd{S-emph{all}
- keywords from all sets, so for example key{right}} would switch
- from code{REPORT} in the example above. See also
- code{shift-selection-mode}.
- node Fast access to TODO states
- footnote{All characters are allowed except
- lisp
- (setq org-todo-keywords
- '((sequence "TODO(t)" "|" "DONE(d)")
- (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)" "|" "FIXED(f)")
- (sequence "|" "CANCELED(c)")))
- vindex org-fast-tag-selection-include-todo
- If you then press
- kbd{SPC} can be used to remove any TODO
- keyword from an entry.
- code{org-fast-tag-selection-include-todo}, it allows you to change the TODO
- state through the tags interface (
- node Per-file keywords
- cindex keyword options
- cindex #+TODO
- cindex #+SEQ_TODO
- It can be very useful to use different aspects of the TODO mechanism in
- different files. For file-local settings, you need to add special lines to
- the file which set the keywords and interpretation for that file only. For
- example, to set one of the two examples discussed above, you need one of the
- following lines anywhere in the file:
- end example
- code{#+SEQ_TODO} to be explicit about the
- interpretation, but it means the same as
- example
- #+TYP_TODO: Fred Sara Lucy Mike | DONE
- example
- #+TODO: TODO | DONE
- #+TODO: REPORT BUG KNOWNCAUSE | FIXED
- #+TODO: | CANCELED
- cindex completion, of option keywords
- key{TAB}
- samp{#+} into the buffer and then use key{TAB}} completion.
- kbd{C-c C-c} with the cursor still in the line to make the changes
- known to Org mode
- kbd{C-c C-c} with the
- cursor in a line starting with
- node Faces for TODO keywords
- cindex faces, for TODO keywords
- r{(face)}
- r{(face)}
- code{org-todo}
- for keywords indicating that an item still has to be acted upon, and
- code{org-todo-keyword-faces}. For example:
- group
- (setq org-todo-keyword-faces
- '(("TODO" . org-warning) ("STARTED" . "yellow")
- ("CANCELED" . (:foreground "blue" :weight bold))))
- end lisp
- While using a list with face properties as shown for CANCELED
- code{org-faces-easy-properties} determines if that color is interpreted as a
- foreground or a background color.
- subsection TODO dependencies
- cindex dependencies, of TODO states
- vindex org-enforce-todo-dependencies
- . And sometimes
- there is a logical sequence to a number of (sub)tasks, so that one task
- cannot be acted upon before all siblings above it are done. If you customize
- the option
- .
- Furthermore, if an entry has a property
- . Here is an
- example:
- end example
- You can ensure an entry is never blocked by using the
- example
- * This entry is never blocked
- :PROPERTIES:
- :NOBLOCKING: t
- :END:
- table
- orgcmd{C-c C-x o,org-toggle-ordered-property}
- cindex property, ORDERED
- Toggle the
- i{track} the value of
- this property with a tag for better visibility, customize the option
- orgkey{C-u C-u C-u C-c C-t}
- Change TODO state, circumventing any state blocking.
- vindex org-agenda-dim-blocked-tasks
- If you set the option
- pxref{Agenda views}).
- vindex org-enforce-todo-dependencies
- You can also block changes of TODO states by looking at checkboxes
- (
- code{org-enforce-todo-checkbox-dependencies}, an entry that has unchecked
- checkboxes will be blocked from switching to DONE.
- If you need more complex dependency structures, for example dependencies
- between entries in different trees or files, check out the contributed
- module
- page
- section Progress logging
- cindex logging, of progress
- Org mode can automatically record a timestamp and possibly a note when
- you mark a TODO item as DONE, or even each time you change the state of
- a TODO item. This system is highly configurable; settings can be on a
- per-keyword basis and can be localized to a file or even a subtree. For
- information on how to clock working time for a task, see
- menu
- * Closing items:: When was this entry marked DONE?
- * Tracking TODO state changes:: When did the status change?
- * Tracking your habits:: How consistent have you been?
- node Closing items
- emph{when} a certain TODO
- item was finished. This is achieved with
- code{#+STARTUP: logdone}}
- end lisp
- noindent
- Then each time you turn an entry from a TODO (not-done) state into any of the
- DONE states, a line
- key{C-c C-t SPC} for example), that line
- will also be removed, unless you set
- code{nil}. If you want to record a note along with the timestamp,
- usecode{#+STARTUP:
- lognotedone}.}
- end lisp
- samp{Closing Note} heading.
- subsection Tracking TODO state changes
- vindex org-log-states-order-reversed
- cindex property, LOG_INTO_DRAWER
- When TODO keywords are used as workflow states (
- footnote{See the option
- pxref{Drawers}).
- Customize
- code{LOGBOOK}
- code{LOGBOOK} drawer is unfolded when pressing
- key{C-u SPC} to keep it folded here}. You can also
- overrule the setting of this variable for a subtree by setting a
- samp{!} (for a timestamp) or
- lisp
- (setq org-todo-keywords
- '((sequence "TODO(t)" "WAIT(w@@/!)" "|" "DONE(d!)" "CANCELED(c@@)")))
- samp{}, just type
- noindent
- footnote{It is possible that Org mode will record two timestamps
- when you are using both
- samp{Closing Note}.}, and that a note is recorded when switching to
- WAIT or CANCELED
- samp{!} after the slash means that in addition to the note taken when
- entering the state, a timestamp should be recorded when
- i{target} state does not configure
- logging for entering it. So it has no effect when switching from WAIT
- to DONE, because DONE is configured to record a timestamp only. But
- when switching from WAIT back to TODO, the
- example
- #+TODO: TODO(t) WAIT(w/!) | DONE(d!) CANCELED(c)
- cindex property, LOGGING
- In order to define logging settings that are local to a subtree or a
- single item, define a LOGGING property in this entry. Any non-empty
- LOGGING property resets all logging settings to
- code{lognotedone} or
- code{TODO(!)}. For example
- end example
- subsection Tracking your habits
- enumerate
- code{habits} module by customizing
- item
- The habit is a TODO item, with a TODO keyword representing an open state.
- code{STYLE} is set to the value
- item
- The TODO has a scheduled date, usually with a
- code{++} style may be appropriate for habits with time
- constraints, e.g., must be done on weekends, or a
- item
- The TODO may also have minimum and maximum ranges specified by using the
- syntax
- item
- You must also have state logging for the
- pxref{Tracking TODO state changes}), in order for historical data to be
- represented in the consistency graph. If it is not enabled it is not an
- error, but the consistency graphs will be largely meaningless.
- example
- ** TODO Shave
- SCHEDULED: <2009-10-17 Sat .+2d/4d>
- :PROPERTIES:
- :STYLE: habit
- :LAST_REPEAT: [2009-10-19 Mon 00:36]
- :END:
- - State "DONE" from "TODO" [2009-10-15 Thu]
- - State "DONE" from "TODO" [2009-10-12 Mon]
- - State "DONE" from "TODO" [2009-10-10 Sat]
- - State "DONE" from "TODO" [2009-10-04 Sun]
- - State "DONE" from "TODO" [2009-10-02 Fri]
- - State "DONE" from "TODO" [2009-09-29 Tue]
- - State "DONE" from "TODO" [2009-09-25 Fri]
- - State "DONE" from "TODO" [2009-09-19 Sat]
- - State "DONE" from "TODO" [2009-09-16 Wed]
- - State "DONE" from "TODO" [2009-09-12 Sat]
- code{SCHEDULED} date and repeat interval) and at least every 4 days. If
- today is the 15th, then the habit first appears in the agenda on Oct 17,
- after the minimum of 2 days has elapsed, and will appear overdue on Oct 19,
- after four days have elapsed.
- What's really useful about habits is that they are displayed along with a
- consistency graph, to show how consistent you've been at getting that task
- done in the past. This graph shows every day that the task was done over the
- past three weeks, with colors for each day. The colors used are:
- code
- item Green
- If the task could have been done on that day.
- item Red
- If the task was overdue on that day.
- table
- item org-habit-graph-column
- The buffer column at which the consistency graph should be drawn. This will
- overwrite any text in that column, so it is a good idea to keep your habits'
- titles brief and to the point.
- item org-habit-following-days
- The number of days after today that will appear in consistency graphs.
- code{nil}, only show habits in today's agenda view. This is set to true by
- default.
- kbd{K} in the agenda buffer will cause habits to
- temporarily be disabled and they won't appear at all. Press
- node Priorities
- cindex priorities
- If you use Org mode extensively, you may end up with enough TODO items that
- it starts to make sense to prioritize them. Prioritizing can be done by
- placing a
- example
- *** TODO [#A] Write letter to Sam Fortune
- noindent
- samp{A},
- samp{C}.
- samp{B}. Priorities make a difference only for
- sorting in the agenda (
- code{org-priority-faces}.
- Priorities can be attached to any outline node; they do not need to be TODO
- items.
- kbd
- kbd{C-c ,}
- kbd{C-c ,}
- command{org-priority}). The
- command prompts for a priority character samp{B} or
- key{SPC} instead, the priority cookie is removed from the
- headline. The priorities can also be changed ``remotely'' from the agenda
- buffer with the pxref{Agenda commands}).
- orgcmdkkcc{S-key{down},org-priority-up,org-priority-down}
- footnote{See also the option
- pxref{Creating timestamps}). See also
- code{shift-selection-mode}.
- vindex org-highest-priority
- vindex org-default-priority
- You can change the range of allowed priorities by setting the options
- code{org-lowest-priority}, and
- cindex #+PRIORITIES
- end example
- section Breaking tasks down into subtasks
- cindex statistics, for TODO items
- footnote{To keep subtasks out of the
- global TODO list, see the
- samp{[/]} or
- kbd{C-c C-c} on the cookie. For example:
- end example
- code{COOKIE_DATA} to either samp{todo} to resolve
- this issue.
- code{org-hierarchical-todo-statistics}. To do this for a single subtree,
- include the word code{COOKIE_DATA}
- property.
- end example
- If you would like a TODO entry to automatically change to DONE
- when all children are done, you can use the following setup:
- end example
- Another possibility is the use of checkboxes to identify (a hierarchy of) a
- large number of subtasks (
- node Checkboxes
- cindex checkboxes
- footnote{With the exception of description
- lists. But you can allow it by modifying
- pxref{Plain lists}) can be made into a checkbox by starting
- it with the string
- pxref{TODO items}), but is more lightweight. Checkboxes are not included
- in the global TODO list, so they are often great to split a task into a
- number of simple steps. Or you can use them in a shopping list. To toggle a
- checkbox, use
- file{org-mouse.el}).
- Here is an example of a checkbox list.
- end example
- Checkboxes work hierarchically, so if a checkbox item has children that
- are checkboxes, toggling one of the children checkboxes will make the
- parent checkbox reflect if none, some, or all of the children are
- checked.
- cindex checkbox statistics
- vindex org-checkbox-hierarchical-statistics
- The samp{[1/3]} in the first and second line are cookies
- indicating how many checkboxes present in this entry have been checked off,
- and the total number of checkboxes present. This can give you an idea on how
- many checkboxes remain, even without opening a folded entry. The cookies can
- be placed into a headline or into (the first line of) a plain list item.
- Each cookie covers checkboxes of direct children structurally below the
- headline/item on which the cookie appears
- code{org-checkbox-hierarchical-statistics} if you want such cookies to
- count all checkboxes below the cookie, not just those belonging to direct
- children.}. You have to insert the cookie yourself by typing either
- samp{[%]}. With samp{n out of m}
- result, as in the examples above. With
- samp{[50%]} and
- code{COOKIE_DATA}
- to either samp{todo} to resolve this issue.
- cindex checkbox blocking
- code{ORDERED} property, checkboxes must
- be checked off in sequence, and an error will be thrown if you try to check
- off a box while there are unchecked boxes above it.
- table
- orgcmd{C-c C-c,org-toggle-checkbox}
- Toggle checkbox status or (with prefix arg) checkbox presence at point. With
- a single prefix argument, add an empty checkbox or remove the current
- onekbd{C-u C-c C-c} before the
- samp{[-]}, which is considered to be an
- intermediate state.
- samp{[-]}, which is considered to be an
- intermediate state.
- minus
- item
- If the cursor is in a headline, toggle the state of the first checkbox in the
- region between this headline and the next---so
- item
- If there is no active region, just toggle the checkbox at point.
- orgcmd{M-S-
- pxref{Plain lists}).
- vindex org-track-ordered-property-with-tag
- code{ORDERED} property of the entry, to toggle if checkboxes must
- be checked off in sequence. A property is used for this behavior because
- this should be local to the current entry, not inherited like a tag.
- However, if you would like to
- code{org-track-ordered-property-with-tag}.
- kbd{C-u} prefix, update the entire file. Checkbox statistic cookies are
- updated automatically if you toggle checkboxes with
- kbd{M-S-
- end table
- chapter Tags
- cindex headline tagging
- cindex sparse tree, tag based
- An excellent way to implement labels and contexts for cross-correlating
- information is to assign
- vindex org-tag-faces
- Every headline can contain a list of tags; they occur at the end of the
- headline. Tags are normal words containing letters, numbers,
- samp{}. Tags must be preceded and followed by a single colon, e.g.,
- samp{:work:urgent:}.
- Tags will by default be in bold face with the same color as the headline.
- You may specify special faces for specific tags using the option
- pxref{Faces for TODO keywords}).
- end menu
- section Tag inheritance
- cindex inheritance, of tags
- i{Tags} make use of the hierarchical structure of outline trees. If a
- heading has a certain tag, all subheadings will inherit the tag as
- well. For example, in the list
- end example
- samp{:work:},
- samp{:notes:}, and
- footnote{As with all these in-buffer settings, pressing
- cindex #+FILETAGS
- end example
- vindex org-use-tag-inheritance
- code{org-tags-exclude-from-inheritance}.
- To turn it off entirely, use
- vindex org-tags-match-list-sublevels
- When a headline matches during a tags search while tag inheritance is turned
- on, all the sublevels in the same tree will (for a simple match form) match
- as well
- pxref{Property searches}).}. The list
- of matches may then become very long. If you only want to see the first tags
- match in a subtree, configure
- vindex org-agenda-use-tag-inheritance
- Tag inheritance is relevant when the agenda search tries to match a tag,
- either in the code{tags-todo} agenda types. In other agenda
- types,
- code{org-agenda-use-tag-inheritance} to control
- this: the default value includes all agenda types, but setting this to
- node Setting tags
- cindex setting tags
- kindex M-
- kbd{M-
- table
- orgcmd{C-c C-q,org-set-tags-command}
- vindex org-tags-column
- Enter new tags for the current headline. Org mode will either offer
- completion or a special single-key interface for setting tags, see
- below. After pressing
- code{org-tags-column}. When called with a
- pxref{TODO basics}).
- kbd{C-c C-q}.
- vindex org-tag-alist
- Org supports tag insertion based on a
- code{org-tag-alist}. Finally you can set
- the default tags for a given file with lines like
- example
- #+TAGS: work home tennisclub
- #+TAGS: laptop car pc sailboat
- code{org-tag-alist}, but would like to use a dynamic tag list
- in a specific file, add an empty TAGS option line to that file:
- end example
- code{org-tag-persistent-alist}. You may turn this off on a per-file basis
- by adding a STARTUP option line to that file:
- end example
- By default Org mode uses the standard minibuffer completion facilities for
- entering tags. However, it also implements another, quicker, tag selection
- method called
- code{org-tag-alist} in
- your Emacs init file. For example, you may find the need to tag many items
- in different files with
- lisp
- (setq org-tag-alist '(("@@work" . ?w) ("@@home" . ?h) ("laptop" . ?l)))
- noindent If the tag is only relevant to the file you are working on, then you
- can instead set the TAGS option line as:
- end example
- samp{\n} into the tag list
- end example
- example
- #+TAGS: work(w) home(h) tennisclub(t)
- #+TAGS: laptop(l) pc(p)
- noindent
- You can also group together tags that are mutually exclusive by using
- braces, as in:
- { work(w) home(h) tennisclub(t)
- end example
- samp{work},
- samp{tennisclub} should be selected. Multiple such groups are allowed.
- kbd{C-c C-c} with the cursor in one of
- these lines to activate any changes.
- code{org-tag-alist},
- you must use the dummy tags code{:endgroup} instead
- of the braces. Similarly, you can use
- lisp
- (setq org-tag-alist '((:startgroup . nil)
- ("@@work" . ?w) ("@@home" . ?h)
- ("@@tennisclub" . ?t)
- (:endgroup . nil)
- ("laptop" . ?l) ("pc" . ?p)))
- kbd{C-c C-c} will
- automatically present you with a special interface, listing inherited tags,
- the tags of the current headline, and a list of all valid tags with
- corresponding keys
- table
- kindex
- item
- kindex
- item
- kindex
- item
- item C-g
- Abort without installing changes.
- kbd{q} is not assigned to a tag, it aborts like
- item !
- Turn off groups of mutually exclusive tags. Use this to (as an
- exception) assign several tags from such a group.
- kbd{C-c} will display the
- selection window.
- noindent
- This method lets you assign tags to a headline with very few keys. With
- the above setup, you could clear the current tags and set
- samp{laptop} and kbd{C-c
- C-c key{RET}}. Switching from
- samp{work} would be done with key{RET}} or
- alternatively with
- samp{Sarah} could be done with key{TAB} S a r a h
- key{RET}}.
- code{org-fast-tag-selection-single-key}.
- Then you no longer have to press
- kbd{C-c} to turn off auto-exit for the current tag
- selection process (in effect: start selection with
- kbd{C-c C-c}). If you set the variable to the value
- kbd{C-c}.
- section Tag hierarchy
- cindex tags, groups
- emph{group
- tag} for a set of other tags. The group tag can be seen as the ``broader
- term'' for its set of tags. Defining multiple
- example
- #+TAGS: [ GTD : Control Persp ]
- samp{GTD} is the
- samp{Control}, samp{Control} and
- example
- #+TAGS: [ Control : Context Task ]
- #+TAGS: [ Persp : Vision Goal AOF Project ]
- example
- - GTD
- - Persp
- - Vision
- - Goal
- - AOF
- - Project
- - Control
- - Context
- - Task
- code{:startgrouptag},
- code{:endgrouptag} keyword directly when setting
- lisp
- (setq org-tag-alist '((:startgrouptag)
- ("GTD")
- (:grouptags)
- ("Control")
- ("Persp")
- (:endgrouptag)
- (:startgrouptag)
- ("Control")
- (:grouptags)
- ("Context")
- ("Task")
- (:endgrouptag)))
- example
- #+TAGS: }
- code{org-tag-alist} you can use
- code{:endgroup} instead of code{:endgrouptag} to
- make the tags mutually exclusive.
- Furthermore, the members of a
- {
- example
- #+TAGS: [ Vision : .+
- {G} ]
- #+TAGS: [ AOF : .+
- {P} ]
- samp{Project} will now list all tags also including
- regular expression matches for .+}, and similarly for tag searches on
- samp{Goal} and
- samp{P2014_OrgTags}.
- vindex org-group-tags
- If you want to ignore group tags temporarily, toggle group tags support
- with kbd{C-c C-x q}. If you
- want to disable tag groups completely, set code{nil}.
- section Tag searches
- cindex searching for tags
- Once a system of tags has been set up, it can be used to collect related
- information into special lists.
- kbd
- kbd{C-u} prefix argument, ignore headlines that are not a TODO line.
- orgcmd{C-c a m,org-tags-view}
- Create a global list of tag matches from all agenda files.
- orgcmd{C-c a M,org-tags-view}
- code{org-tags-match-list-sublevels}).
- samp{+boss+urgent-project1}, to find entries with tags
- samp{urgent}, but not samp{Kathy|Sally} to find entries
- tagged as samp{Sally}. The full syntax of the search string
- is rich and allows also matching against TODO keywords, entry levels and
- properties. For a complete description with many examples, see
- node Properties and columns
- cindex properties
- A property is a key-value pair associated with an entry. Properties can be
- set so they are associated with a single entry, with every entry in a tree,
- or with every entry in an Org mode file.
- There are two main applications for properties in Org mode. First,
- properties are like tags, but with a value. Imagine maintaining a file where
- you document bugs and plan releases for a piece of software. Instead of
- using tags like code{:release_2:}, you can use a
- property, say
- code{1.0} or
- pxref{Column view}).
- end menu
- section Property syntax
- cindex drawer, for properties
- Properties are key-value pairs. When they are associated with a single entry
- or with a tree they need to be inserted into a special drawer
- (code{PROPERTIES}, which has to be located
- right below a headline, and its planning line (
- example
- * CD collection
- ** Classic
- *** Goldberg Variations
- :PROPERTIES:
- :Title: Goldberg Variations
- :Composer: J.S. Bach
- :Artist: Glen Gould
- :Publisher: Deutsche Grammophon
- :NDisks: 1
- :END:
- code{org-use-property-inheritance}, a property set
- this way will either be associated with a single entry, or the subtree
- defined by the entry, see
- samp{:Xyz:}
- by setting a property
- emph{inherited}, so if you set it in a level 1 entry, it will apply to
- the entire tree. When allowed values are defined, setting the
- corresponding property becomes easier and is less prone to typing
- errors. For the example with the CD collection, we can predefine
- publishers and the number of disks in a box like this:
- end example
- If you want to set properties that can be inherited by any entry in a
- file, use a line like
- cindex #+PROPERTY
- end example
- Contrary to properties set from a special drawer, you have to refresh the
- buffer with
- code{+} to
- the property name. The following results in the property
- cindex property, +
- end example
- It is also possible to add to the values of inherited properties. The
- following results in the
- code{Goldberg Variations} subtree.
- example
- * CD collection
- ** Classic
- :PROPERTIES:
- :GENRES: Classic
- :END:
- *** Goldberg Variations
- :PROPERTIES:
- :Title: Goldberg Variations
- :Composer: J.S. Bach
- :Artist: Glen Gould
- :Publisher: Deutsche Grammophon
- :NDisks: 1
- :GENRES+: Baroque
- :END:
- vindex org-global-properties
- Property values set with the global variable
- noindent
- The following commands help to work with properties:
- kbd
- key{TAB},pcomplete}
- After an initial colon in a line, complete property keys. All keys used
- in the current file will be offered as possible completions.
- item C-u M-x org-insert-drawer RET
- orgcmd{C-c C-c,org-property-action}
- With the cursor in a property drawer, this executes property commands.
- orgcmdkkcc{S-key{left},org-property-next-allowed-value,org-property-previous-allowed-value}
- Switch property at point to the next/previous allowed value.
- orgcmd{C-c C-c D,org-delete-property-globally}
- Globally remove a property, from all entries in the current file.
- end table
- section Special properties
- pxref{Column view}), or to use them in queries. The
- following property names are special and should not be used as keys in the
- properties drawer:
- cindex property, special, BLOCKED
- cindex property, special, CLOCKSUM_T
- cindex property, special, DEADLINE
- cindex property, special, ITEM
- cindex property, special, SCHEDULED
- cindex property, special, TIMESTAMP
- cindex property, special, TODO
- r{All tags, including inherited ones.}
- BLOCKED
- r{The sum of CLOCK intervals in the subtree.
- r{must be run first to compute the values in the current buffer.}
- CLOCKSUM_T
- r{
- r{values in the current buffer.}
- CLOSED
- r{The deadline time string, without the angular brackets.}
- FILE
- r{The headline of the entry.}
- PRIORITY
- r{The scheduling timestamp, without the angular brackets.}
- TAGS
- r{The first keyword-less timestamp in the entry.}
- TIMESTAMP_IA
- r{The TODO keyword of the entry.}
- node Property searches
- cindex properties, searching
- pxref{Tag searches}).
- kbd
- kbd{C-u} prefix argument, ignore headlines that are not a TODO line.
- xref{Matching tags and properties}.
- vindex org-tags-match-list-sublevels
- Create a global list of tag matches from all agenda files, but check
- only TODO items and force checking of subitems (see the option
- end table
- The syntax for the search string is described in
- table
- orgkey{C-c / p}
- Create a sparse tree based on the value of a property. This first
- prompts for the name of a property, and then for a value. A sparse tree
- is created with all entries that define this property with the given
- value. If you enclose the value in curly braces, it is interpreted as
- a regular expression and matched against the property values.
- node Property inheritance
- cindex properties, inheritance
- vindex org-use-property-inheritance
- The outline structure of Org mode documents lends itself to an
- inheritance model of properties: if the parent in a tree has a certain
- property, the children can inherit this property. Org mode does not
- turn this on by default, because it can slow down property searches
- significantly and is often not needed. However, if you find inheritance
- useful, you can turn it on by setting the variable
- code{t} to make
- all properties inherited from the parent, to a list of properties
- that should be inherited, or to a regular expression that matches
- inherited properties. If a property has the value
- code{nil}.
- Org mode has a few properties for which inheritance is hard-coded, at
- least for the special applications for which they are used:
- table
- item COLUMNS
- The
- pxref{Column view}). It is inherited in the sense that the level
- where a
- item CATEGORY
- code{:CATEGORY:} property
- applies to the entire subtree.
- cindex property, ARCHIVE
- For archiving, the
- pxref{Moving subtrees}).
- cindex property, LOGGING
- The LOGGING property may define logging settings for an entry or a
- subtree (
- end table
- section Column view
- A great way to view and edit properties in an outline tree is
- kbd{S-key{TAB}}, or simply
- pxref{Agenda views}) where
- queries have collected selected items, possibly from a number of files.
- end menu
- subsection Defining columns
- cindex properties, column view
- Setting up a column view first requires defining the columns. This is
- done by defining a column format line.
- end menu
- subsubsection Scope of column definitions
- To define a column format for an entire file, use a line like
- example
- #+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
- code{:COLUMNS:} property to the top node of that tree, for example:
- end example
- If a
- node Column attributes
- example
- %[var{property}[({}]
- noindent
- Except for the percent sign and the property name, all items are
- optional. The individual parts have the following meaning:
- var{width}
- r{If omitted, the width will be determined automatically.}
- r{The property that should be edited in this column.}
-
- r{as well (
- var{title}
- r{name is used.}
- var{summary-type}r{The summary type. If specified, the column values for}
- footnote{If
- more than one summary type apply to the property, the parent
- values are computed according to the first of them.}.}
-
- {+r{Sum numbers in this column.}
- } samp{+}, but format result with
- {$r{Currency, short for
- {minr{Smallest number in column.}
- }
- {meanr{Arithmetic mean of numbers.}
- } samp{[X]} if all children are
- {X/r{Checkbox status,
- {X%r{Checkbox status,
- {:r{Sum times, HH:MM, plain numbers are
- hours
- code{org-effort-durations}, e.g.,
-
- {:minr{Smallest time value in column.}
- }
- {:meanr{Arithmetic mean of time values.}
- } footnote{An age is defined as
- a duration since a given time-stamp (
- samp{d}, samp{m} and
- samp{0d 13h 0m 10s}.} (in
- days/hours/mins/seconds).}
- }
- {meanr{Arithmetic mean of ages (in days/hours/mins/seconds).}
- } samp{low-high} estimates.}
- code{est+} summary type requires further explanation. It is used for
- combining estimates, expressed as
- code{est+} adds the
- statistical mean and variance of the sub-tasks, generating a final estimate
- from the sum. For example, suppose you had ten tasks, each of which was
- estimated at 0.5 to 2 days of work. Straight addition produces an estimate
- of 5 to 20 days, representing what to expect if everything goes either
- extremely well or extremely poorly. In contrast,
- code{%5d} or
- vindex org-columns-summary-types
- You can also define custom summary types by setting
- example
- :COLUMNS: %25ITEM %9Approved(Approved?)} %Owner %11Status \
- {:
- end example
- samp{%25ITEM}, means the first 25 characters of the
- item itself, i.e., of the headline. You probably always should start the
- column definition with the
- samp{Owner} with a list of names as allowed values, for
- samp{Approved}. When no width is given after the
- samp{Approved} column does have a
- modified title (
- samp{Time_Estimate} column by adding time duration
- expressions like HH:MM, and for the
- samp{[X]} status if all children have been checked. The
- samp{CLOCKSUM_T} columns are special, they lists the
- sums of CLOCK intervals in the subtree, either for all clocks or just for
- today.
- subsection Using column view
- kbd
- orgcmd{C-c C-x C-c,org-columns}
- code{#+COLUMNS} definition. If the
- cursor is somewhere inside the outline, this command searches the hierarchy,
- up from point, for a
- code{:COLUMNS:} property. If no such property
- is found, the format is taken from the
- code{org-columns-default-format}, and column view is established
- for the current entry and its subtree.
- orgcmd{g,org-columns-redo}
- Same as
- orgcmd{q,org-columns-quit}
- Exit column view.
- item key{right} key{down}
- Move through the column view from field to field.
- key{left}
- key{right}
- key{left}/
- item 1..9,0
- Directly select the Nth allowed value,
- orgcmdkkcc{n,p,org-columns-next-allowed-value,org-columns-previous-allowed-value}
- Same as key{left}/
- orgcmd{e,org-columns-edit-value}
- Edit the property at point. For the special properties, this will
- invoke the same interface that you normally use to change that
- property. For example, when editing a TAGS property, the tag completion
- or fast selection interface will pop up.
- orgcmd{v,org-columns-show-value}
- View the full value of this property. This is useful if the width of
- the column is smaller than that of the value.
- tsubheading{Modifying the table structure}
- orgcmd{S-M-
- orgcmd{S-M-
- end table
- subsection Capturing column view
- Since column view is just an overlay over a buffer, it cannot be
- exported or printed directly. If you want to capture a column view, use
- a pxref{Dynamic blocks}). The frame
- of this block looks like this:
- example
- * The column view
- #+BEGIN: columnview :hlines 1 :id "label"
- #+END:
- noindent This dynamic block has the following parameters:
- code
- cindex property, ID
- r{use the tree in which the capture block is located}
- global
- var{path-to-file}"
- @r{run column view at the top of this file}
- "r{call column view in the tree that has an
- r{property with the value
- r{
- r{the current entry and copy it to the kill-ring.}
- item :hlines
- When var{N}, insert
- an hline before each headline with level var{N}}.
- code{t}, force column groups to get vertical lines.
- item :skip-empty-rows
- When set to
- code{ITEM}.
- code{nil}, indent each
- end table
- table
- orgcmd{C-c C-x i,org-insert-columns-dblock}
- Insert a dynamic block capturing a column view. You will be prompted
- for the scope or ID of the view.
- code{#+BEGIN} line of the dynamic block.
- pxref{Dynamic blocks}). This is useful if
- you have several clock table blocks, column-capturing blocks or other dynamic
- blocks in a buffer.
- code{#+TBLFM:} after the table, the table will
- actually be recalculated automatically after an update.
- An alternative way to capture and process property values into a table is
- provided by Eric Schulte's
- footnote{Contributed packages are not part of Emacs, but are
- distributed with the main distribution of Org (visit
- node Property API
- cindex properties, API
- ref{Using the
- property API}.
- chapter Dates and times
- cindex times
- cindex date stamp
- To assist project planning, TODO items can be labeled with a date and/or
- a time. The specially formatted string carrying the date and time
- information is called a
- menu
- * Timestamps:: Assigning a time to a tree entry
- * Creating timestamps:: Commands which insert timestamps
- * Deadlines and scheduling:: Planning your work
- * Clocking work time:: Tracking how long you spend on a task
- * Effort estimates:: Planning work effort in advance
- * Timers:: Notes with a running timer
- node Timestamps
- cindex timestamps
- cindex date stamps
- cindex scheduling
- A timestamp is a specification of a date (possibly with a time or a range of
- times) in a special format, either footnote{In this
- simplest form, the day name is optional when you type the date yourself.
- However, any dates inserted or modified by Org will add that day name, for
- reading convenience.} or samp{<2003-09-16
- Tue 12:00-12:30>}
- ref{Custom time
- format}.}. A timestamp can appear anywhere in the headline or body of an Org
- tree entry. Its presence causes entries to be shown on specific dates in the
- agenda (
- table
- item Plain timestamp; Event; Appointment
- cindex appointment
- A simple timestamp just assigns a date/time to an item. This is just like
- writing down an appointment or event in a paper agenda. In the agenda
- display, the headline of an entry associated with a plain timestamp will be
- shown exactly on that date.
- end example
- cindex timestamp, with repeater interval
- A timestamp may contain a
- example
- * Pick up Sam at school
- <2007-05-16 Wed 12:30 +1w>
- item Diary-style sexp entries
- For more complex date specifications, Org mode supports using the special
- sexp diary entries implemented in the Emacs calendar/diary
- package
- code{calendar-date-style} (or, for older Emacs
- versions,
- code{(diary-date 12 1 2005)} or
- code{(diary-date 2005 12 1)}, depending on
- the settings. This has been the source of much confusion. Org mode users
- can resort to special versions of these functions like
- code{org-anniversary}. These work just like the corresponding
- code{calendar-date-style}.}. For
- example with optional time
- end example
- cindex timerange
- samp{--} denote a range. The headline
- will be shown on the first and last day of the range, and on any dates
- that are displayed and fall in the range. Here is an example:
- end example
- cindex timestamp, inactive
- emph{not} trigger an entry to show up in the agenda.
- end example
- node Creating timestamps
- cindex creating timestamps
- table
- orgcmd{C-c .,org-time-stamp}
- Prompt for a date and insert a corresponding timestamp. When the cursor is
- at an existing timestamp in the buffer, the command is used to modify this
- timestamp instead of inserting a new one. When this command is used twice in
- succession, a time range is inserted.
- orgcmd{C-c !,org-time-stamp-inactive}
- Like
- c
- kindex C-u C-c !
- itemx C-u C-c !
- kbd{C-c .} and
- code{org-time-stamp-rounding-minutes}.
- orgkey{C-c C-c}
- Normalize timestamp, insert/fix day name if missing or wrong.
- orgcmd{C-c <,org-date-from-calendar}
- Insert a timestamp corresponding to the cursor date in the Calendar.
- orgcmd{C-c >,org-goto-calendar}
- Access the Emacs calendar for the current date. If there is a
- timestamp in the current line, go to the corresponding date
- instead.
- orgcmd{C-c C-o,org-open-at-point}
- Access the agenda for the date given by the timestamp or -range at
- point (
- c
- key{left},S-
- pxref{Conflicts}).
- orgcmdkkcc{S-key{down},org-timestamp-up,org-timestamp-down-down}
- Change the item under the cursor in a timestamp. The cursor can be on a
- year, month, day, hour or minute. When the timestamp contains a time range
- like
- pxref{Priorities}). The key bindings also conflict with shift-selection and
- related modes (
- c
- cindex evaluate time range
- Evaluate a time range by computing the difference between start and end.
- With a prefix argument, insert result after the time range (in a table: into
- the following column).
- menu
- * The date/time prompt:: How Org mode helps you entering date and time
- * Custom time format:: Making dates look different
- node The date/time prompt
- cindex date, reading in minibuffer
- vindex org-read-date-prefer-future
- When Org mode prompts for a date/time, the default is shown in default
- date/time format, and the prompt therefore seems to ask for a specific
- format. But it will in fact accept date/time information in a variety of
- formats. Generally, the information should start at the beginning of the
- string. Org mode will find whatever information is in
- there and derive anything you have not specified from the
- i{before} today, it will assume that you mean a future date
- code{org-read-date-prefer-future}. You may set that variable to
- the symbol
- samp{(=>F).}
- For example, let's assume that today is
- b{bold}.
- result{} 2003-02-05
- 2/5/3
- result{} b{06}-14
- 12 b{2006}-
- result{}
- result{} nearest Friday after the default date
- sep 15 b{2006}-09-15
- feb 15 b{2007}-02-15
- sep 12 9
- result{} b{06}-
- result{}
- result{} ISO week four of the current year
- result{} Friday of ISO week 4 in 2012
- 2012-w04-5
- end example
- Furthermore you can specify a relative date by giving, as the
- example
- +0
- result{} today
- +4d
- result{} same as above
- +2w
- result{} five days from default date
- +2tue
- result{} last Wednesday
- vindex parse-time-months
- code{parse-time-months} and
- vindex org-read-date-force-compatible-dates
- Not all dates can be represented in a given Emacs implementation. By default
- Org mode forces dates into the compatibility range 1970--2037 which works on
- all Emacs implementations. If you want to use dates outside of this range,
- read the docstring of the variable
- example
- 11am-1:15pm
- result{} same as above
- 11am+2:15
- end example
- vindex org-popup-calendar-for-date-prompt
- Parallel to the minibuffer prompt, a calendar is popped up
- code{org-popup-calendar-for-date-prompt}.}. When you exit the date
- prompt, either by clicking on a date in the calendar, or by pressing
- kindex <
- kindex M-v
- kindex mouse-1
- key{right}
- key{left}
- key{down}
- key{up}
- key{right}
- key{left}
- key{RET}
- key{down}
- key{up}
- key{RET}
- r{Select date by clicking on it.}
- S-key{left}
- key{down}/r{One week forward/backward.}
- M-S-key{left}
- r{Scroll calendar forward/backward by one month.}
- M-v / C-v
- key{down}/r{Scroll calendar forward/backward by one year.}
- vindex org-read-date-display-live
- The actions of the date/time prompt may seem complex, but I assure you they
- will grow on you, and you will start getting annoyed by pretty much any other
- way of entering a date/time out there. To help you understand what is going
- on, the current interpretation of your input will be displayed live in the
- minibuffer
- code{org-read-date-display-live}.}.
- subsection Custom time format
- cindex time format, custom
- vindex org-display-custom-times
- code{org-display-custom-times} and
- table
- orgcmd{C-c C-x C-t,org-toggle-time-stamp-overlays}
- Toggle the display of custom formats for dates and times.
- noindent
- Org mode needs the default format for scanning, so the custom date/time
- format does not
- emph{over} the default format using text properties. This has the
- following consequences:
- bullet
- item
- The key{up}/
- kbd{S-key{down}} will change the stamp by one day,
- just like key{left}/
- item
- If the timestamp contains a range of clock times or a repeater, these
- will not be overlaid, but remain in the buffer as they were.
- emph{all} (invisible) characters
- belonging to the ISO timestamp have been removed.
- end itemize
- section Deadlines and scheduling
- A timestamp may be preceded by special keywords to facilitate planning. Both
- the timestamp and the keyword have to be positioned immediatly after the task
- they refer to.
- var
- cindex DEADLINE keyword
- Meaning: the task (most likely a TODO item, though not necessarily) is supposed
- to be finished on that date.
- vindex org-agenda-skip-deadline-prewarning-if-scheduled
- On the deadline date, the task will be listed in the agenda. In
- addition, the agenda for
- code{org-deadline-warning-days} before the due date, and continuing
- until the entry is marked DONE
- example
- *** TODO write article about the Earth for the Guide
- DEADLINE: <2004-02-29 Sun>
- The editor in charge is [[bbdb:Ford Prefect]]
- code{DEADLINE: <2004-02-29 Sun -5d>}. This warning is
- deactivated if the task gets scheduled and you set
- code{t}.
- cindex SCHEDULED keyword
- Meaning: you are planning to start working on that task on the given
- date.
- footnote{It will still
- be listed on that date after it has been marked DONE
- code{org-agenda-skip-scheduled-if-done}.}. In
- addition, a reminder that the scheduled date has passed will be present
- in the compilation for
- example
- *** TODO Call Trillian for a date on New Years Eve.
- SCHEDULED: <2004-12-25 Sat>
- vindex org-scheduled-delay-days
- emph{delay} the display of this task in the agenda, use
- code{--2d}
- instead. See
- code{org-agenda-skip-scheduled-delay-if-deadline} for details on how to
- control this globally or per agenda.
- b{Important:} Scheduling an item in Org mode should
- i{scheduling a meeting}.
- Setting a date for a meeting is just a simple appointment, you should
- mark this entry with a simple plain timestamp, to get this item shown
- on the date where it applies. This is a frequent misunderstanding by
- Org users. In Org mode,
- end table
- You may use timestamps with repeaters in scheduling and deadline
- entries. Org mode will issue early and late warnings based on the
- assumption that the timestamp represents the
- c
- c
- in scheduling and deadline timestamps is limited. Org mode does not
- know enough about the internals of each sexp function to issue early and
- late warnings. However, it will show the item on each day where the
- sexp entry matches.
- end menu
- subsection Inserting deadlines or schedules
- The following commands allow you to quickly insert a deadline or to schedule
- an item:
- kbd
- orgcmd{C-c C-d,org-deadline}
- Insert
- code{org-log-redeadline}code{#+STARTUP}
- keywords code{lognoteredeadline}, and
- orgcmd{C-c C-s,org-schedule}
- Insert
- code{org-log-reschedule}code{#+STARTUP}
- keywords code{lognotereschedule}, and
- c
- cindex sparse tree, for deadlines
- code{org-deadline-warning-days}.
- With
- kbd{C-1 C-c / d} shows
- all deadlines due tomorrow.
- orgcmd{C-c / b,org-check-before-date}
- Sparse tree for deadlines and scheduled items before a given date.
- orgcmd{C-c / a,org-check-after-date}
- Sparse tree for deadlines and scheduled items after a given date.
- code{org-schedule} and
- node Repeated tasks
- cindex tasks, repeated
- example
- ** TODO Pay the rent
- DEADLINE: <2005-10-01 Sat +1m>
- noindent
- the
- code{y/w/m/d/h} letters. If you need both a repeater
- and a special warning period in a deadline entry, the repeater should come
- first and the warning period last:
- vindex org-todo-repeat-to-state
- Deadlines and scheduled items produce entries in the agenda when they are
- over-due, so it is important to be able to mark such an entry as completed
- once you have done so. When you mark a DEADLINE or a SCHEDULE with the TODO
- keyword DONE, it will no longer produce entries in the agenda. The problem
- with this is, however, that then also the
- kbd{C-c C-t}), it will
- shift the base date of the repeating timestamp by the repeater interval, and
- immediately set the entry state back to TODO
- code{REPEAT_TO_STATE} property or
- the variable
- example
- ** TODO Pay the rent
- DEADLINE: <2005-11-01 Tue +1m>
- code{DONE}, use
- code{org-todo} with a numeric prefix argument of -1.)
- footnote{You can change this using the option
- code{#+STARTUP} options
- code{lognoterepeat}, and code{lognoterepeat}, you
- will also be prompted for a note.} will be added under the deadline, to keep
- a record that you actually acted on the previous instance of this deadline.
- As a consequence of shifting the base date, this entry will no longer be
- visible in the agenda when checking past dates, but all future instances
- will be visible.
- With the
- i{after} the last time you did it. For these tasks, Org mode has
- special repeaters samp{.+}. For example:
- end example
- code{org-agenda-skip-scheduled-if-deadline-is-shown} to
- kbd{C-c C-x c} was
- created for this purpose, it is described in
- node Clocking work time
- cindex clocking time
- footnote{Clocking only works if all
- headings are indented with less than 30 stars. This is a hardcoded
- limitation of code{org-clock-sum}.} of a project.
- And it remembers a history or tasks recently clocked, so that you can jump
- quickly between a number of tasks absorbing your time.
- To save the clock history across Emacs sessions, use
- end lisp
- When you clock into a new task after resuming Emacs, the incomplete
- clock
- code{(setq org-clock-persist t)}.}
- will be found (
- menu
- * Clocking commands:: Starting and stopping a clock
- * The clock table:: Detailed reports
- * Resolving idle time:: Resolving time when you've been idle
- node Clocking commands
- table
- orgcmd{C-c C-x C-i,org-clock-in}
- vindex org-clock-continuously
- code{:LOGBOOK:} drawer (see also the variable
- code{CLOCK_INTO_DRAWER} or
- kbd{C-u} prefix argument,
- select the task from a list of recently clocked tasks. With two
- kbd{d} when
- selecting a clocking task. With three
- *
- cindex property: LAST_REPEAT
- pxref{Effort estimates}), the mode line displays the current
- clocking time against it
- code{org-clock-in-prepare-hook}.} If the task
- is a repeating one (
- footnote{as recorded by the
- code{CLOCK_MODELINE_TOTAL} property. It may have the values
- code{today} to
- show all time clocked on this task today (see also the variable
- code{all} to include all time, or
- footnote{See also the variable
- * Clicking with
- c
- vindex org-log-note-clock-out
- Stop the clock (clock-out). This inserts another timestamp at the same
- location where the clock was last started. It also directly computes
- the resulting time and inserts it after the time range as
- code{org-log-note-clock-out} for the
- possibility to record an additional note together with the clock-out
- timestamp
- code{#+STARTUP: lognoteclock-out}}.
- vindex org-clock-continuously
- Reclock the last clocked task. With one
- kbd{C-u} prefixes,
- force continuous clocking by starting the clock when the last clock
- stopped.
- kindex C-c C-y
- orgcmdkkc{C-c C-c,C-c C-y,org-evaluate-time-range}
- Recompute the time interval after changing one of the timestamps. This
- is only necessary if you edit the timestamps directly. If you change
- them with key{cursor}} keys, the update is automatic.
- key{up/down},org-clock-timestamps-up/down}
- On
- orgcmd{S-M-
- code{CLOCK} log lines, increase/decrease the timestamp at point and
- the one of the previous (or the next clock) timestamp by the same duration.
- For example, if you hit key{up}} to increase a clocked-out timestamp
- by five minutes, then the clocked-in timestamp of the next clock will be
- increased by five minutes.
- orgcmd{C-c C-x C-q,org-clock-cancel}
- Cancel the current clock. This is useful if a clock was started by
- mistake, or if you ended up working on something else.
- kbd{C-u}
- prefix arg, select the target task from a list of recently clocked tasks.
- vindex org-remove-highlights-with-change
- Display time summaries for each subtree in the current buffer. This puts
- overlays at the end of each headline, showing the total time recorded under
- that heading, including the time of any subheadings. You can use visibility
- cycling to study the tree, but the overlays disappear when you change the
- buffer (see variable
- kbd{C-c C-c}.
- kbd{l} key may be used the agenda (
- strong{Important:} note that both
- code{org-clock-in-last} can have a global key binding and will not
- modify the window disposition.
- subsection The clock table
- cindex report, of clocked time
- Org mode can produce quite complex reports based on the time clocking
- information. Such a report is called a
- table
- orgcmd{C-c C-x C-r,org-clock-report}
- Insert a dynamic block (
- code{:ARCHIVE:} tag.
- code{#+BEGIN} line of the dynamic block.
- pxref{Dynamic blocks}). This is useful if
- you have several clock table blocks in a buffer.
- key{left},S-
- code{:block} interval and update the table. The cursor
- needs to be in the
- code{:block} is code{today-1} etc.
- kbd{C-c C-x C-r} command:
- example
- #+BEGIN: clocktable :maxlevel 2 :emphasize nil :scope file
- #+END: clocktable
- noindent
- samp{BEGIN} line specifies a number of options to define the scope,
- structure, and formatting of the report. Defaults for all these options can
- be configured in the variable
- noindent First there are options that determine which clock entries are to
- be selected:
- r{Maximum level depth to which times are listed in the table.}
-
- r{The scope to consider. This can be any of the following:}
- nil
- r{the full current buffer}
- subtree
- var{N} var{N} tree, for example
- r{the surrounding level 1 tree}
- agenda
- r{scan these files}
- file-with-archives
- r{all agenda files, including archives}
- :block
- r{absolutely, or relative to the current time and may be any of}
-
- r{New year eve 2007}
- 2007-12
- r{ISO-week 50 in 2007}
- 2007-Q2
- r{the year 2007}
- today, yesterday, today-r{a relative day}
- thisweek, lastweek, thisweek-r{a relative week}
- thismonth, lastmonth, thismonth-r{a relative month}
- thisyear, lastyear, thisyear-r{a relative year}
- untilnow
- kbd{S-key{right}} keys to shift the time interval.}
- :tstart
- r{Relative times like
- r{
- r{A time string specifying when to stop considering times.}
- code{"<now>"} can also be used. See}
- ref{Matching tags and properties} for relative time syntax.}
- :wstart
- r{The starting day of the month. The default 1 is for the first}
-
- r{code{day}, to split the table into chunks.}
- code{:block} or code{:tend} are needed.}
- :stepskip0
- r{Do not show table sections from files which did not contribute.}
- :tags
- r{
- end example
- Then there are options which determine the formatting of the table. These
- options are interpreted by the function
- code{:formatter} parameter.
- r{When
- r{Languagecode{org-clock-clocktable-language-setup}.} to use for descriptive cells like "Task".}
- :link
- r{An integer to limit the width of the headline column in}
- samp{50!}, then the}
-
- r{Indent each headline field according to its level.}
- :tcolumns
- r{than
- r{Should a level number column be included?}
- :sort
- r{E.g.,
- r{Abbreviation for
- r{All are overwritten except if there is an explicit
- r{A timestamp for the entry, when available. Look for SCHEDULED,}
-
- r{List of properties that should be shown in the table. Each}
-
- r{When this flag is code{:properties} will be inherited.}
- :formula code{#+TBLFM} line to be added and evaluated.}
- samp{:formula %} adds a column with % time.}
-
- r{below the clock table will survive updates and be evaluated.}
- :formatter
- end example
- To get a clock summary of the current level 1 tree, for the current
- day, you could write
- end example
- footnote{Note that all
- parameters must be specified in a single line---the line is broken here
- only to fit it into the manual.}
- end example
- A range starting a week ago and ending right now could be written as
- end example
- A summary of the current subtree with % times would be
- end example
- A horizontally compact representation of everything clocked during last week
- would be
- end example
- subsection Resolving idle time and continuous clocking
- cindex resolve idle time
- cindex idle, resolve, dangling
- If you clock in on a work item, and then walk away from your
- computer---perhaps to take a phone call---you often need to ``resolve'' the
- time you were away by either subtracting it from the current clock, or
- applying it to another one.
- code{org-clock-idle-time} to some integer, such
- as 10 or 15, Emacs can alert you when you get back to your computer after
- being idle for that many minutes
- file{x11idle.c}, available in the
- file{xprintidle} package and set it to the variable
- table
- item k
- To keep some or all of the minutes and stay clocked in, press
- key{RET} to keep them all,
- effectively changing nothing, or enter a number to keep that many minutes.
- kbd{K}, it will keep however many minutes
- you request and then immediately clock out of that task. If you keep all of
- the minutes, this is the same as just clocking out of the current task.
- kbd{s} to subtract all the away time from
- the clock, and then check back in from the moment you returned.
- kbd{S}. Remember that using shift will always
- leave you clocked out, no matter which option you choose.
- kbd{C}. Note that if instead of
- canceling you subtract the away time, and the resulting clock amount is less
- than a minute, the clock will still be canceled rather than clutter up the
- log with an empty entry.
- kbd{M-x org-resolve-clocks RET} (or
- subsubheading Continuous clocking
- vindex org-clock-continuously
- You may want to start clocking from the time when you clocked out the
- previous task. To enable this systematically, set
- code{t}. Each time you clock in, Org retrieves the clock-out time of the
- last clocked entry for this session, and start the new clock from there.
- If you only want this from time to time, use three universal prefix arguments
- with kbd{C-u C-u} with
- node Effort estimates
- cindex effort estimates
- code{EFFORT}. You can set the effort for an entry with
- the following commands:
- kbd
- kbd{e} key.
- end table
- Clearly the best way to work with effort estimates is through column view
- (
- code{COLUMNS} format that displays these values
- together with clock sums (if you want to clock your time). For a specific
- buffer you can use
- {:
- end example
- vindex org-global-properties
- code{org-global-properties} and
- kbd{S-kbd{S-
- vindex org-agenda-columns-add-appointments-to-effort-sum
- If you switch to column view in the daily/weekly agenda, the effort column
- will summarize the estimated work effort for each day
- pxref{Agenda
- column view}).}, and you can use this to find space in your schedule. To get
- an overview of the entire part of the day that is committed, you can set the
- option
- kbd{/} key in the agenda (
- node Timers
- cindex relative timer
- kindex ;
- Org provides two types of timers. There is a relative timer that counts up,
- which can be useful when taking notes during, for example, a meeting or
- a video viewing. There is also a countdown timer.
- The relative and countdown are started with separate commands.
- kbd
- kbd{C-u} prefix, prompt the user for a starting offset. If
- there is a timer string at point, this is taken as the default, providing a
- convenient way to restart taking notes after a break in the process. When
- called with a double prefix argument
- orgcmd{C-c C-x ;,org-timer-set-timer}
- Start a countdown timer. The user is prompted for a duration.
- kbd{;} in agenda buffers.
- table
- orgcmd{C-c C-x .,org-timer}
- Insert the value of the current relative or countdown timer into the buffer.
- If no timer is running, the relative timer will be started. When called with
- a prefix argument, the relative timer is restarted.
- orgcmd{M-
- kbd{M-
- orgcmd{C-c C-x
- orgcmd{C-c C-x _,org-timer-stop}
- Stop the timer. After this, you can only start a new timer, not continue the
- old one. This command also removes the timer from the mode line.
- node Capture - Refile - Archive
- cindex capture
- An important part of any organization system is the ability to quickly
- capture new ideas and tasks, and to associate reference material with them.
- Org does this using a process called
- i{attachments}) in a special directory. Once in the
- system, tasks and projects need to be moved around. Moving completed project
- trees to an archive file keeps the system compact and fast.
- end menu
- section Capture
- file{remember.el} package. Up to version 6.36, Org
- used a special setup for
- file{org-remember.el}. As of version 8.0,
- file{org-capture.el}.
- If your configuration depends on
- code{org-remember-templates}, run the command
- kbd{M-x org-capture-import-remember-templates RET}
- noindent and then customize the new variable with
- menu
- * Setting up capture:: Where notes will be stored
- * Using capture:: Commands to invoke and terminate capture
- * Capture templates:: Define the outline of different note types
- node Setting up capture
- footnote{Please select your own key,
- vindex org-default-notes-file
- group
- (setq org-default-notes-file (concat org-directory "/notes.org"))
- (define-key global-map "\C-cc" 'org-capture)
- end smalllisp
- subsection Using capture
- kbd
- code{org-capture}. Note that this key binding is global and
- not active by default: you need to install it. If you have templates
- pxref{Capture templates}, it will offer these templates for
- selection or use a new Org outline node as the default template. It will
- insert the template into the target file and switch to an indirect buffer
- narrowed to this new node. You may then insert the information you want.
- kbd{C-c
- C-c} will return you to the window configuration before the capture process,
- so that you can resume your work without further distraction. When called
- with a prefix arg, finalize and then jump to the captured item.
- pxref{Refile and copy}) the note to
- a different place. Please realize that this is a normal refiling command
- that will be executed---so the cursor position at the moment you run this
- command is important. If you have inserted a tree with a parent and
- children, first move the cursor back to the parent. Any prefix argument
- given to this command will be passed on to the
- orgcmd{C-c C-k,org-capture-kill}
- Abort the capture process and return to the previous state.
- code{org-capture} in a special way from the agenda, using
- the
- code{org-capture} with
- prefix commands:
- kbd
- orgkey{C-u C-u C-c c}
- Visit the last stored capture item in its buffer.
- vindex org-capture-bookmark
- code{org-capture-last-stored}, which will
- automatically be created unless you set
- code{nil}.
- To insert the capture at point in an Org buffer, call
- code{C-0} prefix argument.
- subsection Capture templates
- table
- orgkey{C-c c C}
- Customize the variable
- end table
- Before we give the formal description of template definitions, let's look at
- an example. Say you would like to use one template to create general TODO
- entries, and you want to put these entries under the heading
- file{~/org/gtd.org}. Also, a date tree in the file
- smalllisp
- end group
- noindent If you then press
- example
- * TODO
- [[file:
- end example
- code{%a} has been replaced by a link to
- the location from where you called the capture command. This can be
- extremely useful for deriving tasks from emails, for example. You fill in
- the task definition, press
- lisp
- (define-key global-map "\C-cx"
- (lambda () (interactive) (org-capture nil "x")))
- menu
- * Template elements:: What is needed for a complete template entry
- * Template expansion:: Filling in information about time and context
- * Templates in contexts:: Only show a template in a specific context
- node Template elements
- code{org-capture-templates} is a list with the following items:
- var
- code{"a"} for a template to be selected with a
- single key, or
- smalllisp
- ("b" "Templates for marking stuff to buy")
- noindent If you do not define a template for the
- item description
- A short string describing the template, which will be shown during
- selection.
- table
- item entry
- An Org mode node, with a headline. Will be filed as the child of the target
- entry or as a top-level entry. The target file should be an Org mode file.
- item checkitem
- A checkbox item. This only differs from the plain list item by the
- default template.
- code{:prepend} and
- item plain
- Text to be inserted as it is.
- item target
- code{org-default-notes-file}. A file can
- also be given as a variable or as a function called with no argument. When
- an absolute path is not specified for a target, it is taken as relative to
- table
- item (file "path/to/file")
- Text will be placed at the beginning or end of that file.
- item (file+headline "path/to/file" "node headline")
- Fast configuration if the target heading is unique in the file.
- item (file+regexp "path/to/file" "regexp to find location")
- Use a regular expression to position the cursor.
- footnote{Datetree
- headlines for years accept tags, so if you use both
- code{* 2013} in your file, the capture will refile the note to the first
- one matched.}.
- item (file+weektree "path/to/file")
- Will create a heading in a week tree for today's date. Week trees are sorted
- by week and not by month unlike datetrees.
- item (file+function "path/to/file" function-finding-location)
- A function to find the right location in the file.
- item (function function-finding-location)
- Most general way: write your own function which both visits
- the file and moves point to the right location.
- item template
- The template for creating the capture item. If you leave this empty, an
- appropriate default template will be used. Otherwise this is a string with
- escape codes, which will be replaced depending on time and context of the
- capture call. The string with escapes may be loaded from a template file,
- using the special syntax
- item properties
- The rest of the entry is a property list of additional options.
- Recognized properties are:
- code
- item :immediate-finish
- When set, do not offer to edit the information, just
- file it away immediately. This makes sense if the template only needs
- information that can be added automatically.
- item :clock-in
- Start the clock in this item.
- item :clock-resume
- If starting the capture interrupted a clock, restart that clock when finished
- with the capture. Note that
- code{:clock-resume}. When setting both to
- item :unnarrowed
- Do not narrow the target buffer, simply show the full buffer. Default is to
- narrow it so that you only see the new material.
- code{"II-3"} meaning that
- the new line should become the third line before the second horizontal
- separator line.
- end table
- node Template expansion
- kbd{%}-escapes
- kbd{%} with a backslash.} allow
- dynamic insertion of content. The templates are expanded in the order given here:
- var{file}] var{file}.}
- %(r{Evaluate Elisp
- r{For convenience, %:keyword (see below) placeholders}
-
- r{The sexp must return a string.}
- %<...>
- r{Timestamp, date only.}
- %T
- r{Like the above, but inactive timestamps.}
- %i
- r{region is active.}
- code{%i} itself.}
- %a code{org-store-link}.}
- %A code{%a}, but prompt for the description part.}
- %l
- r{Current kill ring head.}
- %x
- r{Title of the currently clocked task.}
- %K
- r{User name (taken from
- r{File visited by current buffer when org-capture was called.}
- %F
- r{Specific information for certain link types, see below.}
- %^g
- r{Prompt for tags, with completion all tags in all agenda files.}
- %^t code{%t}, but prompt for date. Similarly code{%^u},
- r{You may define a prompt like {Birthday
- r{Interactive selection of which kill or clip to use.}
- %^L code{%^C}, but insert as link.}
- %^var{prop}r{Prompt the user for a value for property
- {}
- r{You may specify a default value and a completion table with}
- {prompt|default|completion2|completion3...
- r{The arrow keys access a prompt-specific history.}
- %\1 r{Insert the text entered at the Nth %^var{prompt}code{N} is}
-
- r{After completing the template, position cursor here.}
- noindent
- For specific link types, the following keywords will be
- definedpxref{Adding
- hyperlink types}), any property you store with
- vindex org-from-is-user-regexp
- r{(message date header field)}
- | %:date-timestamp
- r{(date as inactive timestamp)}
- | %:fromto footnote{This will always be the other, not the user. See the variable
- r{for messages also all email fields}
- eww, w3, w3m | %:url
- info | %:file %:node
- calendar | %:date
- noindent
- To place the cursor after template expansion use:
- r{After completing the template, position cursor here.}
- node Templates in contexts
- vindex org-capture-templates-contexts
- To control whether a capture template should be accessible from a specific
- context, you can customize
- code{"p"} for storing Gnus
- emails containing patches. Then you would configure this option like this:
- end smalllisp
- You can also tell that the command key
- smalllisp
- (setq org-capture-templates-contexts
- '(("p" "q" (in-mode . "message-mode"))))
- node Attachments
- cindex attachments
- pxref{Hyperlinks}) can establish associations with
- files that live elsewhere on your computer or in the cloud, like emails or
- source code files belonging to a project. Another method is
- file{data} directory which lives in the same directory where
- your Org file lives
- code{org-attach-directory}
- to contain an absolute path.}. If you initialize this directory with
- noindent The following commands deal with attachments:
- kbd
- table
- orgcmdtkc{a,C-c C-a a,org-attach-attach}
- code{org-attach-method}.
- Note that hard links are not supported on all systems.
- kindex C-c C-a m
- item c/m/l
- Attach a file using the copy/move/link method.
- Note that hard links are not supported on all systems.
- orgcmdtkc{z,C-c C-a z,org-attach-sync}
- Synchronize the current task with its attachment directory, in case you added
- attachments yourself.
- vindex org-file-apps
- Open current task's attachment. If there is more than one, prompt for a
- file name first. Opening will follow the rules set by
- pxref{Handling links}).
- orgcmdtkc{f,C-c C-a f,org-attach-reveal}
- Open the current task's attachment directory.
- command{dired} in Emacs.
- orgcmdtkc{D,C-c C-a D,org-attach-delete-all}
- Delete all of a task's attachments. A safer way is to open the directory in
- orgcmdtkc{s,C-c C-a s,org-attach-set-directory}
- code{ATTACH_DIR} property.
- cindex property, ATTACH_DIR_INHERIT
- Set the
- end table
- node RSS feeds
- cindex RSS feeds
- code{org-feed-alist}. The docstring of this variable has detailed
- information. Here is just an example:
- group
- (setq org-feed-alist
- '(("Slashdot"
- "http://rss.slashdot.org/Slashdot/slashdot"
- "~/txt/org/feeds.org" "Slashdot Entries")))
- end smalllisp
- code{rss.slashdot.org} will result in new entries in the file
- samp{Slashdot Entries}, whenever
- the following command is used:
- kbd
- item C-c C-x g
- Collect items from the feeds configured in
- orgcmd{C-c C-x G,org-feed-goto-inbox}
- Prompt for a feed name and go to the inbox configured for this feed.
- samp{FEEDSTATUS} in which
- it will store information about the status of items in the feed, to avoid
- adding the same item several times.
- For more information, including how to read atom feeds, see
- code{org-feed-alist}.
- section Protocols for external access
- cindex emacsserver
- You can set up Org for handling protocol calls from outside applications that
- are passed to Emacs through the
- pxref{Capture}). Or you
- could create a bookmark that will tell Emacs to open the local source file of
- a remote website you are looking at with the browser. See
- node Refile and copy
- cindex refiling notes
- table
- orgcmd{C-c M-w,org-copy}
- orgcmd{C-c C-w,org-refile}
- vindex org-reverse-note-order
- vindex org-refile-use-outline-path
- vindex org-refile-allow-creating-parent-nodes
- vindex org-refile-use-cache
- code{org-reverse-note-order}, it will be either the first or
- last subitem.
- code{org-refile-targets} for details. If you would like to
- select a location via a file-path-like completion along the outline path, see
- the variables
- code{org-outline-path-complete-in-steps}. If you would like to be able to
- create new nodes as new parents for refiling on the fly, check the
- variable
- code{org-log-refile}
- code{#+STARTUP} keywords code{lognoterefile},
- and
- orgkey{C-u C-c C-w}
- Use the refile interface to jump to a heading.
- code{org-refile} last moved a tree to.
- item C-3 C-c C-w
- Refile and keep the entry in place. Also see
- code{ID} properties.
- C-u C-u C-u C-c C-w,C-0 C-c C-w,org-refile-cache-clear}
- Clear the target cache. Caching of refile targets can be turned on by
- setting
- end table
- section Archiving
- table
- orgcmd{C-c C-x C-a,org-archive-subtree-default}
- code{org-archive-default-command}.
- menu
- * Moving subtrees:: Moving a tree to an archive file
- * Internal archiving:: Switch off a tree but keep it in the file
- node Moving subtrees
- cindex external archiving
- The most common archiving action is to move a project tree to another file,
- the archive file.
- kbd
- vindex org-archive-location
- Archive the subtree starting at the cursor position to the location
- given by
- orgkey{C-u C-c C-x C-s}
- Check if any direct children of the current headline could be moved to
- the archive. To do this, each subtree is checked for open TODO entries.
- If none are found, the command offers to move it to the archive
- location. If the cursor is
- orgkey{C-u C-u C-c C-x C-s}
- As above, but check subtree for timestamps instead of TODO entries. The
- command will offer to archive the subtree if it
- end table
- file{_archive} to the
- current file name. You can also choose what heading to file archived
- items under, with the possibility to add them to a datetree in a file.
- For information and examples on how to specify the file and the heading,
- see the documentation string of the variable
- cindex #+ARCHIVE
- end example
- noindent
- If you would like to have a special ARCHIVE location for a single entry
- or a (sub)tree, give the entry an
- pxref{Properties and columns}).
- code{org-archive-save-context-info} to adjust the amount of information
- added.
- subsection Internal archiving
- samp{:ARCHIVE:} tag (
- itemize
- item
- pxref{Visibility cycling}). You can force cycling archived
- subtrees with key{TAB}}, or by setting the option
- code{show-all} will open archived subtrees.
- vindex org-sparse-tree-open-archived-trees
- During sparse tree construction (
- code{org-sparse-tree-open-archived-trees}.
- vindex org-agenda-skip-archived-trees
- During agenda view construction (
- code{org-agenda-skip-archived-trees}, in which case these trees will always
- be included. In the agenda you can press
- item
- pxref{Exporting}), only the headline
- is. Configure the details using the variable
- item
- code{org-columns-skip-archived-trees} is configured to
- end itemize
- The following commands help manage the ARCHIVE tag:
- kbd
- orgkey{C-u C-c C-x a}
- Check if any direct children of the current headline should be archived.
- To do this, each subtree is checked for open TODO entries. If none are
- found, the command offers to set the ARCHIVE tag for the child. If the
- cursor is
- orgcmd{C-
- orgcmd{C-c C-x A,org-archive-to-archive-sibling}
- Move the current entry to the
- samp{Archive} and the tag
- end table
- chapter Agenda views
- itemize
- item
- an
- item
- a
- item
- a
- item
- a
- item
- a
- item
- end itemize
- emph{agenda
- buffer}. This buffer is read-only, but provides commands to visit the
- corresponding locations in the original Org files, and even to
- edit these files remotely.
- vindex org-agenda-skip-archived-trees
- cindex archived entries, in agenda views
- By default, the report ignores commented (
- pxref{Internal archiving}) entries. You can override this by setting
- code{org-agenda-skip-archived-trees} to
- vindex org-agenda-window-setup
- code{org-agenda-window-setup} and
- menu
- * Agenda files:: Files being searched for agenda information
- * Agenda dispatcher:: Keyboard access to agenda views
- * Built-in agenda views:: What is available out of the box?
- * Presentation and sorting:: How agenda items are prepared for display
- * Agenda commands:: Remote editing of Org trees
- * Custom agenda views:: Defining special searches and views
- * Exporting agenda views:: Writing a view to a file
- * Agenda column view:: Using column view for collected entries
- node Agenda files
- cindex agenda files
- vindex org-agenda-files
- The information to be shown is normally collected from all
- code{org-agenda-files}
- file{.org} in this directory will be part
- of the list.
- Thus, even if you only work with a single Org file, that file should
- be put into the list
- kbd{<} before selecting a command will actually limit the command to
- the current file, and ignore
- code{org-agenda-files}, but
- the easiest way to maintain it is through the following commands
- table
- orgcmd{C-c [,org-agenda-file-to-front}
- Add current file to the list of agenda files. The file is added to
- the front of the list. If it was already in the list, it is moved to
- the front. With a prefix argument, file is added/moved to the end.
- kindex C-,
- orgcmd{C-',org-cycle-agenda-files}
- kindex M-x org-iswitchb
- code{iswitchb}-like interface to switch to and between Org
- buffers.
- noindent
- The Org menu contains the current list of files and can be used
- to visit any of them.
- If you would like to focus the agenda temporarily on a file not in
- this list, or on just one file in the list, or even on only a subtree in a
- file, then this can be done in different ways. For a single agenda command,
- you may press
- pxref{Agenda dispatcher}). To restrict the agenda scope for an
- extended period, use the following commands:
- kbd
- kbd{C-c C-x >}, or by typing either
- kbd{>} in the agenda dispatcher. If there is a window displaying an
- agenda view, the new restriction takes effect immediately.
- kbd{C-c C-x <}.
- noindent
- When working with
- table
- orgcmdtkc{<
- orgcmdtkc{>
- end table
- section The agenda dispatcher
- cindex dispatching agenda commands
- The views are created through a dispatcher, which should be bound to a
- global key---for example pxref{Activation}). In the
- following we will assume that
- kbd{C-c a}, an additional letter is required to execute a
- command. The dispatcher offers the following default commands:
- kbd
- pxref{Weekly/daily agenda}).
- r{/} T
- Create a list of all TODO items (
- item m
- pxref{Matching
- tags and properties}).
- item /
- code{org-agenda-text-search-extra-files}. This
- uses the Emacs command
- item #
- pxref{Stuck projects}).
- footnote{For backward
- compatibility, you can also press
- kbd{<}, you still need to press the character
- selecting the command.
- footnote{For
- backward compatibility, you can also press
- kbd{< <}, you still need to press the
- character selecting the command.
- cindex agenda, sticky
- code{org-agenda-sticky}. With sticky
- agendas, the agenda dispatcher will not recreate agenda views from scratch,
- it will only switch to the selected one, and you need to update the agenda by
- hand with kbd{g} when needed. You can toggle sticky agenda view
- any time with
- end table
- You can also define custom commands that will be accessible through the
- dispatcher, just like the default commands. This includes the
- possibility to create extended agenda buffers that contain several
- blocks together, for example the weekly agenda, the global TODO list and
- a number of special tags matches.
- node Built-in agenda views
- menu
- * Weekly/daily agenda:: The calendar page with current tasks
- * Global TODO list:: All unfinished action items
- * Matching tags and properties:: Structured information with fine-tuned search
- * Search view:: Find entries by searching for text
- * Stuck projects:: Find projects you need to review
- node Weekly/daily agenda
- cindex agenda
- cindex daily agenda
- The purpose of the weekly/daily
- table
- cindex org-agenda, command
- footnote{For backward
- compatibility, the universal prefix
- pxref{Block agenda}).} (like
- end table
- vindex org-agenda-ndays
- vindex org-agenda-start-on-weekday
- The default number of days displayed in the agenda is set by the variable
- code{org-agenda-ndays}). This
- variable can be set to any number of days you want to see by default in the
- agenda, or to a span name, such as code{week},
- code{year}. For weekly agendas, the default is to start on the previous
- monday (see
- code{(setq org-agenda-start-day "+10d")} will
- start the agenda ten days from today in the future.
- Remote editing from the agenda buffer means, for example, that you can
- change the dates of deadlines and appointments from the agenda buffer.
- The commands available in the Agenda buffer are listed in
- subsubheading Calendar/Diary integration
- cindex diary integration
- Emacs contains the calendar and diary by Edward M. Reingold. The
- calendar displays a three-month calendar with holidays from different
- countries and cultures. The diary allows you to keep track of
- anniversaries, lunar phases, sunrise/set, recurrent appointments
- (weekly, monthly) and more. In this way, it is quite complementary to
- Org. It can be very useful to combine output from Org with
- the diary.
- In order to include entries from the Emacs diary into Org mode's
- agenda, you only need to customize the variable
- end lisp
- key{SPC},
- key{RET} can be used from the agenda buffer to jump to the diary
- file in order to edit existing diary entries. The
- kbd{S}, kbd{C} to display
- Sunrise/Sunset times, show lunar phases and to convert to other
- calendars, respectively.
- example
- * Holidays
- :PROPERTIES:
- :CATEGORY: Holiday
- :END:
- %%(org-calendar-holiday) ; special function for holiday names
- * Birthdays
- :PROPERTIES:
- :CATEGORY: Ann
- :END:
- %%(org-anniversary 1956 5 14)code{org-anniversary} is just like code{calendar-date-style}.} Arthur Dent is %d years old
- %%(org-anniversary 1869 10 2) Mahatma Gandhi would be %d years old
- subsubheading Anniversaries from BBDB
- cindex anniversaries, from BBDB
- If you are using the Big Brothers Database to store your contacts, you will
- very likely prefer to store anniversaries in BBDB rather than in a
- separate Org or diary file. Org supports this and will show BBDB
- anniversaries as part of the agenda. All you need to do is to add the
- following to one of your agenda files:
- end example
- You can then go ahead and define anniversaries for a BBDB record. Basically,
- you need to press key{RET}} with the cursor in a BBDB
- record and then add the date in the format code{MM-DD},
- followed by a space and the class of the anniversary (
- samp{wedding}, or a format string). If you omit the class, it will default to
- file{org-bbdb.el} contains more detailed information.
- end example
- After a change to BBDB, or for the first agenda display during an Emacs
- session, the agenda display will suffer a short delay as Org updates its
- hash with anniversaries. However, from then on things will be very fast---much
- faster in fact than a long list of
- example
- * Anniversaries
- :PROPERTIES:
- :CATEGORY: Anniv
- :END:
- %%(org-bbdb-anniversaries-future 3)
- subsubheading Appointment reminders
- file{appt.el}
- cindex appointment
- code{org-agenda-to-appt}.
- This command lets you filter through the list of your appointments and add
- only those belonging to a specific category or matching a regular expression.
- It also reads a
- code{appt-message-warning-time} for this appointment. See the
- docstring for details.
- subsection The global TODO list
- cindex TODO list, global
- The global TODO list contains all unfinished TODO items formatted and
- collected into a single place.
- kbd
- pxref{Agenda views}) into a single buffer. By default, this lists
- items with a state the is not a DONE state. The buffer is in
- pxref{Agenda commands}).
- cindex TODO keyword matching
- kbd{C-c a t}. You are
- prompted for a keyword, and you may also specify several keywords by
- separating them with
- code{org-todo-keywords} is selected.
- kbd{r} key in the agenda buffer regenerates it, and you can give
- a prefix argument to this command to change the selected TODO keyword,
- for example
- pxref{Agenda dispatcher}).
- pxref{Tag searches}).
- ref{Agenda commands}.
- itemize
- item
- vindex org-agenda-todo-ignore-deadlines
- vindex org-agenda-todo-ignore-with-date
- Some people view a TODO item that has been
- emph{deadline} (emph{open}.
- Configure the variables
- code{org-agenda-todo-ignore-deadlines},
- code{org-agenda-todo-ignore-with-date} to exclude such items from the global
- TODO list.
- vindex org-agenda-todo-list-sublevels
- TODO items may have sublevels to break up the task into subtasks. In
- such cases it may be enough to list only the highest level TODO headline
- and omit the sublevels from the global list. Configure the variable
- end itemize
- subsection Matching tags and properties
- cindex matching, of properties
- cindex match view
- If headlines in the agenda files are marked with pxref{Tags}),
- or have properties (
- kbd{C-c /
- m}.
- kbd
- samp{+work+urgent-withboss} or
- pxref{Tags}). If you often need a specific search,
- define a custom command for it (
- orgcmd{C-c a M,org-tags-view}
- vindex org-agenda-tags-todo-honor-ignore-options
- Like
- code{org-tags-match-list-sublevels}). To exclude scheduled/deadline items,
- see the variable
- ref{Tag searches}.
- ref{Agenda
- commands}.
- cindex Boolean logic, for tag/property searches
- A search string can use Boolean operators code{AND} and
- code{OR}samp{&} binds more strongly than
- code{PROPERTY OPERATOR VALUE} with a comparison operator, accessing a
- property value. Each element may be preceded by
- samp{+} is syntactic sugar for positive selection. The
- samp{&} is optional when samp{-} is
- present. Here are some examples, using only tags.
- samp
- samp{:work:}.
- samp{:work:} and
- item +work-boss
- Select headlines tagged
- samp{:boss:}.
- samp{:work:} or
- item work|laptop+night
- Like before, but require the
- samp{:night:}.
- cindex regular expressions, with tags search
- Instead of a tag, you may also specify a regular expression enclosed in curly
- braces. For example,
- {^boss.*
- samp{:work:} and any tag samp{boss}.
- pxref{Tag hierarchy}) are expanded as regular expressions. E.g.,
- if samp{:work:lab:conf:}, then
- searching for samp{}}
- and searching for
- samp{-}}).
- cindex level, require for tags/property match
- vindex org-odd-levels-only
- You may also test for properties (
- pxref{Special properties}). For
- example, the ``property''
- code{PRIORITY} represents the PRIORITY keyword of
- the entry.
- In addition to the properties mentioned above,
- samp{+LEVEL=3+boss-TODO="DONE"} lists all
- level three headlines that have the tag emph{not} marked
- with the TODO keyword DONEcode{org-odd-levels-only} set,
- samp{LEVEL=2} will
- correspond to 3 stars etc.
- Here are more examples:
- samp
- samp{:work:}-tagged TODO lines with the specific TODO
- keyword
- item work+TODO="WAITING"|home+TODO="WAITING"
- Waiting tasks both at work and at home.
- example
- +work-boss+PRIORITY="A"+Coffee="unlimited"+Effort<2 \
- +With=}+SCHEDULED>="<2008-10-11>"
- noindent
- The type of comparison will depend on how the comparison value is written:
- minus
- samp{<}, samp{>},
- samp{>=}, and
- item
- If the comparison value is enclosed in double-quotes,
- a string comparison is done, and the same operators are allowed.
- emph{and} angular
- brackets (like
- code{"<now>"} for now (including time), and
- code{"<tomorrow>"} for these days at 00:00 hours, i.e., without a time
- specification. Also strings like code{"<-2m>"} with units
- code{w}, code{y} for day, week, month, and year,
- respectively, can be used.
- samp{=} meaning that the
- regexp matches the property value, and
- end itemize
- So the search string in the example finds entries tagged
- samp{:boss:}, which also have a priority value
- samp{:Coffee:} property with the value samp{Effort}
- property that is numerically smaller than 2, a
- samp{Sarah\|Denny}, and that are scheduled
- on or after October 11, 2008.
- You can configure Org mode to use property inheritance during a search, but
- beware that this can slow down searches considerably. See
- samp{|}) with a
- .
- However,
- kbd{C-c a M}, or equivalently start the TODO
- part after the slash with kbd{C-c a M} or
- table
- item work/WAITING
- Same as
- item work/!-WAITING-NEXT
- Select samp{WAITING}
- nor
- item work/!+WAITING|+NEXT
- Select samp{WAITING} or
- end table
- subsection Search view
- cindex text search
- table
- orgcmd{C-c a s,org-search-view}
- This is a special search that lets you select entries by matching a substring
- or specific words using a boolean logic.
- samp{computer equipment} will find entries
- that contain
- samp{+computer +wifi -ethernet -}}
- will search for note entries that contain the keywords
- code{wifi}, but not the keyword
- code{8\.11[bg]}, meaning to
- exclude both 8.11b and 8.11g. The first
- samp{+} characters are optional. For more details, see
- the docstring of the command
- vindex org-agenda-text-search-extra-files
- Note that in addition to the agenda files, this command will also search
- the files listed in
- node Stuck projects
- pindex GTD, Getting Things Done
- If you are following a system like David Allen's GTD to organize your
- work, one of the ``duties'' you have is a regular review to make sure
- that all projects move along. A
- table
- orgcmd{C-c a #,org-agenda-list-stuck-projects}
- List projects that are stuck.
- item C-c a !
- code{org-stuck-projects} to define what a stuck
- project is and how to find it.
- footnote{
- samp{+PROJECT/-MAYBE-DONE}, and then check for TODO, NEXT, SHOP, and
- IGNORE in the subtree to identify projects that are not stuck. The
- correct customization for this is
- end lisp
- Note that if a project is identified as non-stuck, the subtree of this entry
- will still be searched for stuck projects.
- section Presentation and sorting
- vindex org-agenda-prefix-format
- emph{prefix} that contains the pxref{Categories})
- of the item and other important information. You can customize in which
- column tags will be displayed through
- code{org-agenda-prefix-format}.
- This prefix is followed by a cleaned-up version of the outline headline
- associated with the item.
- end menu
- subsection Categories
- cindex #+CATEGORY
- The category is a broad label assigned to each agenda item. By default, the
- category is simply derived from the file name, but you can also specify it
- with a special line in the buffer, like this:
- end example
- cindex property, CATEGORY
- If you would like to have a special CATEGORY for a single entry or a
- (sub)tree, give the entry a
- noindent
- The display in the agenda buffer looks best if the category is not
- longer than 10 characters.
- code{org-agenda-category-icon-alist} variable.
- subsection Time-of-day specifications
- w{
- c
- samp{<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>}}.
- In the headline of the entry itself, a time(range) may also appear as
- plain text (like samp{8:30-1pm}). If the agenda
- integrates the Emacs diary (
- example
- 8:30-13:00 Arthur Dent lies in front of the bulldozer
- 12:45...... Ford Prefect arrives and takes Arthur to the pub
- 19:00...... The Vogon reads his poem
- 20:30-22:15 Marvin escorts the Hitchhikers to the bridge
- cindex time grid
- If the agenda is in single-day mode, or for the display of today, the
- timed entries are embedded in a time grid, like
- end example
- vindex org-agenda-time-grid
- The time grid can be turned on and off with the variable
- code{org-agenda-time-grid}.
- subsection Sorting agenda items
- cindex priorities, of agenda items
- Before being inserted into a view, the items are sorted. How this is
- done depends on the type of view.
- bullet
- vindex org-agenda-files
- For the daily/weekly agenda, the items for each day are sorted. The
- default order is to first collect all items containing an explicit
- time-of-day specification. These entries will be shown at the beginning
- of the list, as a
- code{org-agenda-files}.
- Within each category, items are sorted by priority (
- samp{A}, 1000
- for samp{C}), plus additional increments for
- overdue scheduled or deadline items.
- pxref{Priorities}). The priority used for sorting derives from the
- priority cookie, with additions depending on how close an item is to its due
- or scheduled date.
- end itemize
- code{org-agenda-sorting-strategy}, and may also include criteria based on
- the estimated effort of an entry (
- node Filtering/limiting agenda items
- emph{filters} and
- subsubheading Filtering in the agenda
- cindex tag filtering, in agenda
- cindex top headline filtering, in agenda
- cindex query editing, in agenda
- kbd
- vindex org-agenda-tag-filter-preset
- Filter the agenda view with respect to a tag and/or effort estimates. The
- difference between this and a custom agenda command is that filtering is very
- fast, so that you can switch quickly between different filters without having
- to recreate the agenda.
- code{org-agenda-tag-filter-preset} as an option. This
- filter will then be applied to the view and persist as a basic filter through
- refreshes and more secondary filtering. The filter is a global property of
- the entire agenda view---in a block agenda, you should only set this in the
- global options section, not in the section of an individual block.}
- You will be prompted for a tag selection letter;
- key{TAB} at that prompt will offer use completion to
- select a tag (including any tags that do not have a selection character).
- The command then hides all entries that do not contain or inherit this tag.
- When called with prefix arg, remove the entries that
- kbd{/} at the prompt will turn off the filter and unhide any hidden
- entries. Pressing kbd{-} switches between filtering and
- excluding the next tag.
- Org also supports automatic, context-aware tag filtering. If the variable
- kbd{/} command then accepts
- code{Net} tag to identify tasks which need network access, an
- code{Call} tag for making phone
- calls. You could auto-exclude these tags based on the availability of the
- Internet, and outside of business hours, with something like this:
- group
- (defun org-my-auto-exclude-function (tag)
- (and (cond
- ((string= tag "Net")
- (/= 0 (call-process "/sbin/ping" nil nil nil
- "-c1" "-q" "-t1" "mail.gnu.org")))
- ((or (string= tag "Errand") (string= tag "Call"))
- (let ((hour (nth 2 (decode-time))))
- (or (< hour 8) (> hour 21)))))
- (concat "-" tag)))
- (setq org-agenda-auto-exclude-function 'org-my-auto-exclude-function)
- end smalllisp
- kindex [
- kindex
- kindex
- item [ ] }
- i
- r{in} search view
- add new search words (kbd{]}) or new regular expressions
- ({} and }}) to the query string. The opening bracket/brace will
- add a positive search term prefixed by
- i{must} occur/match in the entry. The closing bracket/brace will add a
- negative search term which
- end table
- vindex org-agenda-category-filter-preset
- Filter the current agenda view with respect to the category of the item at
- point. Pressing
- code{org-agenda-category-filter-preset}.
- orgcmd{^,org-agenda-filter-by-top-headline}
- Filter the current agenda view and only display the siblings and the parent
- headline of the one at point.
- vindex org-agenda-regexp-filter-preset
- Filter the agenda view by a regular expression: only show agenda entries
- matching the regular expression the user entered. When called with a prefix
- argument, it will filter
- code{org-agenda-regexp-filter-preset}.
- orgcmd{_,org-agenda-filter-by-effort}
- vindex org-sort-agenda-noeffort-is-high
- Filter the agenda view with respect to effort estimates.
- You first need to set up allowed efforts globally, for example
- end lisp
- You can then filter for an effort by first typing an operator, one of
- kbd{>}, and
- kbd{0} means the 10th value.
- The filter will then restrict to entries with effort smaller-or-equal, equal,
- or larger-or-equal than the selected value. For application of the operator,
- entries without a defined effort will be treated according to the value of
- code{org-agenda-effort-filter-preset}.
- orgcmd{|,org-agenda-filter-remove-all}
- Remove all filters in the current agenda view.
- subsubheading Setting limits for the agenda
- vindex org-agenda-max-entries
- vindex org-agenda-max-todos
- pxref{Custom agenda views}).
- code
- item org-agenda-max-effort
- Limit the duration of accumulated efforts (as minutes).
- item org-agenda-max-tags
- Limit the number of tagged entries.
- code{(setq org-agenda-max-effort 100)} will limit
- the agenda to 100 minutes of effort and exclude any entry that has no effort
- property. If you want to include entries with no effort property, use a
- negative value for
- code{org-agenda-max-entries} locally in a custom
- command. For example, this custom command will display the next five entries
- with a
- smalllisp
- (setq org-agenda-custom-commands
- '(("n" todo "NEXT"
- ((org-agenda-max-entries 5)))))
- code{DONE}, rebuilding the agenda
- will again the next five entries again, including the first entry that was
- excluded so far.
- You can also dynamically set temporary limits, which will be lost when
- rebuilding the agenda:
- kbd
- end table
- section Commands in the agenda buffer
- table
- tsubheading{Motion}
- orgcmd{n,org-agenda-next-line}
- Next line (same as kbd{C-n}).
- key{up} and
- orgcmd{N,org-agenda-next-item}
- Next item: same as next line, but only consider items.
- tsubheading{View/Go to Org file}
- key{SPC},mouse-3,org-agenda-show-and-scroll-up}
- Display the original location of the item in another window. With prefix
- arg, make sure that drawers stay folded.
- orgcmd{L,org-agenda-recenter}
- Display original location and recenter that window.
- orgcmdkkc{
- c
- key{RET},org-agenda-switch-to}
- Go to the original location of the item and delete other windows.
- orgcmd{F,org-agenda-follow-mode}
- code{org-agenda-start-with-follow-mode}.
- orgcmd{C-c C-x b,org-agenda-tree-to-indirect-buffer}
- Display the entire subtree of the current item in an indirect buffer. With a
- numeric prefix argument N, go up to level N and then take that tree. If N is
- negative, go up that many levels. With a
- orgcmd{C-c C-o,org-agenda-open-link}
- Follow a link in the entry. This will offer a selection of any links in the
- text belonging to the referenced Org node. If there is only one link, it
- will be followed without a selection prompt.
- cindex display changing, in agenda
- item A
- Interactively select another agenda view and append it to the current view.
- kindex o
- c
- xorgcmdkskc{v w,w,org-agenda-week-view}
- xorgcmd{v m,org-agenda-month-view}
- xorgcmd{v SPC,org-agenda-reset-view}
- kbd{32 d} jumps to
- February 1st,
- kbd{200712 w} will jump to week 12 in 2007. If such a year
- specification has only one or two digits, it will be mapped to the interval
- 1938--2037. key{SPC}} will reset to what is set in
- c
- code{org-agenda-current-span} days.
- For example, if the display covers a week, switch to the following week.
- With prefix arg, go forward that many times
- c
- c
- c
- c
- i{in the agenda buffer}.
- orgcmd{D,org-agenda-toggle-diary}
- Toggle the inclusion of diary entries. See
- c
- kindex v L
- vindex org-agenda-log-mode-items
- Toggle Logbook mode. In Logbook mode, entries that were marked DONE while
- logging was on (variable
- code{org-agenda-log-mode-items}. When called with a
- kbd{C-u C-u}, show only logging information, nothing else.
- kbd{C-u v l}.
- orgcmdkskc{v [,[,org-agenda-manipulate-query-add}
- Include inactive timestamps into the current view. Only for weekly/daily
- agenda.
- orgcmd{v a,org-agenda-archives-mode}
- cindex Archives mode
- Toggle Archives mode. In Archives mode, trees that are marked
- kbd{A}, even all archive files are included. To exit archives mode,
- press
- c
- vindex org-agenda-start-with-clockreport-mode
- code{org-agenda-start-with-clockreport-mode}. By using a prefix argument
- when toggling this mode (i.e.,
- footnote{Only
- tags filtering will be respected here, effort filtering is ignored.}. See
- also the variable
- c
- vindex org-agenda-clock-consistency-checks
- Show overlapping clock entries, clocking gaps, and other clocking problems in
- the current agenda range. You can then visit clocking lines and fix them
- manually. See the variable
- kbd{l} to exit Logbook
- mode.
- orgcmdkskc{v E,E,org-agenda-entry-text-mode}
- vindex org-agenda-entry-text-maxlines
- Toggle entry text mode. In entry text mode, a number of lines from the Org
- outline node referenced by an agenda line will be displayed below the line.
- The maximum number of lines is given by the variable
- c
- vindex org-agenda-use-time-grid
- code{org-agenda-use-time-grid} and
- c
- kbd{S-
- kbd{S-
- orgcmd{g,org-agenda-redo}
- Same as
- c
- c
- vindex org-columns-default-format
- Invoke column view (
- code{#+COLUMNS} line, or from the default variable
- orgcmd{C-c C-x >,org-agenda-remove-restriction-lock}
- Remove the restriction lock on the agenda, if it is currently restricted to a
- file or subtree (
- tsubheading{Secondary filtering and query editing}
- For a detailed description of these commands,
- orgcmd{/,org-agenda-filter-by-tag}
- Filter the agenda view with respect to a tag and/or effort estimates.
- orgcmd{^,org-agenda-filter-by-top-headline}
- Filter the current agenda view and only display the siblings and the parent
- headline of the one at point.
- orgcmd{_,org-agenda-filter-by-effort}
- Filter the agenda view with respect to effort estimates.
- tsubheading{Remote editing}
- item 0--9
- Digit argument.
- cindex undoing remote-editing events
- orgcmd{C-_,org-agenda-undo}
- Undo a change due to a remote editing command. The change is undone
- both in the agenda buffer and in the remote buffer.
- orgcmd{t,org-agenda-todo}
- Change the TODO state of the item, both in the agenda and in the
- original org file.
- orgcmd{C-S-
- orgcmd{C-S-
- c
- vindex org-agenda-confirm-kill
- Delete the current agenda item along with the entire subtree belonging
- to it in the original Org file. If the text to be deleted remotely
- is longer than one line, the kill needs to be confirmed by the user. See
- variable
- c
- c
- vindex org-archive-default-command
- Archive the subtree corresponding to the entry at point using the default
- archiving command set in
- code{a} key, confirmation will be required.
- orgcmd{C-c C-x a,org-agenda-toggle-archive-tag}
- Toggle the ARCHIVE tag for the current headline.
- orgcmd{C-c C-x A,org-agenda-archive-to-archive-sibling}
- Move the subtree corresponding to the current entry to its
- c
- c
- vindex org-agenda-show-inherited-tags
- Show all tags associated with the current item. This is useful if you have
- turned off
- c
- c
- item ,
- Set the priority for the current item (
- key{SPC},
- the priority cookie is removed from the entry.
- orgcmd{P,org-agenda-show-priority}
- Display weighted priority of current item.
- orgcmdkkc{+,S-
- kbd{r}
- key for this.
- orgcmdkkc{-,S-
- c
- vindex org-log-into-drawer
- Add a note to the entry. This note will be recorded, and then filed to the
- same location where state change notes are put. Depending on
- c
- c
- c
- c
- key{right},org-agenda-do-date-later}
- Change the timestamp associated with the current line by one day into the
- future. If the date is in the past, the first call to this command will move
- it to today.
- kbd{3 6 5 S-kbd{C-u} prefix,
- change the time by one hour. If you immediately repeat the command, it will
- continue to change hours even without the prefix arg. With a double
- *
- The stamp is changed in the original Org file, but the change is not directly
- reflected in the agenda buffer. Use kbd{g} to update the buffer.
- orgcmd{S-
- c
- kbd{>} has
- been chosen, because it is the same as
- c
- c
- c
- c
- c
- code{org-capture}, but use the date at point as the default date for
- the capture template. See
- code{org-capture}.
- vindex org-capture-use-agenda-date
- cindex dragging, agenda lines
- footnote{Moving agenda lines does
- not persist after an agenda refresh and does not modify the contributing
- orgcmd{M-<down>,org-agenda-drag-line-forward}
- Drag the line at point forward one line. With a numeric prefix argument,
- drag forward by that many lines.
- cindex remote editing, bulk, from agenda
- orgcmd{m,org-agenda-bulk-mark}
- Mark the entry at point for bulk action. With numeric prefix argument, mark
- that many successive entries.
- orgcmd{*,org-agenda-bulk-mark-all}
- Mark all visible agenda entries for bulk action.
- orgcmd{u,org-agenda-bulk-unmark}
- Unmark entry at point for bulk action.
- orgcmd{U,org-agenda-bulk-remove-all-marks}
- Unmark all marked entries for bulk action.
- orgcmd{M-m,org-agenda-bulk-toggle}
- Toggle mark of the entry at point for bulk action.
- orgcmd{M-*,org-agenda-bulk-toggle-all}
- Toggle marks of all visible entries for bulk action.
- orgcmd{%,org-agenda-bulk-mark-regexp}
- Mark entries matching a regular expression for bulk action.
- orgcmd{B,org-agenda-bulk-action}
- Bulk action: act on all marked entries in the agenda. This will prompt for
- another key to select the action to be applied. The prefix arg to
- kbd{s} and
- code{org-agenda-persistent-marks} to
- kbd{p} at the prompt.
- kbd
- item $
- Archive all selected entries.
- item t
- Change TODO state. This prompts for a single TODO keyword and changes the
- state of all selected entries, bypassing blocking and suppressing logging
- notes (but not timestamps).
- item -
- Remove a tag from all selected entries.
- samp{++8d} or
- item d
- Set deadline to a specific date.
- kbd{g}) to bring them back.
- kbd{C-u B S}), scatter only across weekdays.
- footnote{You can also create persistent custom functions
- through
- lisp
- end group
- end table
- cindex calendar commands, from agenda
- c
- c
- orgcmd{i,org-agenda-diary-entry}
- footnote{This file is parsed for the agenda when
- kbd{i}
- command in the calendar. The diary file will pop up in another window, where
- you can add the entry.
- If you configure
- code{DATE_TREE} property, or else with years as
- top-level entries. Emacs will prompt you for the entry text---if you specify
- it, the entry will be created in
- key{RET} at the prompt without typing
- text, the target file will be shown in another window for you to finish the
- entry there. See also the
- c
- c
- c
- c
- item M-x org-icalendar-combine-agenda-files RET
- Export a single iCalendar file containing entries from all agenda files.
- This is a globally available command, and also available in the agenda menu.
- orgcmd{C-x C-w,org-agenda-write}
- cindex agenda views, exporting
- file{.html} or
- file{.ps}), PDF (file{.org}) and plain text
- (any other extension). When exporting to Org, only the body of original
- headlines are exported, not subtrees or inherited tags. When called with a
- code{org-agenda-exporter-settings} to set options for
- file{htmlize} to be used during export.
- orgcmd{q,org-agenda-quit}
- Quit agenda, remove the agenda buffer.
- cindex agenda files, removing buffers
- end table
- section Custom agenda views
- cindex agenda views, custom
- Custom agenda commands serve two purposes: to store and quickly access
- frequently used TODO and tags searches, and to create special composite
- agenda buffers. Custom agenda commands will be accessible through the
- dispatcher (
- menu
- * Storing searches:: Type once, use often
- * Block agenda:: All the stuff you need in a single buffer
- * Setting options:: Changing the rules
- node Storing searches
- kindex C-c a C
- cindex agenda views, main example
- cindex agenda*, as an agenda views
- cindex todo, as an agenda view
- cindex todo-tree
- cindex tags-tree
- Custom commands are configured in the variable
- kbd{C-c a C}. You can also directly set it with Emacs
- Lisp in the Emacs init file. The following example contains all valid agenda
- views:
- group
- (setq org-agenda-custom-commands
- '(("x" agenda)
- ("y" agenda*)
- ("w" todo "WAITING")
- ("W" todo-tree "WAITING")
- ("u" tags "+boss-urgent")
- ("v" tags-todo "+boss-urgent")
- ("U" tags-tree "+boss-urgent")
- ("f" occur-tree "\\<FIXME\\>")
- ("h" . "HOME+Name tags searches") ; description for "h" prefix
- ("hl" tags "+home+Lisa")
- ("hp" tags "+home+Peter")
- ("hk" tags "+home+Kim")))
- end lisp
- kbd{C-c a} in order to access the command.
- Usually this will be just a single character, but if you have many
- similar commands, you can also define two-letter combinations where the
- first character is the same in several combinations and serves as a
- prefix key
- table
- item C-c a x
- as a global search for agenda entries plannedemph{Planned} means
- here that these entries have some planning information attached to them, like
- a time-stamp, a scheduled or a deadline string. See
- item C-c a y
- as a global search for agenda entries planned this week/day, but only those
- with an hour specification like
- item C-c a w
- as a global search for TODO entries with
- item C-c a W
- as the same search, but only in the current buffer and displaying the
- results as a sparse tree
- samp{:boss:} but not
- item C-c a v
- as the same search as
- item C-c a U
- as the same search as
- item C-c a f
- to create a sparse tree (again: current buffer only) with all entries
- containing the word
- item C-c a h
- as a prefix command for a HOME tags search where you have to press an
- additional key (kbd{p} or
- end table
- Note that the
- node Block agenda
- cindex block agenda
- emph{several} commands, each of which creates a block in
- the agenda buffer. The available commands include
- kbd{C-c a a}),
- kbd{C-c a t}), and the
- matching commands discussed above: code{tags}, and
- lisp
- end group
- noindent
- This will define
- samp{home}, and also all lines tagged with
- kbd{C-c a o} provides a similar view for office tasks.
- subsection Setting options for custom commands
- vindex org-agenda-custom-commands
- Org mode contains a number of variables regulating agenda construction
- and display. The global variables define the behavior for all agenda
- commands, including the custom commands. However, if you want to change
- some settings just for a single custom view, you can do so. Setting
- options requires inserting a list of variable names and values at the
- right spot in
- lisp
- end group
- noindent
- Now the
- samp{ Mixed: }
- instead of giving the category of the entry. The sparse tags tree of
- kbd{C-c a N} will do a text search limited
- to only a single file.
- code{org-agenda-custom-commands} has two separate spots for setting
- options. You can add options that should be valid for just a single
- command in the set, and options that should be valid for all commands in
- the set. The former are just added to the command entry; the latter
- must come after the list of command entries. Going back to the block
- agenda example (
- kbd{C-c a h} commands to
- code{priority-up}. This would look like this:
- group
- (setq org-agenda-custom-commands
- '(("h" "Agenda and Home-related tasks"
- ((agenda)
- (tags-todo "home")
- (tags "garden"
- ((org-agenda-sorting-strategy '(priority-up)))))
- ((org-agenda-sorting-strategy '(priority-down))))
- ("o" "Agenda and Office-related tasks"
- ((agenda)
- (tags-todo "work")
- (tags "office")))))
- end lisp
- As you see, the values and parentheses setting is a little complex.
- When in doubt, use the customize interface to set this variable---it
- fully supports its structure. Just one caveat: when setting options in
- this interface, the
- vindex org-agenda-custom-commands-contexts
- To control whether an agenda command should be accessible from a specific
- context, you can customize
- code{"o"} displaying a view
- that you only need when reading emails. Then you would configure this option
- like this:
- end lisp
- You can also tell that the command key
- code{"r"}. In that case, add this command key like this:
- end lisp
- See the docstring of the variable for more information.
- section Exporting agenda views
- footnote{You need to install Hrvoje Niksic's
- footnote{To create PDF output, the
- ghostscript
- table
- orgcmd{C-x C-w,org-agenda-write}
- cindex agenda views, exporting
- file{.html} or
- file{.ps}), iCalendar (extension
- code{org-agenda-exporter-settings} to set options for
- file{htmlize} to be used during export, for example
- vindex htmlize-output-type
- vindex ps-landscape-mode
- end lisp
- footnote{If you want to store standard views like the weekly agenda
- or the global TODO list as well, you need to define custom commands for
- them in order to be able to specify file names.}. Here is an example
- that first defines custom commands for the agenda and the global
- TODO list, together with a number of files to which to export them.
- Then we define two block agenda commands and specify file names for them
- as well. File names can be relative to the current working directory,
- or absolute.
- group
- (setq org-agenda-custom-commands
- '(("X" agenda "" nil ("agenda.html" "agenda.ps"))
- ("Y" alltodo "" nil ("todo.html" "todo.txt" "todo.ps"))
- ("h" "Agenda and Home-related tasks"
- ((agenda "")
- (tags-todo "home")
- (tags "garden"))
- nil
- ("~/views/home.html"))
- ("o" "Agenda and Office-related tasks"
- ((agenda)
- (tags-todo "work")
- (tags "office"))
- nil
- ("~/views/office.ps" "~/calendars/office.ics"))))
- end lisp
- The extension of the file name determines the type of export. If it is
- file{htmlize.el} package to convert
- the buffer to HTML and save it to this file name. If the extension is
- code{ps-print-buffer-with-faces} is used to produce
- Postscript output. If the extension is
- emph{not} created when you use one of those
- commands interactively because this might use too much overhead.
- Instead, there is a special command to produce
- table
- orgcmd{C-c a e,org-store-agenda-views}
- Export all agenda views that have export file names associated with
- them.
- lisp
- (setq org-agenda-custom-commands
- '(("X" agenda ""
- ((ps-number-of-columns 2)
- (ps-landscape-mode t)
- (org-agenda-prefix-format " [ ] ")
- (org-agenda-with-colors nil)
- (org-agenda-remove-tags t))
- ("theagenda.ps"))))
- noindent
- This command sets two options for the Postscript exporter, to make it
- print in two columns in landscape format---the resulting page can be cut
- in two and then used in a paper agenda. The remaining settings modify
- the agenda prefix to omit category and scheduling information, and
- instead include a checkbox to check off items. We also remove the tags
- to make the lines compact, and we don't want to use colors for the
- black-and-white printer. Settings specified in
- code{org-agenda-custom-commands} take precedence.
- example
- emacs -eval (org-batch-store-agenda-views) -kill
- noindent
- or, if you need to modify some parameters
- example
- emacs -eval '(org-batch-store-agenda-views \
- org-agenda-span (quote month) \
- org-agenda-start-day "2007-11-01" \
- org-agenda-include-diary nil \
- org-agenda-files (quote ("~/org/project.org")))' \
- -kill
- noindent
- which will create the agenda views restricted to the file
- ref{Extracting agenda information}, for
- more information.
- section Using column view in the agenda
- cindex agenda, column view
- Column view (
- table
- orgcmd{C-c C-x C-c,org-agenda-columns}
- Turn on column view in the agenda.
- enumerate
- vindex org-columns-default-format
- code{COLUMNS} format to use. Since the
- entries in the agenda are collected from different files, and different files
- may have different
- code{org-agenda-overriding-columns-format}
- is currently set, and if so, takes the format from there. Otherwise it takes
- the format associated with the first item in the agenda, or, if that item
- does not have a specific format---defined in a property, or in its file---it
- uses
- item
- pxref{Column attributes}),
- turning on column view in the agenda will visit all relevant agenda files and
- make sure that the computations of this property are up to date. This is
- also true for the special
- emph{twice}---for
- example as scheduled and as a deadline---and it may show two entries from the
- same hierarchy---for example a emph{child}. In these
- cases, the summation in the agenda will lead to incorrect results because
- some values will count double.
- code{CLOCKSUM}, that is always
- the entire clocked time for this item. So even in the daily/weekly agenda,
- the clocksum listed in column view may originate from times outside the
- current view. This has the advantage that you can compare these values with
- a column listing the planned total effort for a task---one of the major
- applications for column view in the agenda. If you want information about
- clocked time in the displayed period use clock table mode (press
- item
- code{CLOCKSUM_T}, that is
- always today's clocked time for this item. So even in the weekly agenda, the
- clocksum listed in column view only originates from today. This lets you
- compare the time you spent on a task for today, with the time already
- spent ---via
- end enumerate
- chapter Markup for rich export
- When exporting Org mode documents, the exporter tries to reflect the
- structure of the document as accurately as possible in the back-end. Since
- export targets like HTML and
- menu
- * Paragraphs:: The basic unit of text
- * Emphasis and monospace:: Bold, italic, etc.
- * Horizontal rules:: Make a line
- * Images and tables:: Images, tables and caption mechanism
- * Literal examples:: Source code examples with special formatting
- * Special symbols:: Greek letters and other symbols
- * Subscripts and superscripts:: Simple syntax for raising/lowering text
- * Embedded
- end menu
- section Paragraphs, line breaks, and quoting
- samp{\\} at the end of a line.
- To preserve the line breaks, indentation and blank lines in a region, but
- otherwise use normal formatting, you can use this construct, which can also
- be used to format poetry.
- cindex verse blocks
- end example
- When quoting a passage from another document, it is customary to format this
- as a paragraph that is indented on both the left and the right margin. You
- can include quotations in Org mode documents like this:
- cindex quote blocks
- end example
- If you would like to center some text, do it like this:
- cindex center blocks
- end example
- section Emphasis and monospace
- cindex bold text, markup rules
- cindex verbatim text, markup rules
- cindex strike-through text, markup rules
- vindex org-emphasis-regexp-components
- b{*bold*}, code{=verbatim=}
- and samp{+strike-through+}. Text
- in the code and verbatim string is not processed for Org mode specific
- syntax, it is exported verbatim.
- To turn off fontification for marked up text, you can set
- code{nil}. To narrow down the list of
- available markup syntax, you can customize
- code{org-emphasis-regexp-components}. Beware that changing one of
- the above variables will no take effect until you reload Org, for which you
- may need to restart Emacs.
- section Horizontal rules
- node Images and tables
- cindex tables, markup rules
- cindex #+NAME
- Both the native Org mode tables (
- file{table.el} package will be exported properly. For Org mode tables,
- the lines before the first horizontal separator line will become table header
- lines. You can use the following lines somewhere before the table to assign
- a caption and a label for cross references, and in the text you can refer to
- the object with pxref{Internal links}):
- end example
- Optionally, the caption can take the form:
- end example
- code{[[./img/a.jpg]]}. If you wish to
- define a caption for the image and maybe a label for internal cross
- references, make sure that the link is on a line by itself and precede it
- with code{#+NAME} as follows:
- end example
- xref{Handling links,the
- discussion of image links}.
- Even though images and tables are prominent examples of captioned structures,
- the same caption mechanism can apply to many others (e.g.,
- node Literal examples
- cindex literal examples, markup rules
- cindex #+BEGIN_EXAMPLE
- end example
- Note that such blocks may be
- pxref{Plain
- lists}). For simplicity when using small examples, you can also start the
- example lines with a colon followed by a space. There may also be additional
- whitespace before the colon:
- end example
- vindex org-latex-listings
- If the example is source code from a programming language, or any other text
- that can be marked up by font-lock in Emacs, you can ask for the example to
- look like the fontified Emacs buffer
- file{htmlize.el} package,
- which is distributed with Org). Fontified code chunks in
- url{https://www.ctan.org/tex-archive/macros/latex/contrib/listings/?lang=en, listings,}
- or the
- code{org-latex-packages-alist}. Refer to
- samp{src} block, where you also need
- to specify the name of the major mode that should be used to fontify the
- examplesamp{src} blocks may also be evaluated either
- interactively or on export.
- ref{Easy templates} for
- shortcuts to easily insert code blocks.
- example
- #+BEGIN_SRC emacs-lisp
- (defun org-xor (a b)
- "Exclusive or."
- (if a (not b) b))
- #+END_SRC
- code{example} and in code{-n}
- switch to the end of the
- code{-n} takes an optional numeric argument specifying the
- starting line number of the block. If you use a
- code{+n} can also take a numeric argument. The value of the
- argument will be added to the last line of the previous block to determine
- the starting line number.
- end example
- In literal examples, Org will interpret strings like
- code{[[(name)]]}
- (i.e., the reference name enclosed in single parenthesis). In HTML, hovering
- the mouse over such a link will remote-highlight the corresponding code line,
- which is kind of cool.
- You can also add a i{removes} the labels from the
- source codecode{-k} to i{keep} the
- labels in the source code while using line numbers for the links, which might
- be useful to explain those in an Org mode example code.}. With the
- example
- #+BEGIN_SRC emacs-lisp -n -r
- (save-excursion (ref:sc)
- (goto-char (point-min))) (ref:jump)
- #+END_SRC
- In line [[(sc)]] we remember the current position. [[(jump)][Line (jump)]]
- jumps to point-min.
- cindex indentation, in source blocks
- Finally, you can use
- pxref{Editing source code}).
- code{-l} switch to change the format, for example
- code{org-coderef-label-format}.
- HTML export also allows examples to be published as text areas (
- code{#+BEGIN_...} and
- pxref{Easy templates}).
- kbd
- item C-c '
- Edit the source code example at point in its native mode. This works by
- switching to a temporary buffer with the source code. You need to exit by
- pressing footnote{Upon exit, lines starting with
- samp{,*}, samp{,#+} will get a comma prepended, to keep them
- from being interpreted by Org as outline nodes or special syntax. These
- commas will be stripped for editing with
- code{artist-mode}
- code{org-edit-fixed-width-region-mode}.}
- to allow creating ASCII drawings easily. Using this command in an empty line
- will create a new fixed-width region.
- item C-c l
- Calling
- kbd{C-c '} will prompt for a label. Make sure
- that it is unique in the current buffer, and insert it with the proper
- formatting like
- samp{(label)}, for retrieval with
- end table
- section Special symbols
- cindex math symbols
- cindex HTML entities
- LaTeX{} entities
- You can use
- samp{\alpha} to indicate the Greek letter, or
- samp{\} and maybe a few letters, and press key{TAB}} to see possible
- completions. If you need such a symbol inside a word, terminate it with
- a pair of curly brackets. For example
- {
- end example
- vindex org-entities-user
- A large number of entities is provided, with names taken from both HTML and
- code{org-entities-help}. It is also possible to
- provide your own special symbols in the variable
- code{\alpha} are exported as
- code{\(\alpha\)} in the
- code{\nbsp} becomes code{~} in
- cindex escaping characters
- Entities may also be used as a may to escape markup in an Org document, e.g.,
- {samp{_not underlined_}.
- footnote{You can turn this on by default by setting the
- variable
- code{#+STARTUP} option
- table
- cindex
- kindex C-c C-x \
- end table
- cindex dash, special symbol
- footnote{This behaviour can be disabled with
- pxref{Export settings}).} the following commonly used character
- combinations: samp{--} and
- samp{...} becomes a compact set of dots.
- section Subscripts and superscripts
- cindex superscript
- samp{_} are used to indicate super- and subscripts. To
- increase the readability of ASCII text, it is not necessary---but OK---to
- surround multi-character sub- and superscripts with curly braces. Those are,
- however, mandatory, when more than one word is involved. For example
- {Alpha Centauri{sun
- end example
- code{org-use-sub-superscripts} to change
- this convention. For example, when setting this variable to {
- samp{a_b} will not be interpreted as a subscript, but {b
- table
- kindex C-c C-x \
- end table
- LaTeX{}
- LaTeX{}
- TeX{} interpretation
- LaTeX{} interpretation
- Plain ASCII is normally sufficient for almost all note taking. Exceptions
- include scientific notes, which often require mathematical symbols and the
- occasional formula. footnote{
- TeX{} system. Many of the features described here as
- ``TeX{}, but for simplicity I am blurring this
- distinction.} is widely used to typeset scientific documents. Org mode
- supports embedding
- LaTeX{} source code, and because it can be
- readily processed to produce pretty output for a number of export back-ends.
- LaTeX{} fragments:: Complex formulas made easy
- * Previewing
- end menu
- LaTeX{} fragments
- LaTeX{} fragments
- LaTeX{} fragments
- LaTeX{} math fragments, and it supports ways to process
- these for several export back-ends. When exporting to
- uref{http://www.mathjax.org, MathJax} (
- pxref{Previewing
- LaTeX{} fragments don't need any special marking at all. The following
- snippets will be identified as
- itemize
- item
- Environments of any kind
- file{dvipng} program, file{imagemagick} suite is
- used to create images, any
- code{\begin} statement appears on a new line, at the
- beginning of the line or after whitespaces only.
- LaTeX{} math delimiters. To avoid conflicts with
- currency specifications, single
- samp{$} characters with no whitespace in between,
- and if the closing
- samp{\(...\)} as inline math delimiters.
- noindent For example:
- {equation
- {b
- {equation
- {2{2
- end example
- c
- c
- c If you need any of the delimiter ASCII sequences for other purposes, you
- code{org-format-latex-options} to deselect the
- LaTeX{} converter.
- LaTeX{} processing can be configured with the variable
- code{t} which means
- MathJax for HTML, and no processing for ASCII and
- example
- #+OPTIONS: tex:t
- r{Do not process
- r{Verbatim export, for jsMath or so}
- node Previewing
- subsection Previewing
- cindex
- vindex org-preview-latex-default-process
- If you have a working file{dvipng},
- file{convert} installed
- url{http://sourceforge.net/projects/dvipng/},
- file{imagemagick} suite. Choose the converter by setting the
- variable LaTeX{}
- fragments can be processed to produce images of the typeset expressions to be
- used for inclusion while exporting to HTML (see LaTeX{} fragments}),
- or for inline previewing within Org mode.
- vindex org-format-latex-header
- You can customize the variables
- code{org-format-latex-header} to influence some aspects of the preview. In
- particular, the code{:html-scale})
- property of the former can be used to adjust the size of the preview images.
- kbd
- item C-c C-x C-l
- Produce a preview image of the
- kindex C-c C-c
- end table
- LaTeX{} fragments in a file with
- end example
- To disable it, simply use
- end example
- subsection Using CD
- cindex CD
- LaTeX{} mode is a minor mode that is normally used in combination with a
- major TeX{} in order to speed-up insertion of
- environments and math templates. Inside Org mode, you can make use of
- some of the features of CD
- file{cdlatex.el} and
- TeX{}) from
- LaTeX{} mode itself under Org mode, but use the light
- version
- kbd{M-x org-cdlatex-mode RET}, or for all
- Org files with
- end lisp
- When this mode is enabled, the following features are present (for more
- details see the documentation of CD
- itemize
- kindex C-c
- item
- Environment templates can be inserted with {}.
- kindex
- key{TAB} key will do template expansion if the cursor is inside a
- footnote{Org mode has a method to test if the cursor is
- inside such a fragment, see the documentation of the function
- key{TAB} will
- expand code{\frac}}} and position the cursor
- correctly inside the first brace. Another
- key{TAB} will expand
- environment abbreviations at the beginning of a line. For example, if
- you write key{TAB},
- this abbreviation will be expanded to an
- kbd{M-x cdlatex-command-help RET}.
- kindex _
- vindex cdlatex-simplify-sub-super-scripts
- Pressing kbd{^} inside a
- key{TAB} to move
- out of the braces, and if the braces surround only a single character or
- macro, they are removed again (depending on the variable
- item
- kbd{`} followed by a character inserts math
- macros, also outside
- item
- kbd{'} followed by another character modifies
- the symbol before point with an accent or a font. If you wait more than
- 1.5 seconds after the apostrophe, a help window will pop up. Character
- modification will work only inside
- end itemize
- chapter Exporting
- pxref{Document structure}) and
- markup (
- cindex export back-end
- Libraries responsible for such translation are called back-ends. Org ships
- with the following ones
- item ascii (ASCII format)
- LaTeX{} Beamer format)
- item icalendar (iCalendar format)
- LaTeX{} format)
- item odt (OpenDocument Text format)
- item texinfo (Texinfo format)
- end itemize
- code{contrib/} directory
- (footnote{These
- libraries traditionnaly appear as file{ox-koma-letter}
- for
- vindex org-export-backends
- By default, the following five back-ends are loaded:
- code{html}, code{latex} and
- code{org-export-backends}, or
- by requiring the associated library, e.g.,
- end lisp
- Eventually, you can these facilities can be used with
- code{orgstruct-mode} in foreign buffers so you can author tables and lists
- in Org syntax and convert them in place to the target language.
- LaTeX{} export:: Exporting to
- end menu
- section The export dispatcher
- cindex Export, dispatcher
- The main entry point for export related tasks is the dispatcher, a
- hierarchical menu from which it is possible to select an export format and
- toggle export options
- code{org-export-dispatch-use-expert-ui} to a
- non-
- key{?}.}.
- asis
- kbd{C-u}
- prefix argument, repeat the last export command on the current buffer while
- preserving toggled options. If the current buffer hasn't changed and subtree
- export was activated, the command will affect that same subtree.
- pxref{Export settings}) can be toggled from the
- export dispatcher with the following key combinations:
- kbd
- vindex org-export-async-init-file
- Toggle asynchronous export. Asynchronous export uses an external Emacs
- process that is configured with a specified initialization file.
- While exporting asynchronously, the output is not displayed, but stored in
- a place called ``the export stack''. This stack can be displayed by calling
- the dispatcher with a double kbd{&} key
- from the dispatcher menu.
- code{org-export-in-background}.
- code{<head>...</head>}
- in the HTML back-end), a body-only export will not include this header.
- vindex org-export-initial-scope
- Toggle subtree export. The top heading becomes the document title.
- You can change the default state of this option by setting
- item C-v
- Toggle visible-only export. Only export the text that is currently
- visible, i.e., not hidden by outline visibility in the buffer.
- node Export settings
- cindex Export, settings
- pxref{In-buffer
- settings}), by setting individual keywords, or by specifying them in a
- compact form with the
- pxref{Properties and columns}). Options set at a specific level
- override options set at a more general level.
- samp{#+SETUPFILE: filename} syntax.
- Option keyword sets tailored to a particular back-end can be inserted from
- the export dispatcher (code{Insert
- template} command by pressing
- code{#+} and then
- to use
- table
- item AUTHOR
- vindex user-full-name
- The document author (
- item CREATOR
- vindex org-export-creator-string
- Entity responsible for output generation (
- item DATE
- vindex org-export-date-timestamp-format
- A date or a time-stamp
- code{org-export-date-timestamp-format} defines how this time-stamp will be
- exported.}.
- cindex #+EMAIL
- code{user-mail-address}).
- cindex #+LANGUAGE
- code{org-export-default-language}). E.g.,
- emph{File} (english) into
- item SELECT_TAGS
- vindex org-export-select-tags
- The tags that select a tree for export (
- code{:export:}. Within a subtree tagged with
- code{:noexport:} (see
- below). When headlines are selectively exported with
- item EXCLUDE_TAGS
- vindex org-export-exclude-tags
- The tags that exclude a tree from export (
- code{:noexport:}. Entries with the
- code{:export:} tag. Code blocks contained in excluded subtrees will still
- be executed during export even though the subtree is not exported.
- cindex #+TITLE
- item EXPORT_FILE_NAME
- end table
- The footnote{If you want to configure
- many options this way, you can use several
- table
- item ':
- code{org-export-with-smart-quotes}). When activated,
- pairs of double quotes become primary quotes according to the language used.
- Inside, pairs of single quotes become secondary quotes. Other single quotes
- are treated as apostrophes.
- code{org-export-with-emphasize}).
- vindex org-export-with-special-strings
- Toggle conversion of special strings
- (
- item ::
- code{org-export-with-fixed-width}).
- vindex org-export-with-timestamps
- Toggle inclusion of any time/date active/inactive stamps
- (
- item \n:
- code{org-export-preserve-breaks}).
- vindex org-export-with-sub-superscripts
- Toggle {
- samp{a_}} will be interpreted, but the simple
- code{org-export-with-sub-superscripts}).
- vindex org-export-with-archived-trees
- Configure export of archived trees. Can be set to
- code{org-export-with-archived-trees}).
- vindex org-export-with-author
- Toggle inclusion of author name into exported file
- (
- item broken-links:
- code{mark}, signal the problem clearly in the output
- (
- item c:
- code{org-export-with-clocks}).
- vindex org-export-with-creator
- Toggle inclusion of creator info into exported file
- (
- item d:
- code{org-export-with-drawers}).
- vindex org-export-with-date
- Toggle inclusion of a date into exported file (
- item e:
- code{org-export-with-entities}).
- vindex org-export-with-email
- Toggle inclusion of the author's e-mail into exported file
- (
- item f:
- code{org-export-with-footnotes}).
- vindex org-export-headline-levels
- Set the number of headline levels for export
- (
- item inline:
- code{org-export-with-inlinetasks}).
- vindex org-export-with-section-numbers
- code{org-export-with-section-numbers}). It can also
- be set to a number
- code{UNNUMBERED} property to
- non-
- item p:
- code{org-export-with-planning}).
- ``Planning information'' is the line containing the
- code{DEADLINE:} or the
- item pri:
- code{org-export-with-priority}).
- vindex org-export-with-properties
- Toggle inclusion of property drawers, or list properties to include
- (
- item stat:
- code{org-export-with-statistics-cookies}).
- vindex org-export-with-tags
- Toggle inclusion of tags, may also be
- code{org-export-with-tags}).
- vindex org-export-with-tasks
- Toggle inclusion of tasks (TODO items), can be
- code{todo} to remove DONE tasks, or a list of keywords to keep
- (
- item tex:
- LaTeX{} fragments and environments. It may be set to
- code{org-export-with-latex}).
- vindex org-export-time-stamp-file
- Toggle inclusion of the creation time into exported file
- (
- item title:
- code{org-export-with-title}).
- vindex org-export-with-toc
- Toggle inclusion of the table of contents, or set the level limit
- (
- item todo:
- code{org-export-with-todo-keywords}).
- vindex org-export-with-tables
- Toggle inclusion of tables (
- end table
- When exporting only a subtree, each of the previous keywords
- samp{SETUPFILE}.} can be overridden locally by special node
- properties. These begin with
- samp{EXPORT_}.
- For example, samp{EXPORT_FILE_NAME} keywords become,
- respectively, samp{EXPORT_FILE_NAME} properties.
- vindex org-export-allow-bind-keywords
- If code{nil}, Emacs variables
- can become buffer-local during export by using the BIND keyword. Its syntax
- is
- node Table of contents
- cindex table of contents
- cindex list of listings
- vindex org-export-with-toc
- The table of contents is normally inserted directly before the first headline
- of the file. The depth of the table is by default the same as the number of
- headline levels, but you can choose a smaller number, or turn off the table
- of contents entirely, by configuring the variable
- example
- #+OPTIONS: toc:2
- r{no default TOC at all}
- code{org-export-with-toc} or
- code{#+TOC: headlines N} at the desired
- location(s).
- r{no default TOC}
- ...
- #+TOC: headlines 2
- end example
- Moreover, if you append
- footnote{For
- code{titletoc} package. Note that
- emph{before}
- code{org-latex-default-packages-alist}.}. In this case, any depth
- parameter becomes relative to the current level.
- r{insert local TOC, with direct children only}
- code{TOC} keyword can also generate a list of all tables (resp.
- example
- #+TOC: listings
- r{build a list of tables}
- cindex property, ALT_TITLE
- The headline's title usually determines its corresponding entry in a table of
- contents. However, it is possible to specify an alternative title by
- setting
- node Include files
- cindex include files, during export
- During export, you can include the content of another file. For example, to
- include your
- cindex #+INCLUDE
- end example
- samp{example},
- samp{src}), and, if the markup is either samp{src}, the
- language for formatting the contents.
- If markup is requested, the included content will be placed within an
- appropriate blocksamp{verse},
- samp{center}), but this places severe restrictions on the type
- of content that is permissible}. No changes to the included content are made
- and it is the responsibility of the user to ensure that the result is valid
- Org syntax. For markup samp{src}, which is requesting a
- literal example, the content will be code-escaped before inclusion.
- If no markup is requested, the text will be assumed to be in Org mode format
- and will be processed normally. However, footnote labels (
- code{INCLUDE} keyword. In particular, headlines within the file will become
- children of the current section. That behavior can be changed by providing
- an additional keyword parameter,
- example
- #+INCLUDE: "~/my-book/chapter2.org" :minlevel 1
- code{:lines} keyword parameter. The line at the upper end of the range
- will not be included. The start and/or the end of the range may be omitted
- to use the obvious defaults.
- r{Include lines 5 to 10, 10 excluded}
- #+INCLUDE: "~/.emacs" :lines "-10"
- r{Include lines from 10 to EOF}
- code{org-link-search}
- code{org-link-search-must-match-exact-headline} is locally bound to non-
- code{org-link-search} only matches headlines and named elements.}
- (code{:only-contents} property is non-
- code{:lines} keyword
- operates locally with respect to the requested element. Some examples:
- r{Include the body of the heading with the custom id
- r{Include named element.}
- #+INCLUDE: "./paper.org::*conclusion" :lines 1-20
- samp{conclusion}.}
- table
- kindex C-c '
- end table
- section Macro replacement
- cindex #+MACRO
- code{org-export-global-macros}, or document-wise with the following syntax:
- end example
- code{{}}}
- code{#+CAPTION}, code{#+AUTHOR},
- table
- item {}}
- {{author}
- itemx {}}
- cindex author, macro
- item {}}
- {{date(}}
- code{#+DATE} keyword.
- code{{}}} macro that will be used only if
- var{FORMAT} should be a format string
- understood by
- item {var{FORMAT})}
- itemx {var{FORMAT}, }}
- cindex modification time, macro
- These macros refer to the date and time when the document is exported and to
- the modification date and time, respectively.
- code{format-time-string}. If the second
- argument to the code{nil}, Org
- retrieves the information from the version control system, using
- item {}}
- item {var{PROPERTY-NAME})}
- itemx {var{PROPERTY-NAME},}}
- var{PROPERTY-NAME} in current
- entry. If pxref{Search options}) refers to a remote
- entry, it will be used instead.
- code{org-hide-macro-markers} non-
- node Comment lines
- cindex exporting, not
- samp{#} and a whitespace are treated as comments and, as such, are not
- exported.
- samp{#+BEGIN_COMMENT}
- ...
- cindex comment trees
- Finally, a
- footnote{For a less drastic behavior, consider using a select tag
- (
- table
- kindex C-c ;
- samp{COMMENT} keyword at the beginning of an entry.
- node ASCII/Latin-1/UTF-8 export
- cindex ASCII export
- cindex UTF-8 export
- ASCII export produces a simple and very readable version of an Org mode
- file, containing only plain ASCII
- vindex org-ascii-text-width
- Upon exporting, text is filled and justified, when appropriate, according the
- text width set in
- vindex org-ascii-links-to-notes
- Links are exported in a footnote-like style, with the descriptive part in the
- text and the link in a note before the next heading. See the variable
- subheading ASCII export commands
- kbd
- file{myfile.org}, the ASCII file
- will be
- file{myfile.txt}, the resulting file becomes
- orgcmd{C-c C-e t A/L/U,org-ascii-export-as-ascii}
- Export to a temporary buffer. Do not create a file.
- subheading ASCII specific export settings
- ASCII export introduces a single of keywords, similar to the general options
- settings described in
- table
- item SUBTITLE
- end table
- pxref{Export
- settings}).
- code{ASCII} back-end
- with the following constructs:
- cindex #+BEGIN_EXPORT ascii
- end example
- cindex #+ATTR_ASCII
- code{ASCII} back-end only understands one attribute,
- code{ATTR_ASCII} line, directly preceding the rule.
- end example
- cindex special blocks, in ASCII export
- cindex #+BEGIN_JUSTIFYRIGHT
- In addition to pxref{Paragraphs}), it is
- possible to justify contents to the left or the right of the page with the
- following dedicated blocks.
- end example
- section Beamer export
- LaTeX{} class
- LaTeX{} and PDF processing. Org mode has special
- support for turning an Org mode file or tree into a Beamer presentation.
- end menu
- subsection Beamer export commands
- kbd
- LaTeX{} file. For an Org file LaTeX{}
- file will be
- orgcmd{C-c C-e l B,org-beamer-export-as-latex}
- Export to a temporary buffer. Do not create a file.
- LaTeX{} and then process to PDF.
- LaTeX{} and then process to PDF, then open the resulting PDF file.
- node Beamer specific export settings
- ref{Export settings}.
- samp
- cindex #+BEAMER_THEME
- code{org-beamer-theme}). Options can be specified via
- brackets, for example:
- end smallexample
- cindex #+BEAMER_FONT_THEME
- The Beamer font theme.
- cindex #+BEAMER_INNER_THEME
- The Beamer inner theme.
- cindex #+BEAMER_OUTER_THEME
- The Beamer outer theme.
- cindex #+BEAMER_HEADER
- Arbitrary lines inserted into the preamble, just before the
- item DESCRIPTION
- samp{hyperref}. Document metadata can be configured via
- code{org-latex-title-command}. You can use several
- item KEYWORDS
- samp{hyperref}. Document metadata can be
- configured via
- code{org-latex-title-command}. You
- can use several
- item SUBTITLE
- vindex org-beamer-subtitle-format
- The document subtitle. This is typeset using the format string
- code{org-latex-hyperref-template} or typeset as part of the front
- matter via
- end table
- subsection Sectioning, Frames and Blocks in Beamer
- Any tree with not-too-deep level nesting should in principle be exportable as
- a Beamer presentation. Headlines fall into three categories: sectioning
- elements, frames and blocks.
- minus
- vindex org-beamer-frame-level
- Headlines become frames when their level is equal to
- code{H} value in an
- pxref{Export settings}).
- code{BEAMER_ENV} property
- set to either to code{fullframe}, its level overrides the
- variable. A
- item
- vindex org-beamer-environments-extra
- All frame's children become
- code{BEAMER_ENV} property
- code{:B_environment:} tag to
- make this visible. This tag has no semantic meaning, it is only a visual
- aid.} to an appropriate value (see
- code{org-beamer-environments-extra} for adding more).
- cindex property, BEAMER_REF
- As a special case, if the
- code{appendix}, code{noteNH} or
- code{\againframe} command. In the latter case, a
- code{ignoreheading} environment will have its
- contents only inserted in the output. This special value is useful to have
- data between frames, or to properly close a
- end itemize
- cindex property, BEAMER_OPT
- Headlines also support code{BEAMER_OPT} properties.
- The former is translated as an overlay/action specification, or a default
- overlay specification when enclosed within square brackets. The latter
- specifies optionscode{fragile} option is added automatically
- if it contains code that requires a verbatim environment, though.} for the
- current frame or block. The export back-end will automatically wrap
- properties within angular or square brackets when appropriate.
- code{BEAMER_COL} property. Its value should
- be a decimal number representing the width of the column as a fraction of the
- total text width. If the headline has no specific environment, its title
- will be ignored and its contents will fill the column created. Otherwise,
- the block will fill the whole column and the title will be preserved. Two
- contiguous headlines with a non-code{BEAMER_COL} value share the same
- LaTeX{} environment. It will end before the next headline
- without such a property. This environment is generated automatically.
- Although, it can also be explicitly created, with a special
- code{BEAMER_ENV} property (if it needs to be set up with some
- specific options, for example).
- subsection Beamer specific syntax
- The Beamer back-end is an extension of the
- LaTeX{} specific syntax (e.g., samp{#+ATTR_LATEX:}) is
- recognized. See LaTeX{} export} for more information.
- Table of contents generated from code{OPTION} keyword are
- wrapped within a code{TOC}
- keyword (
- example
- #+TOC: headlines [currentsection]
- cindex #+BEAMER
- example
- #+BEAMER: \pause
- #+BEGIN_EXPORT beamer
- All lines in this block will appear only when using this back-end.
- #+END_BEAMER
- Text beamer:some code within a paragraph.
- code{bold}, code{link},
- code{target}, when the value is enclosed within
- angular brackets and put at the beginning the object.
- end example
- code{:environment},
- code{:options} attributes through
- example
- #+ATTR_BEAMER: :overlay +-
- - item 1
- - item 2
- node Editing support
- code{org-beamer-mode} for faster
- editing with:
- end example
- kbd
- code{org-beamer-mode}, this key offers fast selection of a Beamer
- environment or the
- end table
- subsection A Beamer example
- Here is a simple example Org document that is intended for Beamer export.
- end example
- section HTML export
- emph{markdown}
- language, but with additional support for tables.
- end menu
- subsection HTML export commands
- kbd
- file{myfile.org},
- the HTML file will be
- kbd{C-c C-e h o}
- Export as an HTML file and immediately open it with a browser.
- end table
- c
- c In the exported version, the first 3 outline levels will become headlines,
- c itemized lists. If you want that transition to occur at a different level,
- c
- c
- c
- c
- c creates two levels of headings and does the rest as items.
- subsection HTML Specific export settings
- HTML export introduces a number of keywords, similar to the general options
- settings described in
- table
- item DESCRIPTION
- item HTML_DOCTYPE
- vindex org-html-doctype
- The document type, e.g. HTML5, (
- item HTML_CONTAINER
- vindex org-html-container-element
- The container, e.g.
- code{org-html-container-element}).
- cindex #+HTML_LINK_HOME
- code{org-html-link-home}).
- cindex #+HTML_LINK_UP
- code{org-html-link-up}).
- cindex #+HTML_MATHJAX
- code{org-html-mathjax-options}). MathJax is used
- to typeset ref{Math formatting in HTML
- export} contains an example.
- cindex #+HTML_HEAD
- code{org-html-head}).
- cindex #+HTML_HEAD_EXTRA
- code{org-html-head-extra}).
- cindex #+KEYWORDS (HTML)
- The keywords defining the contents of the document. This description is
- inserted as a HTML meta tag. You can use several such keywords if the list
- is long.
- cindex #+LATEX_HEADER (HTML)
- Arbitrary lines appended to the preamble used when transcoding
- ref{Math formatting in HTML export} for details.
- cindex #+SUBTILE (HTML)
- The document subtitle. The formatting depends on whether HTML5 in used
- and on the
- end table
- These keywords are treated in details in the following sections.
- subsection HTML doctypes
- Org can export to various (X)HTML flavors.
- vindex org-html-doctype-alist
- Setting the variable
- itemize
- item
- ``html4-transitional''
- item
- ``xhtml-strict''
- item
- ``xhtml-frameset''
- item
- ``html5''
- end itemize
- code{org-html-doctype-alist} for details. The default is
- ``xhtml-strict''.
- cindex HTML5, export new elements
- HTML5 introduces several new element types. By default, Org will not make
- use of these element types, but you can set
- code{nil} (or set code{OPTIONS} line), to
- enable a few new block-level elements. These are created using arbitrary
- #+BEGIN and #+END blocks. For instance:
- end example
- Will export to:
- end example
- While this:
- end example
- Becomes:
- end example
- code{org-html-html5-elements}) will revert to the usual behavior, i.e.,
- samp{<div class="lederhosen">}.
- Headlines cannot appear within special blocks. To wrap a headline and its
- contents in e.g., samp{<article>} tags, set the
- node HTML preamble and postamble
- vindex org-html-preamble
- vindex org-html-preamble-format
- vindex org-html-validation-link
- vindex org-export-time-stamp-file
- The HTML exporter lets you define a preamble and a postamble.
- The default value for code{t}, which means
- that the preamble is inserted depending on the relevant format string in
- code{org-html-preamble} to a string will override the default format
- string. If you set it to a function, it will insert the output of the
- function, which must be a string. Setting to
- code{org-html-postamble} is
- code{org-html-postamble} to
- code{org-html-postamble-format}. Setting it
- to
- node Quoting HTML tags
- samp{<} and samp{<} and
- samp{html:} as in
- cindex #+HTML
- example
- #+HTML: Literal HTML code for export
- noindent or
- example
- #+BEGIN_EXPORT html
- All lines between these markers are exported literally
- #+END_EXPORT
- node Links in HTML export
- cindex links, in HTML export
- cindex external links, in HTML export
- pxref{Internal links}) will continue to work in HTML
- pxref{Radio
- targets}). Links to external files will still work if the target file is on
- the same
- file{.org} files will be translated into HTML links under the assumption
- that an HTML version also exists of the linked file, at the same relative
- path; setting code{nil} disables
- this translation.
- ref{Publishing links}.
- If you want to specify attributes for links, you can do so using a special
- code{<a>} or code{title}
- and
- cindex #+ATTR_HTML
- end example
- subsection Tables in HTML export
- vindex org-html-table-default-attributes
- Org mode tables are exported to HTML using the table attributes defined in
- cindex #+CAPTION
- example
- #+CAPTION: This is a table with lines around and between cells
- #+ATTR_HTML: :border 2 :rules all :frame border
- pxref{Column groups}).
- Below is a list of options for customizing tables HTML export.
- code
- item org-html-table-align-individual-fields
- Non-
- vindex org-html-table-caption-above
- code{nil}, place caption string at the beginning of the table.
- item org-html-table-data-tags
- The opening and ending tags for table data fields.
- item org-html-table-default-attributes
- Default attributes and values which will be used in table tags.
- item org-html-table-header-tags
- The opening and ending tags for table header fields.
- item org-html-table-row-tags
- The opening and ending tags for table rows.
- item org-html-table-use-header-tags-for-first-column
- Non-
- end table
- subsection Images in HTML export
- cindex inlining images in HTML
- footnote{But see the variable
- samp{[[file:myimg.jpg]]} will be inlined,
- while
- samp{the image} that points to the image. If the description part
- itself is a code{http:} URL pointing to an
- image, this image will be inlined and activated so that clicking on the
- image will activate the link. For example, to include a thumbnail that
- will link to a high resolution version of the image, you could use:
- end example
- If you need to add attributes to an inlined image, use a
- code{alt} and
- cindex #+CAPTION
- example
- #+CAPTION: A black cat stalking a spider
- #+ATTR_HTML: :alt cat/spider image :title Action! :align right
- [[./img/a.jpg]]
- noindent
- You could use
- node Math formatting in HTML export
- cindex MathJax
- cindex dvisvgm
- LaTeX{} math snippets (LaTeX{} fragments}) can be displayed in two
- different ways on HTML pages. The default is to use
- footnote{By default Org loads MathJax from
- code{org-html-mathjax-options}.}. Some MathJax display
- options can be configured via
- smallexample
- #+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler
- noindent See the docstring of
- code{org-html-mathjax-template}.
- If you prefer, you can also request that
- file{dvipng} program,
- file{imagemagick} suite is available on your system. You can still get
- this processing with
- end example
- end example
- or:
- end example
- subsection Text areas in HTML export
- code{:textarea} attribute at an
- code{src} block.
- You may also use code{:width} attributes to specify the
- height and width of the text area, which default to the number of lines in
- the example, and 80, respectively. For example
- end example
- subsection CSS support
- cindex HTML export, CSS
- vindex org-html-tag-class-prefix
- You can modify the CSS style definitions for the exported file. The HTML
- exporter assigns the following special CSS classes
- code{org-html-todo-kwd-class-prefix} and
- example
- p.author
- r{publishing date}
- p.creator
- r{document title}
- .subtitle
- r{TODO keywords, all not-done states}
- .done
- r{each TODO keyword also uses a class named after itself}
- .timestamp
- r{keyword associated with a timestamp, like SCHEDULED}
- .timestamp-wrapper
- r{tag in a headline}
- ._HOME
- r{target for links}
- .linenr
- r{for highlighting referenced code lines}
- div.outline-N
- r{extra div for text at outline level N}
- .section-number-N
- r{label like "Figure 1:"}
- .table-number
- r{label like "Listing 1:"}
- div.figure
- r{formatted source code}
- pre.example
- r{verse paragraph}
- div.footnotes
- r{footnote definition paragraph, containing a footnote}
- .footref
- r{footnote number in footnote definition (always <sup>)}
- .org-svg file{.svg} image}
- vindex org-html-style-default
- vindex org-html-head
- cindex #+HTML_INCLUDE_STYLE
- Each exported file contains a compact default style that defines these
- classes in a basic way
- code{org-html-style-default}, which you should not modify. To turn
- inclusion of these defaults off, customize
- code{html-style} to
- code{OPTIONS} line.}. You may overwrite these settings, or
- add to them by using the variables
- code{org-html-head-extra}. You can override the global values of these
- variables for each file by using these keywords:
- cindex #+HTML_HEAD_EXTRA
- end example
- code{<style>}
- code{:HTML_CONTAINER_CLASS:}
- property to assign a class to the tree. In order to specify CSS styles for a
- particular headline, you can use the id specified in a
- c FIXME: More about header and footer styles
- node JavaScript support
- cindex Rose, Sebastian
- Sebastian Rose has written a JavaScript program especially designed to
- enhance the web viewing experience of HTML files created with Org. This
- program allows you to view large files in two different ways. The first one
- is an
- kbd{n} and
- kbd{?} for an overview of the available keys). The second
- view type is a
- url{http://orgmode.org/org-info.js} and you can find
- the documentation for it at
- url{http://orgmode.org} and prefer to install a local
- copy on your own web server.
- All it then takes to use this program is adding a single line to the Org
- file:
- example
- #+INFOJS_OPT: view:info toc:nil
- noindent
- If this line is found, the HTML header will automatically contain the code
- needed to invoke the script. Using the line above, you can set the following
- viewing options:
- r{The path to the script. The default is to grab the script from}
- url{http://orgmode.org/org-info.js}, but you might want to have}
- samp{../scripts/org-info.js}.}
- view:
- r{Info-like interface with one section per page.}
- overview
- r{Folding interface, starting with all headlines visible.}
- showall
- r{Maximum headline level that will still become an independent}
-
- r{code{H} switch in
- r{If this is smaller than in
- r{info/folding section can still contain child headlines.}
- toc: emph{initially} be visible?}
- code{nil}, you can always get to the "toc" with
- r{The depth of the table of contents. The defaults are taken from}
- code{org-export-headline-levels} and
- r{Does the CSS of the page specify a fixed position for the "toc"?}
-
- r{Should there be short contents (children) in each section?}
- code{above} if the section should be above initial text.}
- mouse:
- r{samp{#cccccc}.}
- buttons: code{nil} (the}
-
- end example
- vindex org-html-infojs-options
- code{org-html-infojs-options}. If you always want to apply the script to your
- pages, configure the variable
- node
- section
- cindex
- cindex PDF export
- The LaTeX{} document of
- any standard or custom document classLaTeX{} exporter can be
- configured to support alternative
- code{org-latex-compiler}), build sequences (see
- code{org-latex-default-packages-alist} and
- LaTeX{} exporter is geared
- towards producing fully-linked PDF output.
- As in
- menu
- * LaTeX{} and PDF
- * LaTeX{}
- *
- LaTeX{} code:: Incorporating literal
- LaTeX{} export:: Specific attributes for tables
- * Images in
- LaTeX{} export:: Specific attributes for plain lists
- * Source blocks in
- LaTeX{} export:: Specific attributes for example blocks
- * Special blocks in
- LaTeX{} export:: Specific attributes for horizontal rules
- node
- subsection
- table
- orgcmd{C-c C-e l l,org-latex-export-to-latex}
- Export as a file{myfile.org}, the
- file{myfile.tex}. The file will be overwritten without
- warning.
- orgcmd{C-c C-e l p,org-latex-export-to-pdf}
- Export as
- item C-c C-e l o
- Export as
- end table
- vindex org-latex-bibtex-compiler
- LaTeX{} engines, namely
- samp{xelatex} and LaTeX{} compiler can be set
- via code{#+LATEX_COMPILER} keyword. It is
- possible to only load some packages with certain compilers (see the docstring
- of
- code{org-latex-bibtex-compiler}
- LaTeX{} compilation systems, such as
- node
- subsection
- LaTeX{} exporter introduces a number of keywords, similar to the general
- options settings described in
- table
- item DESCRIPTION
- LaTeX{})
- The document description. By default these are inserted as metadata using
- code{org-latex-hyperref-template}. Description can also be typeset as part
- of the front matter via
- code{#+DESCRIPTION} keywords if the description is is long.
- cindex #+LATEX_CLASS
- vindex org-latex-classes
- The predefined preamble and headline level mapping to use
- (
- code{org-latex-classes}.
- cindex #+LATEX_CLASS_OPTIONS
- Options given to the
- item LATEX_COMPILER
- vindex org-latex-compiler
- The compiler used to produce the PDF (
- item LATEX_HEADER
- vindex org-latex-classes
- Arbitrary lines added to the preamble of the document, before the
- code{org-latex-classes}.
- cindex #+LATEX_HEADER_EXTRA
- samp{hyperref} settings. The location can be controlled via
- item KEYWORDS
- LaTeX{})
- The keywords defining the contents of the document. By default these are
- inserted as metadata using
- code{org-latex-hyperref-template}. Description can also be
- typeset as part of the front matter via
- code{#+KEYWORDS} if the description is is long.
- cindex #+SUBTITLE (
- vindex org-latex-subtitle-separate
- code{org-latex-subtitle-format}. If
- code{nil} it is typed as part of the
- code{org-latex-hyperref-template} or typeset as
- part of the front matter via
- end table
- These keywords are treated in details in the following sections.
- LaTeX{} header and sectioning
- LaTeX{} header and sectioning structure
- LaTeX{} class
- LaTeX{} sectioning structure
- LaTeX{} header
- LaTeX{} files
- LaTeX{} export
- By default, the first three outline levels become headlines, defining a
- general document structure. Additional levels are exported as
- code{enumerate} lists. The transition can also occur at a different
- level (
- LaTeX{} output uses the class
- vindex org-latex-default-class
- vindex org-latex-default-packages-alist
- code{org-latex-default-class} or locally by adding an option like
- code{EXPORT_LATEX_CLASS} property that applies when exporting a region
- containing only this (sub)tree. The class must be listed in
- footnote{Into which the values of
- code{org-latex-packages-alist}
- are spliced.}, and allows you to define the sectioning structure for each
- class. You can also define your own classes there.
- cindex #+LATEX_CLASS_OPTIONS
- cindex property, EXPORT_LATEX_CLASS_OPTIONS
- The code{EXPORT_LATEX_CLASS_OPTIONS}
- property can specify the options for the
- LaTeX{}, within square brackets.
- cindex #+LATEX_HEADER_EXTRA
- You can also use the
- code{LATEX_HEADER_EXTRA}code{LATEX_HEADER}, contents
- from
- LaTeX{} snippets (LaTeX{} fragments}).} keywords in order
- to add lines to the header. See the docstring of
- example
- #+LATEX_CLASS: article
- #+LATEX_CLASS_OPTIONS: [a4paper]
- #+LATEX_HEADER: \usepackage}
- * Headline 1
- some text
- node Quoting
- subsection Quoting
- LaTeX{} as described in LaTeX{}}, will be correctly
- inserted into the
- LaTeX{} export with the following constructs:
- cindex #+BEGIN_EXPORT latex
- LaTeX{} code for export
- #+BEGIN_EXPORT latex
- All lines between these markers are exported literally
- #+END_EXPORT
- node Tables in
- subsection Tables in
- cindex tables, in
- cindex #+ATTR_LATEX, in tables
- For
- pxref{Images and tables}). You can also use attributes to control table
- layout and contents. Valid
- table
- item :mode
- code{table},
- code{inline-math} or code{math} or
- code{org-latex-default-table-mode}.
- vindex org-latex-default-table-environment
- Environment used for the table. It can be set to any
- code{tabularx}
- code{tabularx} package to
- code{longtable}, code{tabu}
- code{tabu} package to
- code{bmatrix}
- code{org-latex-default-table-environment} value.
- code{#+CAPTION} keyword is the simplest way to set a caption for a table
- (
- code{:caption} attribute instead. Its value should be raw
- code{#+CAPTION}.
- itemx :placement
- The
- code{sideways}
- code{sidewaystable}. This is deprecated since Org 8.3.},
- code{t} and
- code{table} environment. Moreover, the
- code{:placement} is ignored for
- item :align
- itemx :width
- Set, respectively, the alignment string of the table, its font size and its
- width. They only apply on regular tables.
- code{tabu} and
- code{:width} attribute.
- When code{nil}, the table will be spread or shrunk by the
- value of
- item :booktabs
- itemx :rmlines
- vindex org-latex-tables-centered
- They toggle, respectively,
- code{org-latex-tables-booktabs} (respectively
- item :math-prefix
- itemx :math-arguments
- A string that will be inserted, respectively, before the table within the
- math environment, after the table within the math environment, and between
- the macro name and the contents of the table. The
- code{qbordermatrix}).
- example
- #+ATTR_LATEX: :environment longtable :align l|lp}r|l
- | ..... | ..... |
- | ..... | ..... |
- #+ATTR_LATEX: :mode math :environment bmatrix :math-suffix \times
- | a | b |
- | c | d |
- #+ATTR_LATEX: :mode math :environment bmatrix
- | 1 | 2 |
- | 3 | 4 |
- LaTeX{} command
- {HeadingA{HeadingB
- example
- #+ATTR_LATEX: :caption \bicaption}}
- | ..... | ..... |
- | ..... | ..... |
- node Images in
- subsection Images in
- cindex images, inline in
- cindex inlining images in
- cindex #+ATTR_LATEX, in images
- Images that are linked to without a description part in the link, like
- samp{[[./img.jpg]]} will be inserted into the PDF
- output file resulting from
- code{\includegraphics} macro to insert the image
- url{http://sourceforge.net/projects/pgf/}) images, it will become an
- code{tikzpicture} environment.}.
- You can specify image width or height with, respectively,
- code{:height} attributes. It is also possible to add any other option with
- the
- example
- #+ATTR_LATEX: :width 5cm :options angle=90
- [[./img/sed-hr4049.pdf]]
- code{:caption}
- attribute. It will override standard
- example
- #+ATTR_LATEX: :caption \bicaption}}
- [[./img/sed-hr4049.pdf]]
- ref{Images and tables}, the
- picture will be wrapped into a
- code{:float} attribute. You may
- also set it to:
- minus
- code{t}: if you want to use the standard
- item
- code{figure*}
- environment.
- code{wrap}: if you would like to let text flow around the image. It will
- make the figure occupy the left half of the page.
- code{sideways}: if you would like the image to appear alone on a separate
- page rotated ninety degrees using the
- code{:float} option will ignore the
- item
- end itemize
- code{placement} attribute.
- {r{0.4\textwidth
- end example
- cindex center image (
- cindex image, centering (
- code{:center} attribute to
- code{org-latex-images-centered}
- instead.
- Eventually, if the
- code{nil} value, the code{\includegraphics} macro will be
- commented out.
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- code{:environment} and
- example
- #+LATEX_HEADER: \usepackage[inline]}
- Some ways to say "Hello":
- #+ATTR_LATEX: :environment itemize*
- #+ATTR_LATEX: :options [label=}, itemjoin=}, itemjoin*=}]
- - Hola
- - Bonjour
- - Guten Tag.
- LaTeX{} only supports four levels of nesting for lists. If
- deeper nesting is needed, the LaTeX{} package can be
- employed, as shown in this example:
- {enumitem
- {itemize{itemize{9
- {label=$\circ$
- end example
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- ref{Literal examples}, names and captions
- (
- code{:float} and
- itemize
- item
- item
- item
- end itemize
- end example
- vindex org-latex-minted-options
- The latter allows to specify options relative to the package used to
- highlight code in the output (e.g.,
- code{org-latex-listings-options} and
- example
- #+ATTR_LATEX: :options commentstyle=\bfseries
- #+BEGIN_SRC emacs-lisp
- (defun Fib (n) ; Count rabbits.
- (if (< n 2) n (+ (Fib (- n 1)) (Fib (- n 2)))))
- #+END_SRC
- node Example blocks in
- subsection Example blocks in
- cindex example blocks, in
- cindex verbatim blocks, in
- cindex #+ATTR_LATEX, in example blocks
- By default, when exporting to
- samp{verbatim} environment. It is possible to use a different
- environment globally using an appropriate export filter (
- code{:environment} parameter.
- end example
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- LaTeX{} back-end, special blocks become environments of the same name.
- Value of
- example
- #+BEGIN_abstract
- We demonstrate how to solve the Syracuse problem.
- #+END_abstract
- #+ATTR_LATEX: :options [Proof of important theorem]
- #+BEGIN_proof
- ...
- Therefore, any even number greater than 2 is the sum of two primes.
- #+END_proof
- noindent
- becomes
- {abstract
- {abstract
- {proof
- {proof
- end example
- If you need to insert a specific caption command, use
- code{#+CAPTION} value, if any. For
- example:
- {HeadingA
- end example
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- code{:width} and
- example
- #+ATTR_LATEX: :width .6\textwidth :thickness 0.8pt
- -----
- node Markdown export
- cindex Markdown export
- footnote{Vanilla flavor,
- as defined at
- code{html}
- back-end (
- subheading Markdown export commands
- kbd
- file{myfile.org}, the resulting file will be
- orgcmd{C-c C-e m M,org-md-export-as-markdown}
- Export to a temporary buffer. Do not create a file.
- end table
- vindex org-md-headline-style
- Markdown export can generate both code{setext} types for
- headlines, according to
- pxref{Export settings}).
- node OpenDocument Text export
- cindex ODT
- cindex export, OpenDocument
- cite{OpenDocument-v1.2
- specification}url{http://docs.oasis-open.org/office/v1.2/OpenDocument-v1.2.html,
- Open Document Format for Office Applications (OpenDocument) Version 1.2}} and
- are compatible with LibreOffice 3.4.
- samp{doc},
- LaTeX{} fragments are formatted
- * Labels and captions in ODT export:: How captions are rendered
- * Literal examples in ODT export:: How source and example blocks are formatted
- * Advanced topics in ODT export:: Read this if you are a power user
- node Pre-requisites for ODT export
- cindex zip
- The ODT exporter relies on the
- node ODT export commands
- anchor{x-export-to-odt}
- cindex active region
- table
- orgcmd{C-c C-e o o,org-odt-export-to-odt}
- vindex org-odt-preferred-output-format
- If
- xref{x-export-to-other-formats, ,
- Automatically exporting to other formats}.
- For an Org file
- file{myfile.odt}. The file will be overwritten without warning. If there
- is an active region,code{transient-mark-mode} to be
- turned on} only the region will be exported. If the selected region is a
- single tree,kbd{C-c }} the
- tree head will become the document title. If the tree head entry has, or
- inherits, an
- kbd{C-c C-e o O}
- Export as an OpenDocument Text file and open the resulting file.
- code{org-odt-preferred-output-format} is specified, open the converted
- file instead.
- end table
- subsection ODT specific export settings
- The ODT exporter introduces a number of keywords, similar to the general
- options settings described in
- table
- item DESCRIPTION
- item KEYWORDS
- item ODT_STYLES_FILE
- vindex org-odt-styles-file
- The style file of the document (
- ref{Applying custom styles} for details.
- cindex SUBTITLE (ODT)
- The document subtitle.
- node Extending ODT export
- samp{doc} or convert a document from
- one format (say samp{ods} or
- cindex
- cindex LibreOffice
- If you have a working installation of LibreOffice, a document converter is
- pre-configured for you and you can use it right away. If you would like to
- use
- code{org-odt-convert-process} to point to
- file{LibreOffice} and xref{Configuring a
- document converter}.
- anchor{x-export-to-other-formats}
- samp{doc},
- samp{rtf},
- code{org-odt-preferred-output-format}. This way, the export commands
- (
- subsubheading Converting between document formats
- vindex org-odt-convert
- kbd
- end table
- subsection Applying custom styles
- cindex template, custom
- The ODT exporter ships with a set of OpenDocument styles
- (
- subsubheading Applying custom styles: the easy way
- item
- Create a sample
- example
- #+OPTIONS: H:10 num:t
- item
- Open the above file{Stylist}
- to locate the target styles---these typically have the
- file{.odt}) or OpenDocument Template (
- item
- vindex org-odt-styles-file
- Customize the variable
- pxref{x-overriding-factory-styles,,Overriding factory styles}.
- If you would like to choose a style on a per-file basis, you can use the
- example
- #+ODT_STYLES_FILE: "/path/to/example.ott"
- example
- #+ODT_STYLES_FILE: ("/path/to/file.ott" ("styles.xml" "image/hdr.png"))
- end enumerate
- samp{ODT} exporter relies on. Unless this condition is
- met, the output is going to be less than satisfactory. So it is highly
- recommended that you only work with templates that are directly derived from
- the factory settings.
- subsection Links in ODT export
- samp{\ref}}-style reference to an image, table etc.
- xref{Labels and captions in ODT export}.
- subsection Tables in ODT export
- pxref{Tables}) and simple
- file{table.el} tables---tables
- that have column or row spans---is not supported. Such tables are
- stripped from the exported document.
- By default, a table is exported with top and bottom frames and with rules
- separating row and column groups (
- pxref{Column width and
- alignment}) then these are honored on export.
- cindex #+ATTR_ODT
- You can control the width of the table by specifying
- code{#+ATTR_ODT} line.
- For example, consider the following table which makes use of all the rules
- mentioned above.
- end example
- On export, the table will occupy 50% of text area. The columns will be sized
- (roughly) in the ratio of 13:5:5:5:6. The first column will be left-aligned
- and rest of the columns will be right-aligned. There will be vertical rules
- after separating the header and last columns from other columns. There will
- be horizontal rules separating the header and last rows from other rows.
- If you are not satisfied with the above formatting options, you can create
- custom table styles and associate them with a table using the
- xref{Customizing tables in ODT export}.
- subsection Images in ODT export
- cindex embedding images in ODT
- samp{img.png} do either of the following:
- end example
- end example
- file{org-mode-unicorn.png} which when clicked jumps to
- example
- [[http://orgmode.org][./org-mode-unicorn.png]]
- subsubheading Sizing and scaling of embedded images
- code{#+ATTR_ODT} attribute.
- vindex org-odt-pixels-per-inch
- The exporter specifies the desired size of the image in the final document in
- units of centimeters. In order to scale the embedded images, the exporter
- queries for pixel dimensions of the images using one of a) ImageMagick's
- code{create-image} and
- footnote{Use of
- file{ImageMagick} is mandatory.}. The pixel dimensions are subsequently
- converted in to units of centimeters using
- code{display-pixels-per-inch}. You can tweak this variable to
- achieve the best results.
- The examples below illustrate the various possibilities.
- asis
- file{img.png} as a 10 cm x 10 cm image, do the following:
- end example
- file{img.png} at half its size, do the following:
- end example
- file{img.png} with a width of 10 cm while retaining the original
- height:width ratio, do the following:
- end example
- file{img.png} with a height of 10 cm while retaining the original
- height:width ratio, do the following
- end example
- subsubheading Anchoring of images
- code{:anchor} property of its
- code{:anchor} property:
- samp{"paragraph"} and
- example
- #+ATTR_ODT: :anchor "page"
- [[./img.png]]
- node Math formatting in ODT export
- menu
- * Working with LaTeX{} math fragments
- * Working with MathML or OpenDocument formula files:: How to embed equations in native format
- node Working with
- subsubheading Working with
- LaTeX{} math snippets (LaTeX{} fragments}) can be embedded in the ODT
- document in one of the following ways:
- enumerate
- example
- #+OPTIONS: LaTeX:t
- LaTeX{} fragments are first converted into MathML
- fragments using an external
- vindex org-latex-to-mathml-convert-command
- LaTeX{}-to-MathML converter by customizing the variables
- code{org-latex-to-mathml-jar-file}.
- To use MathToWeb
- uref{http://www.mathtoweb.com/cgi-bin/mathtoweb_home.pl, MathToWeb}.} as your
- converter, you can configure the above variables as
- end lisp
- To use footnote{See
- lisp
- (setq org-latex-to-mathml-convert-command
- "latexmlmath \"%i\" --presentationmathml=%o")
- LaTeX{}-to-MathML converter.
- kbd
- LaTeX{} math snippet to an OpenDocument formula (
- item M-x org-odt-export-as-odf-and-open RET
- Convert a file{.odf}) file
- and open the formula file with the system-registered application.
- cindex dvipng
- cindex imagemagick
- example
- #+OPTIONS: tex:dvipng
- example
- #+OPTIONS: tex:dvisvgm
- example
- #+OPTIONS: tex:imagemagick
- LaTeX{} fragments are processed into PNG or SVG images and
- the resulting images are embedded in the exported document. This method requires
- that the file{dvisvgm} or
- end enumerate
- subsubheading Working with MathML or OpenDocument formula files
- For various reasons, you may find embedding
- file{.mml}) source or its
- OpenDocument formula (
- example
- [[./equation.mml]]
- example
- [[./equation.odf]]
- node Labels and captions in ODT export
- LaTeX{} fragment or a Math formula---using
- code{#+CAPTION} lines.
- example
- #+CAPTION: Bell curve
- #+LABEL: fig:SED-HR4049
- [[./img/a.png]]
- example
- Figure 2: Bell curve
- vindex org-odt-category-map-alist
- You can modify the category component of the caption by customizing the
- option
- samp{Illustration} (instead of the default
- lisp
- (setq org-odt-category-map-alist
- (("__Figure__" "Illustration" "value" "Figure" org-odt--enumerable-image-p)))
- example
- Illustration 2: Bell curve
- node Literal examples in ODT export
- pxref{Literal examples}) with full fontification
- is supported. Internally, the exporter relies on
- samp{OrgSrc} as prefix and inherit their color
- from the faces used by Emacs
- vindex org-odt-fontify-srcblocks
- If you prefer to use your own custom styles for fontification, you can do
- so by customizing the option
- vindex org-odt-create-custom-styles-for-srcblocks
- You can turn off fontification of literal examples by customizing the
- option
- node Advanced topics in ODT export
- menu
- * Configuring a document converter:: How to register a document converter
- * Working with OpenDocument style files:: Explore the internals
- * Creating one-off styles:: How to produce custom highlighting etc
- * Customizing tables in ODT export:: How to define and use Table templates
- * Validating OpenDocument XML:: How to debug corrupt OpenDocument files
- node Configuring a document converter
- cindex convert
- cindex converter
- The ODT exporter can work with popular converters with little or no
- extra configuration from your side.
- enumerate
- vindex org-odt-convert-processes
- Name your converter and add it to the list of known converters by
- customizing the option
- item Configure its capabilities
- anchor{x-odt-converter-capabilities} Specify the set of formats the
- converter can handle by customizing the variable
- item Choose the converter
- code{org-odt-convert-process}.
- node Working with OpenDocument style files
- cindex styles, custom
- anchor{x-factory-styles}
- code{org-odt-styles-dir}. The two files are:
- anchor{x-orgodtstyles-xml}
- file{OrgOdtStyles.xml}
- This file contributes to the samp{ODT}
- document. This file gets modified for the following purposes:
- item
- To control outline numbering based on user settings.
- file{htmlfontify.el} for fontification of code
- blocks.
- anchor{x-orgodtcontenttemplate-xml}
- file{OrgOdtContentTemplate.xml}
- This file contributes to the samp{ODT}
- document. The contents of the Org outline are inserted between the
- dots{}
- file{content.xml}, the
- file serves the following purposes:
- item
- It contains automatic styles for formatting of tables which are referenced by
- the exporter.
- samp{<text:sequence-decl>}samp{</text:sequence-decl>}
- elements that control how various entities---tables, images, equations,
- etc.---are numbered.
- end itemize
- subsubheading b) Overriding factory styles
- The following two variables control the location from which the ODT
- exporter picks up the custom styles and content template files. You can
- customize these variables to override the factory styles used by the
- exporter.
- anchor{x-org-odt-styles-file}
- code{org-odt-styles-file}
- Use this variable to specify the
- enumerate
- file{styles.xml} file
- Use this file instead of the default
- item A file{.ott} file
- Use the
- item A file{.ott} file and a subset of files contained within them
- Use the
- samp{ODT} document.
- Use this option if the
- item
- file{styles.xml}
- anchor{x-org-odt-content-template-file}
- code{org-odt-content-template-file}
- Use this variable to specify the blank
- end itemize
- subsubheading Creating one-off styles
- There are times when you would want one-off formatting in the exported
- document. You can achieve this by embedding raw OpenDocument XML in the Org
- file. The use of this feature is better illustrated with couple of examples.
- item Embedding ODT tags as part of regular text
- You can inline OpenDocument syntax by enclosing it within
- example
- odt:<text:span text:style-name="Highlight">This is a highlighted
- text</text:span>. But this is a regular text.
- strong{Hint:} To see the above example in action, edit your
- pxref{x-orgodtstyles-xml,,Factory styles}) and add a
- custom
- example
- <style:style style:name="Highlight" style:family="text">
- <style:text-properties fo:background-color="#ff0000"/>
- </style:style>
- item Embedding a one-line OpenDocument XML
- You can add a simple OpenDocument one-liner using the
- example
- #+ODT: <text:p text:style-name="PageBreak"/>
- strong{Hint:} To see the above example in action, edit your
- pxref{x-orgodtstyles-xml,,Factory styles}) and add a
- custom
- example
- <style:style style:name="PageBreak" style:family="paragraph"
- style:parent-style-name="Text_20_body">
- <style:paragraph-properties fo:break-before="page"/>
- </style:style>
- item Embedding a block of OpenDocument XML
- You can add a large block of OpenDocument XML using the
- dots{}
- example
- #+BEGIN_EXPORT odt
- <text:p text:style-name="Text_20_body_20_bold">
- This paragraph is specially formatted and uses bold text.
- </text:p>
- #+END_EXPORT
- end enumerate
- subsubheading Customizing tables in ODT export
- cindex #+ATTR_ODT
- You can override the default formatting of the table by specifying a custom
- table style with the
- pxref{Tables in ODT export}.
- This feature closely mimics the way table templates are defined in the
- OpenDocument-v1.2
- specification.url{http://docs.oasis-open.org/office/v1.2/OpenDocument-v1.2.html,
- OpenDocument-v1.2 Specification}}
- lisp
- (setq org-odt-table-styles
- (append org-odt-table-styles
- '(("TableWithHeaderRowAndColumn" "Custom"
- ((use-first-row-styles . t)
- (use-first-column-styles . t)))
- ("TableWithFirstRowandLastRow" "Custom"
- ((use-first-row-styles . t)
- (use-last-row-styles . t))))))
- example
- #+ATTR_ODT: :style TableWithHeaderRowAndColumn
- | Name | Phone | Age |
- | Peter | 1234 | 17 |
- | Anna | 4321 | 25 |
- samp{Custom} and installed
- two table styles with the names
- samp{TableWithFirstRowandLastRow}. (
- samp{Custom
- Table Template} in
- pxref{x-orgodtcontenttemplate-xml,,Factory styles}). If you need
- additional templates you have to define these styles yourselves.
- To use this feature proceed as follows:
- item
- Create a table templatecode{<table:table-template>}
- element of the OpenDocument-v1.2 specification}
- A table template is nothing but a set of
- samp{paragraph} styles for each of the following table cell categories:
- minus
- item First column
- item First row
- item Even row
- item Even column
- end itemize
- The names for the above styles must be chosen based on the name of the table
- template using a well-defined convention.
- The naming convention is better illustrated with an example. For a table
- template with the name
- multitable {Table cell type} {CustomEvenColumnTableCell} {CustomEvenColumnTableParagraph}
- tab
- tab
- item
- tab
- tab
- tab
- item First column
- samp{CustomFirstColumnTableCell}
- samp{CustomFirstColumnTableParagraph}
- tab
- tab
- item First row
- samp{CustomFirstRowTableCell}
- samp{CustomFirstRowTableParagraph}
- tab
- tab
- item Even row
- samp{CustomEvenRowTableCell}
- samp{CustomEvenRowTableParagraph}
- tab
- tab
- item Even column
- samp{CustomEvenColumnTableCell}
- samp{CustomEvenColumnTableParagraph}
- tab
- tab
- end multitable
- To create a table template with the name
- code{<office:automatic-styles>}...
- pxref{x-orgodtcontenttemplate-xml,,Factory
- styles}).
- footnote{See the attributes
- code{table:use-first-row-styles},
- code{table:use-first-column-styles},
- code{table:use-banding-rows-styles}, and
- code{<table:table>} element in
- the OpenDocument-v1.2 specification}
- code{org-odt-table-styles} and specify the following:
- minus
- item the set of cell styles in that template that are to be activated
- samp{TableWithHeaderRowAndColumn} and
- samp{Custom}. The styles achieve their intended
- effect by selectively activating the individual cell styles in that template.
- end lisp
- code{ATTR_ODT} line as shown below.
- end example
- node Validating OpenDocument XML
- file{.odt} file is corrupt. In such
- cases, you may want to validate the document against the OpenDocument RELAX
- NG Compact Syntax (RNC) schema.
- For de-compressing the footnote{
- samp{zip} archives}:
- inforef{Introduction,,nxml-mode}.
- file{.rnc} files and the needed
- schema-locating rules in a single folder, you can customize the variable
- code{rng-schema-locating-files} for you.
- node Org export
- cindex Org export
- pxref{Evaluating
- code blocks}) and removes other back-ends specific contents.
- table
- orgcmd{C-c C-e O o,org-org-export-to-org}
- Export as an Org document. For an Org file,
- file{myfile.org.org}. The file will be overwritten without
- warning.
- item C-c C-e O v
- Export to an Org file, then open it.
- node Texinfo export
- cindex Texinfo export
- menu
- * Texinfo export commands:: How to invoke Texinfo export
- * Texinfo specific export settings:: Export settings for Texinfo
- * Texinfo file header:: Generating the begining of a Texinfo file
- * Texinfo title and copyright page:: Creating title and copyright pages
- * Texinfo
- end menu
- subsection Texinfo export commands
- table
- orgcmd{C-c C-e i t,org-texinfo-export-to-texinfo}
- Export as a Texinfo file. For an Org file,
- file{myfile.texi}. The file will be overwritten without
- warning.
- footnote{By setting
- end table
- subsection Texinfo specific export settings
- The Texinfo exporter introduces a number of keywords, similar to the general
- options settings described in
- table
- item SUBTITLE
- item SUBAUTHOR
- item TEXINFO_FILENAME
- item TEXINFO_CLASS
- vindex org-texinfo-default-class
- The class of the document (
- code{org-texinfo-classes}.
- cindex #+TEXINFO_HEADER
- Arbitrary lines inserted at the end of the header.
- cindex #+TEXINFO_POST_HEADER
- Arbitrary lines inserted after the end of the header.
- cindex #+TEXINFO_DIR_CATEGORY
- The directory category of the document.
- cindex #+TEXINFO_DIR_TITLE
- The directory title of the document.
- cindex #+TEXINFO_DIR_DESC
- The directory description of the document.
- cindex #+TEXINFO_PRINTED_TITLE
- The printed title of the document.
- node Texinfo file header
- cindex #+TEXINFO_FILENAME
- Upon creating the header of a Texinfo file, the back-end guesses a name for
- the Info file to be compiled. This may not be a sensible choice, e.g., if
- you want to produce the final document in a different directory. Specify an
- alternate path with
- vindex org-texinfo-coding-system
- cindex #+TEXINFO_HEADER
- pxref{Export settings}) and current encoding used
- code{org-texinfo-coding-system} for more information.}. Insert
- a
- {synindex
- code{org-texinfo-classes}. Set
- node Texinfo title and copyright page
- cindex #+TEXINFO_PRINTED_TITLE
- The default template includes a title page for hard copy output. The title
- and author displayed on this page are extracted from, respectively,
- code{#+AUTHOR} keywords (
- code{#+TEXINFO_PRINTED_TITLE} keyword, and add subtitles with
- cindex #+SUBAUTHOR
- Likewise, information brought by
- code{#+SUBAUTHOR} keywords. Values are
- also expected to be written in Texinfo code.
- {tex,*{
- end example
- code{nil}
- code{copying} command at the beginning of the document whereas the
- heading itself does not appear in the structure of the document.
- Copyright information is printed on the back of the title page.
- end example
- samp{Top} node
- samp{Top} node
- cindex #+TEXINFO_DIR_TITLE
- code{#+TEXINFO_DIR_CATEGORY} and
- code{#+TEXINFO_DIR_DESC}. The following example would write an entry
- similar to Org's in the
- example
- #+TEXINFO_DIR_CATEGORY: Emacs
- #+TEXINFO_DIR_TITLE: Org Mode: (org)
- #+TEXINFO_DIR_DESC: Outline-based notes management and organizer
- node Headings and sectioning structure
- vindex org-texinfo-classes
- cindex #+TEXINFO_CLASS
- code{chapter} if it should be numbered or as
- code{part} instead of
- code{org-texinfo-classes}, then activate it with
- code{org-texinfo-default-class} when
- there is no such keyword in the document.
- If a headline's level has no associated structuring command, or is below
- a certain threshold (
- cindex property, APPENDIX
- As an exception, a headline with a non-code{:APPENDIX:} property becomes
- an appendix, independently on its level and the class used.
- code{:ALT_TITLE:} property (
- code{:DESCRIPTION:} property. E.g.,
- end example
- subsection Indices
- cindex #+FINDEX
- cindex #+PINDEX
- cindex #+VINDEX
- Index entries are created using dedicated keywords.
- code{#+CINDEX},
- code{#+KINDEX}, code{#+TINDEX} and
- pxref{Quoting Texinfo
- code}).
- end example
- code{:INDEX:} property of
- a headline to an appropriate abbreviation (e.g., samp{vr}).
- The headline is then exported as an unnumbered chapter or section command and
- the index is inserted after its contents.
- end example
- subsection Quoting Texinfo code
- It is possible to insert raw Texinfo code using any of the following
- constructs
- cindex #+BEGIN_EXPORT texinfo
- {Stallmantexinfo:
- end example
- subsection Plain lists in Texinfo export
- code{table}. You can use
- code{vtable}inforef{Two-column
- Tables,,texinfo}.} instead with
- vindex org-texinfo-def-table-markup
- In any case, these constructs require a highlighting command for entries in
- the list. You can provide one with
- code{org-texinfo-def-table-markup}, which
- see.
- end example
- subsection Tables in Texinfo export
- code{:columns} attribute.
- end example
- subsection Images in Texinfo export
- code{:width} and
- code{:alt} to specify alternate text, as
- Texinfo code.
- {text
- end example
- subsection Special blocks
- code{:options} attribute is added right after the beginning of the command.
- For example:
- end example
- example
- defun org-org-export-to-org ...
- A somewhat obsessive function.
- end defun
- node A Texinfo example
- inforef{GNU Sample Texts,,texinfo} for an
- equivalent Texinfo code.
- {{version}
- {{version}{{updated}
- {{version}
- {{updated}
- {
- {sample
- end example
- section iCalendar export
- vindex org-icalendar-include-todo
- vindex org-icalendar-use-scheduled
- vindex org-icalendar-alarm-time
- Some people use Org mode for keeping track of projects, but still prefer a
- standard calendar application for anniversaries and appointments. In this
- case it can be useful to show deadlines and other time-stamped items in Org
- files in the calendar application. Org mode can export calendar information
- in the standard iCalendar format. If you also want to have TODO entries
- included in the export, configure the variable
- . It will also create events from deadlines that are
- in non-TODO items. Deadlines and scheduling dates in TODO items will be used
- to set the start and due dates for the TODO entry
- code{org-icalendar-use-deadline} and
- footnote{To add inherited tags or the TODO state,
- configure the variable
- code{org-icalendar-alarm-time} for a way to assign alarms to entries with a
- time.
- cindex property, ID
- The iCalendar standard requires each entry to have a globally unique
- identifier (UID). Org creates these identifiers during export. If you set
- the variable
- code{:ID:} property of the entry and re-used next time you report this
- entry. Since a single entry can give rise to multiple iCalendar entries (as
- a timestamp, a deadline, a scheduled item, and as a TODO item), Org adds
- prefixes to the UID, depending on what triggered the inclusion of the entry.
- In this way the UID remains unique, but a synchronization program can still
- figure out from which entry all the different instances originate.
- kbd
- file{.ics}.
- vindex org-agenda-files
- Like
- code{org-agenda-files}. For each of these files, a separate iCalendar
- file will be written.
- vindex org-icalendar-combined-agenda-file
- Create a single large iCalendar file from all files in
- code{org-icalendar-combined-agenda-file}.
- vindex org-use-property-inheritance
- cindex property, SUMMARY
- cindex property, LOCATION
- The export will honor SUMMARY, DESCRIPTION and LOCATION
- code{org-use-property-inheritance} accordingly.} properties if the selected
- entries have them. If not, the summary will be derived from the headline,
- and the description from the body (limited to
- node Other built-in back-ends
- cindex export back-ends, built-in
- itemize
- file{ox-man.el}: export to a man page.
- code{org-export-backends} or
- load them directly with e.g.,
- pxref{The export dispatcher}).
- See the comment section of these files for more information on how to use
- them.
- section Advanced configuration
- vindex org-export-before-processing-hook
- code{org-export-before-processing-hook} is called before expanding
- macros, Babel code and include keywords in the buffer. The second one,
- lisp
- end group
- subheading Filters
- code{org-export-filter-TYPE-functions},
- where
- multitable
- item body
- tab babel-call
- tab clock
- item diary-sexp
- tab dynamic-block
- tab example-block
- item export-snippet
- tab fixed-width
- tab footnote-reference
- item horizontal-rule
- tab inline-src-block
- tab italic
- item keyword
- tab latex-fragment
- tab link
- item options
- tab parse-tree
- tab plain-text
- item property-drawer
- tab radio-target
- tab special-block
- item statistics-cookie
- tab subscript
- tab table
- item table-row
- tab timestamp
- tab verbatim
- end multitable
- For example, the following snippet allows me to use non-breaking spaces in
- the Org buffer and get them translated into
- code{\nbsp} macro (where
- lisp
- end group
- code{org-export-derived-backend-p}, which ensures that the filter will only
- be applied when using
- code{beamer}).
- code{#+BIND}. Here is an example where we introduce
- two filters, one to remove brackets from time stamps, and one to entirely
- remove any strike-through text. The functions doing the filtering are
- defined in an src block that allows the filter function definitions to exist
- in the file itself and ensures that the functions will be there when needed.
- end example
- code{ascii} back-end to display the
- language used in a source block, when it is available, but only when some
- attribute is non-
- example
- #+ATTR_ASCII: :language t
- code{my-ascii} that will do the job.
- group
- (defun my-ascii-src-block (src-block contents info)
- "Transcode a SRC-BLOCK element from Org to ASCII.
- CONTENTS is nil. INFO is a plist used as a communication
- channel."
- (if (not (org-export-read-attribute :attr_ascii src-block :language))
- (org-export-with-backend 'ascii src-block contents info)
- (concat
- (format ",--[ %s ]--\n%s`----"
- (org-element-property :language src-block)
- (replace-regexp-in-string
- "^" "| "
- (org-element-normalize-string
- (org-export-format-code-default src-block info)))))))
- (org-export-define-derived-backend 'my-ascii 'ascii
- :translate-alist '((src-block . my-ascii-src-block)))
- end lisp
- The
- code{ascii} back-end.
- Otherwise, it creates a box around the code, leaving room for the language.
- A new back-end is then created. It only changes its behavior when
- translating
- smalllisp
- (org-export-to-buffer 'my-ascii "*Org MY-ASCII Export*")
- node Export in foreign buffers
- table
- item org-html-convert-region-to-html
- Convert the selected region into HTML.
- LaTeX{}.
- code{Texinfo}.
- code{MarkDown}.
- code{orgstruct-mode}, then
- use Org commands for editing a list, and finally select and convert the list
- with
- node Publishing
- cindex publishing
- Org includes a publishing management system that allows you to configure
- automatic HTML conversion of
- menu
- * Configuration:: Defining projects
- * Uploading files:: How to get files up on the server
- * Sample configuration:: Example projects
- * Triggering publication:: Publication commands
- node Configuration
- menu
- * Project alist:: The central configuration variable
- * Sources and destinations:: From here to there
- * Selecting files:: What files are part of the project?
- * Publishing action:: Setting the function doing the publishing
- * Publishing options:: Tweaking HTML/
- end menu
- subsection The variable
- cindex org-publish-project-alist
- vindex org-publish-project-alist
- Publishing is configured almost entirely through setting the value of one
- variable, called
- lisp
- ("project-name" :property value :property value ...)
-
- r{or}
- ("project-name" :components ("project-name" "project-name" ...))
- code{:components} property are taken to be sub-projects, which group
- together files requiring different publishing options. When you publish such
- a ``meta-project'', all the components will also be published, in the
- sequence given.
- subsection Sources and destinations for files
- multitable
- item
- tab Directory containing publishing source files
- code{:publishing-directory}
- file{tramp} package. Or you can publish to a local directory and
- use external tools to upload your website (
- item
- tab Function or list of functions to be called before starting the
- publishing process, for example, to run
- item
- tab Function or list of functions called after finishing the publishing
- process, for example, to change permissions of the resulting files. Each
- completion function is called with a single argument, the project property
- list.
- noindent
- subsection Selecting files
- file{.org} in the base directory
- are considered part of the project. This can be modified by setting the
- properties
- columnfractions 0.25 0.75
- code{:base-extension}
- code{any} if you want to get all
- files in
- item
- tab Regular expression to match file names that should not be
- published, even though they have been selected on the basis of their
- extension.
- code{:include}
- code{:base-extension}
- and
- item
- tab non-
- end multitable
- subsection Publishing action
- code{org-html-publish-to-html}, which calls the HTML exporter (
- code{org-latex-publish-to-pdf} or as code{Texinfo}, etc.,
- using the corresponding functions.
- If you want to publish the Org file as an
- i{archived}, i{tag-excluded} trees removed, use the
- function file{file.org}
- and put it in the publishing directory. If you want a htmlized version of
- this file, set the parameter code{t}, it will
- produce footnote{If the
- publishing directory is the same than the source directory,
- file{file.org.org}, so probably don't want to do this.}.
- Other files like images only need to be copied to the publishing destination.
- For this you can use
- multitable
- item
- tab Function executing the publication of a file. This may also be a
- list of functions, which will all be called in turn.
- code{:htmlized-source}
- code{nil} means, publish htmlized source.
- code{:publishing-directory} property, the name of the file to be published
- and the path to the publishing directory of the output file. It should take
- the specified file, make the necessary transformation (if any) and place the
- result into the destination folder.
- subsection Options for the exporters
- vindex org-publish-project-alist
- When a property is given a value in
- pxref{Export settings}),
- however, override everything.
- multitable {code{org-export-with-sub-superscripts}}
- code{:archived-trees} code{org-export-with-archived-trees}
- code{:exclude-tags} code{org-export-exclude-tags}
- code{:headline-levels} code{org-export-headline-levels}
- code{:language} code{org-export-default-language}
- code{:preserve-breaks} code{org-export-preserve-breaks}
- code{:section-numbers} code{org-export-with-section-numbers}
- code{:select-tags} code{org-export-select-tags}
- code{:with-author} code{org-export-with-author}
- code{:with-broken-links} code{org-export-with-broken-links}
- code{:with-clocks} code{org-export-with-clocks}
- code{:with-creator} code{org-export-with-creator}
- code{:with-date} code{org-export-with-date}
- code{:with-drawers} code{org-export-with-drawers}
- code{:with-email} code{org-export-with-email}
- code{:with-emphasize} code{org-export-with-emphasize}
- code{:with-fixed-width} code{org-export-with-fixed-width}
- code{:with-footnotes} code{org-export-with-footnotes}
- code{:with-latex} code{org-export-with-latex}
- code{:with-planning} code{org-export-with-planning}
- code{:with-priority} code{org-export-with-priority}
- code{:with-properties} code{org-export-with-properties}
- code{:with-special-strings} code{org-export-with-special-strings}
- code{:with-sub-superscript} code{org-export-with-sub-superscripts}
- code{:with-tables} code{org-export-with-tables}
- code{:with-tags} code{org-export-with-tags}
- code{:with-tasks} code{org-export-with-tasks}
- code{:with-timestamps} code{org-export-with-timestamps}
- code{:with-title} code{org-export-with-title}
- code{:with-toc} code{org-export-with-toc}
- code{:with-todo-keywords} code{org-export-with-todo-keywords}
- subsubheading ASCII specific properties
- code{:ascii-table-keep-all-vertical-lines}} {
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- end multitable
- multitable {code{org-beamer-frame-default-options}}
- code{:beamer-theme} code{org-beamer-theme}
- code{:beamer-column-view-format} code{org-beamer-column-view-format}
- code{:beamer-environments-extra} code{org-beamer-environments-extra}
- code{:beamer-frame-default-options} code{org-beamer-frame-default-options}
- code{:beamer-outline-frame-options} code{org-beamer-outline-frame-options}
- code{:beamer-outline-frame-title} code{org-beamer-outline-frame-title}
- code{:beamer-subtitle-format} code{org-beamer-subtitle-format}
- subsubheading HTML specific properties
- code{:html-table-use-header-tags-for-first-column}} {
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- end multitable
- LaTeX{} specific properties
- code{:latex-link-with-unknown-path-format}} {
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- end multitable
- multitable {code{org-md-footnotes-section}}
- code{:md-footnote-format} code{org-md-footnote-format}
- code{:md-footnotes-section} code{org-md-footnotes-section}
- code{:md-headline-style} code{org-md-headline-style}
- subsubheading ODT specific properties
- code{:odt-format-inlinetask-function}} {
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- end multitable
- multitable {code{org-texinfo-link-with-unknown-path-format}}
- code{:texinfo-active-timestamp-format} code{org-texinfo-active-timestamp-format}
- code{:texinfo-classes} code{org-texinfo-classes}
- code{:texinfo-class} code{org-texinfo-default-class}
- code{:texinfo-def-table-markup} code{org-texinfo-def-table-markup}
- code{:texinfo-diary-timestamp-format} code{org-texinfo-diary-timestamp-format}
- code{:texinfo-filename} code{org-texinfo-filename}
- code{:texinfo-format-drawer-function} code{org-texinfo-format-drawer-function}
- code{:texinfo-format-headline-function} code{org-texinfo-format-headline-function}
- code{:texinfo-format-inlinetask-function} code{org-texinfo-format-inlinetask-function}
- code{:texinfo-inactive-timestamp-format} code{org-texinfo-inactive-timestamp-format}
- code{:texinfo-link-with-unknown-path-format} code{org-texinfo-link-with-unknown-path-format}
- code{:texinfo-node-description-column} code{org-texinfo-node-description-column}
- code{:texinfo-table-scientific-notation} code{org-texinfo-table-scientific-notation}
- code{:texinfo-tables-verbatim} code{org-texinfo-tables-verbatim}
- code{:texinfo-text-markup-alist} code{org-texinfo-text-markup-alist}
- node Publishing links
- cindex links, publishing
- To create a link from one Org file to another, you would use something like
- samp{file:foo.org}
- (
- file{foo.html}. You can thus interlink the pages of your ``org web''
- project and the links will work as expected when you publish them to HTML.
- If you also publish the Org source file and want to link to it, use an
- code{file:} link, because
- file{html} file.
- You may also link to related files, such as images. Provided you are careful
- with relative file names, and provided you have also configured Org to upload
- the related files, these links will work too. See
- pxref{Search options}), which will be resolved to the appropriate location
- in the linked file. For example, once published to HTML, the following links
- all point to a dedicated anchor in
- example
- [[file:foo.org::*heading]]
- [[file:foo.org::#custom-id]]
- [[file:foo.org::target]]
- node Sitemap
- cindex sitemap, of published pages
- The following properties may be used to control publishing of
- a map of files for a given project.
- columnfractions 0.35 0.65
- code{:auto-sitemap}
- code{nil}, publish a sitemap during
- code{org-publish-all}.
- code{:sitemap-filename}
- file{sitemap.org} (which
- becomes
- item
- tab Title of sitemap page. Defaults to name of file.
- code{:sitemap-format-entry}
- code{org-publish-find-date},
- code{org-publish-find-property}, to
- retrieve additional information about published documents.
- code{:sitemap-function}
- pxref{Radio
- lists}). The latter can further be transformed using
- code{org-list-to-subtree} and alike. Default
- value generates a plain list of links to all files in the project.
- code{:sitemap-sort-folders}
- code{first}
- (default) or
- code{ignore}, folders are ignored altogether. Any other value
- will mix files and folders. This variable has no effect when site-map style
- is
- item
- tab How the files are sorted in the site map. Set this to
- code{chronologically} or
- code{chronologically} sorts the files with
- older date first while
- code{alphabetically} sorts the files alphabetically. The date of
- a file is retrieved with
- item
- tab Should sorting be case-sensitive? Default
- item
- tab Format string for the
- code{org-publish-sitemap-date-format} which defaults to
- end multitable
- subsection Generating an index
- multitable
- item
- tab When non-file{theindex.org} and
- publish it as
- end multitable
- The file will be created when first publishing a project with the
- code{#+INCLUDE:
- "theindex.inc"}. You can then build around this include statement by adding
- a title, style information, etc.
- code{#+INDEX} keyword. An entry that
- contains an exclamation mark will create a sub item.
- end example
- section Uploading files
- cindex unison
- For those people already utilizing third party sync tools such as
- command{unison}, it might be preferable not to use the built in
- i{in place} with your Org files) and then use
- file{rsync} to do the synchronization with the remote host.
- Since Unison (for example) can be configured as to which files to transfer to
- a certain remote destination, it can greatly simplify the project publishing
- definition. Simply keep all files in the correct location, process your Org
- files with
- file{jpg},
- file{gif} files in the project definition since the 3rd party
- tool syncs them.
- Publishing to a local directory is also much faster than to a remote one, so
- that you can afford more easily to republish entire projects. If you set
- code{nil}, you gain the main
- benefit of re-including any changed external files such as source example
- files you might include with
- node Sample configuration
- menu
- * Simple example:: One-component publishing
- * Complex example:: A multi-component publishing example
- node Simple example
- file{public_html}
- directory on the local machine.
- end lisp
- subsection Example: complex publishing configuration
- This more complicated example publishes an entire website, including
- Org files converted to HTML, image files, Emacs Lisp source code, and
- style sheets. The publishing directory is remote and private files are
- excluded.
- To ensure that links are preserved, care should be taken to replicate
- your directory structure on the web server, and to use relative file
- paths. For example, if your Org files are kept in
- file{~/images}, you would link to an image with
- example
- file:../images/myimage.png
- c
- On the web server, the relative path to the image should be the
- same. You can accomplish this by setting up an "images" folder in the
- right place on the web server, and publishing images to it.
- end lisp
- section Triggering publication
- Once properly configured, Org can publish with the following commands:
- kbd
- orgcmd{C-c C-e P p,org-publish-current-project}
- Publish the project containing the current file.
- orgcmd{C-c C-e P a,org-publish-all}
- Publish every project.
- vindex org-publish-use-timestamps-flag
- Org uses timestamps to track when a file has changed. The above functions
- normally only publish changed files. You can override this and force
- publishing of all files by giving a prefix argument to any of the commands
- above, or by customizing the variable
- code{#+SETUPFILE:} or
- node Working with source code
- cindex Schulte, Eric
- cindex source code, working with
- Source code here refers to any code typed in Org mode documents. Org can
- manage source code in any Org file once such code is tagged with begin and
- end markers. Working with source code begins with tagging source code
- blocks. Tagged
- samp{src} code block in emacs-lisp:
- end example
- Org can take the code in the block between the
- samp{#+END_SRC} tags, and format, compile, execute, and show the results.
- Org can simplify many housekeeping tasks essential to modern code
- maintenance. That's why these blocks in Org mode literature are sometimes
- referred to as
- samp{live} they want each
- block by tweaking the headers for compiling, execution, extraction.
- Org's
- samp{src} code blocks between samp{#+END_SRC}
- For editing
- samp{src} code blocks into compilable
- source files (in a conversion process known as
- samp{src} code blocks and the
- text for output to a variety of formats with native syntax highlighting.
- For executing the source code in the
- samp{src} code blocks is
- passing variables, functions, and results between
- samp{src} blocks are in
- different source code languages. The integration extends to linking the
- debugger's error messages to the line in the
- samp{Org Babel}.
- In literate programming, the main appeal is code and documentation
- co-existing in one file. Org mode takes this several steps further. First
- by enabling execution, and then by inserting results of that execution back
- into the Org file. Along the way, Org provides extensive formatting
- features, including handling tables. Org handles multiple source code
- languages in one file, and provides a common syntax for passing variables,
- functions, and results between
- menu
- * Structure of code blocks:: Code block syntax described
- * Editing source code:: Language major-mode editing
- * Exporting code blocks:: Export contents and/or results
- * Extracting source code:: Create pure source code files
- * Evaluating code blocks:: Place results of evaluation in the Org mode buffer
- * Library of Babel:: Use and contribute to a library of useful code blocks
- * Languages:: List of supported code block languages
- * Header arguments:: Configure code block functionality
- * Results of evaluation:: How evaluation results are handled
- * Noweb reference syntax:: Literate programming in Org mode
- * Key bindings and useful functions:: Work quickly with code blocks
- * Batch execution:: Call functions from the command line
- node Structure of code blocks
- cindex code block, structure
- cindex #+NAME
- samp{src} block, and directly inline. Both specifications are shown below.
- A
- example
- #+NAME: <name>
- #+BEGIN_SRC <language> <switches> <header arguments>
- <body>
- #+END_SRC
- pxref{Easy templates}) speeds up creating
- cindex source code, inline
- An inline code block conforms to this structure:
- {<body>
- end example
- or
- {<body>
- end example
- code
- samp{src} block so it can be called, like a function,
- from other
- pxref{The spreadsheet}) can use the name to reference a
- cindex #+NAME
- item #+END_SRC
- Mandatory. They mark the start and end of a block that Org requires. The
- cindex begin block, end block
- xref{Languages}, for identifiers of supported
- languages.
- item <switches>
- Optional. Switches provide finer control of the code execution, export, and
- format (see the discussion of switches in
- cindex source code, switches
- pxref{Header arguments}). Using Org's properties
- feature, header arguments can be selectively applied to the entire buffer or
- specific sub-trees of the Org document.
- item <body>
- Source code in the dialect of the specified language identifier.
- node Editing source code
- cindex code block, editing
- vindex org-edit-src-auto-save-idle-delay
- kindex C-c '
- samp{src} code block, ready for any
- edits.
- key{C-x C-s} saves the buffer and updates the contents of the Org buffer.
- Set
- code{org-edit-src-turn-on-auto-save} to auto-save this buffer into a
- separate file using
- kbd{C-c '} to close the major-mode buffer and return back to the Org buffer.
- While editing the source code in the major-mode, the
- code{org-edit-structure}.
- code
- code{<lang>-mode} exists, where
- item org-src-window-setup
- For specifying Emacs window arrangement when the new edit buffer is created.
- cindex indentation, in source blocks
- Default is
- code{nil}, source code is aligned with the
- leftmost column. No lines are modified during export or tangling, which is
- very useful for white-space sensitive languages, such as Python.
- code{nil}, Org returns to the edit buffer without further prompts. The
- default prompts for a confirmation.
- code{org-src-fontify-natively} to non-
- emph{Org} buffer. Fontification of
- code{org-block} for specific languages,
- customize
- lisp
- (require 'color)
- (set-face-attribute 'org-block nil :background
- (color-darken-name
- (face-attribute 'default :background) 3))
- (setq org-src-block-faces '(("emacs-lisp" (:background "#EEE2FF"))
- ("python" (:background "#E5FFB8"))))
- node Exporting code blocks
- cindex code block, exporting
- emph{code} from the code blocks, just the
- emph{both} the code and the
- results of the code block evaluation, or
- emph{code} for most languages. For some languages, such as
- emph{results}. To export just the body of
- code blocks,
- pxref{Exporting}.
- The
- subsubheading Header arguments:
- code
- code{:exports}, src header argument
- ref{Literal examples} for more.
- item :exports both
- Org exports both the code block and the results.
- end table
- code{:eval never-export} (
- code{org-export-use-babel} variable to
- code{:eval never-export}
- (
- code{org-export-babel-evaluate}
- to
- samp{src} code block evaluations during exports is not for
- security but for avoiding any delays due to recalculations, such as calls to
- a remote database.
- Org never evaluates code blocks in commented sub-trees when exporting
- (
- pxref{Export settings}).
- section Extracting source code
- cindex source code, extracting
- emph{woven} with code and documentation,
- and on export, the code is
- samp{src} code blocks, it expands, merges, and transforms
- them. Then Org recomposes them into one or more separate files, as
- configured through the options. During this
- pxref{Noweb reference syntax}).
- table
- cindex
- item :tangle no
- By default, Org does not tangle the
- item :tangle yes
- Org extracts the contents of the code block for the tangled output. By
- default, the output file name is the same as the Org file but with a file
- extension derived from the language identifier of the
- item :tangle filename
- Override the default file name with this one for the tangled output.
- kindex C-c C-v t
- table
- item org-babel-tangle
- Tangle the current file. Bound to
- samp{src} code block.
- kbd{C-c C-v f}.
- subsubheading Hooks
- code
- code{org-babel-tangle}, making it
- suitable for post-processing, compilation, and evaluation of code in the
- tangled files.
- subsubheading Jumping between code and Org
- Debuggers normally link errors and messages back to the source code. But for
- tangled files, we want to link back to the Org file, not to the tangled
- source file. To make this extra jump, Org uses
- code{padline} (
- code{comments} (
- code{link}, which makes Org insert links to the Org file.
- section Evaluating code blocks
- cindex source code, evaluating
- ref{Code
- evaluation security}.
- Org captures the results of the
- samp{src} code block. The insertion
- point is after a newline and the
- code{#+RESULTS} label if one is not already there.
- By default, Org enables only samp{src} code blocks for
- execution. See
- kindex C-c C-c
- Org provides many ways to execute kbd{C-c C-c} or
- samp{src} code block
- code{org-babel-no-eval-on-ctrl-c-ctrl-c} can be used to remove code
- evaluation from the
- code{org-babel-execute-src-block} function, which executes the code in the
- block, collects the results, and inserts them in the buffer.
- footnote{Actually, the constructs call_<name>()
- and src_<lang>} are not evaluated when they appear in a keyword line
- (i.e. lines starting with pxref{In-buffer settings}).}
- from an Org mode buffer or a table. Org can call the named
- pxref{Library of Babel}). Whether inline syntax or the
- code{org-babel-inline-result-wrap}, which by default is set to
- code{#+CALL:} is
- end example
- The syntax for inline named code block is
- end example
- code
- pxref{Structure of
- code blocks}).
- code{#+CALL:} line that passes
- code{double}, which declares the header argument
- code{#+CALL: double(n=4)}. Note how this function call syntax is
- different from the header argument syntax.
- samp{src} code block using
- the header argument syntax. Inside header arguments apply to code block
- evaluation. For example,
- code{STDOUT} during code execution of that block. Note how this header
- argument syntax is different from the function call syntax.
- code{:results html} wraps the results in a
- code{#+CALL:} lines,
- end table
- section Library of Babel
- cindex source code, library
- samp{doc}
- directory of Org mode installation. For remote code block evaluation syntax,
- kindex C-c C-v i
- For any user to add code to the library, first save the code in regular
- code{org-babel-lob-ingest}, which is bound to
- node Languages
- cindex babel, languages
- cindex code block, languages
- Org supports the following languages for the
- multitable
- headitem tab tab tab
- item Asymptote tab Awk
- item C tab C++
- item Clojure tab CSS
- item D tab ditaa
- item Graphviz tab Emacs Calc
- item Emacs Lisp tab Fortran
- item gnuplot tab Haskell
- item Java tab Javascript
- item LaTeX tab Ledger
- item Lisp tab Lilypond
- item Lua tab MATLAB
- item Mscgen tab Objective Caml
- item Octave tab Org mode
- item Oz tab Perl
- item Plantuml tab Processing.js
- item Python tab R
- item Ruby tab Sass
- item Scheme tab GNU Screen
- item Sed tab shell
- item SQL tab SQLite
- end multitable
- Additional documentation for some languages are at
- code{emacs-lisp} is enabled for evaluation. To enable or
- disable other languages, customize the
- code{emacs-lisp}, and enabled
- for
- lisp
- (org-babel-do-load-languages
- 'org-babel-load-languages
- '((emacs-lisp . nil)
- (R . t)))
- code{require} statement. For example, the
- following enables execution of
- lisp
- (require 'ob-clojure)
- node Header arguments
- cindex code block, header arguments
- menu
- * Using header arguments:: Different ways to set header arguments
- * Specific header arguments:: List of header arguments
- node Using header arguments
- menu
- * System-wide header arguments:: Set globally, language-specific
- * Language-specific header arguments:: Set in the Org file's headers
- * Header arguments in Org mode properties:: Set in the Org file
- * Language-specific mode properties::
- * Code block specific header arguments:: The most commonly used method
- * Arguments in function calls:: The most specific level, takes highest priority
- node System-wide header arguments
- vindex org-babel-default-header-args
- System-wide values of header arguments can be specified by adapting the
- cindex
- cindex
- cindex
- cindex
- cindex
- example
- :session => "none"
- :results => "replace"
- :exports => "code"
- :cache => "no"
- :noweb => "no"
- code{:noweb} header arguments to
- code{:noweb} references by default.
- end lisp
- subsubheading Language-specific header arguments
- Each language can have separate default header arguments by customizing the
- variable code{<lang>} is
- the name of the language. For details, see the language-specific online
- documentation at
- node Header arguments in Org mode properties
- code{#+PROPERTY:} lines
- anywhere in the Org mode file (
- samp{R} code blocks to
- samp{R} code blocks execute in the same session. Setting
- code{silent} ignores the results of executions for all
- blocks, not just
- example
- #+PROPERTY: header-args:R :session *R*
- #+PROPERTY: header-args :results silent
- vindex org-use-property-inheritance
- Header arguments set through Org's property drawers (
- code{org-use-property-inheritance} setting.
- In this example, code{yes} for all code blocks in
- the sub-tree starting with
- example
- * sample header
- :PROPERTIES:
- :header-args: :cache yes
- :END:
- kindex C-c C-x p
- code{org-set-property} function, bound to
- code{org-babel-default-header-args}.
- subsubheading Language-specific mode properties
- Language-specific header arguments are also read from properties
- code{<lang>} is the language identifier.
- For example,
- end example
- would force separate sessions for clojure blocks in Heading and Subheading,
- but use the same session for all
- node Code block specific header arguments
- samp{src} code block level, on
- the
- code{org-babel-default-header-args} variable, and also
- those set as header properties.
- In the following example, setting code{silent} makes it
- ignore results of the code execution. Setting code{code}
- exports only the body of the LaTeX{}.:
- end example
- The same header arguments in an inline
- example
- src_haskell[:exports both]}
- code{#+HEADER:} on
- each line. Note that Org currently accepts the plural spelling of
- cindex #+HEADER:
- Multi-line header arguments on an unnamed
- example
- #+HEADER: :var data1=1
- #+BEGIN_SRC emacs-lisp :var data2=2
- (message "data1:%S, data2:%S" data1 data2)
- #+END_SRC
- #+RESULTS:
- : data1:1, data2:2
- samp{src} code block:
- end example
- subsubheading Arguments in function calls
- Header arguments in function calls are the most specific and override all
- other settings in case of an overlap. They get the highest priority. Two
- code{#+CALL:} lines, see
- code{:exports results} header argument is applied to the
- evaluation of the
- example
- #+CALL: factorial(n=5) :exports results
- code{:session special} header argument is applied to the
- evaluation of
- example
- #+CALL: factorial[:session special](n=5)
- node Specific header arguments
- samp{src} code blocks. A header argument is specified with an initial
- colon followed by the argument's name in lowercase. Common header arguments
- are:
- samp{src} code blocks
- * results:: Specify results type; how to collect
- * file:: Specify a path for output file
- * file-desc:: Specify a description for file results
- * file-ext:: Specify an extension for file output
- * output-dir:: Specify a directory for output file
- * dir:: Specify the default directory for code block execution
- * exports:: Specify exporting code, results, both, none
- * tangle:: Toggle tangling; or specify file name
- * mkdirp:: Toggle for parent directory creation for target files during tangling
- * comments:: Toggle insertion of comments in tangled code files
- * padline:: Control insertion of padding lines in tangled code files
- * no-expand:: Turn off variable assignment and noweb expansion during tangling
- * session:: Preserve the state of code evaluation
- * noweb:: Toggle expansion of noweb references
- * noweb-ref:: Specify block's noweb reference resolution target
- * noweb-sep:: String to separate noweb references
- * cache:: Avoid re-evaluating unchanged code blocks
- * sep:: Delimiter for writing tabular results outside Org
- * hlines:: Handle horizontal lines in tables
- * colnames:: Handle column names in tables
- * rownames:: Handle row names in tables
- * shebang:: Make tangled files executable
- * tangle-mode:: Set permission of tangled files
- * eval:: Limit evaluation of specific code blocks
- * wrap:: Mark source block evaluation results
- * post:: Post processing of results of code block evaluation
- * prologue:: Text to prepend to body of code block
- * epilogue:: Text to append to body of code block
- ref{Languages}.
- subsubsection
- cindex
- code{:var} for passing arguments to
- samp{src} code blocks vary by the source language
- and are covered in the language-specific documentation. The syntax for
- pxref{var, Emacs Lisp evaluation of variables}). References are
- names from the Org file from the lines code{#+RESULTS:}.
- References can also refer to tables, lists,
- samp{src} code blocks, or the results of execution of
- pxref{cache}).
- Argument values are indexed like arrays (
- samp{src} code blocks
- using the
- example
- :var name=assign
- code{assign} is a literal value, such as a string
- samp{9}, a reference to a table, a list, a literal example, another
- code block (with or without arguments), or the results from evaluating a code
- block.
- Here are examples of passing values by reference:
- dfn
- code{#+NAME:} line
- end example
- code{#+NAME:} line. Note that only the top level
- list items are passed along. Nested list items are ignored.
- end example
- code{#+NAME:},
- optionally followed by parentheses
- end example
- samp{src} code block name, as assigned by
- samp{src} code block name using standard function call syntax
- end example
- code{#+NAME:} line
- end example
- subsubheading Indexable variable values
- Indexing variable values enables referencing portions of a variable. Indexes
- are 0 based with negative values counting backwards from the end. If an
- index is separated by
- emph{before} other
- table-related header arguments are applied, such as
- code{:colnames} and
- code{example-table} to the variable
- example
- #+NAME: example-table
- | 1 | a |
- | 2 | b |
- | 3 | c |
- | 4 | d |
- #+BEGIN_SRC emacs-lisp :var data=example-table[0,-1]
- data
- #+END_SRC
- #+RESULTS:
- : a
- code{:}, in which case the entire inclusive range is referenced. For
- example the following assigns the middle three rows of
- code{data}.
- end example
- To pick the entire range, use an empty index, or the single character
- code{0:-1} does the same thing. Example below shows how to
- reference the first column only.
- end example
- Index referencing can be used for tables and code blocks. Index referencing
- can handle any number of dimensions. Commas delimit multiple dimensions, as
- shown below.
- end example
- code{(},
- code{'} or
- example
- #+BEGIN_SRC sh :var filename=(buffer-file-name) :exports both
- wc -w $filename
- #+END_SRC
- example
- #+NAME: table
- | (a b c) |
- #+HEADER: :var data=table[0,0]
- #+BEGIN_SRC perl
- $data
- #+END_SRC
- #+RESULTS:
- : (a b c)
- node results
- code{:results}
- code{:results}, src header argument
- There are four classes of samp{src}
- code block can take only one option per class.
- bullet
- b{collection} for how the results should be collected from the
- item
- item
- item
- samp{src} code
- block
- subsubheading Collection
- Collection options specify the results. Choose one of the options; they are
- mutually exclusive.
- bullet
- code{value}
- Default. Functional mode. Result is the value returned by the last
- statement in the
- code{return} statement in the
- code{:results value}.
- code{output}
- Scripting mode. Result is collected from STDOUT during execution of the code
- in the code{:results output}.
- subsubheading Type
- Type tells what result types to expect from the execution of the code
- block. Choose one of the options; they are mutually exclusive. The default
- behavior is to automatically determine the result type.
- bullet
- code{table},
- code{:results
- value table}.
- code{list}
- Interpret the results as an Org list. If the result is a single value,
- create a list of one element.
- code{scalar},
- code{:results value verbatim}.
- code{file}
- Interpret as path to a file. Inserts a link to the file. Usage example:
- end itemize
- samp{src} code
- block. Choose one of the options; they are mutually exclusive. The default
- follows from the type specified above.
- bullet
- code{raw}
- Interpreted as raw Org mode. Inserted directly into the buffer. Aligned if
- it is a table. Usage example:
- item
- code{BEGIN_SRC org} block. For comma-escape, either
- code{:results
- value org}.
- code{html}
- Results enclosed in a
- code{:results value html}.
- code{latex}
- Results enclosed in a
- code{:results value latex}.
- code{code}
- Result enclosed in a
- code{:results value code}.
- code{pp}
- Result converted to pretty-print source code. Enclosed in a
- code{:results value pp}.
- code{drawer}
- Result wrapped in a RESULTS drawer. Useful for containing
- code{org} results for later scripting and automated processing. Usage
- example:
- end itemize
- itemize
- item
- code{:results output silent}.
- code{replace}
- Default. Insert results in the Org buffer. Remove previous results. Usage
- example:
- item
- code{:results output append}.
- code{prepend}
- Prepend results to the Org buffer. Latest results are at the top. Does not
- remove previous results. Usage example:
- end itemize
- subsubsection
- cindex
- code{:file} that saves the results of execution of the code
- block. The
- code{[[file:]]} link (
- samp{R}, samp{ditaa}, and
- code{:file} contents.
- subsubsection
- ref{Link format}) it inserts in the Org file. If the
- node file-ext
- code{:file-ext}
- code{:file-ext}, src header argument
- File name extension for the output file. Org generates the file's complete
- name, and extension by combining code{#+NAME:} of the
- source block, and the
- code{:file} header argument.
- subsubsection
- cindex
- code{:output-dir} for the results file. Org accepts an
- absolute path (beginning with
- code{/}). The value can be combined with
- ref{file} or
- node dir
- code{:dir} and remote execution
- code{:dir}, src header argument
- While the
- code{:dir} specifies the default directory during
- code{:dir path}
- temporarily has the same effect as changing the current directory with
- code{:dir}. Under the
- surface,
- code{default-directory}.
- When using code{:file myfile.jpg}
- or
- samp{Work} folder of the home
- directory (notice tilde is expanded):
- end example
- samp{src} code block on a remote machine, supply a remote s
- directory name using
- example
- #+BEGIN_SRC R :file plot.png :dir /dandyakuba.princeton.edu:
- plot(1:10, main=system("hostname", intern=TRUE))
- #+END_SRC
- samp{Tramp}. Org constructs the remote path to the file name from
- code{default-directory}, as illustrated here:
- end example
- itemize
- item
- When code{:session}, Org sets the starting
- directory for a new session. But Org will not alter the directory of an
- already existing session.
- code{:dir} with code{:exports
- both} to avoid Org inserting incorrect links to remote files. That is because
- Org does not expand
- end itemize
- subsubsection
- cindex
- code{:exports} header argument is to specify if that part of the Org
- file is exported to, say, HTML or
- code{:exports} affects only
- itemize
- item
- code{:exports code}.
- code{results}
- The results of evaluation of the code is included in the exported file.
- Example:
- item
- code{:exports both}.
- code{none}
- Neither the code nor the results of evaluation is included in the exported
- file. Whether the code is evaluated at all depends on other
- options. Example:
- end itemize
- subsubsection
- cindex
- code{:tangle} header argument specifies if the
- itemize
- item
- samp{src} code block to source file. The file name for the
- source file is derived from the name of the Org file, and the file extension
- is derived from the source code language identifier. Example:
- item
- code{:tangle no}.
- samp{src} code block to source file whose file name is derived
- from any string passed to the
- code{:tangle path}.
- node mkdirp
- code{:mkdirp}
- code{:mkdirp}, src header argument
- The
- code{yes} enables directory creation
- and
- node comments
- code{:comments}
- code{:comments}, src header argument
- Controls inserting comments into tangled files. These are above and beyond
- whatever comments may already exist in the
- itemize
- item
- item
- samp{src} code block in comments. Include links pointing back to
- the place in the Org file from where the code was tangled.
- code{yes}
- Kept for backward compatibility; same as ``link''.
- code{org}
- Nearest headline text from Org file is inserted as comment. The exact text
- that is inserted is picked from the leading context of the source block.
- code{both}
- Includes both ``link'' and ``org'' comment options.
- code{noweb}
- Includes ``link'' comment option, expands noweb references, and wraps them in
- link comments inside the body of the
- end itemize
- subsubsection
- cindex
- samp{src} code blocks in the tangled
- file.
- bullet
- code{yes}
- Default. Insert a newline before and after each
- item
- samp{src} code blocks.
- node no-expand
- code{:no-expand}
- code{:no-expand}, src header argument
- By default Org expands
- code{:no-expand} header argument turns off such expansions. Note that one
- side-effect of expansion by
- code{:var} (
- pxref{Noweb reference syntax}).
- Some of these expansions may cause premature assignment, hence this option.
- This option makes a difference only for tangling. It has no effect when
- exporting since
- node session
- code{:session}
- code{:session}, src header argument
- The
- samp{src} code blocks with the same
- session name in the same interpreter process.
- bullet
- code{none}
- Default. Each
- item
- code{none} turns that string into the name of that
- session. For example, samp{mysession}.
- If
- end itemize
- subsubsection
- cindex
- code{:noweb} header argument controls expansion of ``noweb'' syntax
- references (
- itemize
- item
- item
- samp{src} code
- block when evaluating, tangling, or exporting.
- code{tangle}
- Expansion of ``Noweb'' syntax references in the body of the
- item
- samp{src} code
- block when evaluating or tangling. No expansion when exporting.
- code{strip-export}
- Expansion of ``Noweb'' syntax references in the body of the
- item
- samp{src} code
- block only before evaluating.
- subsubheading Noweb prefix lines
- Noweb insertions now honor prefix characters that appear before
- code{<<example>>} noweb reference appears behind the SQL comment
- syntax, each line of the expanded noweb reference will be commented.
- This
- example
- -- <<example>>
- example
- -- this is the
- -- multi-line body of example
- node noweb-ref
- code{:noweb-ref}
- code{:noweb-ref}, src header argument
- When expanding ``noweb'' style references, Org concatenates
- code{:noweb-ref} header argument.
- For simple concatenation, set this
- footnote{(For the example to work, turn on the property inheritance for
- pxref{Property inheritance}).}.
- {print $5 " " $6
- {print $2
- end example
- subsubsection
- cindex
- code{:noweb-sep} (
- node cache
- code{:cache}
- code{:cache}, src header argument
- The
- samp{src} code blocks that
- have not changed since the previous run. To benefit from the cache and avoid
- redundant evaluations, the source block must have a result already present in
- the buffer, and neither the header arguments (including the value of
- samp{src} blocks are pure functions,
- that is functions that return the same value for the same input arguments
- (
- code{:cache} is used for a
- pxref{Noweb reference syntax}). For
- reasons why, see
- code{:cache} header argument can have one of two values:
- code{no}.
- bullet
- code{no}
- Default. No caching of results;
- item
- samp{src} code block and
- arguments passed to it. This hash value is packed on the
- samp{src} code block. When hash values mismatch, Org evaluates the
- code{#+RESULTS:} line.
- code{caller} runs only if
- the result from
- example
- #+NAME: random
- #+BEGIN_SRC R :cache yes
- runif(1)
- #+END_SRC
- #+RESULTS[a2a72cd647ad44515fab62e144796432793d68e1]: random
- 0.4659510825295
- #+NAME: caller
- #+BEGIN_SRC emacs-lisp :var x=random :cache yes
- x
- #+END_SRC
- #+RESULTS[bec9c8724e397d5df3b696502df3ed7892fc4f5f]: caller
- 0.254227238707244
- node sep
- code{:sep}
- code{:sep}, src header argument
- The
- pxref{file}) external to Org mode. Org defaults to tab delimited
- output. The function, kbd{C-c
- C-o}, also uses
- node hlines
- code{:hlines}
- code{:hlines}, src header argument
- In-between each table row or below the table headings, sometimes results have
- horizontal lines, which are also known as hlines. The
- code{yes} accepts such lines. The default is
- itemize
- item
- code{hline} symbols raise unbound variable errors.
- The default is
- example
- #+NAME: many-cols
- | a | b | c |
- |---+---+---|
- | d | e | f |
- |---+---+---|
- | g | h | i |
- #+NAME: echo-table
- #+BEGIN_SRC python :var tab=many-cols
- return tab
- #+END_SRC
- #+RESULTS: echo-table
- | a | b | c |
- | d | e | f |
- | g | h | i |
- item
- code{:hlines yes}, the example shows hlines unchanged.
- end example
- node colnames
- code{:colnames}
- code{:colnames}, src header argument
- The code{yes},
- code{nil} values. The default value is
- itemize
- item
- example
- #+NAME: less-cols
- | a |
- |---|
- | b |
- | c |
- #+NAME: echo-table-again
- #+BEGIN_SRC python :var tab=less-cols
- return [[val + '*' for val in row] for row in tab]
- #+END_SRC
- #+RESULTS: echo-table-again
- | a |
- |----|
- | b* |
- | c* |
- pxref{var, Indexable variable values}) because column names are not removed
- for indexing.
- code{no}
- Do not pre-process column names.
- code{yes}
- For an input table that has no hlines, process it like the
- end itemize
- subsubsection
- cindex
- code{:rownames} header argument can take on values
- code{no} values. The default is code{emacs-lisp}
- code blocks ignore
- itemize
- item
- item
- example
- #+NAME: with-rownames
- | one | 1 | 2 | 3 | 4 | 5 |
- | two | 6 | 7 | 8 | 9 | 10 |
- #+NAME: echo-table-once-again
- #+BEGIN_SRC python :var tab=with-rownames :rownames yes
- return [[val + 10 for val in row] for row in tab]
- #+END_SRC
- #+RESULTS: echo-table-once-again
- | one | 11 | 12 | 13 | 14 | 15 |
- | two | 16 | 17 | 18 | 19 | 20 |
- pxref{var, Indexable variable values}) because row names are not removed
- for indexing.
- node shebang
- code{:shebang}
- code{:shebang}, src header argument
- This header argument can turn results into executable script files. By
- setting the
- code{:shebang "#!/bin/bash"}), Org inserts that string as the first line of
- the tangled file that the
- node tangle-mode
- code{:tangle-mode}
- code{:tangle-mode}, src header argument
- The
- code{set-file-modes}. For example, to make read-only
- tangled file, use
- code{:tangle-mode (identity #o755)}.
- On code{shebang} (
- code{tangle-mode} header argument.
- When multiple
- code{tangle-mode} header arguments, Org's behavior is
- undefined.
- subsubsection
- cindex
- code{:eval} header argument can limit evaluation of specific code
- blocks. It is useful for protection against evaluating untrusted
- code{org-confirm-babel-evaluate} setting.
- code
- samp{src} code block.
- samp{src} code block.
- samp{src} code block when exporting, yet the user
- can evaluate this source block interactively.
- samp{src} code block.
- code{:eval} header argument is not set for a source block, then Org
- determines whether to evaluate from the
- pxref{Code evaluation security}).
- subsubsection
- cindex
- code{:wrap} header argument marks the results block by appending strings
- to code{#+END_}. If no string is specified, Org wraps
- the results in a
- node post
- code{:post}
- code{:post}, src header argument
- The
- samp{src} block evaluation. When
- code{*this*} variable for easy passing to
- samp{src}
- code blocks, or for even direct Emacs Lisp code execution.
- The following two examples illustrate
- code{#+ATTR_LATEX:} line using
- example
- #+name: attr_wrap
- #+begin_src sh :var data="" :var width="\\textwidth" :results output
- echo "#+ATTR_LATEX: :width $width"
- echo "$data"
- #+end_src
- #+header: :file /tmp/it.png
- #+begin_src dot :post attr_wrap(width="5cm", data=*this*) :results drawer
- digraph
- }
- #+end_src
- #+RESULTS:
- :RESULTS:
- #+ATTR_LATEX :width 5cm
- [[file:/tmp/it.png]]
- :END:
- code{:colnames} in
- samp{src} code blocks.
- end example
- subsubsection
- cindex
- code{prologue} header argument is for appending to the top of the code
- block for execution. For example, a clear or reset code at the start of new
- execution of a code{reset} for
- code{:prologue "reset"}. See also
- lisp
- (add-to-list 'org-babel-default-header-args:gnuplot
- '((:prologue . "reset")))
- node epilogue
- code{:epilogue}
- code{:epilogue}, src header argument
- The value of the
- ref{prologue}.
- section Results of evaluation
- cindex source code, results of evaluation
- How Org handles results of a code block execution depends on many header
- arguments working together. Here is only a summary of these. For an
- enumeration of all the header arguments that affect results, see
- code{:session}
- or not? Orthogonal to that is if the expected result is a
- code{:results output}, which is a concatenation of output from
- start to finish of the
- multitable
- item b{Non-session} b{Session}
- code{:results value} tab value of last expression
- code{:results output} tab concatenation of interpreter output
- code{:session} and non-session, the
- subsection Non-session
- code{:results value}
- code{:results}, src header argument
- Default. Org gets the value by wrapping the code in a function definition in
- the language of the code{:results
- value}, code should execute like a function and return a value. For
- languages like Python, an explicit
- code{:results value}.
- This is one of four evaluation contexts where Org automatically wraps the
- code in a function definition.
- code{:results output}
- code{:results}, src header argument
- For
- subsection Session
- code{:results value}
- code{:results}, src header argument
- For code{:session}, Org passes the code to an
- interpreter running as an interactive Emacs inferior process. So only
- languages that provide interactive evaluation can have session support. Not
- all languages provide this support, such as samp{ditaa}. Even
- those that do support, such as samp{Haskell}, they impose
- limitations on allowable language constructs that can run interactively. Org
- inherits those limitations for those
- code{:session}.
- Org gets the value from the source code interpreter's last statement
- output. Org has to use language-specific methods to obtain the value. For
- example, from the variable samp{Python} and
- code{.Last.value} in
- subsubsection
- cindex
- code{:results output}, Org passes the code to the interpreter running as
- an interactive Emacs inferior process. Org concatenates whatever text output
- emitted by the interpreter to return the collection as a result. Note that
- this collection is not the same as collected from
- example
- #+BEGIN_SRC python :results output
- print "hello"
- 2
- print "bye"
- #+END_SRC
- #+RESULTS:
- : hello
- : bye
- example
- #+BEGIN_SRC python :results output :session
- print "hello"
- 2
- print "bye"
- #+END_SRC
- #+RESULTS:
- : hello
- : 2
- : bye
- code{:session} mode, the interactive interpreter receives and
- prints ``2''. Results show that.
- section Noweb reference syntax
- cindex syntax, noweb
- uref{http://www.cs.tufts.edu/~nr/noweb/}).
- end example
- For the header argument
- samp{src} code block before evaluation.
- For the header argument
- samp{src} code block before evaluation.
- The default is
- pxref{noweb-ref}).
- Org can handle naming of
- samp{src} code block, using ``noweb'' style references.
- For ``noweb'' style reference, append parenthesis to the code block name for
- arguments, as shown in this example:
- end example
- Note: Org defaults to
- samp{Ruby} where ``noweb'' syntax is equally valid characters. For
- example, code{:noweb yes} for
- languages where there is no risk of confusion.
- For faster tangling of large Org mode files, set
- code{t}.
- The speedup comes at the expense of not correctly resolving inherited values
- of the
- node Key bindings and useful functions
- cindex code block, key bindings
- Many common Org mode key sequences are re-bound depending on the context.
- Active key bindings in code blocks:
- columnfractions 0.25 0.75
- item tab
- kindex C-c C-o
- kbd{C-c C-o} code{org-babel-open-src-block-result}
- item key{up}} code{org-babel-load-in-session}
- item key{down}} code{org-babel-switch-to-session}
- multitable
- kindex C-c C-v p
- item r{or} tab
- kindex C-c C-v n
- item r{or} tab
- kindex C-c C-v e
- item r{or} tab
- kindex C-c C-v o
- item r{or} tab
- kindex C-c C-v v
- item r{or} tab
- kindex C-c C-v u
- item r{or} tab
- kindex C-c C-v g
- item r{or} tab
- kindex C-c C-v r
- item r{or} tab
- kindex C-c C-v b
- item r{or} tab
- kindex C-c C-v s
- item r{or} tab
- kindex C-c C-v d
- item r{or} tab
- kindex C-c C-v t
- item r{or} tab
- kindex C-c C-v f
- item r{or} tab
- kindex C-c C-v c
- item r{or} tab
- kindex C-c C-v j
- item r{or} tab
- kindex C-c C-v l
- item r{or} tab
- kindex C-c C-v i
- item r{or} tab
- kindex C-c C-v I
- item r{or} tab
- kindex C-c C-v z
- item r{or} tab
- kindex C-c C-v a
- item r{or} tab
- kindex C-c C-v h
- item r{or} tab
- kindex C-c C-v x
- item r{or} tab
- end multitable
- c columnfractions 0.25 0.75
- item tab
- c kbd{C-c C-v C-b} code{org-babel-execute-buffer}
- item tab
- c kbd{C-c C-v C-l} code{org-babel-lob-ingest}
- item tab
- c kbd{C-c C-v C-s} code{org-babel-execute-subtree}
- item tab
- c kbd{C-c C-v C-z} code{org-babel-switch-to-session}
- end multitable
- section Batch execution
- cindex source code, batch execution
- Org mode features, including working with source code facilities can be
- invoked from the command line. This enables building shell scripts for batch
- processing, running automated system tasks, and expanding Org mode's
- usefulness.
- The sample script shows batch processing of multiple files using
- example
- #!/bin/sh
- # -*- mode: shell-script -*-
- #
- # tangle files with org-mode
- #
- DIR=`pwd`
- FILES=""
- # wrap each argument in the code required to call tangle on it
- for i in $; do
- FILES="$FILES \"$i\""
- done
- emacs -Q --batch \
- --eval "(progn
- (require 'org)(require 'ob)(require 'ob-tangle)
- (mapc (lambda (file)
- (find-file (expand-file-name file \"$DIR\"))
- (org-babel-tangle)
- (kill-buffer)) '($FILES)))" 2>&1 |grep -i tangled
- node Miscellaneous
- menu
- * Completion:: M-TAB guesses completions
- * Easy templates:: Quick insertion of structural elements
- * Speed keys:: Electric commands at the beginning of a headline
- * Code evaluation security:: Org mode files evaluate inline code
- * Customization:: Adapting Org to changing tastes
- * In-buffer settings:: Overview of the #+KEYWORDS
- * The very busy C-c C-c key:: When in doubt, press C-c C-c
- * Clean view:: Getting rid of leading stars in the outline
- * TTY keys:: Using Org on a tty
- * Interaction:: With other Emacs packages
- * org-crypt:: Encrypting Org files
- node Completion
- cindex completion, of
- cindex completion, of TODO keywords
- cindex completion, of option keywords
- cindex completion, of property keys
- cindex
- cindex TODO keywords completion
- cindex option keyword completion
- cindex link abbreviations, completion of
- Org has in-buffer completions. Unlike minibuffer completions, which are
- useful for quick command interactions, Org's in-buffer completions are more
- suitable for content creation in Org documents. Type one or more letters and
- invoke the hot key to complete the text in-place. Depending on the context
- and the keys, Org will offer different types of completions. No minibuffer
- is involved. Such mode-specific hot keys have become an integral part of
- Emacs and Org provides several shortcuts.
- kbd
- key{TAB}
- key{TAB}
- Complete word at point
- bullet
- item
- After TeX{} symbols supported by the exporter.
- samp{*}, complete headlines in the current buffer so that they
- can be used in search links like
- item
- After
- code{org-tag-alist} (possibly set through the
- pxref{Setting tags}), or it is created
- dynamically from all tags used in the current buffer.
- samp{:} and not in a headline, complete property keys. The list
- of keys is constructed dynamically from all keys used in the current
- buffer.
- samp{[}, complete link abbreviations (
- item
- After samp{TYP_TODO} or
- file-specific
- kbd{M-
- item
- After
- item
- When the point is anywhere else, complete dictionary words using Ispell.
- end table
- section Easy templates
- cindex insertion, of templates
- With just a few keystrokes, Org's easy templates inserts empty pairs of
- structural elements, such as code{#+END_SRC}. Easy
- templates use an expansion mechanism, which is native to Org, in a process
- similar to
- kbd{kbd{kbd{samp{src} code
- block.
- kbd{l} key{TAB}}
- expands to:
- #+BEGIN_EXPORT latex
- #+END_EXPORT
- Org comes with these pre-defined easy templates:
- columnfractions 0.1 0.9
- kbd{s} code{#+BEGIN_SRC ... #+END_SRC}
- kbd{e} code{#+BEGIN_EXAMPLE ... #+END_EXAMPLE}
- kbd{q} code{#+BEGIN_QUOTE ... #+END_QUOTE}
- kbd{v} code{#+BEGIN_VERSE ... #+END_VERSE}
- kbd{c} code{#+BEGIN_CENTER ... #+END_CENTER}
- kbd{l} code{#+BEGIN_EXPORT latex ... #+END_EXPORT}
- kbd{L} code{#+LATEX:}
- kbd{h} code{#+BEGIN_EXPORT html ... #+END_EXPORT}
- kbd{H} code{#+HTML:}
- kbd{a} code{#+BEGIN_EXPORT ascii ... #+END_EXPORT}
- kbd{A} code{#+ASCII:}
- kbd{i} code{#+INDEX:} line
- kbd{I} code{#+INCLUDE:} line
- code{org-structure-template-alist}, whose docstring has additional details.
- section Speed keys
- vindex org-use-speed-commands
- code{org-use-speed-commands}. To trigger a Speed Key, the
- cursor must be at the beginning of an Org headline, before any of the stars.
- Org comes with a pre-defined list of Speed Keys;
- code{org-speed-commands-user}. For more details, see the variable's
- docstring.
- section Code evaluation and security issues
- Unlike plain text, running code comes with risk. Each
- table
- item Source code blocks
- Org evaluates
- samp{src} code block with the
- defopt org-confirm-babel-evaluate
- When
- code{nil}, Org executes code blocks without prompting the
- user for confirmation. When this option is set to a custom function, Org
- invokes the function with these two arguments: the source code language and
- the body of the code block. The custom function must return either a
- code{nil}, which determines if the user is prompted. Each
- source code language can be handled separately through this function
- argument.
- samp{ditaa} code +blocks
- without prompting:
- end lisp
- code{shell} and
- pxref{External
- links}). Because such code is not visible, these links have a potential
- risk. Org therefore prompts the user when it encounters such links. The
- customization variables are:
- end defopt
- end defopt
- pxref{The spreadsheet}) either through the
- emph{Emacs Lisp} interpreters.
- node Customization
- cindex customization
- cindex variables, for customization
- Org has more than 500 variables for customization. They can be accessed
- through the usual
- code{Org->Customization->Browse Org Group}. Org also has per-file
- settings for some variables (
- node In-buffer settings
- cindex in-buffer settings
- samp{#+}, followed by a keyword, a colon, and
- then a word for each setting. Org accepts multiple settings on the same
- line. Org also accepts multiple lines for a keyword. This manual describes
- these settings throughout. A summary follows here.
- vindex org-archive-location
- kbd
- samp{#+ARCHIVE} line, if any, in the Org file. The
- first archive location in the Org file also applies to any entries before it.
- The corresponding variable is
- item #+CATEGORY:
- Sets the category of the agenda file, which applies to the entire document.
- cindex property, COLUMNS
- Sets the default format for columns view. Org uses this format for column
- views where there is no
- item #+CONSTANTS: name1=value1 ...
- vindex org-table-formula
- Set file-local values for constants that table formulas can use. This line
- sets the local variable
- code{org-table-formula-constants}.
- item #+LINK: linkword replace
- code{#+LINK:} lines for more,
- code{org-link-abbrev-alist}.
- vindex org-highest-priority
- vindex org-default-priority
- This line sets the limits and the default for the priorities. All three
- must be either letters A--Z or numbers 0--9. The highest priority must
- have a lower ASCII number than the lowest priority.
- cindex #+SETUPFILE
- kbd{C-c
- C-c} on the settings line will also parse and load. Org also parses and
- loads the file during normal exporting process. Org parses the contents of
- this file as if it was included in the buffer. It can be another Org file.
- To visit the file,
- item #+STARTUP:
- code{org-startup-folded} with a default value of
- code{overview}.
- cindex
- cindex
- cindex
- cindex
- example
- overview
- r{all headlines}
- showall
- r{show even drawer contents}
- vindex org-startup-indented
- code{indent}, STARTUP keyword
- code{noindent}, STARTUP keyword
- Dynamic virtual indentation is controlled by the variable
- example
- indent code{org-indent-mode} turned on}
- noindent code{org-indent-mode} turned off}
- vindex org-startup-align-all-tables
- Aligns tables consistently upon visiting a file; useful for restoring
- narrowed table columns. The corresponding variable is
- code{nil} as default value.
- code{align}, STARTUP keyword
- code{noalign}, STARTUP keyword
- r{align all tables}
- noalign
- end example
- code{org-startup-with-inline-images}, with a default value
- cindex
- cindex
- example
- inlineimages
- r{don't show inline images on startup}
- vindex org-startup-with-latex-preview
- Whether Org should automatically convert
- code{org-startup-with-latex-preview}, which controls this setting,
- is set to
- cindex
- cindex
- example
- latexpreview LaTeX{} fragments}
- nolatexpreview LaTeX{} fragments}
- vindex org-log-done
- vindex org-log-repeat
- Logging the closing and reopening of TODO items and clock intervals can be
- configured using these options (see variables
- code{org-log-note-clock-out} and
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- cindex
- example
- logdone
- r{record timestamp and a note when DONE}
- nologdone
- r{record a time when reinstating a repeating item}
- lognoterepeat
- r{do not record when reinstating repeating item}
- lognoteclock-out
- r{don't record a note when clocking out}
- logreschedule
- r{record a note when scheduling time changes}
- nologreschedule
- r{record a timestamp when deadline changes}
- lognoteredeadline
- r{do not record when a deadline date changes}
- logrefile
- r{record a note when refiling}
- nologrefile
- r{store log into drawer}
- nologdrawer
- r{reverse the order of states notes}
- nologstatesreversed
- end example
- vindex org-odd-levels-only
- These options hide leading stars in outline headings, and indent outlines.
- The corresponding variables are
- code{org-odd-levels-only}, both with a default setting of
- code{showstars} and
- cindex
- cindex
- cindex
- cindex
- example
- hidestars
- r{show all stars on the headline}
- indent
- r{no virtual indents}
- odd
- r{show all outline levels}
- vindex org-put-time-stamp-overlays
- code{org-put-time-stamp-overlays} and
- cindex
- example
- customtime
- end example
- code{constants-unit-system}).
- code{constcgs}, STARTUP keyword
- code{constSI}, STARTUP keyword
- r{
- r{
- end example
- vindex org-footnote-auto-label
- code{org-footnote-define-inline},
- code{org-footnote-auto-adjust}.
- code{fninline}, STARTUP keyword
- code{nofninline}, STARTUP keyword
- code{fnlocal}, STARTUP keyword
- code{fnprompt}, STARTUP keyword
- code{fnauto}, STARTUP keyword
- code{fnconfirm}, STARTUP keyword
- code{fnplain}, STARTUP keyword
- code{fnadjust}, STARTUP keyword
- code{nofnadjust}, STARTUP keyword
- r{define footnotes inline}
- fnnoinline
- r{define footnotes near first reference, but not inline}
- fnprompt
- r{create
- r{offer automatic label for editing or confirmation}
- fnplain code{[1]}-like labels automatically}
- fnadjust
- r{do not renumber and sort automatically}
- cindex org-hide-block-startup
- To hide blocks on startup, use these keywords. The corresponding variable is
- cindex
- cindex
- example
- hideblocks
- r{Do not hide blocks on startup}
- cindex org-pretty-entities
- The display of entities as UTF-8 characters is governed by the variable
- cindex
- cindex
- example
- entitiespretty
- r{Leave entities plain}
- item #+TAGS: TAG1(c1) TAG2(c2)
- emph{fast tag selection} keys. The
- corresponding variable is
- cindex #+TBLFM
- samp{#+TBLFM:} lines. On table recalculation, Org applies only the
- first ref{Using multiple #+TBLFM
- lines} in
- item #+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+DATE:,
- itemx #+SELECT_TAGS:, #+EXCLUDE_TAGS:
- These lines provide settings for exporting files. For more details see
- item #+TODO: #+SEQ_TODO: #+TYP_TODO:
- code{org-todo-keywords}.
- node The very busy C-c C-c key
- kindex C-c C-c
- kbd{C-c C-c} key in Org serves many purposes depending on the context.
- It is probably the most over-worked, multi-purpose key combination in Org.
- Its uses are well-documented through out this manual, but here is a
- consolidated list for easy reference.
- minus
- item
- If the cursor is in one of the special
- item
- If the cursor is inside a table, realign the table. The table realigns even
- if automatic table editor is turned off.
- code{#+TBLFM} line, re-apply the formulas to
- the entire table.
- item
- If the cursor is on a
- item
- If the cursor is on a property line or at the start or end of a property
- drawer, offer property commands.
- emph{vice versa}.
- item
- If the cursor is in a plain list item with a checkbox, toggle the status
- of the checkbox.
- item
- If the cursor is on the
- item
- If the cursor is at a timestamp, fix the day name in the timestamp.
- node Clean view
- cindex hiding leading stars
- cindex odd-levels-only outlines
- emph{book-like} long documents, the effect is not as
- noticeable. Org provides an alternate stars and indentation scheme, as shown
- on the right in the following table. It uses only one star and indents text
- to line with the heading:
- group
- * Top level headline | * Top level headline
- ** Second level | * Second level
- *** 3rd level | * 3rd level
- some text | some text
- *** 3rd level | * 3rd level
- more text | more text
- * Another top level headline | * Another top level headline
- end example
- code{org-indent-mode}. Text lines
- that are not headlines are prefixed with spaces to vertically align with the
- headline textcode{org-indent-mode} also sets the
- code{visual-line-mode} and
- directly applied settings through
- code{org-indent-indentation-per-level} variable.
- Only one star on each headline is visible, the rest are masked with the same
- font color as the background. This font face can be configured with the
- code{org-indent-mode} sets
- code{t} and
- code{nil};
- code{org-indent-mode} for all files, customize the
- variable
- code{#+STARTUP} option as
- follows:
- end example
- Indent on startup makes Org use hard spaces to align text with headings as
- shown in examples below.
- item
- *
- Indent text to align with the headline.
- end example
- footnote{Also see the variable
- item
- emph{Hiding leading stars}
- code{org-hide-leading-stars}. For
- per-file preference, use these file
- example
- #+STARTUP: hidestars
- #+STARTUP: showstars
- example
- end group
- noindent
- r{(face)}
- Because Org makes the font color same as the background color to hide to
- stars, sometimes
- code{grey90} on a white
- background might mask the stars better.
- vindex org-odd-levels-only
- Using stars for only odd levels, 1, 3, 5,
- footnote{Because
- samp{LEVEL=3} has 4 stars, and so on}. For Org
- to properly handle this cleaner structure during edits and exports, configure
- the variable
- example
- #+STARTUP: odd
- #+STARTUP: oddeven
- kbd{M-x
- org-convert-to-odd-levels RET} and
- end enumerate
- section Using Org on a tty
- kbd{S-
- kbd{C-c .} chord.
- columnfractions 0.15 0.2 0.1 0.2
- b{Default} b{Alternative 1} b{Speed key} b{Alternative 2}
- kbd{S-tab key{TAB}} kbd{C}
- item key{left}} kbd{C-c C-x l} kbd{l} kbd{key{left}}
- kbd{M-S-tab tab tab
- kbd{M-tab tab tab key{Esc}
- item key{right}} kbd{C-c C-x R} kbd{R}
- item key{up}} kbd{C-c C-x u} kbd{ } kbd{key{up}}
- kbd{M-S-tab tab tab
- kbd{M-tab tab tab key{Esc}
- item key{down}} kbd{C-c C-x D} kbd{D}
- item key{RET}} kbd{C-c C-x c} kbd{ }
- item key{RET}} kbd{C-c C-x m} kbd{ } kbd{key{RET}}
- kbd{M-S-tab tab tab
- kbd{S-tab key{left}} kbd{ }
- item key{right}} kbd{C-c tab tab
- kbd{S-tab key{up}} kbd{ }
- item key{down}} kbd{C-c tab tab
- kbd{C-S-tab key{left}} kbd{ }
- item key{right}} kbd{C-c C-x tab tab
- node Interaction
- cindex packages, interaction with other
- Org's compatibility and the level of interaction with other Emacs packages
- are documented here.
- end menu
- subsection Packages that Org cooperates with
- asis
- file{calc.el}
- item
- pxref{The spreadsheet}). Org also uses Calc for embedded calculations.
- item
- cindex
- cindex Dominik, Carsten
- samp{M} for
- file{constants} package.
- Install version 2.0 of this package, available at
- code{constants-get} has been autoloaded. Installation instructions are in
- the file,
- item
- cindex
- cindex Dominik, Carsten
- Org mode can use CDLaTeX{} fragments
- into Org files (
- item
- cindex
- lisp
- (add-hook 'org-mode-hook
- (lambda () (imenu-add-to-menubar "Imenu")))
- vindex org-imenu-depth
- By default the Imenu index is two levels deep. Change the index depth using
- thes variable,
- item
- cindex
- cindex Ludlam, Eric M.
- Speedbar package creates a special Emacs frame for displaying files and index
- items in files. Org mode supports Speedbar; users can drill into Org files
- directly from the Speedbar. The
- cindex
- item
- kindex C-c C-c
- file{table.el}
- file{table.el}
- kbd{C-c '} to
- edit these tables in a special buffer, much like Org's
- table
- orgcmd{C-c ',org-edit-special}
- Edit a
- c
- file{table.el} table. If there is already a table at point, this
- command converts it between the
- code{org-convert-table}
- for details.
- end table
- subsection Packages that conflict with Org mode
- asis
- code{shift-selection-mode}
- code{shift-selection-mode} combines cursor motions with shift key
- to enlarge regions. Emacs sets this mode by default. This conflicts with
- Org's use of key{cursor}} commands to change timestamps, TODO
- keywords, priorities, and item bullet types, etc. Since key{cursor}}
- commands outside of specific contexts don't do anything, Org offers the
- variable
- item
- cindex
- cindex Storm, Kim. F.
- kbd{S-<cursor>} keys used by CUA mode. For
- Org to relinquish these bindings to CUA mode, configure the variable
- example
- S-UP result{} M-n
- S-LEFT result{} M-+
- C-S-LEFT result{} M-S-+
- vindex org-disputed-keys
- Yes, these are unfortunately more difficult to remember. To define a
- different replacement keys, look at the variable
- item email{larsignus.org}
- file{ecomplete.el}
- Ecomplete provides ``electric'' address completion in address header
- lines in message buffers. Sadly Orgtbl mode cuts ecompletes power
- supply: No completion happens when Orgtbl mode is enabled in message
- buffers while entering text in address header lines. If one wants to
- use ecomplete one should
- ref{Orgtbl mode}), but
- instead---after filling in the message headers---turn on Orgtbl mode
- manually when needed in the messages body.
- file{filladapt.el} by Kyle Jones
- file{filladapt.el}
- Org mode tries to do the right thing when filling paragraphs, list items and
- other elements. Many users reported problems using both
- lisp
- (add-hook 'org-mode-hook 'turn-off-filladapt-mode)
- item
- cindex
- key{TAB} key (binding to
- code{"\t"}) overrules YASnippet's access to this key. The following code
- fixed this problem:
- end lisp
- The latest version of yasnippet doesn't play well with Org mode. If the
- above code does not fix the conflict, first define the following function:
- end lisp
- Then tell Org mode to use that function:
- end lisp
- file{windmove.el} by Hovav Shacham
- file{windmove.el}
- This package also uses the
- kbd{S-
- lisp
- ;; Make windmove work in org-mode:
- (add-hook 'org-shiftup-final-hook 'windmove-up)
- (add-hook 'org-shiftleft-final-hook 'windmove-left)
- (add-hook 'org-shiftdown-final-hook 'windmove-down)
- (add-hook 'org-shiftright-final-hook 'windmove-right)
- item
- cindex
- kindex C-c /
- Viper uses
- code{org-sparse-tree}. You need to find
- another key for this command, or override the key in
- lisp
- (define-key viper-vi-global-user-map "C-c /" 'org-sparse-tree)
- end table
- section org-crypt.el
- file{org-crypt.el}
- code{org-decrypt-entry}
- Org crypt encrypts the text of an Org entry, but not the headline, or
- properties. Org crypt uses the Emacs EasyPG library to encrypt and decrypt.
- Any text below a headline that has a
- code{org-crypt-tag-matcher} variable.
- Suggested Org crypt settings in Emacs init file:
- end lisp
- Excluding the crypt tag from inheritance prevents encrypting previously
- encrypted text.
- appendix Hacking
- menu
- * Hooks:: How to reach into Org's internals
- * Add-on packages:: Available extensions
- * Adding hyperlink types:: New custom link types
- * Adding export back-ends:: How to write new export back-ends
- * Context-sensitive commands:: How to add functionality to such commands
- * Tables in arbitrary syntax:: Orgtbl for
- end menu
- section Hooks
- uref{http://orgmode.org/worg/org-configs/org-hooks.php}.
- section Add-on packages
- uref{http://orgmode.org}.
- See the
- uref{http://orgmode.org/worg/org-contrib/}.
- section Adding hyperlink types
- pxref{Hyperlinks}), and an interface
- for adding new link types. The example file,
- samp{[[man:printf][The printf manpage]]}:
- end lisp
- lisp
- (require 'org-man)
- noindent
- A review of
- enumerate
- code{(require 'org)} ensures
- item
- The samp{man} prefix.
- The call contains the function to call that follows the link type.
- vindex org-store-link-functions
- The next line adds a function to
- kbd{C-c l} in a buffer displaying a man page.
- code{org-man-command}. It has two options,
- code{woman}. Next is a function whose argument is the link
- path, which for man pages is the topic of the man command. To follow the
- link, the function calls the
- kbd{C-c l} constructs and stores the link.
- code{org-man-store-link}, which first checks
- if the
- code{nil}. Otherwise the function makes a link string by combining
- the
- code{org-store-link-props} with code{:link} properties. A
- kbd{C-c C-l} inserts the stored link.
- To define new link types, define a function that implements completion
- support with
- node Adding export back-ends
- cindex Export, writing back-ends
- Org's export engine makes it easy for writing new back-ends. The framework
- on which the engine was built makes it easy to derive new back-ends from
- existing ones.
- The two main entry points to the export engine are:
- code{org-export-define-derived-backend}. To grok these functions, see
- file{ox-beamer.el} for an example of deriving from an existing engine.
- For creating a new back-end from scratch, first set its name as a symbol in
- an alist consisting of elements and export functions. To make the back-end
- visible to the export dispatcher, set
- code{:options-alist}.
- For creating a new back-end from an existing one, set
- url{http://orgmode.org/worg/dev/org-export-reference.html, the Org Export
- Reference on Worg}.
- section Context-sensitive commands
- cindex add-ons, context-sensitive commands
- kbd{C-c C-c} (
- kbd{M-cursor} and
- node Tables in arbitrary syntax
- cindex tables, in other modes
- cindex Orgtbl mode
- Because of Org's success in handling tables with Orgtbl, a frequently asked
- feature is to Org's usability functions to other table formats native to
- other modem's, such as
- emph{translate} function that
- operates on a native Org
- code{orgstruct-mode} on, and then exporting the
- list locally to another format, such as HTML,
- menu
- * Radio tables:: Sending and receiving radio tables
- * A
- end menu
- subsection Radio tables
- code{BEGIN/END
- RECEIVE ORGTBL}. They have to appear as comments in the current mode. If
- the mode is C, then:
- end example
- cindex #+ORGTBL
- end example
- code{table_name} is the table's reference name, which is also used in the
- receiver lines, and the
- table
- item :skip N
- Skip the first N lines of the table. Hlines do count; include them if they
- are to be skipped.
- samp{skipcols}.
- noindent
- To keep the source table intact in the buffer without being disturbed when
- the source file is compiled or otherwise being worked on, use one of these
- strategies:
- bullet
- samp{} lines.
- samp{END} statement. For example
- TeX{} and {documentLaTeX{}.
- kbd{M-x
- orgtbl-toggle-comment RET} command makes toggling easy.
- node A
- subsection A
- cindex
- LaTeX{}, use the
- file{comment.sty}. To activate it, put
- {comment
- footnote{By default this works only for
- code{orgtbl-radio-table-templates} to
- install templates for other export formats.} with the command
- samp{salesfigures} is the name, the template inserts:
- example
- % BEGIN RECEIVE ORGTBL salesfigures
- % END RECEIVE ORGTBL salesfigures
- \begin}
- #+ORGTBL: SEND salesfigures orgtbl-to-latex
- | | |
- \end}
- noindent
- LaTeX{}-verbatim-environments
- The line
- code{orgtbl-to-latex} to convert the table to
- code{salesfigures}. Now
- the table is ready for data entry. It can even use spreadsheet
- featuressamp{#+TBLFM} line contains an odd number of dollar
- characters, this may cause problems with font-lock in
- code{comment} environment that is used to balance the dollar expressions.
- If you are using AUC
- code{comment} environment to the variable
- example
- % BEGIN RECEIVE ORGTBL salesfigures
- % END RECEIVE ORGTBL salesfigures
- \begin}
- #+ORGTBL: SEND salesfigures orgtbl-to-latex
- | Month | Days | Nr sold | per day |
- |-------+------+---------+---------|
- | Jan | 23 | 55 | 2.4 |
- | Feb | 21 | 16 | 0.8 |
- | March | 22 | 278 | 12.6 |
- #+TBLFM: $4=$3/$2;%.1f
- % $ (optional extra dollar to keep font-lock happy, see footnote)
- \end}
- noindent
- After editing,
- emph{splice} out the
- target table without the header and footer.
- {tabular{lrrr
- {1{c{Days
- {tabular
- {comment
- {comment
- end example
- The code{orgtbl-to-latex} is already part of
- Orgtbl mode and uses
- code{\hline}. For additional
- parameters to control output,
- table
- item :splice nil/t
- When non-
- code{nil}.
- code{%s} for the original
- field value. For example, to wrap each field value in dollar symbol, you
- could use
- code{:fmt (2 "$%s$" 4 "%s\\%%")}.
- In place of a string, a function of one argument can be used; the function
- must return a formatted string.
- code{%s} twice for
- inserting mantissa and exponent, for example {%s
- code{:efmt (2 "$%s\\times10^@{%s@}$" 4 "$%s\\cdot10^@{%s@}$")}. After
- code{fmt} will also be applied.
- Functions with two arguments can be supplied instead of strings. By default,
- no special formatting is applied.
- node Translator functions
- cindex HTML, and Orgtbl mode
- code{orgtbl-to-csv}
- (comma-separated values),
- code{orgtbl-to-latex}, code{orgtbl-to-texinfo},
- code{orgtbl-to-orgtbl}. They use the generic
- translator,
- samp{ORGTBL SEND} line take
- precedence over properties defined inside the function. For example, this
- overrides the default samp{\\}, with
- example
- #+ORGTBL: SEND test orgtbl-to-latex :lend " \\\\[2mm]"
- samp{!BTBL!} and
- samp{!BL!} and
- lisp
- (defun orgtbl-to-language (table params)
- "Convert the orgtbl-mode TABLE to language."
- (orgtbl-to-generic
- table
- (org-combine-plists
- '(:tstart "!BTBL!" :tend "!ETBL!" :lstart "!BL!" :lend "!EL!" :sep "\t")
- params)))
- noindent
- The documentation for the
- code{orgtbl-to-latex},
- code{hline}. The second argument is the property list consisting of
- parameters specified in the
- email{emacs-orgmodegnu.org}.
- subsection Radio lists
- cindex org-list-insert-radio-list
- Call the
- LaTeX{}, and Texinfo mode documents. Sending and
- receiving radio lists works is the same as for radio tables (
- cindex #+ORGLST
- minus
- item
- Use code{ORGTBL}.
- kbd{C-c C-c} works only on the first list item.
- code{org-list-to-latex},
- code{org-list-to-texinfo}. They use the
- LaTeX{} example:
- {comment
- {comment
- end example
- samp{a new house} inserts the translated
- node Dynamic blocks
- cindex dynamic blocks
- Org supports
- samp{src} code block, but the contents
- are updated automatically by a user function. For example,
- pxref{Clocking work
- time}).
- Dynamic blocks can have names and function parameters. The syntax is similar
- to
- cindex #+BEGIN:dynamic block
- end example
- These command update dynamic blocks:
- kbd
- orgkey{C-u C-c C-x C-u}
- Update all dynamic blocks in the current file.
- code{:content}, on the BEGIN line.
- To syntax for calling a writer function with a named block,
- code{org-dblock-write:myblock}. Parameters come from the BEGIN line.
- The following is an example of a dynamic block and a block writer function
- that updates the time when the function was last run:
- end example
- lisp
- (defun org-dblock-write:block-update-time (params)
- (let ((fmt (or (plist-get params :format) "%d. %m. %Y")))
- (insert "Last block update at: "
- (format-time-string fmt))))
- code{org-update-all-dblocks} in hook, such as
- code{org-update-all-dblocks} function does not run if the file is not in
- Org mode.
- Dynamic blocks, like any other block, can be narrowed with
- node Special agenda views
- cindex agenda views, user-defined
- vindex org-agenda-skip-function-global
- Org provides a special hook to further limit items in agenda views:
- code{agenda*}code{agenda*} view is the same as
- emph{appointments}, i.e.,
- scheduled and deadline items that have a time specification
- code{todo}, code{tags},
- code{tags-tree}. Specify a custom function that tests
- inclusion of every matched item in the view. This function can also
- skip as much as is needed.
- For a global condition applicable to agenda views, use the
- code{org-agenda-skip-function} for custom searching.
- This example defines a function for a custom view showing TODO items with
- WAITING status. Manually this is a multi step search process, but with a
- custom view, this can be automated as follows:
- The custom function searches the subtree for the WAITING tag and returns
- lisp
- (defun my-skip-unless-waiting ()
- "Skip trees that are not waiting"
- (let ((subtree-end (save-excursion (org-end-of-subtree t))))
- (if (re-search-forward ":waiting:" subtree-end t)
- nil ; tag found, do not skip
- subtree-end))) ; tag not found, continue after end of subtree
- lisp
- (org-add-agenda-custom-command
- '("b" todo "PROJECT"
- ((org-agenda-skip-function 'my-skip-unless-waiting)
- (org-agenda-overriding-header "Projects waiting for something: "))))
- vindex org-agenda-overriding-header
- Note that this also binds
- vindex org-odd-levels-only
- samp{LEVEL>0}
- code{org-odd-levels-only}, a level number corresponds to order in the
- hierarchy, not to the number of stars.}. Then to selectively pick the
- matched entries, use
- code{org-agenda-skip-entry-if} and
- table
- item (org-agenda-skip-entry-if 'scheduled)
- Skip current entry if it has been scheduled.
- item (org-agenda-skip-entry-if 'deadline)
- Skip current entry if it has a deadline.
- item (org-agenda-skip-entry-if 'todo '("TODO" "WAITING"))
- Skip current entry if the TODO keyword is TODO or WAITING.
- item (org-agenda-skip-entry-if 'timestamp)
- Skip current entry if it has any timestamp, may also be deadline or scheduled.
- item (org-agenda-skip-entry-if 'regexp "regular expression")
- Skip current entry if the regular expression matches in the entry.
- item (org-agenda-skip-subtree-if 'regexp "regular expression")
- Same as above, but check and skip the entire subtree.
- samp{WAITING} without the
- special function:
- end lisp
- section Speeding up your agendas
- enumerate
- item
- Reduce the number of
- item
- lisp
- (setq org-agenda-dim-blocked-tasks nil)
- item
- vindex org-agenda-inhibit-startup
- Stop preparing agenda buffers on startup:
- end lisp
- vindex org-agenda-show-inherited-tags
- lisp
- (setq org-agenda-use-tag-inheritance nil)
- end enumerate
- These options can be applied to selected agenda views. For more details
- about generation of agenda views, see the docstrings for the relevant
- variables, and this
- node Extracting agenda information
- cindex agenda, pipe
- vindex org-agenda-custom-commands
- Org provides commands to access agendas through Emacs batch mode. Through
- this command-line interface, agendas are automated for further processing or
- printing.
- code{org-agenda-custom-commands}. These are the same
- ones available through
- example
- emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr
- samp{shop}, but excludes items tagged with
- example
- emacs -batch -l ~/.emacs \
- -eval '(org-batch-agenda "+shop-NewYork")' | lpr
- noindent
- An example showing on-the-fly parameter modifications:
- end example
- file{~/org/projects.org} file.
- For structured processing of agenda output, use
- example
- category
- r{The headline, without TODO keyword, TAGS and PRIORITY}
- type
- r{selected in TODO match}
- tagsmatch
- r{imported from diary}
- deadline
- r{scheduled}
- timestamp
- r{entry was closed on date}
- upcoming-deadline
- r{forwarded scheduled item}
- block
- r{The TODO keyword, if any}
- tags
- r{The relevant date, like 2007-2-14}
- time
- r{String with extra planning info}
- priority-l
- r{The computed numerical priority}
- noindent
- If the selection of the agenda item was based on a timestamp, including those
- items with samp{SCHEDULED} keywords, then Org includes
- date and time in the output.
- If the selection of the agenda item was based on a timestamp (or
- deadline/scheduled), then Org includes date and time in the output.
- Here is an example of a post-processing script in Perl. It takes the CSV
- output from Emacs and prints with a checkbox:
- {$cmd 2>/dev/null
- {
- # get the individual values
- ($category,$head,$type,$todo,$tags,$date,$time,$extra,
- $priority_l,$priority_n) = split(/,/,$line);
- # process and print
- print "[ ] $head\n";
- end example
- section Using the property API
- cindex properties, API
- Functions for working with properties.
- *
- This includes the TODO keyword, the tags, time strings for deadline,
- scheduled, and clocking, and any additional properties defined in the
- entry. The return value is an alist. Keys may occur multiple times
- if the property key was used several times.
- code{nil}, in which case the current entry is used.
- If WHICH is code{all}, get all properties. If WHICH is
- code{standard}, only get that subclass.
- vindex org-use-property-inheritance
- defun org-entry-get pom property &optional inherit
- Get value of code{POM}
- code{INHERIT} is non-
- code{INHERIT} is the
- symbol
- code{org-use-property-inheritance} selects
- end defun
- code{PROPERTY} from entry at point-or-marker POM.
- defun org-entry-put pom property value
- Set code{VALUE} for entry at point-or-marker POM.
- defun org-buffer-property-keys &optional include-specials
- Get all property keys in the current buffer.
- defun org-insert-property-drawer
- Insert a property drawer for the current entry.
- defun org-entry-put-multivalued-property pom property &rest values
- Set code{POM} to .
- end defun
- code{PROPERTY} as a whitespace-separated
- list of values and return the values as a list of strings.
- defun org-entry-add-to-multivalued-property pom property value
- Treat the value of the property
- code{VALUE} is in this list.
- defun org-entry-remove-from-multivalued-property pom property value
- Treat the value of the property
- code{VALUE} is
- end defun
- code{PROPERTY} as a whitespace-separated
- list of values and check if
- end defun
- samp{:ETC} is one of
- the values, use the values as completion help, but allow also other values
- to be entered. The functions must return
- end defopt
- section Using the mapping API
- cindex mapping entries, API
- Org has sophisticated mapping capabilities for finding entries. Org uses
- this functionality internally for generating agenda views. Org also exposes
- an API for executing arbitrary functions for each selected entry. The API's
- main entry point is:
- samp{FUNC} at each headline selected by code{SCOPE}.
- code{FUNC} in
- save-excursion form. After evaluation, Org moves the cursor to the end of
- the line that was just processed. Search continues from that point forward.
- This may not always work as expected under some conditions, such as if the
- current sub-tree was removed by a previous archiving operation. In such rare
- circumstances, Org skips the next entry entirely when it should not. To stop
- Org from such skips, make
- code{org-map-continue-from} to a specific buffer position.
- code{MATCH} is
- code{t}.
- example
- nil
- r{the subtree started with the entry at point}
- region
- r{the current buffer, without restriction}
- file-with-archives
-
- r{all agenda files}
- agenda-with-archives
-
- r{if this is a list, all files in the list will be scanned}
- noindent
- The remaining args are treated as settings for the scanner's skipping
- facilities. Valid args are:
- example
- archive
- r{skip trees with the COMMENT keyword}
- function or Lisp form
- code{org-agenda-skip-function},}
-
- r{will not be called for that entry and search will}
-
- end example
- pxref{Using the property API}).
- Here are some handy functions:
- code{ARG}.
- defun org-priority &optional action
- Change the priority of the entry. See the docstring of this function for the
- possible values for
- end defun
- code{TAG} in the current entry. Setting
- code{on} or
- end defun
- end defun
- end defun
- This example turns all entries tagged with
- code{UPCOMING}. Org ignores entries in comment trees and
- archive trees.
- end lisp
- The following example counts the number of entries with TODO keyword
- lisp
- (length (org-map-entries t "/+WAITING" 'agenda))
- node MobileOrg
- cindex iPhone
- uref{https://github.com/MobileOrg/, iOS implementation} for the
- uref{http://wiki.github.com/matburt/mobileorg-android/, MobileOrg
- Android} by Matt Jones. Though the two implementations are not identical,
- they offer similar features.
- This appendix describes Org's support for agenda view formats compatible with
- MobileOrg. It also describes synchronizing changes, such as to notes,
- between MobileOrg and the computer.
- To change tags and TODO states in MobileOrg, first customize the variables
- code{org-tag-alist}. These should cover all
- the important tags and TODO keywords, even if Org files use only some of
- them. Though MobileOrg has in-buffer settings, it understands TODO states
- pxref{Per-file keywords}) and
- pxref{Setting tags}) only for those set in these variables.
- end menu
- section Setting up the staging area
- MobileOrg needs access to a file directory on a server to interact with
- Emacs. With a public server, consider encrypting the files. MobileOrg
- version 1.5 supports encryption for the iPhone. Org also requires
- code{org-mobile-use-encryption}
- code{org-mobile-encryption-password}; please read the docstring of that
- variable.}. Note that even after MobileOrg encrypts the file contents, the
- file names will remain visible on the file systems of the local computer, the
- server, and the mobile device.
- For a server to host files, consider options like
- footnote{An alternative is to
- use webdav server. MobileOrg documentation has details of webdav server
- configuration. Additional help is at
- file{MobileOrg/} on
- Dropbox. Pass its location to Emacs through an init file variable as
- follows:
- end lisp
- Org copies files to the above directory for MobileOrg. Org also uses the
- same directory for sharing notes between Org and MobileOrg.
- section Pushing to MobileOrg
- Org pushes files listed in
- code{org-mobile-directory}. Files include agenda files (as listed in
- code{org-mobile-files} to add other
- files. File names will be staged with paths relative to
- footnote{Symbolic links in
- file{agendas.org} with custom agenda views
- defined by the user
- code{org-mobile-force-id-on-agenda-items} to
- file{index.org}, containing links to other files.
- MobileOrg reads this file first from the server to determine what other files
- to download for agendas. For faster downloads, MobileOrg will read only
- those files whose checksums
- file{checksums.dat}.} have changed.
- section Pulling from MobileOrg
- When MobileOrg synchronizes with the server, it pulls the Org files for
- viewing. It then appends to the file
- enumerate
- file{mobileorg.org}file{mobileorg.org} will be empty after this
- operation.} and appends them to the file pointed to by the variable
- item
- After moving the entries, Org attempts changes to MobileOrg. Some changes
- are applied directly and without user interaction. Examples include changes
- to tags, TODO state, headline and body text. Entries for further action are
- tagged as
- item
- Org generates an agenda view for flagged entries for user intervention to
- clean up. For notes stored in flagged entries, MobileOrg displays them in
- the echo area when the cursor is on the corresponding agenda item.
- kbd
- item ?
- Pressing
- kbd{? z C-y C-c C-c}. Pressing
- code{:FLAGGED:} tag; second, it removes the flagged note from
- the property drawer; third, it signals that manual editing of the flagged
- entry is now finished.
- end enumerate
- kbd{C-c a ?} returns to the agenda view to finish processing flagged
- entries. Note that these entries may not be the most recent since MobileOrg
- searches files that were last pulled. To get an updated agenda view with
- changes since the last pull, pull again.
- appendix History and acknowledgments
- cindex history
- section From Carsten
- Org was born in 2003, out of frustration over the user interface of the Emacs
- Outline mode. I was trying to organize my notes and projects, and using
- Emacs seemed to be the natural way to go. However, having to remember eleven
- different commands with two or three keys per command, only to hide and show
- parts of the outline tree, that seemed entirely unacceptable. Also, when
- using outlines to take notes, I constantly wanted to restructure the tree,
- organizing it paralleling my thoughts and plans.
- emph{structure editing} were originally implemented in the package
- file{org.el}.
- As this environment became comfortable for project planning, the next step
- was adding emph{timestamps}, and
- email{emacs-orgmodegnu.org} have provided a constant stream of bug
- reports, feedback, new ideas, and sometimes patches and add-on code.
- Many thanks to everyone who has helped to improve this package. I am
- trying to keep here a list of the people who had significant influence
- in shaping one or more aspects of Org. The list may not be
- complete, if I have forgotten someone, please accept my apologies and
- let me know.
- Before I get to this list, a few special mentions are in order:
- i
- LaTeX{} exporter and the
- plain list parser. His support during the early days was central to the
- success of this project. Bastien also invented Worg, helped establishing the
- Web presence of Org, and sponsored hosting costs for the orgmode.org website.
- Bastien stepped in as maintainer of Org between 2011 and 2013, at a time when
- I desperately needed a break.
- item John Wiegley
- John has contributed a number of great ideas and patches directly to Org,
- including the attachment system (
- file{org-mac-message.el}), hierarchical dependencies of TODO
- items, habit tracking (
- file{org-crypt.el}). Also, the capture system is really an extended copy
- of his great
- item Sebastian Rose
- Without Sebastian, the HTML/XHTML publishing of Org would be the pitiful work
- of an ignorant amateur. Sebastian has pushed this part of Org onto a much
- higher level. He also wrote
- end table
- section From Bastien
- I (Bastien) have been maintaining Org between 2011 and 2013. This appendix
- would not be complete without adding a few more acknowledgments and thanks.
- I am first grateful to Carsten for his trust while handing me over the
- maintainership of Org. His unremitting support is what really helped me
- getting more confident over time, with both the community and the code.
- When I took over maintainership, I knew I would have to make Org more
- collaborative than ever, as I would have to rely on people that are more
- knowledgeable than I am on many parts of the code. Here is a list of the
- persons I could rely on, they should really be considered co-maintainers,
- either of the code or the community:
- i
- item Nicolas Goaziou
- Nicolas is maintaining the consistency of the deepest parts of Org. His work
- on file{ox.el} has been outstanding, and it opened
- the doors for many new ideas and features. He rewrote many of the old
- exporters to use the new export engine, and helped with documenting this
- major change. More importantly (if that's possible), he has been more than
- reliable during all the work done for Org 8.0, and always very reactive on
- the mailing list.
- emph{ad hoc} tools
- into a flexible and conceptually clean process. He patiently coped with the
- many hiccups that such a change can create for users.
- end table
- I received support from so many users that it is clearly impossible to be
- fair when shortlisting a few of them, but Org's history would not be
- complete if the ones above were not mentioned in this manual.
- itemize
- item
- item
- item
- file{ox-man.el}.
- i{Thomas Baumann} wrote file{org-mhe.el}.
- i{Michael Brand} helped by reporting many bugs and testing many features.
- He also implemented the distinction between empty fields and 0-value fields
- in Org's spreadsheets.
- i{Christophe Bataillon} created the great unicorn logo that we use on the
- Org mode website.
- i{Alex Bochannek} provided a patch for rounding timestamps.
- i{Jan Böcker} wrote
- item
- item
- file{org-choose.el}.
- i{Charles Cave}'s suggestion sparked the implementation of templates
- for Remember, which are now templates for capture.
- i{Pavel Chalmoviansky} influenced the agenda treatment of items with
- specified time.
- i{Gregory Chernov} patched support for Lisp forms into table
- calculations and improved XEmacs compatibility, in particular by porting
- item
- item
- item
- file{.texi}
- file to DocBook using
- item
- item
- item
- item
- item
- item
- file{org-taskjuggler.el}, which has been rewritten by Nicolas Goaziou as
- item
- item
- item
- item
- item
- item
- file{org-git-line.el}.
- i{Mikael Fornius} works as a mailing list moderator.
- i{Austin Frank} works as a mailing list moderator.
- i{Eric Fraga} drove the development of BEAMER export with ideas and
- testing.
- i{Barry Gidden} did proofreading the manual in preparation for the book
- publication through Network Theory Ltd.
- i{Niels Giesen} had the idea to automatically archive DONE trees.
- i{Nicolas Goaziou} rewrote much of the plain list code. He also wrote
- file{org-export.el}, which was a huge step forward
- in implementing a clean framework for Org exporters.
- i{Kai Grossjohann} pointed out key-binding conflicts with other packages.
- i{Brian Gough} of Network Theory Ltd publishes the Org mode manual as a
- book.
- i{Bernt Hansen} has driven much of the support for auto-repeating tasks,
- task state change logging, and the clocktable. His clear explanations have
- been critical when we started to adopt the Git version control system.
- i{Manuel Hermenegildo} has contributed various ideas, small fixes and
- patches.
- i{Phil Jackson} wrote
- item
- item
- i{MobileOrg Android}.
- i{Tokuya Kameshima} wrote file{org-mew.el}.
- i{Jonathan Leech-Pepin} wrote
- item
- LaTeX{} and tested it. He also
- provided frequent feedback and some patches.
- i{Matt Lundin} has proposed last-row references for table formulas and named
- invisible anchors. He has also worked a lot on the FAQ.
- i{David Maus} wrote
- item
- item
- item
- item
- item
- item
- item
- item
- item
- item
- file{orgcard2ref.pl}, a Perl program to create a text
- version of the reference card.
- i{Takeshi Okano} translated the manual and David O'Toole's tutorial
- into Japanese.
- i{Oliver Oppitz} suggested multi-state TODO items.
- i{Scott Otterson} sparked the introduction of descriptive text for
- links, among other things.
- i{Pete Phillips} helped during the development of the TAGS feature, and
- provided frequent feedback.
- i{Francesco Pizzolante} provided patches that helped speeding up the agenda
- generation.
- i{Martin Pohlack} provided the code snippet to bundle character insertion
- into bundles of 20 for undo.
- i{Rackspace.com} is hosting our website for free. Thank you Rackspace!
- i{T.V. Raman} reported bugs and suggested improvements.
- i{Matthias Rempe} (Oelde) provided ideas, Windows support, and quality
- control.
- i{Paul Rivier} provided the basic implementation of named footnotes. He
- also acted as mailing list moderator for some time.
- i{Kevin Rogers} contributed code to access VM files on remote hosts.
- i{Frank Ruell} solved the mystery of the
- file{allout.el}.
- i{Jason Riedy} generalized the send-receive mechanism for Orgtbl tables with
- extensive patches.
- i{Philip Rooke} created the Org reference card, provided lots
- of feedback, developed and applied standards to the Org documentation.
- i{Christian Schlauer} proposed angular brackets around links, among
- other things.
- i{Christopher Schmidt} reworked
- item
- file{org-ctags.el}.
- i{Tom Shannon}'s
- item
- item
- file{ditaa.jar} ASCII to PNG converter that is
- now packaged into Org's
- item
- item
- item
- item
- item
- LaTeX{}, UTF-8, Latin-1 and ASCII.
- i{Andy Stewart} contributed code to
- item
- file{org-publish.el} and drafted the manual
- chapter about publishing.
- i{Jambunathan K} contributed the ODT exporter and rewrote the HTML exporter.
- i{Sebastien Vauban} reported many issues with
- item
- item
- item
- item
- samp{QUOTE}
- keyword.
- i{David Wainberg} suggested archiving, and improvements to the linking
- system.
- i{Carsten Wimmer} suggested some changes and helped fix a bug in
- linking to Gnus.
- i{Roland Winkler} requested additional key bindings to make Org
- work on a tty.
- i{Piotr Zielinski} wrote
- item
- file{org-eww.el}.
- node GNU Free Documentation License
- include doclicense.texi
- unnumbered Concept index
- node Key Index
- printindex ky
- unnumbered Command and function index
- node Variable Index
- kbd{M-x org-customize
- printindex vr
- c Local variables:
- c indent-tabs-mode: nil
- [a-zA-Z]*[ \n]\\|^
- c paragraph-separate: "\\|^@[a-zA-Z]*[ \n]\\|^@x?org\\(key\\|cmd\\)\\|[ \f]*$"
- c LocalWords: webdavhost pre
|