tex.scm 182 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
  3. ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
  4. ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
  5. ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
  6. ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
  7. ;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch>
  8. ;;; Copyright © 2016 Thomas Danckaert <post@thomasdanckaert.be>
  9. ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
  10. ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
  11. ;;;
  12. ;;; This file is part of GNU Guix.
  13. ;;;
  14. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  15. ;;; under the terms of the GNU General Public License as published by
  16. ;;; the Free Software Foundation; either version 3 of the License, or (at
  17. ;;; your option) any later version.
  18. ;;;
  19. ;;; GNU Guix is distributed in the hope that it will be useful, but
  20. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  21. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. ;;; GNU General Public License for more details.
  23. ;;;
  24. ;;; You should have received a copy of the GNU General Public License
  25. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  26. (define-module (gnu packages tex)
  27. #:use-module ((guix licenses) #:prefix license:)
  28. #:use-module (guix packages)
  29. #:use-module (guix download)
  30. #:use-module (guix build-system gnu)
  31. #:use-module (guix build-system perl)
  32. #:use-module (guix build-system trivial)
  33. #:use-module (guix build-system texlive)
  34. #:use-module (guix utils)
  35. #:use-module (guix git-download)
  36. #:use-module (guix svn-download)
  37. #:use-module (gnu packages)
  38. #:use-module (gnu packages autotools)
  39. #:use-module (gnu packages bash)
  40. #:use-module (gnu packages compression)
  41. #:use-module (gnu packages fontutils)
  42. #:use-module (gnu packages gd)
  43. #:use-module (gnu packages ghostscript)
  44. #:use-module (gnu packages gtk)
  45. #:use-module (gnu packages icu4c)
  46. #:use-module (gnu packages image)
  47. #:use-module (gnu packages lua)
  48. #:use-module (gnu packages multiprecision)
  49. #:use-module (gnu packages pdf)
  50. #:use-module (gnu packages perl)
  51. #:use-module (gnu packages pkg-config)
  52. #:use-module (gnu packages python)
  53. #:use-module (gnu packages qt)
  54. #:use-module (gnu packages ruby)
  55. #:use-module (gnu packages shells)
  56. #:use-module (gnu packages base)
  57. #:use-module (gnu packages web)
  58. #:use-module (gnu packages xml)
  59. #:use-module (gnu packages xorg)
  60. #:use-module (gnu packages xdisorg)
  61. #:autoload (gnu packages texinfo) (texinfo)
  62. #:use-module (ice-9 ftw)
  63. #:use-module (ice-9 match)
  64. #:use-module ((srfi srfi-1) #:hide (zip)))
  65. (define texlive-extra-src
  66. (origin
  67. (method url-fetch)
  68. (uri "ftp://tug.org/historic/systems/texlive/2017/texlive-20170524-extra.tar.xz")
  69. (sha256 (base32
  70. "0zvd2zskk78ig114mfj24g15qys41hzqv59fmqpirdbgq9c9gr5g"))))
  71. (define texlive-texmf-src
  72. (origin
  73. (method url-fetch)
  74. (uri "ftp://tug.org/historic/systems/texlive/2017/texlive-20170524-texmf.tar.xz")
  75. (sha256 (base32
  76. "1v69y3kgkbk24f7s4dfkknwd317mqmck5jgpyb35wqgqfy5p0qrz"))))
  77. (define-public texlive-bin
  78. (package
  79. (name "texlive-bin")
  80. (version "20170524")
  81. (source
  82. (origin
  83. (method url-fetch)
  84. (uri (string-append "ftp://tug.org/historic/systems/texlive/2017/"
  85. "texlive-" version "-source.tar.xz"))
  86. (sha256 (base32
  87. "1amjrxyasplv4alfwcxwnw4nrx7dz2ydmddkq16k6hg90i9njq81"))))
  88. (build-system gnu-build-system)
  89. (inputs
  90. `(("texlive-extra-src" ,texlive-extra-src)
  91. ("cairo" ,cairo)
  92. ("fontconfig" ,fontconfig)
  93. ("fontforge" ,fontforge)
  94. ("freetype" ,freetype)
  95. ("gd" ,gd)
  96. ("gmp" ,gmp)
  97. ("ghostscript" ,ghostscript)
  98. ("graphite2" ,graphite2)
  99. ("harfbuzz" ,harfbuzz)
  100. ("icu4c" ,icu4c)
  101. ("libpaper" ,libpaper)
  102. ("libpng" ,libpng)
  103. ("libxaw" ,libxaw)
  104. ("libxt" ,libxt)
  105. ("mpfr" ,mpfr)
  106. ("perl" ,perl)
  107. ("pixman" ,pixman)
  108. ("poppler" ,poppler)
  109. ("potrace" ,potrace)
  110. ("python" ,python-2) ; incompatible with Python 3 (print syntax)
  111. ("ruby" ,ruby)
  112. ("tcsh" ,tcsh)
  113. ("teckit" ,teckit)
  114. ("zlib" ,zlib)
  115. ("zziplib" ,zziplib)))
  116. (native-inputs
  117. `(("pkg-config" ,pkg-config)))
  118. (arguments
  119. `(#:out-of-source? #t
  120. #:configure-flags
  121. `("--disable-native-texlive-build"
  122. "--with-system-cairo"
  123. "--with-system-freetype2"
  124. "--with-system-gd"
  125. "--with-system-gmp"
  126. "--with-system-graphite2"
  127. "--with-system-harfbuzz"
  128. "--with-system-icu"
  129. "--with-system-libgs"
  130. "--with-system-libpaper"
  131. "--with-system-libpng"
  132. "--with-system-mpfr"
  133. "--with-system-pixman"
  134. "--with-system-poppler"
  135. "--with-system-potrace"
  136. "--with-system-teckit"
  137. "--with-system-xpdf"
  138. "--with-system-zlib"
  139. "--with-system-zziplib")
  140. ;; Disable tests on mips64 to cope with a failure of luajiterr.test.
  141. ;; XXX FIXME fix luajit properly on mips64.
  142. #:tests? ,(not (string-prefix? "mips64" (or (%current-target-system)
  143. (%current-system))))
  144. #:phases
  145. (modify-phases %standard-phases
  146. (add-after 'install 'postint
  147. (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
  148. (let* ((out (assoc-ref outputs "out"))
  149. (share (string-append out "/share"))
  150. (texlive-extra (assoc-ref inputs "texlive-extra-src"))
  151. (unpack (assoc-ref %standard-phases 'unpack))
  152. (patch-source-shebangs
  153. (assoc-ref %standard-phases 'patch-source-shebangs)))
  154. ;; Create symbolic links for the latex variants and their
  155. ;; man pages.
  156. (with-directory-excursion (string-append out "/bin/")
  157. (for-each symlink
  158. '("pdftex" "pdftex" "xetex" "luatex")
  159. '("latex" "pdflatex" "xelatex" "lualatex")))
  160. (with-directory-excursion (string-append share "/man/man1/")
  161. (symlink "luatex.1" "lualatex.1"))
  162. ;; Unpack texlive-extra and install tlpkg.
  163. (mkdir "texlive-extra")
  164. (with-directory-excursion "texlive-extra"
  165. (apply unpack (list #:source texlive-extra))
  166. (apply patch-source-shebangs (list #:source texlive-extra))
  167. (system* "mv" "tlpkg" share))))))))
  168. (synopsis "TeX Live, a package of the TeX typesetting system")
  169. (description
  170. "TeX Live provides a comprehensive TeX document production system.
  171. It includes all the major TeX-related programs, macro packages, and fonts
  172. that are free software, including support for many languages around the
  173. world.
  174. This package contains the binaries.")
  175. (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
  176. (home-page "https://www.tug.org/texlive/")))
  177. (define-public texlive-dvips
  178. (package
  179. (name "texlive-dvips")
  180. (version (number->string %texlive-revision))
  181. (source (origin
  182. (method svn-fetch)
  183. (uri (svn-reference
  184. (url (string-append "svn://www.tug.org/texlive/tags/"
  185. %texlive-tag "/Master/texmf-dist/"
  186. "/dvips"))
  187. (revision %texlive-revision)))
  188. (sha256
  189. (base32
  190. "0fcy2hpapbj01ncpjj3v39yhr0jjxb6rm13qaxjjw66s3vydxls1"))))
  191. (build-system trivial-build-system)
  192. (arguments
  193. `(#:modules ((guix build utils))
  194. #:builder
  195. (begin
  196. (use-modules (guix build utils))
  197. (let* ((root (string-append (assoc-ref %outputs "out")
  198. "/share/texmf-dist"))
  199. (dvips (string-append root "/dvips"))
  200. (maps (string-append root "/fonts/map/dvips/tetex"))
  201. (encs (string-append root "/fonts/enc/dvips/base")))
  202. (mkdir-p dvips)
  203. (copy-recursively (assoc-ref %build-inputs "source") dvips)
  204. (mkdir-p maps)
  205. (copy-recursively (assoc-ref %build-inputs "dvips-font-maps") maps)
  206. (mkdir-p encs)
  207. (copy-recursively (assoc-ref %build-inputs "dvips-base-enc") encs)
  208. #t))))
  209. (native-inputs
  210. `(("dvips-font-maps"
  211. ,(origin
  212. (method svn-fetch)
  213. (uri (svn-reference
  214. (url (string-append "svn://www.tug.org/texlive/tags/"
  215. %texlive-tag "/Master/texmf-dist/"
  216. "/fonts/map/dvips/tetex"))
  217. (revision %texlive-revision)))
  218. (sha256
  219. (base32
  220. "100208pg7q6lj7swiq9p9287nn6b64bl62bnlaxpjni9y2kdrqy5"))))
  221. ("dvips-base-enc"
  222. ,(origin
  223. (method svn-fetch)
  224. (uri (svn-reference
  225. (url (string-append "svn://www.tug.org/texlive/tags/"
  226. %texlive-tag "/Master/texmf-dist/"
  227. "/fonts/enc/dvips/base"))
  228. (revision %texlive-revision)))
  229. (sha256
  230. (base32
  231. "1xnf6ms0h87r55kxik4vicwr1907scj789lhqflqns8svvsli5iy"))))))
  232. (home-page "http://www.ctan.org/pkg/dvips")
  233. (synopsis "DVI to PostScript drivers")
  234. (description "This package provides files needed for converting DVI files
  235. to PostScript.")
  236. ;; Various free software licenses apply to individual files.
  237. (license (list license:lppl1.3c+
  238. license:expat
  239. license:lgpl3+))))
  240. (define-public texlive-generic-unicode-data
  241. (package
  242. (name "texlive-generic-unicode-data")
  243. (version (number->string %texlive-revision))
  244. (source (origin
  245. (method svn-fetch)
  246. (uri (svn-reference
  247. (url (string-append "svn://www.tug.org/texlive/tags/"
  248. %texlive-tag "/Master/texmf-dist/"
  249. "/tex/generic/unicode-data"))
  250. (revision %texlive-revision)))
  251. (sha256
  252. (base32
  253. "0ivrhp6jz31pl4z841g4ws41lmvdiwz4sslmhf02inlib79gz6r2"))))
  254. (build-system trivial-build-system)
  255. (arguments
  256. `(#:modules ((guix build utils))
  257. #:builder
  258. (begin
  259. (use-modules (guix build utils))
  260. (let ((target (string-append (assoc-ref %outputs "out")
  261. "/share/texmf-dist/tex/generic/unicode-data")))
  262. (mkdir-p target)
  263. (copy-recursively (assoc-ref %build-inputs "source") target)
  264. #t))))
  265. (home-page "http://www.ctan.org/pkg/unicode-data")
  266. (synopsis "Unicode data and loaders for TeX")
  267. (description "This bundle provides generic access to Unicode Consortium
  268. data for TeX use. It contains a set of text files provided by the Unicode
  269. Consortium which are currently all from Unicode 8.0.0, with the exception of
  270. @code{MathClass.txt} which is not currently part of the Unicode Character
  271. Database. Accompanying these source data are generic TeX loader files
  272. allowing this data to be used as part of TeX runs, in particular in building
  273. format files. Currently there are two loader files: one for general character
  274. set up and one for initializing XeTeX character classes as has been carried
  275. out to date by @code{unicode-letters.tex}. ")
  276. (license license:lppl1.3c+)))
  277. (define-public texlive-generic-dehyph-exptl
  278. (package
  279. (name "texlive-generic-dehyph-exptl")
  280. (version (number->string %texlive-revision))
  281. (source (origin
  282. (method svn-fetch)
  283. (uri (svn-reference
  284. (url (string-append "svn://www.tug.org/texlive/tags/"
  285. %texlive-tag "/Master/texmf-dist/"
  286. "/tex/generic/dehyph-exptl"))
  287. (revision %texlive-revision)))
  288. (sha256
  289. (base32
  290. "1l9wgv99qq0ysvlxqpj4g8bl0dywbzra4g8m2kmpg2fb0i0hczap"))))
  291. (build-system trivial-build-system)
  292. (arguments
  293. `(#:modules ((guix build utils))
  294. #:builder
  295. (begin
  296. (use-modules (guix build utils))
  297. (let ((target (string-append (assoc-ref %outputs "out")
  298. "/share/texmf-dist/tex/generic/dehyph-exptl")))
  299. (mkdir-p target)
  300. (copy-recursively (assoc-ref %build-inputs "source") target)
  301. #t))))
  302. (home-page "http://projekte.dante.de/Trennmuster/WebHome")
  303. (synopsis "Hyphenation patterns for German")
  304. (description "The package provides experimental hyphenation patterns for
  305. the German language, covering both traditional and reformed orthography. The
  306. patterns can be used with packages Babel and hyphsubst from the Oberdiek
  307. bundle.")
  308. ;; Hyphenation patterns are under the Expat license; documentation is
  309. ;; under LPPL.
  310. (license (list license:expat license:lppl))))
  311. (define-public texlive-generic-tex-ini-files
  312. (package
  313. (name "texlive-generic-tex-ini-files")
  314. (version (number->string %texlive-revision))
  315. (source (origin
  316. (method svn-fetch)
  317. (uri (svn-reference
  318. (url (string-append "svn://www.tug.org/texlive/tags/"
  319. %texlive-tag "/Master/texmf-dist/"
  320. "/tex/generic/tex-ini-files"))
  321. (revision %texlive-revision)))
  322. (sha256
  323. (base32
  324. "1wh42n1lmzcvi3g6mm31nm3yd5ha5bl260xqc444jg1m9fdp3wz5"))))
  325. (build-system trivial-build-system)
  326. (arguments
  327. `(#:modules ((guix build utils))
  328. #:builder
  329. (begin
  330. (use-modules (guix build utils))
  331. (let ((target (string-append (assoc-ref %outputs "out")
  332. "/share/texmf-dist/tex/generic/tex-ini-files")))
  333. (mkdir-p target)
  334. (copy-recursively (assoc-ref %build-inputs "source") target)
  335. #t))))
  336. (home-page "http://ctan.org/pkg/tex-ini-files")
  337. (synopsis "Files for creating TeX formats")
  338. (description "This bundle provides a collection of model \".ini\" files
  339. for creating TeX formats. These files are commonly used to introduced
  340. distribution-dependent variations in formats. They are also used to
  341. allow existing format source files to be used with newer engines, for example
  342. to adapt the plain e-TeX source file to work with XeTeX and LuaTeX.")
  343. (license license:public-domain)))
  344. (define-public texlive-generic-hyph-utf8
  345. (package
  346. (name "texlive-generic-hyph-utf8")
  347. (version (number->string %texlive-revision))
  348. (source (origin
  349. (method svn-fetch)
  350. (uri (svn-reference
  351. (url (string-append "svn://www.tug.org/texlive/tags/"
  352. %texlive-tag "/Master/texmf-dist/"
  353. "/tex/generic/hyph-utf8"))
  354. (revision %texlive-revision)))
  355. (sha256
  356. (base32
  357. "0ghizcz7ps16dzfqf66wwg5i181assc6qsm0g7g5dbmp909931vi"))))
  358. (build-system trivial-build-system)
  359. (arguments
  360. `(#:modules ((guix build utils))
  361. #:builder
  362. (begin
  363. (use-modules (guix build utils))
  364. (let ((target (string-append (assoc-ref %outputs "out")
  365. "/share/texmf-dist/tex/generic/hyph-utf8")))
  366. (mkdir-p target)
  367. (copy-recursively (assoc-ref %build-inputs "source") target)
  368. #t))))
  369. (home-page "http://ctan.org/pkg/hyph-utf8")
  370. (synopsis "Hyphenation patterns expressed in UTF-8")
  371. (description "Modern native UTF-8 engines such as XeTeX and LuaTeX need
  372. hyphenation patterns in UTF-8 format, whereas older systems require
  373. hyphenation patterns in the 8-bit encoding of the font in use (such encodings
  374. are codified in the LaTeX scheme with names like OT1, T2A, TS1, OML, LY1,
  375. etc). The present package offers a collection of conversions of existing
  376. patterns to UTF-8 format, together with converters for use with 8-bit fonts in
  377. older systems. Since hyphenation patterns for Knuthian-style TeX systems are
  378. only read at iniTeX time, it is hoped that the UTF-8 patterns, with their
  379. converters, will completely supplant the older patterns.")
  380. ;; Individual files each have their own license. Most of these files are
  381. ;; independent hyphenation patterns.
  382. (license (list license:lppl1.0+
  383. license:lppl1.2+
  384. license:lppl1.3
  385. license:lppl1.3+
  386. license:lppl1.3a+
  387. license:lgpl2.1
  388. license:lgpl2.1+
  389. license:lgpl3+
  390. license:gpl2+
  391. license:gpl3+
  392. license:mpl1.1
  393. license:asl2.0
  394. license:expat
  395. license:bsd-3
  396. license:cc0
  397. license:public-domain
  398. license:wtfpl2))))
  399. (define-public texlive-metafont-base
  400. (package
  401. (name "texlive-metafont-base")
  402. (version (number->string %texlive-revision))
  403. (source (origin
  404. (method svn-fetch)
  405. (uri (svn-reference
  406. (url (string-append "svn://www.tug.org/texlive/tags/"
  407. %texlive-tag "/Master/texmf-dist/"
  408. "/metafont"))
  409. (revision %texlive-revision)))
  410. (sha256
  411. (base32
  412. "1yl4n8cn5xqk2nc22zgzq6ymd7bhm6xx1mz3azip7i3ki4bhb5q5"))))
  413. (build-system gnu-build-system)
  414. (arguments
  415. `(#:tests? #f ; no test target
  416. #:phases
  417. (modify-phases %standard-phases
  418. (delete 'configure)
  419. (replace 'build
  420. (lambda* (#:key inputs #:allow-other-keys)
  421. (let ((cwd (getcwd)))
  422. (setenv "MFINPUTS"
  423. (string-append cwd "/base:"
  424. cwd "/misc:"
  425. cwd "/roex:"
  426. cwd "/feynmf:"
  427. cwd "/mfpic:"
  428. cwd "/config")))
  429. (mkdir "build")
  430. (with-directory-excursion "build"
  431. (zero? (system* "inimf" "mf.mf")))))
  432. (replace 'install
  433. (lambda* (#:key outputs #:allow-other-keys)
  434. (let* ((out (assoc-ref outputs "out"))
  435. (base (string-append out "/share/texmf-dist/web2c"))
  436. (mf (string-append out "/share/texmf-dist/metafont/base")))
  437. (mkdir-p base)
  438. (mkdir-p mf)
  439. (install-file "build/mf.base" base)
  440. (copy-recursively "base" mf)
  441. #t))))))
  442. (native-inputs
  443. `(("texlive-bin" ,texlive-bin)))
  444. (home-page "http://www.ctan.org/pkg/metafont")
  445. (synopsis "Metafont base files")
  446. (description "This package provides the Metafont base files needed to
  447. build fonts using the Metafont system.")
  448. (license license:knuth)))
  449. (define-public texlive-fontname
  450. (package
  451. (name "texlive-fontname")
  452. (version (number->string %texlive-revision))
  453. (source (origin
  454. (method svn-fetch)
  455. (uri (svn-reference
  456. (url (string-append "svn://www.tug.org/texlive/tags/"
  457. %texlive-tag "/Master/texmf-dist/"
  458. "/fonts/map/fontname"))
  459. (revision %texlive-revision)))
  460. (file-name (string-append name "-" version ".tar.gz"))
  461. (sha256
  462. (base32
  463. "0cssbzcx15221dynp5sii72qh4l18mwkr14n8w1xb19j8pbaqasz"))))
  464. (build-system trivial-build-system)
  465. (arguments
  466. `(#:modules ((guix build utils))
  467. #:builder
  468. (begin
  469. (use-modules (guix build utils))
  470. (let ((target (string-append (assoc-ref %outputs "out")
  471. "/share/texmf-dist/fonts/map/fontname")))
  472. (mkdir-p target)
  473. (copy-recursively (assoc-ref %build-inputs "source") target)
  474. #t))))
  475. (home-page "https://www.ctan.org/pkg/fontname")
  476. (synopsis "Scheme for naming fonts in TeX")
  477. (description "This is Fontname, a naming scheme for (the base part of)
  478. external TeX font filenames. This makes at most eight-character names
  479. from (almost) arbitrarily complex font names, thus helping portability of TeX
  480. documents.")
  481. (license license:public-domain)))
  482. (define-public texlive-fonts-cm
  483. (package
  484. (name "texlive-fonts-cm")
  485. (version (number->string %texlive-revision))
  486. (source (origin
  487. (method svn-fetch)
  488. (uri (svn-reference
  489. (url (string-append "svn://www.tug.org/texlive/tags/"
  490. %texlive-tag "/Master/texmf-dist/"
  491. "/fonts/source/public/cm"))
  492. (revision %texlive-revision)))
  493. (sha256
  494. (base32
  495. "045k5b9rdmbxpy1a3006l1x96z1rd18vg3cwrvnld9bqybw5qz44"))))
  496. (build-system gnu-build-system)
  497. (arguments
  498. `(#:modules ((guix build gnu-build-system)
  499. (guix build utils)
  500. (srfi srfi-1)
  501. (srfi srfi-26))
  502. #:tests? #f ; no tests
  503. #:phases
  504. (modify-phases %standard-phases
  505. (delete 'configure)
  506. (replace 'build
  507. (lambda* (#:key inputs #:allow-other-keys)
  508. (let ((mf (assoc-ref inputs "texlive-metafont-base")))
  509. ;; Tell mf where to find mf.base
  510. (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
  511. ;; Tell mf where to look for source files
  512. (setenv "MFINPUTS"
  513. (string-append (getcwd) ":"
  514. mf "/share/texmf-dist/metafont/base")))
  515. (mkdir "build")
  516. (every (lambda (font)
  517. (format #t "building font ~a\n" font)
  518. (zero? (system* "mf" "-progname=mf"
  519. "-output-directory=build"
  520. (string-append "\\"
  521. "mode:=ljfour; "
  522. "mag:=1; "
  523. "batchmode; "
  524. "input "
  525. (basename font ".mf")))))
  526. (find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))))
  527. (replace 'install
  528. (lambda* (#:key outputs #:allow-other-keys)
  529. (let* ((out (assoc-ref outputs "out"))
  530. (tfm (string-append
  531. out "/share/texmf-dist/fonts/tfm/public/cm"))
  532. (mf (string-append
  533. out "/share/texmf-dist/fonts/source/public/cm")))
  534. (for-each (cut install-file <> tfm)
  535. (find-files "build" "\\.*"))
  536. (for-each (cut install-file <> mf)
  537. (find-files "." "\\.mf"))
  538. #t))))))
  539. (native-inputs
  540. `(("texlive-bin" ,texlive-bin)
  541. ("texlive-metafont-base" ,texlive-metafont-base)))
  542. (home-page "http://www.ctan.org/pkg/cm")
  543. (synopsis "Computer Modern fonts for TeX")
  544. (description "This package provides the Computer Modern fonts by Donald
  545. Knuth. The Computer Modern font family is a large collection of text,
  546. display, and mathematical fonts in a range of styles, based on Monotype Modern
  547. 8A.")
  548. (license license:knuth)))
  549. (define-public texlive-fonts-knuth-lib
  550. (package
  551. (name "texlive-fonts-knuth-lib")
  552. (version (number->string %texlive-revision))
  553. (source (origin
  554. (method svn-fetch)
  555. (uri (svn-reference
  556. (url (string-append "svn://www.tug.org/texlive/tags/"
  557. %texlive-tag "/Master/texmf-dist/"
  558. "/fonts/source/public/knuth-lib"))
  559. (revision %texlive-revision)))
  560. (sha256
  561. (base32
  562. "0in9aqyi8jkyf9d16z0li50z5fpwj1iwgwm83gmvwqcf7chfs04y"))))
  563. (build-system gnu-build-system)
  564. (arguments
  565. `(#:modules ((guix build gnu-build-system)
  566. (guix build utils)
  567. (srfi srfi-26))
  568. #:tests? #f ; no tests
  569. #:phases
  570. (modify-phases %standard-phases
  571. (delete 'configure)
  572. (replace 'build
  573. (lambda* (#:key inputs #:allow-other-keys)
  574. (let ((mf (assoc-ref inputs "texlive-metafont-base")))
  575. ;; Tell mf where to find mf.base
  576. (setenv "MFBASES"
  577. (string-append mf "/share/texmf-dist/web2c"))
  578. ;; Tell mf where to look for source files
  579. (setenv "MFINPUTS"
  580. (string-append (getcwd) ":"
  581. mf "/share/texmf-dist/metafont/base")))
  582. (mkdir "build")
  583. (zero? (system* "mf" "-progname=mf"
  584. "-output-directory=build"
  585. (string-append "\\"
  586. "mode:=ljfour; "
  587. "mag:=1; "
  588. "batchmode; "
  589. "input manfnt")))))
  590. (replace 'install
  591. (lambda* (#:key outputs #:allow-other-keys)
  592. (let* ((out (assoc-ref outputs "out"))
  593. (tfm (string-append
  594. out "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
  595. (mf (string-append
  596. out "/share/texmf-dist/fonts/source/public/knuth-lib")))
  597. (for-each (cut install-file <> tfm)
  598. (find-files "build" "\\.*"))
  599. (for-each (cut install-file <> mf)
  600. (find-files "." "\\.mf"))
  601. #t))))))
  602. (native-inputs
  603. `(("texlive-bin" ,texlive-bin)
  604. ("texlive-metafont-base" ,texlive-metafont-base)))
  605. (home-page "https://www.ctan.org/pkg/knuth-lib")
  606. (synopsis "Small library of METAFONT sources")
  607. (description "This is a collection of core TeX and METAFONT macro files
  608. from Donald Knuth, including the plain format, plain base, and the MF logo
  609. fonts.")
  610. (license license:knuth)))
  611. (define-public texlive-fonts-latex
  612. (package
  613. (name "texlive-fonts-latex")
  614. (version (number->string %texlive-revision))
  615. (source (origin
  616. (method svn-fetch)
  617. (uri (svn-reference
  618. (url (string-append "svn://www.tug.org/texlive/tags/"
  619. %texlive-tag "/Master/texmf-dist/"
  620. "/fonts/source/public/latex-fonts"))
  621. (revision %texlive-revision)))
  622. (sha256
  623. (base32
  624. "0ypsm4xv9cw0jckk2qc7gi9hcmhf31mrg56pz3llyx3yd9vq2lps"))))
  625. (build-system gnu-build-system)
  626. (arguments
  627. `(#:modules ((guix build gnu-build-system)
  628. (guix build utils)
  629. (srfi srfi-1)
  630. (srfi srfi-26))
  631. #:tests? #f ; no tests
  632. #:phases
  633. (modify-phases %standard-phases
  634. (delete 'configure)
  635. (replace 'build
  636. (lambda* (#:key inputs #:allow-other-keys)
  637. (let ((mf (assoc-ref inputs "texlive-metafont-base")))
  638. ;; Tell mf where to find mf.base
  639. (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
  640. ;; Tell mf where to look for source files
  641. (setenv "MFINPUTS"
  642. (string-append (getcwd) ":"
  643. mf "/share/texmf-dist/metafont/base:"
  644. (assoc-ref inputs "texlive-fonts-cm")
  645. "/share/texmf-dist/fonts/source/public/cm")))
  646. (mkdir "build")
  647. (every (lambda (font)
  648. (format #t "building font ~a\n" font)
  649. (zero? (system* "mf" "-progname=mf"
  650. "-output-directory=build"
  651. (string-append "\\"
  652. "mode:=ljfour; "
  653. "mag:=1; "
  654. "batchmode; "
  655. "input " font))))
  656. '("icmcsc10" "icmex10" "icmmi8" "icmsy8" "icmtt8"
  657. "ilasy8" "ilcmss8" "ilcmssb8" "ilcmssi8"
  658. "lasy5" "lasy6" "lasy7" "lasy8" "lasy9" "lasy10" "lasyb10"
  659. "lcircle10" "lcirclew10" "lcmss8" "lcmssb8" "lcmssi8"
  660. "line10" "linew10"))))
  661. (replace 'install
  662. (lambda* (#:key outputs #:allow-other-keys)
  663. (let* ((out (assoc-ref outputs "out"))
  664. (tfm (string-append
  665. out "/share/texmf-dist/fonts/tfm/public/latex-fonts"))
  666. (mf (string-append
  667. out "/share/texmf-dist/fonts/source/public/latex-fonts")))
  668. (for-each (cut install-file <> tfm)
  669. (find-files "build" "\\.*"))
  670. (for-each (cut install-file <> mf)
  671. (find-files "." "\\.mf"))
  672. #t))))))
  673. (native-inputs
  674. `(("texlive-bin" ,texlive-bin)
  675. ("texlive-metafont-base" ,texlive-metafont-base)
  676. ("texlive-fonts-cm" ,texlive-fonts-cm)))
  677. (home-page "http://www.ctan.org/pkg/latex-fonts")
  678. (synopsis "Collection of fonts used in LaTeX distributions")
  679. (description "This is a collection of fonts for use with standard LaTeX
  680. packages and classes. It includes invisible fonts (for use with the slides
  681. class), line and circle fonts (for use in the picture environment) and LaTeX
  682. symbol fonts.")
  683. (license license:lppl1.2+)))
  684. (define-public texlive-fonts-amsfonts
  685. (package
  686. (name "texlive-fonts-amsfonts")
  687. (version (number->string %texlive-revision))
  688. (source (origin
  689. (method svn-fetch)
  690. (uri (svn-reference
  691. (url (string-append "svn://www.tug.org/texlive/tags/"
  692. %texlive-tag "/Master/texmf-dist/"
  693. "/fonts/source/public/amsfonts"))
  694. (revision %texlive-revision)))
  695. (sha256
  696. (base32
  697. "07h20rvpbdb4k72hzmjkyb29426zr9wxsfp6yd4ajbbpd3vx8grb"))))
  698. (build-system gnu-build-system)
  699. (arguments
  700. `(#:modules ((guix build gnu-build-system)
  701. (guix build utils)
  702. (srfi srfi-1)
  703. (srfi srfi-26))
  704. #:tests? #f ; no tests
  705. #:phases
  706. (modify-phases %standard-phases
  707. (delete 'configure)
  708. (replace 'build
  709. (lambda* (#:key inputs #:allow-other-keys)
  710. (let ((mf (assoc-ref inputs "texlive-metafont-base"))
  711. (cwd (getcwd)))
  712. ;; Tell mf where to find mf.base
  713. (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
  714. ;; Tell mf where to look for source files
  715. (setenv "MFINPUTS"
  716. (string-append cwd ":"
  717. cwd "/cmextra:"
  718. cwd "/cyrillic:"
  719. cwd "/dummy:"
  720. cwd "/symbols:"
  721. mf "/share/texmf-dist/metafont/base:"
  722. (assoc-ref inputs "texlive-fonts-cm")
  723. "/share/texmf-dist/fonts/source/public/cm")))
  724. (mkdir "build")
  725. (every (lambda (font)
  726. (format #t "building font ~a\n" (basename font ".mf"))
  727. (with-directory-excursion (dirname font)
  728. (zero? (system* "mf" "-progname=mf"
  729. "-output-directory=../build"
  730. (string-append "\\"
  731. "mode:=ljfour; "
  732. "mag:=1; "
  733. "nonstopmode; "
  734. "input "
  735. (getcwd) "/"
  736. (basename font ".mf"))))))
  737. (find-files "." "[0-9]+\\.mf$"))))
  738. (replace 'install
  739. (lambda* (#:key outputs #:allow-other-keys)
  740. (let* ((out (assoc-ref outputs "out"))
  741. (tfm (string-append
  742. out "/share/texmf-dist/fonts/tfm/public/amsfonts"))
  743. (mf (string-append
  744. out "/share/texmf-dist/fonts/source/public/amsfonts")))
  745. (for-each (cut install-file <> tfm)
  746. (find-files "build" "\\.*"))
  747. (for-each (cut install-file <> mf)
  748. (find-files "." "\\.mf"))
  749. #t))))))
  750. (native-inputs
  751. `(("texlive-fonts-cm" ,texlive-fonts-cm)
  752. ("texlive-metafont-base" ,texlive-metafont-base)
  753. ("texlive-bin" ,texlive-bin)))
  754. (home-page "http://www.ctan.org/pkg/amsfonts")
  755. (synopsis "TeX fonts from the American Mathematical Society")
  756. (description
  757. "This package provides an extended set of fonts for use in mathematics,
  758. including: extra mathematical symbols; blackboard bold letters (uppercase
  759. only); fraktur letters; subscript sizes of bold math italic and bold Greek
  760. letters; subscript sizes of large symbols such as sum and product; added sizes
  761. of the Computer Modern small caps font; cyrillic fonts (from the University of
  762. Washington); Euler mathematical fonts. All fonts are provided as Adobe Type 1
  763. files, and all except the Euler fonts are provided as Metafont source. The
  764. distribution also includes the canonical Type 1 versions of the Computer
  765. Modern family of fonts. The Euler fonts are supported by separate packages;
  766. details can be found in the documentation.")
  767. (license license:silofl1.1)))
  768. (define-public texlive-latex-amsfonts
  769. (package
  770. (name "texlive-latex-amsfonts")
  771. (version (number->string %texlive-revision))
  772. (source (origin
  773. (method svn-fetch)
  774. (uri (texlive-ref "latex" "amsfonts"))
  775. (sha256
  776. (base32
  777. "0slzfv5h2m03b2xvm2sasznz4azh6rgi069z161dja3l8rln79hm"))))
  778. (build-system texlive-build-system)
  779. (arguments '(#:tex-directory "latex/amsfonts"))
  780. (native-inputs
  781. `(("texlive-fonts-cm" ,texlive-fonts-cm)
  782. ("texlive-metafont-base" ,texlive-metafont-base)))
  783. (home-page "http://www.ctan.org/pkg/amsfonts")
  784. (synopsis "TeX fonts from the American Mathematical Society")
  785. (description
  786. "This package provides basic LaTeX support for the symbol fonts provides
  787. by the amsfonts package. It provides @code{amsfonts.sty}, with names of
  788. individual symbols defined in @code{amssymb.sty}.")
  789. (license license:silofl1.1)))
  790. ;; This provides etex.src which is needed to build various formats, including
  791. ;; luatex.fmt and pdflatex.fmt
  792. (define-public texlive-tex-plain
  793. (package
  794. (name "texlive-tex-plain")
  795. (version (number->string %texlive-revision))
  796. (source (origin
  797. (method svn-fetch)
  798. (uri (svn-reference
  799. (url (string-append "svn://www.tug.org/texlive/tags/"
  800. %texlive-tag "/Master/texmf-dist/"
  801. "/tex/plain"))
  802. (revision %texlive-revision)))
  803. (sha256
  804. (base32
  805. "0mjgl3gscn3ps29yjambz1j9fg81ynnncb96vpprwx4xsijhsns0"))))
  806. (build-system trivial-build-system)
  807. (arguments
  808. `(#:modules ((guix build utils))
  809. #:builder
  810. (begin
  811. (use-modules (guix build utils))
  812. (let ((target (string-append (assoc-ref %outputs "out")
  813. "/share/texmf-dist/tex/plain")))
  814. (mkdir-p target)
  815. (copy-recursively (assoc-ref %build-inputs "source") target)
  816. #t))))
  817. (home-page "https://www.ctan.org/pkg/plain")
  818. (synopsis "Plain TeX format and supporting files")
  819. (description
  820. "Contains files used to build the Plain TeX format, as described in the
  821. TeXbook, together with various supporting files (some also discussed in the
  822. book).")
  823. (license license:knuth)))
  824. (define-public texlive-latex-base
  825. (let ((texlive-dir
  826. (lambda (dir hash)
  827. (origin
  828. (method svn-fetch)
  829. (uri (svn-reference
  830. (url (string-append "svn://www.tug.org/texlive/tags/"
  831. %texlive-tag "/Master/texmf-dist/"
  832. dir))
  833. (revision %texlive-revision)))
  834. (sha256 (base32 hash))))))
  835. (package
  836. (name "texlive-latex-base")
  837. (version (number->string %texlive-revision))
  838. (source (origin
  839. (method svn-fetch)
  840. (uri (texlive-ref "latex" "base"))
  841. (sha256
  842. (base32
  843. "1h9pir2hz6i9avc4lrl733p3zf4rpkg8537x1zdbhs91hvhikw9k"))))
  844. (build-system gnu-build-system)
  845. (arguments
  846. `(#:modules ((guix build gnu-build-system)
  847. (guix build utils)
  848. (ice-9 match)
  849. (srfi srfi-1)
  850. (srfi srfi-26))
  851. #:tests? #f ; no tests
  852. #:phases
  853. (modify-phases %standard-phases
  854. (delete 'configure)
  855. (replace 'build
  856. (lambda* (#:key inputs #:allow-other-keys)
  857. ;; Find required fonts
  858. (setenv "TFMFONTS"
  859. (string-append (assoc-ref inputs "texlive-fonts-cm")
  860. "/share/texmf-dist/fonts/tfm/public/cm:"
  861. (assoc-ref inputs "texlive-fonts-latex")
  862. "/share/texmf-dist/fonts/tfm/public/latex-fonts:"
  863. (assoc-ref inputs "texlive-fonts-knuth-lib")
  864. "/share/texmf-dist/fonts/tfm/public/knuth-lib"))
  865. (setenv "TEXINPUTS"
  866. (string-append
  867. (getcwd) ":"
  868. (getcwd) "/build:"
  869. (string-join
  870. (append-map (match-lambda
  871. ((_ . dir)
  872. (find-files dir
  873. (lambda (_ stat)
  874. (eq? 'directory (stat:type stat)))
  875. #:directories? #t
  876. #:stat stat)))
  877. inputs)
  878. ":")))
  879. ;; Create an empty texsys.cfg, because latex.ltx wants to include
  880. ;; it. This file must exist and it's fine if it's empty.
  881. (with-output-to-file "texsys.cfg"
  882. (lambda _ (format #t "%")))
  883. (mkdir "build")
  884. (mkdir "web2c")
  885. (and (zero? (system* "luatex" "-ini" "-interaction=batchmode"
  886. "-output-directory=build"
  887. "unpack.ins"))
  888. (zero? (system* "tex" "-ini" "-interaction=batchmode"
  889. "-output-directory=web2c"
  890. "tex.ini"))
  891. ;; LaTeX, pdfetex/pdftex, and XeTeX require e-TeX, which
  892. ;; is enabled only in extended mode (activated with a
  893. ;; leading asterisk). We should not use luatex here,
  894. ;; because that would make the generated format files
  895. ;; incompatible with any other TeX engine.
  896. (every
  897. (lambda (format)
  898. (zero? (system* "latex" "-ini" "-interaction=batchmode"
  899. "-output-directory=web2c"
  900. "-translate-file=cp227.tcx"
  901. (string-append "*" format ".ini"))))
  902. '("latex"
  903. "pdflatex"
  904. "pdfetex"))
  905. (every
  906. (lambda (format)
  907. (zero? (system* format "-ini" "-interaction=batchmode"
  908. "-output-directory=web2c"
  909. (string-append "*" format ".ini"))))
  910. '("xetex"
  911. "xelatex"))
  912. (every
  913. (lambda (format)
  914. (zero? (system* "luatex" "-ini" "-interaction=batchmode"
  915. "-output-directory=web2c"
  916. (string-append format ".ini"))))
  917. '("dviluatex" "dvilualatex" "luatex" "lualatex")))))
  918. (replace 'install
  919. (lambda* (#:key outputs #:allow-other-keys)
  920. (let* ((out (assoc-ref outputs "out"))
  921. (target (string-append
  922. out "/share/texmf-dist/tex/latex/base"))
  923. (web2c (string-append
  924. out "/share/texmf-dist/web2c")))
  925. (mkdir-p target)
  926. (mkdir-p web2c)
  927. (for-each delete-file (find-files "." "\\.(log|aux)$"))
  928. (for-each (cut install-file <> target)
  929. (find-files "build" ".*"))
  930. (for-each (cut install-file <> web2c)
  931. (find-files "web2c" ".*"))
  932. ;; pdftex is really just the same as pdfetex, but since it
  933. ;; doesn't have its own format file, we need to copy it.
  934. (copy-file "web2c/pdfetex.fmt"
  935. (string-append web2c "/pdftex.fmt"))
  936. #t))))))
  937. (native-inputs
  938. `(("texlive-bin" ,texlive-bin)
  939. ("texlive-generic-unicode-data" ,texlive-generic-unicode-data)
  940. ("texlive-generic-dehyph-exptl" ,texlive-generic-dehyph-exptl)
  941. ("texlive-generic-tex-ini-files" ,texlive-generic-tex-ini-files)
  942. ("texlive-latex-latexconfig"
  943. ,(texlive-dir "tex/latex/latexconfig/"
  944. "1zb3j49cj8p75yph6c8iysjp7qbdvghwf0mn9j0l7qq3qkbz2xaf"))
  945. ("texlive-generic-hyph-utf8" ,texlive-generic-hyph-utf8)
  946. ("texlive-generic-hyphen"
  947. ,(texlive-dir "tex/generic/hyphen/"
  948. "0xim36wybw2625yd0zwlp9m2c2xrcybw58gl4rih9nkph0wqwwhd"))
  949. ("texlive-generic-ruhyphen"
  950. ,(texlive-dir "tex/generic/ruhyphen/"
  951. "14rjkpl4zkjqs13rcf9kcd24mn2kx7i1jbdwxq8ds94bi66ylzsd"))
  952. ("texlive-generic-ukrhyph"
  953. ,(texlive-dir "tex/generic/ukrhyph/"
  954. "1cfwdg2rhbayl3w0x1xqd36d45zbc96f029myp13s7cb6kbmbppv"))
  955. ("texlive-generic-config"
  956. ,(texlive-dir "tex/generic/config/"
  957. "19vj088p4kkp6xll0141m4kl6ssgdzhs3g10i232khb07aqiag8s"))
  958. ("texlive-tex-plain" ,texlive-tex-plain)
  959. ("texlive-fonts-cm" ,texlive-fonts-cm)
  960. ("texlive-fonts-latex" ,texlive-fonts-latex)
  961. ("texlive-fonts-knuth-lib" ,texlive-fonts-knuth-lib)))
  962. (home-page "http://www.ctan.org/pkg/latex-base")
  963. (synopsis "Base sources of LaTeX")
  964. (description
  965. "This bundle comprises the source of LaTeX itself, together with several
  966. packages which are considered \"part of the kernel\". This bundle, together
  967. with the required packages, constitutes what every LaTeX distribution should
  968. contain.")
  969. (license license:lppl1.3c+))))
  970. (define-public texlive-latex-filecontents
  971. (package
  972. (name "texlive-latex-filecontents")
  973. (version (number->string %texlive-revision))
  974. (source (origin
  975. (method svn-fetch)
  976. (uri (texlive-ref "latex" "filecontents"))
  977. (sha256
  978. (base32
  979. "0swkbxv8vg0yizadfnvrwjb4cj0pn34v9wm6v7wqq903fdav7k7q"))))
  980. (build-system texlive-build-system)
  981. (arguments '(#:tex-directory "latex/filecontents"))
  982. (home-page "http://www.ctan.org/pkg/filecontents")
  983. (synopsis "Extended filecontents and filecontents* environments")
  984. (description
  985. "LaTeX2e's @code{filecontents} and @code{filecontents*} environments
  986. enable a LaTeX source file to generate external files as it runs through
  987. LaTeX. However, there are two limitations of these environments: they refuse
  988. to overwrite existing files, and they can only be used in the preamble of a
  989. document. The filecontents package removes these limitations, letting you
  990. overwrite existing files and letting you use @code{filecontents} /
  991. @code{filecontents*} anywhere.")
  992. (license license:lppl1.3c+)))
  993. (define-public texlive-generic-ifxetex
  994. (package
  995. (name "texlive-generic-ifxetex")
  996. (version (number->string %texlive-revision))
  997. (source (origin
  998. (method svn-fetch)
  999. (uri (texlive-ref "generic" "ifxetex"))
  1000. (sha256
  1001. (base32
  1002. "0w2xj7n0szavj329kds09q626szkc378p3w0sk022q0ln4ksz86d"))))
  1003. (build-system texlive-build-system)
  1004. (arguments
  1005. '(#:tex-directory "generic/ifxetex"
  1006. #:tex-format "xelatex"))
  1007. (inputs
  1008. `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
  1009. (home-page "http://www.ctan.org/pkg/ifxetex")
  1010. (synopsis "Am I running under XeTeX?")
  1011. (description
  1012. "This is a simple package which provides an @code{\\ifxetex} conditional,
  1013. so that other code can determine that it is running under XeTeX. The package
  1014. requires the e-TeX extensions to the TeX primitive set.")
  1015. (license license:lppl1.3c+)))
  1016. (define-public texlive-generic-epsf
  1017. (package
  1018. (name "texlive-generic-epsf")
  1019. (version (number->string %texlive-revision))
  1020. (source (origin
  1021. (method svn-fetch)
  1022. (uri (svn-reference
  1023. (url (string-append "svn://www.tug.org/texlive/tags/"
  1024. %texlive-tag "/Master/texmf-dist/"
  1025. "/tex/generic/epsf"))
  1026. (revision %texlive-revision)))
  1027. (sha256
  1028. (base32
  1029. "14w3j81ympyvg8hkk9i1xgr8a0gfnfsb2ki8qqsk5pa051za1xcy"))))
  1030. (build-system trivial-build-system)
  1031. (arguments
  1032. `(#:modules ((guix build utils))
  1033. #:builder
  1034. (begin
  1035. (use-modules (guix build utils))
  1036. (let ((target (string-append (assoc-ref %outputs "out")
  1037. "/share/texmf-dist/tex/generic/epfs")))
  1038. (mkdir-p target)
  1039. (copy-recursively (assoc-ref %build-inputs "source") target)
  1040. #t))))
  1041. (home-page "http://www.ctan.org/pkg/epsf")
  1042. (synopsis "Simple macros for EPS inclusion")
  1043. (description
  1044. "This package provides the original (and now obsolescent) graphics
  1045. inclusion macros for use with dvips, still widely used by Plain TeX users (in
  1046. particular). For LaTeX users, the package is nowadays (rather strongly)
  1047. deprecated in favour of the more sophisticated standard LaTeX latex-graphics
  1048. bundle of packages. (The latex-graphics bundle is also available to Plain TeX
  1049. users, via its Plain TeX version.)")
  1050. (license license:public-domain)))
  1051. (define-public texlive-latex-fancyvrb
  1052. (package
  1053. (name "texlive-latex-fancyvrb")
  1054. (version (number->string %texlive-revision))
  1055. (source (origin
  1056. (method svn-fetch)
  1057. (uri (texlive-ref "latex" "fancyvrb"))
  1058. (sha256
  1059. (base32
  1060. "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
  1061. (build-system texlive-build-system)
  1062. (arguments
  1063. '(#:tex-directory "latex/fancyvrb"
  1064. ;; We exclude "fvrb-ex" to avoid a dependency on texlive-luaotfload and
  1065. ;; thus texlive-luatex-lualibs.
  1066. #:build-targets '("fancyvrb.ins")))
  1067. (home-page "http://www.ctan.org/pkg/fancyvrb")
  1068. (synopsis "Sophisticated verbatim text")
  1069. (description
  1070. "This package provides tools for the flexible handling of verbatim text
  1071. including: verbatim commands in footnotes; a variety of verbatim environments
  1072. with many parameters; ability to define new customized verbatim environments;
  1073. save and restore verbatim text and environments; write and read files in
  1074. verbatim mode; build \"example\" environments (showing both result and
  1075. verbatim source).")
  1076. (license license:lppl1.0+)))
  1077. (define-public texlive-latex-graphics
  1078. (package
  1079. (name "texlive-latex-graphics")
  1080. (version (number->string %texlive-revision))
  1081. (source (origin
  1082. (method svn-fetch)
  1083. (uri (texlive-ref "latex" "graphics"))
  1084. (sha256
  1085. (base32
  1086. "07azyn0b1s49vbdlr6dmygrminxp72ndl24j1091hiiccvrjq3xc"))))
  1087. (build-system texlive-build-system)
  1088. (arguments
  1089. '(#:tex-directory "latex/graphics"
  1090. #:phases
  1091. (modify-phases %standard-phases
  1092. (add-after 'install 'install-config
  1093. (lambda* (#:key inputs outputs #:allow-other-keys)
  1094. (let ((cfg (assoc-ref inputs "graphics-cfg"))
  1095. (target (string-append (assoc-ref outputs "out")
  1096. "/share/texmf-dist/tex/latex/graphics-cfg")))
  1097. (mkdir-p target)
  1098. (install-file (string-append cfg "/graphics.cfg") target)
  1099. (install-file (string-append cfg "/color.cfg") target)
  1100. #t)))
  1101. (add-after 'install 'install-defs
  1102. (lambda* (#:key inputs outputs #:allow-other-keys)
  1103. (let ((def (assoc-ref inputs "graphics-def"))
  1104. (target (string-append (assoc-ref outputs "out")
  1105. "/share/texmf-dist/tex/latex/graphics-def")))
  1106. (mkdir-p target)
  1107. (copy-recursively def target)
  1108. #t))))))
  1109. (native-inputs
  1110. `(("graphics-cfg"
  1111. ,(origin
  1112. (method git-fetch)
  1113. (uri (git-reference
  1114. (url "https://github.com/latex3/graphics-cfg.git")
  1115. (commit "19d1238af17df376cd46333b229579b0f7f3a41f")))
  1116. (sha256
  1117. (base32
  1118. "12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh"))))
  1119. ("graphics-def"
  1120. ,(origin
  1121. (method svn-fetch)
  1122. (uri (svn-reference
  1123. (url (string-append "svn://www.tug.org/texlive/tags/"
  1124. %texlive-tag "/Master/texmf-dist/"
  1125. "/tex/latex/graphics-def"))
  1126. (revision %texlive-revision)))
  1127. (sha256
  1128. (base32
  1129. "0gi4qv6378nl84s8n1yx3hjqvv7r4lza7hpbymbl5rzwgw8qrnyb"))))))
  1130. (home-page "http://www.ctan.org/pkg/latex-graphics")
  1131. (synopsis "LaTeX standard graphics bundle")
  1132. (description
  1133. "This is a collection of LaTeX packages for producing color, including
  1134. graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
  1135. documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
  1136. keyval, and lscape.")
  1137. ;; The configuration files are released under CC0.
  1138. (license (list license:lppl1.3c+
  1139. license:cc0))))
  1140. (define-public texlive-latex-xcolor
  1141. (package
  1142. (name "texlive-latex-xcolor")
  1143. (version (number->string %texlive-revision))
  1144. (source (origin
  1145. (method svn-fetch)
  1146. (uri (texlive-ref "latex" "xcolor"))
  1147. (sha256
  1148. (base32
  1149. "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
  1150. (build-system texlive-build-system)
  1151. (arguments '(#:tex-directory "latex/xcolor"))
  1152. (home-page "http://www.ctan.org/pkg/xcolor")
  1153. (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
  1154. (description
  1155. "The package starts from the basic facilities of the colorcolor package,
  1156. and provides easy driver-independent access to several kinds of color tints,
  1157. shades, tones, and mixes of arbitrary colors. It allows a user to select a
  1158. document-wide target color model and offers complete tools for conversion
  1159. between eight color models. Additionally, there is a command for alternating
  1160. row colors plus repeated non-aligned material (like horizontal lines) in
  1161. tables.")
  1162. (license license:lppl1.2+)))
  1163. (define-public texlive-latex-hyperref
  1164. (package
  1165. (name "texlive-latex-hyperref")
  1166. (version "6.84a2")
  1167. ;; The sources in the TeX Live SVN repository do not contain hluatex.dtx,
  1168. ;; so we fetch the release from GitHub.
  1169. (source (origin
  1170. (method url-fetch)
  1171. (uri (string-append "https://github.com/ho-tex/hyperref/"
  1172. "archive/release-" version ".tar.gz"))
  1173. (file-name (string-append name "-" version ".tar.gz"))
  1174. (sha256
  1175. (base32
  1176. "1d3rmjgzh0025a1dza55zb6nzzlgd1y9snwx45wq1c1vf42m79h2"))))
  1177. (build-system texlive-build-system)
  1178. (arguments '(#:tex-directory "latex/hyperref"))
  1179. (home-page "http://www.ctan.org/pkg/hyperref")
  1180. (synopsis "Extensive support for hypertext in LaTeX")
  1181. (description
  1182. "The hyperref package is used to handle cross-referencing commands in
  1183. LaTeX to produce hypertext links in the document. The package provides
  1184. backends for the special set defined for HyperTeX DVI processors; for embedded
  1185. pdfmark commands for processing by Acrobat Distiller (dvips and dvipsone); for
  1186. dviwindo; for PDF control within pdfTeX and dvipdfm; for TeX4ht; and for VTeX
  1187. pdf and HTML backends. The package is distributed with the backref and
  1188. nameref packages, which make use of the facilities of hyperref.")
  1189. (license license:lppl1.3+)))
  1190. (define-public texlive-latex-oberdiek
  1191. (package
  1192. (name "texlive-latex-oberdiek")
  1193. (version (number->string %texlive-revision))
  1194. (source (origin
  1195. (method svn-fetch)
  1196. (uri (texlive-ref "latex" "oberdiek"))
  1197. (sha256
  1198. (base32
  1199. "0aswvsxgsn709xmvpcg50d2xl7vcy1ckdxb9c1cligqqfjjvviqf"))))
  1200. (build-system texlive-build-system)
  1201. (arguments
  1202. '(#:tex-directory "latex/oberdiek"
  1203. #:build-targets '("oberdiek.ins")
  1204. #:phases
  1205. (modify-phases %standard-phases
  1206. ;; "ifpdf.ins" is not generated, so we need to process the dtx file.
  1207. (add-after 'unpack 'do-not-process-ifpdf.ins
  1208. (lambda _
  1209. (substitute* "oberdiek.ins"
  1210. (("ifpdf.ins") "ifpdf.dtx"))
  1211. #t)))))
  1212. (home-page "http://www.ctan.org/pkg/oberdiek")
  1213. (synopsis "Bundle of packages submitted by Heiko Oberdiek")
  1214. (description
  1215. "The bundle comprises various LaTeX packages, providing among others:
  1216. better accessibility support for PDF files; extensible chemists reaction
  1217. arrows; record information about document class(es) used; and many more.")
  1218. (license license:lppl1.3+)))
  1219. (define-public texlive-latex-tools
  1220. (package
  1221. (name "texlive-latex-tools")
  1222. (version (number->string %texlive-revision))
  1223. (source (origin
  1224. (method svn-fetch)
  1225. (uri (texlive-ref "latex" "tools"))
  1226. (sha256
  1227. (base32
  1228. "052a0pch2k5zls5jlay9xxcf93rw3i60a2x28y3ip3rhbsv3xgiz"))))
  1229. (build-system texlive-build-system)
  1230. (arguments
  1231. '(#:tex-directory "latex/tools"
  1232. #:build-targets '("tools.ins")))
  1233. (home-page "http://www.ctan.org/pkg/latex-tools")
  1234. (synopsis "LaTeX standard tools bundle")
  1235. (description
  1236. "This package is a collection of (variously) simple tools provided as
  1237. part of the LaTeX required tools distribution, comprising the following
  1238. packages: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr,
  1239. fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol,
  1240. rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim,
  1241. xr, and xspace.")
  1242. (license license:lppl1.3+)))
  1243. (define-public texlive-latex-url
  1244. (package
  1245. (name "texlive-latex-url")
  1246. (version (number->string %texlive-revision))
  1247. (source (origin
  1248. (method svn-fetch)
  1249. (uri (svn-reference
  1250. (url (string-append "svn://www.tug.org/texlive/tags/"
  1251. %texlive-tag "/Master/texmf-dist/"
  1252. "/tex/latex/url"))
  1253. (revision %texlive-revision)))
  1254. (sha256
  1255. (base32
  1256. "184s2543cwia5l7iibhlkl1ffbncfhjpv5p56zq0c15by5sghlac"))))
  1257. (build-system trivial-build-system)
  1258. (arguments
  1259. `(#:modules ((guix build utils))
  1260. #:builder
  1261. (begin
  1262. (use-modules (guix build utils))
  1263. (let ((target (string-append (assoc-ref %outputs "out")
  1264. "/share/texmf-dist/tex/latex/url")))
  1265. (mkdir-p target)
  1266. (copy-recursively (assoc-ref %build-inputs "source") target)
  1267. #t))))
  1268. (home-page "https://www.ctan.org/pkg/url")
  1269. (synopsis "Verbatim with URL-sensitive line breaks")
  1270. (description "The command @code{\\url} is a form of verbatim command that
  1271. allows linebreaks at certain characters or combinations of characters, accepts
  1272. reconfiguration, and can usually be used in the argument to another command.
  1273. The command is intended for email addresses, hypertext links,
  1274. directories/paths, etc., which normally have no spaces, so by default the
  1275. package ignores spaces in its argument. However, a package option allows
  1276. spaces, which is useful for operating systems where spaces are a common part
  1277. of file names.")
  1278. ;; The license header states that it is under LPPL version 2 or later, but
  1279. ;; the latest version is 1.3c.
  1280. (license license:lppl1.3c+)))
  1281. (define-public texlive-latex-l3kernel
  1282. (package
  1283. (name "texlive-latex-l3kernel")
  1284. (version (number->string %texlive-revision))
  1285. (source (origin
  1286. (method svn-fetch)
  1287. (uri (texlive-ref "latex" "l3kernel"))
  1288. (sha256
  1289. (base32
  1290. "0r0wfk594j8wkdqhh21haimwsfq8x5jch4ldm21hkzk5dnmvpbg6"))))
  1291. (build-system texlive-build-system)
  1292. (arguments
  1293. '(#:tex-directory "latex/l3kernel"))
  1294. (home-page "http://www.ctan.org/pkg/l3kernel")
  1295. (synopsis "LaTeX3 programmers’ interface")
  1296. (description
  1297. "The l3kernel bundle provides an implementation of the LaTeX3
  1298. programmers’ interface, as a set of packages that run under LaTeX 2e. The
  1299. interface provides the foundation on which the LaTeX3 kernel and other future
  1300. code are built: it is an API for TeX programmers. The packages are set up so
  1301. that the LaTeX3 conventions can be used with regular LaTeX 2e packages.")
  1302. (license license:lppl1.3c+)))
  1303. (define-public texlive-latex-l3packages
  1304. (package
  1305. (name "texlive-latex-l3packages")
  1306. (version (number->string %texlive-revision))
  1307. (source (origin
  1308. (method svn-fetch)
  1309. (uri (texlive-ref "latex" "l3packages"))
  1310. (sha256
  1311. (base32
  1312. "16jplkvzdysfssijq9l051nsks65c2nrarsl17k8gjhc28yznj8y"))))
  1313. (build-system texlive-build-system)
  1314. (arguments
  1315. '(#:tex-directory "latex/l3packages"
  1316. #:phases
  1317. (modify-phases %standard-phases
  1318. ;; All package sources are in sub-directories, so we need to add them
  1319. ;; to TEXINPUTS.
  1320. (add-after 'unpack 'set-TEXINPUTS
  1321. (lambda _
  1322. (let ((cwd (getcwd)))
  1323. (setenv "TEXINPUTS"
  1324. (string-append cwd "/l3keys2e:"
  1325. cwd "/xparse:"
  1326. cwd "/xfrac:"
  1327. cwd "/xfp:"
  1328. cwd "/xtemplate")))
  1329. #t)))))
  1330. (inputs
  1331. `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
  1332. (home-page "http://www.ctan.org/pkg/l3packages")
  1333. (synopsis "High-level LaTeX3 concepts")
  1334. (description
  1335. "This bundle holds prototype implementations of concepts for a LaTeX
  1336. designer interface, to be used with the experimental LaTeX kernel as
  1337. programming tools and kernel sup­port. Packages provided in this release are:
  1338. @enumerate
  1339. @item l3keys2e, which makes the facilities of the kernel module l3keys
  1340. available for use by LaTeX 2e packages;
  1341. @item xfrac, which provides flexible splitlevel fractions;
  1342. @item xparse, which provides a high-level interface for declaring document
  1343. commands; and
  1344. @item xtemplate, which provides a means of defining generic functions using a
  1345. key-value syntax.
  1346. @end enumerate\n")
  1347. (license license:lppl1.3c+)))
  1348. (define-public texlive-latex-fontspec
  1349. (package
  1350. (name "texlive-latex-fontspec")
  1351. (version (number->string %texlive-revision))
  1352. (source (origin
  1353. (method svn-fetch)
  1354. (uri (texlive-ref "latex" "fontspec"))
  1355. (sha256
  1356. (base32
  1357. "1rx43y5xmjqvc27pjdnmqwp4pcw3czcfd6nfpmzc1gnqfl1hlc0q"))))
  1358. (build-system texlive-build-system)
  1359. (arguments
  1360. '(#:tex-directory "latex/fontspec"
  1361. #:build-targets '("fontspec.dtx")))
  1362. (inputs
  1363. `(("texlive-latex-l3kernel" ,texlive-latex-l3kernel)))
  1364. (home-page "http://www.ctan.org/pkg/fontspec")
  1365. (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
  1366. (description
  1367. "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
  1368. automatic and unified interface to feature-rich AAT and OpenType fonts through
  1369. the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
  1370. the l3kernel and xparse bundles from the LaTeX 3 development team.")
  1371. (license license:lppl1.3+)))
  1372. ;; The SVN directory contains little more than a dtx file that generates three
  1373. ;; of the many lua files that should be installed as part of this package.
  1374. ;; This is why we take the release from GitHub instead.
  1375. (define-public texlive-luatex-lualibs
  1376. (package
  1377. (name "texlive-luatex-lualibs")
  1378. (version "2.5")
  1379. (source (origin
  1380. (method url-fetch)
  1381. (uri (string-append "https://github.com/lualatex/lualibs/"
  1382. "releases/download/v"
  1383. version "/lualibs.zip"))
  1384. (sha256
  1385. (base32
  1386. "1xx9blvrmx9hyhrl345lpai9m6xxnw997261a1ahn1bm5r2j5fqy"))))
  1387. (build-system gnu-build-system)
  1388. (arguments
  1389. `(#:make-flags
  1390. (list (string-append "DESTDIR="
  1391. (assoc-ref %outputs "out")
  1392. "/share/texmf-dist"))
  1393. #:phases
  1394. (modify-phases %standard-phases
  1395. (delete 'configure))))
  1396. (native-inputs
  1397. `(("texlive-bin" ,texlive-bin)
  1398. ("unzip" ,unzip)
  1399. ("zip" ,zip)))
  1400. (home-page "https://github.com/lualatex/lualibs")
  1401. (synopsis "Lua modules for general programming (in the (La)TeX world)")
  1402. (description
  1403. "Lualibs is a collection of Lua modules useful for general programming.
  1404. The bundle is based on Lua modules shipped with ConTeXt, and made available in
  1405. this bundle for use independent of ConTeXt.")
  1406. ;; GPL version 2 only
  1407. (license license:gpl2)))
  1408. (define-public texlive-latex-amsmath
  1409. (package
  1410. (name "texlive-latex-amsmath")
  1411. (version (number->string %texlive-revision))
  1412. (source (origin
  1413. (method svn-fetch)
  1414. (uri (texlive-ref "latex" "amsmath"))
  1415. (sha256
  1416. (base32
  1417. "178ywjpdlv78qmfzqdyn6gy14620zjsn2q9wap76fbr9s4hw6dba"))))
  1418. (build-system texlive-build-system)
  1419. (arguments '(#:tex-directory "latex/amsmath"))
  1420. (home-page "http://www.ctan.org/pkg/amsmath")
  1421. (synopsis "AMS mathematical facilities for LaTeX")
  1422. (description
  1423. "This is the principal package in the AMS-LaTeX distribution. It adapts
  1424. for use in LaTeX most of the mathematical features found in AMS-TeX; it is
  1425. highly recommended as an adjunct to serious mathematical typesetting in LaTeX.
  1426. When amsmath is loaded, AMS-LaTeX packages @code{amsbsyamsbsy} (for bold
  1427. symbols), @code{amsopnamsopn} (for operator names) and
  1428. @code{amstextamstext} (for text embedded in mathematics) are also loaded.
  1429. This package is part of the LaTeX required distribution; however, several
  1430. contributed packages add still further to its appeal; examples are
  1431. @code{empheqempheq}, which provides functions for decorating and highlighting
  1432. mathematics, and @code{ntheoremntheorem}, for specifying theorem (and similar)
  1433. definitions.")
  1434. (license license:lppl1.3c+)))
  1435. (define-public texlive-latex-amscls
  1436. (package
  1437. (name "texlive-latex-amscls")
  1438. (version (number->string %texlive-revision))
  1439. (source (origin
  1440. (method svn-fetch)
  1441. (uri (texlive-ref "latex" "amscls"))
  1442. (sha256
  1443. (base32
  1444. "0jmcr37mcdi7drczppvr6lmz5d5yd9m67ii79gp2nglg1xpw934j"))))
  1445. (build-system texlive-build-system)
  1446. (arguments
  1447. `(#:tex-directory "latex/amscls"))
  1448. (home-page "http://www.ctan.org/pkg/amscls")
  1449. (synopsis "AMS document classes for LaTeX")
  1450. (description
  1451. "This bundle contains three AMS classes: @code{amsartamsart} (for writing
  1452. articles for the AMS), @code{amsbookamsbook} (for books) and
  1453. @code{amsprocamsproc} (for proceedings), together with some supporting
  1454. material. The material is made available as part of the AMS-LaTeX
  1455. distribution.")
  1456. (license license:lppl1.3c+)))
  1457. (define-public texlive-latex-babel
  1458. (package
  1459. (name "texlive-latex-babel")
  1460. (version (number->string %texlive-revision))
  1461. (source (origin
  1462. (method svn-fetch)
  1463. (uri (texlive-ref "latex" "babel"))
  1464. (sha256
  1465. (base32
  1466. "1n3i5adsyy7jw0imnzrm2i8wkf73i3mjk9h3ic8cb9cd19i4r9r3"))))
  1467. (build-system texlive-build-system)
  1468. (arguments
  1469. '(#:tex-directory "generic/babel"
  1470. #:phases
  1471. (modify-phases %standard-phases
  1472. ;; This package tries to produce babel.aux twice but refuses to
  1473. ;; overwrite the first one.
  1474. (add-before 'build 'fix-ins
  1475. (lambda _
  1476. (substitute* "babel.ins"
  1477. (("askonceonly") "askforoverwritefalse"))
  1478. #t)))))
  1479. (home-page "http://www.ctan.org/pkg/babel")
  1480. (synopsis "Multilingual support for Plain TeX or LaTeX")
  1481. (description
  1482. "The package manages culturally-determined typographical (and other)
  1483. rules, and hyphenation patterns for a wide range of languages. A document may
  1484. select a single language to be supported, or it may select several, in which
  1485. case the document may switch from one language to another in a variety of
  1486. ways. Babel uses contributed configuration files that provide the detail of
  1487. what has to be done for each language. Users of XeTeX are advised to use the
  1488. polyglossia package rather than Babel.")
  1489. (license license:lppl1.3+)))
  1490. (define-public texlive-generic-babel-english
  1491. (package
  1492. (name "texlive-generic-babel-english")
  1493. (version (number->string %texlive-revision))
  1494. (source (origin
  1495. (method svn-fetch)
  1496. (uri (texlive-ref "generic" "babel-english"))
  1497. (file-name (string-append name "-" version "-checkout"))
  1498. (sha256
  1499. (base32
  1500. "1s404wbx91z5w65hm024kyl4h56zsa096irx18vsx8jvlmwsr5wc"))))
  1501. (build-system texlive-build-system)
  1502. (arguments '(#:tex-directory "generic/babel-english"))
  1503. (home-page "http://www.ctan.org/pkg/babel-english")
  1504. (synopsis "Babel support for English")
  1505. (description
  1506. "This package provides the language definition file for support of
  1507. English in @code{babel}. Care is taken to select British hyphenation patterns
  1508. for British English and Australian text, and default (\"american\") patterns
  1509. for Canadian and USA text.")
  1510. (license license:lppl1.3+)))
  1511. (define-public texlive-latex-cyrillic
  1512. (package
  1513. (name "texlive-latex-cyrillic")
  1514. (version (number->string %texlive-revision))
  1515. (source (origin
  1516. (method svn-fetch)
  1517. (uri (texlive-ref "latex" "cyrillic"))
  1518. (sha256
  1519. (base32
  1520. "1mdhl35hwas68ki56qqngzar37dwv4mm64l2canihr255bz34lbv"))))
  1521. (build-system texlive-build-system)
  1522. (arguments
  1523. '(#:tex-directory "latex/cyrillic"))
  1524. (home-page "http://www.ctan.org/pkg/latex-cyrillic")
  1525. (synopsis "Support for Cyrillic fonts in LaTeX")
  1526. (description
  1527. "This bundle of macros files provides macro support (including font
  1528. encoding macros) for the use of Cyrillic characters in fonts encoded under the
  1529. T2* and X2 encodings. These encodings cover (between them) pretty much every
  1530. language that is written in a Cyrillic alphabet.")
  1531. (license license:lppl1.3c+)))
  1532. (define-public texlive-latex-psnfss
  1533. (package
  1534. (name "texlive-latex-psnfss")
  1535. (version (number->string %texlive-revision))
  1536. (source (origin
  1537. (method svn-fetch)
  1538. (uri (texlive-ref "latex" "psnfss"))
  1539. (sha256
  1540. (base32
  1541. "1920dcq8613yzprasbg80fh4fcjcidvvl54wkx438nimyxcri7qz"))))
  1542. (build-system texlive-build-system)
  1543. (arguments '(#:tex-directory "latex/psnfss"))
  1544. (home-page "http://www.ctan.org/pkg/psnfss")
  1545. (synopsis "Font support for common PostScript fonts")
  1546. (description
  1547. "The PSNFSS collection includes a set of files that provide a complete
  1548. working setup of the LaTeX font selection scheme (NFSS2) for use with common
  1549. PostScript fonts. It covers the so-called \"Base\" fonts (which are built
  1550. into any Level 2 PostScript printing device and the Ghostscript interpreter)
  1551. and a number of free fonts. It provides font definition files, macros and
  1552. font metrics. The bundle as a whole is part of the LaTeX required set of
  1553. packages.")
  1554. (license license:lppl1.2+)))
  1555. (define-public texlive-union
  1556. (lambda* (#:optional (packages '()))
  1557. "Return 'texlive-union' package which is a union of PACKAGES and the
  1558. standard LaTeX packages."
  1559. (let ((default-packages
  1560. (list texlive-bin
  1561. texlive-dvips
  1562. texlive-fontname
  1563. texlive-fonts-cm
  1564. texlive-fonts-latex
  1565. texlive-metafont-base
  1566. texlive-latex-base
  1567. ;; LaTeX packages from the "required" set.
  1568. texlive-latex-amsmath
  1569. texlive-latex-amscls
  1570. texlive-latex-babel
  1571. texlive-generic-babel-english
  1572. texlive-latex-cyrillic
  1573. texlive-latex-graphics
  1574. texlive-latex-psnfss
  1575. texlive-latex-tools)))
  1576. (package
  1577. (name "texlive-union")
  1578. (version (number->string %texlive-revision))
  1579. (source #f)
  1580. (build-system trivial-build-system)
  1581. (arguments
  1582. '(#:modules ((guix build union)
  1583. (guix build utils)
  1584. (guix build texlive-build-system)
  1585. (guix build gnu-build-system)
  1586. (guix build gremlin)
  1587. (guix elf))
  1588. #:builder
  1589. (begin
  1590. (use-modules (ice-9 match)
  1591. (srfi srfi-26)
  1592. (guix build union)
  1593. (guix build utils)
  1594. (guix build texlive-build-system))
  1595. (let* ((out (assoc-ref %outputs "out"))
  1596. (texmf.cnf (string-append out "/share/texmf-dist/web2c/texmf.cnf")))
  1597. ;; Build a modifiable union of all inputs (but exclude bash)
  1598. (match (filter (match-lambda
  1599. ((name . _)
  1600. (not (string=? "bash" name))))
  1601. %build-inputs)
  1602. (((names . directories) ...)
  1603. (union-build (assoc-ref %outputs "out")
  1604. directories
  1605. #:create-all-directories? #t
  1606. #:log-port (%make-void-port "w"))))
  1607. ;; The configuration file "texmf.cnf" is provided by the
  1608. ;; "texlive-bin" package. We take it and override only the
  1609. ;; setting for TEXMFROOT and TEXMF. This file won't be consulted
  1610. ;; by default, though, so we still need to set TEXMFCNF.
  1611. (substitute* texmf.cnf
  1612. (("^TEXMFROOT = .*")
  1613. (string-append "TEXMFROOT = " out "/share\n"))
  1614. (("^TEXMF = .*")
  1615. "TEXMF = $TEXMFROOT/share/texmf-dist\n"))
  1616. (setenv "PATH" (string-append (assoc-ref %build-inputs "bash")
  1617. "/bin"))
  1618. (for-each
  1619. (cut wrap-program <>
  1620. `("TEXMFCNF" ":" = (,(dirname texmf.cnf)))
  1621. `("TEXMF" ":" = (,(string-append out "/share/texmf-dist"))))
  1622. (find-files (string-append out "/bin") ".*"))
  1623. #t))))
  1624. (inputs
  1625. `(("bash" ,bash)
  1626. ,@(map (lambda (package)
  1627. (list (package-name package) package))
  1628. (append default-packages packages))))
  1629. (home-page (package-home-page texlive-bin))
  1630. (synopsis "Union of TeX Live packages")
  1631. (description "This package provides a subset of the TeX Live
  1632. distribution.")
  1633. (license (fold (lambda (package result)
  1634. (match (package-license package)
  1635. ((lst ...)
  1636. (append lst result))
  1637. ((? license:license? license)
  1638. (cons license result))))
  1639. '()
  1640. (append default-packages packages)))))))
  1641. (define-public texlive-tiny
  1642. (package
  1643. (inherit (texlive-union))
  1644. (name "texlive-tiny")
  1645. (description "This is a very limited subset of the TeX Live distribution.
  1646. It includes little more than the required set of LaTeX packages.")))
  1647. (define-public texlive-latex-amsrefs
  1648. (package
  1649. (name "texlive-latex-amsrefs")
  1650. (version (number->string %texlive-revision))
  1651. (source (origin
  1652. (method svn-fetch)
  1653. (uri (texlive-ref "latex" "amsrefs"))
  1654. (file-name (string-append name "-" version "-checkout"))
  1655. (sha256
  1656. (base32
  1657. "15i4k479dwrpr0kspmm70g1yn4p3dkh0whyzmr93hph9bggnh1i1"))))
  1658. (build-system texlive-build-system)
  1659. (arguments '(#:tex-directory "latex/amsrefs"))
  1660. (home-page "http://www.ctan.org/pkg/amsrefs")
  1661. (synopsis "LaTeX-based replacement for BibTeX")
  1662. (description
  1663. "Amsrefs is a LaTeX package for bibliographies that provides an archival
  1664. data format similar to the format of BibTeX database files, but adapted to
  1665. make direct processing by LaTeX easier. The package can be used either in
  1666. conjunction with BibTeX or as a replacement for BibTeX.")
  1667. (license license:lppl1.3+)))
  1668. (define-public texlive-latex-bigfoot
  1669. (package
  1670. (name "texlive-latex-bigfoot")
  1671. (version (number->string %texlive-revision))
  1672. (source (origin
  1673. (method svn-fetch)
  1674. (uri (texlive-ref "latex" "bigfoot"))
  1675. (file-name (string-append name "-" version "-checkout"))
  1676. (sha256
  1677. (base32
  1678. "092g8alnsdwlgl1isdnqrr32l161994295kadr1n05d81xgj5wnv"))))
  1679. (build-system texlive-build-system)
  1680. (arguments
  1681. '(#:tex-directory "latex/bigfoot"
  1682. #:phases
  1683. (modify-phases %standard-phases
  1684. (add-after 'unpack 'remove-generated-file
  1685. (lambda _
  1686. (for-each delete-file (find-files "." "\\.drv$"))
  1687. #t)))))
  1688. (home-page "http://www.ctan.org/pkg/bigfoot")
  1689. (synopsis "Footnotes for critical editions")
  1690. (description
  1691. "This package aims to provide a one-stop solution to requirements for
  1692. footnotes. It offers: Multiple footnote apparatus superior to that of
  1693. @code{manyfoot}. Footnotes can be formatted in separate paragraphs, or be run
  1694. into a single paragraph (this choice may be selected per footnote series);
  1695. Things you might have expected (such as @code{\\verb}-like material in
  1696. footnotes, and color selections over page breaks) now work. Note that the
  1697. majority of the bigfoot package's interface is identical to that of
  1698. @code{manyfoot}; users should seek information from that package's
  1699. documentation. The bigfoot bundle also provides the @code{perpage} and
  1700. @code{suffix} packages.")
  1701. (license license:gpl2+)))
  1702. (define-public texlive-latex-blindtext
  1703. (package
  1704. (name "texlive-latex-blindtext")
  1705. (version (number->string %texlive-revision))
  1706. (source (origin
  1707. (method svn-fetch)
  1708. (uri (texlive-ref "latex" "blindtext"))
  1709. (file-name (string-append name "-" version "-checkout"))
  1710. (sha256
  1711. (base32
  1712. "1jrja9b1pzdh9zgv1jh807w4xijqja58n2mqny6dkwicv8qfgbfg"))))
  1713. (build-system texlive-build-system)
  1714. (arguments '(#:tex-directory "latex/blindtext"))
  1715. (home-page "http://www.ctan.org/pkg/blindtext")
  1716. (synopsis "Producing 'blind' text for testing")
  1717. (description
  1718. "The package provides the commands @code{\\blindtext} and
  1719. @code{\\Blindtext} for creating \"blind\" text useful in testing new classes
  1720. and packages, and @code{\\blinddocument}, @code{\\Blinddocument} for creating
  1721. an entire random document with sections, lists, mathematics, etc. The package
  1722. supports three languages, @code{english}, @code{(n)german} and @code{latin};
  1723. the @code{latin} option provides a short \"lorem ipsum\" (for a fuller \"lorem
  1724. ipsum\" text, see the @code{lipsum} package).")
  1725. (license license:lppl)))
  1726. (define-public texlive-latex-dinbrief
  1727. (package
  1728. (name "texlive-latex-dinbrief")
  1729. (version (number->string %texlive-revision))
  1730. (source (origin
  1731. (method svn-fetch)
  1732. (uri (texlive-ref "latex" "dinbrief"))
  1733. (file-name (string-append name "-" version "-checkout"))
  1734. (sha256
  1735. (base32
  1736. "0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6"))))
  1737. (build-system texlive-build-system)
  1738. (arguments
  1739. '(#:tex-directory "latex/dinbrief"
  1740. #:phases
  1741. (modify-phases %standard-phases
  1742. (add-after 'unpack 'remove-generated-file
  1743. (lambda _
  1744. (delete-file "dinbrief.drv")
  1745. #t)))))
  1746. (home-page "http://www.ctan.org/pkg/dinbrief")
  1747. (synopsis "German letter DIN style")
  1748. (description
  1749. "This package implements a document layout for writing letters according
  1750. to the rules of DIN (Deutsches Institut für Normung, German standardisation
  1751. institute). A style file for LaTeX 2.09 (with limited support of the
  1752. features) is part of the package. Since the letter layout is based on a
  1753. German standard, the user guide is written in German, but most macros have
  1754. English names from which the user can recognize what they are used for. In
  1755. addition there are example files showing how letters may be created with the
  1756. package.")
  1757. (license license:lppl)))
  1758. (define-public texlive-latex-draftwatermark
  1759. (package
  1760. (name "texlive-latex-draftwatermark")
  1761. (version (number->string %texlive-revision))
  1762. (source (origin
  1763. (method svn-fetch)
  1764. (uri (texlive-ref "latex" "draftwatermark"))
  1765. (file-name (string-append name "-" version "-checkout"))
  1766. (sha256
  1767. (base32
  1768. "1zyl2pcz2x529gzj5m93a1s4ipymdabf7qdjl3l1673pizd4hfyv"))))
  1769. (build-system texlive-build-system)
  1770. (arguments '(#:tex-directory "latex/draftwatermark"))
  1771. (home-page "http://www.ctan.org/pkg/draftwatermark")
  1772. (synopsis "Put a grey textual watermark on document pages")
  1773. (description
  1774. "This package provides a means to add a textual, light grey watermark on
  1775. every page or on the first page of a document. Typical usage may consist in
  1776. writing words such as DRAFT or CONFIDENTIAL across document pages. The
  1777. package performs a similar function to that of @code{draftcopy}, but its
  1778. implementation is output device independent, and made very simple by relying
  1779. on everypage.")
  1780. (license license:lppl1.3+)))
  1781. (define-public texlive-latex-environ
  1782. (package
  1783. (name "texlive-latex-environ")
  1784. (version (number->string %texlive-revision))
  1785. (source (origin
  1786. (method svn-fetch)
  1787. (uri (texlive-ref "latex" "environ"))
  1788. (file-name (string-append name "-" version "-checkout"))
  1789. (sha256
  1790. (base32
  1791. "06h28b26dyjkj9shksphgqfv4130jfkwhbw737hxn7d3yvdfffyd"))))
  1792. (build-system texlive-build-system)
  1793. (arguments '(#:tex-directory "latex/environ"))
  1794. (home-page "http://www.ctan.org/pkg/environ")
  1795. (synopsis "New interface for environments in LaTeX")
  1796. (description
  1797. "This package provides the @code{\\collect@@body} command (as in
  1798. @code{amsmath}), as well as a @code{\\long} version @code{\\Collect@@Body},
  1799. for collecting the body text of an environment. These commands are used to
  1800. define a new author interface to creating new environments.")
  1801. (license license:lppl)))
  1802. (define-public texlive-latex-eqparbox
  1803. (package
  1804. (name "texlive-latex-eqparbox")
  1805. (version (number->string %texlive-revision))
  1806. (source (origin
  1807. (method svn-fetch)
  1808. (uri (texlive-ref "latex" "eqparbox"))
  1809. (file-name (string-append name "-" version "-checkout"))
  1810. (sha256
  1811. (base32
  1812. "0pvmhsd4xmpil0m3c7qcgwilbk266mlkzv03g0jr8r3zd8jxlyzq"))))
  1813. (build-system texlive-build-system)
  1814. (arguments '(#:tex-directory "latex/eqparbox"))
  1815. (home-page "http://www.ctan.org/pkg/eqparbox")
  1816. (synopsis "Create equal-widthed parboxes")
  1817. (description
  1818. "LaTeX users sometimes need to ensure that two or more blocks of text
  1819. occupy the same amount of horizontal space on the page. To that end, the
  1820. @code{eqparbox} package defines a new command, @code{\\eqparbox}, which works
  1821. just like @code{\\parbox}, except that instead of specifying a width, one
  1822. specifies a tag. All @code{eqparbox}es with the same tag---regardless of
  1823. where they are in the document---will stretch to fit the widest
  1824. @code{eqparbox} with that tag. This simple, equal-width mechanism can be used
  1825. for a variety of alignment purposes, as is evidenced by the examples in
  1826. @code{eqparbox}'s documentation. Various derivatives of @code{\\eqparbox} are
  1827. also provided.")
  1828. (license license:lppl1.3+)))
  1829. (define-public texlive-latex-expdlist
  1830. (package
  1831. (name "texlive-latex-expdlist")
  1832. (version (number->string %texlive-revision))
  1833. (source (origin
  1834. (method svn-fetch)
  1835. (uri (texlive-ref "latex" "expdlist"))
  1836. (file-name (string-append name "-" version "-checkout"))
  1837. (sha256
  1838. (base32
  1839. "1x7byk6x10njir3y9rm56glhdzrxwqag7gsnw2sqn1czlq525w7r"))))
  1840. (build-system texlive-build-system)
  1841. (arguments
  1842. '(#:tex-directory "latex/expdlist"
  1843. #:phases
  1844. (modify-phases %standard-phases
  1845. (add-after 'unpack 'remove-generated-file
  1846. (lambda _
  1847. (for-each delete-file
  1848. (find-files "." "\\.drv$"))
  1849. #t)))))
  1850. (home-page "http://www.ctan.org/pkg/expdlist")
  1851. (synopsis "Expanded description environments")
  1852. (description
  1853. "The package provides additional features for the LaTeX
  1854. @code{description} environment, including adjustable left margin. The package
  1855. also allows the user to \"break\" a list (for example, to interpose a comment)
  1856. without affecting the structure of the list (this works for @code{itemize} and
  1857. @code{enumerate} lists, and numbered lists remain in sequence).")
  1858. (license license:lppl)))
  1859. (define-public texlive-latex-filemod
  1860. (package
  1861. (name "texlive-latex-filemod")
  1862. (version (number->string %texlive-revision))
  1863. (source (origin
  1864. (method svn-fetch)
  1865. (uri (svn-reference
  1866. (url (string-append "svn://www.tug.org/texlive/tags/"
  1867. %texlive-tag "/Master/texmf-dist/"
  1868. "/tex/latex/filemod"))
  1869. (revision %texlive-revision)))
  1870. (sha256
  1871. (base32
  1872. "0vpxilfw69xv78f03g0j0zw0bw4qcn36whqp8phcq48qk1ax2kr2"))))
  1873. (build-system trivial-build-system)
  1874. (arguments
  1875. `(#:modules ((guix build utils))
  1876. #:builder
  1877. (begin
  1878. (use-modules (guix build utils))
  1879. (let ((target (string-append (assoc-ref %outputs "out")
  1880. "/share/texmf-dist/tex/latex/filemod")))
  1881. (mkdir-p target)
  1882. (copy-recursively (assoc-ref %build-inputs "source") target)
  1883. #t))))
  1884. (home-page "http://www.ctan.org/pkg/filemod")
  1885. (synopsis "Provide file modification times, and compare them")
  1886. (description
  1887. "This package provides macros to read and compare the modification dates
  1888. of files. The files may be @code{.tex} files, images or other files (as long
  1889. as they can be found by LaTeX). It uses the @code{\\pdffilemoddate} primitive
  1890. of pdfLaTeX to find the file modification date as PDF date string, parses the
  1891. string and returns the value to the user. The package will also work for DVI
  1892. output with recent versions of the LaTeX compiler which uses pdfLaTeX in DVI
  1893. mode. The functionality is provided by purely expandable macros or by faster
  1894. but non-expandable ones.")
  1895. (license license:lppl1.3+)))
  1896. (define-public texlive-latex-ifplatform
  1897. (package
  1898. (name "texlive-latex-ifplatform")
  1899. (version (number->string %texlive-revision))
  1900. (source (origin
  1901. (method svn-fetch)
  1902. (uri (texlive-ref "latex" "ifplatform"))
  1903. (file-name (string-append name "-" version "-checkout"))
  1904. (sha256
  1905. (base32
  1906. "11gvvjvmdfs9b7mm19yf80zwkx49jqcbq6g8qb9y5ns1r1qvnixp"))))
  1907. (build-system texlive-build-system)
  1908. (arguments '(#:tex-directory "latex/ifplatform"))
  1909. (home-page "http://www.ctan.org/pkg/ifplatform")
  1910. (synopsis "Conditionals to test which platform is being used")
  1911. (description
  1912. "This package uses the (La)TeX extension @code{-shell-escape} to
  1913. establish whether the document is being processed on a Windows or on a
  1914. Unix-like system, or on Cygwin (Unix environment over a Windows system).
  1915. Booleans provided are: @code{\\ifwindows}, @code{\\iflinux}, @code{\\ifmacosx}
  1916. and @code{\\ifcygwin}. The package also preserves the output of @code{uname}
  1917. on a Unix-like system, which may be used to distinguish between various
  1918. classes of systems.")
  1919. (license license:lppl)))
  1920. (define-public texlive-latex-natbib
  1921. (package
  1922. (name "texlive-latex-natbib")
  1923. (version (number->string %texlive-revision))
  1924. (source (origin
  1925. (method svn-fetch)
  1926. (uri (texlive-ref "latex" "natbib"))
  1927. (sha256
  1928. (base32
  1929. "0aqliq0nwblxyrzhwhv77pnmk7qh2y3prgq7z7qhwcbgz5kisld7"))))
  1930. (build-system texlive-build-system)
  1931. (arguments '(#:tex-directory "latex/natbib"))
  1932. (home-page "http://www.ctan.org/pkg/natbib")
  1933. (synopsis "Flexible bibliography support")
  1934. (description
  1935. "This bundle provides a package that implements both author-year and
  1936. numbered references, as well as much detailed of support for other
  1937. bibliography use. Also provided are versions of the standard BibTeX styles
  1938. that are compatible with @code{natbib}: @code{plainnat}, @code{unsrtnat},
  1939. @code{abbrnat}. The bibliography styles produced by @code{custom-bib} are
  1940. designed from the start to be compatible with @code{natbib}.")
  1941. (license license:lppl)))
  1942. (define-public texlive-latex-psfrag
  1943. (package
  1944. (name "texlive-latex-psfrag")
  1945. (version (number->string %texlive-revision))
  1946. (source (origin
  1947. (method svn-fetch)
  1948. (uri (texlive-ref "latex" "psfrag"))
  1949. (file-name (string-append name "-" version "-checkout"))
  1950. (sha256
  1951. (base32
  1952. "1dxbl5il7wbbsp0v45vk884xi1192wxw03849pb1g5q4x808n352"))))
  1953. (build-system texlive-build-system)
  1954. (arguments '(#:tex-directory "latex/psfrag"))
  1955. (home-page "http://www.ctan.org/pkg/psfrag")
  1956. (synopsis "Replace strings in encapsulated PostScript figures")
  1957. (description
  1958. "This package allows LaTeX constructions (equations, picture
  1959. environments, etc.) to be precisely superimposed over Encapsulated PostScript
  1960. figures, using your own favorite drawing tool to create an EPS figure and
  1961. placing simple text \"tags\" where each replacement is to be placed, with
  1962. PSfrag automatically removing these tags from the figure and replacing them
  1963. with a user specified LaTeX construction, properly aligned, scaled, and/or
  1964. rotated.")
  1965. (license (license:fsf-free "file://psfrag.dtx"))))
  1966. (define-public texlive-latex-pstool
  1967. (package
  1968. (name "texlive-latex-pstool")
  1969. (version (number->string %texlive-revision))
  1970. (source (origin
  1971. (method svn-fetch)
  1972. (uri (texlive-ref "latex" "pstool"))
  1973. (file-name (string-append name "-" version "-checkout"))
  1974. (sha256
  1975. (base32
  1976. "1kwlk1x67lad4xb7gpkxqgdlxwpi6nvq1r9wika7m92abmyf18h3"))))
  1977. (build-system texlive-build-system)
  1978. (arguments
  1979. '(#:tex-directory "latex/pstool"
  1980. #:tex-format "latex"))
  1981. (inputs
  1982. `(("texlive-fonts-cm" ,texlive-fonts-cm)
  1983. ("texlive-latex-filecontents" ,texlive-latex-filecontents)))
  1984. (propagated-inputs
  1985. `(("texlive-latex-bigfoot" ,texlive-latex-bigfoot)
  1986. ("texlive-latex-filemod" ,texlive-latex-filemod)
  1987. ("texlive-latex-graphics" ,texlive-latex-graphics)
  1988. ("texlive-latex-ifplatform" ,texlive-latex-ifplatform)
  1989. ("texlive-latex-oberdiek" ,texlive-latex-oberdiek)
  1990. ("texlive-latex-psfrag" ,texlive-latex-psfrag)
  1991. ("texlive-latex-trimspaces" ,texlive-latex-trimspaces)))
  1992. (home-page "http://www.ctan.org/pkg/pstool")
  1993. (synopsis "Process PostScript graphisc within pdfLaTeX documents")
  1994. (description
  1995. "This is a package for processing PostScript graphics with @code{psfrag}
  1996. labels within pdfLaTeX documents. Every graphic is compiled individually,
  1997. drastically speeding up compilation time when only a single figure needs
  1998. re-processing.")
  1999. (license license:lppl)))
  2000. (define-public texlive-latex-seminar
  2001. (package
  2002. (name "texlive-latex-seminar")
  2003. (version (number->string %texlive-revision))
  2004. (source (origin
  2005. (method svn-fetch)
  2006. (uri (svn-reference
  2007. (url (string-append "svn://www.tug.org/texlive/tags/"
  2008. %texlive-tag "/Master/texmf-dist/"
  2009. "/tex/latex/seminar"))
  2010. (revision %texlive-revision)))
  2011. (sha256
  2012. (base32
  2013. "0y4i651b75y6006n03x8n86bsqvjsailvvz9bhzy51dzsznqidq0"))))
  2014. (build-system texlive-build-system)
  2015. (arguments '(#:tex-directory "latex/seminar"))
  2016. (home-page "http://www.ctan.org/pkg/seminar")
  2017. (synopsis "Make overhead slides")
  2018. ;; TODO: This package may need fancybox and xcomment at runtime.
  2019. (description
  2020. "This package provides a class that produces overhead
  2021. slides (transparencies), with many facilities. Seminar is not nowadays
  2022. reckoned a good basis for a presentation — users are advised to use more
  2023. recent classes such as powerdot or beamer, both of which are tuned to
  2024. 21st-century presentation styles.")
  2025. (license license:lppl1.2+)))
  2026. (define-public texlive-latex-trimspaces
  2027. (package
  2028. (name "texlive-latex-trimspaces")
  2029. (version (number->string %texlive-revision))
  2030. (source (origin
  2031. (method svn-fetch)
  2032. (uri (texlive-ref "latex" "trimspaces"))
  2033. (sha256
  2034. (base32
  2035. "0da00lb32am4g63mn96625wg48p3pj3spx79lajrk17d549apwqa"))))
  2036. (build-system texlive-build-system)
  2037. (arguments
  2038. '(#:tex-directory "latex/trimspaces"
  2039. #:tex-format "latex"
  2040. #:phases
  2041. (modify-phases %standard-phases
  2042. (add-after 'unpack 'fix-bug
  2043. (lambda _
  2044. ;; The "ins" file refers to the wrong source file.
  2045. (substitute* "trimspaces.ins"
  2046. (("pstool.tex") "trimspaces.tex"))
  2047. #t)))))
  2048. (inputs
  2049. `(("texlive-latex-filecontents" ,texlive-latex-filecontents)))
  2050. (home-page "http://www.ctan.org/pkg/trimspaces")
  2051. (synopsis "Trim spaces around an argument or within a macro")
  2052. (description
  2053. "This very short package allows you to expandably remove spaces around a
  2054. token list (commands are provided to remove spaces before, spaces after, or
  2055. both); or to remove surrounding spaces within a macro definition, or to define
  2056. space-stripped macros.")
  2057. (license license:lppl)))
  2058. (define-public texlive-latex-capt-of
  2059. (package
  2060. (name "texlive-latex-capt-of")
  2061. (version (number->string %texlive-revision))
  2062. (source (origin
  2063. (method svn-fetch)
  2064. (uri (svn-reference
  2065. (url (string-append "svn://www.tug.org/texlive/tags/"
  2066. %texlive-tag "/Master/texmf-dist/"
  2067. "/tex/latex/capt-of"))
  2068. (revision %texlive-revision)))
  2069. (file-name (string-append name "-" version "-checkout"))
  2070. (sha256
  2071. (base32
  2072. "1y2s50f6lz0jx2748lj3iy56hrpcczgnbzmvphxv7aqndyyamd4x"))))
  2073. (build-system trivial-build-system)
  2074. (arguments
  2075. `(#:modules ((guix build utils))
  2076. #:builder
  2077. (begin
  2078. (use-modules (guix build utils))
  2079. (let ((target (string-append (assoc-ref %outputs "out")
  2080. "/share/texmf-dist/tex/latex/capt-of")))
  2081. (mkdir-p target)
  2082. (copy-recursively (assoc-ref %build-inputs "source") target)
  2083. #t))))
  2084. (home-page "http://www.ctan.org/pkg/capt-of")
  2085. (synopsis "Captions on more than floats")
  2086. (description
  2087. "This package defines a command @code{\\captionof} for putting a caption
  2088. to something that's not a float.")
  2089. (license license:lppl)))
  2090. (define-public texlive-latex-etoolbox
  2091. (package
  2092. (name "texlive-latex-etoolbox")
  2093. (version (number->string %texlive-revision))
  2094. (source (origin
  2095. (method svn-fetch)
  2096. (uri (svn-reference
  2097. (url (string-append "svn://www.tug.org/texlive/tags/"
  2098. %texlive-tag "/Master/texmf-dist/"
  2099. "/tex/latex/etoolbox"))
  2100. (revision %texlive-revision)))
  2101. (file-name (string-append name "-" version "-checkout"))
  2102. (sha256
  2103. (base32
  2104. "0016bscnpima9krrg2569mva78xzwnygzlvg87dznsm6gf8g589v"))))
  2105. (build-system trivial-build-system)
  2106. (arguments
  2107. `(#:modules ((guix build utils))
  2108. #:builder
  2109. (begin
  2110. (use-modules (guix build utils))
  2111. (let ((target (string-append (assoc-ref %outputs "out")
  2112. "/share/texmf-dist/tex/latex/etoolbox")))
  2113. (mkdir-p target)
  2114. (copy-recursively (assoc-ref %build-inputs "source") target)
  2115. #t))))
  2116. (home-page "http://www.ctan.org/pkg/etoolbox")
  2117. (synopsis "e-TeX tools for LaTeX")
  2118. (description
  2119. "This package is a toolbox of programming facilities geared primarily
  2120. towards LaTeX class and package authors. It provides LaTeX frontends to some
  2121. of the new primitives provided by e-TeX as well as some generic tools which
  2122. are not strictly related to e-TeX but match the profile of this package. The
  2123. package provides functions that seem to offer alternative ways of implementing
  2124. some LaTeX kernel commands; nevertheless, the package will not modify any part
  2125. of the LaTeX kernel.")
  2126. (license license:lppl1.3+)))
  2127. (define-public texlive-latex-fncychap
  2128. (package
  2129. (name "texlive-latex-fncychap")
  2130. (version (number->string %texlive-revision))
  2131. (source (origin
  2132. (method svn-fetch)
  2133. (uri (svn-reference
  2134. (url (string-append "svn://www.tug.org/texlive/tags/"
  2135. %texlive-tag "/Master/texmf-dist/"
  2136. "/tex/latex/fncychap"))
  2137. (revision %texlive-revision)))
  2138. (file-name (string-append name "-" version "-checkout"))
  2139. (sha256
  2140. (base32
  2141. "0fdk84dbicfjfprkz6vk15x36mvlhaw9isjmgkc56jp2khwjswwq"))))
  2142. (build-system trivial-build-system)
  2143. (arguments
  2144. `(#:modules ((guix build utils))
  2145. #:builder
  2146. (begin
  2147. (use-modules (guix build utils))
  2148. (let ((target (string-append (assoc-ref %outputs "out")
  2149. "/share/texmf-dist/tex/latex/fncychap")))
  2150. (mkdir-p target)
  2151. (copy-recursively (assoc-ref %build-inputs "source") target)
  2152. #t))))
  2153. (home-page "http://www.ctan.org/pkg/fncychap")
  2154. (synopsis "Seven predefined chapter heading styles")
  2155. (description
  2156. "This package provides seven predefined chapter heading styles. Each
  2157. style can be modified using a set of simple commands. Optionally one can
  2158. modify the formatting routines in order to create additional chapter
  2159. headings.")
  2160. (license license:lppl1.3+)))
  2161. (define-public texlive-latex-framed
  2162. (package
  2163. (name "texlive-latex-framed")
  2164. (version (number->string %texlive-revision))
  2165. (source (origin
  2166. (method svn-fetch)
  2167. (uri (svn-reference
  2168. (url (string-append "svn://www.tug.org/texlive/tags/"
  2169. %texlive-tag "/Master/texmf-dist/"
  2170. "/tex/latex/framed"))
  2171. (revision %texlive-revision)))
  2172. (file-name (string-append name "-" version "-checkout"))
  2173. (sha256
  2174. (base32
  2175. "14a4ydqsvp3vcfavl21jrv0ybiqypaaqzg2q2cs3rzkandg7w98x"))))
  2176. (build-system trivial-build-system)
  2177. (arguments
  2178. `(#:modules ((guix build utils))
  2179. #:builder
  2180. (begin
  2181. (use-modules (guix build utils))
  2182. (let ((target (string-append (assoc-ref %outputs "out")
  2183. "/share/texmf-dist/tex/latex/framed")))
  2184. (mkdir-p target)
  2185. (copy-recursively (assoc-ref %build-inputs "source") target)
  2186. #t))))
  2187. (home-page "http://www.ctan.org/pkg/framed")
  2188. (synopsis "Framed or shaded regions that can break across pages")
  2189. (description
  2190. "The package creates three environments: @code{framed}, which puts an
  2191. ordinary frame box around the region, @code{shaded}, which shades the region,
  2192. and @code{leftbar}, which places a line at the left side. The environments
  2193. allow a break at their start (the @code{\\FrameCommand} enables creation of a
  2194. title that is “attached” to the environment); breaks are also allowed in the
  2195. course of the framed/shaded matter. There is also a command
  2196. @code{\\MakeFramed} to make your own framed-style environments.")
  2197. ;; The header states: "These macros may be freely transmitted, reproduced,
  2198. ;; or modified for any purpose provided that this notice is left intact."
  2199. (license (license:fsf-free "file://framed.sty"))))
  2200. (define-public texlive-latex-g-brief
  2201. (package
  2202. (name "texlive-latex-g-brief")
  2203. (version (number->string %texlive-revision))
  2204. (source (origin
  2205. (method svn-fetch)
  2206. (uri (texlive-ref "latex" "g-brief"))
  2207. (file-name (string-append name "-" version "-checkout"))
  2208. (sha256
  2209. (base32
  2210. "0sikazkg0dpkcpzlbqw8qzxr81paf2f443vsrh14jnw7s4gswvc5"))))
  2211. (build-system texlive-build-system)
  2212. (arguments
  2213. '(#:tex-directory "latex/g-brief"
  2214. #:phases
  2215. (modify-phases %standard-phases
  2216. (add-after 'unpack 'remove-generated-file
  2217. (lambda _
  2218. (delete-file "g-brief.drv")
  2219. #t)))))
  2220. (home-page "http://www.ctan.org/pkg/g-brief")
  2221. (synopsis "Letter document class")
  2222. (description
  2223. "This package is designed for formatting formless letters in German; it
  2224. can also be used for English (by those who can read the documentation). There
  2225. are LaTeX 2.09 @code{documentstyle} and LaTeX 2e class files for both an
  2226. \"old\" and a \"new\" version of g-brief.")
  2227. (license license:lppl)))
  2228. (define-public texlive-latex-galois
  2229. (package
  2230. (name "texlive-latex-galois")
  2231. (version (number->string %texlive-revision))
  2232. (source (origin
  2233. (method svn-fetch)
  2234. (uri (texlive-ref "latex" "galois"))
  2235. (file-name (string-append name "-" version "-checkout"))
  2236. (sha256
  2237. (base32
  2238. "0d4l0msk8j5pi95xnmm9wygv1vbpkwkv5amx9l0km86cs79jpp1h"))))
  2239. (build-system texlive-build-system)
  2240. (arguments '(#:tex-directory "latex/galois"))
  2241. (home-page "http://www.ctan.org/pkg/galois")
  2242. (synopsis "Typeset Galois connections")
  2243. (description
  2244. "The package deals with connections in two-dimensional style, optionally
  2245. in colour.")
  2246. (license license:lppl)))
  2247. (define-public texlive-latex-gcite
  2248. (package
  2249. (name "texlive-latex-gcite")
  2250. (version (number->string %texlive-revision))
  2251. (source (origin
  2252. (method svn-fetch)
  2253. (uri (texlive-ref "latex" "gcite"))
  2254. (file-name (string-append name "-" version "-checkout"))
  2255. (sha256
  2256. (base32
  2257. "03g9by54yrypn599y98r1xh7qw0bbbmpzq0bfwpj6j5q5rkl1mfa"))))
  2258. (build-system texlive-build-system)
  2259. (arguments '(#:tex-directory "latex/gcite"))
  2260. (home-page "http://www.ctan.org/pkg/gcite")
  2261. (synopsis "Citations in a reader-friendly style")
  2262. (description
  2263. "The package allows citations in the German style, which is considered by
  2264. many to be particularly reader-friendly. The citation provides a small amount
  2265. of bibliographic information in a footnote on the page where each citation is
  2266. made. It combines a desire to eliminate unnecessary page-turning with the
  2267. look-up efficiency afforded by numeric citations. The package makes use of
  2268. BibLaTeX, and is considered experimental.")
  2269. (license license:lppl1.3+)))
  2270. (define-public texlive-latex-geometry
  2271. (package
  2272. (name "texlive-latex-geometry")
  2273. (version (number->string %texlive-revision))
  2274. (source (origin
  2275. (method svn-fetch)
  2276. (uri (texlive-ref "latex" "geometry"))
  2277. (file-name (string-append name "-" version "-checkout"))
  2278. (sha256
  2279. (base32
  2280. "1r2kfcwclg33yk5z8mvlagwxj7nr1mc3w4bdpmhrwv6dn8mrbvw8"))))
  2281. (build-system texlive-build-system)
  2282. (arguments '(#:tex-directory "latex/geometry"))
  2283. (home-page "http://www.ctan.org/pkg/geometry")
  2284. (synopsis "Flexible and complete interface to document dimensions")
  2285. (description
  2286. "This package provides an easy and flexible user interface to customize
  2287. page layout, implementing auto-centering and auto-balancing mechanisms so that
  2288. the users have only to give the least description for the page layout. The
  2289. package knows about all the standard paper sizes, so that the user need not
  2290. know what the nominal \"real\" dimensions of the paper are, just its standard
  2291. name (such as a4, letter, etc.). An important feature is the package's
  2292. ability to communicate the paper size it's set up to the output.")
  2293. (license license:lppl)))
  2294. (define-public texlive-latex-hyperref
  2295. (package
  2296. (name "texlive-latex-hyperref")
  2297. (version (number->string %texlive-revision))
  2298. (source (origin
  2299. (method svn-fetch)
  2300. (uri (texlive-ref "latex" "hyperref"))
  2301. (sha256
  2302. (base32
  2303. "03arf3xvz1jsbvlpgc5qxbxbl9wmk8k09cn6b8gv9pzgpjy4vx4j"))))
  2304. (build-system texlive-build-system)
  2305. (arguments
  2306. '(#:tex-directory "latex/hyperref"
  2307. #:phases
  2308. (modify-phases %standard-phases
  2309. (add-after 'unpack 'remove-hluatex.def
  2310. (lambda _
  2311. ;; This depends on hluatex.dtx, which does not exist and is
  2312. ;; nowhere to be found in the sources of the TeX Live
  2313. ;; distribution.
  2314. (substitute* "hyperref.ins"
  2315. (("\\\\file\\{hluatex.def\\}.*") ""))
  2316. #t)))))
  2317. ;; The package depends on the kvoptions, ltxcmds, and refcount packages,
  2318. ;; which are part of the oberdiek bundle.
  2319. (inputs
  2320. `(("texlive-latex-oberdiek" ,texlive-latex-oberdiek)))
  2321. (home-page "http://www.ctan.org/pkg/hyperref")
  2322. (synopsis "Extensive support for hypertext in LaTeX")
  2323. (description
  2324. "The @code{hyperref} package is used to handle cross-referencing commands
  2325. in LaTeX to produce hypertext links in the document. The package provides
  2326. backends for the @code{\\special} set defined for HyperTeX DVI processors; for
  2327. embedded @code{pdfmark} commands for processing by Acrobat
  2328. Distiller (@code{dvips} and Y&Y's @code{dvipsone}); for Y&Y's @code{dviwindo};
  2329. for PDF control within pdfTeX and @code{dvipdfm}; for TeX4ht; and for VTeX's
  2330. pdf and HTML backends. The package is distributed with the @code{backref} and
  2331. @code{nameref} packages, which make use of the facilities of @code{hyperref}.")
  2332. (license license:lppl1.3+)))
  2333. (define-public texlive-latex-mdwtools
  2334. (package
  2335. (name "texlive-latex-mdwtools")
  2336. (version (number->string %texlive-revision))
  2337. (source (origin
  2338. (method svn-fetch)
  2339. (uri (texlive-ref "latex" "mdwtools"))
  2340. (file-name (string-append name "-" version "-checkout"))
  2341. (sha256
  2342. (base32
  2343. "0caxs74hla28hc67csf5i5ahadx97w8vxh3mdmsprxbpd1mr7ssg"))))
  2344. (build-system texlive-build-system)
  2345. (arguments '(#:tex-directory "latex/mdwtools"))
  2346. (home-page "http://www.ctan.org/pkg/mdwtools")
  2347. (synopsis "Miscellaneous tools by Mark Wooding")
  2348. (description
  2349. "This collection of tools includes: @code{atsupport} for short commands
  2350. starting with @code{@@}, macros to sanitize the OT1 encoding of the
  2351. @code{cmtt} fonts; a @code{doafter} command; improved @code{footnote} support;
  2352. @code{mathenv} for various alignment in maths; list handling; @code{mdwmath}
  2353. which adds some minor changes to LaTeX maths; a rewrite of LaTeX's tabular and
  2354. array environments; verbatim handling; and syntax diagrams.")
  2355. (license license:gpl3+)))
  2356. (define-public texlive-latex-polyglossia
  2357. (package
  2358. (name "texlive-latex-polyglossia")
  2359. (version (number->string %texlive-revision))
  2360. (source (origin
  2361. (method svn-fetch)
  2362. (uri (texlive-ref "latex" "polyglossia"))
  2363. (file-name (string-append name "-" version "-checkout"))
  2364. (sha256
  2365. (base32
  2366. "09mvszd5qgqg4cfglpj5qxyzjz190ppb9p8gnsnjydwp1akvhayf"))))
  2367. (build-system texlive-build-system)
  2368. (arguments '(#:tex-directory "latex/polyglossia"))
  2369. (home-page "http://www.ctan.org/pkg/polyglossia")
  2370. (synopsis "Alternative to babel for XeLaTeX and LuaLaTeX")
  2371. (description
  2372. "This package provides a complete Babel replacement for users of LuaLaTeX
  2373. and XeLaTeX; it relies on the @code{fontspec} package, version 2.0 at least.")
  2374. (license license:lppl1.3+)))
  2375. (define-public texlive-latex-supertabular
  2376. (package
  2377. (name "texlive-latex-supertabular")
  2378. (version (number->string %texlive-revision))
  2379. (source (origin
  2380. (method svn-fetch)
  2381. (uri (texlive-ref "latex" "supertabular"))
  2382. (file-name (string-append name "-" version "-checkout"))
  2383. (sha256
  2384. (base32
  2385. "14b2bc7cqz4ckxxycim9sw6jkrr1pahivm1rdbpz5k6hl967w1s3"))))
  2386. (build-system texlive-build-system)
  2387. (arguments '(#:tex-directory "latex/supertabular"))
  2388. (home-page "http://www.ctan.org/pkg/supertabular")
  2389. (synopsis "Multi-page tables package")
  2390. (description
  2391. "This package was a predecessor of @code{longtable}; the newer
  2392. package (designed on quite different principles) is easier to use and more
  2393. flexible, in many cases, but supertabular retains its usefulness in a few
  2394. situations where longtable has problems.")
  2395. (license license:lppl1.3+)))
  2396. (define-public texlive-tex-texinfo
  2397. (package
  2398. (name "texlive-tex-texinfo")
  2399. (version (number->string %texlive-revision))
  2400. (source (origin
  2401. (method svn-fetch)
  2402. (uri (svn-reference
  2403. (url (string-append "svn://www.tug.org/texlive/tags/"
  2404. %texlive-tag "/Master/texmf-dist/"
  2405. "/tex/texinfo"))
  2406. (revision %texlive-revision)))
  2407. (sha256
  2408. (base32
  2409. "09zj2w3lx0y6i2syfjjgizahf86z301dw8p37ln6syfhqhzqdz46"))))
  2410. (build-system trivial-build-system)
  2411. (arguments
  2412. `(#:modules ((guix build utils))
  2413. #:builder
  2414. (begin
  2415. (use-modules (guix build utils))
  2416. (let ((target (string-append (assoc-ref %outputs "out")
  2417. "/share/texmf-dist/tex/texinfo")))
  2418. (mkdir-p target)
  2419. (copy-recursively (assoc-ref %build-inputs "source") target)
  2420. #t))))
  2421. (home-page "http://www.ctan.org/pkg/texinfo")
  2422. (synopsis "TeX macros to handle Texinfo files")
  2423. (description
  2424. "Texinfo is the preferred format for documentation in the GNU project;
  2425. the format may be used to produce online or printed output from a single
  2426. source. The Texinfo macros may be used to produce printable output using TeX;
  2427. other programs in the distribution offer online interactive use (with
  2428. hypertext linkages in some cases).")
  2429. (license license:gpl3+)))
  2430. (define-public texlive-latex-upquote
  2431. (package
  2432. (name "texlive-latex-upquote")
  2433. (version (number->string %texlive-revision))
  2434. (source (origin
  2435. (method svn-fetch)
  2436. (uri (texlive-ref "latex" "upquote"))
  2437. (file-name (string-append name "-" version "-checkout"))
  2438. (sha256
  2439. (base32
  2440. "0d1050i973wnxigy0xpky5l7vn4ff7ldhkjpdqsw5s653gagwixp"))))
  2441. (build-system texlive-build-system)
  2442. (arguments '(#:tex-directory "latex/upquote"))
  2443. (home-page "http://www.ctan.org/pkg/upquote")
  2444. (synopsis "Show \"realistic\" quotes in verbatim")
  2445. (description
  2446. "Typewriter-style fonts are best for program listings, but Computer
  2447. Modern Typewriter prints @code{`} and @code{'} as bent opening and closing
  2448. single quotes. Other fonts, and most programming languages, print @code{`} as
  2449. a grave accent and @code{'} upright; @code{'} is used both to open and to
  2450. close quoted strings. The package switches the typewriter font to Computer
  2451. Modern Typewriter in OT1 encoding, and modifies the behaviour of
  2452. @code{verbatim}, @code{verbatim*}, @code{\\verb}, and @code{\\verb*} to print
  2453. in the expected way. It does this regardless of other fonts or encodings in
  2454. use, so long as the package is loaded after the other fonts were. The package
  2455. does not affect @code{\\tt}, @code{\\texttt}, etc.")
  2456. (license license:lppl1.2+)))
  2457. (define-public texlive-latex-anysize
  2458. (package
  2459. (name "texlive-latex-anysize")
  2460. (version (number->string %texlive-revision))
  2461. (source (origin
  2462. (method svn-fetch)
  2463. (uri (svn-reference
  2464. (url (string-append "svn://www.tug.org/texlive/tags/"
  2465. %texlive-tag "/Master/texmf-dist/"
  2466. "/tex/latex/anysize"))
  2467. (revision %texlive-revision)))
  2468. (sha256
  2469. (base32
  2470. "19khwqjlvznc955sijhww3c4zbb0053rvzwv9nz738qknq7y18vb"))))
  2471. (build-system trivial-build-system)
  2472. (arguments
  2473. `(#:modules ((guix build utils))
  2474. #:builder
  2475. (begin
  2476. (use-modules (guix build utils))
  2477. (let ((target (string-append (assoc-ref %outputs "out")
  2478. "/share/texmf-dist/tex/latex/anysize")))
  2479. (mkdir-p target)
  2480. (copy-recursively (assoc-ref %build-inputs "source") target)
  2481. #t))))
  2482. (home-page "http://www.ctan.org/pkg/anysize")
  2483. (synopsis "Simple package to set up document margins")
  2484. (description
  2485. "This is a simple package to set up document margins. This package is
  2486. considered obsolete; alternatives are the @code{typearea} package from the
  2487. @code{koma-script} bundle, or the @code{geometry} package.")
  2488. (license license:public-domain)))
  2489. (define-public texlive-latex-appendix
  2490. (package
  2491. (name "texlive-latex-appendix")
  2492. (version (number->string %texlive-revision))
  2493. (source (origin
  2494. (method svn-fetch)
  2495. (uri (texlive-ref "latex" "appendix"))
  2496. (sha256
  2497. (base32
  2498. "0rxfpr8vq3brwx5rc7qn91ixlp9zva4zrms8a579fqa1g5yva7vg"))))
  2499. (build-system texlive-build-system)
  2500. (arguments '(#:tex-directory "latex/appendix"))
  2501. (home-page "http://www.ctan.org/pkg/appendix")
  2502. (synopsis "Extra control of appendices")
  2503. (description
  2504. "The appendix package provides various ways of formatting the titles of
  2505. appendices. Also (sub)appendices environments are provided that can be used,
  2506. for example, for per chapter/section appendices. An @code{appendices}
  2507. environment is provided which can be used instead of the @code{\\appendix}
  2508. command.")
  2509. (license license:lppl)))
  2510. (define-public texlive-latex-changebar
  2511. (package
  2512. (name "texlive-latex-changebar")
  2513. (version (number->string %texlive-revision))
  2514. (source (origin
  2515. (method svn-fetch)
  2516. (uri (texlive-ref "latex" "changebar"))
  2517. (sha256
  2518. (base32
  2519. "1ik4m8pzfsn1grlda6fniqqfwmgj7rfxwg63jdw0p0qv002vc7ik"))))
  2520. (build-system texlive-build-system)
  2521. (arguments '(#:tex-directory "latex/changebar"))
  2522. (home-page "http://www.ctan.org/pkg/changebar")
  2523. (synopsis "Generate changebars in LaTeX documents")
  2524. (description
  2525. "Identify areas of text to be marked with changebars with the
  2526. @code{\\cbstart} and @code{\\cbend} commands; the bars may be coloured. The
  2527. package uses 'drivers' to place the bars; the available drivers can work with
  2528. @code{dvitoln03}, @code{dvitops}, @code{dvips}, the emTeX and TeXtures DVI
  2529. drivers, and VTeX and pdfTeX.")
  2530. (license license:lppl)))
  2531. (define-public texlive-latex-cmap
  2532. (package
  2533. (name "texlive-latex-cmap")
  2534. (version (number->string %texlive-revision))
  2535. (source (origin
  2536. (method svn-fetch)
  2537. (uri (svn-reference
  2538. (url (string-append "svn://www.tug.org/texlive/tags/"
  2539. %texlive-tag "/Master/texmf-dist/"
  2540. "/tex/latex/cmap"))
  2541. (revision %texlive-revision)))
  2542. (file-name (string-append name "-" version "-checkout"))
  2543. (sha256
  2544. (base32
  2545. "1s1rv6zgw105w2j6ffhnk914qrix87y1ndzri1q72g2kbr91zlbg"))))
  2546. (build-system trivial-build-system)
  2547. (arguments
  2548. `(#:modules ((guix build utils))
  2549. #:builder
  2550. (begin
  2551. (use-modules (guix build utils))
  2552. (let ((target (string-append (assoc-ref %outputs "out")
  2553. "/share/texmf-dist/tex/latex/cmap")))
  2554. (mkdir-p target)
  2555. (copy-recursively (assoc-ref %build-inputs "source") target)
  2556. #t))))
  2557. (home-page "https://www.tug.org/svn/texlive/tags/texlive-2017.1/\
  2558. Master/texmf-dist/tex/latex/cmap/")
  2559. (synopsis "CMap support for PDF files")
  2560. (description
  2561. "This package embeds CMap tables into PDF files to make search and
  2562. copy-and-paste functions work properly.")
  2563. (license license:lppl)))
  2564. (define-public texlive-latex-colortbl
  2565. (package
  2566. (name "texlive-latex-colortbl")
  2567. (version (number->string %texlive-revision))
  2568. (source (origin
  2569. (method svn-fetch)
  2570. (uri (texlive-ref "latex" "colortbl"))
  2571. (sha256
  2572. (base32
  2573. "190pmq8la2rq07xry8bn8z8yywzxv6fqyqaj7yjfj5rgw6x0mas8"))))
  2574. (build-system texlive-build-system)
  2575. (arguments '(#:tex-directory "latex/colortbl"))
  2576. (home-page "http://www.ctan.org/pkg/colortbl")
  2577. (synopsis "Add colour to LaTeX tables")
  2578. (description
  2579. "This package allows rows, columns, and even individual cells in LaTeX
  2580. tables to be coloured.")
  2581. (license license:lppl)))
  2582. (define-public texlive-latex-fancybox
  2583. (package
  2584. (name "texlive-latex-fancybox")
  2585. (version (number->string %texlive-revision))
  2586. (source (origin
  2587. (method svn-fetch)
  2588. (uri (svn-reference
  2589. (url (string-append "svn://www.tug.org/texlive/tags/"
  2590. %texlive-tag "/Master/texmf-dist/"
  2591. "/tex/latex/fancybox"))
  2592. (revision %texlive-revision)))
  2593. (sha256
  2594. (base32
  2595. "0smmnaad2q8qwicay1frri990lv65l0k8cwzsvdsyp3jk8kp042w"))))
  2596. (build-system trivial-build-system)
  2597. (arguments
  2598. `(#:modules ((guix build utils))
  2599. #:builder
  2600. (begin
  2601. (use-modules (guix build utils))
  2602. (let ((target (string-append (assoc-ref %outputs "out")
  2603. "/share/texmf-dist/tex/latex/fancybox")))
  2604. (mkdir-p target)
  2605. (copy-recursively (assoc-ref %build-inputs "source") target)
  2606. #t))))
  2607. (home-page "http://www.ctan.org/pkg/fancybox")
  2608. (synopsis "Variants of \\fbox and other games with boxes")
  2609. (description
  2610. "This package provides variants of @code{\\fbox}: @code{\\shadowbox},
  2611. @code{\\doublebox}, @code{\\ovalbox}, @code{\\Ovalbox}, with helpful tools for
  2612. using box macros and flexible verbatim macros. You can box mathematics,
  2613. floats, center, flushleft, and flushright, lists, and pages.")
  2614. (license license:lppl1.2+)))
  2615. (define-public texlive-latex-fancyhdr
  2616. (package
  2617. (name "texlive-latex-fancyhdr")
  2618. (version (number->string %texlive-revision))
  2619. (source (origin
  2620. (method svn-fetch)
  2621. (uri (svn-reference
  2622. (url (string-append "svn://www.tug.org/texlive/tags/"
  2623. %texlive-tag "/Master/texmf-dist/"
  2624. "/tex/latex/fancyhdr"))
  2625. (revision %texlive-revision)))
  2626. (sha256
  2627. (base32
  2628. "04h430agf8aj7ziwyb46xpk95c605rjk1wzhr63m6ylipihidlgw"))))
  2629. (build-system trivial-build-system)
  2630. (arguments
  2631. `(#:modules ((guix build utils))
  2632. #:builder
  2633. (begin
  2634. (use-modules (guix build utils))
  2635. (let ((target (string-append (assoc-ref %outputs "out")
  2636. "/share/texmf-dist/tex/latex/fancyhdr")))
  2637. (mkdir-p target)
  2638. (copy-recursively (assoc-ref %build-inputs "source") target)
  2639. #t))))
  2640. (home-page "http://www.ctan.org/pkg/fancyhdr")
  2641. (synopsis "Extensive control of page headers and footers in LaTeX2e")
  2642. (description
  2643. "The package provides extensive facilities, both for constructing headers
  2644. and footers, and for controlling their use (for example, at times when LaTeX
  2645. would automatically change the heading style in use).")
  2646. (license license:lppl)))
  2647. (define-public texlive-latex-fancyvrb
  2648. (package
  2649. (name "texlive-latex-fancyvrb")
  2650. (version (number->string %texlive-revision))
  2651. (source (origin
  2652. (method svn-fetch)
  2653. (uri (texlive-ref "latex" "fancyvrb"))
  2654. (sha256
  2655. (base32
  2656. "03l7140y031rr14h02i4z9zqsfvrbn7wzwxbjsrjcgrk6sdr71wv"))))
  2657. (build-system texlive-build-system)
  2658. (arguments
  2659. '(#:build-targets '("fancyvrb.ins") ; fvrb-ex.ins cannot be built
  2660. #:tex-directory "latex/fancyvrb"))
  2661. (home-page "http://www.ctan.org/pkg/fancyvrb")
  2662. (synopsis "Sophisticated verbatim text")
  2663. (description
  2664. "This package provides tools for flexible handling of verbatim text
  2665. including: verbatim commands in footnotes; a variety of verbatim environments
  2666. with many parameters; ability to define new customized verbatim environments;
  2667. save and restore verbatim text and environments; write and read files in
  2668. verbatim mode; build \"example\" environments (showing both result and
  2669. verbatim source).")
  2670. (license license:lppl1.0+)))
  2671. (define-public texlive-latex-float
  2672. (package
  2673. (name "texlive-latex-float")
  2674. (version (number->string %texlive-revision))
  2675. (source (origin
  2676. (method svn-fetch)
  2677. (uri (texlive-ref "latex" "float"))
  2678. (sha256
  2679. (base32
  2680. "0nbl7wylkv22fcdv4p8byhhj575fli6jnqjpkhrkbv8dzwah84nq"))))
  2681. (build-system texlive-build-system)
  2682. (arguments '(#:tex-directory "latex/float"))
  2683. (home-page "http://www.ctan.org/pkg/float")
  2684. (synopsis "Improved interface for floating objects")
  2685. (description
  2686. "This package improves the interface for defining floating objects such
  2687. as figures and tables. It introduces the boxed float, the ruled float and the
  2688. plaintop float. You can define your own floats and improve the behaviour of
  2689. the old ones. The package also provides the @code{H} float modifier option of
  2690. the obsolete @code{here} package. You can select this as automatic default
  2691. with @code{\\floatplacement{figure}{H}}.")
  2692. (license license:lppl)))
  2693. (define-public texlive-latex-footmisc
  2694. (package
  2695. (name "texlive-latex-footmisc")
  2696. (version (number->string %texlive-revision))
  2697. (source (origin
  2698. (method svn-fetch)
  2699. (uri (texlive-ref "latex" "footmisc"))
  2700. (sha256
  2701. (base32
  2702. "03x61wwql8nh6zrqiiiq3rb0x7m3pn48c606zapy19y21fybwdxs"))))
  2703. (build-system texlive-build-system)
  2704. (arguments '(#:tex-directory "latex/footmisc"))
  2705. (home-page "http://www.ctan.org/pkg/footmisc")
  2706. (synopsis "Range of footnote options")
  2707. (description
  2708. "This is a collection of ways to change the typesetting of footnotes.
  2709. The package provides means of changing the layout of the footnotes themselves,
  2710. a way to number footnotes per page, to make footnotes disappear in a
  2711. \"moving\" argument, and to deal with multiple references to footnotes from
  2712. the same place. The package also has a range of techniques for labelling
  2713. footnotes with symbols rather than numbers.")
  2714. (license license:lppl1.3+)))
  2715. (define-public texlive-latex-listings
  2716. (package
  2717. (name "texlive-latex-listings")
  2718. (version (number->string %texlive-revision))
  2719. (source (origin
  2720. (method svn-fetch)
  2721. (uri (texlive-ref "latex" "listings"))
  2722. (sha256
  2723. (base32
  2724. "1nsn9wp3wl12b36c0sqrim33lf33cr5wky0h4ncnw8lvqgm7h8wf"))))
  2725. (build-system texlive-build-system)
  2726. (arguments
  2727. '(#:tex-directory "latex/listings"
  2728. #:build-targets '("listings.ins")))
  2729. (home-page "http://www.ctan.org/pkg/listings")
  2730. (synopsis "Typeset source code listings using LaTeX")
  2731. (description
  2732. "The package enables the user to typeset programs (programming code)
  2733. within LaTeX; the source code is read directly by TeX---no front-end processor
  2734. is needed. Keywords, comments and strings can be typeset using different
  2735. styles. Support for @code{hyperref} is provided.")
  2736. (license license:lppl1.3+)))
  2737. (define-public texlive-latex-jknapltx
  2738. (package
  2739. (name "texlive-latex-jknapltx")
  2740. (version (number->string %texlive-revision))
  2741. (source (origin
  2742. (method svn-fetch)
  2743. (uri (svn-reference
  2744. (url (string-append "svn://www.tug.org/texlive/tags/"
  2745. %texlive-tag "/Master/texmf-dist/"
  2746. "/tex/latex/jknapltx"))
  2747. (revision %texlive-revision)))
  2748. (sha256
  2749. (base32
  2750. "0m034x72f2g07icr50gacyxfb9g1lz2rmqh4kqr1qjb421x2kds9"))))
  2751. (build-system trivial-build-system)
  2752. (arguments
  2753. `(#:modules ((guix build utils))
  2754. #:builder
  2755. (begin
  2756. (use-modules (guix build utils))
  2757. (let ((target (string-append (assoc-ref %outputs "out")
  2758. "/share/texmf-dist/tex/latex/jknapltx")))
  2759. (mkdir-p target)
  2760. (copy-recursively (assoc-ref %build-inputs "source") target)
  2761. #t))))
  2762. (home-page "http://www.ctan.org/pkg/jknappen")
  2763. (synopsis "Miscellaneous packages by Joerg Knappen")
  2764. (description
  2765. "This package provides miscellaneous macros by Joerg Knappen, including:
  2766. represent counters in greek; Maxwell's non-commutative division;
  2767. @code{latin1jk}, @code{latin2jk} and @code{latin3jk}, which are
  2768. @code{inputenc} definition files that allow verbatim input in the respective
  2769. ISO Latin codes; blackboard bold fonts in maths; use of RSFS fonts in maths;
  2770. extra alignments for @code{\\parboxes}; swap Roman and Sans fonts;
  2771. transliterate semitic languages; patches to make (La)TeX formulae embeddable
  2772. in SGML; use maths minus in text as appropriate; simple Young tableaux.")
  2773. (license license:gpl2)))
  2774. (define-public texlive-fonts-ec
  2775. (package
  2776. (name "texlive-fonts-ec")
  2777. (version (number->string %texlive-revision))
  2778. (source (origin
  2779. (method svn-fetch)
  2780. (uri (svn-reference
  2781. (url (string-append "svn://www.tug.org/texlive/tags/"
  2782. %texlive-tag "/Master/texmf-dist/"
  2783. "/fonts/source/jknappen/ec/"))
  2784. (revision %texlive-revision)))
  2785. (sha256
  2786. (base32
  2787. "12av65fbz9xiashm09c9m1fj1mijxls5xspd7652ry1n5s0nixy4"))))
  2788. (build-system gnu-build-system)
  2789. (arguments
  2790. `(#:modules ((guix build gnu-build-system)
  2791. (guix build utils)
  2792. (srfi srfi-1)
  2793. (srfi srfi-26))
  2794. #:tests? #f ; no tests
  2795. #:phases
  2796. (modify-phases %standard-phases
  2797. (delete 'configure)
  2798. (replace 'build
  2799. (lambda* (#:key inputs #:allow-other-keys)
  2800. (let ((mf (assoc-ref inputs "texlive-metafont-base")))
  2801. ;; Tell mf where to find mf.base
  2802. (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
  2803. ;; Tell mf where to look for source files
  2804. (setenv "MFINPUTS"
  2805. (string-append (getcwd) ":"
  2806. mf "/share/texmf-dist/metafont/base:"
  2807. (assoc-ref inputs "texlive-fonts-cm")
  2808. "/share/texmf-dist/fonts/source/public/cm")))
  2809. (mkdir "build")
  2810. (every (lambda (font)
  2811. (format #t "building font ~a\n" font)
  2812. (zero? (system* "mf" "-progname=mf"
  2813. "-output-directory=build"
  2814. (string-append "\\"
  2815. "mode:=ljfour; "
  2816. "mag:=1; "
  2817. "batchmode; "
  2818. "input " (basename font ".mf")))))
  2819. (find-files "." "[0-9]+\\.mf$"))))
  2820. (replace 'install
  2821. (lambda* (#:key outputs #:allow-other-keys)
  2822. (let* ((out (assoc-ref outputs "out"))
  2823. (tfm (string-append
  2824. out "/share/texmf-dist/fonts/tfm/jknappen/ec"))
  2825. (mf (string-append
  2826. out "/share/texmf-dist/fonts/source/jknappen/ec")))
  2827. (for-each (cut install-file <> tfm)
  2828. (find-files "build" "\\.*"))
  2829. (for-each (cut install-file <> mf)
  2830. (find-files "." "\\.mf"))
  2831. #t))))))
  2832. (native-inputs
  2833. `(("texlive-bin" ,texlive-bin)
  2834. ("texlive-metafont-base" ,texlive-metafont-base)
  2835. ("texlive-fonts-cm" ,texlive-fonts-cm)))
  2836. (home-page "http://www.ctan.org/pkg/ec")
  2837. (synopsis "Computer modern fonts in T1 and TS1 encodings")
  2838. (description
  2839. "The EC fonts are European Computer Modern Fonts, supporting the complete
  2840. LaTeX T1 encoding defined at the 1990 TUG conference hold at Cork/Ireland.
  2841. These fonts are intended to be stable with no changes being made to the tfm
  2842. files. The set also contains a Text Companion Symbol font, called @code{tc},
  2843. featuring many useful characters needed in text typesetting, for example
  2844. oldstyle digits, currency symbols (including the newly created Euro symbol),
  2845. the permille sign, copyright, trade mark and servicemark as well as a copyleft
  2846. sign, and many others. Recent releases of LaTeX2e support the EC fonts. The
  2847. EC fonts supersede the preliminary version released as the DC fonts. The
  2848. fonts are available in (traced) Adobe Type 1 format, as part of the
  2849. @code{cm-super} bundle. The other Computer Modern-style T1-encoded Type 1
  2850. set, Latin Modern, is not actually a direct development of the EC set, and
  2851. differs from the EC in a number of particulars.")
  2852. (license (license:fsf-free "https://www.tug.org/svn/texlive/tags/\
  2853. texlive-2017.1/Master/texmf-dist/doc/fonts/ec/copyrite.txt"))))
  2854. (define-public texlive-fonts-rsfs
  2855. (package
  2856. (name "texlive-fonts-rsfs")
  2857. (version (number->string %texlive-revision))
  2858. (source (origin
  2859. (method svn-fetch)
  2860. (uri (svn-reference
  2861. (url (string-append "svn://www.tug.org/texlive/tags/"
  2862. %texlive-tag "/Master/texmf-dist/"
  2863. "/fonts/source/public/rsfs/"))
  2864. (revision %texlive-revision)))
  2865. (sha256
  2866. (base32
  2867. "0r12pn02r4a955prcvq0048nifh86ihlcgvw3pppqqvfngv34l5h"))))
  2868. (build-system gnu-build-system)
  2869. (arguments
  2870. `(#:modules ((guix build gnu-build-system)
  2871. (guix build utils)
  2872. (srfi srfi-1)
  2873. (srfi srfi-26))
  2874. #:tests? #f ; no tests
  2875. #:phases
  2876. (modify-phases %standard-phases
  2877. (delete 'configure)
  2878. (replace 'build
  2879. (lambda* (#:key inputs #:allow-other-keys)
  2880. (let ((mf (assoc-ref inputs "texlive-metafont-base")))
  2881. ;; Tell mf where to find mf.base
  2882. (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
  2883. ;; Tell mf where to look for source files
  2884. (setenv "MFINPUTS"
  2885. (string-append (getcwd) ":"
  2886. mf "/share/texmf-dist/metafont/base:"
  2887. (assoc-ref inputs "texlive-fonts-cm")
  2888. "/share/texmf-dist/fonts/source/public/cm")))
  2889. (mkdir "build")
  2890. (every (lambda (font)
  2891. (format #t "building font ~a\n" font)
  2892. (zero? (system* "mf" "-progname=mf"
  2893. "-output-directory=build"
  2894. (string-append "\\"
  2895. "mode:=ljfour; "
  2896. "mag:=1; "
  2897. "batchmode; "
  2898. "input " (basename font ".mf")))))
  2899. (find-files "." "[0-9]+\\.mf$"))))
  2900. (replace 'install
  2901. (lambda* (#:key outputs #:allow-other-keys)
  2902. (let* ((out (assoc-ref outputs "out"))
  2903. (tfm (string-append
  2904. out "/share/texmf-dist/fonts/tfm/public/rsfs"))
  2905. (mf (string-append
  2906. out "/share/texmf-dist/fonts/source/public/rsfs")))
  2907. (for-each (cut install-file <> tfm)
  2908. (find-files "build" "\\.*"))
  2909. (for-each (cut install-file <> mf)
  2910. (find-files "." "\\.mf"))
  2911. #t))))))
  2912. (native-inputs
  2913. `(("texlive-bin" ,texlive-bin)
  2914. ("texlive-metafont-base" ,texlive-metafont-base)
  2915. ("texlive-fonts-cm" ,texlive-fonts-cm)))
  2916. (home-page "http://www.ctan.org/pkg/rsfs")
  2917. (synopsis "Ralph Smith's Formal Script font")
  2918. (description
  2919. "The fonts provide uppercase formal script letters for use as symbols in
  2920. scientific and mathematical typesetting (in contrast to the informal script
  2921. fonts such as that used for the calligraphic symbols in the TeX maths symbol
  2922. font). The fonts are provided as Metafont source, and as derived Adobe Type 1
  2923. format. LaTeX support, for using these fonts in mathematics, is available via
  2924. one of the packages @code{calrsfs} and @code{mathrsfs}.")
  2925. (license (license:fsf-free "http://mirrors.ctan.org/fonts/rsfs/README"))))
  2926. (define-public texlive-latex-eso-pic
  2927. (package
  2928. (name "texlive-latex-eso-pic")
  2929. (version (number->string %texlive-revision))
  2930. (source (origin
  2931. (method svn-fetch)
  2932. (uri (texlive-ref "latex" "eso-pic"))
  2933. (sha256
  2934. (base32
  2935. "1xvmms28mvvfpks9x7lfya2xhh5k8jy3qnlih1mzcnf156xnb89z"))))
  2936. (build-system texlive-build-system)
  2937. (arguments '(#:tex-directory "latex/eso-pic"))
  2938. (home-page "http://www.ctan.org/pkg/eso-pic")
  2939. (synopsis "Add picture commands (or backgrounds) to every page")
  2940. (description
  2941. "The package adds one or more user commands to LaTeX's @code{shipout}
  2942. routine, which may be used to place the output at fixed positions. The
  2943. @code{grid} option may be used to find the correct places.")
  2944. (license license:lppl1.3+)))
  2945. (define-public texlive-latex-eepic
  2946. (package
  2947. (name "texlive-latex-eepic")
  2948. (version (number->string %texlive-revision))
  2949. (source (origin
  2950. (method svn-fetch)
  2951. (uri (svn-reference
  2952. (url (string-append "svn://www.tug.org/texlive/tags/"
  2953. %texlive-tag "/Master/texmf-dist/"
  2954. "/tex/latex/eepic"))
  2955. (revision %texlive-revision)))
  2956. (sha256
  2957. (base32
  2958. "1c68gvh021pvybg07apsd2xhq2ljbg80kq94wh71drdga3c2zqjw"))))
  2959. (build-system trivial-build-system)
  2960. (arguments
  2961. `(#:modules ((guix build utils))
  2962. #:builder
  2963. (begin
  2964. (use-modules (guix build utils))
  2965. (let ((target (string-append (assoc-ref %outputs "out")
  2966. "/share/texmf-dist/tex/latex/eepic")))
  2967. (mkdir-p target)
  2968. (copy-recursively (assoc-ref %build-inputs "source") target)
  2969. #t))))
  2970. (home-page "http://www.ctan.org/pkg/eepic")
  2971. (synopsis "Extensions to epic and the LaTeX drawing tools")
  2972. (description
  2973. "Extensions to @code{epic} and the LaTeX picture drawing environment,
  2974. include the drawing of lines at any slope, the drawing of circles in any
  2975. radii, and the drawing of dotted and dashed lines much faster with much less
  2976. TeX memory, and providing several new commands for drawing ellipses, arcs,
  2977. splines, and filled circles and ellipses. The package uses @code{tpic}
  2978. @code{\\special} commands.")
  2979. (license license:public-domain)))
  2980. (define-public texlive-latex-enumitem
  2981. (package
  2982. (name "texlive-latex-enumitem")
  2983. (version (number->string %texlive-revision))
  2984. (source (origin
  2985. (method svn-fetch)
  2986. (uri (svn-reference
  2987. (url (string-append "svn://www.tug.org/texlive/tags/"
  2988. %texlive-tag "/Master/texmf-dist/"
  2989. "/tex/latex/enumitem"))
  2990. (revision %texlive-revision)))
  2991. (file-name (string-append name "-" version "-checkout"))
  2992. (sha256
  2993. (base32
  2994. "0q24b1bkdi9l6bw787bpggww83jh2vj8955aw2m5yccqbx4vgr5r"))))
  2995. (build-system trivial-build-system)
  2996. (arguments
  2997. `(#:modules ((guix build utils))
  2998. #:builder
  2999. (begin
  3000. (use-modules (guix build utils))
  3001. (let ((target (string-append (assoc-ref %outputs "out")
  3002. "/share/texmf-dist/tex/latex/enumitem")))
  3003. (mkdir-p target)
  3004. (copy-recursively (assoc-ref %build-inputs "source") target)
  3005. #t))))
  3006. (home-page "http://www.ctan.org/pkg/enumitem")
  3007. (synopsis "Customize basic list environments")
  3008. (description
  3009. "This package is intended to ease customizing the three basic list
  3010. environments: @code{enumerate}, @code{itemize} and @code{description}. It
  3011. extends their syntax to allow an optional argument where a set of parameters
  3012. in the form @code{key=value} are available, for example:
  3013. @code{\\begin{itemize}[itemsep=1ex,leftmargin=1cm]}.")
  3014. (license license:lppl1.3+)))
  3015. (define-public texlive-latex-multirow
  3016. (package
  3017. (name "texlive-latex-multirow")
  3018. (version (number->string %texlive-revision))
  3019. (source (origin
  3020. (method svn-fetch)
  3021. (uri (texlive-ref "latex" "multirow"))
  3022. (sha256
  3023. (base32
  3024. "0qlxy47f1f8plgch3jqfsnrdgpyz20sz46yp33i2jwvf9hvfczf0"))))
  3025. (build-system texlive-build-system)
  3026. (arguments '(#:tex-directory "latex/multirow"))
  3027. (home-page "http://www.ctan.org/pkg/multirow")
  3028. (synopsis "Create tabular cells spanning multiple rows")
  3029. (description
  3030. "The package provides tools for creating tabular cells spanning multiple
  3031. rows. It has a lot of flexibility, including an option for specifying an
  3032. entry at the \"natural\" width of its text.")
  3033. (license license:lppl1.3+)))
  3034. (define-public texlive-latex-overpic
  3035. (package
  3036. (name "texlive-latex-overpic")
  3037. (version (number->string %texlive-revision))
  3038. (source (origin
  3039. (method svn-fetch)
  3040. (uri (svn-reference
  3041. (url (string-append "svn://www.tug.org/texlive/tags/"
  3042. %texlive-tag "/Master/texmf-dist/"
  3043. "/tex/latex/overpic"))
  3044. (revision %texlive-revision)))
  3045. (sha256
  3046. (base32
  3047. "0m29q9qdb00558b7g2i7iw6w62n5s46yx81j8m99qkv77magk4fm"))))
  3048. (build-system trivial-build-system)
  3049. (arguments
  3050. `(#:modules ((guix build utils))
  3051. #:builder
  3052. (begin
  3053. (use-modules (guix build utils))
  3054. (let ((target (string-append (assoc-ref %outputs "out")
  3055. "/share/texmf-dist/tex/latex/overpic")))
  3056. (mkdir-p target)
  3057. (copy-recursively (assoc-ref %build-inputs "source") target)
  3058. #t))))
  3059. (home-page "http://www.ctan.org/pkg/overpic")
  3060. (synopsis "Combine LaTeX commands over included graphics")
  3061. (description
  3062. "The @code{overpic} environment is a cross between the LaTeX
  3063. @code{picture} environment and the @code{\\includegraphics} command of
  3064. @code{graphicx}. The resulting picture environment has the same dimensions as
  3065. the included graphic. LaTeX commands can be placed on the graphic at defined
  3066. positions; a grid for orientation is available.")
  3067. (license license:lppl1.0+)))
  3068. (define-public texlive-latex-parskip
  3069. (package
  3070. (name "texlive-latex-parskip")
  3071. (version (number->string %texlive-revision))
  3072. (source (origin
  3073. (method svn-fetch)
  3074. (uri (svn-reference
  3075. (url (string-append "svn://www.tug.org/texlive/tags/"
  3076. %texlive-tag "/Master/texmf-dist/"
  3077. "/tex/latex/parskip"))
  3078. (revision %texlive-revision)))
  3079. (file-name (string-append name "-" version "-checkout"))
  3080. (sha256
  3081. (base32
  3082. "14r6h9hqb0qgccxj5l1208694fx8sb8avmgzps36lsbbpszl7i7m"))))
  3083. (build-system trivial-build-system)
  3084. (arguments
  3085. `(#:modules ((guix build utils))
  3086. #:builder
  3087. (begin
  3088. (use-modules (guix build utils))
  3089. (let ((target (string-append (assoc-ref %outputs "out")
  3090. "/share/texmf-dist/tex/latex/parskip")))
  3091. (mkdir-p target)
  3092. (copy-recursively (assoc-ref %build-inputs "source") target)
  3093. #t))))
  3094. (home-page "http://www.ctan.org/pkg/parskip")
  3095. (synopsis "Layout with zero \\parindent, non-zero \\parskip")
  3096. (description
  3097. "Simply changing @code{\\parskip} and @code{\\parindent} leaves a layout
  3098. that is untidy; this package (though it is no substitute for a properly
  3099. designed class) helps alleviate this untidiness.")
  3100. (license license:lppl)))
  3101. (define-public texlive-latex-pdfpages
  3102. (package
  3103. (name "texlive-latex-pdfpages")
  3104. (version (number->string %texlive-revision))
  3105. (source (origin
  3106. (method svn-fetch)
  3107. (uri (texlive-ref "latex" "pdfpages"))
  3108. (sha256
  3109. (base32
  3110. "06p5smfq66559ppdnmkl3hp8534x84ywbscimsiir4gllpya3i9h"))))
  3111. (build-system texlive-build-system)
  3112. (arguments '(#:tex-directory "latex/pdfpages"))
  3113. (home-page "http://www.ctan.org/pkg/pdfpages")
  3114. (synopsis "Include PDF documents in LaTeX")
  3115. (description
  3116. "This package simplifies the inclusion of external multi-page PDF
  3117. documents in LaTeX documents. Pages may be freely selected and it is possible
  3118. to put several logical pages onto each sheet of paper. Furthermore a lot of
  3119. hypertext features like hyperlinks and article threads are provided. The
  3120. package supports pdfTeX (pdfLaTeX) and VTeX. With VTeX it is even possible to
  3121. use this package to insert PostScript files, in addition to PDF files.")
  3122. (license license:lppl1.3+)))
  3123. (define-public texlive-fonts-stmaryrd
  3124. (package
  3125. (name "texlive-fonts-stmaryrd")
  3126. (version (number->string %texlive-revision))
  3127. (source (origin
  3128. (method svn-fetch)
  3129. (uri (texlive-ref "fonts" "stmaryrd"))
  3130. (sha256
  3131. (base32
  3132. "08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
  3133. (build-system texlive-build-system)
  3134. (arguments
  3135. '(#:tex-directory "latex/stmaryrd"
  3136. #:phases
  3137. (modify-phases %standard-phases
  3138. (add-after 'configure 'patch-ins
  3139. (lambda _
  3140. (substitute* "stmaryrd.ins"
  3141. (("^%% LaTeX2e.*") "\\input docstrip\n")
  3142. (("fontdef\\}\\}" line)
  3143. (string-append line "\n\\endbatchfile")))
  3144. #t)))))
  3145. (home-page "http://www.ctan.org/pkg/stmaryrd")
  3146. (synopsis "St Mary Road symbols for theoretical computer science")
  3147. (description
  3148. "The fonts were originally distributed as Metafont sources only, but
  3149. Adobe Type 1 versions are also now available. Macro support is provided for
  3150. use under LaTeX; the package supports the @code{only} option (provided by the
  3151. @code{somedefs} package) to restrict what is loaded, for those who don't need
  3152. the whole font.")
  3153. (license license:lppl)))
  3154. (define-public texlive-latex-subfigure
  3155. (package
  3156. (name "texlive-latex-subfigure")
  3157. (version (number->string %texlive-revision))
  3158. (source (origin
  3159. (method svn-fetch)
  3160. (uri (texlive-ref "latex" "subfigure"))
  3161. (sha256
  3162. (base32
  3163. "15spcl5wb7w269qd6y596vp4yi8sa5ppcx8w4z2i9kyp02r3a0yb"))))
  3164. (build-system texlive-build-system)
  3165. (arguments '(#:tex-directory "latex/subfigure"))
  3166. (home-page "http://www.ctan.org/pkg/subfigure")
  3167. (synopsis "Figures divided into subfigures")
  3168. (description
  3169. "This (deprecated) package provides support for the manipulation and
  3170. reference of small or \"sub\" figures and tables within a single figure or
  3171. table environment. It is convenient to use this package when your subfigures
  3172. are to be separately captioned, referenced, or are to be included in the
  3173. List-of-Figures. A new @code{\\subfigure} command is introduced which can be
  3174. used inside a figure environment for each subfigure. An optional first
  3175. argument is used as the caption for that subfigure. The package is now
  3176. considered obsolete: it was superseded by @code{subfig}, but users may find
  3177. the more recent @code{subcaption} package more satisfactory.")
  3178. (license license:lppl)))
  3179. (define-public texlive-latex-tabulary
  3180. (package
  3181. (name "texlive-latex-tabulary")
  3182. (version (number->string %texlive-revision))
  3183. (source (origin
  3184. (method svn-fetch)
  3185. (uri (texlive-ref "latex" "tabulary"))
  3186. (file-name (string-append name "-" version "-checkout"))
  3187. (sha256
  3188. (base32
  3189. "1adkdx2zkk42g82nqf57lv1nc1z7kwl13jmy8vpcsizsa0xdnx9n"))))
  3190. (build-system texlive-build-system)
  3191. (arguments '(#:tex-directory "latex/tabulary"))
  3192. (home-page "http://www.ctan.org/pkg/tabulary")
  3193. (synopsis "Tabular with variable width columns balanced")
  3194. (description
  3195. "The package defines a @code{tabular*}-like environment, @code{tabulary},
  3196. taking a \"total width\" argument as well as the column specifications. The
  3197. environment uses column types @code{L}, @code{C}, @code{R} and @code{J} for
  3198. variable width columns (@code{\\raggedright}, @code{\\centering},
  3199. @code{\\raggedleft}, and normally justified). In contrast to
  3200. @code{tabularx}'s @code{X} columns, the width of each column is weighted
  3201. according to the natural width of the widest cell in the column.")
  3202. (license license:lppl)))
  3203. (define-public texlive-latex-threeparttable
  3204. (package
  3205. (name "texlive-latex-threeparttable")
  3206. (version (number->string %texlive-revision))
  3207. (source (origin
  3208. (method svn-fetch)
  3209. (uri (svn-reference
  3210. (url (string-append "svn://www.tug.org/texlive/tags/"
  3211. %texlive-tag "/Master/texmf-dist/"
  3212. "/tex/latex/threeparttable"))
  3213. (revision %texlive-revision)))
  3214. (sha256
  3215. (base32
  3216. "10vy9k150w2lviw8h22s2mcykff38xci653m5823s2vv44pwbmzq"))))
  3217. (build-system trivial-build-system)
  3218. (arguments
  3219. `(#:modules ((guix build utils))
  3220. #:builder
  3221. (begin
  3222. (use-modules (guix build utils))
  3223. (let ((target (string-append (assoc-ref %outputs "out")
  3224. "/share/texmf-dist/tex/latex/threeparttable")))
  3225. (mkdir-p target)
  3226. (copy-recursively (assoc-ref %build-inputs "source") target)
  3227. #t))))
  3228. (home-page "http://www.ctan.org/pkg/threeparttable")
  3229. (synopsis "Tables with captions and notes all the same width")
  3230. (description
  3231. "This package facilitates tables with titles (captions) and notes. The
  3232. title and notes are given a width equal to the body of the table (a
  3233. @code{tabular} environment). By itself, a @code{threeparttable} does not
  3234. float, but you can put it in a @code{table} or a @code{table*} or some other
  3235. environment.")
  3236. (license (license:fsf-free "file://threeparttable.sty"))))
  3237. (define-public texlive-fonts-txfonts
  3238. (package
  3239. (name "texlive-fonts-txfonts")
  3240. (version (number->string %texlive-revision))
  3241. (source (origin
  3242. (method svn-fetch)
  3243. (uri (svn-reference
  3244. (url (string-append "svn://www.tug.org/texlive/tags/"
  3245. %texlive-tag "/Master/texmf-dist/"
  3246. "/tex/latex/txfonts"))
  3247. (revision %texlive-revision)))
  3248. (file-name (string-append name "-" version "-checkout"))
  3249. (sha256
  3250. (base32
  3251. "0jl921qdphg8i7bkfprackn3xd4gmvxckc526nmzqsmahqkavgg2"))))
  3252. (build-system trivial-build-system)
  3253. (arguments
  3254. `(#:modules ((guix build utils)
  3255. (ice-9 match))
  3256. #:builder
  3257. (begin
  3258. (use-modules (guix build utils)
  3259. (ice-9 match))
  3260. (let ((root (string-append (assoc-ref %outputs "out")
  3261. "/share/texmf-dist/"))
  3262. (pkgs '(("source" . "tex/latex/txfonts")
  3263. ("txfonts-vf" . "fonts/tfm/public/txfonts")
  3264. ("txfonts-afm" . "fonts/afm/public/txfonts")
  3265. ("txfonts-tfm" . "fonts/tfm/public/txfonts")
  3266. ("txfonts-type1" . "fonts/type1/public/txfonts")
  3267. ("txfonts-enc" . "fonts/enc/dvips/txfonts")
  3268. ("txfonts-map" . "fonts/map/dvips/txfonts"))))
  3269. (for-each (match-lambda
  3270. ((pkg . dir)
  3271. (let ((target (string-append root dir)))
  3272. (mkdir-p target)
  3273. (copy-recursively (assoc-ref %build-inputs pkg)
  3274. target))))
  3275. pkgs)
  3276. #t))))
  3277. (native-inputs
  3278. `(("txfonts-tfm"
  3279. ,(origin
  3280. (method svn-fetch)
  3281. (uri (svn-reference
  3282. (url (string-append "svn://www.tug.org/texlive/tags/"
  3283. %texlive-tag "/Master/texmf-dist/"
  3284. "/fonts/tfm/public/txfonts"))
  3285. (revision %texlive-revision)))
  3286. (file-name (string-append name "-tfm-" version "-checkout"))
  3287. (sha256
  3288. (base32
  3289. "12ffmbrp48ap35qa3b4mi6ckif9q2vf7972jxh5dc1yzykhla2xv"))))
  3290. ("txfonts-vf"
  3291. ,(origin
  3292. (method svn-fetch)
  3293. (uri (svn-reference
  3294. (url (string-append "svn://www.tug.org/texlive/tags/"
  3295. %texlive-tag "/Master/texmf-dist/"
  3296. "/fonts/vf/public/txfonts"))
  3297. (revision %texlive-revision)))
  3298. (file-name (string-append name "-vf-" version "-checkout"))
  3299. (sha256
  3300. (base32
  3301. "04acyfdwvxpfx4l2xh2bpzdmpvwdf2pzbs7a236b0xckz2jvc1ci"))))
  3302. ("txfonts-afm"
  3303. ,(origin
  3304. (method svn-fetch)
  3305. (uri (svn-reference
  3306. (url (string-append "svn://www.tug.org/texlive/tags/"
  3307. %texlive-tag "/Master/texmf-dist/"
  3308. "/fonts/afm/public/txfonts"))
  3309. (revision %texlive-revision)))
  3310. (file-name (string-append name "-afm-" version "-checkout"))
  3311. (sha256
  3312. (base32
  3313. "1705klz51pnqzcs89s3521b84b6c89wlczflsh0vci66nl155yis"))))
  3314. ("txfonts-type1"
  3315. ,(origin
  3316. (method svn-fetch)
  3317. (uri (svn-reference
  3318. (url (string-append "svn://www.tug.org/texlive/tags/"
  3319. %texlive-tag "/Master/texmf-dist/"
  3320. "/fonts/type1/public/txfonts"))
  3321. (revision %texlive-revision)))
  3322. (file-name (string-append name "-type1-" version "-checkout"))
  3323. (sha256
  3324. (base32
  3325. "0ajwr7zb6ch3gxd0g8p2i4llhy2wr9a9saz6jq6hm6fxf4pgl5h3"))))
  3326. ("txfonts-map"
  3327. ,(origin
  3328. (method svn-fetch)
  3329. (uri (svn-reference
  3330. (url (string-append "svn://www.tug.org/texlive/tags/"
  3331. %texlive-tag "/Master/texmf-dist/"
  3332. "/fonts/map/dvips/txfonts"))
  3333. (revision %texlive-revision)))
  3334. (file-name (string-append name "-map-" version "-checkout"))
  3335. (sha256
  3336. (base32
  3337. "0kamr8a9x24jakas3v09dgv7kkpybj3i7qv4vz1iyypqr6kk1raj"))))
  3338. ("txfonts-enc"
  3339. ,(origin
  3340. (method svn-fetch)
  3341. (uri (svn-reference
  3342. (url (string-append "svn://www.tug.org/texlive/tags/"
  3343. %texlive-tag "/Master/texmf-dist/"
  3344. "/fonts/enc/dvips/txfonts"))
  3345. (revision %texlive-revision)))
  3346. (file-name (string-append name "-enc-" version "-checkout"))
  3347. (sha256
  3348. (base32
  3349. "1bal5fhw0xlhl37ayv8vlnqnsn1y82kadzfjhbgr223blspp4zsj"))))))
  3350. (home-page "http://www.ctan.org/pkg/threeparttable")
  3351. (synopsis "Times-like fonts in support of mathematics")
  3352. (description
  3353. "Txfonts supplies virtual text roman fonts using Adobe Times (or URW
  3354. NimbusRomNo9L) with some modified and additional text symbols in the OT1, T1,
  3355. and TS1 encodings; maths alphabets using Times/URW Nimbus; maths fonts
  3356. providing all the symbols of the Computer Modern and AMS fonts, including all
  3357. the Greek capital letters from CMR; and additional maths fonts of various
  3358. other symbols.
  3359. The set is complemented by a sans-serif set of text fonts, based on
  3360. Helvetica/NimbusSanL, and a monospace set.
  3361. All the fonts are in Type 1 format (AFM and PFB files), and are supported by
  3362. TeX metrics (VF and TFM files) and macros for use with LaTeX.")
  3363. ;; Any version of the GPL with font exception.
  3364. (license license:gpl3+)))
  3365. (define-public texlive-latex-titlesec
  3366. (package
  3367. (name "texlive-latex-titlesec")
  3368. (version (number->string %texlive-revision))
  3369. (source (origin
  3370. (method svn-fetch)
  3371. (uri (svn-reference
  3372. (url (string-append "svn://www.tug.org/texlive/tags/"
  3373. %texlive-tag "/Master/texmf-dist/"
  3374. "/tex/latex/titlesec"))
  3375. (revision %texlive-revision)))
  3376. (sha256
  3377. (base32
  3378. "04nmkhqx6jxcxx9a30zbcd5smxi5fd0cbp132bki7fnvhspnhg21"))))
  3379. (build-system trivial-build-system)
  3380. (arguments
  3381. `(#:modules ((guix build utils))
  3382. #:builder
  3383. (begin
  3384. (use-modules (guix build utils))
  3385. (let ((target (string-append (assoc-ref %outputs "out")
  3386. "/share/texmf-dist/tex/latex/titlesec")))
  3387. (mkdir-p target)
  3388. (copy-recursively (assoc-ref %build-inputs "source") target)
  3389. #t))))
  3390. (home-page "http://www.ctan.org/pkg/titlesec")
  3391. (synopsis "Select alternative section titles")
  3392. (description
  3393. "This package provides an interface to sectioning commands for selection
  3394. from various title styles, e.g. for marginal titles and to change the font of
  3395. all headings with a single command, also providing simple one-step page
  3396. styles. It also includes a package to change the page styles when there are
  3397. floats in a page. You may assign headers/footers to individual floats, too.")
  3398. (license license:lppl)))
  3399. (define-public texlive-latex-type1cm
  3400. (package
  3401. (name "texlive-latex-type1cm")
  3402. (version (number->string %texlive-revision))
  3403. (source (origin
  3404. (method svn-fetch)
  3405. (uri (texlive-ref "latex" "type1cm"))
  3406. (file-name (string-append name "-" version "-checkout"))
  3407. (sha256
  3408. (base32
  3409. "1lvxrqfwcwa4p31zyfm80gr05v8c28xybv5ri79zi2ngz6834z12"))))
  3410. (build-system texlive-build-system)
  3411. (arguments '(#:tex-directory "latex/type1cm"))
  3412. (home-page "http://www.ctan.org/pkg/type1cm")
  3413. (synopsis "Arbitrary size font selection in LaTeX")
  3414. (description
  3415. "LaTeX, by default, restricts the sizes at which you can use its default
  3416. computer modern fonts, to a fixed set of discrete sizes (effectively, a set
  3417. specified by Knuth). The @code{type1cm} package removes this restriction;
  3418. this is particularly useful when using scalable versions of the CM
  3419. fonts (Bakoma, or the versions from BSR/Y&Y, or True Type versions from Kinch,
  3420. PCTeX, etc.). In fact, since modern distributions will automatically generate
  3421. any bitmap font you might need, @code{type1cm} has wider application than just
  3422. those using scaleable versions of the fonts. Note that the LaTeX distribution
  3423. now contains a package @code{fix-cm},f which performs the task of
  3424. @code{type1cm}, as well as doing the same job for T1- and TS1-encoded
  3425. @code{ec} fonts.")
  3426. (license license:lppl)))
  3427. (define-public texlive-latex-lh
  3428. (package
  3429. (name "texlive-latex-lh")
  3430. (version (number->string %texlive-revision))
  3431. (source (origin
  3432. (method svn-fetch)
  3433. (uri (texlive-ref "latex" "lh"))
  3434. (sha256
  3435. (base32
  3436. "00gdiwh3sfhh1iimjhpja7lm7k4vzqzql2irgwnpz94qvh25zwi5"))))
  3437. (build-system texlive-build-system)
  3438. (arguments '(#:tex-directory "latex/lh"))
  3439. (home-page "http://www.ctan.org/pkg/lh")
  3440. (synopsis "Cyrillic fonts that support LaTeX standard encodings")
  3441. (description
  3442. "The LH fonts address the problem of the wide variety of alphabets that
  3443. are written with Cyrillic-style characters. The fonts are the original basis
  3444. of the set of T2* and X2 encodings that are now used when LaTeX users need to
  3445. write in Cyrillic languages. Macro support in standard LaTeX encodings is
  3446. offered through the latex-cyrillic and t2 bundles, and the package itself
  3447. offers support for other (more traditional) encodings. The fonts, in the
  3448. standard T2* and X2 encodings are available in Adobe Type 1 format, in the
  3449. CM-Super family of fonts. The package also offers its own LaTeX support for
  3450. OT2 encoded fonts, CM bright shaped fonts and Concrete shaped fonts.")
  3451. (license license:lppl)))
  3452. (define-public texlive-metapost
  3453. (package
  3454. (name "texlive-metapost")
  3455. (version (number->string %texlive-revision))
  3456. (source (origin
  3457. (method svn-fetch)
  3458. (uri (svn-reference
  3459. (url (string-append "svn://www.tug.org/texlive/tags/"
  3460. %texlive-tag "/Master/texmf-dist/"
  3461. "/metapost"))
  3462. (revision %texlive-revision)))
  3463. (sha256
  3464. (base32
  3465. "03nvjddffiz796wll6axzmgfvynyciy2mqamv20qx252w71vwkwd"))))
  3466. (build-system trivial-build-system)
  3467. (arguments
  3468. `(#:modules ((guix build utils))
  3469. #:builder
  3470. (begin
  3471. (use-modules (guix build utils))
  3472. (let ((target (string-append (assoc-ref %outputs "out")
  3473. "/share/texmf-dist/metapost")))
  3474. (mkdir-p target)
  3475. (copy-recursively (assoc-ref %build-inputs "source") target)
  3476. #t))))
  3477. (home-page "http://www.ctan.org/pkg/metapost")
  3478. (synopsis "Create scalable illustrations")
  3479. (description
  3480. "MetaPost uses a language based on that of Metafont to produce precise
  3481. technical illustrations. Its output is scalable PostScript or SVG, rather
  3482. than the bitmaps Metafont creates.")
  3483. (license license:lppl)))
  3484. (define-public texlive-latex-acmart
  3485. (package
  3486. (name "texlive-latex-acmart")
  3487. (version "1.45")
  3488. (source (origin
  3489. (method svn-fetch)
  3490. (uri (texlive-ref "latex" "acmart"))
  3491. (sha256
  3492. (base32
  3493. "10zs8ga88ksypv1v4p6mynmfa7749q2hgxlr4shnwfjd9wrb421q"))
  3494. (file-name (string-append name "-" version "-checkout"))))
  3495. (build-system texlive-build-system)
  3496. (arguments '(#:tex-directory "latex/acmart"))
  3497. (home-page "http://www.ctan.org/pkg/acmart")
  3498. (synopsis "Class for typesetting publications of ACM")
  3499. (description
  3500. "This package provides a class for typesetting publications of the
  3501. Association for Computing Machinery (ACM).")
  3502. (license license:lppl1.3+)))
  3503. (define-public texlive-latex-varwidth
  3504. (package
  3505. (name "texlive-latex-varwidth")
  3506. (version (number->string %texlive-revision))
  3507. (source (origin
  3508. (method svn-fetch)
  3509. (uri (svn-reference
  3510. (url (string-append "svn://www.tug.org/texlive/tags/"
  3511. %texlive-tag "/Master/texmf-dist/"
  3512. "/tex/latex/varwidth"))
  3513. (revision %texlive-revision)))
  3514. (file-name (string-append name "-" version "-checkout"))
  3515. (sha256
  3516. (base32
  3517. "1bmz9ap0ffyg7qry2xi7lki06qx4809w028xvk88cl66h7p46g52"))))
  3518. (build-system trivial-build-system)
  3519. (arguments
  3520. `(#:modules ((guix build utils))
  3521. #:builder
  3522. (begin
  3523. (use-modules (guix build utils))
  3524. (let ((target (string-append (assoc-ref %outputs "out")
  3525. "/share/texmf-dist/tex/latex/varwidth")))
  3526. (mkdir-p target)
  3527. (copy-recursively (assoc-ref %build-inputs "source") target)
  3528. #t))))
  3529. (home-page "http://www.ctan.org/pkg/varwidth")
  3530. (synopsis "Variable-width minipage")
  3531. (description
  3532. "The @code{varwidth} environment is superficially similar to
  3533. @code{minipage}, but the specified width is just a maximum value — the box may
  3534. get a narrower “natural” width.")
  3535. (license license:lppl)))
  3536. (define-public texlive-latex-wasysym
  3537. (package
  3538. (name "texlive-latex-wasysym")
  3539. (version (number->string %texlive-revision))
  3540. (source (origin
  3541. (method svn-fetch)
  3542. (uri (texlive-ref "latex" "wasysym"))
  3543. (sha256
  3544. (base32
  3545. "1sgwbfwjjf70g54hh93gsd9jp9nm67w6n74x9d72a56n07jbk5hv"))))
  3546. (build-system texlive-build-system)
  3547. (arguments '(#:tex-directory "latex/wasysym"))
  3548. (home-page "http://www.ctan.org/pkg/wasysym")
  3549. (synopsis "LaTeX support file to use the WASY2 fonts")
  3550. (description
  3551. "The wasy2WASY2 (Waldi Symbol) font by Roland Waldi provides many glyphs
  3552. like male and female symbols and astronomical symbols, as well as the complete
  3553. lasy font set and other odds and ends. The wasysym package implements an easy
  3554. to use interface for these symbols.")
  3555. (license license:lppl)))
  3556. (define-public texlive-latex-wrapfig
  3557. (package
  3558. (name "texlive-latex-wrapfig")
  3559. (version (number->string %texlive-revision))
  3560. (source (origin
  3561. (method svn-fetch)
  3562. (uri (svn-reference
  3563. (url (string-append "svn://www.tug.org/texlive/tags/"
  3564. %texlive-tag "/Master/texmf-dist/"
  3565. "/tex/latex/wrapfig"))
  3566. (revision %texlive-revision)))
  3567. (file-name (string-append name "-" version "-checkout"))
  3568. (sha256
  3569. (base32
  3570. "16xpyl0csmmwndz1xhzqfg9l0zcsnqxslsixsqkwd4zsvfj30sv4"))))
  3571. (build-system trivial-build-system)
  3572. (arguments
  3573. `(#:modules ((guix build utils))
  3574. #:builder
  3575. (begin
  3576. (use-modules (guix build utils))
  3577. (let ((target (string-append (assoc-ref %outputs "out")
  3578. "/share/texmf-dist/tex/latex/wrapfig")))
  3579. (mkdir-p target)
  3580. (copy-recursively (assoc-ref %build-inputs "source") target)
  3581. #t))))
  3582. (home-page "http://www.ctan.org/pkg/wrapfig")
  3583. (synopsis "Produces figures which text can flow around")
  3584. (description
  3585. "This package allows figures or tables to have text wrapped around them.
  3586. It does not work in combination with list environments, but can be used in a
  3587. @code{parbox} or @code{minipage}, and in two-column format.")
  3588. (license license:lppl)))
  3589. (define-public texlive-latex-ucs
  3590. (package
  3591. (name "texlive-latex-ucs")
  3592. (version (number->string %texlive-revision))
  3593. (source (origin
  3594. (method svn-fetch)
  3595. (uri (svn-reference
  3596. (url (string-append "svn://www.tug.org/texlive/tags/"
  3597. %texlive-tag "/Master/texmf-dist/"
  3598. "/tex/latex/ucs"))
  3599. (revision %texlive-revision)))
  3600. (file-name (string-append name "-" version "-checkout"))
  3601. (sha256
  3602. (base32
  3603. "0rrxwi60wmz5dfjifl4fwk66plf7wix85qnhfv4ylvmj6qi6hw37"))))
  3604. (build-system trivial-build-system)
  3605. (arguments
  3606. `(#:modules ((guix build utils))
  3607. #:builder
  3608. (begin
  3609. (use-modules (guix build utils))
  3610. (let ((target (string-append (assoc-ref %outputs "out")
  3611. "/share/texmf-dist/tex/latex/ucs")))
  3612. (mkdir-p target)
  3613. (copy-recursively (assoc-ref %build-inputs "source") target)
  3614. #t))))
  3615. (home-page "http://www.ctan.org/pkg/ucs")
  3616. (synopsis "Extended UTF-8 input encoding support for LaTeX")
  3617. (description
  3618. "The bundle provides the @code{ucs} package, and @code{utf8x.def},
  3619. together with a large number of support files. The @code{utf8x.def}
  3620. definition file for use with @code{inputenc} covers a wider range of Unicode
  3621. characters than does @code{utf8.def} in the LaTeX distribution. The package
  3622. provides facilities for efficient use of its large sets of Unicode characters.
  3623. Glyph production may be controlled by various options, which permits use of
  3624. non-ASCII characters when coding mathematical formulae. Note that the bundle
  3625. previously had an alias “unicode”; that alias has now been withdrawn, and no
  3626. package of that name now exists.")
  3627. (license license:lppl1.3+)))
  3628. (define-public texlive-latex-preview
  3629. (package
  3630. (name "texlive-latex-preview")
  3631. (version (number->string %texlive-revision))
  3632. (source (origin
  3633. (method svn-fetch)
  3634. (uri (texlive-ref "latex" "preview"))
  3635. (file-name (string-append name "-" version "-checkout"))
  3636. (sha256
  3637. (base32
  3638. "0j6fff6q0ca96nwfdgay2jm55792z4q9aa0rczmiw2qccyg5n2dv"))))
  3639. (build-system texlive-build-system)
  3640. (arguments
  3641. '(#:tex-directory "latex/preview"
  3642. #:phases
  3643. (modify-phases %standard-phases
  3644. (add-after 'unpack 'remove-generated-file
  3645. (lambda _
  3646. (delete-file "preview.drv")
  3647. #t)))))
  3648. (home-page "http://www.ctan.org/pkg/preview")
  3649. (synopsis "Extract bits of a LaTeX source for output")
  3650. (description
  3651. "The main purpose of the preview package is the extraction of selected
  3652. elements from a LaTeX source, like formulas or graphics, into separate
  3653. pages of a DVI file. A flexible and convenient interface allows it to
  3654. specify what commands and constructs should be extracted. This works
  3655. with DVI files postprocessed by either Dvips and Ghostscript or
  3656. dvipng, but it also works when you are using PDFTeX for generating PDF
  3657. files.")
  3658. (license license:gpl3+)))
  3659. (define-public texlive-latex-acronym
  3660. (package
  3661. (name "texlive-latex-acronym")
  3662. (version (number->string %texlive-revision))
  3663. (source (origin
  3664. (method svn-fetch)
  3665. (uri (texlive-ref "latex" "acronym"))
  3666. (file-name (string-append name "-" version "-checkout"))
  3667. (sha256
  3668. (base32
  3669. "0jmasg40bk53zdd2jc8nc18jvdai3p2wmamy7hwli8gls4nf25qp"))))
  3670. (build-system texlive-build-system)
  3671. (arguments '(#:tex-directory "latex/acronym"))
  3672. (home-page "http://www.ctan.org/pkg/acronym")
  3673. (synopsis "Expand acronyms at least once")
  3674. (description
  3675. "This package ensures that all acronyms used in the text are spelled out
  3676. in full at least once. It also provides an environment to build a list of
  3677. acronyms used. The package is compatible with PDF bookmarks. The package
  3678. requires the suffix package, which in turn requires that it runs under
  3679. e-TeX.")
  3680. (license license:lppl1.3+)))
  3681. (define-public texlive-generic-pdftex
  3682. (package
  3683. (name "texlive-generic-pdftex")
  3684. (version (number->string %texlive-revision))
  3685. (source (origin
  3686. (method svn-fetch)
  3687. (uri (svn-reference
  3688. (url (string-append "svn://www.tug.org/texlive/tags/"
  3689. %texlive-tag "/Master/texmf-dist/"
  3690. "/tex/generic/pdftex"))
  3691. (revision %texlive-revision)))
  3692. (sha256
  3693. (base32
  3694. "0k68zmqzs4qvrqxdwsrawbjb14hxqjfamq649azvai0jjxdpkljd"))))
  3695. (build-system trivial-build-system)
  3696. (arguments
  3697. `(#:modules ((guix build utils))
  3698. #:builder
  3699. (begin
  3700. (use-modules (guix build utils))
  3701. (let ((target (string-append (assoc-ref %outputs "out")
  3702. "/share/texmf-dist/tex/generic/pdftex")))
  3703. (mkdir-p target)
  3704. (copy-recursively (assoc-ref %build-inputs "source") target)
  3705. #t))))
  3706. (home-page "http://www.ctan.org/pkg/pdftex")
  3707. (synopsis "TeX extension for direct creation of PDF")
  3708. (description
  3709. "This package provides an extension of TeX which can be configured to
  3710. directly generate PDF documents instead of DVI.")
  3711. (license license:gpl2+)))
  3712. (define texlive-texmf
  3713. (package
  3714. (name "texlive-texmf")
  3715. (version "2017")
  3716. (source texlive-texmf-src)
  3717. (build-system gnu-build-system)
  3718. (inputs
  3719. `(("texlive-bin" ,texlive-bin)
  3720. ("lua" ,lua)
  3721. ("perl" ,perl)
  3722. ("python" ,python-2) ; incompatible with Python 3 (print syntax)
  3723. ("ruby" ,ruby)
  3724. ("tcsh" ,tcsh)))
  3725. (arguments
  3726. `(#:modules ((guix build gnu-build-system)
  3727. (guix build utils)
  3728. (srfi srfi-26))
  3729. ;; This package takes 4 GiB, which we can't afford to distribute from
  3730. ;; our servers.
  3731. #:substitutable? #f
  3732. #:phases
  3733. (modify-phases (map (cut assq <> %standard-phases)
  3734. '(set-paths unpack patch-source-shebangs))
  3735. (add-after 'patch-source-shebangs 'install
  3736. (lambda* (#:key outputs #:allow-other-keys)
  3737. (let ((share (string-append (assoc-ref outputs "out") "/share")))
  3738. (mkdir-p share)
  3739. (system* "mv" "texmf-dist" share))))
  3740. (add-after 'install 'texmf-config
  3741. (lambda* (#:key inputs outputs #:allow-other-keys)
  3742. (let* ((out (assoc-ref outputs "out"))
  3743. (share (string-append out "/share"))
  3744. (texmfroot (string-append share "/texmf-dist/web2c"))
  3745. (texmfcnf (string-append texmfroot "/texmf.cnf"))
  3746. (texlive-bin (assoc-ref inputs "texlive-bin"))
  3747. (texbin (string-append texlive-bin "/bin"))
  3748. (tlpkg (string-append texlive-bin "/share/tlpkg")))
  3749. ;; Register SHARE as TEXMFROOT in texmf.cnf.
  3750. (substitute* texmfcnf
  3751. (("TEXMFROOT = \\$SELFAUTOPARENT")
  3752. (string-append "TEXMFROOT = " share))
  3753. (("TEXMFLOCAL = \\$SELFAUTOGRANDPARENT/texmf-local")
  3754. "TEXMFLOCAL = $SELFAUTODIR/share/texmf-local")
  3755. (("!!\\$TEXMFLOCAL") "$TEXMFLOCAL"))
  3756. ;; Register paths in texmfcnf.lua, needed for context.
  3757. (substitute* (string-append texmfroot "/texmfcnf.lua")
  3758. (("selfautodir:") out)
  3759. (("selfautoparent:") (string-append share "/")))
  3760. ;; Set path to TeXLive Perl modules
  3761. (setenv "PERL5LIB"
  3762. (string-append (getenv "PERL5LIB") ":" tlpkg))
  3763. ;; Configure the texmf-dist tree; inspired from
  3764. ;; http://slackbuilds.org/repository/13.37/office/texlive/
  3765. (setenv "PATH" (string-append (getenv "PATH") ":" texbin))
  3766. (setenv "TEXMFCNF" texmfroot)
  3767. (system* "updmap-sys" "--nohash" "--syncwithtrees")
  3768. (system* "mktexlsr")
  3769. (system* "fmtutil-sys" "--all")))))))
  3770. (properties `((max-silent-time . 9600))) ; don't time out while grafting
  3771. (synopsis "TeX Live, a package of the TeX typesetting system")
  3772. (description
  3773. "TeX Live provides a comprehensive TeX document production system.
  3774. It includes all the major TeX-related programs, macro packages, and fonts
  3775. that are free software, including support for many languages around the
  3776. world.
  3777. This package contains the complete tree of texmf-dist data.")
  3778. (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
  3779. (home-page "https://www.tug.org/texlive/")))
  3780. (define-public texlive
  3781. (package
  3782. (name "texlive")
  3783. (version "2017")
  3784. (source #f)
  3785. (build-system trivial-build-system)
  3786. (inputs `(("bash" ,bash) ; for wrap-program
  3787. ("texlive-bin" ,texlive-bin)
  3788. ("texlive-texmf" ,texlive-texmf)))
  3789. (native-search-paths
  3790. (list (search-path-specification
  3791. (variable "TEXMFLOCAL")
  3792. (files '("share/texmf-local")))))
  3793. (arguments
  3794. `(#:modules ((guix build utils))
  3795. #:builder
  3796. ;; Build the union of texlive-bin and texlive-texmf, but take the
  3797. ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
  3798. (begin
  3799. (use-modules (guix build utils))
  3800. (let ((out (assoc-ref %outputs "out"))
  3801. (bin (assoc-ref %build-inputs "texlive-bin"))
  3802. (texmf (assoc-ref %build-inputs "texlive-texmf"))
  3803. (bash (assoc-ref %build-inputs "bash")))
  3804. (mkdir out)
  3805. (with-directory-excursion out
  3806. (for-each
  3807. (lambda (name)
  3808. (symlink (string-append bin "/" name) name))
  3809. '("include" "lib"))
  3810. (mkdir "bin")
  3811. (with-directory-excursion "bin"
  3812. (setenv "PATH" (string-append bash "/bin"))
  3813. (for-each
  3814. (lambda (name)
  3815. (symlink name (basename name))
  3816. (wrap-program
  3817. (basename name)
  3818. `("TEXMFCNF" =
  3819. (,(string-append texmf "/share/texmf-dist/web2c")))))
  3820. (find-files (string-append bin "/bin/") "")))
  3821. (mkdir "share")
  3822. (with-directory-excursion "share"
  3823. (for-each
  3824. (lambda (name)
  3825. (symlink (string-append bin "/share/" name) name))
  3826. '("info" "man" "tlpkg"))
  3827. (for-each
  3828. (lambda (name)
  3829. (symlink (string-append texmf "/share/" name) name))
  3830. '("texmf-dist" "texmf-var"))))))))
  3831. (synopsis "TeX Live, a package of the TeX typesetting system")
  3832. (description
  3833. "TeX Live provides a comprehensive TeX document production system.
  3834. It includes all the major TeX-related programs, macro packages, and fonts
  3835. that are free software, including support for many languages around the
  3836. world.
  3837. This package contains the complete TeX Live distribution.")
  3838. (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
  3839. (home-page "https://www.tug.org/texlive/")))
  3840. (define-public perl-text-bibtex
  3841. (package
  3842. (name "perl-text-bibtex")
  3843. (version "0.77")
  3844. (source
  3845. (origin
  3846. (method url-fetch)
  3847. (uri (string-append "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-"
  3848. version ".tar.gz"))
  3849. (sha256
  3850. (base32
  3851. "0kkfx8skk763pivz6h2ffy2zdp1lvy6d5sz0kjaj0mdbjffvnnb4"))))
  3852. (build-system perl-build-system)
  3853. (arguments
  3854. `(#:phases
  3855. (modify-phases %standard-phases
  3856. (add-after 'unpack 'add-output-directory-to-rpath
  3857. (lambda* (#:key outputs #:allow-other-keys)
  3858. (substitute* "inc/MyBuilder.pm"
  3859. (("-Lbtparse" line)
  3860. (string-append "-Wl,-rpath="
  3861. (assoc-ref outputs "out") "/lib " line)))
  3862. #t))
  3863. (add-after 'unpack 'install-libraries-to-/lib
  3864. (lambda* (#:key outputs #:allow-other-keys)
  3865. (substitute* "Build.PL"
  3866. (("lib64") "lib"))
  3867. #t)))))
  3868. (native-inputs
  3869. `(("perl-capture-tiny" ,perl-capture-tiny)
  3870. ("perl-config-autoconf" ,perl-config-autoconf)
  3871. ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
  3872. ("perl-module-build" ,perl-module-build)))
  3873. (home-page "http://search.cpan.org/dist/Text-BibTeX")
  3874. (synopsis "Interface to read and parse BibTeX files")
  3875. (description "@code{Text::BibTeX} is a Perl library for reading, parsing,
  3876. and processing BibTeX files. @code{Text::BibTeX} gives you access to the data
  3877. at many different levels: you may work with BibTeX entries as simple field to
  3878. string mappings, or get at the original form of the data as a list of simple
  3879. values (strings, macros, or numbers) pasted together.")
  3880. (license license:perl-license)))
  3881. (define-public biber
  3882. (package
  3883. (name "biber")
  3884. (version "2.7")
  3885. (source (origin
  3886. (method url-fetch)
  3887. (uri (string-append "https://github.com/plk/biber/archive/v"
  3888. version ".tar.gz"))
  3889. (file-name (string-append name "-" version ".tar.gz"))
  3890. (sha256
  3891. (base32
  3892. "17wd80jg98qyddhvz4cin8779ycvppaf2va77r1lyvymjz6w9bx0"))))
  3893. (build-system perl-build-system)
  3894. (arguments
  3895. `(#:phases
  3896. (modify-phases %standard-phases
  3897. (add-after 'install 'wrap-programs
  3898. (lambda* (#:key outputs #:allow-other-keys)
  3899. (let* ((out (assoc-ref outputs "out"))
  3900. (perl5lib (getenv "PERL5LIB")))
  3901. (wrap-program (string-append out "/bin/biber")
  3902. `("PERL5LIB" ":" prefix
  3903. (,(string-append perl5lib ":" out
  3904. "/lib/perl5/site_perl")))))
  3905. #t)))))
  3906. (inputs
  3907. `(("perl-autovivification" ,perl-autovivification)
  3908. ("perl-class-accessor" ,perl-class-accessor)
  3909. ("perl-data-dump" ,perl-data-dump)
  3910. ("perl-data-compare" ,perl-data-compare)
  3911. ("perl-data-uniqid" ,perl-data-uniqid)
  3912. ("perl-datetime-format-builder" ,perl-datetime-format-builder)
  3913. ("perl-datetime-calendar-julian" ,perl-datetime-calendar-julian)
  3914. ("perl-file-slurp" ,perl-file-slurp)
  3915. ("perl-ipc-cmd" ,perl-ipc-cmd)
  3916. ("perl-ipc-run3" ,perl-ipc-run3)
  3917. ("perl-list-allutils" ,perl-list-allutils)
  3918. ("perl-list-moreutils" ,perl-list-moreutils)
  3919. ("perl-mozilla-ca" ,perl-mozilla-ca)
  3920. ("perl-regexp-common" ,perl-regexp-common)
  3921. ("perl-log-log4perl" ,perl-log-log4perl)
  3922. ;; We cannot use perl-unicode-collate here, because otherwise the
  3923. ;; hardcoded hashes in the tests would differ. See
  3924. ;; https://mail-archive.com/debian-bugs-dist@lists.debian.org/msg1469249.html
  3925. ;;("perl-unicode-collate" ,perl-unicode-collate)
  3926. ("perl-unicode-normalize" ,perl-unicode-normalize)
  3927. ("perl-unicode-linebreak" ,perl-unicode-linebreak)
  3928. ("perl-encode-eucjpascii" ,perl-encode-eucjpascii)
  3929. ("perl-encode-jis2k" ,perl-encode-jis2k)
  3930. ("perl-encode-hanextra" ,perl-encode-hanextra)
  3931. ("perl-xml-libxml" ,perl-xml-libxml)
  3932. ("perl-xml-libxml-simple" ,perl-xml-libxml-simple)
  3933. ("perl-xml-libxslt" ,perl-xml-libxslt)
  3934. ("perl-xml-writer" ,perl-xml-writer)
  3935. ("perl-sort-key" ,perl-sort-key)
  3936. ("perl-text-csv" ,perl-text-csv)
  3937. ("perl-text-csv-xs" ,perl-text-csv-xs)
  3938. ("perl-text-roman" ,perl-text-roman)
  3939. ("perl-uri" ,perl-uri)
  3940. ("perl-text-bibtex" ,perl-text-bibtex)
  3941. ("perl-libwww" ,perl-libwww)
  3942. ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
  3943. ("perl-business-isbn" ,perl-business-isbn)
  3944. ("perl-business-issn" ,perl-business-issn)
  3945. ("perl-business-ismn" ,perl-business-ismn)
  3946. ("perl-lingua-translit" ,perl-lingua-translit)))
  3947. (native-inputs
  3948. `(("perl-config-autoconf" ,perl-config-autoconf)
  3949. ("perl-extutils-libbuilder" ,perl-extutils-libbuilder)
  3950. ("perl-module-build" ,perl-module-build)
  3951. ;; for tests
  3952. ("perl-file-which" ,perl-file-which)
  3953. ("perl-test-more" ,perl-test-most) ; FIXME: "more" would be sufficient
  3954. ("perl-test-differences" ,perl-test-differences)))
  3955. (home-page "http://biblatex-biber.sourceforge.net/")
  3956. (synopsis "Backend for the BibLaTeX citation management tool")
  3957. (description "Biber is a BibTeX replacement for users of biblatex. Among
  3958. other things it comes with full Unicode support.")
  3959. (license license:artistic2.0)))
  3960. (define-public rubber
  3961. (package
  3962. (name "rubber")
  3963. (version "1.1")
  3964. (source (origin
  3965. (method url-fetch)
  3966. (uri (list (string-append "https://launchpad.net/rubber/trunk/"
  3967. version "/+download/rubber-"
  3968. version ".tar.gz")
  3969. (string-append "http://ebeffara.free.fr/pub/rubber-"
  3970. version ".tar.gz")))
  3971. (sha256
  3972. (base32
  3973. "1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
  3974. (build-system gnu-build-system)
  3975. (arguments '(#:tests? #f)) ; no `check' target
  3976. (inputs `(("texinfo" ,texinfo)
  3977. ("python" ,python-2) ; incompatible with Python 3 (print syntax)
  3978. ("which" ,which)))
  3979. (home-page "https://launchpad.net/rubber")
  3980. (synopsis "Wrapper for LaTeX and friends")
  3981. (description
  3982. "Rubber is a program whose purpose is to handle all tasks related to the
  3983. compilation of LaTeX documents. This includes compiling the document itself,
  3984. of course, enough times so that all references are defined, and running BibTeX
  3985. to manage bibliographic references. Automatic execution of dvips to produce
  3986. PostScript documents is also included, as well as usage of pdfLaTeX to produce
  3987. PDF documents.")
  3988. (license license:gpl2+)))
  3989. (define-public texmaker
  3990. (package
  3991. (name "texmaker")
  3992. (version "4.5")
  3993. (source (origin
  3994. (method url-fetch)
  3995. (uri (string-append "http://www.xm1math.net/texmaker/texmaker-"
  3996. version ".tar.bz2"))
  3997. (sha256
  3998. (base32
  3999. "056njk6j8wma23mlp7xa3rgfaxx0q8ynwx8wkmj7iy0b85p9ds9c"))))
  4000. (build-system gnu-build-system)
  4001. (arguments
  4002. `(#:phases
  4003. (modify-phases %standard-phases
  4004. ;; Qt has its own configuration utility.
  4005. (replace 'configure
  4006. (lambda* (#:key outputs #:allow-other-keys)
  4007. (let ((out (assoc-ref outputs "out")))
  4008. (zero? (system* "qmake"
  4009. (string-append "PREFIX=" out)
  4010. (string-append "DESKTOPDIR=" out
  4011. "/share/applications")
  4012. (string-append "ICONDIR=" out "/share/pixmaps")
  4013. "texmaker.pro"))))))))
  4014. (inputs
  4015. `(("poppler-qt5" ,poppler-qt5)
  4016. ("qtbase" ,qtbase)
  4017. ("qtscript" ,qtscript)
  4018. ("qtwebkit" ,qtwebkit)
  4019. ("zlib" ,zlib)))
  4020. (native-inputs
  4021. `(("pkg-config" ,pkg-config)))
  4022. (home-page "http://www.xm1math.net/texmaker/")
  4023. (synopsis "LaTeX editor")
  4024. (description "Texmaker is a program that integrates many tools needed to
  4025. develop documents with LaTeX, in a single application.")
  4026. (license license:gpl2+)))
  4027. (define-public teximpatient
  4028. (package
  4029. (name "teximpatient")
  4030. (version "2.4")
  4031. (source (origin
  4032. (method url-fetch)
  4033. (uri (string-append "mirror://gnu/" name "/" name "-"
  4034. version ".tar.gz"))
  4035. (sha256
  4036. (base32
  4037. "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
  4038. (build-system gnu-build-system)
  4039. (arguments
  4040. `(#:phases
  4041. (modify-phases %standard-phases
  4042. (delete 'check)
  4043. ;; Unfortunately some mistakes have been made in packaging.
  4044. ;; Work around them here ...
  4045. (replace 'unpack
  4046. (lambda* (#:key inputs outputs #:allow-other-keys)
  4047. (let ((srcdir "teximpatient-2.4"))
  4048. (system* "tar" "-xzf" (assoc-ref inputs "source")
  4049. (string-append "--one-top-level=" srcdir))
  4050. (delete-file (string-append srcdir "/book.pdf"))
  4051. (install-file (car
  4052. (find-files
  4053. (assoc-ref inputs "automake")
  4054. "^install-sh$"))
  4055. srcdir)
  4056. (chdir srcdir)))))))
  4057. (native-inputs
  4058. `(("texlive" ,texlive)
  4059. ("automake" ,automake)))
  4060. (home-page "https://www.gnu.org/software/teximpatient/")
  4061. (synopsis "Book on TeX, plain TeX and Eplain")
  4062. (description "@i{TeX for the Impatient} is a ~350 page book on TeX,
  4063. plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
  4064. and Karl Berry.")
  4065. (license license:fdl1.3+)))