captions

How to make a hyperlink navigate to the top of the figure in LaTeX when using hyperref?

孤者浪人 提交于 2019-12-02 16:41:30
I have a LaTeX document with a figure and references to it: \begin{figure} ... \caption{...} \label{fig:1} \end{figure} \ref{fig:1} I use the hyperref package to get hyperlinks in the resulting PDF. However the link to the figure navigates to the caption leaving the figure itself out of the view. How can I make it navigate to the start of the figure instead without moving the caption to the top? Add this in your preamble \usepackage{hyperref} \usepackage[all]{hypcap} %for going to the top of an image when a figure reference is clicked Make sure that the \usepackage[all]{hypcap} is written

Is there a function to get the caption for an image in wordpress

别来无恙 提交于 2019-11-29 01:35:26
I'm trying to get the captions from images in Wordpress but I can't find an easy function to grab this bit of information. Anyone know a way to get this? Thanks If you are trying to get the caption while in a post you can echo it out inside your "the_post_thumbnail" tag. <?php the_post_thumbnail(); echo get_post(get_post_thumbnail_id())->post_excerpt; ?> You can also use the same method to show the image description. This is a little better feature in WordPress 3.5 <?php the_post_thumbnail(); echo get_post(get_post_thumbnail_id())->post_content; ?> If you need to style the caption or

Looking for a working example of addTimedTextSource for adding subtitle to a video from an .srt file in Android 4.1

ε祈祈猫儿з 提交于 2019-11-28 03:57:43
I have been trying to use an .srt file for a timed text source (Only available in android 4.1+ http://developer.android.com/about/versions/android-4.1.html#Multimedia ) . The first problem has to do with getting a file descriptor for the .srt file (in the assets folder, how else would you bundle it in your app?). The file gets compressed automatically so you won't be able to even see the file without changing compile settings or doing a custom build. The easiest solution was to rename the .srt file to .jpg so that it does not get compressed and the openFD method still works. I am now adding

Is there a function to get the caption for an image in wordpress

拟墨画扇 提交于 2019-11-27 16:08:13
问题 I'm trying to get the captions from images in Wordpress but I can't find an easy function to grab this bit of information. Anyone know a way to get this? Thanks 回答1: If you are trying to get the caption while in a post you can echo it out inside your "the_post_thumbnail" tag. <?php the_post_thumbnail(); echo get_post(get_post_thumbnail_id())->post_excerpt; ?> You can also use the same method to show the image description. This is a little better feature in WordPress 3.5 <?php the_post

Looking for a working example of addTimedTextSource for adding subtitle to a video from an .srt file in Android 4.1

人走茶凉 提交于 2019-11-27 05:17:51
问题 I have been trying to use an .srt file for a timed text source (Only available in android 4.1+ http://developer.android.com/about/versions/android-4.1.html#Multimedia) . The first problem has to do with getting a file descriptor for the .srt file (in the assets folder, how else would you bundle it in your app?). The file gets compressed automatically so you won't be able to even see the file without changing compile settings or doing a custom build. The easiest solution was to rename the .srt