Question about a pair of floating fugures
Hi all, I struggled with a pair of figures which will float together in a text, each with its own caption. I found out the following solution and I would like to ask whether this is the "oficial" and the best way how to do it. \starttext \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]} or \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]} \stoptext Best, Tomáš
I am taking it back, it has only one caption:-( I wanted to send this code: \starttext \startcolumns[n=2] \placefigure{c11}{\externalfigure[cow][height=3cm]} \column \placefigure{c12}{\externalfigure[cow][height=3cm]} \stopcolumns \stoptext Tomáš Sun, Mar 25, 2018 ve 12:11:58PM +0200 Tomas Hala napsal(a): # Hi all, # # I struggled with a pair of figures which will float together in a text, # each with its own caption. I found out the following solution and # I would like to ask whether this is the "oficial" and the best way # how to do it. # # \starttext # \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]} # or # \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]} # \stoptext # # Best, # # Tomáš # # ___________________________________________________________________________________ # If your question is of interest to others as well, please add an entry to the Wiki! # # maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context # webpage : http://www.pragma-ade.nl / http://context.aanhet.net # archive : https://bitbucket.org/phg/context-mirror/commits/ # wiki : http://contextgarden.net # ___________________________________________________________________________________
Hi Thomas, you have to put your images in a floatcombination environment. \setupexternalfigure[location=default] \starttext \startplacefigure[location=none] \startfloatcombination[2*1] \placefigure{A dutch cow}{\externalfigure[cow][height=5cm]} \placefigure{A dutch mill}{\externalfigure[mill][height=5cm]} \stopfloatcombination \stopplacefigure \stoptext Wolfgang
Tomas Hala mailto:tomas.hala@mendelu.cz 25. März 2018 um 12:11 Hi all,
I struggled with a pair of figures which will float together in a text, each with its own caption. I found out the following solution and I would like to ask whether this is the "oficial" and the best way how to do it.
\starttext \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]} or \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]} \stoptext
Best,
Tomáš
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ Tomas Hala mailto:tomas.hala@mendelu.cz 25. März 2018 um 12:21 I am taking it back, it has only one caption:-(
I wanted to send this code:
\starttext \startcolumns[n=2] \placefigure{c11}{\externalfigure[cow][height=3cm]} \column \placefigure{c12}{\externalfigure[cow][height=3cm]} \stopcolumns \stoptext
Tomáš
Sun, Mar 25, 2018 ve 12:11:58PM +0200 Tomas Hala napsal(a): # Hi all, # # I struggled with a pair of figures which will float together in a text, # each with its own caption. I found out the following solution and # I would like to ask whether this is the "oficial" and the best way # how to do it. # # \starttext # \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]} # or # \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]} # \stoptext # # Best, # # Tomáš # # ___________________________________________________________________________________ # If your question is of interest to others as well, please add an entry to the Wiki! # # maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context # webpage : http://www.pragma-ade.nl / http://context.aanhet.net # archive : https://bitbucket.org/phg/context-mirror/commits/ # wiki : http://contextgarden.net # ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
Hi Wolfgang, that's genious! Thank you very much. Tomáš Sun, Mar 25, 2018 ve 02:37:17PM +0200 Wolfgang Schuster napsal(a): # Hi Thomas, # # you have to put your images in a floatcombination environment. # # \setupexternalfigure[location=default] # # \starttext # # \startplacefigure[location=none] # \startfloatcombination[2*1] # \placefigure{A dutch cow}{\externalfigure[cow][height=5cm]} # \placefigure{A dutch mill}{\externalfigure[mill][height=5cm]} # \stopfloatcombination # \stopplacefigure # # \stoptext # # Wolfgang # # [1]Tomas Hala # 25. März 2018 um 12:11 # Hi all, # # I struggled with a pair of figures which will float together in a text, # each with its own caption. I found out the following solution and # I would like to ask whether this is the "oficial" and the best way # how to do it. # # \starttext # \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]} # or # \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]} # \stoptext # # Best, # # Tomáš # # ___________________________________________________________________________________ # If your question is of interest to others as well, please add an entry # to the Wiki! # # maillist : [2]ntg-context@ntg.nl / # [3]http://www.ntg.nl/mailman/listinfo/ntg-context # webpage : [4]http://www.pragma-ade.nl / [5]http://context.aanhet.net # archive : [6]https://bitbucket.org/phg/context-mirror/commits/ # wiki : [7]http://contextgarden.net # ___________________________________________________________________________________ # [8]Tomas Hala # 25. März 2018 um 12:21 # I am taking it back, it has only one caption:-( # # I wanted to send this code: # # \starttext # \startcolumns[n=2] # \placefigure{c11}{\externalfigure[cow][height=3cm]} # \column # \placefigure{c12}{\externalfigure[cow][height=3cm]} # \stopcolumns # \stoptext # # Tomáš # # Sun, Mar 25, 2018 ve 12:11:58PM +0200 Tomas Hala napsal(a): # # Hi all, # # # # I struggled with a pair of figures which will float together in a # text, # # each with its own caption. I found out the following solution and # # I would like to ask whether this is the "oficial" and the best way # # how to do it. # # # # \starttext # # # \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\externalfigure[a.jpg]\externalfigure[a.jpg]} # # or # # # \placefigure{}{\dontleavehmode\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]\hfill\externalfigure[a.jpg]} # # \stoptext # # # # Best, # # # # Tomáš # # # # # ___________________________________________________________________________________ # # If your question is of interest to others as well, please add an entry # to the Wiki! # # # # maillist : [9]ntg-context@ntg.nl / # [10]http://www.ntg.nl/mailman/listinfo/ntg-context # # webpage : [11]http://www.pragma-ade.nl / [12]http://context.aanhet.net # # archive : [13]https://bitbucket.org/phg/context-mirror/commits/ # # wiki : [14]http://contextgarden.net # # # ___________________________________________________________________________________ # # ___________________________________________________________________________________ # If your question is of interest to others as well, please add an entry # to the Wiki! # # maillist : [15]ntg-context@ntg.nl / # [16]http://www.ntg.nl/mailman/listinfo/ntg-context # webpage : [17]http://www.pragma-ade.nl / [18]http://context.aanhet.net # archive : [19]https://bitbucket.org/phg/context-mirror/commits/ # wiki : [20]http://contextgarden.net # ___________________________________________________________________________________ # # References # # Visible links # 1. mailto:tomas.hala@mendelu.cz # 2. mailto:ntg-context@ntg.nl # 3. http://www.ntg.nl/mailman/listinfo/ntg-context # 4. http://www.pragma-ade.nl/ # 5. http://context.aanhet.net/ # 6. https://bitbucket.org/phg/context-mirror/commits/ # 7. http://contextgarden.net/ # 8. mailto:tomas.hala@mendelu.cz # 9. mailto:ntg-context@ntg.nl # 10. http://www.ntg.nl/mailman/listinfo/ntg-context # 11. http://www.pragma-ade.nl/ # 12. http://context.aanhet.net/ # 13. https://bitbucket.org/phg/context-mirror/commits/ # 14. http://contextgarden.net/ # 15. mailto:ntg-context@ntg.nl # 16. http://www.ntg.nl/mailman/listinfo/ntg-context # 17. http://www.pragma-ade.nl/ # 18. http://context.aanhet.net/ # 19. https://bitbucket.org/phg/context-mirror/commits/ # 20. http://contextgarden.net/ # /usr/bin/xdg-open: řádek 402: htmlview: příkaz nenalezen # /usr/bin/xdg-open: řádek 402: firefox: příkaz nenalezen # /usr/bin/xdg-open: řádek 402: mozilla: příkaz nenalezen # /usr/bin/xdg-open: řádek 402: netscape: příkaz nenalezen # ___________________________________________________________________________________ # If your question is of interest to others as well, please add an entry to the Wiki! # # maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context # webpage : http://www.pragma-ade.nl / http://context.aanhet.net # archive : https://bitbucket.org/phg/context-mirror/commits/ # wiki : http://contextgarden.net # ___________________________________________________________________________________ Tomáš Hála -------------------------------------------------------------------- Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 -------------------------------------------------------------------- http://akela.mendelu.cz/~thala
participants (2)
-
Tomas Hala
-
Wolfgang Schuster