Thank you both for your input...I have actually combined both and
things do what they should.
I thought originally that the problem was the image in conjunction
with the table was causing problems. As it turns out, however, it was
just the image itself that was causing problems. Perhaps incorrect
DPI, I'm not sure...but anyway, I think that there is a problem in
sphinx itself. If I put the following in my rst file and compile
latex:
.. image:: _static/icon.png
:width: 1in
:height: 1in
I get this in the output latex:
\includegraphics[width=1in,height=1in]{icon.png}
But if I put this:
.. image:: _static/icon.png
:width: 16px
:height: 16px
I only get this in the output latex:
\includegraphics{icon.png}
As you can see, the sizes are ignored. Is this expected behavior?
On Dec 11, 10:52 am, Meera <[email protected]> wrote:
> Hi Dhyams,
>
> I hope list-table solves your problem....
>
> My
> PDF:http://books.google.com/books?id=p4aTHarK8bQC&q=search+options#v=snip...
> (See Page 66)
>
> My
> Html:http://eclipsebook.in/c-cpp-development/reading-code/searching/search...
>
> My Source Code:
>
> The table below shows the explanation of the options.
>
> .. tabularcolumns:: |C|L|
>
> .. list-table:: Advanced search options
> :header-rows: 1
> :widths: 10, 20
> :class: center
>
> * - Image
> - Action
>
> * - .. image:: /img/s/s/icon_next.*
> :alt: Go to next search item
> - Go to next search item (:kbd:`Ctrl + .`)
>
> * - .. image:: /img/s/s/icon_previous.*
> :alt: Go to previous search item
> - Go to previous search item (:kbd:`Ctrl + ,`)
>
> * - .. image:: /img/s/s/icon_remove.*
> :alt: Remove the selected search item(s) from the search
> view
> - Remove the selected search item(s) from the search view
>
> * - .. image:: /img/s/s/icon_con_rem_all_term.*
> :alt: Clear search results
> - Clear search results
>
> * - .. image:: /img/s/s/icon_search.*
> :alt: Search/Find again
> - Search/Find again
>
> * - .. image:: /img/s/s/icon_con_terminate.*
> :alt: Stop searching
> - Stop searching
>
> * - .. image:: /img/s/s/icon_show_prev_search.*
> :alt: See previous search history
> - See previous search history
>
> * - .. image:: /img/s/s/icon_con_pin.*
> :alt: Pin the search view
> - Pin the search view
>
> On Dec 9, 11:36 pm, dhyams <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi, the following code works just fine in HTML, but in the latex
> > output, the images are scaled to about 8x what they should be:
>
> > (I know that in a proportional font, this won't line up, but you get
> > the gist ;))
>
> > .. tabularcolumns:: |p{1in}|l|
>
> > +-----------------------------------------------
> > +--------------------------------------------------+
> > | Badge |
> > Meaning |
> > +===============================================
> > +==================================================+
> > | .. image:: _static/nonlinear-ok.png | Data unchanged since
> > calculation of this result |
> > +-----------------------------------------------
> > +--------------------------------------------------+
> > | .. image:: _static/nonlinear-attention.png | Data changed since
> > calculation of this result |
> > +-----------------------------------------------
> > +--------------------------------------------------+
>
> > Is there some way, with the inline image directive above, to hardcode
> > the size to say, 16 pixels by 16 pixels?
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.