Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1""" 

2@file 

3@brief Calls nbconvert in command line for latex and pdf 

4""" 

5import sys 

6 

7try: 

8 from sphinx.cmd.build import main as build_main 

9except ImportError: 

10 # Sphinx >= 1.7 

11 from sphinx import build_main 

12 

13 

14def run_sphinx_build(argv): 

15 build_main(argv=argv[1:]) 

16 

17 

18def main(): 

19 run_sphinx_build(sys.argv) 

20 

21 

22if __name__ == "__main__": 

23 main()