Re: Caption width in wrapped figures
Thanks for the help and the information regarding the various formats. Before I posted the question, I did try to use the pdf version of the figure, making sure it had no white region around the edges. I noticed that it did leave less of a white area around the picture, but it was still not what I wanted, which is the complete control provided by Latex's independent specification of width for the caption and the graphics. By the way, what is supposed to go into the Latex options on the third tab of the figure settings? When I specify the width in there (say: width=2in), Lyx follows the instructions, which seem to overlap with the scale instructions on the first tab. Yours, EK Uwe Stöhr wrote: Ehud Kaplan schrieb: But the white space around the graphics itself persists. Because your image contains the whitespace. I converted your image to a PDF as I assume that your document should also be a PDF and removed the whitespace. (You can insert images to LyX in every format, but they can only be embedded to the resulting document PDF output when they are in the format PDF, JPG, PNG, or GIF. When you use another image format like EPS, LyX has to convert the images to one of the four formats in the background which extends the document compile time when viewing/exporting it.) There were two other problems: - you scaled the image absolutely, but when you want to control the whitespace, you need to scale the image relatively to the column width. When you e.g. set your wrap float to 50% column width and do the same for your image you get no whitespace. When you set the image to 40% column width, you get some whitespace around it. - when you want the figure centered you can set its paragraph to centered and don't need to use a LaTeX command But when using wrapped figures one often wants the image to be aligned with the text column border. So in your case I would set the paragraph where the image is in to right aligned. In a separate email I attached the example file. regards Uwe
Re: Caption width in wrapped figures
E. Kaplan schrieb: I noticed that it did leave less of a white area around the picture, but it was still not what I wanted, which is the complete control provided by Latex's independent specification of width for the caption and the graphics. I don't understand what you miss, I can control everything: the image width, the float width, the caption size, caption width, caption format, image bounding box (I can say I only want to have a certain part of the image in the output). What do you miss? By the way, what is supposed to go into the Latex options on the third tab of the figure settings? See the EmebeddedObjects manual chapter 1. When I specify the width in there (say: width=2in), Lyx follows the instructions, which seem to overlap with the scale instructions on the first tab. This setting is the appearance within LyX only, therefore its name is show in LyX and then Scale on screen. regards Uwe
Re: Caption width in wrapped figures
It is not clear to me how it is done. I see on the first tab of the float setting (graphics) the setting for the scale, width or height, and on the second tab (clipping) facilities for cropping and positioning the graphics. How do you deal with the caption width? I know I can do that with the caption package and ERT, but are these facilities in the settings for the float? Is that what I put in the Latex Options on the third tab? EK Uwe Stöhr wrote: E. Kaplan schrieb: I noticed that it did leave less of a white area around the picture, but it was still not what I wanted, which is the complete control provided by Latex's independent specification of width for the caption and the graphics. I don't understand what you miss, I can control everything: the image width, the float width, the caption size, caption width, caption format, image bounding box (I can say I only want to have a certain part of the image in the output). What do you miss? By the way, what is supposed to go into the Latex options on the third tab of the figure settings? See the EmebeddedObjects manual chapter 1. When I specify the width in there (say: width=2in), Lyx follows the instructions, which seem to overlap with the scale instructions on the first tab. This setting is the appearance within LyX only, therefore its name is show in LyX and then Scale on screen. regards Uwe -- Ehud Kaplan, Ph.D. Jules and Doris Stein Research to Prevent Blindness Professor Director, The laboratory of Visual Neuroscience Departments of Neuroscience, Ophthalmology, Structural Chemical Biology, The Mount Sinai School of Medicine One Gustave Levy Place NY, NY, 10029
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: It is not clear to me how it is done. I see on the first tab of the float setting (graphics) the setting for the scale, width or height, and on the second tab (clipping) facilities for cropping and positioning the graphics. How do you deal with the caption width? I know I can do that with the caption package and ERT, but are these facilities in the settings for the float? Is that what I put in the Latex Options on the third tab? The caption format, and width can only controlled by the caption package, so you need here some preamble commands. The rest: image format, image part, float width and depth, whitespace around image, and the image alignment can be done via the float dialog. For a detailed description of caption formatting and much more, have a look at the EmbeddedObjects manual chap. 3. regards Uwe
Re: Caption width in wrapped figures
Thanks for the help and the information regarding the various formats. Before I posted the question, I did try to use the pdf version of the figure, making sure it had no white region around the edges. I noticed that it did leave less of a white area around the picture, but it was still not what I wanted, which is the complete control provided by Latex's independent specification of width for the caption and the graphics. By the way, what is supposed to go into the Latex options on the third tab of the figure settings? When I specify the width in there (say: width=2in), Lyx follows the instructions, which seem to overlap with the scale instructions on the first tab. Yours, EK Uwe Stöhr wrote: Ehud Kaplan schrieb: But the white space around the graphics itself persists. Because your image contains the whitespace. I converted your image to a PDF as I assume that your document should also be a PDF and removed the whitespace. (You can insert images to LyX in every format, but they can only be embedded to the resulting document PDF output when they are in the format PDF, JPG, PNG, or GIF. When you use another image format like EPS, LyX has to convert the images to one of the four formats in the background which extends the document compile time when viewing/exporting it.) There were two other problems: - you scaled the image absolutely, but when you want to control the whitespace, you need to scale the image relatively to the column width. When you e.g. set your wrap float to 50% column width and do the same for your image you get no whitespace. When you set the image to 40% column width, you get some whitespace around it. - when you want the figure centered you can set its paragraph to centered and don't need to use a LaTeX command But when using wrapped figures one often wants the image to be aligned with the text column border. So in your case I would set the paragraph where the image is in to right aligned. In a separate email I attached the example file. regards Uwe
Re: Caption width in wrapped figures
E. Kaplan schrieb: I noticed that it did leave less of a white area around the picture, but it was still not what I wanted, which is the complete control provided by Latex's independent specification of width for the caption and the graphics. I don't understand what you miss, I can control everything: the image width, the float width, the caption size, caption width, caption format, image bounding box (I can say I only want to have a certain part of the image in the output). What do you miss? By the way, what is supposed to go into the Latex options on the third tab of the figure settings? See the EmebeddedObjects manual chapter 1. When I specify the width in there (say: width=2in), Lyx follows the instructions, which seem to overlap with the scale instructions on the first tab. This setting is the appearance within LyX only, therefore its name is show in LyX and then Scale on screen. regards Uwe
Re: Caption width in wrapped figures
It is not clear to me how it is done. I see on the first tab of the float setting (graphics) the setting for the scale, width or height, and on the second tab (clipping) facilities for cropping and positioning the graphics. How do you deal with the caption width? I know I can do that with the caption package and ERT, but are these facilities in the settings for the float? Is that what I put in the Latex Options on the third tab? EK Uwe Stöhr wrote: E. Kaplan schrieb: I noticed that it did leave less of a white area around the picture, but it was still not what I wanted, which is the complete control provided by Latex's independent specification of width for the caption and the graphics. I don't understand what you miss, I can control everything: the image width, the float width, the caption size, caption width, caption format, image bounding box (I can say I only want to have a certain part of the image in the output). What do you miss? By the way, what is supposed to go into the Latex options on the third tab of the figure settings? See the EmebeddedObjects manual chapter 1. When I specify the width in there (say: width=2in), Lyx follows the instructions, which seem to overlap with the scale instructions on the first tab. This setting is the appearance within LyX only, therefore its name is show in LyX and then Scale on screen. regards Uwe -- Ehud Kaplan, Ph.D. Jules and Doris Stein Research to Prevent Blindness Professor Director, The laboratory of Visual Neuroscience Departments of Neuroscience, Ophthalmology, Structural Chemical Biology, The Mount Sinai School of Medicine One Gustave Levy Place NY, NY, 10029
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: It is not clear to me how it is done. I see on the first tab of the float setting (graphics) the setting for the scale, width or height, and on the second tab (clipping) facilities for cropping and positioning the graphics. How do you deal with the caption width? I know I can do that with the caption package and ERT, but are these facilities in the settings for the float? Is that what I put in the Latex Options on the third tab? The caption format, and width can only controlled by the caption package, so you need here some preamble commands. The rest: image format, image part, float width and depth, whitespace around image, and the image alignment can be done via the float dialog. For a detailed description of caption formatting and much more, have a look at the EmbeddedObjects manual chap. 3. regards Uwe
Re: Caption width in wrapped figures
Thanks for the help and the information regarding the various formats. Before I posted the question, I did try to use the pdf version of the figure, making sure it had no white region around the edges. I noticed that it did leave less of a white area around the picture, but it was still not what I wanted, which is the complete control provided by Latex's independent specification of width for the caption and the graphics. By the way, what is supposed to go into the "Latex options" on the third tab of the figure settings? When I specify the width in there (say: width=2in), Lyx follows the instructions, which seem to overlap with the scale instructions on the first tab. Yours, EK Uwe Stöhr wrote: Ehud Kaplan schrieb: But the white space around the graphics itself persists. Because your image contains the whitespace. I converted your image to a PDF as I assume that your document should also be a PDF and removed the whitespace. (You can insert images to LyX in every format, but they can only be embedded to the resulting document PDF output when they are in the format PDF, JPG, PNG, or GIF. When you use another image format like EPS, LyX has to convert the images to one of the four formats in the background which extends the document compile time when viewing/exporting it.) There were two other problems: - you scaled the image absolutely, but when you want to control the whitespace, you need to scale the image relatively to the column width. When you e.g. set your wrap float to 50% column width and do the same for your image you get no whitespace. When you set the image to 40% column width, you get some whitespace around it. - when you want the figure centered you can set its paragraph to centered and don't need to use a LaTeX command But when using wrapped figures one often wants the image to be aligned with the text column border. So in your case I would set the paragraph where the image is in to right aligned. In a separate email I attached the example file. regards Uwe
Re: Caption width in wrapped figures
E. Kaplan schrieb: I noticed that it did leave less of a white area around the picture, but it was still not what I wanted, which is the complete control provided by Latex's independent specification of width for the caption and the graphics. I don't understand what you miss, I can control everything: the image width, the float width, the caption size, caption width, caption format, image bounding box (I can say I only want to have a certain part of the image in the output). What do you miss? By the way, what is supposed to go into the "Latex options" on the third tab of the figure settings? See the EmebeddedObjects manual chapter 1. When I specify the width in there (say: width=2in), Lyx follows the instructions, which seem to overlap with the scale instructions on the first tab. This setting is the appearance within LyX only, therefore its name is "show in LyX" and then "Scale on screen". regards Uwe
Re: Caption width in wrapped figures
It is not clear to me how it is done. I see on the first tab of the float setting (graphics) the setting for the scale, width or height, and on the second tab (clipping) facilities for cropping and positioning the graphics. How do you deal with the caption width? I know I can do that with the caption package and ERT, but are these facilities in the settings for the float? Is that what I put in the Latex Options on the third tab? EK Uwe Stöhr wrote: E. Kaplan schrieb: I noticed that it did leave less of a white area around the picture, but it was still not what I wanted, which is the complete control provided by Latex's independent specification of width for the caption and the graphics. I don't understand what you miss, I can control everything: the image width, the float width, the caption size, caption width, caption format, image bounding box (I can say I only want to have a certain part of the image in the output). What do you miss? By the way, what is supposed to go into the "Latex options" on the third tab of the figure settings? See the EmebeddedObjects manual chapter 1. When I specify the width in there (say: width=2in), Lyx follows the instructions, which seem to overlap with the scale instructions on the first tab. This setting is the appearance within LyX only, therefore its name is "show in LyX" and then "Scale on screen". regards Uwe -- Ehud Kaplan, Ph.D. Jules and Doris Stein Research to Prevent Blindness Professor Director, The laboratory of Visual Neuroscience Departments of Neuroscience, Ophthalmology, Structural & Chemical Biology, The Mount Sinai School of Medicine One Gustave Levy Place NY, NY, 10029
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: It is not clear to me how it is done. I see on the first tab of the float setting (graphics) the setting for the scale, width or height, and on the second tab (clipping) facilities for cropping and positioning the graphics. How do you deal with the caption width? I know I can do that with the caption package and ERT, but are these facilities in the settings for the float? Is that what I put in the Latex Options on the third tab? The caption format, and width can only controlled by the caption package, so you need here some preamble commands. The rest: image format, image part, float width and depth, whitespace around image, and the image alignment can be done via the float dialog. For a detailed description of caption formatting and much more, have a look at the EmbeddedObjects manual chap. 3. regards Uwe
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: But the white space around the graphics itself persists. Because your image contains the whitespace. I converted your image to a PDF as I assume that your document should also be a PDF and removed the whitespace. (You can insert images to LyX in every format, but they can only be embedded to the resulting document PDF output when they are in the format PDF, JPG, PNG, or GIF. When you use another image format like EPS, LyX has to convert the images to one of the four formats in the background which extends the document compile time when viewing/exporting it.) There were two other problems: - you scaled the image absolutely, but when you want to control the whitespace, you need to scale the image relatively to the column width. When you e.g. set your wrap float to 50% column width and do the same for your image you get no whitespace. When you set the image to 40% column width, you get some whitespace around it. - when you want the figure centered you can set its paragraph to centered and don't need to use a LaTeX command But when using wrapped figures one often wants the image to be aligned with the text column border. So in your case I would set the paragraph where the image is in to right aligned. In a separate email I attached the example file. regards Uwe
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: But the white space around the graphics itself persists. Because your image contains the whitespace. I converted your image to a PDF as I assume that your document should also be a PDF and removed the whitespace. (You can insert images to LyX in every format, but they can only be embedded to the resulting document PDF output when they are in the format PDF, JPG, PNG, or GIF. When you use another image format like EPS, LyX has to convert the images to one of the four formats in the background which extends the document compile time when viewing/exporting it.) There were two other problems: - you scaled the image absolutely, but when you want to control the whitespace, you need to scale the image relatively to the column width. When you e.g. set your wrap float to 50% column width and do the same for your image you get no whitespace. When you set the image to 40% column width, you get some whitespace around it. - when you want the figure centered you can set its paragraph to centered and don't need to use a LaTeX command But when using wrapped figures one often wants the image to be aligned with the text column border. So in your case I would set the paragraph where the image is in to right aligned. In a separate email I attached the example file. regards Uwe
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: But the white space around the graphics itself persists. Because your image contains the whitespace. I converted your image to a PDF as I assume that your document should also be a PDF and removed the whitespace. (You can insert images to LyX in every format, but they can only be embedded to the resulting document PDF output when they are in the format PDF, JPG, PNG, or GIF. When you use another image format like EPS, LyX has to convert the images to one of the four formats in the background which extends the document compile time when viewing/exporting it.) There were two other problems: - you scaled the image absolutely, but when you want to control the whitespace, you need to scale the image relatively to the column width. When you e.g. set your wrap float to 50% column width and do the same for your image you get no whitespace. When you set the image to 40% column width, you get some whitespace around it. - when you want the figure centered you can set its paragraph to centered and don't need to use a LaTeX command But when using wrapped figures one often wants the image to be aligned with the text column border. So in your case I would set the paragraph where the image is in to right aligned. In a separate email I attached the example file. regards Uwe
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: Is there a way to control the width of a caption of a wrapped figure? I think in Latex you can specify this independently of the width of the graphics in the wrppaed figure, but how do I do it in Lyx? The current Lyx leaves too much white space around the figure, because the caption is much wider than the figure. Thanks EK I can't reproduce that. When my figure is smaller than the caption and I adjust the width of the wrapfigure by the LyX-Dialog, the caption is properly split up in several lines of text. Looking into the documentation of wrapfigure (at the end of wrapfig.sty), it says: Parameter #4 (the second required parameter) is the width of the figure or table. Given the way that \LaTeX\ puts just about everything into boxes with the current line-width, the width parameter will take precedence over whatever natural width the figure has. In particular, the caption is always typeset with the specified width. So I don't think the whitespace around the figure is controled by the length of the caption. I could imagine that the horizontal dimension of your wrapfig-environment is set up too big and your picture is left- or right-aligned, that could mislead to the impression you have about the caption. I hope that gets you any further, regards, Florian
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: Is there a way to control the width of a caption of a wrapped figure? You can insert a line break or use some special commands provided by the LaTeX package caption. For more infos, see the EmbeddedObjects manual that you find in the Help menu. regards Uwe
Re: Caption width in wrapped figures
The caption package does have some useful features, which allowed me to change the width of the caption (among other things). But the white space around the graphics itself persists. If I make the caption as wide as the graphics, the white space now surrounds the caption as well. What I really need is a way to control the separation between the graphic and the wrapping text. EK Uwe Stöhr wrote: Ehud Kaplan schrieb: Is there a way to control the width of a caption of a wrapped figure? You can insert a line break or use some special commands provided by the LaTeX package caption. For more infos, see the EmbeddedObjects manual that you find in the Help menu. regards Uwe
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: The caption package does have some useful features, which allowed me to change the width of the caption (among other things). But the white space around the graphics itself persists. If I make the caption as wide as the graphics, the white space now surrounds the caption as well. What I really need is a way to control the separation between the graphic and the wrapping text. To help you further, can you send ma a _small_ LyX example while where you use the special caption commands? regards Uwe
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: Is there a way to control the width of a caption of a wrapped figure? I think in Latex you can specify this independently of the width of the graphics in the wrppaed figure, but how do I do it in Lyx? The current Lyx leaves too much white space around the figure, because the caption is much wider than the figure. Thanks EK I can't reproduce that. When my figure is smaller than the caption and I adjust the width of the wrapfigure by the LyX-Dialog, the caption is properly split up in several lines of text. Looking into the documentation of wrapfigure (at the end of wrapfig.sty), it says: Parameter #4 (the second required parameter) is the width of the figure or table. Given the way that \LaTeX\ puts just about everything into boxes with the current line-width, the width parameter will take precedence over whatever natural width the figure has. In particular, the caption is always typeset with the specified width. So I don't think the whitespace around the figure is controled by the length of the caption. I could imagine that the horizontal dimension of your wrapfig-environment is set up too big and your picture is left- or right-aligned, that could mislead to the impression you have about the caption. I hope that gets you any further, regards, Florian
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: Is there a way to control the width of a caption of a wrapped figure? You can insert a line break or use some special commands provided by the LaTeX package caption. For more infos, see the EmbeddedObjects manual that you find in the Help menu. regards Uwe
Re: Caption width in wrapped figures
The caption package does have some useful features, which allowed me to change the width of the caption (among other things). But the white space around the graphics itself persists. If I make the caption as wide as the graphics, the white space now surrounds the caption as well. What I really need is a way to control the separation between the graphic and the wrapping text. EK Uwe Stöhr wrote: Ehud Kaplan schrieb: Is there a way to control the width of a caption of a wrapped figure? You can insert a line break or use some special commands provided by the LaTeX package caption. For more infos, see the EmbeddedObjects manual that you find in the Help menu. regards Uwe
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: The caption package does have some useful features, which allowed me to change the width of the caption (among other things). But the white space around the graphics itself persists. If I make the caption as wide as the graphics, the white space now surrounds the caption as well. What I really need is a way to control the separation between the graphic and the wrapping text. To help you further, can you send ma a _small_ LyX example while where you use the special caption commands? regards Uwe
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: Is there a way to control the width of a caption of a wrapped figure? I think in Latex you can specify this independently of the width of the graphics in the wrppaed figure, but how do I do it in Lyx? The current Lyx leaves too much white space around the figure, because the caption is much wider than the figure. Thanks EK I can't reproduce that. When my figure is smaller than the caption and I adjust the width of the wrapfigure by the LyX-Dialog, the caption is properly split up in several lines of text. Looking into the documentation of wrapfigure (at the end of wrapfig.sty), it says: Parameter "#4" (the second required parameter) is the width of the figure or table. Given the way that \LaTeX\ puts just about everything into boxes with the current line-width, the width parameter will take precedence over whatever natural width the figure has. In particular, the caption is always typeset with the specified width. So I don't think the whitespace around the figure is controled by the length of the caption. I could imagine that the horizontal dimension of your wrapfig-environment is set up too big and your picture is left- or right-aligned, that could mislead to the impression you have about the caption. I hope that gets you any further, regards, Florian
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: Is there a way to control the width of a caption of a wrapped figure? You can insert a line break or use some special commands provided by the LaTeX package "caption". For more infos, see the EmbeddedObjects manual that you find in the Help menu. regards Uwe
Re: Caption width in wrapped figures
The caption package does have some useful features, which allowed me to change the width of the caption (among other things). But the white space around the graphics itself persists. If I make the caption as wide as the graphics, the white space now surrounds the caption as well. What I really need is a way to control the separation between the graphic and the wrapping text. EK Uwe Stöhr wrote: Ehud Kaplan schrieb: Is there a way to control the width of a caption of a wrapped figure? You can insert a line break or use some special commands provided by the LaTeX package "caption". For more infos, see the EmbeddedObjects manual that you find in the Help menu. regards Uwe
Re: Caption width in wrapped figures
Ehud Kaplan schrieb: The caption package does have some useful features, which allowed me to change the width of the caption (among other things). But the white space around the graphics itself persists. If I make the caption as wide as the graphics, the white space now surrounds the caption as well. What I really need is a way to control the separation between the graphic and the wrapping text. To help you further, can you send ma a _small_ LyX example while where you use the special caption commands? regards Uwe