FIGURE AND TABLE SIDE BY SIDE LATEX

Looking to put a table and a figure side by side so that the table and number have their own captions. A crude sketch

------------ ----------------- TABLE | a | b | FIGURE | c | d | ------------ Table 2: Caption ----------------- Figure 7: CaptionThe closest I"ve obtained is:

egintable%centeringparbox0.4sibbap.orgtwidtheginfootnotesizeegintabular hlinesome & table\endtabularendfootnotesizecaptionTablelabeltab:tableqquadeginminipage0.53sibbap.orgtwidth%centering includegraphicsawesomecaptionFigurelabelfig:figureendminipageendtableBut that gives 2 Table X: Caption captions. I didn"t uncover anything in subfig.

You watching: Figure and table side by side latex

Help?


floats positioning captions
Share
Improve this question
Follow
edited Jul 14 "17 at 15:12
*

samcarter_is_at_topanswers.xyz
109k1212 gold badges161161 silver badges420420 bronze badges
asked Dec 10 "10 at 4:33
*

badroitbadroit
6,86799 gold badges3737 silver badges5858 bronze badges
1
Add a comment |

2 Answers 2


Active Oldest Votes
99
+50
Use a floatrow setting of the package of the exact same name.

documentclassarticleusepackagefloatrow% Table float box with bottom subtitle, box width adjusted to content ewfloatcommandcapbtabboxtable<>usepackageblindsibbap.orgtegindocumentlindsibbap.orgteginfigureeginfloatrowffigbox% ule3cm3cm%% captionA figure%capbtabbox% egintabularcc hline Author & Title \ hline Knuth & The sibbap.org book \ Lamport & Lasibbap.org \ hline endtabular% captionA table%endfloatrowendfigureenddocument

*


Share
Improve this answer
Follow
edited Feb 18 "17 at 18:35
*

Werner
541k110110 gold badges12631263 silver badges20772077 bronze badges
answered Dec 10 "10 at 14:33
*

locksteplockaction
231k6363 gold badges671671 silver badges763763 bronze badges
14
| Sjust how 9 even more comments
71
You have the right to usage the »caption« package. See code listed below for an example derived from the package hand-operated.

See more: The Jungle Book Blu Ray Review, The Jungle Book Blu

documentclass<11pt>articleusepackagefontencusepackagecaptionDeclareCaptionLabelFormatandtable#1~#2 & ablename~ hetableegindocument eginfigure centering ule6.4cm3.6cm qquad egintabularcchline Table head & Table head \ hline Some values & Some values \ Some worths & Some values \ Some values & Some values \ Some values & Some worths \ Some values & Some values \ Some worths & Some worths \ hline endtabular captionlistentryA table beside a figure captionsetuplabelformat=andtable captionA table alongside a figure endfigureenddocumentYou will uncover even more details in the hand-operated. This is not exactly what you want, but it would float.

*

Supplement:

Anvarious other solution that would give the preferred output. But this won"t float.

documentclass<11pt,a4paper,english>articleusepackagefontencusepackageinputencusepackagebabelusepackagecaptionegindocument eginminipagesibbap.orgtwidth eginminipage0.49sibbap.orgtwidth centering ule6.4cm3.6cm captionoffigureA table next to a figure endminipage hfill eginminipage0.49sibbap.orgtwidth centering egintabularcchline Table head & Table head \ hline Some values & Some values \ Some values & Some values \ Some worths & Some worths \ Some values & Some worths \ Some values & Some values \ Some worths & Some worths \ hline endtabular captionoftableA table next to a figure endminipage endminipageenddocument

*