gnu: texlive-latex-fontspec: Install default fontspec.cfg.
* gnu/packages/tex.scm (texlive-latex-fontspec)[arguments]: Add build phase to install fontspec.cfg.
This commit is contained in:
parent
ebe0271aa0
commit
9c45beb4cc
|
@ -1554,7 +1554,35 @@ programming tools and kernel support. Packages provided in this release are:
|
||||||
"1p0mkn6iywl0k4m9cx3hnhylpi499inisff3f72pcf349baqsnvq"))))
|
"1p0mkn6iywl0k4m9cx3hnhylpi499inisff3f72pcf349baqsnvq"))))
|
||||||
(build-system texlive-build-system)
|
(build-system texlive-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tex-directory "latex/fontspec"))
|
'(#:tex-directory "latex/fontspec"
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'install-default-fontspec.cfg
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(with-output-to-file
|
||||||
|
(string-append (assoc-ref outputs "out")
|
||||||
|
"/share/texmf-dist/tex/latex/fontspec/fontspec.cfg")
|
||||||
|
(lambda _
|
||||||
|
(display "\
|
||||||
|
%%% FONTSPEC.CFG %%%
|
||||||
|
%
|
||||||
|
% This configuration file sets up TeX Ligatures by default for all fonts loaded
|
||||||
|
% with `\\setmainfont` and `\\setsansfont`.
|
||||||
|
%
|
||||||
|
% In addition, `\\setmonofont` has default features to enforce \"monospace\"
|
||||||
|
% settings with regard to space stretchability and shrinkability.
|
||||||
|
|
||||||
|
\\defaultfontfeatures
|
||||||
|
[\\rmfamily,\\sffamily]
|
||||||
|
{Ligatures=TeX}
|
||||||
|
|
||||||
|
\\defaultfontfeatures
|
||||||
|
[\\ttfamily]
|
||||||
|
{WordSpace={1,0,0},
|
||||||
|
HyphenChar=None,
|
||||||
|
PunctuationSpace=WordSpace}
|
||||||
|
")))
|
||||||
|
#t)))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("texlive-latex-l3packages" ,texlive-latex-l3packages)))
|
`(("texlive-latex-l3packages" ,texlive-latex-l3packages)))
|
||||||
(home-page "https://www.ctan.org/pkg/fontspec")
|
(home-page "https://www.ctan.org/pkg/fontspec")
|
||||||
|
|
Loading…
Reference in New Issue