ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* graphics: figure combination and single figure side by side
@ 2013-04-08 17:46 Xenia
  2013-04-08 22:29 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Xenia @ 2013-04-08 17:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi context list,

I want to place three figures in a row, but two of them as part of a
combination with a common caption.
I tried this with columns, but did not manage it, because I only read
how to span 2 columns with single figures.

How can this be done properly?

Thanks,
Xenia
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: graphics: figure combination and single figure side by side
  2013-04-08 17:46 graphics: figure combination and single figure side by side Xenia
@ 2013-04-08 22:29 ` Wolfgang Schuster
  2013-04-09 19:04   ` Xenia
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-04-08 22:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 08.04.2013 um 19:46 schrieb Xenia <yoraxe@googlemail.com>:

> Hi context list,
> 
> I want to place three figures in a row, but two of them as part of a
> combination with a common caption.
> I tried this with columns, but did not manage it, because I only read
> how to span 2 columns with single figures.
> 
> How can this be done properly?

You can use a table.

\setupexternalfigures[location=default]

\starttext

\bTABLE[frame=off,align=middle]
  \bTR
    \bTD \externalfigure[cow]   [height=5\lineheight] \eTD
    \bTD \externalfigure[mill]  [height=5\lineheight] \eTD
    \bTD \externalfigure[hacker][height=5\lineheight] \eTD
  \eTR
  \bTR
    \bTD Figure 1\eTD
    \bTD[nx=2] Figure 2 and 3 \eTD
  \eTR
\eTABLE

\stoptext

Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: graphics: figure combination and single figure side by side
  2013-04-08 22:29 ` Wolfgang Schuster
@ 2013-04-09 19:04   ` Xenia
  0 siblings, 0 replies; 3+ messages in thread
From: Xenia @ 2013-04-09 19:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

On 09.04.2013 00:29, Wolfgang Schuster wrote:
> 
> Am 08.04.2013 um 19:46 schrieb Xenia <yoraxe@googlemail.com>:
> 
>> Hi context list,
>>
>> I want to place three figures in a row, but two of them as part of a
>> combination with a common caption.
>> I tried this with columns, but did not manage it, because I only read
>> how to span 2 columns with single figures.
>>
>> How can this be done properly?
> 
> You can use a table.

Thanks for this tip. But using this with placefigure and a combination
it starts counting with Figure 7.



[-- Attachment #2: combination_in_table.log --]
[-- Type: text/x-log, Size: 9809 bytes --]

(/home/maja/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.03.24 15:11 MKIV  fmt: 2013.3.24  int: english/english

system          > 'cont-new.mkiv' loaded
(/home/maja/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > files > jobname 'combination_in_table', input 'combination_in_table', result 'combination_in_table'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
(combination_in_table.tex{/home/maja/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
fonts           > typescripts > unknown library 'loc'
{/home/maja/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/maja/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > 'fallback modern rm 12pt' is loaded
floatblocks     > '1' placed
floatblocks     > '2' placed
floatblocks     > '3' placed
floatblocks     > '4' placed
floatblocks     > '5' placed
floatblocks     > '6' placed
floatblocks     > '7' placed
floatblocks     > '8' placed
backend         > xmp > using file '/home/maja/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
 </home/maja/context/tex/texmf-context/tex/context/sample/cow.pdf> </home/maja/context/tex/texmf-context/tex/context/sample/mill.png> </home/maja/context/tex/texmf-context/tex/context/sample/hacker.jpg>
pages           > flushing realpage 1, userpage 1
 ) )</home/maja/context/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf></home/maja/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>

system          > files > start used files

used files      >    1: filename=cont-yes.mkiv filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used files      >    2: filename=cont-new.mkiv filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database
used files      >    3: filename=lang-us.lua filetype=lua foundname=/home/maja/context/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database
used files      >    4: filename=combination_in_table.tex foundname=combination_in_table.tex usedmethod=direct
used files      >    5: filename=mkiv-base.map filetype=map format=map foundname=/home/maja/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map usedmethod=database
used files      >    6: filename=lm.lfg filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=database
used files      >    7: filename=lm-math.lfg filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/fonts/lm-math.lfg usedmethod=database
used files      >    8: filename=lm-math.map filetype=map format=map foundname=/home/maja/context/tex/texmf/fonts/map/dvips/lm/lm-math.map usedmethod=database
used files      >    9: filename=lm-rm.map filetype=map format=map foundname=/home/maja/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used files      >   10: filename=lmroman12-regular filetype=otf format=otf foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used files      >   11: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used files      >   12: filename=latinmodern-math.otf filetype=otf format=otf foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used files      >   13: filename=cow.pdf filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/sample/cow.pdf usedmethod=database
used files      >   14: filename=mill.png filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/sample/mill.png usedmethod=database
used files      >   15: filename=lmroman12-bold filetype=otf format=otf foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf usedmethod=database
used files      >   16: filename=hacker.jpg filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/sample/hacker.jpg usedmethod=database
used files      >   17: filename=lpdf-pdx.xml filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database

system          > files > stop used files


system          > structure > start used structure

used structure  > text: combination_in_table

system          > structure > stop used structure


system          > files > start used files

used file       >    1: filename=cont-yes.mkiv filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used file       >    2: filename=cont-new.mkiv filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database
used file       >    3: filename=lang-us.lua filetype=lua foundname=/home/maja/context/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database
used file       >    4: filename=combination_in_table.tex foundname=combination_in_table.tex usedmethod=direct
used file       >    5: filename=mkiv-base.map filetype=map format=map foundname=/home/maja/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map usedmethod=database
used file       >    6: filename=lm.lfg filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=database
used file       >    7: filename=lm-math.lfg filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/fonts/lm-math.lfg usedmethod=database
used file       >    8: filename=lm-math.map filetype=map format=map foundname=/home/maja/context/tex/texmf/fonts/map/dvips/lm/lm-math.map usedmethod=database
used file       >    9: filename=lm-rm.map filetype=map format=map foundname=/home/maja/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used file       >   10: filename=lmroman12-regular filetype=otf format=otf foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file       >   11: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file       >   12: filename=latinmodern-math.otf filetype=otf format=otf foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file       >   13: filename=cow.pdf filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/sample/cow.pdf usedmethod=database
used file       >   14: filename=mill.png filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/sample/mill.png usedmethod=database
used file       >   15: filename=lmroman12-bold filetype=otf format=otf foundname=/home/maja/context/tex/texmf/fonts/opentype/public/lm/lmroman12-bold.otf usedmethod=database
used file       >   16: filename=hacker.jpg filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/sample/hacker.jpg usedmethod=database
used file       >   17: filename=lpdf-pdx.xml filetype=tex foundname=/home/maja/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database

system          > files > stop used files


system          > options > start commandline options

used option     > currentrun="2"
used option     > fulljobname="./combination_in_table.tex"
used option     > input="./combination_in_table.tex"
used option     > kindofrun="2"
used option     > maxnofruns="8"
used option     > no-parse-first-line="true"

system          > options > stop commandline options

system          > options > start commandline files

used file       >    1: ./combination_in_table.tex

system          > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /home/maja/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.011 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 17 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 323 modules (0.220 sec), 69 tables (0.010 sec), 392 chunks (0.230 sec)
mkiv lua stats  > cleaned up reserved nodes: 41 nodes, 9 lists of 441
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 28 glue_spec, 3 attribute_list, 6 late_lua
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances (re)created, 306 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns: en::2
mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 722 direct, 196 indirect, 918 total
mkiv lua stats  > randomizer: resumed with value 0.14694816532868
mkiv lua stats  > lxml preparation time: 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats  > result saved in file: combination_in_table.pdf, compresslevel 3, objectcompreslevel 3
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf lmroman12-bold.otf lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.295 seconds 
mkiv lua stats  > graphics processing time: 0.042 seconds including tex, 12 processed images
mkiv lua stats  > luatex banner: this is luatex, version beta-0.75.0-2013031411  (tex live 2013/dev)(rev 4589)
mkiv lua stats  > control sequences: 36792 of 65536 + 100000
mkiv lua stats  > current memory usage: 28 MB (ctx: 27 MB)
mkiv lua stats  > runtime: 0.944 seconds, 1 processed pages, 1 shipped pages, 1.059 pages/second


[-- Attachment #3: combination_in_table.tex --]
[-- Type: text/x-tex, Size: 443 bytes --]

\setupexternalfigures[location=default]

\starttext

\bTABLE[frame=off,align=middle]
  \bTR
    \bTD 

		\placefigure[][fig:ref]{caption for two}{
		\startcombination[2*1]
		{\externalfigure[cow][width=0.25\textwidth]} {(a)}
		{\externalfigure[mill][width=0.25\textwidth]} {(b)}
		\stopcombination
		}
    \eTD
    \bTD \placefigure[][fig:ref2]{Caption for one}{\externalfigure[hacker][width=0.25\textwidth]} 
	\eTD
  \eTR
\eTABLE

\stoptext


[-- Attachment #4: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2013-04-09 19:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-08 17:46 graphics: figure combination and single figure side by side Xenia
2013-04-08 22:29 ` Wolfgang Schuster
2013-04-09 19:04   ` Xenia

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).