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

no interaction with Asciidoctor Bibliography #6

Closed
345Mathieu543 opened this issue Feb 21, 2022 · 6 comments
Closed

no interaction with Asciidoctor Bibliography #6

345Mathieu543 opened this issue Feb 21, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@345Mathieu543
Copy link

345Mathieu543 commented Feb 21, 2022

Hi,

Your extension is exactly what I searched for!
Unfortunately I can't refer a literature source with Asciidoctor Bibliography in the image caption so that it is represented correctly in the table of figures.

TableOfFigures
Table of figures with incorrect caption representation

TestImage
Test image with correct caption representation

Bibliography
Bibliography where image caption link refers to

How to reproduce in Asciidoctor (testFile.adoc):

= How to reproduce
:notitle:
:figure-caption: Img

<<<
== Table of Figures
element_list::[element=image]

<<<
:sectnums:
== Test Heading
.test image <<Q1>>
image::.\pics\testImg.png[,100,align="left",caption="Img {counter:Img}: "]

.test image <<Q2>>
image::.\pics\testImg.png[,100,align="left",caption="Img {counter:Img}: "]
:sectnums!:

<<<
[bibliography]
== Bibliography

- [[[Q1,1]]] test image link:https://www.google.com/[]
- [[[Q2,2]]] test image link:https://www.google.com/[]

Then I compile with: asciidoctor-pdf -r ./lib/asciidoctor-lists.rb testFile.adoc

I'm not sure if this issue can be resolved in this extension. Let me know what you think ;-)

Kind regards,
Mathieu

@Alwinator
Copy link
Owner

@345Mathieu543 Can you provide me a reproduction / asciidoctor code of your example?

@345Mathieu543
Copy link
Author

@Alwinator I just updated my previous post

@Alwinator
Copy link
Owner

Alwinator commented Feb 22, 2022

@345Mathieu543 Unfortunately, the public asciidoc API does not provide a stable way to access the raw title yet. However, when I have time I can try to implement an unstable workaround by referencing the instance variable. Unfortunately, I am very busy currently, so I don't think that I will have time for it in the next couple of weeks. If you need this feature very crucially you are welcome to submit a Pull Request.

@Alwinator
Copy link
Owner

Alwinator commented Mar 16, 2022

@345Mathieu543 I have implemented your feature request. There is now an enhanced rendering mode that allows you to render links. You can find an example here. Make sure you installed the latest version (1.0.5) before.

@345Mathieu543
Copy link
Author

Thank you for your great work!

@Alwinator
Copy link
Owner

@345Mathieu543 You are welcome! ;)

@Alwinator Alwinator added the enhancement New feature or request label Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants