Hi folks,
Its a bit OT, but wondering whether somebody o you could help me: How can I set sizes for images inside ReST? E.g. I want to set it to 50% of page width? Didn't found anything on documentation ....
Cheers, Frank
Am 01.12.2011 17:25, schrieb Frank Lanitz:
Hi folks,
Its a bit OT, but wondering whether somebody o you could help me: How can I set sizes for images inside ReST? E.g. I want to set it to 50% of page width? Didn't found anything on documentation ....
I found a way doing it by :height: but this is creating a broken LaTeX for pdf generation. Might will need to report that after some more investigation.
Cheers, Frank
Le 01/12/2011 17:55, Frank Lanitz a écrit :
Am 01.12.2011 17:25, schrieb Frank Lanitz:
Hi folks,
Its a bit OT, but wondering whether somebody o you could help me: How can I set sizes for images inside ReST? E.g. I want to set it to 50% of page width? Didn't found anything on documentation ....
I found a way doing it by :height: but this is creating a broken LaTeX for pdf generation. Might will need to report that after some more investigation.
This is likely to be caused by the LaTeX output tuning we have (rst2latex.sed), I guess it doesn't handle what :height: generates.
Cheers, Colomban
Am 01.12.2011 18:01, schrieb Colomban Wendling:
Le 01/12/2011 17:55, Frank Lanitz a écrit :
Am 01.12.2011 17:25, schrieb Frank Lanitz:
Hi folks,
Its a bit OT, but wondering whether somebody o you could help me: How can I set sizes for images inside ReST? E.g. I want to set it to 50% of page width? Didn't found anything on documentation ....
I found a way doing it by :height: but this is creating a broken LaTeX for pdf generation. Might will need to report that after some more investigation.
This is likely to be caused by the LaTeX output tuning we have (rst2latex.sed), I guess it doesn't handle what :height: generates.
Yepp. Good point. Needs to be revisited again.
Cheers, Frank
Am 01.12.2011 18:11, schrieb Frank Lanitz:
Am 01.12.2011 18:01, schrieb Colomban Wendling:
Le 01/12/2011 17:55, Frank Lanitz a écrit :
Am 01.12.2011 17:25, schrieb Frank Lanitz:
Hi folks,
Its a bit OT, but wondering whether somebody o you could help me: How can I set sizes for images inside ReST? E.g. I want to set it to 50% of page width? Didn't found anything on documentation ....
I found a way doing it by :height: but this is creating a broken LaTeX for pdf generation. Might will need to report that after some more investigation.
This is likely to be caused by the LaTeX output tuning we have (rst2latex.sed), I guess it doesn't handle what :height: generates.
Yepp. Good point. Needs to be revisited again.
Yepp, its really the reasons. Maybe we should revisit the whole minipage again. Unfortunately I don't remember the reasons why we added them.
Cheers, Frank
Le 01/12/2011 18:17, Frank Lanitz a écrit :
Am 01.12.2011 18:11, schrieb Frank Lanitz:
Am 01.12.2011 18:01, schrieb Colomban Wendling:
Le 01/12/2011 17:55, Frank Lanitz a écrit :
Am 01.12.2011 17:25, schrieb Frank Lanitz:
Hi folks,
Its a bit OT, but wondering whether somebody o you could help me: How can I set sizes for images inside ReST? E.g. I want to set it to 50% of page width? Didn't found anything on documentation ....
I found a way doing it by :height: but this is creating a broken LaTeX for pdf generation. Might will need to report that after some more investigation.
This is likely to be caused by the LaTeX output tuning we have (rst2latex.sed), I guess it doesn't handle what :height: generates.
Yepp. Good point. Needs to be revisited again.
Yepp, its really the reasons. Maybe we should revisit the whole minipage again. Unfortunately I don't remember the reasons why we added them.
Not sure exactly, but before the "hack" the images had a completely wrong sizing (way too large IIRC), and we decided to also center them. I don't remember the rationale for minipage, and I admit I'm a LaTeX illiterate -- it's actually a friend of mine that designed the actual output.
If you have any better setup, feel free to use it.
Chers, Colomban
Le 01/12/2011 18:11, Frank Lanitz a écrit :
Am 01.12.2011 18:01, schrieb Colomban Wendling:
Le 01/12/2011 17:55, Frank Lanitz a écrit :
Am 01.12.2011 17:25, schrieb Frank Lanitz:
Hi folks,
Its a bit OT, but wondering whether somebody o you could help me: How can I set sizes for images inside ReST? E.g. I want to set it to 50% of page width? Didn't found anything on documentation ....
I found a way doing it by :height: but this is creating a broken LaTeX for pdf generation. Might will need to report that after some more investigation.
This is likely to be caused by the LaTeX output tuning we have (rst2latex.sed), I guess it doesn't handle what :height: generates.
Yepp. Good point. Needs to be revisited again.
I've committed a fix that simply gets rid of any \includegraphics options in the input. This should fix the output validity, but maybe we'd like to use the input options?
Cheers, Colomban
Am 01.12.2011 18:18, schrieb Colomban Wendling:
Le 01/12/2011 18:11, Frank Lanitz a écrit :
Am 01.12.2011 18:01, schrieb Colomban Wendling:
Le 01/12/2011 17:55, Frank Lanitz a écrit :
Am 01.12.2011 17:25, schrieb Frank Lanitz:
Hi folks,
Its a bit OT, but wondering whether somebody o you could help me: How can I set sizes for images inside ReST? E.g. I want to set it to 50% of page width? Didn't found anything on documentation ....
I found a way doing it by :height: but this is creating a broken LaTeX for pdf generation. Might will need to report that after some more investigation.
This is likely to be caused by the LaTeX output tuning we have (rst2latex.sed), I guess it doesn't handle what :height: generates.
Yepp. Good point. Needs to be revisited again.
I've committed a fix that simply gets rid of any \includegraphics options in the input. This should fix the output validity, but maybe we'd like to use the input options?
Hmm... we should ensure options given by rst are taken over to PDF.
Cheers, Frank
Le 01/12/2011 18:21, Frank Lanitz a écrit :
Am 01.12.2011 18:18, schrieb Colomban Wendling:
Le 01/12/2011 18:11, Frank Lanitz a écrit :
Am 01.12.2011 18:01, schrieb Colomban Wendling:
Le 01/12/2011 17:55, Frank Lanitz a écrit :
Am 01.12.2011 17:25, schrieb Frank Lanitz:
Hi folks,
Its a bit OT, but wondering whether somebody o you could help me: How can I set sizes for images inside ReST? E.g. I want to set it to 50% of page width? Didn't found anything on documentation ....
I found a way doing it by :height: but this is creating a broken LaTeX for pdf generation. Might will need to report that after some more investigation.
This is likely to be caused by the LaTeX output tuning we have (rst2latex.sed), I guess it doesn't handle what :height: generates.
Yepp. Good point. Needs to be revisited again.
I've committed a fix that simply gets rid of any \includegraphics options in the input. This should fix the output validity, but maybe we'd like to use the input options?
Hmm... we should ensure options given by rst are taken over to PDF.
OK. Is \command[option1,option2,]{...} valid (e.g. a trailing comma)? If yes it's easy, otherwise... :(
Cheers, Colomban
Am 01.12.2011 18:42, schrieb Colomban Wendling:
Le 01/12/2011 18:21, Frank Lanitz a écrit :
Am 01.12.2011 18:18, schrieb Colomban Wendling:
Le 01/12/2011 18:11, Frank Lanitz a écrit :
Am 01.12.2011 18:01, schrieb Colomban Wendling:
Le 01/12/2011 17:55, Frank Lanitz a écrit :
Am 01.12.2011 17:25, schrieb Frank Lanitz: > Hi folks, > > Its a bit OT, but wondering whether somebody o you could help me: How > can I set sizes for images inside ReST? E.g. I want to set it to 50% of > page width? Didn't found anything on documentation ....
I found a way doing it by :height: but this is creating a broken LaTeX for pdf generation. Might will need to report that after some more investigation.
This is likely to be caused by the LaTeX output tuning we have (rst2latex.sed), I guess it doesn't handle what :height: generates.
Yepp. Good point. Needs to be revisited again.
I've committed a fix that simply gets rid of any \includegraphics options in the input. This should fix the output validity, but maybe we'd like to use the input options?
Hmm... we should ensure options given by rst are taken over to PDF.
OK. Is \command[option1,option2,]{...} valid (e.g. a trailing comma)? If yes it's easy, otherwise... :(
Tralling , is not very often valid ;) Well. I guess I will finish the current newsletter with some extra effort and we can hack a bit after that... I can provide updated tex-file also.
Cheers, Frank
Le 01/12/2011 19:55, Frank Lanitz a écrit :
Am 01.12.2011 18:42, schrieb Colomban Wendling:
Le 01/12/2011 18:21, Frank Lanitz a écrit :
Am 01.12.2011 18:18, schrieb Colomban Wendling:
Le 01/12/2011 18:11, Frank Lanitz a écrit :
Am 01.12.2011 18:01, schrieb Colomban Wendling:
Le 01/12/2011 17:55, Frank Lanitz a écrit : > Am 01.12.2011 17:25, schrieb Frank Lanitz: >> Hi folks, >> >> Its a bit OT, but wondering whether somebody o you could help me: How >> can I set sizes for images inside ReST? E.g. I want to set it to 50% of >> page width? Didn't found anything on documentation .... > > I found a way doing it by :height: but this is creating a broken LaTeX > for pdf generation. Might will need to report that after some more > investigation.
This is likely to be caused by the LaTeX output tuning we have (rst2latex.sed), I guess it doesn't handle what :height: generates.
Yepp. Good point. Needs to be revisited again.
I've committed a fix that simply gets rid of any \includegraphics options in the input. This should fix the output validity, but maybe we'd like to use the input options?
Hmm... we should ensure options given by rst are taken over to PDF.
OK. Is \command[option1,option2,]{...} valid (e.g. a trailing comma)? If yes it's easy, otherwise... :(
Tralling , is not very often valid ;)
yeah, but PdfLatex is fine with it so I hoped ^^
Anyway I got something working (ok, it's still sed magic so it's hum...), pushed to honor-input-includegraphics-options branch it you want to test and check whether the LaTeX output looks OK (there are too much newlines, but I think it shouldn't be a problem?)
Cheers, Colomban