gnu: fastcap: Fix 'fix-doc phase.

* gnu/packages/engineering.scm (fastcap): Adapt documentation generation to
  change in TeXLive 2015.
This commit is contained in:
Federico Beffa 2015-10-17 18:11:49 +02:00
parent 5d86684ddf
commit 1f7ffd6ff7

View file

@ -265,8 +265,18 @@ (define-public fastcap
(("\\\\special\\{psfile=([^,]*),.*scale=([#0-9.]*).*\\}" (("\\\\special\\{psfile=([^,]*),.*scale=([#0-9.]*).*\\}"
all file scale) all file scale)
(string-append "\\includegraphics[scale=" scale "]{" (string-append "\\includegraphics[scale=" scale "]{"
file "}"))) file "}"))
(substitute* '("doc/mtt.tex" "doc/tcad.tex") (("\\\\psfig\\{figure=([^,]*),.*width=([#0-9.]*in).*\\}"
all file width)
(string-append "\\includegraphics[width=" width "]{"
file "}"))
(("\\\\psfig\\{figure=([^,]*),.*height=([#0-9.]*in).*\\}"
all file height)
(string-append "\\includegraphics[height=" height "]{"
file "}"))
(("\\\\psfig\\{figure=([^,]*)\\}" all file)
(string-append "\\includegraphics{" file "}")))
(substitute* '("doc/mtt.tex" "doc/tcad.tex" "doc/ug.tex")
(("^\\\\documentstyle\\[(.*)\\]\\{(.*)\\}" (("^\\\\documentstyle\\[(.*)\\]\\{(.*)\\}"
all options class) all options class)
(string-append "\\documentclass[" options "]{" (string-append "\\documentclass[" options "]{"