标签: caption

是否有可能让LaTeX链接到数字的顶部而不是其标题?

在我的TeX文件中,我有以下代码:

\begin{figure}[H]
    \begin{center}
        \includegraphics[width=5in]{screens/main.png}
        \caption{\label{fig:MainScreen} Screenshot of the main screen of TADA.}
    \end{center}
\end{figure}
Run Code Online (Sandbox Code Playgroud)

但是,当我在我的文档中参考前面的图时:

...in Figure \ref{fig:MainScreen}.
Run Code Online (Sandbox Code Playgroud)

...如果我点击预览(Mac)中的参考,它会将我带到\label命令所在的位置(低于图中的实际图像).也就是说,文档滚动到标题位于页面顶部的位置,如果我试图查看图形本身,这有点令人讨厌.

我的问题是,我可以让LaTeX创建对图形顶部的引用,同时保持\caption命令在底部吗?出于文体目的,我必须将标题保留在图中.

我唯一的想法是将\label命令移到命令之前\includegraphics,但显然\caption必须提前\label引用才能正常工作.

label latex caption figure

12
推荐指数
1
解决办法
2064
查看次数

如何在Excel标签的标题中垂直居中显示文本?

在Excel 2007中,我在工作表上插入了一个ActiveX标签.我右键单击它并查看属性并设法将TextAlign属性更改为2(frmTextAlignCenter).

这会将标签标题的文本与标签的中心(水平)对齐,但文本仍保留在标签的顶部.如何将标题的文本垂直居中,使其位于标签的中间位置?

我在SO中搜索了"垂直对齐",但是没有提到如何为Excel标签的标题执行此操作.

谢谢!

excel vba label caption vertical-alignment

12
推荐指数
3
解决办法
4万
查看次数

Twitter Bootstrap缩略图标题右侧

如何将Twitter Bootstrap缩略图的标题放在图像的右侧而不是下方?最好是在CSS中.到目前为止,我只使用现有标签,因为我的css知识非常有限.

<ul class="thumbnails">
  <li class="span2">
    <div class="thumbnail span4">
  <div class="span2">
        <img src="http://placehold.it/120x160" alt="">
      </div>
      <div class="caption">
        <h5>Thumbnail label </h5>
        <p>Cras justo odio, dapibus ac facilisis in, egestas eget. Eget metus</p>
        <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
      </div>
    </div>
  </li>
</ul>
Run Code Online (Sandbox Code Playgroud)

css thumbnails caption twitter-bootstrap

12
推荐指数
1
解决办法
3万
查看次数

Delphi 7中文本/标题的宽度(以像素为单位)

这是我的问题,我想知道文本的实际长度(以像素为单位)(请注意,在某些字体中,各种字母的长度不同).我将使用它来更好地调整DBGrid中的列宽.

delphi column-width font-size caption

11
推荐指数
2
解决办法
2万
查看次数

带有WPF字幕的边框

有没有人知道如何在WPF中使用标题获取边框,即Web浏览器显示<fieldset>标签的方式?是否有一种简单的方法,比如设置一个属性,或者我将不得不制作一个ControlTemplate?

wpf border caption

8
推荐指数
1
解决办法
5814
查看次数

Google文档 - 自动列表

是否可以captions在Google文档中添加表格?

我希望能够生成一个自动的表列表.例如这样的事情:

在此输入图像描述

任何的想法 ?

google-docs caption tableofcontents

8
推荐指数
1
解决办法
5876
查看次数

设置负边距,即其高度的百分比。纯 CSS

我有一系列图像,它们有不同的标题。这些标题中的每一个都需要看起来漂浮在图像底部的中间。这是它的外观以及我如何在 div 中构建它的模型。因为标题底部和下面的任何 div 之间需要有空间,所以标题不能绝对定位。

我知道这可以在 javascript 中完成,但这将是一个黑客,所以我更愿意找到一个只使用 CSS 的解决方案。

查看我的线框模型的图像

...这是到目前为止的代码:JS FIDDLE

.outer {
  position: relative;
  width: 320px;
  margin-bottom:24px // this needs to be the space between the bottom of the caption and the next image or whatever div is beneath.
}

.image {
  background-color: blue;
  width: 320px;
  height: 380px;
  position: relative;
  border-radius: 5px;
}

.caption {
  position: relative;
  margin-top: -24px;
  /* THIS NEEDS TO BE 50% of the Captions variable height */
}

.card {
  margin-right: 25%;
  margin-left: …
Run Code Online (Sandbox Code Playgroud)

css margin caption

8
推荐指数
3
解决办法
6820
查看次数

如何删除(或隐藏)jqgrid中的标题栏?

我看到你可以添加一个顶部标题栏并使用以下代码放置标题:

jQuery('#grid').setCaption("Title");
Run Code Online (Sandbox Code Playgroud)

无论如何,如果我已经设置了标题,删除标题栏?

我试过这个,但它只删除了文本(不删除整个标题栏).

jQuery('#grid').setCaption("");
Run Code Online (Sandbox Code Playgroud)

jquery filter jqgrid caption

7
推荐指数
2
解决办法
2万
查看次数

在新的whatsapp ver 2.11.399(android)上添加图片标题

朋友们,

在android"whatsapp messenger"版本2.11.399(2014年9月30日)上,可以为共享图像添加标题(文本描述).

我通过意图分享图像如下:

Intent share = new Intent(android.content.Intent.ACTION_SEND);
share.setType("image/jpeg");
Uri imageUri = Uri.fromFile(file);
share.putExtra(Intent.EXTRA_STREAM, imageUri);
//share.putExtra(Intent.EXTRA_TEXT, "This is my text to send."); // NOT WORKING
startActivity(share);
Run Code Online (Sandbox Code Playgroud)

如何将文本添加到图像标题?

android caption android-intent whatsapp

7
推荐指数
1
解决办法
4239
查看次数

xtable在顶部添加标题,在表格下添加标题

我想xtable在Rnw文档中添加标题标题.这是代码.不幸的是,我无法在表格下添加标题.我已经尝试了\ caption {}函数,但它不会打印PDF.

我见过R:xtable标题(或注释),但它不适用于从R中的lm()函数创建的表.你有什么线索吗?

<<yoman,echo=FALSE,results=tex>>=
library(xtable)

pop5lm <- lm(mpg ~ wt, data=mtcars) #my linear model

print(xtable(pop5lm,
             caption = c("Estimates of linear model for father Muro CB"), 
             label = "tab:one", digits = c(0,2, 2, 2,3)), 
             table.placement = "tbp", 
             caption.placement = "top")
@
Run Code Online (Sandbox Code Playgroud)

latex r caption sweave xtable

7
推荐指数
1
解决办法
8695
查看次数