使用 LaTeX 使带有/不带行的文本变灰? [英] Graying out texts with/without lines with LaTeX?

查看:27
本文介绍了使用 LaTeX 使带有/不带行的文本变灰?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是 Pragmatic Bookshelf 的屏幕截图.

This is a screen capture from Pragmatic Bookshelf.

如何用 LaTeX 制作这个盒装文本?它有自己的带下划线的标题,并使用颜色.

How to make this boxed text with LaTeX? It has it's own heading with underline, and uses color.

以及如何使一些带有灰色背景的文本如下?

And how to make some text with gray background as follows?

http://img20.imageshack.us/img20/7351/screenshot20100718at916.png

Konrad 的方法有效,但看起来它不适用于多列包.

Konrad's method works, but it looks like that it doesn't work well with multicolumn package.

Tonio 的方法只为字符显示灰色,但我想让灰色框扩展到 extwidth 的末尾.

Tonio's method shows the gray only for the characters, but I want to have the gray box expanded to the end of extwidth.

http://img714.imageshack.us/img714/8417/screenshot20100718at247.png

我发布了另一个关于 exwidth 的 问题,它似乎仍然有效.

I posted another question with respect to the exwidth, and it seems to working anyway.

推荐答案

圆角框最容易使用 抖音Z:

egin{tikzpicture}
  draw node[draw=black,fill=black!20,rounded corners,inner sep=2ex,text width=	extwidth] {
    Lorem ipsum dolor sit amet dots
    };
end{tikzpicture}

这篇关于使用 LaTeX 使带有/不带行的文本变灰?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆