Re: Figures side by side
How to solve the issue, then ? There must be some way to get around . Thanks On Wed, Sep 2, 2015 at 5:34 PM, Sajjadwrote: > Thanks for the hint. I tried again with your suggestion that I might have > missed initially. Unfortunately, I am getting the same result - one image > overlapping the other image. So I thought of pasting the source below for > you so that it becomes more transparent of what I might have missed in the > process. > > > > / > > % Preview source code for paragraph 17 > > > \begin{figure} > > > > \begin{minipage}[t]{0.45\textwidth}% > > \begin{center} > > \includegraphics[scale=0.1]{images/ReferenceSinteredModel} > > \par\end{center} > > > \protect\caption{Reference Sintered Model} > > % > > \end{minipage}% > > \begin{minipage}[t]{0.45\textwidth}% > > \begin{center} > > \includegraphics[scale=0.1]{images/OriginalSinteredModel} > > \par\end{center} > > > \protect\caption{Original Sintered Model} > > % > > \end{minipage} > > > \end{figure} > > > /// > > > > You may have noted that , horizontal fill is not visible in the source. Do > they show up ? I am inserting the horizontal fill between the two > minipages, but the insertion is not showing up in the source. > > > > Waiting for more feed-back over this issue. > > > > Thanks > > > On Tue, Sep 1, 2015 at 3:52 PM, Scott Kostyshak wrote: > >> On Mon, Aug 31, 2015 at 12:11 PM, Rich Shepard >> wrote: >> > On Mon, 31 Aug 2015, Sajjad wrote: >> > >> >> Any hint to get around this issue? >> > >> > >> > I bet you forgot to 1) put a horizontal fill space between the two >> > minipages (frameless boxes) and 2) did not set the size of each figure >> to >> > 45% of the text width. >> >> Note that a related LyX question was just asked here: >> >> http://tex.stackexchange.com/questions/264161/lyx-side-by-side-figure-inside-two-column-layoutt >> >> Scott >> > >
Re: Figures side by side
On Wed, 2 Sep 2015, Sajjad wrote: So I thought of pasting the source below for you so that it becomes more transparent of what I might have missed in the process. I see one possibility: \begin{center} \includegraphics[scale=0.1]{images/ReferenceSinteredModel} \par\end{center} Aligning to the center might override the minipage or scaling to 45% of text width. You may have noted that , horizontal fill is not visible in the source. Do they show up ? I am inserting the horizontal fill between the two minipages, but the insertion is not showing up in the source. No idea, because I've not had an issue with placing two figures side-by-side in a single float. Rich
Re: Figures side by side
Thanks for the hint. I tried again with your suggestion that I might have missed initially. Unfortunately, I am getting the same result - one image overlapping the other image. So I thought of pasting the source below for you so that it becomes more transparent of what I might have missed in the process. / % Preview source code for paragraph 17 \begin{figure} \begin{minipage}[t]{0.45\textwidth}% \begin{center} \includegraphics[scale=0.1]{images/ReferenceSinteredModel} \par\end{center} \protect\caption{Reference Sintered Model} % \end{minipage}% \begin{minipage}[t]{0.45\textwidth}% \begin{center} \includegraphics[scale=0.1]{images/OriginalSinteredModel} \par\end{center} \protect\caption{Original Sintered Model} % \end{minipage} \end{figure} /// You may have noted that , horizontal fill is not visible in the source. Do they show up ? I am inserting the horizontal fill between the two minipages, but the insertion is not showing up in the source. Waiting for more feed-back over this issue. Thanks On Tue, Sep 1, 2015 at 3:52 PM, Scott Kostyshakwrote: > On Mon, Aug 31, 2015 at 12:11 PM, Rich Shepard > wrote: > > On Mon, 31 Aug 2015, Sajjad wrote: > > > >> Any hint to get around this issue? > > > > > > I bet you forgot to 1) put a horizontal fill space between the two > > minipages (frameless boxes) and 2) did not set the size of each figure to > > 45% of the text width. > > Note that a related LyX question was just asked here: > > http://tex.stackexchange.com/questions/264161/lyx-side-by-side-figure-inside-two-column-layoutt > > Scott >
Re: Figures side by side
On Tue, 1 Sep 2015, Scott Kostyshak wrote: Note that a related LyX question was just asked here: http://tex.stackexchange.com/questions/264161/lyx-side-by-side-figure-inside-two-column-layoutt Scott, I don't follow stackexchange. Mail lists work best for me. So, no, I did not see that the request was asked in two places. Rich
Re: Figures side by side
On Tue, Sep 1, 2015 at 3:03 PM, Rich Shepardwrote: > On Tue, 1 Sep 2015, Scott Kostyshak wrote: > >> Note that a related LyX question was just asked here: >> >> http://tex.stackexchange.com/questions/264161/lyx-side-by-side-figure-inside-two-column-layoutt > > > Scott, > > I don't follow stackexchange. Mail lists work best for me. So, no, I did > not see that the request was asked in two places. I'm confused. I was just noting a related post. I think the stackexchange post was made after Sajjad's email and your response, so you couldn't have seen it anyway. I don't know if that was a cross-post or not (meaning it is the same person who made both posts). It doesn't really matter. Whenever I see two open questions that are related, I try to "link" them so that (1) people do not waste time trying to solve a problem that is already solved (for a fun and informative read, see http://www.latex-community.org/home/latex-community/94-etiquette/454-crossposts); and (2) if someone google's and comes across this question, they can follow the link and find a related topic of interest that might help in solving their problem. Did I misunderstand something? I am often bad with communication through text, so I'm always looking for ways to improve. Suggestions are welcome. Looking back, I think one thing I could have done better is reply to Sajjad's email instead of your email. When I am not quoting something and I just want to reply, I have the habit of just replying to the last email in the thread. By I suppose that has the side effect that you think I am responding directly to you. Would it have been better if I responded to Sajjad instead of the last email in the thread (which happened to be yours)? Also, I could have removed you from GMail's "reply all" default, which is a lazy way of respond to the list. Would that have avoided confusion? Scott
Re: Figures side by side
On Tue, Sep 1, 2015 at 8:00 PM, Rich Shepardwrote: > On Tue, 1 Sep 2015, Scott Kostyshak wrote: > >> I'm confused. I was just noting a related post. I think the stackexchange >> post was made after Sajjad's email and your response, so you couldn't have >> seen it anyway. > > > The message was addressed to me, not the list (that address was a copy). > Thought it was directed at me. OK I'll pay more attention to that. Soon I will be mostly leaving GMail for Mutt, where I just need to press "l" for list reply. Scott
Re: Figures side by side
On Tue, 1 Sep 2015, Scott Kostyshak wrote: I'm confused. I was just noting a related post. I think the stackexchange post was made after Sajjad's email and your response, so you couldn't have seen it anyway. The message was addressed to me, not the list (that address was a copy). Thought it was directed at me. Rich
Re: Figures side by side
On Mon, Aug 31, 2015 at 12:11 PM, Rich Shepardwrote: > On Mon, 31 Aug 2015, Sajjad wrote: > >> Any hint to get around this issue? > > > I bet you forgot to 1) put a horizontal fill space between the two > minipages (frameless boxes) and 2) did not set the size of each figure to > 45% of the text width. Note that a related LyX question was just asked here: http://tex.stackexchange.com/questions/264161/lyx-side-by-side-figure-inside-two-column-layoutt Scott
Re: Figures side by side
On Mon, 31 Aug 2015, Sajjad wrote: Any hint to get around this issue? I bet you forgot to 1) put a horizontal fill space between the two minipages (frameless boxes) and 2) did not set the size of each figure to 45% of the text width. Rich
Re: figures side by side
Raphael Clifford wrote: Hi, I have been trying to follow the instructions given at http://wiki.lyx.org/pmwiki.php/Examples/FiguresSideBySide but I am afraid I don't quite understand how to align the figures vertically. I know that the question appears to be answered in the sample lyx file pasted in the mailing list but I don't see how to actually do it from lyx? Sorry to be dumb but what do I have to do in lyx to align the two figures vertically? Do as in the example, and the figures _will_ be side by side. The example uses two figures, each in separate minipages. Latex tries to put stuff on the same line until the line gets full. If the two minipages is 50% (or less) of column width, then they will fit on a single line and you get two figures on the same line. The recipe aligns one figure with the left margin and one with the right margin, because there is a hfill between them. (hfills take up all excess space on a line). If you don't want your figures right at the edges, try putting a hfill before the first one and a hfill after the last one too. Note that this only shuffles the minipages around. The figure inside a minipage may be smaller than the minipage, and possibly badly aligned inside it. Put the cursor inside the minipage, in the same paragraph as the figure. Then select layout-paragraph and use centered, right-justified or left-justified. (The setting applies only to that one paragraph inside the minipage, nothing happens to the minipage itself.) You can also use hfills inside the minipage if you find that easier. If this don't help, please ask a more detailed question. Tell what you try to do, how it goes wrong, and provide a minimal example file. Helge Hafting
Re: figures side by side
Raphael Clifford wrote: Hi, I have been trying to follow the instructions given at http://wiki.lyx.org/pmwiki.php/Examples/FiguresSideBySide but I am afraid I don't quite understand how to align the figures vertically. I know that the question appears to be answered in the sample lyx file pasted in the mailing list but I don't see how to actually do it from lyx? Sorry to be dumb but what do I have to do in lyx to align the two figures vertically? Do as in the example, and the figures _will_ be side by side. The example uses two figures, each in separate minipages. Latex tries to put stuff on the same line until the line gets full. If the two minipages is 50% (or less) of column width, then they will fit on a single line and you get two figures on the same line. The recipe aligns one figure with the left margin and one with the right margin, because there is a hfill between them. (hfills take up all excess space on a line). If you don't want your figures right at the edges, try putting a hfill before the first one and a hfill after the last one too. Note that this only shuffles the minipages around. The figure inside a minipage may be smaller than the minipage, and possibly badly aligned inside it. Put the cursor inside the minipage, in the same paragraph as the figure. Then select layout-paragraph and use centered, right-justified or left-justified. (The setting applies only to that one paragraph inside the minipage, nothing happens to the minipage itself.) You can also use hfills inside the minipage if you find that easier. If this don't help, please ask a more detailed question. Tell what you try to do, how it goes wrong, and provide a minimal example file. Helge Hafting
Re: figures side by side
Raphael Clifford wrote: Hi, I have been trying to follow the instructions given at http://wiki.lyx.org/pmwiki.php/Examples/FiguresSideBySide but I am afraid I don't quite understand how to align the figures vertically. I know that the question appears to be answered in the sample lyx file pasted in the mailing list but I don't see how to actually do it from lyx? Sorry to be dumb but what do I have to do in lyx to align the two figures vertically? Do as in the example, and the figures _will_ be side by side. The example uses two figures, each in separate minipages. Latex tries to put stuff on the same line until the line gets full. If the two minipages is 50% (or less) of column width, then they will fit on a single line and you get two figures on the same line. The recipe aligns one figure with the left margin and one with the right margin, because there is a hfill between them. (hfills take up all excess space on a line). If you don't want your figures right at the edges, try putting a hfill before the first one and a hfill after the last one too. Note that this only shuffles the minipages around. The figure inside a minipage may be smaller than the minipage, and possibly badly aligned inside it. Put the cursor inside the minipage, in the same paragraph as the figure. Then select layout->paragraph and use centered, right-justified or left-justified. (The setting applies only to that one paragraph inside the minipage, nothing happens to the minipage itself.) You can also use hfills inside the minipage if you find that easier. If this don't help, please ask a more detailed question. Tell what you try to do, how it goes wrong, and provide a minimal example file. Helge Hafting
figures side by side
Hi, I have been trying to follow the instructions given at http://wiki.lyx.org/pmwiki.php/Examples/FiguresSideBySide but I am afraid I don't quite understand how to align the figures vertically. I know that the question appears to be answered in the sample lyx file pasted in the mailing list but I don't see how to actually do it from lyx? Sorry to be dumb but what do I have to do in lyx to align the two figures vertically? Kind regards, Raphael
figures side by side
Hi, I have been trying to follow the instructions given at http://wiki.lyx.org/pmwiki.php/Examples/FiguresSideBySide but I am afraid I don't quite understand how to align the figures vertically. I know that the question appears to be answered in the sample lyx file pasted in the mailing list but I don't see how to actually do it from lyx? Sorry to be dumb but what do I have to do in lyx to align the two figures vertically? Kind regards, Raphael
figures side by side
Hi, I have been trying to follow the instructions given at http://wiki.lyx.org/pmwiki.php/Examples/FiguresSideBySide but I am afraid I don't quite understand how to align the figures vertically. I know that the question appears to be answered in the sample lyx file pasted in the mailing list but I don't see how to actually do it from lyx? Sorry to be dumb but what do I have to do in lyx to align the two figures vertically? Kind regards, Raphael
Re: Problem with figures side by side
Then do not use minipages, use package varwidth. The only, but important problem is, that LyX doesn't support this package. - ERT Thanks Herbert.. will try this out soon.. On the other hand you can put the image into a box and then set the minipage exactly to the width of this box (image). To make life harder, my first image's height width so I've set the scaling using the height and asked for the aspect ratio to be maintained. The second image's width height so it's the other way around. Hence, for the first figure, I'm not sure what the bounding box's width should be... Or - trial and error ... I'll have to go with this for now as I'm a little short on time (submission in 2 days).. :-) Thanks, nirmal
Re: Problem with figures side by side
Then do not use minipages, use package varwidth. The only, but important problem is, that LyX doesn't support this package. - ERT Thanks Herbert.. will try this out soon.. On the other hand you can put the image into a box and then set the minipage exactly to the width of this box (image). To make life harder, my first image's height width so I've set the scaling using the height and asked for the aspect ratio to be maintained. The second image's width height so it's the other way around. Hence, for the first figure, I'm not sure what the bounding box's width should be... Or - trial and error ... I'll have to go with this for now as I'm a little short on time (submission in 2 days).. :-) Thanks, nirmal
Re: Problem with figures side by side
Then do not use minipages, use package varwidth. The only, but important problem is, that LyX doesn't support this package. -> ERT Thanks Herbert.. will try this out soon.. On the other hand you can put the image into a box and then set the minipage exactly to the width of this box (image). To make life harder, my first image's height > width so I've set the scaling using the height and asked for the aspect ratio to be maintained. The second image's width > height so it's the other way around. Hence, for the first figure, I'm not sure what the bounding box's width should be... Or -> trial and error ... I'll have to go with this for now as I'm a little short on time (submission in 2 days).. :-) Thanks, nirmal
Re: Problem with figures side by side
Herbert Voss wrote: it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. Herbert Herbert, Can you please resend the file that you attached with this post? I get an error while opening the file: Maybe the document is truncated. Thanks, nirmal
Re: Problem with figures side by side
Nirmal Govind wrote: Can you please resend the file that you attached with this post? I get an error while opening the file: Maybe the document is truncated. attached Herbert #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass report \begin_preamble \usepackage{graphicx} \end_preamble \language ngerman \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 17cm \paperheight 22cm \leftmargin 1.2cm \topmargin 1.4cm \rightmargin 1.7cm \bottommargin 1.4cm \headsep 1cm \secnumdepth 4 \tocdepth 4 \paragraph_separation indent \defskip medskip \quotes_language german \quotes_times 1 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \begin_inset ERT status Open \layout Standard \backslash renewcommand \backslash includegraphics[2][]{ \backslash rule{2cm}{2cm}} \end_inset \layout Standard This TeX is only for demonstration here and can be replaced when inserting real images. \layout Standard \added_space_top bigskip \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \layout Standard \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed false \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash rule{3cm}{5cm} \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \begin_inset Graphics filename any file \end_inset \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \layout Standard \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \the_end
Re: Problem with figures side by side
attached Herbert Thanks Herbert... I think the one I was looking for was named FigSideBySide.lyx but assuming that it uses the same minipages-based solution as MultiImages.lyx, I am unable to vertically align the captions of the two figures that are side-by-side... I have two figures that do not have the same height/width but I'd like to have the captions on the same line, i.e. the figures will have a constant base... any way to do this? (I also have labels for the figures within a figure float) Thanks, nirmal
Re: Problem with figures side by side
Nirmal Govind wrote: Thanks Herbert... I think the one I was looking for was named FigSideBySide.lyx but assuming that it uses the same minipages-based attached the other demo file Herbert #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{capt-of} \end_preamble \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 5 \tocdepth 5 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle headings \layout Standard Two figures side by side in a float environment. Have a look at the \begin_inset ERT status Collapsed \layout Standard \backslash verb/ layout-paragraph-more/ \end_inset
Re: Problem with figures side by side
Thanks Herbert... I think the one I was looking for was named FigSideBySide.lyx but assuming that it uses the same minipages-based solution as MultiImages.lyx, I am unable to vertically align the captions of the two figures that are side-by-side... I have two figures that do not have the same height/width but I'd like to have the captions on the same line, i.e. the figures will have a constant base... any way to do this? (I also have labels for the figures within a figure float) Nirmal, It is attached the file that Herbert sent me and that you are looking for. Paul #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{capt-of} \end_preamble \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 5 \tocdepth 5 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle headings \layout Standard Two figures side by side in a float environment. Have a look at the \begin_inset ERT status Collapsed \layout Standard \backslash verb/ layout-paragraph-more/ \end_inset For the the captions in the float (red line on the left side marks a minipage!). Between the two figures are three \begin_inset ERT status Collapsed \layout Standard \backslash verb/ \backslash hfill/ \end_inset -commands ( \begin_inset ERT status Collapsed \layout Standard \backslash verb/insert-special character-hfill/ \end_inset ). Otherwise the images are not centered. \layout Standard \begin_inset Float figure wide false collapsed true \layout Standard \hfill \begin_inset Graphics filename /home/voss/LyX/lyx1.jpg display color width 50col% \end_inset \hfill \begin_inset Graphics filename /home/voss/LyX/lyx2.jpg display color width 30col% \end_inset \hfill \layout Caption side by side figure (Caption No. 1) \layout Caption Caption No. 2 \end_inset \layout Standard The same figures side by side by both aligned to their top. The solution with \begin_inset ERT status Collapsed \layout Standard \backslash verb/ \backslash raisbox{- \backslash height}{image}/ \end_inset is the easiest, but there maybe a problem when you have the captions above, then one images is one line too high. \layout Standard \begin_inset Float figure wide false collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash hrulefill \backslash vspace{-2ex} \end_inset \layout Standard \hfill \begin_inset ERT status Collapsed \layout Standard \backslash raisebox{- \backslash height}{ \end_inset \begin_inset Graphics filename /home/voss/LyX/lyx1.jpg display color width 50col% \end_inset \begin_inset ERT status Collapsed \layout Standard } \end_inset \hfill \begin_inset ERT status Collapsed \layout Standard \backslash raisebox{- \backslash height}{ \end_inset \begin_inset Graphics filename /home/voss/LyX/lyx2.jpg display color width 30col% \end_inset \begin_inset ERT status Collapsed \layout Standard } \end_inset \hfill \layout Caption side by side figure (Caption No. 1) \layout Caption Caption No. 2 \end_inset \layout Standard With a parbox which is aligned to the top and an additional line with a zero height it's possible to get top aligned images \layout Standard \begin_inset Float figure wide false collapsed false \layout Standard \begin_inset Minipage position 0 inner_position 0 height 0pt width 60line% collapsed true \layout Standard \align center \begin_inset Graphics filename /home/voss/LyX/lyx1.jpg display color width 80col% \end_inset \layout Caption side by side figure (Caption No. 1) \end_inset \begin_inset Minipage position 0 inner_position 0 height 0pt width 35line% collapsed true \layout Standard \align center \begin_inset Graphics filename /home/voss/LyX/lyx2.jpg display color width 30col% \end_inset \layout Caption Caption No. 2 \end_inset \end_inset \the_end
Re: Problem with figures side by side
Thank you Herbert and Paul for the file.. I used the last option with the minipages and captions within the minipages so that the two captions will show up beside one another. Also aligned the minipage to the bottom so the captions are on the same line. Now, only one problem - the block of figures isn't centered with respect to the paragraph (text) beneath it.. I tried deleting the \hfill before the first figure and that made it a little better but it's still not centered. is this cos the widths of the two figures are different? In Herbert's third example, the widths of the figures are set to 80% and 30% of col. and the corresponding minipages are set to 60% and 35% of line respectively. So my question - is trial and error the only way to have these unequal-width figures side by side so that the entire block is centered? Thanks, nirmal
Re: Problem with figures side by side
Nirmal Govind wrote: Thank you Herbert and Paul for the file.. I used the last option with the minipages and captions within the minipages so that the two captions will show up beside one another. Also aligned the minipage to the bottom so the captions are on the same line. Now, only one problem - the block of figures isn't centered with respect to the paragraph (text) beneath it.. I tried deleting the \hfill before the first figure and that made it a little better but it's still not centered. is this cos the widths of the two figures are different? In Herbert's third example, the widths of the figures are set to 80% and 30% of col. and the corresponding minipages are set to 60% and 35% of line respectively. So my question - is trial and error the only way to have these unequal-width figures side by side so that the entire block is centered? Then do not use minipages, use package varwidth. The only, but important problem is, that LyX doesn't support this package. - ERT On the other hand you can put the image into a box and then set the minipage exactly to the width of this box (image). Or - trial and error ... Herbert
Re: Problem with figures side by side
Herbert Voss wrote: it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. Herbert Herbert, Can you please resend the file that you attached with this post? I get an error while opening the file: Maybe the document is truncated. Thanks, nirmal
Re: Problem with figures side by side
Nirmal Govind wrote: Can you please resend the file that you attached with this post? I get an error while opening the file: Maybe the document is truncated. attached Herbert #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass report \begin_preamble \usepackage{graphicx} \end_preamble \language ngerman \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 17cm \paperheight 22cm \leftmargin 1.2cm \topmargin 1.4cm \rightmargin 1.7cm \bottommargin 1.4cm \headsep 1cm \secnumdepth 4 \tocdepth 4 \paragraph_separation indent \defskip medskip \quotes_language german \quotes_times 1 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \begin_inset ERT status Open \layout Standard \backslash renewcommand \backslash includegraphics[2][]{ \backslash rule{2cm}{2cm}} \end_inset \layout Standard This TeX is only for demonstration here and can be replaced when inserting real images. \layout Standard \added_space_top bigskip \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \layout Standard \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed false \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash rule{3cm}{5cm} \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \begin_inset Graphics filename any file \end_inset \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \layout Standard \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height 0 width 30col% collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \the_end
Re: Problem with figures side by side
attached Herbert Thanks Herbert... I think the one I was looking for was named FigSideBySide.lyx but assuming that it uses the same minipages-based solution as MultiImages.lyx, I am unable to vertically align the captions of the two figures that are side-by-side... I have two figures that do not have the same height/width but I'd like to have the captions on the same line, i.e. the figures will have a constant base... any way to do this? (I also have labels for the figures within a figure float) Thanks, nirmal
Re: Problem with figures side by side
Nirmal Govind wrote: Thanks Herbert... I think the one I was looking for was named FigSideBySide.lyx but assuming that it uses the same minipages-based attached the other demo file Herbert #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{capt-of} \end_preamble \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 5 \tocdepth 5 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle headings \layout Standard Two figures side by side in a float environment. Have a look at the \begin_inset ERT status Collapsed \layout Standard \backslash verb/ layout-paragraph-more/ \end_inset
Re: Problem with figures side by side
Thanks Herbert... I think the one I was looking for was named FigSideBySide.lyx but assuming that it uses the same minipages-based solution as MultiImages.lyx, I am unable to vertically align the captions of the two figures that are side-by-side... I have two figures that do not have the same height/width but I'd like to have the captions on the same line, i.e. the figures will have a constant base... any way to do this? (I also have labels for the figures within a figure float) Nirmal, It is attached the file that Herbert sent me and that you are looking for. Paul #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{capt-of} \end_preamble \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 5 \tocdepth 5 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle headings \layout Standard Two figures side by side in a float environment. Have a look at the \begin_inset ERT status Collapsed \layout Standard \backslash verb/ layout-paragraph-more/ \end_inset For the the captions in the float (red line on the left side marks a minipage!). Between the two figures are three \begin_inset ERT status Collapsed \layout Standard \backslash verb/ \backslash hfill/ \end_inset -commands ( \begin_inset ERT status Collapsed \layout Standard \backslash verb/insert-special character-hfill/ \end_inset ). Otherwise the images are not centered. \layout Standard \begin_inset Float figure wide false collapsed true \layout Standard \hfill \begin_inset Graphics filename /home/voss/LyX/lyx1.jpg display color width 50col% \end_inset \hfill \begin_inset Graphics filename /home/voss/LyX/lyx2.jpg display color width 30col% \end_inset \hfill \layout Caption side by side figure (Caption No. 1) \layout Caption Caption No. 2 \end_inset \layout Standard The same figures side by side by both aligned to their top. The solution with \begin_inset ERT status Collapsed \layout Standard \backslash verb/ \backslash raisbox{- \backslash height}{image}/ \end_inset is the easiest, but there maybe a problem when you have the captions above, then one images is one line too high. \layout Standard \begin_inset Float figure wide false collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash hrulefill \backslash vspace{-2ex} \end_inset \layout Standard \hfill \begin_inset ERT status Collapsed \layout Standard \backslash raisebox{- \backslash height}{ \end_inset \begin_inset Graphics filename /home/voss/LyX/lyx1.jpg display color width 50col% \end_inset \begin_inset ERT status Collapsed \layout Standard } \end_inset \hfill \begin_inset ERT status Collapsed \layout Standard \backslash raisebox{- \backslash height}{ \end_inset \begin_inset Graphics filename /home/voss/LyX/lyx2.jpg display color width 30col% \end_inset \begin_inset ERT status Collapsed \layout Standard } \end_inset \hfill \layout Caption side by side figure (Caption No. 1) \layout Caption Caption No. 2 \end_inset \layout Standard With a parbox which is aligned to the top and an additional line with a zero height it's possible to get top aligned images \layout Standard \begin_inset Float figure wide false collapsed false \layout Standard \begin_inset Minipage position 0 inner_position 0 height 0pt width 60line% collapsed true \layout Standard \align center \begin_inset Graphics filename /home/voss/LyX/lyx1.jpg display color width 80col% \end_inset \layout Caption side by side figure (Caption No. 1) \end_inset \begin_inset Minipage position 0 inner_position 0 height 0pt width 35line% collapsed true \layout Standard \align center \begin_inset Graphics filename /home/voss/LyX/lyx2.jpg display color width 30col% \end_inset \layout Caption Caption No. 2 \end_inset \end_inset \the_end
Re: Problem with figures side by side
Thank you Herbert and Paul for the file.. I used the last option with the minipages and captions within the minipages so that the two captions will show up beside one another. Also aligned the minipage to the bottom so the captions are on the same line. Now, only one problem - the block of figures isn't centered with respect to the paragraph (text) beneath it.. I tried deleting the \hfill before the first figure and that made it a little better but it's still not centered. is this cos the widths of the two figures are different? In Herbert's third example, the widths of the figures are set to 80% and 30% of col. and the corresponding minipages are set to 60% and 35% of line respectively. So my question - is trial and error the only way to have these unequal-width figures side by side so that the entire block is centered? Thanks, nirmal
Re: Problem with figures side by side
Nirmal Govind wrote: Thank you Herbert and Paul for the file.. I used the last option with the minipages and captions within the minipages so that the two captions will show up beside one another. Also aligned the minipage to the bottom so the captions are on the same line. Now, only one problem - the block of figures isn't centered with respect to the paragraph (text) beneath it.. I tried deleting the \hfill before the first figure and that made it a little better but it's still not centered. is this cos the widths of the two figures are different? In Herbert's third example, the widths of the figures are set to 80% and 30% of col. and the corresponding minipages are set to 60% and 35% of line respectively. So my question - is trial and error the only way to have these unequal-width figures side by side so that the entire block is centered? Then do not use minipages, use package varwidth. The only, but important problem is, that LyX doesn't support this package. - ERT On the other hand you can put the image into a box and then set the minipage exactly to the width of this box (image). Or - trial and error ... Herbert
Re: Problem with figures side by side
Herbert Voss wrote: it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. Herbert Herbert, Can you please resend the file that you attached with this post? I get an error while opening the file: "Maybe the document is truncated". Thanks, nirmal
Re: Problem with figures side by side
Nirmal Govind wrote: Can you please resend the file that you attached with this post? I get an error while opening the file: "Maybe the document is truncated". attached Herbert #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass report \begin_preamble \usepackage{graphicx} \end_preamble \language ngerman \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 17cm \paperheight 22cm \leftmargin 1.2cm \topmargin 1.4cm \rightmargin 1.7cm \bottommargin 1.4cm \headsep 1cm \secnumdepth 4 \tocdepth 4 \paragraph_separation indent \defskip medskip \quotes_language german \quotes_times 1 \papercolumns 1 \papersides 2 \paperpagestyle default \layout Standard \begin_inset ERT status Open \layout Standard \backslash renewcommand \backslash includegraphics[2][]{ \backslash rule{2cm}{2cm}} \end_inset \layout Standard This TeX is only for demonstration here and can be replaced when inserting real images. \layout Standard \added_space_top bigskip \begin_inset Minipage position 1 inner_position 0 height "0" width "30col%" collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height "0" width "30col%" collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height "0" width "30col%" collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \layout Standard \begin_inset Minipage position 1 inner_position 0 height "0" width "30col%" collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height "0" width "30col%" collapsed false \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash rule{3cm}{5cm} \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height "0" width "30col%" collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \begin_inset Graphics filename any file \end_inset \end_inset \newline \begin_inset ERT status Collapsed \layout Standard [0.25cm] \end_inset \layout Standard \begin_inset Minipage position 1 inner_position 0 height "0" width "30col%" collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height "0" width "30col%" collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \hfill \begin_inset Minipage position 1 inner_position 0 height "0" width "30col%" collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash centering \end_inset \layout Standard \begin_inset Graphics filename any file \end_inset \end_inset \the_end
Re: Problem with figures side by side
attached Herbert Thanks Herbert... I think the one I was looking for was named FigSideBySide.lyx but assuming that it uses the same minipages-based solution as MultiImages.lyx, I am unable to vertically align the captions of the two figures that are side-by-side... I have two figures that do not have the same height/width but I'd like to have the captions on the same line, i.e. the figures will have a constant base... any way to do this? (I also have labels for the figures within a figure float) Thanks, nirmal
Re: Problem with figures side by side
Nirmal Govind wrote: Thanks Herbert... I think the one I was looking for was named FigSideBySide.lyx but assuming that it uses the same minipages-based attached the other demo file Herbert #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{capt-of} \end_preamble \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 5 \tocdepth 5 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle headings \layout Standard Two figures side by side in a float environment. Have a look at the \begin_inset ERT status Collapsed \layout Standard \backslash verb/ layout->paragraph->more/ \end_inset
Re: Problem with figures side by side
Thanks Herbert... I think the one I was looking for was named FigSideBySide.lyx but assuming that it uses the same minipages-based solution as MultiImages.lyx, I am unable to vertically align the captions of the two figures that are side-by-side... I have two figures that do not have the same height/width but I'd like to have the captions on the same line, i.e. the figures will have a constant base... any way to do this? (I also have labels for the figures within a figure float) Nirmal, It is attached the file that Herbert sent me and that you are looking for. Paul #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{capt-of} \end_preamble \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 5 \tocdepth 5 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle headings \layout Standard Two figures side by side in a float environment. Have a look at the \begin_inset ERT status Collapsed \layout Standard \backslash verb/ layout->paragraph->more/ \end_inset For the the captions in the float (red line on the left side marks a minipage!). Between the two figures are three \begin_inset ERT status Collapsed \layout Standard \backslash verb/ \backslash hfill/ \end_inset -commands ( \begin_inset ERT status Collapsed \layout Standard \backslash verb/insert->special character->hfill/ \end_inset ). Otherwise the images are not centered. \layout Standard \begin_inset Float figure wide false collapsed true \layout Standard \hfill \begin_inset Graphics filename /home/voss/LyX/lyx1.jpg display color width 50col% \end_inset \hfill \begin_inset Graphics filename /home/voss/LyX/lyx2.jpg display color width 30col% \end_inset \hfill \layout Caption side by side figure (Caption No. 1) \layout Caption Caption No. 2 \end_inset \layout Standard The same figures side by side by both aligned to their top. The solution with \begin_inset ERT status Collapsed \layout Standard \backslash verb/ \backslash raisbox{- \backslash height}{}/ \end_inset is the easiest, but there maybe a problem when you have the captions above, then one images is one line too high. \layout Standard \begin_inset Float figure wide false collapsed true \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash hrulefill \backslash vspace{-2ex} \end_inset \layout Standard \hfill \begin_inset ERT status Collapsed \layout Standard \backslash raisebox{- \backslash height}{ \end_inset \begin_inset Graphics filename /home/voss/LyX/lyx1.jpg display color width 50col% \end_inset \begin_inset ERT status Collapsed \layout Standard } \end_inset \hfill \begin_inset ERT status Collapsed \layout Standard \backslash raisebox{- \backslash height}{ \end_inset \begin_inset Graphics filename /home/voss/LyX/lyx2.jpg display color width 30col% \end_inset \begin_inset ERT status Collapsed \layout Standard } \end_inset \hfill \layout Caption side by side figure (Caption No. 1) \layout Caption Caption No. 2 \end_inset \layout Standard With a parbox which is aligned to the top and an additional line with a zero height it's possible to get top aligned images \layout Standard \begin_inset Float figure wide false collapsed false \layout Standard \begin_inset Minipage position 0 inner_position 0 height "0pt" width "60line%" collapsed true \layout Standard \align center \begin_inset Graphics filename /home/voss/LyX/lyx1.jpg display color width 80col% \end_inset \layout Caption side by side figure (Caption No. 1) \end_inset \begin_inset Minipage position 0 inner_position 0 height "0pt" width "35line%" collapsed true \layout Standard \align center \begin_inset Graphics filename /home/voss/LyX/lyx2.jpg display color width 30col% \end_inset \layout Caption Caption No. 2 \end_inset \end_inset \the_end
Re: Problem with figures side by side
Thank you Herbert and Paul for the file.. I used the last option with the minipages and captions within the minipages so that the two captions will show up beside one another. Also aligned the minipage to the bottom so the captions are on the same line. Now, only one problem - the block of figures isn't centered with respect to the paragraph (text) beneath it.. I tried deleting the \hfill before the first figure and that made it a little better but it's still not centered. is this cos the widths of the two figures are different? In Herbert's third example, the widths of the figures are set to 80% and 30% of col. and the corresponding minipages are set to 60% and 35% of line respectively. So my question - is trial and error the only way to have these unequal-width figures side by side so that the entire block is centered? Thanks, nirmal
Re: Problem with figures side by side
Nirmal Govind wrote: Thank you Herbert and Paul for the file.. I used the last option with the minipages and captions within the minipages so that the two captions will show up beside one another. Also aligned the minipage to the bottom so the captions are on the same line. Now, only one problem - the block of figures isn't centered with respect to the paragraph (text) beneath it.. I tried deleting the \hfill before the first figure and that made it a little better but it's still not centered. is this cos the widths of the two figures are different? In Herbert's third example, the widths of the figures are set to 80% and 30% of col. and the corresponding minipages are set to 60% and 35% of line respectively. So my question - is trial and error the only way to have these unequal-width figures side by side so that the entire block is centered? Then do not use minipages, use package varwidth. The only, but important problem is, that LyX doesn't support this package. -> ERT On the other hand you can put the image into a box and then set the minipage exactly to the width of this box (image). Or -> trial and error ... Herbert
Re: Problem with figures side by side
On Wed, 14 Jan 2004, Paul Smith wrote: it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. I can only say that your solution is perfect, Herbert! Thank you very much indeed! The links on the FAQ-page were broken, and I've fixed them now. I also added a reference to this thread and Herbert's example. See here: http://wiki.lyx.org/pmwiki.php/Examples/FiguresSideBySide /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Problem with figures side by side
On Wed, 14 Jan 2004, Paul Smith wrote: it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. I can only say that your solution is perfect, Herbert! Thank you very much indeed! The links on the FAQ-page were broken, and I've fixed them now. I also added a reference to this thread and Herbert's example. See here: http://wiki.lyx.org/pmwiki.php/Examples/FiguresSideBySide /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Problem with figures side by side
On Wed, 14 Jan 2004, Paul Smith wrote: > > it is not easy to understand that they are vertically centered. > > Attached a solution which I prepared long time ago. Replace > > the images with any other. Or let me know, then I sent you > > these demo images. > > I can only say that your solution is perfect, Herbert! Thank you very > much indeed! The links on the FAQ-page were broken, and I've fixed them now. I also added a reference to this thread and Herbert's example. See here: http://wiki.lyx.org/pmwiki.php/Examples/FiguresSideBySide /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Problem with figures side by side
Dear All I am trying to insert two figures side by side in a document and I have followed the instructions indicated on: http://wiki.lyx.org/pmwiki.php/FAQ/FiguresSideBySide Unfortunately, the figures, although appearing side by side, are not vertically aligned with each other, I mean, the one on the right is placed bellow the other one. Is it possible to eliminate that vertical misalignment? Could somebody here please help me? Thank you a lot in advance! Paul
Re: Problem with figures side by side
Paul Smith wrote: I am trying to insert two figures side by side in a document and I have followed the instructions indicated on: http://wiki.lyx.org/pmwiki.php/FAQ/FiguresSideBySide it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. Herbert #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{capt-of} \end_preamble \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 5 \tocdepth 5 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle headings \layout Standard Two figures side by side in a float environment. Have a look at the \begin_inset ERT status Collapsed \layout Standard \backslash verb/ layout-paragraph-more/ \end_inset
Re: Problem with figures side by side
it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. I can only say that your solution is perfect, Herbert! Thank you very much indeed! Paul
Problem with figures side by side
Dear All I am trying to insert two figures side by side in a document and I have followed the instructions indicated on: http://wiki.lyx.org/pmwiki.php/FAQ/FiguresSideBySide Unfortunately, the figures, although appearing side by side, are not vertically aligned with each other, I mean, the one on the right is placed bellow the other one. Is it possible to eliminate that vertical misalignment? Could somebody here please help me? Thank you a lot in advance! Paul
Re: Problem with figures side by side
Paul Smith wrote: I am trying to insert two figures side by side in a document and I have followed the instructions indicated on: http://wiki.lyx.org/pmwiki.php/FAQ/FiguresSideBySide it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. Herbert #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{capt-of} \end_preamble \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 5 \tocdepth 5 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle headings \layout Standard Two figures side by side in a float environment. Have a look at the \begin_inset ERT status Collapsed \layout Standard \backslash verb/ layout-paragraph-more/ \end_inset
Re: Problem with figures side by side
it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. I can only say that your solution is perfect, Herbert! Thank you very much indeed! Paul
Problem with figures side by side
Dear All I am trying to insert two figures side by side in a document and I have followed the instructions indicated on: http://wiki.lyx.org/pmwiki.php/FAQ/FiguresSideBySide Unfortunately, the figures, although appearing side by side, are not vertically aligned with each other, I mean, the one on the right is placed bellow the other one. Is it possible to eliminate that vertical misalignment? Could somebody here please help me? Thank you a lot in advance! Paul
Re: Problem with figures side by side
Paul Smith wrote: I am trying to insert two figures side by side in a document and I have followed the instructions indicated on: http://wiki.lyx.org/pmwiki.php/FAQ/FiguresSideBySide it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. Herbert #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{capt-of} \end_preamble \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize 10 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 5 \tocdepth 5 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle headings \layout Standard Two figures side by side in a float environment. Have a look at the \begin_inset ERT status Collapsed \layout Standard \backslash verb/ layout->paragraph->more/ \end_inset
Re: Problem with figures side by side
it is not easy to understand that they are vertically centered. Attached a solution which I prepared long time ago. Replace the images with any other. Or let me know, then I sent you these demo images. I can only say that your solution is perfect, Herbert! Thank you very much indeed! Paul
How to put two figures side by side having different Caption and No.?
Dear All, There is a package called subfigure to put two sub-figures side by side in ONE figure float. However, I want to put two figures side by side but in two figure floats to obtain two different CAPTIONs and figure numbers. Do you have any solutions? Thanks a lot in advance. Yours sincerely, Qing-Chang
Re: How to put two figures side by side having different Caption and No.?
Qing-Chang Zhong wrote: There is a package called subfigure to put two sub-figures side by side in ONE figure float. However, I want to put two figures side by side but in two figure floats to obtain two different CAPTIONs and figure numbers. Do you have any solutions? Thanks a lot in advance. http://www.lyx.org/help//floats.php3#fside Herbert -- http://www.lyx.org/help/
How to put two figures side by side having different Caption and No.?
Dear All, There is a package called subfigure to put two sub-figures side by side in ONE figure float. However, I want to put two figures side by side but in two figure floats to obtain two different CAPTIONs and figure numbers. Do you have any solutions? Thanks a lot in advance. Yours sincerely, Qing-Chang
Re: How to put two figures side by side having different Caption and No.?
Qing-Chang Zhong wrote: There is a package called subfigure to put two sub-figures side by side in ONE figure float. However, I want to put two figures side by side but in two figure floats to obtain two different CAPTIONs and figure numbers. Do you have any solutions? Thanks a lot in advance. http://www.lyx.org/help//floats.php3#fside Herbert -- http://www.lyx.org/help/
How to put two figures side by side having different Caption and No.?
Dear All, There is a package called subfigure to put two sub-figures side by side in ONE figure float. However, I want to put two figures side by side but in two figure floats to obtain two different CAPTIONs and figure numbers. Do you have any solutions? Thanks a lot in advance. Yours sincerely, Qing-Chang
Re: How to put two figures side by side having different Caption and No.?
Qing-Chang Zhong wrote: > There is a package called subfigure to put two sub-figures > side by side in ONE figure float. However, I want to put two > figures side by side but in two figure floats to obtain two > different CAPTIONs and figure numbers. > > Do you have any solutions? Thanks a lot in advance. http://www.lyx.org/help//floats.php3#fside Herbert -- http://www.lyx.org/help/
Re: figures side to side
On Tue, 13 Nov 2001, Giovanni De Matteis wrote: How can i place two figures side to side and not one under the other in the same float? I generally reduce their width to something less than 50% of the whole page and two or more figures can nicely fit side by side. You can give individual subfigures their own subcaptions and reference them in the main caption, then. Marco Bravi
Re: figures side to side
On Tue, 13 Nov 2001, Giovanni De Matteis wrote: How can i place two figures side to side and not one under the other in the same float? I generally reduce their width to something less than 50% of the whole page and two or more figures can nicely fit side by side. You can give individual subfigures their own subcaptions and reference them in the main caption, then. Marco Bravi
Re: figures side to side
On Tue, 13 Nov 2001, Giovanni De Matteis wrote: > How can i place two figures side to side and not one under the other in > the same float? I generally reduce their width to something less than 50% of the whole page and two or more figures can nicely fit side by side. You can give individual subfigures their own subcaptions and reference them in the main caption, then. Marco Bravi
figures side to side
How can i place two figures side to side and not one under the other in the same float?
Re: figures side to side
On Tue, 13 Nov 2001, Giovanni De Matteis wrote: How can i place two figures side to side and not one under the other in the same float? place it in a table of 1 row and two column inside the figure float. But it's better to use minipage command, try the following... [inside the float, all in red command (tex style)] \begin{tabular}{cc} \begin{minipage}{9.5cm} insert the first figure \end{minipage} \begin{minipage}{5cm} insert the second figure \end{minipage} \end{tabular} Figure: title bla.. bla... I hope you do not find error. Wayan
Re: figures side to side
Le Mardi 13 Novembre 2001 18:38, vous avez écrit : How can i place two figures side to side and not one under the other in the same float? You just need to put them on the same paragraph and have them small enough for the second not to go to the next line, you can also put an extensible space (insert-special caracter) between them to have one on the left and one on the right. See sample (won't compile as there are no figures, but show the behavior). -- Les petits pois sont rouges ! Renaud MICHEL #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass article \language frenchb \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_float fig \layout Standard \align center \begin_inset Figure size 100 100 flags 9 \end_inset \hfill \begin_inset Figure size 100 100 flags 9 \end_inset \layout Caption \end_float \the_end
figures side to side
How can i place two figures side to side and not one under the other in the same float?
Re: figures side to side
On Tue, 13 Nov 2001, Giovanni De Matteis wrote: How can i place two figures side to side and not one under the other in the same float? place it in a table of 1 row and two column inside the figure float. But it's better to use minipage command, try the following... [inside the float, all in red command (tex style)] \begin{tabular}{cc} \begin{minipage}{9.5cm} insert the first figure \end{minipage} \begin{minipage}{5cm} insert the second figure \end{minipage} \end{tabular} Figure: title bla.. bla... I hope you do not find error. Wayan
Re: figures side to side
Le Mardi 13 Novembre 2001 18:38, vous avez écrit : How can i place two figures side to side and not one under the other in the same float? You just need to put them on the same paragraph and have them small enough for the second not to go to the next line, you can also put an extensible space (insert-special caracter) between them to have one on the left and one on the right. See sample (won't compile as there are no figures, but show the behavior). -- Les petits pois sont rouges ! Renaud MICHEL #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass article \language frenchb \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_float fig \layout Standard \align center \begin_inset Figure size 100 100 flags 9 \end_inset \hfill \begin_inset Figure size 100 100 flags 9 \end_inset \layout Caption \end_float \the_end
figures side to side
How can i place two figures side to side and not one under the other in the same float?
Re: figures side to side
On Tue, 13 Nov 2001, Giovanni De Matteis wrote: > How can i place two figures side to side and not one under the other in > the same float? place it in a table of 1 row and two column inside the figure float. But it's better to use minipage command, try the following... [inside the float, all in red command (tex style)] \begin{tabular}{cc} \begin{minipage}{9.5cm} insert the first figure \end{minipage} & \begin{minipage}{5cm} insert the second figure \end{minipage} \end{tabular} Figure: title bla.. bla... I hope you do not find error. Wayan
Re: figures side to side
Le Mardi 13 Novembre 2001 18:38, vous avez écrit : > How can i place two figures side to side and not one under the other in > the same float? You just need to put them on the same paragraph and have them small enough for the second not to go to the next line, you can also put an extensible space (insert->special caracter) between them to have one on the left and one on the right. See sample (won't compile as there are no figures, but show the behavior). -- Les petits pois sont rouges ! Renaud MICHEL #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass article \language frenchb \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_float fig \layout Standard \align center \begin_inset Figure size 100 100 flags 9 \end_inset \hfill \begin_inset Figure size 100 100 flags 9 \end_inset \layout Caption \end_float \the_end
Figures side by side
Hallo, I would like to put two figures side by side in a float. I have already done this for subfigues where it works fine. Is it possible to do it with figures (I need a separate caption)? Thanks, Torsten
Re: Figures side by side
Torsten Mueller wrote: Hallo, I would like to put two figures side by side in a float. I have already done this for subfigues where it works fine. Is it possible to do it with figures (I need a separate caption)? have a look at http://www.educat.hu-berlin.de/~voss/lyx/floats/floats.html#fside Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Figures side by side
Hallo, I would like to put two figures side by side in a float. I have already done this for subfigues where it works fine. Is it possible to do it with figures (I need a separate caption)? Thanks, Torsten
Re: Figures side by side
Torsten Mueller wrote: Hallo, I would like to put two figures side by side in a float. I have already done this for subfigues where it works fine. Is it possible to do it with figures (I need a separate caption)? have a look at http://www.educat.hu-berlin.de/~voss/lyx/floats/floats.html#fside Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Figures side by side
Hallo, I would like to put two figures side by side in a float. I have already done this for subfigues where it works fine. Is it possible to do it with figures (I need a separate caption)? Thanks, Torsten
Re: Figures side by side
Torsten Mueller wrote: > > Hallo, > > I would like to put two figures side by side in a float. > I have already done this for subfigues where it works fine. > > Is it possible to do it with figures (I need a separate caption)? have a look at http://www.educat.hu-berlin.de/~voss/lyx/floats/floats.html#fside Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Two Figures side by side
Hi, is there a way to put two figures next to each other in a figure float. Subfigures puts them under each other. I want them with a caption and numbered with the other pictures in my text. At least the whole thing should get a number and a caption. For the individual figures a subcaption as with subfigures would be nice. But it would be best to have two figure floats next to each other. Thanx, Christian
Re: Two Figures side by side
hello, You can use "image float" to put figures side by side. First, create a figure float. Hit return (To have the image legend under the figure). Add the first figure. Move the cursor on the right of the figure and, Add the second image. If you want two other image under the two first, move the cursor on the right of the second image, hit return, Add the third figure, move the cursor on the right of the figure and, Add the last figure. You can, now, add a title for the group of figures or/and, add subtitles for each figure by using the subfigure menu (click on the figure to pop-up this menu). If figures are not side by side, change the size of figures. Now, you should have a group of figures with a title for the group (numbered FIG 3.1 for example) and subtitle for each figure (numbered a, b, etc for example). YC
Two Figures side by side
Hi, is there a way to put two figures next to each other in a figure float. Subfigures puts them under each other. I want them with a caption and numbered with the other pictures in my text. At least the whole thing should get a number and a caption. For the individual figures a subcaption as with subfigures would be nice. But it would be best to have two figure floats next to each other. Thanx, Christian
Re: Two Figures side by side
hello, You can use "image float" to put figures side by side. First, create a figure float. Hit return (To have the image legend under the figure). Add the first figure. Move the cursor on the right of the figure and, Add the second image. If you want two other image under the two first, move the cursor on the right of the second image, hit return, Add the third figure, move the cursor on the right of the figure and, Add the last figure. You can, now, add a title for the group of figures or/and, add subtitles for each figure by using the subfigure menu (click on the figure to pop-up this menu). If figures are not side by side, change the size of figures. Now, you should have a group of figures with a title for the group (numbered FIG 3.1 for example) and subtitle for each figure (numbered a, b, etc for example). YC
Two Figures side by side
Hi, is there a way to put two figures next to each other in a figure float. Subfigures puts them under each other. I want them with a caption and numbered with the other pictures in my text. At least the whole thing should get a number and a caption. For the individual figures a subcaption as with subfigures would be nice. But it would be best to have two figure floats next to each other. Thanx, Christian
Re: Two Figures side by side
hello, You can use "image float" to put figures side by side. First, create a figure float. Hit return (To have the image legend under the figure). Add the first figure. Move the cursor on the right of the figure and, Add the second image. If you want two other image under the two first, move the cursor on the right of the second image, hit return, Add the third figure, move the cursor on the right of the figure and, Add the last figure. You can, now, add a title for the group of figures or/and, add subtitles for each figure by using the subfigure menu (click on the figure to pop-up this menu). If figures are not side by side, change the size of figures. Now, you should have a group of figures with a title for the group (numbered FIG 3.1 for example) and subtitle for each figure (numbered a, b, etc for example). YC