Can figures be arranged in order that they are referenced in text? #12034
              
                Unanswered
              
          
                  
                    
                      charliecornwallis
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 3 comments 19 replies
-
| Yes, you need to write a LUA filter to do that. https://quarto.org/docs/extensions/ PS: mostly for accessibility, could you add actual text, like the question inside your post? Assistive devices won't get anything but a "description" followed by a long code block almost out of context. | 
Beta Was this translation helpful? Give feedback.
                  
                    14 replies
                  
                
            -
| Really appreciate you continuing to look into this!
That workaround didn't work for me, but perhaps I specified it in the wrong way. Could you provide an example of what you mean?
Thanks very much.… ________________________________
From: Mickaël Canouil ***@***.***>
Sent: 11 February 2025 20:24
To: quarto-dev/quarto-cli ***@***.***>
Cc: Charlie Cornwallis ***@***.***>; Author ***@***.***>
Subject: Re: [quarto-dev/quarto-cli] Can figures be arranged in order that they are referenced in text? (Discussion #12034)
As a workaround you can surround your figure with another div.
—
Reply to this email directly, view it on GitHub<#12034 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOJ2IEQPK6FU3MGVSNVAJ232PJE65AVCNFSM6AAAAABWS6Y7SOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMJVGA4DEMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***> | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            -
| Yes. For example:
````
::: {#fig-cars }
:::
```{r}
#| echo: false
#| message: false
#| warning: false
ggplot(cars, aes(speed, dist)) +
  geom_point() +
  geom_smooth(method = "loess")
```
Cars
:::
:::
````… ________________________________
From: Mickaël Canouil ***@***.***>
Sent: 12 February 2025 11:11
To: quarto-dev/quarto-cli ***@***.***>
Cc: Charlie Cornwallis ***@***.***>; Author ***@***.***>
Subject: Re: [quarto-dev/quarto-cli] Can figures be arranged in order that they are referenced in text? (Discussion #12034)
What di you try? did you add an extra Div around with an ID?
—
Reply to this email directly, view it on GitHub<#12034 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOJ2IEWOCAM5XOHIAYMFMRD2PMM3ZAVCNFSM6AAAAABWS6Y7SOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMJWG43TIMA>.
You are receiving this because you authored the thread.Message ID: ***@***.***> | 
Beta Was this translation helpful? Give feedback.
                  
                    4 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Beta Was this translation helpful? Give feedback.
All reactions