On Tue, May 24, 2011 at 12:37 PM, Philip Austin
<austin.phili...@gmail.com> wrote:
> (pre-question: anyone know how to get a plain textbox for posting?
> I've tried to attach the actual rst file in case spacing get corrupted
> by the non-wysiwyg widget)
>
> I'm trying to automate the production of tables containing large numbers
> (hundreds) of figures.   It would help readability if I could abbreviate the
> figure
> path in some way, using targets or string replacements like this:
>
> .. _fig1: //home/xwei/public_html/results/docs/new/GCM/cld-anom-cccma.png
> .. |fig1| replace::
> //home/xwei/public_html/results/docs/new/GCM/cld-anom-cccma.png
>
> However, although this works:
>
> +---------------+----------------------------------------------------------------------------------------------+
> | model          | CCCma
>                                                      |
> +---------------+----------------------------------------------------------------------------------------------+
> | total cld        | .. figure::
> //home/xwei/public_html/results/docs/new/GCM/cld-anom-cccma.png |
> |                     | :scale: 30
>                                                             |
> +---------------+----------------------------------------------------------------------------------------------+
>
> these two fail, with the message:
>
> /nfs/kite/home/phil/public_html/imagetest/index.rst:: WARNING: image file
> not readable: `fig1`_
> /nfs/kite/home/phil/public_html/imagetest/index.rst:: WARNING: image file
> not readable: |fig1|
>
> +--------------+------------------------------------------------------------------------------+
> | model         |
> CCCma
> |
> +--------------+------------------------------------------------------------------------------+
> | total cld       | .. figure:: `fig1`_
>                                      |
> |                    |   :scale: 30
>                                         |
> +--------------+------------------------------------------------------------------------------+
>
> +--------------+------------------------------------------------------------------------------+
> | model         |
> CCCma
> |
> +--------------+------------------------------------------------------------------------------+
> | total cld       | .. figure:: |fig1|
>                                       |
> |                    |  :scale: 30
>                                        |
> +--------------+------------------------------------------------------------------------------+
>
> Is there a syntax/feature I'm missing?   thanks, Phil
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-dev" group.
> To post to this group, send email to sphinx-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> sphinx-dev+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sphinx-dev?hl=en.
>

Dunno if this is applicable to your problem but you might want to look
at the extlinks extension documented at:
http://sphinx.pocoo.org/ext/extlinks.html.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to