ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Question about a pair of floating fugures
@ 2018-03-25 10:11 Tomas Hala
  2018-03-25 10:21 ` Tomas Hala
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Hala @ 2018-03-25 10:11 UTC (permalink / raw)
  To: Mailing list ConTeXt

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about a pair of floating fugures
  2018-03-25 10:11 Question about a pair of floating fugures Tomas Hala
@ 2018-03-25 10:21 ` Tomas Hala
  2018-03-25 12:37   ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Hala @ 2018-03-25 10:21 UTC (permalink / raw)
  To: Mailing list ConTeXt

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about a pair of floating fugures
  2018-03-25 10:21 ` Tomas Hala
@ 2018-03-25 12:37   ` Wolfgang Schuster
  2018-03-25 13:30     ` Tomas Hala
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2018-03-25 12:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3481 bytes --]

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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 6759 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about a pair of floating fugures
  2018-03-25 12:37   ` Wolfgang Schuster
@ 2018-03-25 13:30     ` Tomas Hala
  0 siblings, 0 replies; 4+ messages in thread
From: Tomas Hala @ 2018-03-25 13:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-25 13:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-25 10:11 Question about a pair of floating fugures Tomas Hala
2018-03-25 10:21 ` Tomas Hala
2018-03-25 12:37   ` Wolfgang Schuster
2018-03-25 13:30     ` Tomas Hala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).