当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 26 篇帖子 ]  前往页数 上一页  1, 2
作者 内容
16 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-01-24 9:49 
头像

注册: 2009-05-08 14:18
帖子: 3332
地址: 河南新乡
系统: Arch
送出感谢: 19
接收感谢: 10
fan页 :em11 :em11


_________________
Linux 相关链接大杂烩
代码:
if(read) {
    if(practise) return g☘☘d;
    else return w☘☘d;
} else {
    return t☘☘d;
}


页首
 用户资料  
 
17 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-01-24 17:27 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
搞定一个问题
2012-01-24 17:26
\usepackage{tikz}
\let\oldpagecolor\pagecolor\def\pagecolor#1{\oldpagecolor{#1}\def\curcol{#1}}
\tikzset{rc/.style={rectangle,left color=green!40!black,right color=\curcol,text width=20em,rounded corners=0.8em}}

%\tikzstyle{圆角渐变} = [rectangle, left color=darkgreen, right color=slight, text width=20em, rounded corners, rounded corners = 0.8em]

\newcommand{\noderc}[1]{\tikz\node[rc](a){\textcolor{white}{\quad#1\quad}};}

感谢#latex的 dl903。tikzstyle似乎已经废弃了。


_________________
● 鸣学


页首
 用户资料  
 
18 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-01-24 17:43 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
第2个也搞定

\newcommand{\noderc}[2][]{\tikz\node[rc,#1](a){\textcolor{white}{\quad#2\quad}};}

然后使用

\noderc{测试圆角渐变背景文字}
\noderc[left color=red]{测试圆角渐变背景文字}

一种是缺省左边颜色。一种是重新定义。


附件:
screenshot33.png
screenshot33.png [ 18.46 KiB | 被浏览 615 次 ]

screenshot34.png
screenshot34.png [ 11.04 KiB | 被浏览 615 次 ]


_________________
● 鸣学
页首
 用户资料  
 
19 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-01-24 18:39 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
代码:
%圆角渐变背景文字
\usepackage{tikz}
\let\oldpagecolor\pagecolor\def\pagecolor#1{\oldpagecolor{#1}\def\curcol{#1}}
\tikzset{rc/.style={rectangle,left color=green!40!black,right color=\curcol,text width=20em,rounded corners=0.8em}}

%\tikzstyle{圆角渐变} = [rectangle, left color=darkgreen, right color=slight, text width=20em, rounded corners, rounded corners = 0.8em]
%\newcommand{\noderc}[1]{\tikz\node[rc](a){\textcolor{white}{\quad#1\quad}};}
\newcommand{\圆角渐变样式}[2][]{\tikz\node[rc,#1](a){\textcolor{white}{\quad#2\quad}};}
\newcommand{\noderc}[2][darkgreen]{\圆角渐变样式[left color=#1]{#2}}



_________________
● 鸣学


页首
 用户资料  
 
20 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-01-24 19:31 
头像

注册: 2008-09-28 17:24
帖子: 1989
送出感谢: 6
接收感谢: 14
什么?tikzstyle废弃了? :em34


_________________
latex 是个命令集,不是软件,所以在应用程序里找不到,也不存在启动。使用的话,自己写个 .tex 的文件,用 latex 编译。http://forum.ubuntu.com.cn/viewtopic.php?f=35&t=331555 的 4楼 有入门教程PDF下载。


页首
 用户资料  
 
21 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-01-28 15:50 
头像

注册: 2009-07-25 1:57
帖子: 701
送出感谢: 5
接收感谢: 13
你这里用的参数在tikz的文档里Node这章下都有啊,不过tikz附带的library和相关的包太多,一个个实在看不过来。


_________________
https://github.com/tangboyun
http://tangboyun.is-programmer.com/
提问的智慧————Eric Steven Raymond
回答的智慧————Andrew Clarke
吾尝终日而思矣,不如须臾之所学也;吾尝跂而望矣,不如登高之博见也。
急急急标题什么的,最讨厌了!
急急复急急,急急何其多,我生待急急,万事急急急。


页首
 用户资料  
 
22 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-01-28 18:04 
头像

注册: 2005-10-01 21:38
帖子: 964
地址: 湖南邵东流光岭
送出感谢: 0 次
接收感谢: 0 次
真漂亮,希望来个标准教程!


_________________
小江恩的博客
http://gann.blog.ifeng.com/


页首
 用户资料  
 
23 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-01-28 19:31 
头像

注册: 2008-07-30 23:21
帖子: 13427
地址: freebuilder@yeah.net
系统: Debian stable AMD64
送出感谢: 38
接收感谢: 127
暂无需求


_________________
(2015-11-16 更新)适合 WM 的截图脚本
(2015-08-24 更新)Debian、Ubuntu 源列表说明
(2013-02-01 首发)文字如何绘出
▷▷ 【更 多 在 此】 ◁◁
箪食瓢饮随遇安,不求栋梁求参天。
【初韵】一门牛逼的编程语言。


页首
 用户资料  
 
24 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-02-02 17:12 
头像

注册: 2009-07-22 22:23
帖子: 1376
送出感谢: 2
接收感谢: 4
:em11 ,问一下神,tikz这个包是要单独下载的呢,还是安装完tex-live就有的?


_________________
愿扣上你双手,至繁华浪处到沙丘。


页首
 用户资料  
 
25 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-02-02 18:36 
头像

注册: 2009-07-25 1:57
帖子: 701
送出感谢: 5
接收感谢: 13
DVD或者install-tl的直接就有,deb好像是在texlive-pictures里


_________________
https://github.com/tangboyun
http://tangboyun.is-programmer.com/
提问的智慧————Eric Steven Raymond
回答的智慧————Andrew Clarke
吾尝终日而思矣,不如须臾之所学也;吾尝跂而望矣,不如登高之博见也。
急急急标题什么的,最讨厌了!
急急复急急,急急何其多,我生待急急,万事急急急。


页首
 用户资料  
 
26 楼 
 文章标题 : Re: latex 也快万能了
帖子发表于 : 2012-02-02 19:05 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
● locate tikz.sty
/usr/share/texmf/tex/latex/pgf/frontendlayer/tikz.sty
/usr/share/texmf-texlive/tex/latex/circuitikz/circuitikz.sty

● dpkg -S /usr/share/texmf/tex/latex/pgf/frontendlayer/tikz.sty
pgf: /usr/share/texmf/tex/latex/pgf/frontendlayer/tikz.sty

● aw pgf
软件包: pgf
状态: 已安装
自动安装: 是
版本号: 2.10-1
优先级: 可选
部分: tex
维护者: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
未压缩尺寸: 8,958 k
依赖于: dpkg (>= 1.14.18), tex-common (>= 2.00), texlive-latex-recommended,
latex-xcolor (>= 2.00-1)
冲突: pgf
描述: TeX Portable Graphic Format
pgf stands for `portable graphics format'. It is a TeX macro package that
allows you to create graphics in your TeX documents using a special pgfpicture
environment and special macros for drawing lines, curves, rectangles, and many
other kind of graphic objects. Its usage closely resembles the pstricks package
or the normal picture environment of LaTeX.

Although pgf is less powerful than \pstricks, it has the advantage that it can
generate both PostScript output and pdf output from the same file. The pgf
package works together both with dvips and pdftex. In particular, packages that
rely on pdftex or pdflatex (like some packages for creating presentations) can
be used together with pgf.


_________________
● 鸣学


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 26 篇帖子 ]  前往页数 上一页  1, 2

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译