http://tex.stackexchange.com/questions/9641/filled-diamondsuit-and-heartsuit
\clubsuit
, \diamondsuit
and the like produce the familiar card suit symbols; however, the diamond and heart suits are empty (only outlined), while clubs and spades are filled. Is there a way to obtain the filled versions of\diamondsuit
and \heartsuit
in TeX?
A "clean" solution would be preferred, but even an ugly "take this shape and fill it" TikZ hack would do the job.
实心扑克花色图案问题
![](http://hi.csdn.net/attachment/201108/4/0_1312452321e3D1.gif)
============================================================
http://fanweiphysicist.blogspot.com/2011/04/add-python-code-in-your-latex-files.html
Add Python Code in Your Latex Files
#Method 1: listings
# http://facweb.knowlton.ohio-state.edu/pviton/support/lgrindswp.html
\usepackage{listings} %add this at your preamble.
#Can put this at anywhere in the article. Better put it in your preamble.
#This is not necessary, as you can put lstset{} in the place where the
#lstlisting environment is used as shown below.
\lstset{
language=Python, %the language of the code
basicstyle=\footnotesize, %the size of the fonts that are used for the code
numbers=left, %where to put the line-numbers
numberstyle=\footnotesize, %the size of the fonts that are used for the line-numbers
stepnumber=2, %the step between two line-numbers. If it's 1, each line will be numbered.
numbersep=5pt, %how far the line-numbers are from the code
backgroundcolor=\color{white}, %choose the background color.
%You must add \usepackagecolor}
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings.
showtabs=false, % show tabs within strings adding particular underscores
frame=single, % adds a frame around the code
tabsize=2, % sets default tabsize to 2 spaces
captionpos=b, % sets the caption-position to bottom
breaklines=true, % sets automatic line breaking
breakatwhitespace=false,% sets if automatic breaks should only happen at whitespace
title=\lstname, % show the filename of files included with \lstinputlisting;
% also try caption instead of title
escapeinside={\%*}{*)}, % if you want to add a comment within your code
morekeywords={*,...} % if you want to add more keywords to the set
}
\lstset{language=newLanguage,caption={Descriptive Caption Text},label=DescriptiveLabel}
%This will overwrite the settings in the preamble.
\lstinputlisting{your-code.py}
#Method 2: pygmentize
#Documentation at http://pygments.org/docs/cmdline/
#The archlinux user would first need to install the python-pygments packages,
#sudo yaourt -S python-pygments.
For the Python code file: your-code.py, execute the following command
pygmentize -f latex -O full your-code.py > your-code.tex
To put it in your tex file: your-tex.tex, do the following two steps,
1) Copy the preamble in file your-code.tex to the preamble of your-tex.tex file.
2) Copy the contents between '\begin{Verbatim} ... \end{Verbatim}' in your-code.tex to the place in your-tex.tex where you want the Python code appears.
#Method 3: Verbatim
#This is the easiest way, but its layout does not have color highlight.
\usepackage{verbatim} %put it at the preamble.
\verbatiminput{your-code.py} %put this at where your want you code appears.
#To use caption for the verbatim environment, you need to make a float
#environment and then put the verbatim in the float environment. Add the
#caption to the float environment. As you can see at
#http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions.
============================================================
Verbatim背景颜色
http://tex.stackexchange.com/questions/15940/background-color-in-verbatim
另:cct中有个everb宏包
============================================================
显示LaTeX源文件
http://tex.stackexchange.com/questions/4095/how-display-latex-code-in-latex-document
============================================================
http://blog.sina.com.cn/s/blog_5e16f1770100g65u.html
LaTeX技巧心得101:如何给页面添加背景色?
解决方案是:使用color宏包,\pagecolor{}.
演示效果图:
LaTeX技巧心得101:如何给页面添加背景色?
演示代码:
\documentclass{article}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{207.0pt}
%\setlength\textheight{4\baselineskip}
\usepackage{color}
\definecolor{MyDarkBlue}{rgb}{0,0.08,0.45}
\definecolor{yellow}{rgb}{0.99,0.99,0.70}
\definecolor{white}{rgb}{1.0,1.0,1.0}
\definecolor{black}{rgb}{0.00,0.00,0.00}
\pagecolor{yellow}
\begin{document}
\color{MyDarkBlue}
\large
text text text
text text text.
text text text
text text text.text text text
text text text.text text text
text text text.text text text
\end{document}