Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.8.4 - Cross-referencing arbitrary locations is not working with large PDF generated documents only #6026

Closed
wtuemura opened this issue Feb 5, 2019 · 4 comments

Comments

@wtuemura
Copy link

wtuemura commented Feb 5, 2019

Describe the bug
Cross-referencing arbitrary locations is not working with large PDF generated documents.
https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-arbitrary-locations

This behavior appears to happen with PDF documents only. All the cross-referencing works just fine with HTML pages.

To Reproduce

.. _mame-commandline-aviwrite:

**-aviwrite** <*filename*>.avi

	Grava todos os dados de áudio e vídeo em formato AVI sem compressão,
	note que a taxa de quadros e a resolução são sempre fixas. Vídeos
	sem compressão ocupam muito espaço assim como, para que a gravação
	ocorra sem problemas é necessário um HDD rápido.
	
	Talvez seja mais prático gravar os seus comandos com
	:ref:`-record <mame-commandline-record>` e
	depois fazer o vídeo com
	:ref:`-aviwrite <mame-commandline-aviwrite>` combinado com
	:ref:`-playback <mame-commandline-playback>` e
	:ref:`-exit_after_playback <mame-commandline-exitafterplayback>`.

Expected behavior
To generate a link to the proper sections.

Your project
Download the last source update from the main page.
https://github.com/wtuemura/mamedoc

Screenshots
Sphinx 1.8.3, we have the cross reference working.
sphinx-183

Sphinx 1.8.4, with no changes in my source, the cross reference doesn't work anymore.
sphinx-184

There are parts of the document that got cross-referenced and others that don't for unknown reason.

Also noticed over 1000+ warnings like LaTeX Warning: Hyper reference `initialsetup/compilingmame:compiling-mame' on page 7 undefined on input line 346. Sphinx complains about it but looking in to source there are nothing wrong with.

initialsetup/compilingmame.rst:

.. _compiling-mame:

Compilando o MAME
=================

initialsetup/installingmame.rst:

Caso você escolha a opção de compilar você mesmo o MAME, consulte a
seção :ref:`compiling-mame` para mais detalhes.

initialsetup/crosscompilemame.rst:

Assim como na compilação nativa, você pode adicionar a opção **-j** no
final do comando visando acelerar o processo de compilação usando os
núcleos do seu processador como já foi explicado com mais detalhes no
capítulo :ref:`compiling-mame`: ::

Environment info

  • OS: Debian 9.7 x64
  • Python version: 2.7.13
  • Sphinx version: 1.8.4
  • Sphinx extensions: sphinx.ext.autodoc, sphinx.ext.mathjax, sphinx.ext.viewcode, edit_on_github, sphinxcontrib.rsvgconverter.
  • Extra tools: sphinx_rtd_theme for HTML generation.

Additional context
Installed with pip install -U Sphinx

Thank you.

@jfbu
Copy link
Contributor

jfbu commented Feb 5, 2019

Caused by #6006. Thanks for report.

@jfbu
Copy link
Contributor

jfbu commented Feb 5, 2019

small project showing the issue: 6026project.zip

@jfbu jfbu added this to the 1.8.5 milestone Feb 5, 2019
tk0miya added a commit to tk0miya/sphinx that referenced this issue Feb 10, 2019
tk0miya added a commit that referenced this issue Feb 16, 2019
Fix #6026: LaTeX: A cross reference to definition list does not work
@tk0miya
Copy link
Member

tk0miya commented Feb 16, 2019

Fixed by #6051.
Thank you for reporting.

@tk0miya tk0miya closed this as completed Feb 16, 2019
@wtuemura
Copy link
Author

wtuemura commented Feb 16, 2019

Confirmed @tk0miya
完璧ですよねぇ。

Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants