Re: [sphinx-users] :numref: numbering of Figures in PDF (XeLatex) - error: WARNING: no number is assigned
The warning is emitted by Sphinx. So preamble.tex code is not related with the problem. It is caused by only reST notation. Thanks, Takeshi KOMIYA 2017-05-11 21:35 GMT+09:00 Barbara Pilbin : > Thank you so much for trying. It seems like it works for lots of other > people. It makes me wonder if I have something in my preamble.tex or > config.py doing something I don't know or understand. I will work on trying > to make something small and shareable. (When I get something together, I > will submit to the isssues.) > > I truly appreciate your time! > Barbara > > On Thursday, May 11, 2017 at 1:45:30 AM UTC-5, Komiya Takeshi wrote: >> >> Hi Barbara, >> >> I'd tried to reproduce your problem, but I could not. on my local, it >> is able to refer the figures. >> Could you share your project or provide minimal reproducible one? >> If possible, it would be nice if you file this into our issues list. >> https://github.com/sphinx-doc/sphinx/issues >> >> Thanks, >> >> 2017-05-06 4:41 GMT+09:00 Barbara Pilbin : >> > Hi, >> > >> > I have spent quite a bit of time searching and trying to figure out what >> > I >> > am doing wrong. If anyone happens to see what I have missed, I would >> > appreciate the guidance. >> > >> > Here are the relevant pieces from my conf.py file: >> > >> > # -- Options for automatic Figure numbering >> > numfig = True >> > numfig_secnum_depth = (2) >> > >> > # Add any Sphinx extension module names here, as strings. They can be >> > # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom >> > # ones. >> > extensions = ['sphinx.ext.intersphinx', >> > 'sphinx.ext.todo', >> > 'sphinx.ext.ifconfig', >> > 'sphinx.ext.githubpages', >> > #'rst2pdf.pdfbuilder' >> > ] >> > >> > >> > latex_engine = 'xelatex' >> > >> > - >> > >> > I have a topic file that is trying to reference a figure as follows: >> > >> > -- >> > The window displays ( :ref:`fig-authentication` ). >> > The window displays ( :numref:`Figure %s ` is my >> > caption >> > ). >> > >> > .. _fig-authentication: >> > >> > .. figure:: /_static/access/authentication.jpg >> >:align: center >> > >> >Authentication Window >> > >> > --- >> > >> > The first sentence outputs the caption of the figure. >> > The second sentence gives me an error that says: >> > WARNING: no number is assigned for figure: fig-authentication >> > >> > In the PDF output, the figures do have numbers assigned to them. >> > >> > I would appreciate any direction that you can provide. >> > >> > Thanks, >> > barbara >> > >> > -- >> > 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 post to this group, send email to sphinx...@googlegroups.com. >> > Visit this group at https://groups.google.com/group/sphinx-users. >> > For more options, visit https://groups.google.com/d/optout. > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to sphinx-users@googlegroups.com. > Visit this group at https://groups.google.com/group/sphinx-users. > For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sphinx-users@googlegroups.com. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
Re: [sphinx-users] :numref: numbering of Figures in PDF (XeLatex) - error: WARNING: no number is assigned
Thank you so much for trying. It seems like it works for lots of other people. It makes me wonder if I have something in my preamble.tex or config.py doing something I don't know or understand. I will work on trying to make something small and shareable. (When I get something together, I will submit to the isssues.) I truly appreciate your time! Barbara On Thursday, May 11, 2017 at 1:45:30 AM UTC-5, Komiya Takeshi wrote: > > Hi Barbara, > > I'd tried to reproduce your problem, but I could not. on my local, it > is able to refer the figures. > Could you share your project or provide minimal reproducible one? > If possible, it would be nice if you file this into our issues list. > https://github.com/sphinx-doc/sphinx/issues > > Thanks, > > 2017-05-06 4:41 GMT+09:00 Barbara Pilbin >: > > Hi, > > > > I have spent quite a bit of time searching and trying to figure out what > I > > am doing wrong. If anyone happens to see what I have missed, I would > > appreciate the guidance. > > > > Here are the relevant pieces from my conf.py file: > > > > # -- Options for automatic Figure numbering > > numfig = True > > numfig_secnum_depth = (2) > > > > # Add any Sphinx extension module names here, as strings. They can be > > # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom > > # ones. > > extensions = ['sphinx.ext.intersphinx', > > 'sphinx.ext.todo', > > 'sphinx.ext.ifconfig', > > 'sphinx.ext.githubpages', > > #'rst2pdf.pdfbuilder' > > ] > > > > > > latex_engine = 'xelatex' > > > > - > > > > I have a topic file that is trying to reference a figure as follows: > > > > -- > > The window displays ( :ref:`fig-authentication` ). > > The window displays ( :numref:`Figure %s ` is my > caption > > ). > > > > .. _fig-authentication: > > > > .. figure:: /_static/access/authentication.jpg > >:align: center > > > >Authentication Window > > > > --- > > > > The first sentence outputs the caption of the figure. > > The second sentence gives me an error that says: > > WARNING: no number is assigned for figure: fig-authentication > > > > In the PDF output, the figures do have numbers assigned to them. > > > > I would appreciate any direction that you can provide. > > > > Thanks, > > barbara > > > > -- > > 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 post to this group, send email to sphinx...@googlegroups.com > . > > Visit this group at https://groups.google.com/group/sphinx-users. > > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sphinx-users@googlegroups.com. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
[sphinx-users] Conditional text in a template
Hello I have a template rst file I'm including from different places. I want to make part of the template optional and to be visible only if included from a spesfic file. My naive approach was to use .. only:: java8install in the included template file, and :java8install: True In the file including file But that does not seem to work. What is the right way to use conditional text? Thanks Tzach -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sphinx-users@googlegroups.com. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.