12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759 |
- \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
- code{store-link} protocol:: Store a link, push URL to kill-ring.
- *
- code{open-source} protocol:: Edit published contents.
- Archiving
- * Moving subtrees:: Moving a tree to an archive file
- * Internal archiving:: Switch off a tree but keep it in the file
- Agenda views
- * 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
- The built-in agenda views
- * 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
- Presentation and sorting
- * Categories:: Not all tasks are equal
- * Time-of-day specifications:: How the agenda knows the time
- * Sorting agenda items:: The order of things
- * Filtering/limiting agenda items:: Dynamically narrow the agenda
- Custom agenda views
- * Storing searches:: Type once, use often
- * Block agenda:: All the stuff you need in a single buffer
- * Setting options:: Changing the rules
- Markup for rich export
- * 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
- LaTeX{}
- *
- LaTeX{} fragments:: What will this snippet look like?
- * CDLaTeX mode:: Speed up entering of formulas
- Exporting
- * The export dispatcher:: The main interface
- * Export settings:: Common export settings
- * Table of contents:: The if and where of the table of contents
- * Include files:: Include additional files into a document
- * Macro replacement:: Use macros to create templates
- * Comment lines:: What will not be exported
- * ASCII/Latin-1/UTF-8 export:: Exporting to flat files with encoding
- * Beamer export:: Exporting as a Beamer presentation
- * HTML export:: Exporting to HTML
- * LaTeX{}, and processing to PDF
- * Markdown export:: Exporting to Markdown
- * OpenDocument Text export:: Exporting to OpenDocument Text
- * Org export:: Exporting to Org
- * Texinfo export:: Exporting to Texinfo
- * iCalendar export:: Exporting to iCalendar
- * Other built-in back-ends:: Exporting to a man page
- * Advanced configuration:: Fine-tuning the export output
- * Export in foreign buffers:: Author tables and lists in Org syntax
- Beamer export
- * Beamer export commands:: For creating Beamer documents.
- * Beamer specific export settings:: For customizing Beamer export.
- * Sectioning Frames and Blocks in Beamer:: For composing Beamer slides.
- * Beamer specific syntax:: For using in Org documents.
- * Editing support:: For using helper functions.
- * A Beamer example:: A complete presentation.
- HTML export
- * HTML Export commands:: Invoking HTML export
- * HTML Specific export settings:: Settings for HTML export
- * HTML doctypes:: Exporting various (X)HTML flavors
- * HTML preamble and postamble:: Inserting preamble and postamble
- * Quoting HTML tags:: Using direct HTML in Org files
- * Links in HTML export:: Interpreting and formatting links
- * Tables in HTML export:: Formatting and modifying tables
- * Images in HTML export:: Inserting figures with HTML output
- * Math formatting in HTML export:: Handling math equations
- * Text areas in HTML export:: Showing an alternate approach, an example
- * CSS support:: Styling HTML output
- * JavaScript support:: Folding scripting in the web browser
- LaTeX{} export commands:: For producing
- LaTeX{} specific export settings:: Unique to this
- LaTeX{} header and sectioning:: For file structure.
- * Quoting
- LaTeX{} export:: Attributes specific to tables.
- * Images in
- LaTeX{} export:: Attributes specific to lists.
- * Source blocks in
- LaTeX{} export:: Attributes specific to example blocks.
- * Special blocks in
- LaTeX{} export:: Attributes specific to horizontal rules.
- OpenDocument Text export
- * Pre-requisites for ODT export:: Required packages.
- * ODT export commands:: Invoking export.
- * ODT specific export settings:: Configuration options.
- * Extending ODT export:: Producing file{.pdf} files.
- * Applying custom styles:: Styling the output.
- * Links in ODT export:: Handling and formatting links.
- * Tables in ODT export:: Org table conversions.
- * Images in ODT export:: Inserting images.
- * Math formatting in ODT export:: Formatting
- LaTeX{} math snippets:: Embedding in
- LaTeX{} export
- * Publishing links:: Which links keep working after publishing?
- * Sitemap:: Generating a list of all pages
- * Generating an index:: An index that reaches across pages
- Sample configuration
- * Simple example:: One-component publishing
- * Complex example:: A multi-component publishing example
- Working with source code
- * 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
- Header arguments
- * Using header arguments:: Different ways to set header arguments
- * Specific header arguments:: List of header arguments
- Using header arguments
- * 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
- Specific header arguments
- * var:: Pass arguments to
- LaTeX{} and other programs
- * Dynamic blocks:: Automatically filled blocks
- * Special agenda views:: Customized views
- * Speeding up your agendas:: Tips on how to speed up your agendas
- * Extracting agenda information:: Post-processing of agenda information
- * Using the property API:: Writing programs that use entry properties
- * Using the mapping API:: Mapping over all or selected entries
- Tables and lists in arbitrary syntax
- * Radio tables:: Sending and receiving radio tables
- * A
- end detailmenu
- node Introduction
- cindex introduction
- end menu
- section Summary
- i{agenda views} that also integrate the Emacs calendar and diary. Org can
- be used to implement many different project planning schemes, such as David
- Allen's GTD system.
- Org files can serve as a single source authoring system with export to many
- different formats such as HTML,
- cindex FAQ
- There is a website for Org which provides links to the newest
- version of Org, as well as additional information, frequently asked
- questions (FAQ), links to tutorials, etc. This page is located at
- cindex print edition
- An earlier version (7.3) of this manual is available as a
- page
- section Installation
- itemize
- item By using Emacs package system.
- item By using Org's git repository.
- b{strongly recommend} to stick to a single installation method.
- kbd{M-x package-install RET org}.
- b{Important}: you need to do this in a session where no
- code{(package-initialize)} in your Emacs init file
- before setting any Org option. If you want to use Org's package repository,
- check out the
- subsubheading Downloading Org as an archive
- You can download Org latest release from
- lisp
- (add-to-list 'load-path "~/path/to/orgdir/lisp")
- file{contrib} directory to your
- load-path:
- end lisp
- Optionally, you can compile the files and/or install them in your system.
- Run
- subsubheading Using Org's git repository
- You can clone Org's repository and install Org like this:
- end example
- Note that in this case,
- file{org-version.el} and Org's autoloads in
- code{make}, generate the documentation with
- code{make config} and
- install Org with code{make help} to get
- the list of compilation/installation options.
- For more detailed explanations on Org's build system, please check the Org
- Build System page on
- node Activation
- cindex activation
- cindex ELPA
- cindex key bindings, global
- findex org-capture
- findex org-iswitchb
- Org mode buffers need font-lock to be turned on: this is the default in
- Emacs
- code{(add-hook 'org-mode-hook 'turn-on-font-lock)}}.
- There are compatibility issues between Org mode and some other Elisp
- packages, please take the time to check the list (
- command{org-store-link},
- command{org-agenda}, and
- lisp
- (global-set-key "\C-cl" 'org-store-link)
- (global-set-key "\C-ca" 'org-agenda)
- (global-set-key "\C-cc" 'org-capture)
- (global-set-key "\C-cb" 'org-iswitchb)
- cindex Org mode, turning on
- Files with the
- file{.org}, make the first
- line of a file look like this:
- end example
- noindent which will select Org mode for this buffer no matter what
- the file's name is. See also the variable
- i{active}. To make
- use of this, you need to have
- code{transient-mark-mode}, you can create
- an active region by using the mouse to select a region, or pressing
- key{SPC}} twice before moving the cursor.
- section Feedback
- cindex bug reports
- cindex author
- If you find problems with Org, or if you have questions, remarks, or ideas
- about it, please mail to the Org mailing list
- uref{https://lists.gnu.org/mailman/listinfo/emacs-orgmode, on this web page}.
- If you are not a member of the mailing list, your mail will be passed to the
- list after a moderator has approved it
- kbd{M-x emacs-version
- kbd{M-x org-version RET}), as well as the Org related setup in the Emacs
- init file. The easiest way to do this is to use the command
- kbd{M-x org-submit-bug-report RET}
- noindent which will put all this information into an Emacs mail buffer so
- that you only need to add your description. If you are not sending the Email
- from within Emacs, please copy and paste the content into your Email program.
- Sometimes you might face a problem due to an error in your Emacs or Org mode
- setup. Before reporting a bug, it is very helpful to start Emacs with minimal
- customizations and reproduce the problem. Doing so often helps you determine
- if the problem is with your customization or with Org mode itself. You can
- start a typical minimal session with a command like the example below.
- end example
- However if you are using Org mode as distributed with Emacs, a minimal setup
- is not necessary. In that case it is sufficient to start Emacs as
- code{minimal-org.el} setup file can have contents as
- shown below.
- end lisp
- If an error occurs, a backtrace can be very useful (see below on how to
- create one). Often a small example file helps, along with clear information
- about:
- item What exactly did you do?
- item What happened instead?
- noindent Thank you for helping to improve this program.
- cindex backtrace of an error
- If working with Org produces an error with a message you don't
- understand, you may have hit a bug. The best way to report this is by
- providing, in addition to what was mentioned above, a
- enumerate
- example
- end example
- code{Org -> Refresh/Reload -> Reload Org uncompiled} from the
- menu.
- code{Options} menu and select
- item
- Do whatever you have to do to hit the error. Don't forget to
- document the steps you take.
- file{*Backtrace*} buffer will appear on the
- screen. Save this buffer to a file (for example using
- end enumerate
- section Typesetting conventions used in this manual
- table
- item TODO
- item boss
- item Release
- end table
- Moreover, Org uses code{#+TITLE} to set the title)
- and code{#+BEGIN_EXPORT html} to start
- a
- subsubheading Key bindings and commands
- findex org-agenda
- findex org-capture
- The manual suggests a few global key bindings, in particular
- code{org-agenda} and code{org-capture}. These are only
- suggestions, but the rest of the manual assumes that these key bindings are in
- place in order to list commands by key access.
- Also, the manual lists both the keys and the corresponding commands for
- accessing a functionality. Org mode often uses the same key for different
- functions, depending on context. The command that is bound to such keys has
- a generic name, like
- kbd{M-
- code{org-do-demote}, while in the chapter on tables, it
- will be listed to call
- code{cmdnames} in
- node Document structure
- cindex document structure
- menu
- * Outlines:: Org is based on Outline mode
- * Headlines:: How to typeset Org tree headlines
- * Visibility cycling:: Show and hide, much simplified
- * Motion:: Jumping to other headlines
- * Structure editing:: Changing sequence and level of headlines
- * Sparse trees:: Matches embedded in context
- * Plain lists:: Additional structure within an entry
- * Drawers:: Tucking stuff away
- * Blocks:: Folding blocks
- * Footnotes:: How footnotes are defined in Org's syntax
- * Orgstruct mode:: Structure editing outside Org
- * Org syntax:: Formal description of Org's syntax
- node Outlines
- cindex outlines
- command{org-cycle}, which is bound to the
- node Headlines
- cindex headlines
- vindex org-special-ctrl-a/e
- vindex org-ctrl-k-protect-subtree
- Headlines define the structure of an outline tree. The headlines in Org
- start with one or more stars, on the left margin
- code{org-special-ctrl-a/e},
- code{org-ctrl-k-protect-subtree} to configure special behavior of
- kbd{C-e}, and footnote{Clocking only works with
- headings indented less than 30 stars.}. For example:
- end example
- noindent Note that a headline named after
- samp{Footnotes}, is considered as special. A subtree with
- this headline will be silently ignored by exporting functions.
- Some people find the many stars too noisy and would prefer an
- outline that has whitespace followed by a single star as headline
- starters.
- vindex org-cycle-separator-lines
- An empty line after the end of a subtree is considered part of it and
- will be hidden when the subtree is folded. However, if you leave at
- least two empty lines, one empty line will remain visible after folding
- the subtree, in order to structure the collapsed view. See the
- variable
- node Visibility cycling
- cindex cycling, visibility
- cindex trees, visibility
- cindex hide text
- end menu
- subsection Global and local cycling
- Outlines make it possible to hide parts of the text in the buffer.
- Org uses just two commands, bound to
- kbd{S-
- cindex subtree visibility states
- cindex folded, subtree visibility state
- cindex subtree, subtree visibility state
- asis
- key{TAB},org-cycle}
- example
- ,-> FOLDED -> CHILDREN -> SUBTREE --.
- '-----------------------------------'
- vindex org-cycle-emulate-tab
- The cursor must be on a headline for this to work
- code{org-cycle-emulate-tab}.}.
- cindex global cycling
- cindex contents, global visibility state
- orgcmd{S-
- itemx C-u
- emph{Global cycling}: Rotate the entire buffer among the states
- end example
- When key{TAB}} is called with a numeric prefix argument N, the
- CONTENTS view up to headlines of level N will be shown. Note that inside
- tables, key{TAB}} jumps to the previous field.
- key{TAB} only if point is at the very
- beginning of the buffer, but not on a headline, and
- code{nil} value.
- orgcmd{C-u C-u
- pxref{Initial visibility}).
- orgcmd{C-u C-u C-u
- cindex revealing context
- pxref{Sparse trees}) or an agenda command
- (
- cindex show branches, command
- cindex show children, command
- key{TAB},outline-show-children}
- Expose all direct children of the subtree. With a numeric prefix argument N,
- expose all children down to level N
- orgcmd{C-c C-x b,org-tree-to-indirect-buffer}
- Show the current subtree in an indirect buffer
- pxref{Indirect Buffers,,,emacs,GNU Emacs Manual}) will contain the entire
- buffer, but will be narrowed to the current tree. Editing the indirect
- buffer will also change the original buffer, but without affecting visibility
- in that buffer.}. With a numeric prefix argument N, go up to level N and
- then take that tree. If N is negative then go up that many levels. With
- a
- orgcmd{C-c C-x v,org-copy-visible}
- Copy the
- end table
- subsection Initial visibility
- vindex org-startup-folded
- cindex
- cindex
- cindex
- cindex
- footnote{When
- code{nil}, Org will not honor the default
- visibility state when first opening a file for the agenda (
- code{org-startup-folded}, or on a per-file basis by adding one of the
- following lines anywhere in the buffer:
- end example
- noindent
- Furthermore, any entries with a pxref{Properties
- and columns}) will get their visibility adapted accordingly. Allowed values
- for this property are code{children},
- code{all}.
- asis
- key{TAB},org-set-startup-visibility}
- Switch back to the startup visibility of the buffer, i.e., whatever is
- requested by startup options and
- end table
- subsection Catching invisible edits
- cindex edits, catching invisible
- Sometimes you may inadvertently edit an invisible part of the buffer and be
- confused on what has been edited and how to undo the mistake. Setting
- code{nil} will help prevent this. See the
- docstring of this option on how Org should catch invisible edits and process
- them.
- section Motion
- cindex jumping, to headlines
- table
- orgcmd{C-c C-n,org-next-visible-heading}
- Next heading.
- orgcmd{C-c C-f,org-forward-same-level}
- Next heading same level.
- orgcmd{C-c C-u,outline-up-heading}
- Backward to higher level heading.
- vindex org-goto-auto-isearch
- key{TAB}
- key{down} / r{Next/previous visible headline.}
- r{Select this location.}
- r{Do a Sparse-tree search}
- code{org-goto-auto-isearch}}
- n / p
- r{Next/previous headline same level.}
- u
- r{Digit argument.}
- q
- end example
- noindent
- See also the option
- end table
- section Structure editing
- cindex headline, promotion and demotion
- cindex demotion, of subtrees
- cindex pasting, of subtrees
- cindex copying, of subtrees
- cindex subtrees, cut and paste
- asis
- key{RET},org-meta-return}
- emph{beginning} of a line, and if there is
- a heading or a plain list item (
- emph{before} the current line. When used at the
- beginning of a regular line of text, turn that line into a heading.
- When this command is used in the middle of a line, the line is split and the
- rest of the line becomes the new item or headline. If you do not want the
- line to be split, customize
- kbd{C-u} prefix unconditionally inserts a new
- heading at the end of the current subtree, thus preserving its contents.
- With a double
- orgcmd{C-
- orgcmd{M-S-
- vindex org-treat-insert-todo-heading-as-state-change
- Insert new TODO entry with same level as current heading. See also the
- variable
- orgcmd{C-S-
- kbd{C-
- orgcmd{
- key{TAB} demotes the entry to
- become a child of the previous one. The next
- key{TAB}, and you are back
- to the initial level.
- key{left},org-do-promote}
- Promote current heading by one level.
- key{right},org-do-demote}
- Demote current heading by one level.
- key{left},org-promote-subtree}
- Promote the current subtree by one level.
- key{right},org-demote-subtree}
- Demote the current subtree by one level.
- key{up},org-move-subtree-up}
- Move subtree up (swap with previous subtree of same
- level).
- key{down},org-move-subtree-down}
- Move subtree down (swap with next subtree of same level).
- key{M-h} on a paragraph will mark it,
- hitting
- orgcmd{C-c ,org-mark-subtree}
- Mark the subtree at point. Hitting repeatedly will mark subsequent subtrees
- of the same level than the marked subtree.
- orgcmd{C-c C-x M-w,org-copy-subtree}
- Copy subtree to kill ring. With a numeric prefix argument N, copy the N
- sequential subtrees.
- samp{****}.
- vindex org-yank-adjusted-subtrees
- code{org-yank-adjusted-subtrees} and
- code{yank} command will
- paste subtrees folded and in a clever way, using the same command as
- code{yank} to be executed, with the prefix passed along. A good way to
- force a normal yank is code{yank-pop} after a
- yank, it will yank previous kill items plainly, without adjustment and
- folding.
- code{org-clone-subtree-with-time-shift}.
- xref{Refile and copy}.
- kbd{C-u} prefix,
- sorting will be case-sensitive.
- orgcmd{C-x n b,org-narrow-to-block}
- Narrow buffer to current block.
- orgcmd{C-c *,org-toggle-heading}
- Turn a normal line or plain list item into a headline (so that it becomes a
- subheading at its location). Also turn a headline into a normal line by
- removing the stars. If there is an active region, turn all lines in the
- region into headlines. If the first line in the region was an item, turn
- only the item lines into headlines. Finally, if the first line is a
- headline, remove the stars from all headlines in the region.
- cindex region, active
- cindex transient mark mode
- When there is an active region (Transient Mark mode), promotion and
- demotion work on all headlines in the region. To select a region of
- headlines, it is best to place both point and mark at the beginning of a
- line, mark at the beginning of the first headline, and point at the line
- just after the last headline to change. Note that when the cursor is
- inside a table (
- node Sparse trees
- cindex sparse trees
- cindex folding, sparse trees
- vindex org-show-context-detail
- An important feature of Org mode is the ability to construct
- footnote{See also the
- variable
- table
- orgcmd{C-c /,org-sparse-tree}
- This prompts for an extra key to select a sparse-tree creating command.
- vindex org-remove-highlights-with-change
- Prompts for a regexp and shows a sparse tree with all matches. If
- the match is in a headline, the headline is made visible. If the match is in
- the body of an entry, headline and body are made visible. In order to
- provide minimal context, also the full hierarchy of headlines above the match
- is shown, as well as the headline following the match. Each match is also
- highlighted; the highlights disappear when the buffer is changed by an
- editing command
- code{org-remove-highlights-with-change}}, or by pressing
- kbd{C-u} prefix argument, previous highlights are kept,
- so several calls to this command can be stacked.
- orgcmdkkc{M-g p,M-g M-p,previous-error}
- Jump to the previous sparse tree match in this buffer.
- noindent
- code{org-agenda-custom-commands} to define fast
- keyboard access to specific sparse trees. These commands will then be
- accessible through the agenda dispatcher (
- lisp
- (setq org-agenda-custom-commands
- '(("f" occur-tree "FIXME")))
- noindent will define the key
- samp{FIXME}.
- The other sparse tree commands select headings based on TODO keywords,
- tags, or properties and will be discussed later in this manual.
- cindex printing sparse trees
- code{ps-print-buffer-with-faces} which does not print invisible parts of the
- document. Or you can use
- node Plain lists
- cindex plain lists
- cindex lists, ordered
- pxref{Checkboxes}). Org supports editing such lists, and every exporter
- (
- itemize
- item
- samp{-},
- samp{*}samp{*} as a bullet, lines must be indented or
- they will be seen as top-level headlines. Also, when you are hiding leading
- stars to get a clean outline view, plain list items starting with a star may
- be hard to distinguish from true headlines. In short: even though
- item
- vindex org-list-allow-alphabetical
- footnote{You can filter out any of them by configuring
- samp{1.} or
- footnote{You can also get samp{A.},
- samp{A)} by configuring
- code{[20]}
- emph{before} the checkbox. If you have activated alphabetical
- lists, you can also use counters like
- item
- samp{ :: } to distinguish the description
- end itemize
- Items belonging to the same list must have the same indentation on the first
- line. In particular, if an ordered list reaches number
- 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
- kbd{M-footnote{Many desktops
- intercept key{TAB}} to switch windows. Use
- kbd{key{TAB}} instead for completion (
- pxref{Visibility cycling}) on the headline will hide and
- show the entry, but keep the drawer collapsed to a single line. In order to
- look inside the drawer, you need to move the cursor to the drawer line and
- press code{PROPERTIES} drawer for
- storing properties (
- pxref{Tracking TODO state changes}) and clock times
- (code{LOGBOOK}. If you
- want to store a quick note in the LOGBOOK drawer, in a similar way to state
- changes, use
- kbd
- item C-c C-z
- Add a time-stamped note to the LOGBOOK drawer.
- vindex org-export-with-drawers
- code{org-export-with-drawers}. In that case, drawer contents will appear in
- export output. Property drawers are not affected by this variable: configure
- node Blocks
- vindex org-hide-block-startup
- pxref{Literal examples}) to capturing time logging
- information (
- code{org-hide-block-startup}
- or on a per-file basis by using
- code{hideblocks}, STARTUP keyword
- code{nohideblocks}, STARTUP keyword
- end example
- section Footnotes
- code{fn:}. For example:
- end example
- Org mode extends the number-based syntax to
- table
- item [fn:name]
- A named footnote reference, where
- item [fn::This is the inline definition of this footnote]
- A
- item [fn:name:a definition]
- An inline definition of a footnote, which also specifies a name for the note.
- Since Org allows multiple references to the same note, you can then use
- end table
- code{org-footnote-auto-label} and its
- corresponding
- noindent The following command handles footnotes:
- kbd
- item C-c C-x f
- The footnote action command.
- When the cursor is on a footnote reference, jump to the definition. When it
- is at a definition, jump to the (first) reference.
- vindex org-footnote-section
- code{org-footnote-define-inline}
- code{#+STARTUP: fninline} or
- code{org-footnote-section}.
- When this command is called with a prefix argument, a menu of additional
- options is offered:
- r{Sort the footnote definitions by reference sequence. During editing,}
-
- r{sequence. If you want them sorted, use this command, which will}
- code{org-footnote-section}. Automatic}
-
- r{option
- r{Renumber the simple
- r{after each insertion/deletion can be configured using the option}
- code{org-footnote-auto-adjust}.}
- S code{r}, then
- r{Normalize the footnotes by collecting all definitions (including}
-
- r{in sequence. The references will then also be numbers.}
- d
- r{to it.}
- code{org-footnote-auto-adjust}
- code{fnadjust} and
- kindex C-c C-c
- kbd{C-c C-x f}.
- kindex mouse-1
- item C-c C-o
- vindex org-edit-footnote-reference
- item C-c '
- kbd{C-c '}.
- node Orgstruct mode
- cindex Orgstruct mode
- code{orgstruct-mode} makes
- this possible. Toggle the mode with
- lisp
- (add-hook 'message-mode-hook 'turn-on-orgstruct)
- (add-hook 'message-mode-hook 'turn-on-orgstruct++)
- code{orgstruct++-mode}, Org will also export indentation and
- autofill settings into that mode, and detect item context after the first
- line of an item.
- emph{any} file, provided you defined
- code{";; "} in Emacs
- Lisp files, you will be able to fold and unfold headlines in Emacs Lisp
- commented lines. Some commands like
- node Org syntax
- cindex Org syntax
- A reference document providing a formal description of Org's syntax is
- available as
- code{headlines}, code{affiliated
- keywords}, code{objects}. Each part of an Org
- file falls into one of the categories above.
- To explore the abstract structure of an Org buffer, run this in a buffer:
- end lisp
- It will output a list containing the buffer's content represented as an
- abstract structure. The export engine relies on the information stored in
- this list. Most interactive commands (e.g., for structure editing) also
- rely on the syntactic meaning of the surrounding context.
- cindex linter
- You can check syntax in your documents using
- node Tables
- cindex tables
- file{calc} package
- (
- menu
- * Built-in table editor:: Simple tables
- * Column width and alignment:: Overrule the automatic settings
- * Column groups:: Grouping to trigger vertical lines
- * Orgtbl mode:: The table editor as minor mode
- * The spreadsheet:: The table editor has spreadsheet capabilities
- * Org-Plot:: Plotting from org tables
- node Built-in table editor
- cindex table editor, built-in
- Org makes it easy to format tables in plain ASCIIsamp{|} as
- the first non-whitespace character is considered part of a table.
- footnote{To insert a vertical bar into a table
- field, use code{abc\vert}def}.}. A table
- might look like this:
- end example
- A table is re-aligned automatically each time you press
- key{RET} or key{TAB} also moves to
- the next field (
- samp{|-} is considered as a horizontal separator line and will be
- expanded on the next re-align to span the whole table width. So, to
- create the above table, you would only type
- end example
- key{TAB} to align the table and start filling in
- fields. Even faster would be to type
- kbd{C-c
- 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-table-auto-blank-field}.
- kbd
- orgcmd{C-c |,org-table-create-or-convert-from-region}
- Convert the active region to a table. If every line contains at least one
- TAB character, the function assumes that the material is tab separated.
- If every line contains a comma, comma-separated values (CSV) are assumed.
- If not, lines are split at whitespace into fields. You can use a prefix
- argument to force a specific separator: kbd{C-u
- C-u} forces TAB,
- *
- If there is no active region, this command creates an empty Org
- table. But it is easier just to start typing, like
- key{RET} |-
- tsubheading{Re-aligning and field motion}
- c
- c
- c
- key{TAB},org-table-previous-field}
- Re-align, move to previous field.
- orgcmd{
- key{RET} still does
- NEWLINE, so it can be used to split a table.
- orgcmd{M-a,org-table-beginning-of-field}
- Move to beginning of the current table field, or on to the previous field.
- tsubheading{Column and row editing}
- key{left},M-
- c
- key{left},org-table-delete-column}
- Kill the current column.
- orgcmd{M-S-
- c
- key{up},M-
- c
- key{up},org-table-kill-row}
- Kill the current row or horizontal line.
- orgcmd{M-S-
- c
- c
- key{RET},org-table-hline-and-move}
- Insert a horizontal line below current row, and move the cursor into the row
- below that line.
- orgcmd{C-c ^,org-table-sort-lines}
- Sort the table lines in the region. The position of point indicates the
- column to be used for sorting, and the range of lines is the range
- between the nearest horizontal separator lines, or the entire table. If
- point is before the first column, you will be prompted for the sorting
- column. If there is an active region, the mark specifies the first line
- and the sorting column, while point should be in the last line to be
- included into the sorting. The command prompts for the sorting type
- (alphabetically, numerically, or by time). You can sort in normal or
- reverse order. You can also supply your own key extraction and comparison
- functions. When called with a prefix argument, alphabetic sorting will be
- case-sensitive.
- orgcmd{C-c C-x M-w,org-table-copy-region}
- Copy a rectangular region from a table to a special clipboard. Point and
- mark determine edge fields of the rectangle. If there is no active region,
- copy just the current field. The process ignores horizontal separator lines.
- orgcmd{C-c C-x C-w,org-table-cut-region}
- Copy a rectangular region from a table to a special clipboard, and
- blank all fields in the rectangle. So this is the ``cut'' operation.
- orgcmd{C-c C-x C-y,org-table-paste-rectangle}
- Paste a rectangular region into a table.
- The upper left corner ends up in the current field. All involved fields
- will be overwritten. If the rectangle does not fit into the present table,
- the table is enlarged as needed. The process ignores horizontal separator
- lines.
- orgcmd{M-
- tsubheading{Calculations}
- cindex calculations, in tables
- cindex active region
- orgcmd{C-c +,org-table-sum}
- Sum the numbers in the current column, or in the rectangle defined by
- the active region. The result is shown in the echo area and can
- be inserted with
- c
- key{RET},org-table-copy-down}
- code{org-table-copy-increment}, integer field
- values will be incremented during copy. Integers that are too large will not
- be incremented. Also, a
- pxref{Conflicts}).
- orgcmd{C-c `,org-table-edit-field}
- Edit the current field in a separate window. This is useful for fields that
- are not fully visible (
- kbd{C-u} prefix, just make the full field visible, so that it can be
- edited in place. When called with two
- kbd{C-u C-u C-c `}.
- item M-x org-table-import RET
- Import a file as a table. The table should be TAB or whitespace
- separated. Use, for example, to import a spreadsheet table or data
- from a database, because these programs generally can write
- TAB-separated text files. This command works by inserting the file into
- the buffer and then converting the region to a table. Any prefix
- argument is passed on to the converter, which uses it to determine the
- separator.
- kbd{C-x C-x} and then using the
- i{Creation and conversion}).
- item M-x org-table-export RET
- vindex org-table-export-default-format
- Export the table, by default as a TAB-separated file. Use for data
- exchange with, for example, spreadsheet or database programs. The format
- used to export the file can be configured in the option
- code{TABLE_EXPORT_FILE} and
- ref{Translator functions}, for a
- detailed description.
- samp{|}, you can turn
- it off with
- end lisp
- kbd{C-c C-c} to do a manual re-align.
- section Column width and alignment
- cindex alignment in tables
- The width of columns is automatically determined by the table editor. The
- alignment of a column is determined automatically from the fraction of
- number-like versus non-number fields in the column.
- kbd{TAB} or
- code{org-table-automatic-realign}
- to
- table
- orgcmd{C-c C-c,org-table-align}
- Align the current table.
- vindex org-startup-align-all-tables
- code{org-startup-align-all-tables} re-aligns all tables
- in a file upon visiting it. You can also set this option on a per-file basis
- with:
- end example
- Sometimes a single field or a few fields need to carry more text, leading to
- inconveniently wide columns. Maybe you want to hide away several columns or
- display them with a fixed width, regardless of content, as shown in the
- following example.
- group
- |---+---------------------+--------| |---+-------dots{}|
- | | <6> | | | | <6> dots{}|
- | 1 | one | some | ----\ | 1 | one dots{}|
- | 2 | two | boring | ----/ | 2 | two dots{}|
- | 3 | This is a long text | column | | 3 | This idots{}|
- |---+---------------------+--------| |---+-------dots{}|
- end example
- To set the width of a column, one field anywhere in the column may contain
- just the string samp{N} specifies the width as a number of
- characters. You control displayed width of columns with the following tools:
- asis
- key{TAB},org-table-toggle-column-width}
- Shrink or expand current column.
- If a width cookie specifies a width W for the column, shrinking it displays
- the first W visible characters only. Otherwise, the column is shrunk to
- a single character.
- When called before the first column or after the last one, ask for a list of
- column ranges to operate on.
- key{TAB},org-table-shrink}
- Shrink all columns with a column width. Expand the others.
- key{TAB},org-table-expand}
- Expand all columns.
- kbd{C-h .}
- (
- vindex org-startup-shrink-all-tables
- Setting the option
- example
- #+STARTUP: shrink
- samp{<r>},
- 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}, code{U}
- Duration computations in Calc or Lisp,
- item
- samp{E} empty fields in range
- references are suppressed so that the Calc vector or Lisp list contains only
- the non-empty fields. With
- samp{nan} (not a
- number) is used in Calc formulas and the empty string is used for Lisp
- formulas. Add
- samp{N} has higher precedence than
- item
- samp{N}.
- code{L}
- Literal, for Lisp formulas only. See the next section.
- noindent
- Unless you use large integer numbers or high-precision-calculation and
- -display for floating point numbers you may alternatively provide a
- footnote{The
- samp{integer} or
- samp{integer} is limited in size by truncating the
- signed value to 32 bits. The
- example
- $1+$2
- r{Same, format result to two decimals}
- exp($2)+exp($1)
- r{Reformat current cell to 1 decimal}
- ($3-32)*5/9
- r{Hz -> cm conversion, using
- r{Compute in degrees, precision 3, display SCI 1}
- sin($1);Dp3%.1e
- r{Taylor series of $3, at x=7, second degree}
- pxref{Logical
- Operations, , Logical Operations, calc, GNU Emacs Calc Manual}). For example
- code
- item if("$1" == "nan" || "$2" == "nan", string(""), $1 + $2); E f-1
- Sum of the first two columns. When at least one of the input fields is empty
- the Org table result field is set to empty.
- samp{f-1} is an optional Calc format string
- similar to
- item if(typeof(vmean($1..$7)) == 12, string(""), vmean($1..$7); E
- Mean value of a range unless there is any empty field. Every field in the
- range that is empty is replaced by samp{vmean} result
- in samp{typeof == 12} detects the
- samp{vmean} and the Org table result field is set to empty. Use this when
- the sample set is expected to never have missing values.
- item vmean($1..$7); EN
- To complete the example before: Mean value of a range with empty fields
- counting as samples with value 0. Use this only when incomplete sample sets
- should be padded with 0 to the full size.
- code{defmath}
- and use them in formula syntax for Calc.
- subsection Emacs Lisp forms as formulas
- file{calc} formulas, you can specify modes
- and a printf format after a semicolon.
- With Emacs Lisp forms, you need to be conscious about the way field
- references are interpolated into the form. By default, a reference will be
- interpolated as a Lisp string (in double-quotes) containing the field. If
- you provide the
- samp{L} flag, all fields will be interpolated
- literally, without quotes. I.e., if you want a reference to be interpreted
- as a string by the Lisp form, enclose the reference operator itself in
- double-quotes, like
- samp{N} mode is used when we do
- computations in Lisp:
- code
- item '(+ $1 $2);N
- Add columns 1 and 2, equivalent to Calc's
- item '(apply '+ '($1..$4));N
- Compute the sum of columns 1 to 4, like Calc's
- end table
- subsection Durations and time values
- cindex Time, computing
- code{T}, code{U}
- flag, either in Calc formulas or Elisp formulas:
- group
- | Task 1 | Task 2 | Total |
- |---------+----------+----------|
- | 2:12 | 1:47 | 03:59:00 |
- | 2:12 | 1:47 | 03:59 |
- | 3:02:20 | -2:07:00 | 0.92 |
- #+TBLFM: 2$3=$1+$2;T::3$3=$1+$2;U::4$3=$1+$2;t
- end example
- Input duration values must be of the form
- code{T} flag, computed durations will be displayed
- as code{U} flag,
- seconds will be omitted so that the result will be only
- code{org-table-duration-hour-zero-padding}.
- 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.
- kbd{M-kbd{C-M-i} or
- key{ESC} pxref{Completion}).}
- 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}
- /ssh: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{t}, then only
- the exact headline will be matched, ignoring spaces and cookies. If the
- value is
- r{heading search in Org file}
- code{org-link-search-must-match-exact-headline} is
- r{open in doc-view mode at page}
- id:B7423F4D-2E8A-471B-8810-C40F074717E9
- r{Usenet link}
- mailto:adentgalaxy.net
- r{MH-E folder link}
- mhe:folder#id
- r{RMAIL folder link}
- rmail:folder#id
- r{Gnus group link}
- gnus:group#id
- r{BBDB link (with regexp)}
- irc:/irc.com/#emacs/bob
- r{Info node or index link}
- shell:ls *.org
- r{Interactive Elisp command}
- elisp:(find-file-other-frame "Elisp.org")
- end example
- cindex WANDERLUST links
- On top of these built-in link types, some are available through the
- pxref{Installation}). For example, these links
- to VM or Wanderlust messages are available when you load the corresponding
- libraries from the
- example
- vm:folder
- r{VM message link}
- vm://myselfsome.where.org/folder#id
- r{VM IMAP folder link}
- vm-imap:account:folder#id
- r{WANDERLUST folder link}
- wl:folder#id
- end example
- For customizing Org to add new link types
- pxref{Link format}), for example:
- end example
- pxref{HTML export}) will inline the image as a clickable
- button. If there is no description at all and the link points to an
- image,
- that image will be inlined into the exported HTML file.
- cindex plain text external links
- Org also finds external links in the normal text and activates them
- as links. If spaces must be part of the link (for example in
- node Handling links
- cindex links, handling
- Org provides methods to create a link in the correct syntax, to
- insert it into an Org file, and to follow the link.
- kbd
- cindex storing links
- Store a link to the current location. This is a
- b{Org mode buffers}
- samp{<<target>>} at the cursor, the link points
- to the target. Otherwise it points to the current headline, which will also
- be the description
- vindex org-id-link-to-org-use-id
- cindex property, ID
- If the headline has a
- code{org-id-link-to-org-use-id}), a globally unique
- footnote{The library
- code{org-customize} by
- enabling code{org-modules}, or by adding
- b{Email/News clients: VM, Rmail, Wanderlust, MH-E, Gnus}
- b{Web browsers: Eww, W3 and W3M}
- b{Contacts: BBDB}
- b{Chat: IRC}
- vindex org-irc-link-to-logs
- For IRC links, if you set the option code{t},
- a
- samp{irc:/} style link to the
- user/channel/server under the point will be stored.
- *
- For any other files, the link will point to the file, with a search string
- (
- ref{Custom searches}.
- The key binding ref{Installation}.
- *
- When the cursor is in an agenda view, the created link points to the
- entry referenced by the current line.
- orgcmd{C-c C-l,org-insert-link}
- cindex completion, of links
- vindex org-keep-stored-link-after-insertion
- footnote{Note that you don't have to use this command to
- insert a link. Links in Org are plain text, and you can type or paste them
- straight into the buffer. By using this command, the links are automatically
- enclosed in double brackets, and you will be asked for the optional
- descriptive text.}. This prompts for a link to be inserted into the buffer.
- You can just type a link, using text for an internal link, or one of the link
- type prefixes mentioned in the examples above. The link will be inserted
- into the buffer
- kbd{C-u} prefix argument to
- code{org-keep-stored-link-after-insertion}.}, along with a descriptive text.
- If some text was selected when this command is called, the selected text
- becomes the default description.
- *
- All links stored during the
- current session are part of the history for this prompt, so you can access
- them with key{down} (or
- b{Completion support}key{TAB} will help you to insert
- valid link prefixes like
- 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 immediately 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}
- function
- r{current file and its archives}
- agenda-with-archives
- r{The time block to consider. This block is specified either}
-
- r{these formats:}
- 2007-12-31
- r{December 2007}
- 2007-W50
- r{2nd quarter in 2007}
- 2007
- var{N}
- var{N}
- var{N}
- var{N}
- r{Use key{left}/
- r{A time string specifying when to start considering times.}
- code{"<-2w>"} can also be used. See}
- ref{Matching tags and properties} for relative time syntax.}
- :tend
- r{Relative times like
- r{
- r{The starting day of the week. The default is 1 for monday.}
- :mstart
- r{day of the month.}
- :step code{week} or
- r{To use this, code{:tstart},
- r{Do not show steps that have zero time.}
- :fileskip0
- r{A tags match to select entries that should contribute. See}
- ref{Matching tags and properties} for the match syntax.}
- code{org-clocktable-write-default},
- but you can specify your own function using the
- example
- :emphasize code{t}, emphasize level one and level two items.}
- :lang footnote{Language terms can be set through the variable
- r{Link the item headlines in the table to their origins.}
- :narrow
- r{the org table. If you write it like
- r{headline will also be shortened in export.}
- :indent
- r{Number of columns to be used for times. If this is smaller}
- code{:maxlevel}, lower levels will be lumped into one column.}
- :level
- r{A cons cell like containing the column to sort and a sorting type.}
- code{:sort (1 . ?a)} sorts the first column alphabetically.}
- :compact code{:level nil :indent t :narrow 40! :tcolumns 1}}
- code{:narrow}}
- :timestamp
- r{DEADLINE, TIMESTAMP and TIMESTAMP_IA, in this order.}
- :properties
- r{property will get its own column.}
- :inherit-props code{t}, the values for
- r{Content of a
- r{As a special case,
- r{If you do not specify a formula here, any existing formula}
-
- r{A function to format clock data and insert it into the buffer.}
- example
- #+BEGIN: clocktable :maxlevel 2 :block today :scope tree1 :link t
- #+END: clocktable
- noindent
- and to use a specific time range you could write
- example
- #+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>"
- :tend "<2006-08-10 Thu 12:00>"
- #+END: clocktable
- example
- #+BEGIN: clocktable :tstart "<-1w>" :tend "<now>"
- #+END: clocktable
- example
- #+BEGIN: clocktable :scope subtree :link t :formula %
- #+END: clocktable
- example
- #+BEGIN: clocktable :scope agenda :block lastweek :compact t
- #+END: clocktable
- node Resolving idle time
- subsubheading Resolving idle time
- vindex org-clock-x11idle-program-name
- vindex org-clock-idle-time
- By customizing the variable
- footnote{On computers using Mac OS X,
- idleness is based on actual user idleness, not just Emacs' idle time. For
- X11, you can install a utility program
- code{contrib/scripts} directory of the Org git distribution, or install the
- code{org-clock-x11idle-program-name} if you are running Debian, to get the
- same general treatment of idleness. On other systems, idle time refers to
- Emacs idle time only.}, and ask what you want to do with the idle time.
- There will be a question waiting for you when you get back, indicating how
- much idle time has passed (constantly updated with the current amount), as
- well as a set of choices to correct the discrepancy:
- kbd
- kbd{k}. Org
- will ask how many of the minutes to keep. Press
- item K
- If you use the shift key and press
- item s
- To keep none of the minutes, use
- item S
- To keep none of the minutes and just clock out at the start of the away time,
- use the shift key and press
- item C
- To cancel the clock altogether, use
- end table
- What if you subtracted those away minutes from the current clock, and now
- want to apply them to a new clock? Simply clock in to any task immediately
- after the subtraction. Org will notice that you have subtracted time ``on
- the books'', so to speak, and will ask if you want to apply those minutes to
- the next task you clock in on.
- There is one other instance when this clock resolution magic occurs. Say you
- were clocked in and hacking away, and suddenly your cat chased a mouse who
- scared a hamster that crashed into your UPS's power button! You suddenly
- lose all your buffers, but thanks to auto-save you still have your recent Org
- mode changes, including your last clock in.
- If you restart Emacs and clock into any task, Org will notice that you have a
- dangling clock which was never clocked out from your last session. Using
- that clock's starting time as the beginning of the unaccounted-for period,
- Org will ask how you want to resolve that time. The logic and behavior is
- identical to dealing with away time due to idleness; it is just happening due
- to a recovery event rather than a set amount of idle time.
- You can also check all the files visited by your Org agenda for dangling
- clocks at any time using kbd{C-c C-x C-z}).
- cindex continuous clocking
- code{org-clock-continuously}
- to
- code{org-clock-in} and two code{org-clock-in-last}.
- section Effort estimates
- cindex property, Effort
- If you want to plan your work in a very detailed way, or if you need to
- produce offers with quotations of the estimated work effort, you may want to
- assign effort estimates to entries. If you are also clocking your work, you
- may later want to compare the planned effort with the actual working time,
- a great way to improve planning estimates. Effort estimates are stored in
- a special property
- table
- orgcmd{C-c C-x e,org-set-effort}
- Set the effort estimate for the current entry. With a numeric prefix
- argument, set it to the Nth allowed value (see below). This command is also
- accessible from the agenda with the
- orgcmd{C-c C-x C-e,org-clock-modify-effort-estimate}
- Modify the effort estimate of the item currently being clocked.
- pxref{Column view}). You should start by setting up discrete values for
- effort estimates, and a
- example
- #+PROPERTY: Effort_ALL 0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00
- #+COLUMNS: %40ITEM(Task) %17Effort(Estimated Effort)} %CLOCKSUM
- noindent
- vindex org-columns-default-format
- or, even better, you can set up these values globally by customizing the
- variables code{org-columns-default-format}.
- In particular if you want to use this setup also in the agenda, a global
- setup may be advised.
- The way to assign estimates to individual items is then to switch to column
- mode, and to use key{right}} and key{left}} to change the
- value. The values you enter will immediately be summed up in the hierarchy.
- In the column next to it, any clocked time will be displayed.
- footnote{Please note
- the pitfalls of summing hierarchical data in a flat list (
- code{org-agenda-columns-add-appointments-to-effort-sum}. The
- appointments on a day that take place over a specified time interval will
- then also be added to the load estimate of the day.
- Effort estimates can be used in secondary agenda filtering that is triggered
- with the pxref{Agenda commands}). If you have
- these estimates defined consistently, two or three key presses will narrow
- down the list to stuff that fits into an available time slot.
- section Taking notes with a timer
- cindex countdown timer
- table
- orgcmd{C-c C-x 0,org-timer-start}
- Start or reset the relative timer. By default, the timer is set to 0. When
- called with a
- kbd{C-u C-u}, change all timer strings
- in the active region by a certain amount. This can be used to fix timer
- strings if the timer was not started at exactly the right moment.
- code{org-timer-default-timer} sets the default countdown value. Giving
- a numeric prefix argument overrides this default value. This command is
- available as
- end table
- Once started, relative and countdown timers are controlled with the same
- commands.
- kbd
- orgcmd{C-c C-x -,org-timer-item}
- Insert a description list item with the value of the current relative or
- countdown timer. With a prefix argument, first reset the relative timer to
- 0.
- key{RET},org-insert-heading}
- Once the timer list is started, you can also use key{RET}} to insert
- new timer items.
- comma{},org-timer-pause-or-continue}
- Pause the timer, or continue it if it is already paused.
- end table
- chapter Capture - Refile - Archive
- i{capture}. It also can store files
- related to a task (
- menu
- * Capture:: Capturing new stuff
- * Attachments:: Add files to tasks
- * RSS feeds:: Getting input from RSS feeds
- * Protocols:: External (e.g., Browser) access to Emacs and Org
- * Refile and copy:: Moving/copying a tree from one place to another
- * Archiving:: What to do with finished projects
- node Capture
- cindex capture
- Capture lets you quickly store notes with little interruption of your work
- flow. Org's method for capturing new items is heavily inspired by John
- Wiegley excellent
- file{remember.el}, then replaced it with
- file{org-remember.el} has
- been completely replaced by
- file{org-remember.el}, you need to update
- it and use the setup described below. To convert your
- example
- end example
- kbd{M-x
- customize-variable org-capture-templates}, check the result, and save the
- customization.
- end menu
- subsection Setting up capture
- The following customization sets a default target file for notes, and defines
- a global keykbd{C-c c} is only a
- suggestion.} for capturing new material.
- smalllisp
- end group
- node Using capture
- table
- orgcmd{C-c c,org-capture}
- Call the command
- cindex date tree
- defined
- orgcmd{C-c C-c,org-capture-finalize}
- Once you have finished entering information into the capture buffer,
- orgcmd{C-c C-w,org-capture-refile}
- Finalize the capture process by refiling (
- code{org-refile} command.
- end table
- You can also call
- kbd{k c} key combination. With this access, any timestamps inserted by
- the selected capture template will default to the cursor date in the agenda,
- rather than to the current date.
- To find the locations of the last stored capture, use
- table
- orgkey{C-u C-c c}
- Visit the target location of a capture template. You get to select the
- template in the usual way.
- end table
- cindex org-capture-last-stored
- You can also jump to the bookmark
- code{org-capture-bookmark} to
- code{org-capture} with
- a
- node Capture templates
- cindex templates, for Capture
- You can use templates for different types of capture items, and
- for different target locations. The easiest way to create such templates is
- through the customize interface.
- kbd
- code{org-capture-templates}.
- samp{Tasks} in
- your file
- file{journal.org} should capture journal entries. A possible configuration
- would look like:
- group
- (setq org-capture-templates
- '(("t" "Todo" entry (file+headline "~/org/gtd.org" "Tasks")
- "* TODO %?\n %i\n %a")
- ("j" "Journal" entry (file+olp+datetree "~/org/journal.org")
- "* %?\nEntered on %U\n %i\n %a")))
- end smalllisp
- kbd{C-c c t}, Org will prepare the template
- for you like this:
- var{link to where you initiated capture}]]
- noindent
- During expansion of the template,
- kbd{C-c C-c} and Org returns you to the same
- place where you started the capture process.
- To define special keys to capture to a particular template without going
- through the interactive template selection, you can create your key binding
- like this:
- end lisp
- end menu
- subsubsection Template elements
- Now lets look at the elements of a template definition. Each entry in
- table
- item keys
- The keys that will select the template, as a string, characters
- only, for example
- code{"bt"} for selection with two keys. When using
- several keys, keys using the same prefix key must be sequential
- in the list and preceded by a 2-element entry explaining the
- prefix key, for example
- end smalllisp
- kbd{C} key, this key will
- be used to open the customize buffer for this complex variable.
- item type
- The type of entry, a symbol. Valid values are:
- code
- item item
- A plain list item, placed in the first plain list at the target
- location. Again the target file should be an Org file.
- item table-line
- a new line in the first table at the target location. Where exactly the
- line will be inserted depends on the properties
- code{:table-line-pos} (see below).
- end table
- vindex org-default-notes-file
- Specification of where the captured item should be placed. In Org mode
- files, targets usually define a node. Entries will become children of this
- node. Other types will be added to the table or list in the body of this
- node. Most target specifications contain a file name. If that file name is
- the empty string, it defaults to
- code{org-directory}.
- Valid values are:
- code
- item (id "id of existing org entry")
- Filing as child of this entry, or in the body of the entry.
- item (file+olp "path/to/file" "Level 1 heading" "Level 2" ...)
- For non-unique headings, the full path is safer.
- item (file+olp+datetree "path/to/file" [ "Level 1 heading" ....])
- This target
- code{file+olp+datetree}, applying the
- code{:tree-type} properties. Please rewrite your date/week-tree targets
- using
- footnote{A date tree is an outline
- structure with years on the highest level, months or ISO-weeks as sublevels
- and then dates on the lowest level. Tags are allowed in the tree structure.}
- for today's date. If the optional outline path is given, the tree will be
- built under the node it is pointing to, instead of at top level. Check out
- the code{:tree-type} properties below for additional
- options.
- item (clock)
- File to the entry that is currently being clocked.
- end table
- code{(file "path/to/template")}. See below for
- more details.
- table
- item :prepend
- Normally new captured information will be appended at
- the target location (last child, last table line, last list item...).
- Setting this property will change that.
- item :empty-lines
- Set this to the number of lines to insert
- before and after the new item. Default 0, only common other value is 1.
- item :clock-keep
- Keep the clock running when filing the captured entry.
- code{:clock-keep} has precedence over
- code{t}, the current clock will
- run and the previous one will not be resumed.
- code{org-capture} with a
- item :tree-type
- When `week', make a week tree instead of the month tree, i.e. place the
- headings for each day under a heading with the current iso week.
- item :table-line-pos
- Specification of the location in the table where the new line should be
- inserted. It can be a string, a variable holding a string or a function
- returning a string. The string should look like
- item :kill-buffer
- If the target file was not yet visited when capture was invoked, kill the
- buffer again after capture is completed.
- end table
- subsubsection Template expansion
- In the template itself, special footnote{If you need one of
- these sequences literally, escape the
- smallexample
- %[r{Insert the contents of the file given by
- var{sexp}) var{sexp} and replace with the result.}
-
- r{within the expression will be expanded prior to this.}
-
- r{The result of format-time-string on the ... format specification.}
- %t
- r{Timestamp, with date and time.}
- %u, %U
- r{Initial content, the region when capture is called while the}
-
- r{The entire text will be indented like
- r{Annotation, normally the link created with
- r{Like
- r{Like %a, but only insert the literal link.}
- %c
- r{Content of the X clipboard.}
- %k
- r{Link to the currently clocked task.}
- %n code{user-full-name}).}
- %f
- r{Full path of the file or directory visited by current buffer.}
- %:keyword
- r{Prompt for tags, with completion on tags in target file.}
- %^G
- r{Like code{%^T}, code{%^U}.}
- code{%^}t}.}
- %^C
- r{Like
- {}p var{prop}.}
- %^var{prompt}r{prompt the user for a string and replace this sequence with it.}
-
- r{%^}.}
-
- dots{} %\N {}, where
- r{a number, starting from 1.
- samp{%\1} placeholder, you need to write
- 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
- org-protocol | %:link %:description %:annotation
- 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{n,C-c C-a n,org-attach-new}
- Create a new attachment as an Emacs buffer.
- orgcmdtkc{o,C-c C-a o,org-attach-open}
- code{org-file-apps}.
- For more details, see the information on following hyperlinks
- (
- orgcmdtkc{O,C-c C-a O,org-attach-open-in-emacs}
- Also open the attachment, but force opening the file in Emacs.
- orgcmdtkc{F,C-c C-a F,org-attach-reveal-in-emacs}
- Also open the directory, but force using
- orgcmdtkc{d,C-c C-a d,org-attach-delete-one}
- Select and delete a single attachment.
- command{dired} and delete from there.
- cindex property, ATTACH_DIR
- Set a specific directory as the entry's attachment directory. This works by
- putting the directory path into the
- orgcmdtkc{i,C-c C-a i,org-attach-set-inherit}
- code{ATTACH_DIR_INHERIT} property, so that children will use the
- same directory for attachments as the parent does.
- end table
- section RSS feeds
- cindex Atom feeds
- Org can add and change entries based on information found in RSS feeds and
- Atom feeds. You could use this to make a task out of each new podcast in a
- podcast feed. Or you could use a phone-based note-creating service on the
- web to import tasks into Org. To access feeds, configure the variable
- smalllisp
- end group
- noindent
- will configure that new items from the feed provided by
- file{~/org/feeds.org} under the heading
- table
- orgcmd{C-c C-x g,org-feed-update-all}
- code{org-feed-alist} and act upon
- them.
- end table
- Under the same headline, Org will create a drawer
- file{org-feed.el} and the docstring of
- node Protocols
- cindex protocols, for external access
- Org protocol is a mean to trigger custom actions in Emacs from external
- applications. Any application that supports calling external programs with
- an URL as argument may be used with this functionality. For example, you can
- configure bookmarks in your web browser to send a link to the current page to
- Org and create a note from it using capture (
- cindex Org protocol, set-up
- samp{org-protocol://} as a valid scheme-handler. External calls are passed
- to Emacs through the
- example
- emacsclient org-protocol://PROTOCOL?key1=val1&key2=val2
- noindent
- Emacs calls the handler associated to
- samp{(:key1 val1 :key2 val2)}.
- cindex defining new protocols
- Org protocol comes with three predefined protocols, detailed in the following
- sections. Configure
- menu
- *
- code{capture} protocol:: Fill a buffer with external information.
- *
- end menu
- code{store-link} protocol
- code{store-link} protocol
- cindex protocol, store-link
- Using
- kbd{M-x org-insert-link} or yanking thereafter. More precisely, the command
- end example
- example
- [[URL][TITLE]]
- samp{URL} is pushed on the kill-ring for yanking. You need to
- encode samp{TITLE} if they contain slashes, and probably
- quote those for the shell.
- To use this feature from a browser, add a bookmark with an arbitrary name,
- e.g., emph{Location}:
- end example
- code{capture} protocol
- code{capture} protocol
- cindex protocol, capture
- Activating samp{Capture} buffer and fills
- the capture template associated to the
- example
- emacsclient org-protocol://capture?template=X?url=URL?title=TITLE?body=BODY
- samp{Org:
- capture} and enter this as
- example
- javascript:location.href='org-protocol://template=x'+
- '&url='+encodeURIComponent(window.location.href)+
- '&title='+encodeURIComponent(document.title)+
- '&body='+encodeURIComponent(window.getSelection());
- vindex org-protocol-default-template-key
- The result depends on the capture template used, which is set in the bookmark
- itself, as in the example above, or in
- cindex capture, %:link placeholder
- cindex capture, %:description placeholder
- cindex capture, %:annotation placeholder
- example
- %:link The URL
- %:description The webpage title
- %:annotation Equivalent to [[%:link][%:description]]
- %i The selected text
- node
- subsection
- cindex open-source protocol
- code{open-source} handler is designed to help with editing local sources
- when reading a document. To that effect, you can use a bookmark with the
- following location:
- end example
- cindex :base-url property in open-source protocol
- cindex :working-directory property in open-source protocol
- cindex :online-suffix property in open-source protocol
- cindex :working-suffix property in open-source protocol
- code{org-protocol-project-alist} maps URLs to local file names,
- by stripping URL parameters from the end and replacing the
- code{:working-directory} and
- code{:working-suffix}. For example, assuming you own a local copy of
- file{/home/user/worg}, you can
- set
- lisp
- (setq org-protocol-project-alist
- '(("Worg"
- :base-url "http://orgmode.org/worg/"
- :working-directory "/home/user/worg/"
- :online-suffix ".html"
- :working-suffix ".org")))
- noindent
- If you are now browsing
- cindex handle rewritten URL in open-source protocol
- url{http://example.com/}. The local
- sources reside in
- url{http://example.com/print/posters.html} might be rewritten on the server
- to something like
- code{open-source} handler probably cannot find a file named
- cindex protocol, open-source, :rewrites property
- code{org-protocol-project-alist} may hold an additional
- property
- code{:working-directory}.
- Now map the URL to the path
- code{:rewrites} rules like this:
- end lisp
- samp{example.com/$} is used as a regular expression, it maps
- url{https://example.com},
- file{/home/user/example/index.php}.
- The
- cindex protocol, open-source, set-up mapping
- findex org-protocol-create
- code{org-protocol-project-alist} with
- valid contents:
- code{org-protocol-create-for-org}. The latter is of use if you're editing
- an Org file that is part of a publishing project.
- section Refile and copy
- cindex copying notes
- When reviewing the captured data, you may want to refile or to copy some of
- the entries into a different list, for example into a project. Cutting,
- finding the right location, and then pasting the note is cumbersome. To
- simplify this process, you can use the following special command:
- kbd
- findex org-copy
- Copying works like refiling, except that the original note is not deleted.
- findex org-refile
- vindex org-refile-targets
- vindex org-outline-path-complete-in-steps
- vindex org-log-refile
- vindex org-refile-keep
- Refile the entry or region at point. This command offers possible locations
- for refiling the entry and lets you select one with completion. The item (or
- all items in the region) is filed below the target heading as a subitem.
- Depending on
- *
- By default, all level 1 headlines in the current buffer are considered to be
- targets, but you can have more complex definitions across a number of files.
- See the variable
- code{org-refile-use-outline-path} and
- code{org-refile-allow-creating-parent-nodes}.
- When the variable footnote{with corresponding
- code{logrefile},
- code{nologrefile}} is set, a timestamp or a note will be
- recorded when an entry has been refiled.
- orgcmd{C-u C-u C-c C-w,org-refile-goto-last-stored}
- Jump to the location where
- item C-2 C-c C-w
- Refile as the child of the item currently being clocked.
- code{org-refile-keep} to make
- this the default behavior, and beware that this may result in duplicated
- orgcmdtkc{C-0 C-c C-w r{or}
- code{org-refile-use-cache}. To make the command see new possible
- targets, you have to clear the cache with this command.
- node Archiving
- cindex archiving
- When a project represented by a (sub)tree is finished, you may want
- to move the tree out of the way and to stop it from contributing to the
- agenda. Archiving is important to keep your working files compact and global
- searches like the construction of agenda views fast.
- kbd
- vindex org-archive-default-command
- Archive the current entry using the command specified in the variable
- end table
- end menu
- subsection Moving a tree to the archive file
- table
- orgcmdkskc{C-c C-x C-s,C-c $,org-archive-subtree}
- code{org-archive-location}.
- emph{not} on a headline when this command
- is invoked, the level 1 trees will be checked.
- emph{does} contain a
- timestamp, and that timestamp is in the past.
- cindex archive locations
- The default archive location is a file in the same directory as the
- current file, with the name derived by appending
- code{org-archive-location}.
- There is also an in-buffer option for setting this variable, for example:
- example
- #+ARCHIVE: %s_done::
- cindex property, ARCHIVE
- code{:ARCHIVE:} property with the
- location as the value (
- vindex org-archive-save-context-info
- When a subtree is moved, it receives a number of special properties that
- record context information like the file from where the entry came, its
- outline path the archiving time etc. Configure the variable
- node Internal archiving
- cindex archive tag
- If you want to just switch off---for agenda views---certain subtrees without
- moving them to a different file, you can use the archive tag.
- A headline that is marked with the pxref{Tags}) stays
- at its location in the outline tree, but behaves in the following way:
- minus
- vindex org-cycle-open-archived-trees
- It does not open when you attempt to do so with a visibility cycling
- command (
- kbd{C-
- code{org-cycle-open-archived-trees}. Also normal outline commands like
- item
- pxref{Sparse trees}), matches in
- archived subtrees are not exposed, unless you configure the option
- item
- pxref{Agenda views}), the content of
- archived trees is ignored unless you configure the option
- kbd{v a} to get archives
- temporarily included.
- vindex org-export-with-archived-trees
- Archived trees are not exported (
- code{org-export-with-archived-trees}.
- vindex org-columns-skip-archived-trees
- Archived trees are excluded from column view unless the variable
- code{nil}.
- table
- orgcmd{C-c C-x a,org-toggle-archive-tag}
- Toggle the ARCHIVE tag for the current headline. When the tag is set,
- the headline changes to a shadowed face, and the subtree below it is
- hidden.
- emph{not} on a headline when this command is invoked, the
- level 1 trees will be checked.
- kbd{TAB},org-force-cycle-archived}
- Cycle a tree even if it is tagged with ARCHIVE.
- emph{Archive Sibling}. This is a sibling of
- the entry with the heading samp{ARCHIVE}. The
- entry becomes a child of that sibling and in this way retains a lot of its
- original context, including inherited tags and approximate position in the
- outline.
- node Agenda views
- cindex agenda views
- Due to the way Org works, TODO items, time-stamped items, and
- tagged headlines can be scattered throughout a file or even a number of
- files. To get an overview of open action items, or of events that are
- important for a particular date, this information must be collected,
- sorted and displayed in an organized way.
- Org can select items based on various criteria and display them
- in a separate buffer. Six different view types are provided:
- bullet
- emph{agenda} that is like a calendar and shows information
- for specific dates,
- emph{TODO list} that covers all unfinished
- action items,
- emph{match view}, showings headlines based on the tags, properties, and
- TODO state associated with them,
- emph{text search view} that shows all entries from multiple files
- that contain specified keywords,
- emph{stuck projects view} showing projects that currently don't move
- along, and
- emph{custom views} that are special searches and combinations of different
- views.
- noindent
- The extracted information is displayed in a special
- vindex org-agenda-skip-comment-trees
- cindex commented entries, in agenda views
- pxref{Comment lines}) and archived
- (
- code{org-agenda-skip-comment-trees} and
- code{nil}.
- vindex org-agenda-restore-windows-after-quit
- Two variables control how the agenda buffer is displayed and whether the
- window configuration is restored when the agenda exits:
- code{org-agenda-restore-windows-after-quit}.
- end menu
- section Agenda files
- cindex files for agenda
- emph{agenda
- files}, the files listed in the variable
- footnote{If the value of that variable is not a
- list, but a single file name, then the list of agenda files will be
- maintained in that external file.}. If a directory is part of this list,
- all files with the extension
- footnote{When using the dispatcher, pressing
- code{org-agenda-files} until the next
- dispatcher command.}. You can customize
- cindex files, adding to agenda list
- kbd
- orgcmd{C-c ],org-remove-file}
- Remove current file from the list of agenda files.
- cindex cycling, of agenda files
- itemx C-,
- Cycle through agenda file list, visiting one file after the other.
- item M-x org-iswitchb RET
- Command to use an
- end table
- kbd{<} once or several times in the dispatcher
- (
- table
- orgcmd{C-c C-x <,org-agenda-set-restriction-lock}
- Permanently restrict the agenda to the current subtree. When with a
- prefix argument, or with the cursor before the first headline in a file,
- the agenda scope is set to the entire file. This restriction remains in
- effect until removed with kbd{<}
- or
- orgcmd{C-c C-x >,org-agenda-remove-restriction-lock}
- Remove the permanent restriction created by
- end table
- file{speedbar.el}, you can use the following commands in
- the Speedbar frame:
- kbd
- r{in the speedbar frame},<,org-speedbar-set-agenda-restriction}
- Permanently restrict the agenda to the item---either an Org file or a subtree
- in such a file---at the cursor in the Speedbar frame.
- If there is a window displaying an agenda view, the new restriction takes
- effect immediately.
- r{in the speedbar frame},>,org-agenda-remove-restriction-lock}
- Lift the restriction.
- node Agenda dispatcher
- cindex agenda dispatcher
- kbd{C-c a} (
- kbd{C-c a} is indeed how the dispatcher
- is accessed and list keyboard access to commands accordingly. After
- pressing
- table
- item a
- Create the calendar-like agenda (
- item t
- pxref{Global TODO list}).
- r{/} M
- Create a list of headlines matching a TAGS expression (
- item s
- Create a list of entries selected by a boolean expression of keywords
- and/or regular expressions that must or must not occur in the entry.
- vindex org-agenda-text-search-extra-files
- Search for a regular expression in all agenda files and additionally in
- the files listed in
- code{multi-occur}. A prefix argument can be
- used to specify the number of context lines for each match, default is
- 1.
- r{/} !
- Create a list of stuck projects (
- item <
- Restrict an agenda command to the current buffer
- kbd{1} to restrict to the current
- buffer.}. After pressing
- item < <
- If there is an active region, restrict the following agenda command to
- the region. Otherwise, restrict it to the current subtree
- kbd{0} to restrict to the
- current region/subtree.}. After pressing
- item *
- vindex org-agenda-sticky
- Toggle sticky agenda views. By default, Org maintains only a single agenda
- buffer and rebuilds it each time you change the view, to make sure everything
- is always up to date. If you often switch between agenda views and the build
- time bothers you, you can turn on sticky agenda buffers or make this the
- default by customizing the variable
- kbd{r} or
- code{org-toggle-sticky-agenda}.
- xref{Custom agenda views}.
- section The built-in agenda views
- In this section we describe the built-in views.
- end menu
- subsection The weekly/daily agenda
- cindex weekly agenda
- emph{agenda} is to act like a page of a
- paper agenda, showing all the tasks for the current week or day.
- kbd
- orgcmd{C-c a a,org-agenda-list}
- Compile an agenda for the current week from a list of Org files. The agenda
- shows the entries for each day. With a numeric prefix
- kbd{C-u} causes all TODO entries to be
- listed before the agenda. This feature is deprecated, use the dedicated TODO
- list, or a block agenda instead (kbd{C-u 2 1
- C-c a a}) you may set the number of days to be displayed.
- vindex org-agenda-span
- vindex org-agenda-start-day
- code{org-agenda-span} (or the obsolete
- code{day}, code{month} or
- code{org-agenda-start-on-weekday}). You can also set the start
- date using a date shift:
- ref{Agenda
- commands}.
- cindex calendar integration
- lisp
- (setq org-agenda-include-diary t)
- noindent After that, everything will happen automatically. All diary
- entries including holidays, anniversaries, etc., will be included in the
- agenda buffer created by Org mode. key{TAB}, and
- kbd{i} command to
- insert new entries for the current date works in the agenda buffer, as
- well as the commands kbd{M}, and
- kbd{c} can be used to switch back and forth
- between calendar and agenda.
- If you are using the diary only for sexp entries and holidays, it is
- faster to not use the above setting, but instead to copy or even move
- the entries into an Org file. Org mode evaluates diary-style sexp
- entries, and does it faster because there is no overhead for first
- creating the diary display. Note that the sexp entries must start at
- the left margin, no whitespace is allowed before them. For example,
- the following segment of an Org file will be processed and entries
- will be made in the agenda:
- footnote{code{diary-anniversary}, but the argument order is always according to ISO and therefore independent of the value of
- end example
- cindex BBDB, anniversaries
- example
- * Anniversaries
- :PROPERTIES:
- :CATEGORY: Anniv
- :END:
- %%(org-bbdb-anniversaries)
- kbd{C-o anniversary
- code{YYYY-MM-DD} or
- samp{birthday} or
- samp{birthday}. Here are a few examples, the header for the file
- example
- 1973-06-22
- 06-22
- 1955-08-02 wedding
- 2008-04-14 %s released version 6.01 of org mode, %d years ago
- samp{%%(diary-anniversary)} entries
- in an Org or Diary file.
- If you would like to see upcoming anniversaries with a bit of forewarning,
- you can use the following instead:
- end example
- That will give you three days' warning: on the anniversary date itself and the
- two days prior. The argument is optional: if omitted, it defaults to 7.
- cindex
- cindex appointment reminders
- cindex reminders
- Org can interact with Emacs appointments notification facility. To add the
- appointments of your agenda files, use the command
- code{APPT_WARNTIME} property which will then override the
- value of
- node Global TODO list
- cindex global TODO list
- table
- orgcmd{C-c a t,org-todo-list}
- Show the global TODO list. This collects the TODO items from all agenda
- files (
- code{agenda-mode}, so there are commands to examine and manipulate the TODO
- entries directly from that buffer (
- orgcmd{C-c a T,org-todo-list}
- vindex org-todo-keywords
- Like the above, but allows selection of a specific TODO keyword. You can
- also do this by specifying a prefix argument to
- samp{|} as the boolean OR operator. With a numeric
- prefix, the Nth keyword in
- kindex r
- The
- kbd{3 r}. If you often need a search for a specific
- keyword, define a custom command for it (*
- Matching specific TODO keywords can also be done as part of a tags
- search (
- end table
- Remote editing of TODO items means that you can change the state of a
- TODO entry with a single key press. The commands available in the
- TODO list are described in
- cindex sublevels, inclusion into TODO list
- Normally the global TODO list simply shows all headlines with TODO
- keywords. This list can become very long. There are two ways to keep
- it more compact:
- minus
- vindex org-agenda-todo-ignore-scheduled
- vindex org-agenda-todo-ignore-timestamp
- emph{scheduled} for execution or
- have a pxref{Timestamps}) as no longer
- code{org-agenda-todo-ignore-scheduled},
- code{org-agenda-todo-ignore-timestamp} and/or
- item
- code{org-agenda-todo-list-sublevels} to get this behavior.
- node Matching tags and properties
- cindex matching, of tags
- cindex tags view
- emph{tags} (
- pxref{Properties and columns}), you can select headlines
- based on this metadata and collect them into an agenda buffer. The match
- syntax described here also applies when creating sparse trees with
- table
- orgcmd{C-c a m,org-tags-view}
- Produce a list of all headlines that match a given set of tags. The
- command prompts for a selection criterion, which is a boolean logic
- expression with tags, like
- samp{work|home} (
- pxref{Agenda dispatcher}).
- vindex org-tags-match-list-sublevels
- kbd{C-c a m}, but only select headlines that are also TODO items in a
- not-DONE state and force checking subitems (see variable
- code{org-agenda-tags-todo-honor-ignore-options}. Matching
- specific TODO keywords together with a tags match is also possible, see
- end table
- The commands available in the tags list are described in
- subsubheading Match syntax
- samp{&} for
- samp{|} for . samp{|}.
- Parentheses are not implemented. Each element in the search is either a
- tag, a regular expression matching tags, or an expression like
- samp{-}, to select
- against it, and
- code{AND} operator samp{+} or
- table
- item work
- Select headlines tagged
- item work&boss
- Select headlines tagged samp{:boss:}.
- samp{:work:}, but discard those also tagged
- item work|laptop
- Selects lines tagged samp{:laptop:}.
- samp{:laptop:} lines to be tagged also
- end table
- samp{work+}} matches headlines that contain the tag
- i{starting} with
- cindex group tags, as regular expressions
- Group tags (
- samp{:work:} is a group tag for the group
- samp{work} will search for {\(?:work\|lab\|conf\)
- samp{-work} will search for all headlines but those with
- one of the tags in the group (i.e., {\(?:work\|lab\|conf\)
- cindex TODO keyword matching, with tags search
- cindex category, require for tags/property match
- pxref{Properties and columns}) at the same
- time as matching tags. The properties may be real properties, or special
- properties that represent other metadata (
- code{TODO} represents the TODO keyword of the
- entry and the ``property''
- code{LEVEL} represents the
- level of an entry. So a search
- samp{boss} and are
- . In buffers with
- samp{LEVEL} does not count the number of stars, but
- table
- item work+TODO="WAITING"
- Select
- samp{WAITING}.
- end table
- When matching properties, a number of different operators can be used to test
- the value of a property. Here is a complex example:
- {Sarah\|Denny
- end example
- itemize
- item
- If the comparison value is a plain number, a numerical comparison is done,
- and the allowed operators are samp{=}, samp{<=},
- samp{<>}.
- item
- If the comparison value is enclosed in double-quotes
- samp{DEADLINE<="<2008-12-24 18:30>"}), both values are
- assumed to be date/time specifications in the standard Org way, and the
- comparison will be done accordingly. Special values that will be recognized
- are code{"<today>"}, and
- code{"<+5d>"} or
- code{d}, code{m}, and
- item
- If the comparison value is enclosed
- in curly braces, a regexp match is performed, with
- samp{<>} meaning that it does not
- match.
- samp{:work:} but
- not samp{A}, a
- samp{unlimited}, an
- samp{:With:} property that is
- matched by the regular expression
- ref{Property
- inheritance}, for details.
- For backward compatibility, and also for typing speed, there is also a
- different way to test TODO states in a search. For this, terminate the
- tags/property part of the search string (which may include several terms
- connected with samp{/} and then specify a Boolean
- expression just for TODO keywords. The syntax is then similar to that for
- tags, but should be applied with care: for example, a positive selection on
- several TODO keywords cannot meaningfully be combined with boolean AND
- emph{negative selection} combined with AND can be meaningful. To
- make sure that only lines are checked that actually have any TODO keyword
- (resulting in a speed-up), use
- samp{!}. Using samp{/!} will
- not match TODO keywords in a DONE state. Examples:
- samp
- samp{work+TODO="WAITING"}
- samp{:work:}-tagged TODO lines that are neither
- samp{NEXT}
- samp{:work:}-tagged TODO lines that are either
- samp{NEXT}.
- node Search view
- cindex search view
- cindex searching, for text
- This agenda view is a general text search facility for Org mode entries.
- It is particularly useful to find notes.
- kbd
- end table
- For example, the search string
- samp{computer equipment} as a substring. If the two words are
- separated by more space or a line break, the search will still match.
- Search view can also search for specific keywords in the entry, using Boolean
- logic. The search string {8\.11[bg]
- code{computer}
- and code{ethernet}, and which are also
- not matched by the regular expression
- samp{+} is necessary to turn on
- word search, other
- code{org-search-view}.
- code{org-agenda-text-search-extra-files}.
- subsection Stuck projects
- emph{stuck} project is a project that
- has no defined next actions, so it will never show up in the TODO lists
- Org mode produces. During the review, you need to identify such
- projects and define next actions for them.
- kbd
- kindex C-c a !
- vindex org-stuck-projects
- Customize the variable
- end table
- You almost certainly will have to configure this view before it will
- work for you. The built-in default assumes that all your projects are
- level-2 headlines, and that a project is not stuck if it has at least
- one entry marked with a TODO keyword TODO or NEXT or NEXTACTION.
- Let's assume that you, in your own way of using Org mode, identify
- projects with a tag PROJECT, and that you use a TODO keyword MAYBE to
- indicate a project that should not be considered yet. Let's further
- assume that the TODO keyword DONE marks finished projects, and that NEXT
- and TODO indicate next actions. The tag SHOP indicates shopping and
- is a next action even without the NEXT tag. Finally, if the project
- contains the special word IGNORE anywhere, it should not be listed
- either. In this case you would start by identifying eligible projects
- with a tags/todo matchxref{Tag searches}.}
- lisp
- (setq org-stuck-projects
- '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@@SHOP")
- "\\<IGNORE\\>"))
- node Presentation and sorting
- cindex presentation, of agenda items
- vindex org-agenda-tags-column
- Before displaying items in an agenda view, Org mode visually prepares the
- items and sorts them. Each item occupies a single line. The line starts
- with a emph{category} (
- code{org-agenda-tags-column}. You can
- also customize the prefix using the option
- menu
- * Categories:: Not all tasks are equal
- * Time-of-day specifications:: How the agenda knows the time
- * Sorting agenda items:: The order of things
- * Filtering/limiting agenda items:: Dynamically narrow the agenda
- node Categories
- cindex category
- example
- #+CATEGORY: Thesis
- noindent
- code{:CATEGORY:} property with the
- special category you want to apply as the value.
- noindent
- You can set up icons for category by customizing the
- node Time-of-day specifications
- cindex time-of-day specification
- Org mode checks each agenda item for a time-of-day specification. The
- time can be part of the timestamp that triggered inclusion into the
- agenda, for example as in samp{<2005-05-10 Tue 19:00>}}. Time
- ranges can be specified with two timestamps, like
- w{
- samp{12:45} or a
- pxref{Weekly/daily agenda}), time
- specifications in diary entries are recognized as well.
- For agenda display, Org mode extracts the time and displays it in a
- standard 24 hour format as part of the prefix. The example times in
- the previous paragraphs would end up in the agenda like this:
- end example
- example
- 8:00...... ------------------
- 8:30-13:00 Arthur Dent lies in front of the bulldozer
- 10:00...... ------------------
- 12:00...... ------------------
- 12:45...... Ford Prefect arrives and takes Arthur to the pub
- 14:00...... ------------------
- 16:00...... ------------------
- 18:00...... ------------------
- 19:00...... The Vogon reads his poem
- 20:00...... ------------------
- 20:30-22:15 Marvin escorts the Hitchhikers to the bridge
- vindex org-agenda-use-time-grid
- code{org-agenda-use-time-grid}, and can be configured with
- node Sorting agenda items
- cindex sorting, of agenda items
- itemize
- item
- emph{schedule} for the day. After that, items remain
- grouped in categories, in the sequence given by
- pxref{Priorities}),
- which is composed of the base priority (2000 for priority
- samp{B}, and 0 for
- item
- For the TODO list, items remain in the order of categories, but within
- each category, sorting takes place according to priority
- (
- item
- For tags matches, items are not sorted at all, but just appear in the
- sequence in which they are found in the agenda files.
- vindex org-agenda-sorting-strategy
- Sorting can be customized using the variable
- pxref{Effort estimates}).
- subsection Filtering/limiting agenda items
- Agenda built-in or customized commands are statically defined. Agenda
- filters and limits provide two ways of dynamically narrowing down the list of
- agenda entries: emph{limits}. Filters only act on the
- display of the items, while limits take effect before the list of agenda
- entries is built. Filters are more often used interactively, while limits are
- mostly useful when defined as local variables within custom agenda commands.
- cindex filtering, by tag, category, top headline and effort, in agenda
- cindex category filtering, in agenda
- cindex effort filtering, in agenda
- table
- orgcmd{/,org-agenda-filter-by-tag}
- footnote{Custom commands can preset a filter by
- binding the variable
- key{SPC} will mean any tag
- at all. Pressing
- emph{do} have the tag.
- A second
- kbd{+} or
- code{org-agenda-auto-exclude-function} is set to a user-defined function,
- that function can decide which tags should be excluded from the agenda
- automatically. Once this is set, the kbd{RET}
- as a sub-option key and runs the auto exclusion logic. For example, let's
- say you use a
- code{Errand} tag for errands in town, and a
- smalllisp
- end group
- c
- kindex ]
- {
- }
- {
- table
- item
- kbd{[} and
- kbd{kbd{
- samp{+}, indicating that this search
- term
- i{must not} occur/match in the entry for it to be
- selected.
- orgcmd{<,org-agenda-filter-by-category}
- code{<} another time will remove this filter. When called
- with a prefix argument exclude the category of the item at point from the
- agenda.
- You can add a filter preset in custom agenda commands through the option
- xref{Setting options}.
- orgcmd{=,org-agenda-filter-by-regexp}
- emph{out} entries matching the regexp. With two
- universal prefix arguments, it will remove all the regexp filters, which can
- be accumulated.
- You can add a filter preset in custom agenda commands through the option
- xref{Setting options}.
- vindex org-agenda-effort-filter-preset
- lisp
- (setq org-global-properties
- '(("Effort_ALL". "0 0:10 0:30 1:00 2:00 3:00 4:00")))
- kbd{<}, kbd{=}, and then the one-digit index of an effort
- estimate in your array of allowed values, where
- code{org-sort-agenda-noeffort-is-high}.
- When called with a prefix argument, it will remove entries matching the
- condition. With two universal prefix arguments, it will clear effort
- filters, which can be accumulated.
- You can add a filter preset in custom agenda commands through the option
- xref{Setting options}.
- end table
- cindex limits, in agenda
- vindex org-agenda-max-effort
- vindex org-agenda-max-tags
- Here is a list of options that you can set, either globally, or locally in
- your custom agenda views (
- table
- item org-agenda-max-entries
- Limit the number of entries.
- item org-agenda-max-todos
- Limit the number of entries with TODO keywords.
- end table
- When set to a positive integer, each option will exclude entries from other
- categories: for example,
- code{org-agenda-max-effort}.
- One useful setup is to use
- code{NEXT} TODO keyword.
- end smalllisp
- Once you mark one of these five entry as
- table
- orgcmd{~,org-agenda-limit-interactively}
- This prompts for the type of limit to apply and its value.
- node Agenda commands
- cindex commands, in agenda buffer
- Entries in the agenda buffer are linked back to the Org file or diary
- file where they originate. You are not allowed to edit the agenda
- buffer itself, but commands are provided to show and jump to the
- original entry location, and to edit the Org files ``remotely'' from
- the agenda buffer. In this way, all information is stored only once,
- removing the risk that your agenda and note files may diverge.
- Some commands can be executed with mouse clicks on agenda lines. For
- the other commands, the cursor needs to be in the desired line.
- kbd
- cindex motion commands in agenda
- key{down} and
- orgcmd{p,org-agenda-previous-line}
- Previous line (same as kbd{C-p}).
- orgcmd{P,org-agenda-previous-item}
- Previous item: same as previous line, but only consider items.
- orgcmdkkc{
- c
- c
- key{TAB},mouse-2,org-agenda-goto}
- Go to the original location of the item in another window.
- orgcmd{
- c
- vindex org-agenda-start-with-follow-mode
- Toggle Follow mode. In Follow mode, as you move the cursor through
- the agenda buffer, the other window always shows the corresponding
- location in the Org file. The initial setting for this mode in new
- agenda buffers can be set with the variable
- c
- kbd{C-u} prefix, do not remove the
- previously used indirect buffer.
- tsubheading{Change display}
- kindex A
- c
- item o
- Delete other windows.
- orgcmdkskc{v d,d,org-agenda-day-view}
- xorgcmd{v t,org-agenda-fortnight-view}
- xorgcmd{v y,org-agenda-year-view}
- vindex org-agenda-span
- Switch to day/week/month/year view. When switching to day or week view, this
- setting becomes the default for subsequent agenda refreshes. Since month and
- year views are slow to create, they do not become the default. A numeric
- prefix argument may be used to jump directly to a specific day of the year,
- ISO week, month, or year, respectively. For example,
- kbd{9 w} to ISO week number 9. When setting day, week, or
- month view, a year may be encoded in the prefix argument as well. For
- example,
- kbd{v
- code{org-agenda-span}.
- orgcmd{f,org-agenda-later}
- Go forward in time to display the following
- code{org-agenda-current-span} days.
- orgcmd{b,org-agenda-earlier}
- Go backward in time to display earlier dates.
- orgcmd{.,org-agenda-goto-today}
- Go to today.
- orgcmd{j,org-agenda-goto-date}
- Prompt for a date and go there.
- orgcmd{J,org-agenda-clock-goto}
- Go to the currently clocked-in task
- c
- ref{Weekly/daily agenda}.
- orgcmdkskc{v l,l,org-agenda-log-mode}
- vindex org-log-done
- code{org-log-done}) are shown in the agenda, as are
- entries that have been clocked on that day. You can configure the entry
- types that should be included in log mode using the variable
- kbd{C-u} prefix, show
- all possible logbook entries, including state changes. When called with two
- prefix arguments
- kbd{v L} is equivalent to
- c
- c
- xorgcmd{v A,org-agenda-archives-mode 'files}
- code{ARCHIVED} are also scanned when producing the agenda. When you use the
- capital
- kbd{v a} again.
- orgcmdkskc{v R,R,org-agenda-clockreport-mode}
- vindex org-clock-report-include-clocking-task
- Toggle Clockreport mode. In Clockreport mode, the daily/weekly agenda will
- always show a table with the clocked times for the time span and file scope
- covered by the current agenda view. The initial setting for this mode in new
- agenda buffers can be set with the variable
- kbd{C-u R}), the clock table will not show
- contributions from entries that are hidden by agenda filtering
- code{org-clock-report-include-clocking-task}.
- orgkey{v c}
- code{org-agenda-clock-consistency-checks} for
- information on how to customize the definition of what constituted a clocking
- problem. To return to normal agenda display, press
- c
- vindex org-agenda-start-with-entry-text-mode
- code{org-agenda-entry-text-maxlines}. Calling this command with a numeric
- prefix argument will temporarily modify that number to the prefix value.
- orgcmd{G,org-agenda-toggle-time-grid}
- vindex org-agenda-time-grid
- Toggle the time grid on and off. See also the variables
- code{org-agenda-time-grid}.
- orgcmd{r,org-agenda-redo}
- Recreate the agenda buffer, for example to reflect the changes after
- modification of the timestamps of items with key{left}} and
- key{right}}. When the buffer is the global TODO list, a prefix
- argument is interpreted to create a selective list for a specific TODO
- keyword.
- kbd{r}.
- orgcmdkskc{C-x C-s,s,org-save-all-org-buffers}
- Save all Org buffers in the current Emacs session, and also the locations of
- IDs.
- orgcmd{C-c C-x C-c,org-agenda-columns}
- pxref{Column view}) in the agenda buffer. The column
- view format is taken from the entry at point, or (if there is no entry at
- point), from the first entry in the agenda view. So whatever the format for
- that entry would be in the original buffer (taken from a property, from a
- code{org-columns-default-format}), will be used in the agenda.
- pxref{Agenda files}).
- pxref{Filtering/limiting
- agenda items}.
- orgcmd{<,org-agenda-filter-by-category}
- Filter the current agenda view with respect to the category of the item at
- point.
- orgcmd{=,org-agenda-filter-by-regexp}
- Filter the agenda view by a regular expression.
- orgcmd{|,org-agenda-filter-remove-all}
- Remove all filters in the current agenda view.
- cindex remote editing, from agenda
- c
- cindex remote editing, undo
- c
- c
- key{right},org-agenda-todo-nextset}
- key{left},org-agenda-todo-previousset}
- Switch to the next/previous set of TODO keywords.
- orgcmd{C-k,org-agenda-kill}
- code{org-agenda-confirm-kill}.
- orgcmd{C-c C-w,org-agenda-refile}
- Refile the entry at point.
- orgcmdkskc{C-c C-x C-a,a,org-agenda-archive-default-with-confirmation}
- code{org-archive-default-command}. When using the
- c
- c
- emph{archive
- sibling}.
- orgcmdkskc{C-c C-x C-s,$,org-agenda-archive}
- Archive the subtree corresponding to the current headline. This means the
- entry will be moved to the configured archive location, most likely a
- different file.
- orgcmd{T,org-agenda-show-tags}
- code{org-agenda-show-inherited-tags}, but still want to see all
- tags of a headline occasionally.
- orgcmd{:,org-agenda-set-tags}
- Set tags for the current headline. If there is an active region in the
- agenda, change a tag for all headings in the region.
- kindex ,
- command{org-agenda-priority}).
- Org mode prompts for the priority character. If you reply with
- c
- c
- key{up},org-agenda-priority-up}
- Increase the priority of the current item. The priority is changed in
- the original buffer, but the agenda is not resorted. Use the
- c
- key{down},org-agenda-priority-down}
- Decrease the priority of the current item.
- orgcmdkkc{z,C-c C-z,org-agenda-add-note}
- code{org-log-into-drawer}, this may be inside a drawer.
- orgcmd{C-c C-a,org-attach}
- Dispatcher for all command related to attachments.
- orgcmd{C-c C-s,org-agenda-schedule}
- Schedule this item. With prefix arg remove the scheduling timestamp
- orgcmd{C-c C-d,org-agenda-deadline}
- Set a deadline for this item. With prefix arg remove the deadline.
- orgcmd{S-
- *
- With a numeric prefix argument, change it by that many days. For example,
- key{right}} will change it by a year. With a
- kbd{C-u
- C-u} prefix, do the same for changing minutes.
- kbd{r} or
- c
- key{left},org-agenda-do-date-earlier}
- Change the timestamp associated with the current line by one day
- into the past.
- orgcmd{>,org-agenda-date-prompt}
- Change the timestamp associated with the current line. The key
- kbd{S-.} on my keyboard.
- orgcmd{I,org-agenda-clock-in}
- Start the clock on the current item. If a clock is running already, it
- is stopped first.
- orgcmd{O,org-agenda-clock-out}
- Stop the previously started clock.
- orgcmd{X,org-agenda-clock-cancel}
- Cancel the currently running clock.
- orgcmd{J,org-agenda-clock-goto}
- Jump to the running clock in another window.
- orgcmd{k,org-agenda-capture}
- Like
- code{org-capture-use-agenda-date} to make this
- the default behavior of
- cindex capturing, from agenda
- tsubheading{Dragging agenda lines forward/backward}
- orgcmd{M-<up>,org-agenda-drag-line-backward}
- Drag the line at point backward one line
- file{.org} files}. With a numeric prefix argument, drag backward by that
- many lines.
- tsubheading{Bulk remote editing selected entries}
- vindex org-agenda-bulk-custom-functions
- c
- c
- c
- c
- c
- c
- c
- kbd{B}
- will be passed through to the kbd{d} commands, to bulk-remove
- these special timestamps. By default, marks are removed after the bulk. If
- you want them to persist, set code{t}
- or hit
- table
- item *
- Toggle persistent marks.
- item A
- Archive entries by moving them to their respective archive siblings.
- item +
- Add a tag to all selected entries.
- item s
- Schedule all items to a new date. To shift existing schedule dates by a
- fixed number of days, use something starting with double plus at the prompt,
- for example samp{++2w}.
- item r
- Prompt for a single refile target and move all entries. The entries will no
- longer be in the agenda; refresh (
- item S
- Reschedule randomly into the coming N days. N will be prompted for. With
- prefix arg (
- item f
- Apply a function
- code{org-agenda-bulk-custom-functions}.} to marked entries. For
- example, the function below sets the CATEGORY property of the entries to web.
- group
- (defun set-category ()
- (interactive "P")
- (let* ((marker (or (org-get-at-bol 'org-hd-marker)
- (org-agenda-error)))
- (buffer (marker-buffer marker)))
- (with-current-buffer buffer
- (save-excursion
- (save-restriction
- (widen)
- (goto-char marker)
- (org-back-to-heading t)
- (org-set-property "CATEGORY" "web"))))))
- end lisp
- tsubheading{Calendar commands}
- orgcmd{c,org-agenda-goto-calendar}
- Open the Emacs calendar and move to the date at the agenda cursor.
- orgcmd{c,org-calendar-goto-agenda}
- When in the calendar, compute and show the Org mode agenda for the
- date at the cursor.
- cindex diary entries, creating from agenda
- vindex org-agenda-diary-file
- Insert a new entry into the diary, using the date at the cursor and (for
- block entries) the date at the mark. This will add to the Emacs diary
- file
- code{org-agenda-include-diary} is set.}, in a way similar to the
- code{org-agenda-diary-file} to point to an Org mode file,
- Org will create entries (in Org mode syntax) in that file instead. Most
- entries will be stored in a date-based outline tree that will later make it
- easy to archive appointments from previous months/years. The tree will be
- built under an entry with a
- code{org-agenda-diary-file} without further
- interaction. If you directly press
- kbd{k r} command.
- orgcmd{M,org-agenda-phases-of-moon}
- Show the phases of the moon for the three months around current date.
- orgcmd{S,org-agenda-sunrise-sunset}
- Show sunrise and sunset times. The geographical location must be set
- with calendar variables, see the documentation for the Emacs calendar.
- orgcmd{C,org-agenda-convert-date}
- Convert the date at cursor into many other cultural and historic
- calendars.
- orgcmd{H,org-agenda-holidays}
- Show holidays for three months around the cursor date.
- tsubheading{Exporting to a file}
- cindex exporting agenda views
- vindex org-agenda-exporter-settings
- Write the agenda view to a file. Depending on the extension of the selected
- file name, the view will be exported as HTML (file{.htm}),
- Postscript (file{.pdf}), Org (
- kbd{C-u} prefix argument, immediately open the newly created file. Use the
- variable
- file{ps-print} and for
- tsubheading{Quit and Exit}
- c
- orgcmd{x,org-agenda-exit}
- Exit agenda, remove the agenda buffer and all buffers loaded by Emacs
- for the compilation of the agenda. Buffers created by the user to
- visit Org files will not be removed.
- node Custom agenda views
- cindex custom agenda views
- pxref{Agenda dispatcher}), just like the default commands.
- end menu
- subsection Storing searches
- The first application of custom searches is the definition of keyboard
- shortcuts for frequently used searches, either creating an agenda
- buffer, or a sparse tree (the latter covering of course only the current
- buffer).
- vindex org-agenda-custom-commands
- cindex agenda, as an agenda views
- cindex tags, as an agenda view
- cindex tags-todo
- cindex occur-tree
- code{org-agenda-custom-commands}. You can customize this variable, for
- example by pressing
- lisp
- end group
- noindent
- The initial string in each entry defines the keys you have to press
- after the dispatcher command
- footnote{You can provide a description for a prefix key by
- inserting a cons cell with the prefix and the description.}. The second
- parameter is the search type, followed by the string or regular
- expression to be used for the matching. The example above will
- therefore define:
- kbd
- footnote{
- code{org-agenda-entry-types} on how to set what planning information will be
- taken into account.} this week/day.
- code{[h]h:mm}---think of them as appointments.
- samp{WAITING} as the TODO
- keyword
- item C-c a u
- as a global tags search for headlines marked
- samp{:urgent:}
- kbd{C-c a u}, but limiting the search to
- headlines that are also TODO items
- kbd{C-c a u}, but only in the current buffer and
- displaying the result as a sparse tree
- samp{FIXME}
- kbd{l}, kbd{k}) to select a name (Lisa,
- Peter, or Kim) as additional tag to match.
- code{*-tree} agenda views need to be called from an
- Org buffer as they operate on the current buffer only.
- subsection Block agenda
- cindex agenda, with block views
- Another possibility is the construction of agenda views that comprise
- the results of
- code{agenda} for the
- daily or weekly agenda (as created with code{alltodo}
- for the global TODO list (as constructed with
- code{todo},
- code{tags-todo}. Here are two examples:
- group
- (setq org-agenda-custom-commands
- '(("h" "Agenda and Home-related tasks"
- ((agenda "")
- (tags-todo "home")
- (tags "garden")))
- ("o" "Agenda and Office-related tasks"
- ((agenda "")
- (tags-todo "work")
- (tags "office")))))
- end lisp
- kbd{C-c a h} to create a multi-block view for stuff
- you need to attend to at home. The resulting agenda buffer will contain
- your agenda for the current week, all TODO items that carry the tag
- samp{garden}. Finally the
- command
- node Setting options
- cindex options, for custom agenda views
- code{org-agenda-custom-commands}. For example:
- group
- (setq org-agenda-custom-commands
- '(("w" todo "WAITING"
- ((org-agenda-sorting-strategy '(priority-down))
- (org-agenda-prefix-format " Mixed: ")))
- ("U" tags-tree "+boss-urgent"
- ((org-show-context-detail 'minimal)))
- ("N" search ""
- ((org-agenda-files '("~org/notes.org"))
- (org-agenda-text-search-extra-files nil)))))
- end lisp
- kbd{C-c a w} command will sort the collected entries only by
- priority, and the prefix format is modified to just say
- kbd{C-c a U} will now turn out ultra-compact, because neither the
- headline hierarchy above the match, nor the headline following the match
- will be shown. The command
- vindex org-agenda-custom-commands
- For command sets creating a block agenda,
- pxref{Block agenda}), let's change the sorting strategy
- for the code{priority-down}, but let's sort
- the results for GARDEN tags query in the opposite order,
- lisp
- end group
- emph{values} are just Lisp expressions. So if the
- value is a string, you need to add the double-quotes around the value
- yourself.
- code{org-agenda-custom-commands-contexts}. Let's
- say for example that you have an agenda command
- lisp
- (setq org-agenda-custom-commands-contexts
- '(("o" (in-mode . "message-mode"))))
- code{"o"} should refer to another
- command key
- lisp
- (setq org-agenda-custom-commands-contexts
- '(("o" "r" (in-mode . "message-mode"))))
- node Exporting agenda views
- cindex agenda views, exporting
- If you are away from your computer, it can be very useful to have a printed
- version of some agenda views to carry around. Org mode can export custom
- agenda views as plain text, HTML
- file{htmlize.el} from
- 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 you need to install). 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{Structure 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_...} code{#+END_...} patterns need to be
- added so often, a shortcut is provided (
- table
- kindex C-c '
- kbd{C-c '} againsamp{*},
- samp{#+} and
- kbd{C-c '}, and also for export.}.
- The edited version will then replace the old version in the Org buffer.
- Fixed-width regions (where each line starts with a colon followed by a space)
- will be edited using footnote{You may select
- a different-mode with the variable
- kindex C-c l
- code{org-store-link} while editing a source code example in a
- temporary buffer created with
- samp{(ref:label)} at the end of the current line. Then the
- label is stored as a link kbd{C-c C-l}.
- node Special symbols
- cindex Org entities
- cindex special symbols
- cindex
- LaTeX{}-like syntax to insert special symbols---named
- entities---like samp{\to} to
- indicate an arrow. Completion for these symbols is available, just type
- kbd{M-
- example
- Pro tip: Given a circle \Gamma of diameter d, the length of its circumference
- is \pi}d.
- findex org-entities-help
- LaTeX{}; you can comfortably browse the complete list from a dedicated
- buffer using the command
- code{org-entities-user}.
- During export, these symbols are transformed into the native format of the
- exporter back-end. Strings like code{α}
- in the HTML output, and as LaTeX{} output.
- Similarly, code{ } in HTML and
- LaTeX{}.
- samp{\under}not underlined\under} exports as
- cindex special symbols, in-buffer display
- If you would like to see entities displayed as UTF-8 characters, use the
- following command
- code{org-pretty-entities}, or on a per-file base with the
- code{entitiespretty}.}:
- kbd
- code{entitiespretty}, STARTUP keyword
- item C-c C-x \
- Toggle display of entities as UTF-8 characters. This does not change the
- buffer content which remains plain ASCII, but it overlays the UTF-8 character
- for display purposes only.
- cindex shy hyphen, special symbol
- cindex ellipsis, special symbol
- In addition to regular entities defined above, Org exports in a special
- waycode{-} export setting
- (
- samp{\-} is treated as a shy hyphen, samp{---}
- are converted into dashes, and
- node Subscripts and superscripts
- cindex subscript
- samp{^} and
- example
- The radius of the sun is R_sun = 6.96 x 10^8 m. On the other hand, the
- radius of Alpha Centauri is R_} = 1.28 x R_}.
- vindex org-use-sub-superscripts
- If you write a text where the underscore is often used in a different
- context, Org's convention to always interpret these as subscripts can get in
- your way. Configure the variable
- code{}},
- samp{a_}} will.
- kbd
- item C-c C-x \
- In addition to showing entities as UTF-8 characters, this command will also
- format sub- and superscripts in a WYSIWYM way.
- node Embedded
- section Embedded
- cindex
- cindex
- LaTeX{}LaTeX{} is a macro system based on
- Donald E. Knuth's
- LaTeX{}'' are really from
- LaTeX{} code into its files, because many academics are
- used to writing and reading
- menu
- *
- LaTeX{} fragments:: What will this snippet look like?
- * CDLaTeX mode:: Speed up entering of formulas
- node
- subsection
- cindex
- vindex org-format-latex-header
- Org mode can contain
- LaTeX{}, the code is
- left as it is. When exporting to HTML, Org can use either
- pxref{Math formatting in HTML
- export}) or transcode the math into images (see LaTeX{}
- fragments}).
- LaTeX{} source code:
- bullet
- footnote{When MathJax is used, only the
- environments recognized by MathJax will be processed. When
- file{dvisvgm} program or
- LaTeX{} environment will be handled.}. The only
- requirement is that the
- item
- Text within the usual
- samp{$} characters are only recognized as
- math delimiters if the enclosed text contains at most two line breaks, is
- directly attached to the
- samp{$} is followed by whitespace or punctuation
- (parentheses and quotes are considered to be punctuation in this
- context). For the other delimiters, there is no such restriction, so when in
- doubt, use
- end itemize
- example
- \begin}
- x=\sqrt}
- \end}
- If $a^2=b$ and \( b=2 \), then the solution must be
- either $$ a=+\sqrt} $$ or \[ a=-\sqrt} \].
- c FIXME
- noindent
- vindex org-format-latex-options
- c can configure the option
- c ones you do not wish to have interpreted by the
- vindex org-export-with-latex
- code{org-export-with-latex}. The default setting is
- LaTeX{} back-ends.
- You can also set this variable on a per-file basis using one of these
- lines:
- r{Do the right thing automatically (MathJax)}
- #+OPTIONS: tex:nil LaTeX{} fragments at all}
- #+OPTIONS: tex:verbatim
- end example
- LaTeX{} fragments
- LaTeX{} fragments
- LaTeX{} fragments, preview
- LaTeX{} installation and file{dvisvgm}
- or footnote{These are respectively available at
- url{http://dvisvgm.bplaced.net/}
- and from the
- code{org-preview-latex-default-process} accordingly.},
- pxref{
- vindex org-format-latex-options
- code{org-format-latex-options} and
- code{:scale} (and for HTML export,
- table
- kindex C-c C-x C-l
- LaTeX{} fragment at point and overlay it
- over the source code. If there is no fragment at point, process all
- fragments in the current entry (between two headlines). When called
- with a prefix argument, process the entire subtree. When called with
- two prefix arguments, or when the cursor is before the first headline,
- process the entire buffer.
- item C-c C-c
- Remove the overlay preview images.
- vindex org-startup-with-latex-preview
- You can turn on the previewing of all
- example
- #+STARTUP: latexpreview
- example
- #+STARTUP: nolatexpreview
- node CDLaTeX mode
- LaTeX{} to enter math
- LaTeX{}
- CD
- LaTeX{} mode like AUC
- LaTeX{} mode. You need to install
- file{texmathp.el} (the latter comes also with
- AUCurl{https://staff.fnwi.uva.nl/c.dominik/Tools/cdlatex}.
- Don't use CD
- code{org-cdlatex-mode} that comes as part of Org mode. Turn it
- on for the current buffer with
- lisp
- (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
- LaTeX{} mode):
- bullet
- {
- kbd{C-c
- item
- key{TAB}
- The
- LaTeX{} fragment
- code{org-inside-LaTeX-fragment-p}.}. For example,
- code{fr} to {{
- key{TAB} will get you into
- the second brace. Even outside fragments,
- samp{equ} at the beginning of a line and press
- code{equation} environment.
- To get a list of all abbreviations, type
- item
- kindex ^
- kbd{_} and LaTeX{} fragment will insert these
- characters together with a pair of braces. If you use
- code{cdlatex-simplify-sub-super-scripts}).
- kindex `
- Pressing the grave accent
- LaTeX{} fragments. If you wait more than 1.5 seconds
- after the grave accent, a help window will pop up.
- kindex '
- Pressing the apostrophe
- LaTeX{} fragments; outside the quote
- is normal.
- node Exporting
- cindex exporting
- Sometimes, you may want to pretty print your notes, publish them on the web
- or even share them with people not using Org. In these cases, the Org export
- facilities can be used to convert your documents to a variety of other
- formats, while retaining as much structure (
- pxref{Markup}) as possible.
- itemize
- item beamer (
- item html (HTML format)
- item latex (
- item md (Markdown format)
- item org (Org format)
- item man (Man page format)
- noindent Org also uses additional libraries located in
- pxref{Installation}). Users can install additional export
- libraries for additional formats from the Emacs packaging system. For easy
- discovery, these packages have a common naming scheme:
- file{ox-koma-letter} for
- vindex org-export-backends
- Org loads back-ends for the following formats by default:
- code{html}, code{latex} and
- code{org-export-backends} variable configuration; or, by requiring the
- library in the Emacs init file like this:
- end lisp
- LaTeX{} export:: Exporting to
- end menu
- section The export dispatcher
- cindex Export, dispatcher
- The export dispatcher is the main interface for Org's exports. A
- hierarchical menu presents the currently configured export formats. Options
- are shown as easy toggle switches on the same screen.
- Org also has a minimal prompt interface for the export dispatcher. When the
- variable code{nil}
- value, Org prompts in the minibuffer. To switch back to the hierarchical
- menu, press
- table
- orgcmd{C-c C-e,org-export-dispatch}
- Invokes the export dispatcher interface. The options show default settings.
- The
- end table
- Org exports the entire buffer by default. If the Org buffer has an active
- region, then Org exports just that region.
- These are the export options, the key combinations that toggle them
- (
- table
- item C-a
- kbd{C-u} prefix
- argument. If already in the export dispatcher menu,
- vindex org-export-in-background
- To make the background export process the default, customize the variable,
- item C-b
- Toggle body-only export. Useful for excluding headers and footers in the
- export. Affects only those back-end formats that have such sections---like
- item C-s
- code{org-export-initial-scope}.
- end table
- section Export settings
- cindex #+OPTIONS
- Export options can be set: globally with variables; for an individual file by
- making variables buffer-local with in-buffer settings (
- code{#+OPTIONS} keyword; or for a tree by setting
- properties (
- cindex #+SETUPFILE
- In-buffer settings may appear anywhere in the file, either directly or
- indirectly through a file included using
- pxref{The export dispatcher}) using the
- key{#}. To insert keywords
- individually, a good way to make sure the keyword is correct is to type
- kbd{M-footnote{Many desktops intercept
- kbd{C-M-i} or key{ESC}
- 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}). With
- emph{Table of contents} to the French
- item SELECT_TAGS
- vindex org-export-select-tags
- The default value is
- code{:export:} (
- code{:noexport:} tags,
- see below. When selectively exporting files with
- item EXCLUDE_TAGS
- vindex org-export-exclude-tags
- The default value is
- code{:noexport:} (
- code{:noexport:} will be
- unconditionally excluded from the export, even if they have an
- item TITLE
- cindex document title
- Org displays this title. For long titles, use multiple
- item EXPORT_FILE_NAME
- end table
- The
- code{#+OPTIONS} lines.
- table
- item ':
- code{org-export-with-smart-quotes}). Depending on the
- language used, when activated, Org treats pairs of double quotes as primary
- quotes, pairs of single quotes as secondary quotes, and single quote marks 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 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 how archived trees are exported. When 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}, Org clearly marks the problem link in the output
- (
- item c:
- code{org-export-with-clocks}).
- vindex org-export-with-creator
- Toggle inclusion of creator information in the 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}). When set to
- number samp{n} or above.
- Setting code{nil} disables numbering of
- the heading. Since subheadings inherit from this property, it affects their
- numbering, too. Moreover, when the value is
- pxref{Table of
- contents}).
- vindex org-export-with-planning
- Toggle export of planning information (
- code{SCHEDULED:},
- code{CLOSED:}.
- vindex org-export-with-priority
- Toggle inclusion of priority cookies (
- item prop:
- code{org-export-with-properties}).
- vindex org-export-with-statistics-cookies
- Toggle inclusion of statistics cookies
- (
- item tags:
- code{not-in-toc}
- (
- item tasks:
- code{nil} to remove all tasks; or
- code{org-export-with-tasks}).
- vindex org-export-with-latex
- code{t} exports;
- code{org-export-with-latex}).
- vindex org-export-time-stamp-file
- Toggle inclusion of the creation time in the 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 sub-trees, special node properties in them can override the
- above keywords. They are special because they have an
- samp{DATE} and
- samp{EXPORT_DATE} and
- samp{SETUPFILE}, all other keywords listed above have an
- cindex #+BIND
- code{org-export-allow-bind-keywords} is non-
- samp{#+BIND: variable value}. This is particularly useful for in-buffer
- settings that cannot be changed using keywords.
- section Table of contents
- cindex list of tables
- cindex
- vindex org-export-with-toc
- The table of contents includes all headlines in the document. Its depth is
- therefore the same as the headline levels in the file. If you need to use
- a different depth, or turn it off entirely, set the
- samp{toc} item in
- example
- #+OPTIONS: toc:2
- r{no default TOC at all}
- cindex excluding entries from table of contents
- footnote{At the moment, some export back-ends do not obey this
- specification. For example,
- samp{UNNUMBERED} property to
- example
- * Subtree not numbered, not in table of contents either
- :PROPERTIES:
- :UNNUMBERED: notoc
- :END:
- cindex #+TOC
- Org normally inserts the table of contents directly before the first headline
- of the file. To move the table of contents to a different location, first
- turn off the default with
- code{#+OPTIONS: toc:nil}. Then insert
- example
- #+OPTIONS: toc:nil
- r{insert TOC here, with two headline levels}
- samp{local} parameter. This parameter becomes a relative depth
- for the current level.
- Note that for this feature to work properly in
- code{titletoc} package. Because of
- compatibility issues, emph{before}
- code{org-latex-default-packages-alist}
- variable.
- r{insert local TOC, with direct children only}
- code{TOC} keyword to generate list of tables (resp.
- example
- #+TOC: listings
- r{build a list of tables}
- cindex property, ALT_TITLE
- Normally Org uses the headline for its entry in the table of contents. But
- with
- node Include files
- cindex include files, during export
- Include other files during export. For example, to include your
- cindex #+INCLUDE
- end example
- samp{example},
- samp{src}. The optional third parameter specifies the source code language
- to use for formatting the contents. This is relevant to both
- samp{src} block types.
- If an include file is specified as having a markup language, Org neither
- checks for valid syntax nor changes the contents in any way. For
- samp{src} blocks, Org code-escapes the contents before
- inclusion.
- If an include file is not specified as having any markup language, Org
- assumes it be in Org format and proceeds as usual with a few exceptions. Org
- makes the 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. 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 to non-
- code{:lines} keyword are relative 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 {var{NAME})}
- itemx {}}
- {{author}
- itemx {}}
- cindex title, macro
- cindex email, macro
- The var{NAME} keywords
- throughout the buffer, separated with white space.
- samp{author} and
- samp{{}}}, {{keyword(AUTHOR)}
- samp{{}}}.
- {{date}
- itemx {var{FORMAT})}
- cindex date, macro
- This macro refers to the var{FORMAT} is an optional
- argument to the {{date}
- code{#+DATE} is a single timestamp.
- code{format-time-string}.
- {{time(}}
- {{modification-time(var{VC})}
- cindex time, macro
- var{FORMAT} is a string understood by
- code{modification-time} macro is non-file{vc.el} to
- retrieve the document's modification time from the version control
- system. Otherwise Org reads the file attributes.
- {{input-file}
- cindex input file, macro
- This macro refers to the filename of the exported file.
- {{property(}}
- {{property(var{SEARCH-OPTION})}
- cindex property, macro
- This macro returns the value of property
- var{SEARCH-OPTION} (
- item {}}
- {{n(}}
- {{n(var{ACTION})}
- cindex n, macro
- var{NAME} values. If
- code{-}, previous value of the counter is held, i.e. the specified counter
- is not incremented. If the value is a number, the specified counter is set
- to that value. If it is any other non-empty string, the specified counter is
- reset to 1. You may leave
- end table
- The surrounding brackets can be made invisible by setting
- code{nil}.
- Org expands macros at the very beginning of the export process.
- section Comment lines
- cindex comment lines
- Lines starting with zero or more whitespace characters followed by one
- cindex #+BEGIN_COMMENT
- Likewise, regions surrounded by
- samp{#+END_COMMENT} are not exported.
- samp{COMMENT} keyword at the beginning of an entry, but after any
- other keyword or priority cookie, comments out the entire subtree. In this
- case, the subtree is not exported and no code block within it is executed
- either
- pxref{Export settings}) instead.}. The command below helps changing the
- comment status of a headline.
- kbd
- item C-c ;
- Toggle the
- end table
- section ASCII/Latin-1/UTF-8 export
- cindex Latin-1 export
- vindex org-ascii-text-width
- On export, Org fills and justifies text according to the text width set in
- vindex org-ascii-links-to-notes
- Org exports links using a footnote-like style where the descriptive part is
- in the text and the link is in a note before the next heading. See the
- variable
- subheading ASCII export commands
- kbd
- file{.txt} extension. For
- file{myfile.txt}, overwriting without warning. For
- file{myfile.txt.txt} in order to prevent
- data loss.
- end table
- pxref{Export
- settings}).
- samp
- cindex #+SUBTITLE (ASCII)
- The document subtitle. For long subtitles, use multiple
- end table
- pxref{Export settings}.
- cindex #+ASCII
- example
- Inline text ascii:and additional text within a paragraph.
- #+ASCII: Some text
- #+BEGIN_EXPORT ascii
- Org exports text in this block only when using ASCII back-end.
- #+END_EXPORT
- subheading ASCII specific attributes
- cindex horizontal rules, in ASCII export
- ASCII back-end recognizes only one attribute,
- example
- #+ATTR_ASCII: :width 10
- -----
- subheading ASCII special blocks
- cindex #+BEGIN_JUSTIFYLEFT
- code{#+BEGIN_CENTER} blocks (
- example
- #+BEGIN_JUSTIFYLEFT
- It's just a jump to the left...
- #+END_JUSTIFYLEFT
- #+BEGIN_JUSTIFYRIGHT
- ...and then a step to the right.
- #+END_JUSTIFYRIGHT
- node Beamer export
- cindex Beamer export
- Org uses
- emph{Beamer} is a
- menu
- * Beamer export commands:: For creating Beamer documents.
- * Beamer specific export settings:: For customizing Beamer export.
- * Sectioning Frames and Blocks in Beamer:: For composing Beamer slides.
- * Beamer specific syntax:: For using in Org documents.
- * Editing support:: For using helper functions.
- * A Beamer example:: A complete presentation.
- node Beamer export commands
- table
- orgcmd{C-c C-e l b,org-beamer-export-to-latex}
- Export as file{.tex} extension. For
- file{myfile.tex}, overwriting without warning.
- orgcmd{C-c C-e l P,org-beamer-export-to-pdf}
- Export as
- item C-c C-e l O
- Export as
- end table
- subsection Beamer specific export settings
- Beamer export back-end has several additional keywords for customizing Beamer
- output. These keywords work similar to the general options settings
- (
- table
- item BEAMER_THEME
- vindex org-beamer-theme
- The Beamer layout theme (
- smallexample
- #+BEAMER_THEME: Rochester [height=20pt]
- item BEAMER_FONT_THEME
- item BEAMER_INNER_THEME
- item BEAMER_OUTER_THEME
- item BEAMER_HEADER
- samp{hyperref}
- settings.
- cindex #+DESCRIPTION (Beamer)
- The document description. For long descriptions, use multiple
- samp{hyperref} inserts
- code{org-latex-hyperref-template} to
- configure document metadata. Use
- item KEYWORDS
- code{#+KEYWORDS} lines if necessary. By default,
- code{#+KEYWORDS} as metadata. Use
- code{org-latex-title-command} to configure
- typesetting of keywords as part of front matter.
- cindex #+SUBTITLE (Beamer)
- code{org-beamer-subtitle-format}
- string. Use
- code{org-latex-title-command} to configure typesetting of
- subtitle as part of front matter.
- node Sectioning Frames and Blocks in Beamer
- itemize
- item
- code{org-beamer-frame-level} or code{OPTIONS} line
- (
- cindex property, BEAMER_ENV
- Org overrides headlines to frames conversion for the current tree of an Org
- file if it encounters the code{frame} or
- code{org-beamer-frame-level} happens
- to be for that headline level in the Org tree. In Beamer terminology, a
- item
- vindex org-beamer-environments-extra
- Org exports a Beamer frame's objects as
- code{BEAMER_ENV} property is
- setcode{BEAMER_ENV} is set, Org export adds
- code{org-beamer-environments-default}. To add more values, see
- item
- code{BEAMER_ENV} is set to
- code{note}, Org exports the entry as a note within
- the frame or between frames, depending on the entry's heading level. When
- set to
- code{againframe}, Org exports the entry with
- code{BEAMER_REF} property mandatory because
- code{ignoreheading} is set, Org export ignores the entry's headline but
- not its content. This is useful for inserting content between frames. It is
- also useful for properly closing a
- end itemize
- cindex property, BEAMER_OPT
- When
- code{BEAMER_OPT} to set any options applicable to the current Beamer frame
- or block. The Beamer export back-end wraps with appropriate angular or
- square brackets. It also adds the
- cindex property, BEAMER_COL
- To create a column on the Beamer slide, use the
- code{BEAMER_COL} to a
- decimal number representing the fraction of the total text width. Beamer
- export uses this value to set the column's width and fills the column with
- the contents of the Org entry. If the Org entry has no specific environment
- defined, Beamer export ignores the heading. If the Org entry has a defined
- environment, Beamer export uses the heading as title. Behind the scenes,
- Beamer export automatically handles
- code{BEAMER_ENV} property.
- subsection Beamer specific syntax
- Since Org's Beamer export back-end is an extension of the
- LaTeX{} specific syntax---for example,
- samp{#+ATTR_LATEX:}. LaTeX{} export}, for details.
- Beamer export wraps the table of contents generated with
- code{OPTION} keyword in a
- code{TOC} keyword (
- example
- #+TOC: headlines [currentsection]
- cindex #+BEAMER
- example
- #+BEAMER: \pause
- #+BEGIN_EXPORT beamer
- Only Beamer export back-end will export this line.
- #+END_BEAMER
- Text beamer:some code within a paragraph.
- code{bold}, code{link},
- code{target} types. Enclose the value in angular
- brackets and place the specification at the beginning the object as shown in
- this example:
- end example
- code{ATTR_BEAMER} keyword with the following
- attributes from Beamer configurations:
- code{:overlay} for specifying Beamer overlays in angular
- or square brackets, and
- example
- #+ATTR_BEAMER: :environment nonindentlist
- - item 1, not indented
- - item 2, not indented
- - item 3, not indented
- example
- #+ATTR_BEAMER: :overlay <+->
- - item 1
- - item 2
- example
- #+ATTR_BEAMER: :options [Lagrange]
- Let $G$ be a finite group, and let $H$ be
- a subgroup of $G$. Then the order of $H$ divides the order of $G$.
- node Editing support
- code{org-beamer-mode} is a special minor mode for faster editing of
- Beamer documents.
- end example
- kbd
- code{org-beamer-mode} provides this key for quicker selections in Beamer
- normal environments, and for selecting the
- end table
- subsection A Beamer example
- Here is an example of an Org document ready for Beamer export.
- end example
- section HTML export
- menu
- * HTML Export commands:: Invoking HTML export
- * HTML Specific export settings:: Settings for HTML export
- * HTML doctypes:: Exporting various (X)HTML flavors
- * HTML preamble and postamble:: Inserting preamble and postamble
- * Quoting HTML tags:: Using direct HTML in Org files
- * Links in HTML export:: Interpreting and formatting links
- * Tables in HTML export:: Formatting and modifying tables
- * Images in HTML export:: Inserting figures with HTML output
- * Math formatting in HTML export:: Handling math equations
- * Text areas in HTML export:: Showing an alternate approach, an example
- * CSS support:: Styling HTML output
- * JavaScript support:: Folding scripting in the web browser
- node HTML Export commands
- table
- orgcmd{C-c C-e h h,org-html-export-to-html}
- Export as HTML file with a file{myfile.org},
- Org exports to kbd{C-c C-e
- h o} Exports to HTML and opens it in a web browser.
- end table
- subsection HTML Specific export settings
- HTML export has a number of keywords, similar to the general options settings
- described in
- table
- item DESCRIPTION
- code{#+DESCRIPTION} lines. The exporter takes care of wrapping the lines
- properly.
- cindex #+HTML_DOCTYPE
- code{org-html-doctype}).
- cindex #+HTML_CONTAINER
- samp{div}, for wrapping sections and
- elements (
- item HTML_LINK_HOME
- vindex org-html-link-home
- The URL for home link (
- item HTML_LINK_UP
- vindex org-html-link-up
- The URL for the up link of exported HTML pages (
- item HTML_MATHJAX
- vindex org-html-mathjax-options
- Options for MathJax (
- LaTeX{} math in HTML documents.
- item HTML_HEAD
- vindex org-html-head
- Arbitrary lines for appending to the HTML document's head
- (
- item HTML_HEAD_EXTRA
- vindex org-html-head-extra
- More arbitrary lines for appending to the HTML document's head
- (
- item KEYWORDS
- code{#+KEYWORDS} lines.
- cindex #+LATEX_HEADER (HTML)
- Arbitrary lines for appending to the preamble; HTML exporter appends when
- transcoding pxref{Math formatting in HTML
- export}).
- cindex #+SUBTITLE (HTML)
- The document's subtitle. HTML exporter formats subtitle if document type is
- samp{subtitle} class.
- node HTML doctypes
- vindex org-html-doctype
- code{org-html-doctype} variable for different (X)HTML variants.
- Depending on the variant, the HTML exporter adjusts the syntax of HTML
- conversion accordingly. Org includes the following ready-made variants:
- item
- ``html4-strict''
- item
- ``html4-frameset''
- item
- ``xhtml-transitional''
- item
- ``xhtml-11''
- item
- ``xhtml5''
- noindent See the variable
- vindex org-html-html5-fancy
- code{org-html-html5-fancy} to
- non-code{OPTIONS} line in the file to set
- code{#+BEGIN}
- and
- example
- #+BEGIN_aside
- Lorem ipsum
- #+END_aside
- example
- <aside>
- <p>Lorem ipsum</p>
- </aside>
- example
- #+ATTR_HTML: :controls controls :width 350
- #+BEGIN_video
- #+HTML: <source src="movie.mp4" type="video/mp4">
- #+HTML: <source src="movie.ogg" type="video/ogg">
- Your browser does not support the video tag.
- #+END_video
- example
- <video controls="controls" width="350">
- <source src="movie.mp4" type="video/mp4">
- <source src="movie.ogg" type="video/ogg">
- <p>Your browser does not support the video tag.</p>
- </video>
- vindex org-html-html5-elements
- When special blocks do not have a corresponding HTML5 element, the HTML
- exporter reverts to standard translation (see
- code{#+BEGIN_lederhosen}
- exports to
- samp{<section>} or
- code{HTML_CONTAINER} property for the headline.
- subsection HTML preamble and postamble
- vindex org-html-postamble
- vindex org-html-postamble-format
- vindex org-export-creator-string
- code{org-html-preamble} is
- code{org-html-preamble-format} for
- the format string.
- Set
- code{org-html-preamble} is set
- code{org-html-postamble} is
- code{org-html-postamble} to
- code{org-html-postamble-format} variable. The HTML exporter will not insert
- a postamble if code{nil}.
- subsection Quoting HTML tags
- The HTML export back-end transforms samp{>} to
- samp{>}. To include raw HTML code in the Org file so the HTML export
- back-end can insert that HTML code in the output, use this inline syntax:
- samp{html:<b>bold
- texthtml:</b>}. For larger raw HTML code blocks, use these HTML
- export code blocks:
- cindex #+BEGIN_EXPORT html
- end example
- cindex #+BEGIN_EXPORT html
- end example
- subsection Links in HTML export
- cindex internal links, in HTML export
- vindex org-html-link-org-files-as-html
- The HTML export back-end transforms Org's internal links (
- pxref{Radio
- targets}) similarly. For Org links to external files, the back-end
- transforms the links to
- file{.org} files, the back-end automatically changes
- the file extension to
- file{.org} files have an equivalent
- code{org-html-link-org-files-as-html} to
- samp{id:}-based links in the HTML
- output. For more about linking files when publishing to a directory,
- code{#+ATTR_HTML} lines to specify new format attributes
- to code{<img>} tags. This example shows changing the link's
- code{style}:
- example
- #+ATTR_HTML: :title The Org mode homepage :style color:red;
- [[http://orgmode.org]]
- node Tables in HTML export
- cindex tables, in HTML
- code{org-html-table-default-attributes} when
- exporting Org tables to HTML. By default, the exporter does not draw frames
- and cell borders. To change for this for a table, use the following lines
- before the table in the Org file:
- cindex #+ATTR_HTML
- end example
- The HTML export back-end preserves column groupings in Org tables
- (
- table
- vindex org-html-table-align-individual-fields
- code{nil} attaches style attributes for alignment to each table field.
- item org-html-table-caption-above
- Non-
- vindex org-html-table-data-tags
- vindex org-html-table-default-attributes
- vindex org-html-table-header-tags
- vindex org-html-table-row-tags
- vindex org-html-table-use-header-tags-for-first-column
- code{nil} formats column one in tables with header tags.
- node Images in HTML export
- cindex images, inline in HTML
- vindex org-html-inline-images
- The HTML export back-end has features to convert Org image links to HTML
- inline images and HTML clickable image links.
- When the link in the Org file has no description, the HTML export back-end by
- default in-lines that image. For example:
- samp{[[file:myimg.jpg][the image]]} links to the text,
- code{org-html-inline-images}.
- On the other hand, if the description part of the Org link is itself another
- link, such as code{http:} URL pointing to an image, the HTML
- export back-end in-lines this image and links to the main image. This Org
- syntax enables the back-end to link low-resolution thumbnail to the
- high-resolution version of the image, as shown in this example:
- end example
- To change attributes of in-lined images, use
- 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
- The HTML export back-end copies the
- 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
- uref{http://www.mathjax.org, MathJax}.}. 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}. The advantage of this approach was that copying
- and pasting was built into browsers with simple JavaScript commands. Even
- editing before pasting was made simple.
- The HTML export back-end can create such text areas. It requires an
- code{:textarea} option. This must be followed by either an
- code{src} code block. Other Org block types will not
- honor the
- code{:width} and code{#+ATTR_HTML:} line.
- 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
- The HTML export back-end includes a compact default style in each exported
- HTML file. To override the default style with another style, use these
- keywords in the Org file. They will replace the global defaults the HTML
- exporter uses.
- cindex #+HTML_HEAD_EXTRA
- end example
- To just turn off the default style, customize
- example
- #+OPTIONS: html-style:nil
- noindent
- For longer style definitions, either use several
- code{#+HTML_HEAD_EXTRA} lines, or use code{</style>} blocks
- around them. Both of these approaches can avoid referring to an external
- file.
- In order to add styles to a sub-tree, use the
- code{:CUSTOM_ID:}
- property.
- Never change the
- 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 enhances large files in two different ways of viewing. One is an
- kbd{n} and
- kbd{?} for an overview of the available keys). The second
- one has a
- url{http://orgmode.org/org-info.js} and the
- documentation at
- url{http://orgmode.org}, but for reliability, prefer installing
- it on your own web server.
- To use this program, just add this line to the Org file:
- example
- #+INFOJS_OPT: view:info toc:nil
- noindent
- The HTML header now has the code needed to automatically invoke the script.
- For setting options, use the syntax from the above line for options described
- below:
- r{The path to the script. The default grabs 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 want the script to always apply to
- your pages, configure the variable
- node
- section
- cindex
- cindex PDF export
- The
- LaTeX{} document classes, generate documents using
- alternate
- code{org-latex-compiler}; for build sequences, see
- code{org-latex-default-packages-alist} and
- LaTeX{} export back-end: it is sensitive to
- blank lines in the Org document. That's because
- menu
- * LaTeX{} and PDF documents.
- * LaTeX{} back-end.
- *
- LaTeX{} code:: Directly in the Org document.
- * Tables in
- LaTeX{} export:: Attributes specific to images.
- * Plain lists in
- LaTeX{} export:: Attributes specific to source code blocks.
- * Example blocks in
- LaTeX{} export:: Attributes specific to special blocks.
- * Horizontal rules in
- end menu
- LaTeX{} export commands
- LaTeX{} export commands
- kbd
- LaTeX{} file with a file{myfile.org},
- Org exports to kbd{C-c C-e
- l l} Exports to
- orgcmd{C-c C-e l L,org-latex-export-as-latex}
- Export to a temporary buffer. Do not create a file.
- LaTeX{} file and convert it to PDF file.
- LaTeX{} file and convert it to PDF, then open the PDF using the default viewer.
- vindex org-latex-compiler
- vindex org-latex-default-packages-alist
- The LaTeX{} engines:
- samp{xelatex}, and
- LaTeX{} files with different compilers, packages, and output options. The
- code{org-latex-compiler} variable or the
- code{org-latex-default-packages-alist} for loading packages with certain
- compilers. Also see
- footnote{This does not allow setting different bibliography
- compilers for different files. However, ``smart''
- samp{latexmk}, can select the correct bibliography
- compiler.}.
- LaTeX{} specific export settings
- LaTeX{} specific export settings
- The
- LaTeX{} output. Setting these keywords works similar to the general options
- (
- table
- item DESCRIPTION
- LaTeX{})
- The document's description. The description along with author name,
- keywords, and related file metadata are inserted in the output file by the
- code{org-latex-hyperref-template} for
- customizing metadata items. See
- code{#+DESCRIPTION} lines for long descriptions.
- cindex #+LATEX_CLASS
- vindex org-latex-classes
- This is code{article},
- code{book}, and so on, which contain predefined preamble and headline level
- mapping that the
- code{org-latex-default-class} variable. Org has
- code{org-latex-classes}.
- cindex #+LATEX_CLASS_OPTIONS
- Options the LaTeX{} document
- class.
- cindex #+LATEX_COMPILER
- samp{pdflatex}, samp{lualatex}, for
- producing the PDF (
- item LATEX_HEADER
- vindex org-latex-classes
- Arbitrary lines to add to the document's preamble, before the
- code{org-latex-classes} for adjusting the structure and order
- of the
- item LATEX_HEADER_EXTRA
- vindex org-latex-classes
- Arbitrary lines to add to the document's preamble, before the
- code{org-latex-classes} for adjusting the structure and order
- of the
- item KEYWORDS
- LaTeX{})
- The keywords for the document. The description along with author name,
- keywords, and related file metadata are inserted in the output file by the
- code{org-latex-hyperref-template} for
- customizing metadata items. See
- code{#+KEYWORDS} lines if necessary.
- 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} for customizing metadata items. See
- end table
- The following sections have further details.
- LaTeX{} header and sectioning
- LaTeX{} header and sectioning structure
- LaTeX{} class
- LaTeX{} sectioning structure
- LaTeX{} header
- LaTeX{} files
- LaTeX{} export
- The
- LaTeX{} headlines. The remaining Org levels are exported as
- code{enumerate} lists. To change this globally for the
- cut-off point between levels and lists, (
- LaTeX{} export back-end uses the
- vindex org-latex-default-class
- vindex org-latex-default-packages-alist
- code{org-latex-default-class}.
- To change the default class locally in an Org file, add option lines
- code{EXPORT_LATEX_CLASS}. The
- class name entered here must be valid member of
- code{org-latex-default-packages-alist} and
- cindex #+LATEX_CLASS
- cindex property, EXPORT_LATEX_CLASS
- LaTeX{} export back-end sends the
- code{EXPORT_LATEX_CLASS_OPTIONS} property as options to the
- code{\documentclass} macro. The options and the syntax for specifying them,
- including enclosing them in square brackets, follow
- example
- #+LATEX_CLASS_OPTIONS: [a4paper,11pt,twoside,twocolumn]
- cindex #+LATEX_HEADER
- LaTeX{} export back-end appends values from
- code{LATEX_HEADER_EXTRA} keywords to the
- code{org-latex-classes} explains in more detail. Also note that
- code{LATEX_HEADER_EXTRA} to the header when
- previewing pxref{Previewing
- example
- #+LATEX_CLASS: article
- #+LATEX_CLASS_OPTIONS: [a4paper]
- #+LATEX_HEADER: \usepackage}
- * Headline 1
- some text
- * Headline 2
- some more text
- node Quoting
- subsection Quoting
- LaTeX{} export back-end can insert any arbitrary
- pxref{Embedded
- symbols:
- LaTeX{} export
- end example
- Inserting as one or more keyword lines in the Org file:
- example
- #+LATEX: any arbitrary LaTeX code
- cindex #+BEGIN_EXPORT latex
- end example
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export back-end can pass several
- pxref{Images and
- tables}), the other valid
- table
- item :mode
- LaTeX{} export back-end wraps the table differently depending on the
- mode for accurate rendering of math symbols. Mode is either
- code{math}, code{verbatim}. For
- code{inline-math} mode,
- LaTeX{} export
- back-end determines the default mode from
- LaTeX{} export back-end
- merges contiguous tables in the same mode into a single environment.
- vindex org-latex-default-table-environment
- Set the default LaTeX{} export back-end
- to use when exporting Org tables. Common
- code{tabularx}, code{array},
- code{bmatrix}. For packages, such as
- code{tabu}, or any newer replacements, include them in the
- LaTeX{} export back-end can
- insert the appropriate load package headers in the converted
- code{org-latex-packages-alist} variable for
- configuring these packages for
- item :caption
- Use
- pxref{Images and tables}). For custom captions, use
- LaTeX{} code.
- code{#+CAPTION} value.
- itemx :placement
- The table environments by default are not floats in
- code{:float} with one of the following options:
- code{multicolumn}, code{nil}. Note that
- LaTeX{} floats can
- also have additional layout
- code{[h t b p ! H]} permissions specified in square brackets. Note
- that for LaTeX{} export back-end ignores
- item :align
- itemx :width
- The
- item :spread
- When code{nil}, the
- code{:width} for code{longtabu}
- environments. code{:width} is not set.
- itemx :center
- vindex org-latex-tables-booktabs
- code{:booktabs} brings in modern
- typesetting enhancements to regular tables. The
- code{org-latex-packages-alist}.
- code{:rmlines} removes all but the very first
- horizontal line made of ASCII characters from "table.el" tables only.
- itemx :math-suffix
- LaTeX{} export back-end inserts
- LaTeX{} export back-end inserts
- LaTeX{} export back-end inserts
- code{:math-arguments} comes in use
- for matrix macros that require more than one argument, such as
- end table
- 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
- The
- samp{[[file:img.jpg]]} or
- LaTeX{} export back-end uses
- footnote{
- code{\input} macro wrapped within
- a
- code{:width},
- code{:options}, use this syntax:
- end example
- For custom commands for captions, use the
- code{#+CAPTION} value:
- {HeadingA{HeadingB
- end example
- When captions follow the method as described in
- LaTeX{} export back-end wraps the picture in a floating
- code{:float} attribute to one of the following:
- minus
- code{t}: for a standard
- item
- code{figure*} environment.
- code{wrap}: for text to flow around the image on the right; the figure
- occupies the left half of the page.
- code{sideways}: for a new page with the image sideways, rotated ninety
- degrees, in a code{:placement}
- setting.
- code{nil}: to avoid a
- end itemize
- code{placement} attribute to modify a floating environment's placement.
- {r{0.4\textwidth
- end example
- cindex center image (
- cindex image, centering (
- LaTeX{} export back-end centers all images by default. Setting
- code{nil} disables centering. To disable
- centering globally, set code{t}.
- Set the code{nil} value for the
- code{\includegraphics} macro.
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export back-end accepts the
- code{:options} attributes for plain lists. Both attributes work together
- for customizing lists, as shown in the examples:
- {enumitem
- {{,{, and
- end example
- Since
- samp{enumitem} in
- example
- #+LATEX_HEADER: \usepackage}
- #+LATEX_HEADER: \renewlist}}}
- #+LATEX_HEADER: \setlist[itemize]}
- - One
- - Two
- - Three
- - Four
- - Five
- node Source blocks in
- subsection Source blocks in
- cindex source blocks, in
- cindex #+ATTR_LATEX, in source blocks
- The
- code{:float} and
- code{:float}:
- minus
- code{t}: makes a source block float; by default floats any source block with
- a caption.
- code{multicolumn}: spans the source block across multiple columns of a page.
- code{nil}: avoids a
- end itemize
- end example
- vindex org-latex-minted-options
- The code{:options} to
- code{:options} are set for Minted. Minted is a source
- code highlighting
- example
- #+ATTR_LATEX: :options commentstyle=\bfseries
- #+BEGIN_SRC emacs-lisp
- (defun Fib (n)
- (if (< n 2) n (+ (Fib (- n 1)) (Fib (- n 2)))))
- #+END_SRC
- code{org-latex-listings-options} and
- node Example blocks in
- subsection Example blocks in
- cindex example blocks, in
- cindex verbatim blocks, in
- cindex #+ATTR_LATEX, in example blocks
- The
- samp{verbatim} environment. To change this behavior to use another
- environment globally, specify an appropriate export filter (
- code{:environment} parameter to specify a custom environment.
- end example
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export
- LaTeX{} export back-end makes
- a special environment of the same name. The back-end also takes
- 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
- exports to
- {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
- LaTeX{} export back-end converts horizontal rules by the specified
- code{:thickness} attributes. For example:
- end example
- section Markdown export
- code{md}, converts an Org file to a Markdown
- format, as defined at
- code{md} is built on top of the HTML back-end, any Org constructs not
- supported by Markdown, such as tables, the underlying
- pxref{HTML export}) converts them.
- table
- orgcmd{C-c C-e m m,org-md-export-to-markdown}
- Export to a text file with Markdown syntax. For
- file{myfile.md}, overwritten without warning.
- item C-c C-e m o
- Export as a text file with Markdown syntax, then open it.
- subheading Header and sectioning structure
- code{org-md-headline-style}, markdown export can generate headlines
- of both code{setext} types.
- code{setext} limits headline levels to six. Beyond these
- limits, the export back-end converts headlines to lists. To set a limit to a
- level before the absolute limit (
- c begin opendocument
- section OpenDocument Text export
- cindex OpenDocument
- cindex LibreOffice
- The ODT export back-end handles creating of OpenDocument Text (ODT) format
- files. The format complies with
- footnote{
- menu
- * Pre-requisites for ODT export:: Required packages.
- * ODT export commands:: Invoking export.
- * ODT specific export settings:: Configuration options.
- * Extending ODT export:: Producing file{.pdf} files.
- * Applying custom styles:: Styling the output.
- * Links in ODT export:: Handling and formatting links.
- * Tables in ODT export:: Org table conversions.
- * Images in ODT export:: Inserting images.
- * Math formatting in ODT export:: Formatting
- end menu
- subsection Pre-requisites for ODT export
- file{zip} program to create the final
- compressed ODT output. Check if
- file{zip}, export cannot finish.
- subsection ODT export commands
- cindex region, active
- cindex transient-mark-mode
- kbd
- cindex property EXPORT_FILE_NAME
- Export as OpenDocument Text file.
- code{org-odt-preferred-output-format} is specified, the ODT export
- back-end automatically converts the exported file to that format.
- file{myfile.org}, Org exports to
- code{transient-mark-mode}
- has to be turned on.
- If the selected region is a single tree, the ODT export back-end makes the
- tree head the document title. Incidentally,
- code{EXPORT_FILE_NAME} property, the ODT export back-end uses that for file
- name.
- vindex org-odt-preferred-output-format
- When
- xref{x-export-to-other-formats, , Automatically exporting to
- other formats}.
- node ODT specific export settings
- pxref{Export settings}).
- samp
- cindex #+DESCRIPTION (ODT)
- This is the document's description, which the ODT export back-end inserts as
- document metadata. For long descriptions, use multiple
- item KEYWORDS
- code{#+KEYWORDS} lines if
- necessary.
- cindex ODT_STYLES_FILE
- code{org-odt-styles-file} by default. See
- item SUBTITLE
- end table
- subsection Extending ODT export
- The ODT export back-end can produce documents in other formats besides ODT
- using a specialized ODT converter process. Its common interface works with
- popular converters to produce formats such as
- samp{csv}, to another format, say
- cindex
- cindex LibreOffice
- Customize code{unoconv},
- which is the ODT's preferred converter. Working installations of LibreOffice
- would already have
- xref{Configuring a document converter}.
- anchor{x-export-to-other-formats}
- samp{doc}, samp{rtf}, or
- code{org-odt-preferred-output-format} variable. This is one way to
- extend (
- subsubheading Converting between document formats
- vindex org-odt-convert
- kbd
- end table
- subsection Applying custom styles
- cindex template, custom
- The ODT export back-end comes with many 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, which 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}.
- To apply and ODT style to a particular file, 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
- node Links in ODT export
- cindex links, in ODT export
- ODT export back-end creates native cross-references for internal links and
- Internet-style links for all other link types.
- A link with no description and pointing to a regular---un-itemized---outline
- heading is replaced with a cross-reference and section number of the heading.
- A {label: is replaced
- with a cross-reference and sequence number of the labeled entity.
- node Tables in ODT export
- cindex tables, in ODT export
- The ODT export back-end handles native Org mode tables (
- file{table.el} tables. Complex
- pxref{Column
- groups}). All tables are typeset to occupy the same width. The ODT export
- back-end honors any table alignments and relative widths for columns
- (
- cindex #+ATTR_ODT
- Specifying code{#+ATTR_ODT} line controls
- the width of the table. For example:
- end example
- On export, the above table takes 50% of text width area. The exporter sizes
- the columns in the ratio: 13:5:5:5:6. The first column is left-aligned and
- rest of the columns, right-aligned. Vertical rules separate the header and
- the last column. Horizontal rules separate the header and the last row.
- For even more customization, 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{[[file:img.jpg]]} or
- example
- [[file:img.png]]
- example
- [[./img.png]]
- subsubheading Embedding clickable images
- For clickable images, provide a link whose description is another link to an
- image file. For example, to embed a image
- uref{http://Orgmode.org} website, do the following
- end example
- cindex #+ATTR_ODT
- Control the size and scale of the embedded images with the
- cindex identify, ImageMagick
- file{identify}
- program or Emacs code{image-size} API. ImageMagick
- is the preferred choice for large file sizes or frequent batch operations.
- The back-end then converts the pixel dimensions using
- code{display-pixels-per-inch}, which can be
- tweaked for better results based on the capabilities of the output device.
- Here are some common image scaling operations:
- 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
- samp{"as-char"},
- samp{"page"}. Set the preferred anchor using the
- code{#+ATTR_ODT} line.
- To create an image that is anchored to a page:
- end example
- subsection Math formatting in ODT export
- The ODT export back-end has special support built-in for handling math.
- LaTeX{} math snippets:: Embedding in
- end menu
- LaTeX{} math snippets
- LaTeX{} math snippets
- pxref{
- cindex MathML
- item MathML
- Add this line to the Org file. This option is activated on a per-file basis.
- end example
- With this option,
- LaTeX{}-to-MathML converter program. The
- resulting MathML fragments are then embedded as an OpenDocument Formula in
- the exported document.
- vindex org-latex-to-mathml-jar-file
- To specify the
- code{org-latex-to-mathml-convert-command} and
- footnote{See
- lisp
- (setq org-latex-to-mathml-convert-command
- "java -jar %j -unicode -force -df %o %I"
- org-latex-to-mathml-jar-file
- "/path/to/mathtoweb.jar")
- LaTeX{}MLuref{http://dlmf.nist.gov/LaTeXML/}.} use
- end lisp
- To quickly verify the reliability of the
- table
- item M-x org-odt-export-as-odf RET
- Convert a file{.odf}) file.
- LaTeX{} math snippet to an OpenDocument formula (
- end table
- cindex dvisvgm
- item PNG images
- Add this line to the Org file. This option is activated on a per-file basis.
- end example
- end example
- or:
- end example
- Under this option,
- file{dvipng} program, file{imagemagick}
- programs.
- node Working with MathML or OpenDocument formula files
- LaTeX{} math snippets in ODT documents is not reliable, there
- is one more option to try. Embed an equation by linking to its MathML
- (file{.odf}) file as shown
- below:
- end example
- or
- end example
- subsection Labels and captions in ODT export
- ODT format handles labeling and captioning of objects based on their
- types. Inline images, tables,
- example
- #+CAPTION: Bell curve
- #+LABEL: fig:SED-HR4049
- [[./img/a.png]]
- example
- Figure 2: Bell curve
- vindex org-odt-category-map-alist
- To modify the category component of the caption, customize the option
- samp{Illustration} instead of the default string
- 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. Internally, the ODT export back-end relies on
- samp{OrgSrc} prefix and inherit
- colors from the faces used by Emacs
- vindex org-odt-fontify-srcblocks
- For custom fontification styles, customize the
- vindex org-odt-create-custom-styles-for-srcblocks
- To turn off fontification of literal examples, customize the
- node Advanced topics in ODT export
- menu
- * Configuring a document converter:: Registering a document converter.
- * Working with OpenDocument style files:: Exploring internals.
- * Creating one-off styles:: Customizing styles, highlighting.
- * Customizing tables in ODT export:: Defining table templates.
- * Validating OpenDocument XML:: Debugging corrupted OpenDocument files.
- node Configuring a document converter
- cindex convert
- cindex converter
- The ODT export back-end works with popular converters with little or no extra
- configuration.
- enumerate
- vindex org-odt-convert-processes
- Add the name of the converter to the
- item Configure its capabilities
- anchor{x-odt-converter-capabilities} Specify which 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 numbering of tables, images, equations, and similar
- entities.
- end itemize
- subsubheading b) Overriding factory styles
- The following two variables control the location from where the ODT exporter
- picks up the custom styles and content template files. Customize these
- variables to override the factory styles used by the exporter.
- anchor{x-org-odt-styles-file}
- code{org-odt-styles-file}
- The ODT export back-end uses the file pointed to by this variable, such as
- 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
- The ODT export back-end can read embedded raw OpenDocument XML from the Org
- file. Such direct formatting are useful for one-off instances.
- item Embedding ODT tags as part of regular text
- Enclose OpenDocument syntax in
- example
- odt:<text:span text:style-name="Highlight">This is highlighted
- text</text:span>. But this is regular text.
- strong{Hint:} To see the above example in action, edit the
- 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
- The ODT export back-end can read one-liner options with
- 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
- The ODT export back-end can also read ODT export blocks for OpenDocument XML.
- Such blocks use 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
- Override the default table format 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} template and installed two table styles
- samp{TableWithFirstRowandLastRow}.
- samp{Custom Table Template} in
- pxref{x-orgodtcontenttemplate-xml,,Factory styles}. For adding new
- templates, define new styles here.
- 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 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 corruption.
- To verify if the
- file{.odt} files have to be decompressed using
- file{.odt} files are inforef{File Archives,,emacs}.
- The contents of file{.xml}. For general help with
- validation---and schema-sensitive editing---of XML files:
- vindex org-odt-schema-dir
- Customize
- file{.rnc} files and the needed schema-locating rules. The ODT export
- back-end takes care of updating the
- c end opendocument
- section Org export
- code{org} export back-end creates a normalized version of the Org document
- in current buffer. The exporter evaluates Babel code (
- subheading Org export commands
- kbd
- file{.org} extension. For
- file{myfile.org.org}, overwriting without warning.
- item C-c C-e O v
- Export to an Org file, then open it.
- node Texinfo export
- cindex Texinfo export
- The
- menu
- * Texinfo export commands:: Invoking commands.
- * Texinfo specific export settings:: Setting the environment.
- * Texinfo file header:: Generating the header.
- * Texinfo title and copyright page:: Creating preamble pages.
- * Info directory file:: Installing a manual in Info file hierarchy.
- * Headings and sectioning structure:: Building document structure.
- * Indices:: Creating indices.
- * Quoting Texinfo code:: Incorporating literal Texinfo code.
- * Plain lists in Texinfo export:: List attributes.
- * Tables in Texinfo export:: Table attributes.
- * Images in Texinfo export:: Image attributes.
- * Special blocks in Texinfo export:: Special block attributes.
- * A Texinfo example:: Processing Org to Texinfo.
- node Texinfo export commands
- vindex org-texinfo-info-process
- kbd
- file{.texi} extension. For
- file{myfile.texi}, overwriting without warning.
- code{org-texinfo-info-process} variable.
- node Texinfo specific export settings
- pxref{Export settings}).
- samp
- cindex #+SUBTITLE (Texinfo)
- The document subtitle.
- cindex #+SUBAUTHOR
- The document subauthor.
- cindex #+TEXINFO_FILENAME
- The Texinfo filename.
- cindex #+TEXINFO_CLASS
- code{org-texinfo-default-class}), which must be
- a member of
- item TEXINFO_HEADER
- item TEXINFO_POST_HEADER
- item TEXINFO_DIR_CATEGORY
- item TEXINFO_DIR_TITLE
- item TEXINFO_DIR_DESC
- item TEXINFO_PRINTED_TITLE
- end table
- subsection Texinfo file header
- code{#+TEXINFO_FILENAME} keyword.
- vindex org-texinfo-classes
- cindex #+TEXINFO_CLASS
- Along with the output's file name, the Texinfo header also contains language
- details (
- code{org-texinfo-coding-system} variable. Insert
- {synindex
- code{org-texinfo-classes} once, and then activate it in the document by
- setting the
- node Texinfo title and copyright page
- cindex #+TEXINFO_PRINTED_TITLE
- The default template for hard copy output has a title page with
- code{#+AUTHOR} (
- code{#+TITLE} with something different for the printed version, use
- the code{#+SUBTITLE} keywords. Both
- expect raw Texinfo code for setting their values.
- code{#+AUTHOR} is not sufficient, add multiple
- example
- #+AUTHOR: Jane Smith
- #+SUBAUTHOR: John Doe
- #+TEXINFO_PRINTED_TITLE: This Long Titleinlinefmt} Is Broken in TeX}
- cindex property, COPYING
- Copying material is defined in a dedicated headline with a non-
- code{:COPYING:} property. The back-end inserts the contents within a
- example
- * Legalese
- :PROPERTIES:
- :COPYING: t
- :END:
- This is a short example of a complete Texinfo file, version 1.0.
- Copyright \copy 2016 Free Software Foundation, Inc.
- node Info directory file
- cindex
- cindex Texinfo export,
- cindex Info directory file, in Texinfo export
- cindex
- cindex Texinfo export,
- cindex #+TEXINFO_DIR_CATEGORY
- cindex #+TEXINFO_DIR_DESC
- The end result of the Texinfo export process is the creation of an Info file.
- This Info file's metadata has variables for category, title, and description:
- code{#+TEXINFO_DIR_TITLE}, and
- 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
- The Texinfo export back-end uses a pre-defined scheme to convert Org
- headlines to an equivalent Texinfo structuring commands. A scheme like this
- maps top-level headlines to numbered chapters tagged as
- code{unnumbered}.
- To override such mappings to introduce
- code{org-texinfo-classes}.
- Activate the new class with the
- code{org-texinfo-default-class}.
- If an Org headline's level has no associated Texinfo structuring command, or
- is below a certain threshold (
- cindex property, APPENDIX
- The Texinfo export back-end makes any headline with a non-
- code{:APPENDIX:} property into an appendix. This happens independent of the
- Org headline level or the
- cindex property, DESCRIPTION
- The Texinfo export back-end creates a menu entry after the Org headline for
- each regular sectioning structure. To override this with a shorter menu
- entry, use the pxref{Table of contents}).
- Texinfo menu entries also have an option for a longer
- example
- * Controlling Screen Display
- :PROPERTIES:
- :ALT_TITLE: Display
- :DESCRIPTION: Controlling Screen Display
- :END:
- cindex The Top node, in Texinfo export
- samp{Top} node, i.e., the
- node in which a reader enters an Info manual. As such, it is expected not to
- appear in printed output generated from the inforef{The
- Top Node,,texinfo}, for more information.
- subsection Indices
- cindex concept index, in Texinfo export
- cindex #+FINDEX
- cindex Texinfo export, index, function
- cindex keystroke index, in Texinfo export
- cindex #+PINDEX
- cindex Texinfo export, program index
- cindex data type index, in Texinfo export
- cindex #+VINDEX
- cindex Texinfo export, variable index
- The Texinfo export back-end recognizes these indexing keywords if used in the
- Org file: code{#+FINDEX}, code{#+PINDEX},
- code{#+VINDEX}. Write their value as verbatim Texinfo
- code; in particular, {}, }} and
- samp{} if they not belong to a Texinfo command.
- end example
- code{:INDEX:} property to samp{vr}. These abbreviations come
- from Texinfo that stand for concept index and variable index. The Texinfo
- manual has abbreviations for all other kinds of indexes. The back-end
- exports the headline as an unnumbered chapter or section command, and then
- inserts the index after its contents.
- end example
- subsection Quoting Texinfo code
- Use any of the following three methods to insert or escape raw Texinfo code:
- cindex #+BEGIN_EXPORT texinfo
- {Stallmantexinfo:
- end example
- subsection Plain lists in Texinfo export
- cindex Two-column tables, in Texinfo export
- code{table}, which results in a table with
- two columns. To change this behavior, specify
- code{ftable} or
- inforef{Two-column Tables,,texinfo}.
- cindex :indic attribute, in Texinfo export
- The Texinfo export back-end by default also applies a text highlight based on
- the defaults stored in
- code{:indic}
- attribute.
- cindex :sep attribute, in Texinfo export
- Org syntax is limited to one entry per list item. Nevertheless, the Texinfo
- export back-end can split that entry according to any text provided through
- the
- example
- #+ATTR_TEXINFO: :table-type vtable :sep , :indic asis
- - foo, bar :: This is the common text for variables foo and bar.
- noindent
- becomes
- end example
- subsection Tables in Texinfo export
- code{:columns} attribute. See example below.
- end example
- subsection Images in Texinfo export
- code{:width} and
- code{:alt} and specify
- the text using Texinfo code, as shown in the example:
- {text
- end example
- subsection Special blocks
- code{:options} attributes to the end of the command,
- as shown in this example:
- end example
- example
- defun org-org-export-to-org ...
- A somewhat obsessive function.
- end defun
- node A Texinfo example
- ref{GNU Sample
- Texts,,,texinfo,GNU Texinfo Manual} for an equivalent example using Texinfo
- code.
- {{version}
- {{version}{{updated}
- {{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
- A large part of Org mode's inter-operability success is its ability to easily
- export to or import from external applications. The iCalendar export
- back-end takes calendar data from Org files and exports to the standard
- iCalendar format.
- The iCalendar export back-end can also incorporate TODO entries based on the
- configuration of the
- code{org-icalendar-use-deadline} and
- code{org-icalendar-categories}. To assign clock
- alarms based on time, configure the
- vindex org-icalendar-store-UID
- code{org-icalendar-store-UID}. The back-end looks for the
- table
- orgcmd{C-c C-e c f,org-icalendar-export-to-ics}
- Create iCalendar entries from the current Org buffer and store them in the
- same directory, using a file extension
- orgcmd{C-c C-e c a, org-icalendar-export-agenda-files}
- code{org-agenda-files} and store
- in a separate iCalendar file for each Org file.
- vindex org-icalendar-combined-agenda-file
- Create a combined iCalendar file from Org files in
- code{org-icalendar-combined-agenda-file} file name.
- vindex org-use-property-inheritance
- cindex property, SUMMARY
- cindex property, LOCATION
- code{org-use-property-inheritance} variable.
- When Org entries do not have SUMMARY, DESCRIPTION and LOCATION properties,
- the iCalendar export back-end derives the summary from the headline, and
- derives the description from the body of the Org item. The
- : ``Asia/Almaty''.
- Alternately, the property value can be ``UTC'', to force UTC time for this
- entry only.
- Exporting to iCalendar format depends in large part on the capabilities of
- the destination application. Some are more lenient than others. Consult the
- Org mode FAQ for advice on specific applications.
- section Other built-in back-ends
- vindex org-export-backends
- Other export back-ends included with Org are:
- item
- end itemize
- To activate such back-ends, either customize
- code{(require 'ox-man)}. On successful load, the
- back-end adds new keys in the export dispatcher (
- file{ox-man.el}, for
- usage and configuration details.
- section Advanced configuration
- vindex org-export-before-processing-hook
- code{org-export-before-processing-hook}, runs before any
- expansions of macros, Babel code, and include keywords in the buffer. The
- second hook,
- 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
- Here is an example filter that replaces non-breaking spaces
- code{_} for the
- lisp
- end group
- code{org-export-derived-backend-p} predicate that tests for
- code{beamer}, derived from
- subheading Defining filters for individual files
- The Org export can filter not just for back-ends, but also for specific files
- through the
- samp{src} code block in the same Org
- file, which is a handy location for debugging.
- end example
- code{ascii} back-end display the language used in
- a source code block. Also make it display only when some attribute is
- non-
- example
- #+ATTR_ASCII: :language t
- code{ascii} back-end with a custom
- lisp
- end group
- code{my-ascii-src-block} function looks at the attribute above the
- current element. If not true, hands over to
- code{src-block} type
- elements.
- To use the newly defined back-end, call the following from an Org buffer:
- end smalllisp
- Further steps to consider would be an interactive function, self-installing
- an item in the export dispatcher menu, and other user-friendly improvements.
- section Export in foreign buffers
- The export back-ends in Org often include commands to convert selected
- regions. A convenient feature of this in-place conversion is that the
- exported output replaces the original source. Here are such functions:
- code
- item org-latex-convert-region-to-latex
- Convert the selected region into
- item org-texinfo-convert-region-to-texinfo
- Convert the selected region into
- item org-md-convert-region-to-md
- Convert the selected region into
- end table
- In-place conversions are particularly handy for quick conversion of tables
- and lists in foreign buffers. For example, turn on the minor mode
- code{M-x
- org-html-convert-region-to-html RET}.
- chapter Publishing
- emph{projects} composed of interlinked org
- files. You can also configure Org to automatically upload your exported HTML
- pages and related attachments, such as images and source code files, to a web
- server.
- You can also use Org to convert files into PDF, or even combine HTML and PDF
- conversion so that files are available in both formats on the server.
- Publishing has been contributed to Org by David O'Toole.
- end menu
- section Configuration
- Publishing needs significant configuration to specify files, destination
- and many other properties of a project.
- LaTeX{} export
- * Publishing links:: Which links keep working after publishing?
- * Sitemap:: Generating a list of all pages
- * Generating an index:: An index that reaches across pages
- node Project alist
- code{org-publish-project-alist}
- cindex projects, for publishing
- code{org-publish-project-alist}. Each element of the list
- configures one project, and may be in one of the two following forms:
- r{i.e., a well-formed property list with alternating keys and values}
- end lisp
- In both cases, projects are configured by specifying property values. A
- project defines the set of files that will be published, as well as the
- publishing configuration to use when publishing those files. When a project
- takes the second form listed above, the individual members of the
- node Sources and destinations
- cindex directories, for publishing
- Most properties are optional, but some should always be set. In
- particular, Org needs to know where to look for source files,
- and where to put published files.
- columnfractions 0.3 0.7
- code{:base-directory}
- item
- tab Directory where output files will be published. You can directly
- publish to a web server using a file name syntax appropriate for
- the Emacs
- pxref{Uploading files}).
- code{:preparation-function}
- code{make} for updating files to be
- published. Each preparation function is called with a single argument, the
- project property list.
- code{:completion-function}
- end multitable
- node Selecting files
- cindex files, selecting for publishing
- By default, all files with extension
- multitable
- item
- tab Extension (without the dot!) of source files. This actually is a
- regular expression. Set this to the symbol
- code{:base-directory}, even without extension.
- code{:exclude}
- item
- tab List of files to be included regardless of
- code{:exclude}.
- code{:recursive}
- code{nil} means, check base-directory recursively for files to publish.
- node Publishing action
- cindex action, for publishing
- Publishing means that a file is copied to the destination directory and
- possibly transformed in the process. The default transformation is to export
- Org files as HTML files, and this is done by the function
- pxref{HTML
- export}). But you also can publish your content as PDF files using
- code{ascii},
- code{.org} file but with the
- i{commented} and
- code{org-org-publish-to-org}. This will produce
- code{:htmlized-source} to
- file{file.org.html} in the publishing directory
- file{file.org}
- will be exported as
- code{org-publish-attachment}. For non-org files, you
- always need to specify the publishing function:
- columnfractions 0.3 0.7
- code{:publishing-function}
- item
- tab non-
- end multitable
- The function must accept three arguments: a property list containing at least
- a
- node Publishing options
- cindex options, for publishing
- The property list can be used to set export options during the publishing
- process. In most cases, these properties correspond to user variables in
- Org. While some properties are available for all export back-ends, most of
- them are back-end specific. The following sections list properties along
- with the variable they belong to. See the documentation string of these
- options for details.
- code{org-publish-project-alist}, its
- setting overrides the value of the corresponding user variable (if any)
- during publishing. Options set within a file (
- subsubheading Generic properties
- code{:with-sub-superscript}} {
- 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-ascii-table-keep-all-vertical-lines}}
- code{:ascii-bullets} code{org-ascii-bullets}
- code{:ascii-caption-above} code{org-ascii-caption-above}
- code{:ascii-charset} code{org-ascii-charset}
- code{:ascii-global-margin} code{org-ascii-global-margin}
- code{:ascii-format-drawer-function} code{org-ascii-format-drawer-function}
- code{:ascii-format-inlinetask-function} code{org-ascii-format-inlinetask-function}
- code{:ascii-headline-spacing} code{org-ascii-headline-spacing}
- code{:ascii-indented-line-width} code{org-ascii-indented-line-width}
- code{:ascii-inlinetask-width} code{org-ascii-inlinetask-width}
- code{:ascii-inner-margin} code{org-ascii-inner-margin}
- code{:ascii-links-to-notes} code{org-ascii-links-to-notes}
- code{:ascii-list-margin} code{org-ascii-list-margin}
- code{:ascii-paragraph-spacing} code{org-ascii-paragraph-spacing}
- code{:ascii-quote-margin} code{org-ascii-quote-margin}
- code{:ascii-table-keep-all-vertical-lines} code{org-ascii-table-keep-all-vertical-lines}
- code{:ascii-table-use-ascii-art} code{org-ascii-table-use-ascii-art}
- code{:ascii-table-widen-columns} code{org-ascii-table-widen-columns}
- code{:ascii-text-width} code{org-ascii-text-width}
- code{:ascii-underline} code{org-ascii-underline}
- code{:ascii-verbatim-format} code{org-ascii-verbatim-format}
- subsubheading Beamer specific properties
- code{:beamer-frame-default-options}} {
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- end multitable
- multitable {code{org-html-table-use-header-tags-for-first-column}}
- code{:html-allow-name-attribute-in-anchors} code{org-html-allow-name-attribute-in-anchors}
- code{:html-checkbox-type} code{org-html-checkbox-type}
- code{:html-container} code{org-html-container-element}
- code{:html-divs} code{org-html-divs}
- code{:html-doctype} code{org-html-doctype}
- code{:html-extension} code{org-html-extension}
- code{:html-footnote-format} code{org-html-footnote-format}
- code{:html-footnote-separator} code{org-html-footnote-separator}
- code{:html-footnotes-section} code{org-html-footnotes-section}
- code{:html-format-drawer-function} code{org-html-format-drawer-function}
- code{:html-format-headline-function} code{org-html-format-headline-function}
- code{:html-format-inlinetask-function} code{org-html-format-inlinetask-function}
- code{:html-head-extra} code{org-html-head-extra}
- code{:html-head-include-default-style} code{org-html-head-include-default-style}
- code{:html-head-include-scripts} code{org-html-head-include-scripts}
- code{:html-head} code{org-html-head}
- code{:html-home/up-format} code{org-html-home/up-format}
- code{:html-html5-fancy} code{org-html-html5-fancy}
- code{:html-indent} code{org-html-indent}
- code{:html-infojs-options} code{org-html-infojs-options}
- code{:html-infojs-template} code{org-html-infojs-template}
- code{:html-inline-image-rules} code{org-html-inline-image-rules}
- code{:html-inline-images} code{org-html-inline-images}
- code{:html-link-home} code{org-html-link-home}
- code{:html-link-org-files-as-html} code{org-html-link-org-files-as-html}
- code{:html-link-up} code{org-html-link-up}
- code{:html-link-use-abs-url} code{org-html-link-use-abs-url}
- code{:html-mathjax-options} code{org-html-mathjax-options}
- code{:html-mathjax-template} code{org-html-mathjax-template}
- code{:html-metadata-timestamp-format} code{org-html-metadata-timestamp-format}
- code{:html-postamble-format} code{org-html-postamble-format}
- code{:html-postamble} code{org-html-postamble}
- code{:html-preamble-format} code{org-html-preamble-format}
- code{:html-preamble} code{org-html-preamble}
- code{:html-table-align-individual-fields} code{org-html-table-align-individual-fields}
- code{:html-table-attributes} code{org-html-table-default-attributes}
- code{:html-table-caption-above} code{org-html-table-caption-above}
- code{:html-table-data-tags} code{org-html-table-data-tags}
- code{:html-table-header-tags} code{org-html-table-header-tags}
- code{:html-table-row-tags} code{org-html-table-row-tags}
- code{:html-table-use-header-tags-for-first-column} code{org-html-table-use-header-tags-for-first-column}
- code{:html-tag-class-prefix} code{org-html-tag-class-prefix}
- code{:html-text-markup-alist} code{org-html-text-markup-alist}
- code{:html-todo-kwd-class-prefix} code{org-html-todo-kwd-class-prefix}
- code{:html-toplevel-hlevel} code{org-html-toplevel-hlevel}
- code{:html-use-infojs} code{org-html-use-infojs}
- code{:html-validation-link} code{org-html-validation-link}
- code{:html-viewport} code{org-html-viewport}
- code{:html-xml-declaration} code{org-html-xml-declaration}
- subsubheading
- multitable {code{org-latex-link-with-unknown-path-format}}
- code{:latex-active-timestamp-format} code{org-latex-active-timestamp-format}
- code{:latex-caption-above} code{org-latex-caption-above}
- code{:latex-classes} code{org-latex-classes}
- code{:latex-class} code{org-latex-default-class}
- code{:latex-compiler} code{org-latex-compiler}
- code{:latex-default-figure-position} code{org-latex-default-figure-position}
- code{:latex-default-table-environment} code{org-latex-default-table-environment}
- code{:latex-default-table-mode} code{org-latex-default-table-mode}
- code{:latex-diary-timestamp-format} code{org-latex-diary-timestamp-format}
- code{:latex-footnote-defined-format} code{org-latex-footnote-defined-format}
- code{:latex-footnote-separator} code{org-latex-footnote-separator}
- code{:latex-format-drawer-function} code{org-latex-format-drawer-function}
- code{:latex-format-headline-function} code{org-latex-format-headline-function}
- code{:latex-format-inlinetask-function} code{org-latex-format-inlinetask-function}
- code{:latex-hyperref-template} code{org-latex-hyperref-template}
- code{:latex-image-default-height} code{org-latex-image-default-height}
- code{:latex-image-default-option} code{org-latex-image-default-option}
- code{:latex-image-default-width} code{org-latex-image-default-width}
- code{:latex-images-centered} code{org-latex-images-centered}
- code{:latex-inactive-timestamp-format} code{org-latex-inactive-timestamp-format}
- code{:latex-inline-image-rules} code{org-latex-inline-image-rules}
- code{:latex-link-with-unknown-path-format} code{org-latex-link-with-unknown-path-format}
- code{:latex-listings-langs} code{org-latex-listings-langs}
- code{:latex-listings-options} code{org-latex-listings-options}
- code{:latex-listings} code{org-latex-listings}
- code{:latex-minted-langs} code{org-latex-minted-langs}
- code{:latex-minted-options} code{org-latex-minted-options}
- code{:latex-prefer-user-labels} code{org-latex-prefer-user-labels}
- code{:latex-subtitle-format} code{org-latex-subtitle-format}
- code{:latex-subtitle-separate} code{org-latex-subtitle-separate}
- code{:latex-table-scientific-notation} code{org-latex-table-scientific-notation}
- code{:latex-tables-booktabs} code{org-latex-tables-booktabs}
- code{:latex-tables-centered} code{org-latex-tables-centered}
- code{:latex-text-markup-alist} code{org-latex-text-markup-alist}
- code{:latex-title-command} code{org-latex-title-command}
- code{:latex-toc-command} code{org-latex-toc-command}
- subsubheading Markdown specific properties
- code{:md-footnotes-section}} {
- item tab
- item tab
- item tab
- end multitable
- multitable {code{org-odt-format-inlinetask-function}}
- code{:odt-content-template-file} code{org-odt-content-template-file}
- code{:odt-display-outline-level} code{org-odt-display-outline-level}
- code{:odt-fontify-srcblocks} code{org-odt-fontify-srcblocks}
- code{:odt-format-drawer-function} code{org-odt-format-drawer-function}
- code{:odt-format-headline-function} code{org-odt-format-headline-function}
- code{:odt-format-inlinetask-function} code{org-odt-format-inlinetask-function}
- code{:odt-inline-formula-rules} code{org-odt-inline-formula-rules}
- code{:odt-inline-image-rules} code{org-odt-inline-image-rules}
- code{:odt-pixels-per-inch} code{org-odt-pixels-per-inch}
- code{:odt-styles-file} code{org-odt-styles-file}
- code{:odt-table-styles} code{org-odt-table-styles}
- code{:odt-use-date-fields} code{org-odt-use-date-fields}
- subsubheading Texinfo specific properties
- code{:texinfo-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
- end multitable
- subsection Links between published files
- samp{[[file:foo.org][The foo]]} or simply
- pxref{External links}). When published, this link becomes a link to
- code{http:} link instead of a code{file:} links
- are converted to link to the corresponding
- ref{Complex example}, for
- an example of this usage.
- Eventually, links between published documents can contain some search options
- (
- file{foo.html}.
- end example
- subsection Generating a sitemap
- multitable
- item
- tab When non-code{org-publish-current-project}
- or
- item
- tab Filename for output of sitemap. Defaults to
- file{sitemap.html}).
- code{:sitemap-title}
- item
- tab With this option one can tell how a site-map entry is formatted in the
- site-map. It is a function called with three arguments: the file or
- directory name relative to base directory of the project, the site-map style
- and the current project. It is expected to return a string. Default value
- turns file names into links and use document titles as descriptions. For
- specific formatting needs, one can use
- code{org-publish-find-title} and
- item
- tab Plug-in function to use for generation of the sitemap. It is called
- with two arguments: the title of the site-map and a representation of the
- files and directories involved in the project as a radio list (
- code{org-list-to-generic},
- item
- tab Where folders should appear in the sitemap. Set this to
- code{last} to display folders first or last, respectively.
- When set to
- code{tree}.
- code{:sitemap-sort-files}
- code{alphabetically} (default),
- code{anti-chronologically}.
- code{anti-chronologically} sorts the files with newer
- date first.
- code{org-publish-find-date}.
- code{:sitemap-ignore-case}
- code{nil}.
- code{:sitemap-date-format}
- code{format-time-string} function that tells how
- a sitemap entry's date is to be formatted. This property bypasses
- code{%Y-%m-%d}.
- node Generating an index
- cindex index, in a publishing project
- Org mode can generate an index across the files of a publishing project.
- columnfractions 0.25 0.75
- code{:makeindex}
- code{nil}, generate in index in the file
- file{theindex.html}.
- code{:makeindex} set. The file only contains a statement
- cindex #+INDEX
- Index entries are specified with
- example
- * Curriculum Vitae
- #+INDEX: CV
- #+INDEX: Application!CV
- node Uploading files
- cindex rsync
- command{rsync} or
- i{remote} publishing facilities of Org mode which rely heavily on
- Tramp. Tramp, while very useful and powerful, tends not to be
- so efficient for multiple file transfer and has been known to cause problems
- under heavy usage.
- Specialized synchronization utilities offer several advantages. In addition
- to timestamp comparison, they also do content and permissions/attribute
- checks. For this reason you might prefer to publish your web to a local
- directory (possibly even
- file{unison} or
- code{org-publish} and let the synchronization tool do the rest.
- You do not need, in this scenario, to include attachments such as
- file{css} or
- code{org-publish-use-timestamps-flag} to
- code{#+INCLUDE:}. The timestamp mechanism in
- Org is not smart enough to detect if included files have been modified.
- section Sample configuration
- Below we provide two example configurations. The first one is a simple
- project publishing only a set of Org files. The second example is
- more complex, with a multi-component project.
- end menu
- subsection Example: simple publishing configuration
- This example publishes a set of Org files to the
- lisp
- (setq org-publish-project-alist
- '(("org"
- :base-directory "~/org/"
- :publishing-directory "~/public_html"
- :publishing-function org-html-publish-to-html
- :section-numbers nil
- :with-toc nil
- :html-head "<link rel=\"stylesheet\"
- href=\"../other/mystyle.css\"
- type=\"text/css\"/>")))
- node Complex example
- file{~/org} and your
- publishable images in
- c
- end example
- lisp
- (setq org-publish-project-alist
- '(("orgfiles"
- :base-directory "~/org/"
- :base-extension "org"
- :publishing-directory "/ssh:user@@host:~/html/notebook/"
- :publishing-function org-html-publish-to-html
- :exclude "PrivatePage.org" ;; regexp
- :headline-levels 3
- :section-numbers nil
- :with-toc nil
- :html-head "<link rel=\"stylesheet\"
- href=\"../other/mystyle.css\" type=\"text/css\"/>"
- :html-preamble t)
- ("images"
- :base-directory "~/images/"
- :base-extension "jpg\\|gif\\|png"
- :publishing-directory "/ssh:user@@host:~/html/images/"
- :publishing-function org-publish-attachment)
- ("other"
- :base-directory "~/other/"
- :base-extension "css\\|el"
- :publishing-directory "/ssh:user@@host:~/html/other/"
- :publishing-function org-publish-attachment)
- ("website" :components ("orgfiles" "images" "other"))))
- node Triggering publication
- table
- orgcmd{C-c C-e P x,org-publish}
- Prompt for a specific project and publish all files that belong to it.
- orgcmd{C-c C-e P f,org-publish-current-file}
- Publish only the current file.
- end table
- code{org-publish-use-timestamps-flag}.
- This may be necessary in particular if files include other files via
- code{#+INCLUDE:}.
- chapter Working with source code
- cindex Davison, Dan
- samp{src} code blocks are not restricted to the preamble or
- the end of an Org document; they can go anywhere---with a few exceptions,
- such as not inside comments and fixed width areas. Here's a sample
- example
- #+BEGIN_SRC emacs-lisp
- (defun org-xor (a b)
- "Exclusive or."
- (if a (not b) b))
- #+END_SRC
- samp{#+BEGIN_SRC} and
- samp{live code} blocks (as compared to the static text and
- documentation around it). Users can control how
- samp{src} code block type is one of many block types, such as quote,
- export, verse, latex, example, and verbatim. This section pertains to
- samp{#+BEGIN_SRC} and
- samp{src} code blocks, Org provides native Emacs major-modes.
- That leverages the latest Emacs features for that source code language mode.
- For exporting, Org can then extract
- dfn{tangling} in literate
- programming terminology).
- For publishing, Org's back-ends can handle the
- samp{src} code blocks, Org provides
- facilities that glue the tasks of compiling, collecting the results of the
- execution, and inserting them back to the Org file. Besides text output,
- results may include links to other data types that Emacs can handle: audio,
- video, and graphics.
- An important feature of Org's execution of the
- samp{src} blocks. Such
- interoperability uses a common syntax even if these
- samp{src} code block in the Org
- file. That should partly explain why this functionality by the original
- contributors, Eric Schulte and Dan Davison, was called
- samp{src} code blocks.
- Org mode fulfills the promise of easy verification and maintenance of
- publishing reproducible research by keeping all these in the same file: text,
- data, code, configuration settings of the execution environment, the results
- of the execution, and associated narratives, claims, references, and internal
- and external links.
- Details of Org's facilities for working with source code are shown next.
- end menu
- section Structure of code blocks
- cindex source code, block structure
- cindex #+BEGIN_SRC
- Org offers two ways to structure source code in Org documents: in a
- samp{src} block conforms to this structure:
- end example
- Do not be put-off by having to remember the source block syntax. Org mode
- offers a command for wrapping existing text in a block (
- 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}
- (
- pxref{Comment lines}). On the other hand, Org does evaluate code blocks in
- sub-trees excluded from export (
- node Extracting source code
- cindex tangling
- cindex code block, extracting source code
- Extracting source code from code blocks is a basic task in literate
- programming. Org has features to make this easy. In literate programming
- parlance, documents on creation are
- emph{tangled} for execution by a computer. Org
- facilitates weaving and tangling for producing, maintaining, sharing, and
- exporting literate programming documents. Org provides extensive
- customization options for extracting source code.
- When Org tangles
- emph{tangling} process, Org
- expands variables in the source code, and resolves any Noweb style references
- (
- subsubheading Header arguments
- code
- code{:tangle}, src header argument
- samp{src} code block on export.
- samp{src} code block.
- end table
- subsubheading Functions
- code
- kbd{C-c C-v t}.
- With prefix argument only tangle the current
- item org-babel-tangle-file
- Choose a file to tangle. Bound to
- end table
- table
- item org-babel-post-tangle-hook
- This hook runs from within code tangled by
- end table
- code{org-babel-tangle-jump-to-org} function with two additional source code
- block header arguments: One, set pxref{padline}) to true
- (the default setting). Two, set pxref{comments}) to
- node Evaluating code blocks
- cindex code block, evaluating
- cindex #+RESULTS
- A note about security: With code evaluation comes the risk of harm. Org
- safeguards by prompting for user's permission before executing any code in
- the source block. To customize this safeguard (or disable it) see
- samp{src} code block evaluation and inserts
- them in the Org file, right after the
- code{#+RESULTS} label. Org creates the
- code{emacs-lisp}
- ref{Languages} for identifiers to enable other languages.
- samp{src} code blocks.
- kbd{C-c C-v e} with the point on a footnote{The option
- kbd{C-c C-c} key binding.} calls the
- cindex #+CALL
- By calling a named code block
- {
- code{#+KEYWORD:},
- samp{src} code
- blocks from the current Org mode buffer or from the ``Library of Babel''
- (code{#+CALL:}
- syntax is used, the result is wrapped based on the variable
- code{"=%s="}
- to produce verbatim text suitable for markup.
- The syntax for
- example
- #+CALL: <name>(<arguments>)
- #+CALL: <name>[<inside header arguments>](<arguments>) <end header arguments>
- example
- ... call_<name>(<arguments>) ...
- ... call_<name>[<inside header arguments>](<arguments>)[<end header arguments>] ...
- table
- item <name>
- This is the name of the code block to be evaluated (
- item <arguments>
- Org passes arguments to the code block using standard function call syntax.
- For example, a samp{4} to a code block named
- code{:var n=2}, would be
- written as
- item <inside header arguments>
- Org passes inside header arguments to the named
- code{[:results output]} collects results printed
- to
- item <end header arguments>
- End header arguments affect the results returned by the code block. For
- example, code{BEGIN_EXPORT html}
- block before inserting the results in the Org buffer.
- For more examples of header arguments for
- pxref{Arguments in function calls}.
- node Library of Babel
- cindex babel, library of
- cindex code block, library
- The ``Library of Babel'' is a collection of code blocks. Like a function
- library, these code blocks can be called from other Org files. A collection
- of useful code blocks is available on
- pxref{Evaluating code blocks}.
- samp{src} code blocks of an Org file, and then load the Org file with
- kbd{C-c C-v i}.
- section Languages
- cindex source code, languages
- samp{src} code blocks:
- columnfractions 0.25 0.25 0.25 0.25
- b{Language} b{Identifier} b{Language} b{Identifier}
- tab asymptote tab awk
- tab C tab C++
- tab clojure tab css
- tab d tab ditaa
- tab dot tab calc
- tab emacs-lisp tab fortran
- tab gnuplot tab haskell
- tab java tab js
- tab latex tab ledger
- tab lisp tab lilypond
- tab lua tab matlab
- tab mscgen tab ocaml
- tab octave tab org
- tab oz tab perl
- tab plantuml tab processing
- tab python tab R
- tab ruby tab sass
- tab scheme tab screen
- tab sed tab sh
- tab sql tab sqlite
- tab vala
- uref{http://orgmode.org/worg/org-contrib/babel/languages.html}.
- 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 /scp: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 the Noweb
- syntax reference.
- This behavior is illustrated in the following example. Because the
- example
- #+NAME: example
- #+BEGIN_SRC text
- this is the
- multi-line body of example
- #+END_SRC
- samp{src} code block:
- end example
- expands to:
- end example
- Since this change will not affect noweb replacement text without newlines in
- them, inline noweb references are acceptable.
- This feature can also be used for management of indentation in exported code snippets.
- With:
- end example
- this
- example
- #+BEGIN_SRC python :noweb yes :results output
- if True:
- <<if-true>>
- else:
- <<if-false>>
- #+END_SRC
- example
- if True:
- print('Do things when True')
- else:
- print('Do things when False')
- example
- Do things when True
- 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
- example
- #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
- <<fullest-disk>>
- #+END_SRC
- * the mount point of the fullest disk
- :PROPERTIES:
- :header-args: :noweb-ref fullest-disk
- :END:
- ** query all mounted disks
- #+BEGIN_SRC sh
- df \
- #+END_SRC
- ** strip the header row
- #+BEGIN_SRC sh
- |sed '1d' \
- #+END_SRC
- ** output mount point of fullest disk
- #+BEGIN_SRC sh
- |awk '{u = +$5; m = $6} END }'
- #+END_SRC
- node noweb-sep
- code{:noweb-sep}
- code{:noweb-sep}, src header argument
- By default a newline separates each noweb reference concatenation. To change
- this newline separator, edit the pxref{noweb-sep}) header
- argument.
- subsubsection
- cindex
- code{:cache} header argument is for caching results of evaluating code
- blocks. Caching results can avoid re-evaluating
- code{:var} references) nor the text of the block itself has changed since
- the result was last computed. This feature greatly helps avoid long-running
- calculations. For some edge cases, however, the cached results may not be
- reliable.
- The caching feature is best for when
- pxref{var}), and that do not have side effects, and do not rely on external
- variables other than the input arguments. Functions that depend on a timer,
- file system objects, and random number generators are clearly unsuitable for
- caching.
- A note of warning: when code{:session}, caching
- may cause unexpected results.
- When the caching mechanism tests for any source code changes, it will not
- expand Noweb style references (
- uref{http://thread.gmane.org/gmane.emacs.orgmode/79046}.
- The code{yes} or
- itemize
- item
- samp{src} code block evaluated every time.
- code{yes}
- Whether to run the code or return the cached results is determined by
- comparing the SHA1 hash value of the combined
- code{#+RESULTS:}
- line from previous evaluation. When hash values match, Org does not evaluate
- the
- samp{src} code block, inserts the results, recalculates the hash value, and
- updates
- end itemize
- In this example, both functions are cached. But
- code{random} has changed since the last run.
- end example
- subsubsection
- cindex
- code{:sep} header argument is the delimiter for saving results as tables
- to files (
- code{org-open-at-point}, which is bound to
- code{:sep} for opening tabular results.
- subsubsection
- cindex
- code{:hlines}
- argument with the value
- code{no}.
- bullet
- code{no}
- Strips horizontal lines from the input table. For most code, this is
- desirable, or else those
- code{:hlines no}. The example shows hlines removed from the
- input table.
- end example
- code{yes}
- For
- example
- #+NAME: many-cols
- | a | b | c |
- |---+---+---|
- | d | e | f |
- |---+---+---|
- | g | h | i |
- #+NAME: echo-table
- #+BEGIN_SRC python :var tab=many-cols :hlines yes
- return tab
- #+END_SRC
- #+RESULTS: echo-table
- | a | b | c |
- |---+---+---|
- | d | e | f |
- |---+---+---|
- | g | h | i |
- end itemize
- subsubsection
- cindex
- code{:colnames} header argument accepts code{no}, or
- code{nil}, which is unassigned.
- But this header argument behaves differently depending on the source code
- language.
- bullet
- code{nil}
- If an input table has column names (because the second row is an hline), then
- Org removes the column names, processes the table, puts back the column
- names, and then writes the table to the results block.
- end example
- Note that column names have to accounted for when using variable indexing
- (
- item
- item
- code{nil}
- value. That is, Org removes the column names, processes the table, puts back
- the column names, and then writes the table to the results block.
- node rownames
- code{:rownames}
- code{:rownames}, src header argument
- The code{yes} or
- code{no}. Note that
- code{:rownames} header argument because of the ease of
- table-handling in Emacs.
- bullet
- code{no}
- Org will not pre-process row names.
- code{yes}
- If an input table has row names, then Org removes the row names, processes
- the table, puts back the row names, and then writes the table to the results
- block.
- end example
- Note that row names have to accounted for when using variable indexing
- (
- end itemize
- subsubsection
- cindex
- code{:shebang} header argument to a string value (for example,
- samp{src} code block is extracted to. Org then
- turns on the tangled file's executable permission.
- subsubsection
- cindex
- code{tangle-mode} header argument specifies what permissions to set for
- tangled files by
- code{:tangle-mode (identity #o444)}. To make it
- executable, use
- samp{src} code blocks with pxref{shebang}) header
- argument, Org will automatically set the tangled file to executable
- permissions. But this can be overridden with custom permissions using
- samp{src} code blocks tangle to a single file with different
- and conflicting
- node eval
- code{:eval}
- code{:eval}, src header argument
- The
- samp{src}
- code blocks by prompting for a confirmation. This protection is independent
- of the
- table
- item never or no
- Org will never evaluate this
- item query
- Org prompts the user for permission to evaluate this
- item never-export or no-export
- Org will not evaluate this
- item query-export
- Org prompts the user for permission to export this
- end table
- If
- code{org-confirm-babel-evaluate}
- variable (
- node wrap
- code{:wrap}
- code{:wrap}, src header argument
- The
- code{#+BEGIN_} and
- code{#+BEGIN/END_RESULTS} block.
- subsubsection
- cindex
- code{:post} header argument is for post-processing results from
- code{:post} has any value, Org binds the
- results to ref{var} header
- argument specifications. That makes results available to other
- code{:post} header argument in action.
- The first one shows how to attach
- code{:post}.
- {
- a -> b;
- b -> c;
- c -> a;
-
- end example
- The second example shows use of code{:post} to pass
- data between
- example
- #+name: round-tbl
- #+begin_src emacs-lisp :var tbl="" fmt="%.3f"
- (mapcar (lambda (row)
- (mapcar (lambda (cell)
- (if (numberp cell)
- (format fmt cell)
- cell))
- row))
- tbl)
- #+end_src
- #+begin_src R :colnames yes :post round-tbl[:colnames yes](*this*)
- set.seed(42)
- data.frame(foo=rnorm(1))
- #+end_src
- #+RESULTS:
- | foo |
- |-------|
- | 1.371 |
- node prologue
- code{:prologue}
- code{:prologue}, src header argument
- The
- samp{src} code block. A samp{gnuplot}:
- ref{epilogue}.
- end lisp
- subsubsection
- cindex
- code{epilogue} header argument is for appending to the end
- of the code block for execution. See also
- node Results of evaluation
- cindex code block, results of evaluation
- ref{results}.
- The primary determinant is the execution context. Is it in a
- code{:results
- value} or
- samp{src} code block's evaluation.
- columnfractions 0.26 0.33 0.41
- tab tab
- item tab value of last expression
- item tab contents of STDOUT
- end multitable
- For code{:results value} turns the
- results into an Org mode table format. Single values are wrapped in a one
- dimensional vector. Rows and columns of a table are wrapped in a
- two-dimensional vector.
- subsubsection
- cindex
- samp{src} block. That is why when using
- code{return} statement is mandatory when
- using
- subsubsection
- cindex
- code{:results output}, the code is passed to an external process running
- the interpreter. Org returns the contents of the standard output stream as
- as text results.
- subsubsection
- cindex
- code{:results value} from a
- samp{C} and
- samp{Python} and
- samp{src} code blocks running in a
- code{_} in samp{Ruby}, and the
- value of samp{R}).
- code{:results output}
- code{:results}, src header argument
- For
- code{STDOUT} of a
- non-interactive interpreter running as an external process. Compare for
- example these two blocks:
- end example
- In the above non-session mode, the ``2'' is not printed; so does not appear
- in results.
- end example
- In the above
- node Noweb reference syntax
- cindex code block, noweb reference
- cindex source code, noweb reference
- Org supports named blocks in Noweb style syntax. For Noweb literate
- programming details, see
- example
- <<code-block-name>>
- code{:noweb yes}, Org expands Noweb style references
- in the
- code{:noweb no}, Org does not expand Noweb style
- references in the
- code{:noweb no}. Org defaults to
- code{:noweb yes} for languages where there is no risk of
- confusion.
- Org offers a more flexible way to resolve Noweb style references
- (
- emph{results} of a code block rather than its body. To
- that effect, append parentheses, possibly including arguments, to the code
- block name, as show below.
- end example
- Note that when using the above approach to a code block's results, the code
- block name set by
- code{:noweb-ref} will not work.
- Here is an example that demonstrates how the exported content changes when
- Noweb style references are used with parentheses versus without.
- With:
- end example
- this code block:
- end example
- expands to:
- end example
- Below, a similar Noweb style reference is used, but with parentheses, while
- setting a variable
- example
- #+BEGIN_SRC text :noweb yes
- <<some-code(num=10)>>
- #+END_SRC
- emph{results} of the code block
- example
- 100
- 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
- # tangle files with org-mode
- #
- emacs -Q --batch --eval "
- (progn
- (require 'ob-tangle)
- (dolist (file command-line-args-left)
- (with-current-buffer (find-file-noselect file)
- (org-babel-tangle))))
- " "$@@"
- node Miscellaneous
- menu
- * Completion:: M-TAB guesses completions
- * Structure 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.
- kindex C-M-i
- If your desktop intercepts the combo key{TAB}} to switch windows, use
- kbd{key{TAB}} as an alternative or customize your
- environment.
- node Structure templates
- cindex template insertion
- samp{#+BEGIN_SRC} samp{#+END_SRC}, or to wrap existing text
- in such a block.
- kbd
- key{TAB}, the user is prompted to enter a type.
- vindex org-structure-template-alist
- Available structure types are defined in
- multitable
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- item tab
- end multitable
- section Speed keys
- vindex org-use-speed-commands
- By default, Org has Speed Keys disabled. To activate Speed Keys, set the
- variable code{nil} value. To trigger
- a Speed Key, the cursor must be at the beginning of an Org headline, before
- any of the stars.
- findex org-speed-command-help
- Org comes with a pre-defined list of Speed Keys. To add or modify Speed
- Keys, customize the variable,
- kbd{M-x
- org-speed-command-help}, or
- node Code evaluation security
- samp{src} code block,
- in terms of risk, is equivalent to an executable file. Org therefore puts a
- few confirmation prompts by default. This is to alert the casual user from
- accidentally running untrusted code.
- For users who do not run code blocks or write code regularly, Org's default
- settings should suffice. However, some users may want to tweak the prompts
- for fewer interruptions. To weigh the risks of automatic execution of code
- blocks, here are some details about code evaluation.
- Org evaluates code in the following circumstances:
- i
- samp{src} code blocks in an Org file during export. Org also
- evaluates a kbd{C-c C-c} key chord. Users
- exporting or running code blocks must load files only from trusted sources.
- Be wary of customizing variables that remove or alter default security
- measures.
- code{t}, Org prompts the user for confirmation before executing each
- code block. When
- code{t} or
- end defopt
- For example, this function enables execution of
- lisp
- (defun my-org-confirm-babel-evaluate (lang body)
- (not (string= lang "ditaa"))) ; don't ask for ditaa
- (setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate)
- item Following code{elisp} links
- Org has two link types that can also directly evaluate code (
- defopt org-confirm-shell-link-function
- Function that prompts the user before executing a shell link.
- defopt org-confirm-elisp-link-function
- Function that prompts the user before executing an Emacs Lisp link.
- item Formulas in tables
- Org executes formulas in tables (
- emph{calc} or the
- end table
- section Customization
- cindex options, for customization
- kbd{M-x org-customize RET} command. Or through the Org
- menu,
- pxref{In-buffer settings}).
- section Summary of in-buffer settings
- cindex special keywords
- In-buffer settings start with
- kbd{C-c C-c} activates any changes to the in-buffer settings. Closing and
- reopening the Org file in Emacs also activates the changes.
- table
- item #+ARCHIVE: %s_done::
- Sets the archive location of the agenda file. This location applies to the
- lines until the next
- code{org-archive-location}.
- item #+COLUMNS: %25ITEM ...
- code{COLUMNS} property.
- vindex org-table-formula-constants
- code{org-table-formula-constants-local}. The global
- version of this variable is
- item #+FILETAGS: :tag1:tag2:tag3:
- Set tags that all entries in the file will inherit from here, including the
- top-level entries.
- vindex org-link-abbrev-alist
- Each line specifies one abbreviation for one link. Use multiple
- pxref{Link abbreviations}. The corresponding
- variable is
- item #+PRIORITIES: highest lowest default
- vindex org-lowest-priority
- item #+PROPERTY: Property_Name Value
- This line sets a default inheritance value for entries in the current
- buffer, most useful for specifying the allowed values of a property.
- item #+SETUPFILE: file or URL
- The setup file or a URL pointing to such file is for additional in-buffer
- settings. Org loads this file and parses it for any settings in it only when
- Org opens the main file. If URL is specified, the contents are downloaded
- and stored in a temporary file cache.
- kbd{C-c '} while
- the cursor is on the line with the file name.
- cindex #+STARTUP
- Startup options Org uses when first visiting a file.
- The first set of options deals with the initial visibility of the outline
- tree. The corresponding variable for global default settings is
- code{t}, which is the same
- as
- vindex org-startup-folded
- code{overview}, STARTUP keyword
- code{content}, STARTUP keyword
- code{showall}, STARTUP keyword
- code{showeverything}, STARTUP keyword
- r{top-level headlines only}
- content
- r{no folding of any entries}
- showeverything
- end example
- cindex
- cindex
- code{org-startup-indented}
- r{start with
- r{start with
- end example
- code{org-startup-align-all-tables} with
- cindex
- cindex
- example
- align
- r{don't align tables on startup}
- vindex org-startup-shrink-all-tables
- Shrink table columns with a width cookie. The corresponding variable is
- code{nil} as default value.
- 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
- code{#+SETUPFILE}.
- item
- If the cursor is on a
- item
- If the current buffer is a capture buffer, close the note and file it. With
- a prefix argument, also jump to the target location after saving the note.
- code{<<<target>>>}, update radio targets and
- corresponding links in this buffer.
- item
- If the cursor is at a footnote reference, go to the corresponding
- definition, and
- item
- If the cursor is on a statistics cookie, update it.
- item
- If the cursor is on a numbered item in a plain list, renumber the
- ordered list.
- code{#+BEGIN} line of a dynamic block, the
- block is updated.
- end itemize
- section A cleaner outline view
- cindex dynamic indentation
- cindex clean outline view
- Org's default outline with stars and no indents can become too cluttered for
- short documents. For
- example
- end group
- noindent
- To turn this mode on, use the minor mode,
- footnote{The
- code{wrap-prefix} correctly for indenting and wrapping long lines of
- headlines or text. This minor mode handles
- code{word-wrap}.}.
- To make more horizontal space, the headlines are shifted by two stars. This
- can be configured by the
- code{org-hide} variable.
- Note that turning on
- code{org-hide-leading-stars} to code{org-adapt-indentation} to
- samp{2.} below shows how this works.
- To globally turn on
- code{org-startup-indented}.
- To turn on indenting for individual files, use
- example
- #+STARTUP: indent
- enumerate
- emph{Indentation of text below headlines}
- example
- *** 3rd level
- more text, now indented
- vindex org-adapt-indentation
- Org adapts indentations with paragraph filling, line wrapping, and structure
- editingcode{org-adapt-indentation}.}.
- vindex org-hide-leading-stars
- * Org can make leading stars invisible. For
- global preference, configure the variable
- code{#+STARTUP} options:
- end example
- With stars hidden, the tree is shown as:
- group
- * Top level headline
- * Second level
- * 3rd level
- ...
- end example
- vindex org-hide
- code{org-hide} face may need tweaking to get the effect
- right. For some black and white combinations,
- item
- dots{}, can also clean up the
- clutter. This removes two stars from each level
- samp{LEVEL=2} has 3 stars,
- code{org-odd-levels-only}. To set this per-file, use either
- one of the following lines:
- end example
- To switch between single and double stars layouts, use
- kbd{M-x org-convert-to-oddeven-levels}.
- node TTY keys
- cindex tty key bindings
- Org provides alternative key bindings for TTY and modern mobile devices that
- cannot handle cursor keys and complex modifier key chords. Some of these
- workarounds may be more cumbersome than necessary. Users should look into
- customizing these further based on their usage needs. For example, the
- normal key{cursor}} for editing timestamp might be better with
- multitable
- item tab tab tab
- item key{TAB}} kbd{C-u tab tab
- kbd{M-tab tab tab key{Esc}
- item key{left}} kbd{C-c C-x L} kbd{L}
- item key{right}} kbd{C-c C-x r} kbd{r} kbd{key{right}}
- kbd{M-S-tab tab tab
- kbd{M-tab tab tab key{Esc}
- item key{up}} kbd{C-c C-x U} kbd{U}
- item key{down}} kbd{C-c C-x d} kbd{ } kbd{key{down}}
- kbd{M-S-tab tab tab
- kbd{S-tab tab tab
- kbd{M-tab tab tab key{Esc}
- item key{RET}} kbd{C-c C-x M} kbd{ }
- item key{left}} kbd{C-c tab tab
- kbd{S-tab key{right}} kbd{ }
- item key{up}} kbd{C-c tab tab
- kbd{S-tab key{down}} kbd{ }
- item key{left}} kbd{C-c C-x tab tab
- kbd{C-S-tab key{right}} kbd{ }
- end multitable
- section Interaction with other packages
- menu
- * Cooperation:: Packages Org cooperates with
- * Conflicts:: Packages that lead to conflicts
- node Cooperation
- table
- cindex
- cindex Gillespie, Dave
- file{calc.el} by Dave Gillespie
- Org uses the Calc package for tables to implement spreadsheet functionality
- (
- xref{Embedded Mode, , Embedded Mode, calc, GNU Emacs Calc Manual}.
- file{constants.el} by Carsten Dominik
- file{constants.el}
- vindex org-table-formula-constants
- Org can use names for constants in formulas in tables. Org can also use
- calculation suffixes for units, such as samp{Mega}. For a
- standard collection of such constants, install the
- url{https://staff.fnwi.uva.nl/c.dominik/Tools/}. Org checks if the function
- file{constants.el}.
- file{cdlatex.el} by Carsten Dominik
- file{cdlatex.el}
- LaTeX{} package to efficiently enter
- pxref{CDLaTeX mode}).
- file{imenu.el} by Ake Stenhoff and Lars Lindberg
- file{imenu.el}
- Imenu creates dynamic menus based on an index of items in a file. Org mode
- supports Imenu menus. Enable it with a mode hook as follows:
- end lisp
- code{org-imenu-depth}.
- file{speedbar.el} by Eric M. Ludlam
- file{speedbar.el}
- kbd{<} in the Speedbar frame tweaks the
- agenda commands to that file or to a subtree.
- file{table.el}
- file{table.el} by Takaaki Ota
- cindex table editor,
- cindex
- cindex Ota, Takaaki
- Complex ASCII tables with automatic line wrapping, column- and row-spanning,
- and alignment can be created using the Emacs table package by Takaaki Ota.
- Org mode recognizes such tables and export them properly.
- samp{src} code
- blocks. Because of interference with other Org mode functionality, Takaaki
- Ota tables cannot be edited directly in the Org buffer.
- kbd
- file{table.el} table. Works when the cursor is in a table.el table.
- orgcmd{C-c ~,org-table-create-with-table.el}
- Insert a
- file{table.el} format and the Org mode
- format. See the documentation string of the command
- end table
- node Conflicts
- table
- cindex
- vindex org-support-shift-select
- In Emacs,
- kbd{S-
- kbd{S-
- code{org-support-shift-select} for customization. Org mode
- accommodates shift selection by (i) making it available outside of the
- special contexts where special commands apply, and (ii) extending an
- existing active region even if the cursor moves across a special context.
- file{CUA.el} by Kim. F. Storm
- file{CUA.el}
- vindex org-replace-disputed-keys
- Org key bindings conflict with
- code{org-replace-disputed-keys}. When set, Org moves the following key
- bindings in Org files, and in the agenda buffer (but not during date
- selection).
- result{} M-p S-DOWN
- result{} M-- S-RIGHT
- result{} M-S-- C-S-RIGHT
- end example
- code{org-disputed-keys}.
- file{ecomplete.el} by Lars Magne Ingebrigtsen
- cindex
- emph{not} follow the advice to automagically
- turn on Orgtbl mode in message buffers (see
- item
- cindex
- file{filladapt.el}
- and Org mode, so a safe thing to do is to disable filladapt like this:
- end lisp
- file{yasnippet.el}
- file{yasnippet.el}
- The way Org mode binds the code{[tab]} instead of
- lisp
- (add-hook 'org-mode-hook
- (lambda ()
- (setq-local yas/trigger-key [tab])
- (define-key yas/keymap [tab] 'yas/next-field-or-maybe-expand)))
- lisp
- (defun yas/org-very-safe-expand ()
- (let ((yas/fallback-behavior 'return-nil)) (yas/expand)))
- lisp
- (add-hook 'org-mode-hook
- (lambda ()
- (make-variable-buffer-local 'yas/trigger-key)
- (setq yas/trigger-key [tab])
- (add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand)
- (define-key yas/keymap [tab] 'yas/next-field)))
- item
- cindex
- kbd{S-<cursor>} keys, so everything written
- in the paragraph above about CUA mode also applies here. If you want make
- the windmove function active in locations where Org mode does not have
- special functionality on key{cursor}}, add this to your
- configuration:
- end lisp
- file{viper.el} by Michael Kifer
- file{viper.el}
- kbd{C-c /} and therefore makes this key not access the
- corresponding Org mode command
- code{viper-vi-global-user-map} with
- end lisp
- node org-crypt
- cindex
- cindex
- samp{:crypt:} tag will be automatically
- be encrypted when the file is saved. To use a different tag, customize the
- lisp
- (require 'org-crypt)
- (org-crypt-use-before-save-magic)
- (setq org-tags-exclude-from-inheritance (quote ("crypt")))
- (setq org-crypt-key nil)
- ;; GPG key to use for encryption
- ;; Either the Key ID or set to nil to use symmetric encryption.
- (setq auto-save-default nil)
- ;; Auto-saving does not cooperate with org-crypt.el: so you need
- ;; to turn it off if you plan to use org-crypt.el quite often.
- ;; Otherwise, you'll get an (annoying) message each time you
- ;; start Org.
- ;; To turn it off only locally, you can insert this:
- ;;
- ;; # -*- buffer-auto-save-file-name: nil; -*-
- node Hacking
- cindex hacking
- This appendix covers some areas where users can extend the functionality of
- Org.
- LaTeX{} and other programs
- * Dynamic blocks:: Automatically filled blocks
- * Special agenda views:: Customized views
- * Speeding up your agendas:: Tips on how to speed up your agendas
- * Extracting agenda information:: Post-processing of agenda information
- * Using the property API:: Writing programs that use entry properties
- * Using the mapping API:: Mapping over all or selected entries
- node Hooks
- cindex hooks
- Org has a large number of hook variables for adding functionality. This
- appendix illustrates using a few. A complete list of hooks with
- documentation is maintained by the Worg project at
- node Add-on packages
- cindex add-on packages
- Various authors wrote a large number of add-on packages for Org.
- These packages are not part of Emacs, but they are distributed as contributed
- packages with the separate release available at
- file{contrib/README} file in the source code directory for a list of
- contributed files. Worg page with more information is at:
- node Adding hyperlink types
- cindex hyperlinks, adding new types
- Org has many built-in hyperlink types (
- file{org-man.el}, shows the
- process of adding Org links to Unix man pages, which look like this:
- lisp
- ;;; org-man.el - Support for links to manpages in Org
- (require 'org)
- (org-add-link-type "man" 'org-man-open)
- (add-hook 'org-store-link-functions 'org-man-store-link)
- (defcustom org-man-command 'man
- "The Emacs command to be used to display a man page."
- :group 'org-link
- :type '(choice (const man) (const woman)))
- (defun org-man-open (path)
- "Visit the manpage on PATH.
- PATH should be a topic that can be thrown at the man command."
- (funcall org-man-command path))
- (defun org-man-store-link ()
- "Store a link to a manpage."
- (when (memq major-mode '(Man-mode woman-mode))
- ;; This is a man page, we do make this link
- (let* ((page (org-man-get-page-name))
- (link (concat "man:" page))
- (description (format "Manpage for %s" page)))
- (org-store-link-props
- :type "man"
- :link link
- :description description))))
- (defun org-man-get-page-name ()
- "Extract the page name from the buffer name."
- ;; This works for both `Man-mode' and `woman-mode'.
- (if (string-match " \\(\\S-+\\)\\*" (buffer-name))
- (match-string 1 (buffer-name))
- (error "Cannot create link to this man page")))
- (provide 'org-man)
- ;;; org-man.el ends here
- noindent
- To activate links to man pages in Org, enter this in the init file:
- end lisp
- file{org-man.el}:
- item
- First, file{org.el} is loaded.
- code{org-add-link-type} defines a new link type with
- item
- code{org-store-link-functions} that records
- a useful link with the command
- end enumerate
- The rest of the file defines necessary variables and functions. First is the
- customization variable
- code{man} and
- code{org-man-command} to display the man page.
- kbd{C-c l} calls the function
- code{major-mode} is appropriate. If check fails, the function
- returns
- samp{man:} prefix with the man topic. The function then calls
- code{:type} and
- code{:description} property is an optional string that is displayed when the
- function inserts the link in the Org buffer.
- kbd{C-c C-l}. This function should not accept any arguments
- but return the appropriate prefix and complete link string.
- section Adding export back-ends
- code{org-export-define-backend} and
- file{ox-latex.el} for an example of defining a new back-end from scratch,
- and
- code{:menu-entry} keyword. For export
- options specific to this back-end, set the
- code{:translate-alist}
- to an alist of export functions. This alist replaces the parent back-end
- functions.
- For complete documentation, see
- node Context-sensitive commands
- cindex context-sensitive commands, hooks
- vindex org-ctrl-c-ctrl-c-hook
- Org has facilities for building context sensitive commands. Authors of Org
- add-ons can tap into this functionality.
- Some Org commands change depending on the context. The most important
- example of this behavior is the pxref{The very busy C-c C-c
- key}). Other examples are kbd{M-S-cursor}.
- These context sensitive commands work by providing a function that detects
- special context for that add-on and executes functionality appropriate for
- that context.
- section Tables and lists in arbitrary syntax
- cindex lists, in other modes
- LaTeX{}. This would be hard to do in a general way
- without complicated customization nightmares. Moreover, that would take Org
- away from its simplicity roots that Orgtbl has proven. There is, however, an
- alternate approach to accomplishing the same.
- This approach involves implementing a custom
- emph{source table} to produce a table in another
- format. This strategy would keep the excellently working Orgtbl simple and
- isolate complications, if any, confined to the translate function. To add
- more alien table formats, we just add more translate functions. Also the
- burden of developing custom translate functions for new table formats will be
- in the hands of those who know those formats best.
- For an example of how this strategy works, see Orgstruct mode. In that mode,
- Bastien added the ability to use Org's facilities to edit and re-structure
- lists. He did by turning
- LaTeX{} or Texinfo.
- LaTeX{} example:: Step by step, almost a tutorial
- * Translator functions:: Copy and modify
- * Radio lists:: Sending and receiving lists
- node Radio tables
- cindex radio tables
- Radio tables are target locations for translated tables that are not near
- their source. Org finds the target location and inserts the translated
- table.
- The key to finding the target location are the magic words
- example
- noindent
- At the location of source, Org needs a special line to direct Orgtbl to
- translate and to find the target for inserting the translated table. For
- example:
- example
- #+ORGTBL: SEND table_name translation_function arguments...
- noindent
- code{translation_function} is the Lisp function that
- translates. This line, in addition, may also contain alternating key and
- value arguments at the end. The translation function gets these values as a
- property list. A few standard parameters are already recognized and acted
- upon before the translation function is called:
- code
- item :skipcols (n1 n2 ...)
- List of columns to be skipped. First Org automatically discards columns with
- calculation marks and then sends the table to the translator function, which
- then skips columns as specified in
- end table
- itemize
- item
- Place the table in a block comment. For example, in C mode you could wrap
- the table between 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
|