passing arguments to mklatex without using makefile

31 views
Skip to first unread message

Robert Cohn

unread,
Feb 8, 2020, 8:01:58 AM2/8/20
to sphinx-users
I want to pass arguments like -silent to latexmk. It works fine when I use the standard makefile

make LATEXMKOPTS=-silent


My use of sphinx is part of a workflow that does not  use make, so I invoke sphinx directly from a python script in a shell.

I thought that this would work:

export LATEXMKOPTS=-silent
sphinx
-build -M latexpdf tmp tmp-build -C


But it ignores the LATEXMKOPTS. How can I invoke sphinx-build directly and control the latexmk options?


Komiya Takeshi

unread,
Feb 8, 2020, 10:29:49 AM2/8/20
to sphinx...@googlegroups.com
Hi,

Thank you for posting. Sadly, there no such options now. But I posted
a PR for this feature.
https://github.com/sphinx-doc/sphinx/pull/7116

Thanks,
Takeshi KOMIYA

2020年2月8日(土) 22:02 Robert Cohn <rsc...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/0e735212-ef93-4495-b4b5-1295ccc1fe5a%40googlegroups.com.
Message has been deleted

Robert Cohn

unread,
Feb 9, 2020, 2:22:54 PM2/9/20
to sphinx-users
Thanks! I see it was in the latest release.

Robert


On Saturday, February 8, 2020 at 10:29:49 AM UTC-5, Komiya Takeshi wrote:
Hi,

Thank you for posting. Sadly, there no such options now. But I posted
a PR for this feature.
https://github.com/sphinx-doc/sphinx/pull/7116

Thanks,
Takeshi KOMIYA

2020年2月8日(土) 22:02 Robert Cohn <rsc...@gmail.com>:
>
> I want to pass arguments like -silent to latexmk. It works fine when I use the standard makefile
>
> make LATEXMKOPTS=-silent
>
>
> My use of sphinx is part of a workflow that does not  use make, so I invoke sphinx directly from a python script in a shell.
>
> I thought that this would work:
>
> export LATEXMKOPTS=-silent
> sphinx-build -M latexpdf tmp tmp-build -C
>
>
> But it ignores the LATEXMKOPTS. How can I invoke sphinx-build directly and control the latexmk options?
>
>
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sphinx...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages