mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
tex-package.eclass: allow passing arguments to pdflatex
This commit is contained in:
@@ -71,6 +71,13 @@ TEXMF="/usr/share/texmf-site"
|
||||
# DESCRIPTION above)
|
||||
SUPPLIER="misc"
|
||||
|
||||
# @ECLASS-VARIABLE: LATEX_DOC_ARGUMENTS
|
||||
# @DESCRIPTION:
|
||||
# When compiling documentation (.tex/.dtx), this variable will be passed
|
||||
# to pdflatex as additional argument (e.g. -shell-escape). This variable
|
||||
# must be set after inherit, as it gets automatically cleared otherwise.
|
||||
LATEX_DOC_ARGUMENTS=""
|
||||
|
||||
# Kept for backwards compatibility
|
||||
latex-package_has_tetex_3() {
|
||||
case ${EAPI:-0} in
|
||||
@@ -128,8 +135,8 @@ latex-package_src_doinstall() {
|
||||
for i in `find . -maxdepth 1 -type f -name "*.${1}"`
|
||||
do
|
||||
einfo "Making documentation: $i"
|
||||
if pdflatex --interaction=batchmode $i &> /dev/null ; then
|
||||
pdflatex --interaction=batchmode $i &> /dev/null || die
|
||||
if pdflatex ${LATEX_DOC_ARGUMENTS} --interaction=batchmode $i &> /dev/null ; then
|
||||
pdflatex ${LATEX_DOC_ARGUMENTS} --interaction=batchmode $i &> /dev/null || die
|
||||
else
|
||||
einfo "pdflatex failed, trying texi2dvi"
|
||||
texi2dvi -q -c --language=latex $i &> /dev/null || die
|
||||
|
||||
Reference in New Issue
Block a user