anchor.diff:  	goto end
   )
   
  +if "%1" == "pdf" (
  +    call :latex
  +	cd _build/latex && make all-pdf
  +	type nul > %1
  +	goto end
  +	)
  +
  +if "%1" == "upload" (
  +    call :html
  +	./upload-gh-pages.sh _build/html/ dipy nipy
  +	goto end
  +	)
  +
  +if "%1" == "xvfb" (
  +	set TEST_WITH_XVFB=true && make html
  +	goto end
  +	)
  +
  +if "%1" == "memory_profile" (
  +	set TEST_WITH_MEMPROF=true && make html
  +	goto end
  +	)
  +
   :end
  
positive.code: 
  REM Command file for Sphinx documentation
  
  set SPHINXBUILD=sphinx-build
  set ALLSPHINXOPTS=-d _build/doctrees %SPHINXOPTS% .
  if NOT "%PAPER%" == "" (
  
negative.code: 	goto end
  )
  
  if "%1" == "api-clean" (
  	del /q /s reference reference_cmd
  	rmdir reference reference_cmd
  	goto end
  	)
  
  if "%1" == "api" (
      :api
  	if not exist reference mkdir reference
  	%PYTHON% tools/build_modref_templates.py dipy reference
  	if not exist reference_cmd mkdir reference_cmd
  	%PYTHON% tools/docgen_cmd.py dipy reference_cmd
  	echo.Build API docs...done.
  	exit /B
  	)
  
  if "%1" == "examples-clean" (
      :examples-clean
  	cd examples_built && rm -rf *.py *.rst *.png fig
  	cd ..
  	exit /B
  	)
  
  if "%1" == "examples-clean-tgz" (
      call :examples-clean
      call :examples-tgz
  	%PYTHON% ../tools/pack_examples.py ../dist
  	exit /B
  	)
  
  if "%1" == "examples-tgz" (
      :examples-tgz
      call :rstexamples
  	%PYTHON% ../tools/pack_examples.py ../dist
  	exit /B
  	)
  
  if "%1" == "gitwash-update" (
  	%PYTHON% ../tools/gitwash_dumper.py devel dipy --repo-name=dipy ^
  	                                               --github-user=nipy ^
  	                                               --project-url=http://nipy.org/dipy ^
  	                                               --project-ml-url=https://mail.python.org/mailman/listinfo/neuroimaging
      )
  
  if "%1" == "rstexamples" (
      :rstexamples
  	cd examples_built && %PYTHON% ..\\..\\tools\\make_examples.py
  	type nul > %1
  	exit /B
  	)
  
  if "%1" == "html" (
      :html
      echo "build full docs including examples"
      call :api
      call :rstexamples
      call :html-after-examples
      exit /B
  	)
  
  if "%1" == "html-after-examples" (
      :html-after-examples
  	%SPHINXBUILD% -b html %ALLSPHINXOPTS% _build/html
  	echo.
  	echo.Build finished. The HTML pages are in _build/html.
  	exit /B
      )
  
  if "%1" == "dirhtml" (
  	%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% _build/dirhtml
  