mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 07:12:30 -05:00
gnu: Add texlive-xcjk2uni.
* gnu/packages/tex.scm (texlive-xcjk2uni): New variable.
This commit is contained in:
parent
272cfdffba
commit
5a8b23185d
1 changed files with 45 additions and 0 deletions
|
@ -22945,6 +22945,51 @@ (define-public texlive-hycolor
|
|||
|
||||
(define-deprecated-package texlive-latex-hycolor texlive-hycolor)
|
||||
|
||||
(define-public texlive-xcjk2uni
|
||||
(package
|
||||
(name "texlive-xcjk2uni")
|
||||
(version (number->string %texlive-revision))
|
||||
(source (texlive-origin
|
||||
name version
|
||||
(list "doc/latex/xcjk2uni/"
|
||||
"source/latex/xcjk2uni/"
|
||||
"tex/latex/xcjk2uni/")
|
||||
(base32
|
||||
"1vjp47ngrirrvbnk4vnm5lbysj3qlbwxbfc1szc22gaikm52ggaq")))
|
||||
(outputs '("out" "doc"))
|
||||
(build-system texlive-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'build 'copy-ctxdocstrip.tex
|
||||
;; There's a circular dependency between this package (where
|
||||
;; `ctex' should be a native input) and `ctex' (where this package
|
||||
;; is a propagated input). To work around this, install the
|
||||
;; specific "ctxdocstrip.tex" file from `ctex' in the build
|
||||
;; directory and set TEXINPUTS variable accordingly so the process
|
||||
;; can find it.
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(install-file (search-input-file inputs
|
||||
"tex/generic/ctex/ctxdocstrip.tex")
|
||||
"build/")
|
||||
(setenv "TEXINPUTS" (string-append (getcwd) "/build:")))))))
|
||||
(native-inputs
|
||||
(list (texlive-origin
|
||||
"ctxdocstrip.tex" (number->string %texlive-revision)
|
||||
(list "tex/generic/ctex/ctxdocstrip.tex")
|
||||
(base32
|
||||
"154v2d6wfzhfg654nlh2apy9zr78d09rkimymyjqpxymkpbk8lli"))))
|
||||
(home-page "https://ctan.org/pkg/xcjk2uni")
|
||||
(synopsis "Convert CJK characters to Unicode, in pdfTeX")
|
||||
(description
|
||||
"The package provides commands to convert CJK characters to Unicode in
|
||||
non-UTF-8 encoding; it provides hooks to support hyperref in producing correct
|
||||
bookmarks. The bundle also provides @code{/ToUnicode} mapping file(s) for
|
||||
a CJK subfont; these can be used with the cmap package, allowing searches of,
|
||||
and cut-and-paste operations on a PDF file generated by pdfTeX.")
|
||||
(license license:lppl1.3c)))
|
||||
|
||||
(define-public texlive-xcolor
|
||||
(package
|
||||
(name "texlive-xcolor")
|
||||
|
|
Loading…
Reference in a new issue