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

Problem loading only images (fig) #221

Open
PabMai opened this issue Aug 31, 2020 · 4 comments
Open

Problem loading only images (fig) #221

PabMai opened this issue Aug 31, 2020 · 4 comments

Comments

@PabMai
Copy link

PabMai commented Aug 31, 2020

I run into a problem displaying the images when it is only loaded with the FIG tag but if I add the TABLE-WRAP tag in the same XML file if the images are displayed.
How can I solve this problem? I show you when it works.
I am using compiled version 2.0.0

<p>
 <fig id="gf1" position="float">                    
  <label>Figura 1</label>
  <caption>
    <title>Similitudes en la Prevención de Riesgos Laborales y penales </title>
  </caption>
  <alt-text>Figura 1 Similitudes en la Prevención de Riesgos Laborales y penales </alt-text>                  
  <graphic xlink:href="587561489005_gf2.png"/>                    
  <attrib>Fuente: Elaboración Propia</attrib>     
 </fig>  
 <table-wrap></table-wrap>
</p>
@gnott
Copy link
Member

gnott commented Sep 22, 2020

Your description is possibly similar to issue #206, where adding a <table-wrap> also caused the Figure tab to show.

You could try adding a <p> to the <caption>, as described in comment #206 (comment), and it may also fix it.

There is no code fix for it yet, though, I guess I was unable to fix it at the time.

@DavidMorenoCortina
Copy link

I've create a pull request solving this: https://github.com/elifesciences/lens/pull/223
Anyway, adding a single

to a figure makes the figures panel to show.

@gnott
Copy link
Member

gnott commented Jan 22, 2021

Thanks @DavidMorenoCortina for preparing a PR, I look forward to reviewing it soon!

@gnott
Copy link
Member

gnott commented Feb 5, 2021

May be fixed by PR #223 now merged. @PabMai, if you are able to test the latest version of the develop branch of Lens, does it fix your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants