[sphinx-users] Re: newby - trying to install numsec.py extension so I can reference section numbers

2016-09-12 Thread Komiya Takeshi
just FYI: This feature is requested as https://github.com/sphinx-doc/sphinx/issues/326 Thanks, Takeshi KOMIYA 2016年9月13日火曜日 6時20分15秒 UTC+9 Fiona Hanington: > > Thanks! This works, and now I can build. However, the extension doesn't > seem to be working -- my refs still render as the titles

[sphinx-users] PDF version shows one huge chapter? Table of contents issues with latexpdf

2016-09-12 Thread 'EMK' via sphinx-users
I've been focusing on HTML for several months and now I'm trying to build PDF (via latexpdf) from the same files. I have one main toctree and several hidden toctrees. I'm having these problems: 1) All my contents go in one chapter, everything from all the toctrees ends up as Chapter 1 for

[sphinx-users] Re: newby - trying to install numsec.py extension so I can reference section numbers

2016-09-12 Thread Fiona Hanington
Thanks! This works, and now I can build. However, the extension doesn't seem to be working -- my refs still render as the titles not the section numbers. Anyone on this list use the extension? On Monday, 12 September 2016 08:24:24 UTC-7, Komiya Takeshi wrote: > > Hi, > > I've never used the

[sphinx-users] Re: Accessing the build directory in conf.py?

2016-09-12 Thread Komiya Takeshi
Hi, As far as I know, there are no proper way to obtain build directory in conf.py. But, as a adhoc way, you con obtain it through environment variables. in Makefile: BUILDDIR = _build export BUILDDIR in conf.py: builddir = os.environ['BUILDDIR'] jinja_contexts = {

[sphinx-users] Re: Safe to run untrusted Sphinx code?

2016-09-12 Thread Komiya Takeshi
Hi, As far as I know, building sphinx-doc is basically safety operation. But conf.py is recognized python script, so it is danger if conf.py is placed under untrusted directory. BTW, I've never use tikz extension. so I don't know about it. Thanks, Takeshi KOMIYA 2016年9月10日土曜日 7時31分24秒 UTC+9

[sphinx-users] Re: newby - trying to install numsec.py extension so I can reference section numbers

2016-09-12 Thread Komiya Takeshi
Hi, I've never used the extension, but it might work with following steps: 1. copy numsec.py into your project 2. rewrite your conf.py to add current directory into sys.path:: sys.path.insert(0, os.path.abspath('.')) 3. add "numsec" (without .py suffix) into extensions list extensions

[sphinx-users] Re: call Sphinx from Python3

2016-09-12 Thread Komiya Takeshi
Hi, Unfortunately, there are no way to reset them. Note: It is reported as https://github.com/sphinx-doc/sphinx/issues/2687 Thanks, Takeshi KOMIYA 2016年9月7日水曜日 17時33分17秒 UTC+9 Andrea Cassioli: > > Hi, > I am trying to call Sphinx directly from Python3. That would simplify my > workflow, as I

[sphinx-users] Re: Accessing the build directory in conf.py?

2016-09-12 Thread Markus Schöpflin
Am 09.09.2016 um 16:50 schrieb Rex Guinn: Did you try link instead of copy ln -s filename to location filename The s is for symbolic conf.py is so small that there isn't any difference between linking the file or copying the file. It's not the actual copy I'm worried about, it's the fact