a******s 发帖数: 232 | 1 http://www.devdaily.com/blog/Content/2/18/316/
How to use a strikeout/strikethrough font with LaTeX
It was hard to find out how to use a strikethrough font using LaTeX, and I don
't want to lose it, so here's a simple example.
%
% include the "ulem" package in the header
%
\usepackage{ulem}
%
% use the "sout" tag to "strike through" text
%
\sout{Bill Clinton} G.W. Bush is the pres.
This produces text like this:
Bill Clinton G.W. Bush is the pres.
As you can see, step one is to include the ul |
|
T*******n 发帖数: 493 | 2 You might also want to take a look at the "soul" (strike-out and underline)
package. I recall that soul is more flexible and useful than ulem.
don |
|
d****e 发帖数: 251 | 3 \usepackage{ulem}, which by default changes the behavior of \emph
\sout{strike out} |
|
T*******n 发帖数: 493 | 4 Try \usepackage{soul}, more powerful than ulem, and works better
with line breaks. You can find soul.sty and documentation at
www.ctan.org. |
|
s***t 发帖数: 195 | 5 \usepackage[normalem]{ulem}
...
\addtolength{\ULdepth}{0.5pt} |
|
g******s 发帖数: 141 | 6 我想在我的文档里插入一个图片,我可以看到这个图当我texify. 但是当我用pdf
texify时,产生一个错误:
Latex error: file Figure1.eps not found.
我用的是winedt. 下面是我的code.大家能帮我看看是什么原因吗?谢谢!
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{fullpage}
\usepackage{verbatim}
\usepackage{subfigure}
\usepackage{ulem}
\usepackage{graphicx}
\usepackage{grffile}
\begin{figure}[hbt]
\begin{center}
\includegraphics[scale=0.6]{Figure1.eps}
\end{center}
\caption{Process}
\end{figure} |
|
g*********r 发帖数: 124 | 7 在导言区定义新命令 \colorsout
\usepackage{ulem,color}
\newcommand\colorsout{\bgroup
\markoverwith{\kern-.1em \textcolor{red}{-}\kern-.1em}% 划线为红色
\ULon}
可根据需要设置别的颜色 |
|
i********w 发帖数: 2223 | 8 thanks a lot!
在导言区定义新命令 \colorsout
\usepackage{ulem,color}
\newcommand\colorsout{\bgroup
\markoverwith{\kern-.1em \textcolor{red}{-}\kern-.1em}% 划线为红色
\ULon}
可根据需要设置别的颜色 |
|
a*****g 发帖数: 19398 | 9 代码很简单,见后。
消掉分数之后,发现分子部分有些抬高了,就对不齐了。请教怎么办。
\documentclass[10pt,letterpaper]{article}
\usepackage{ulem}
\usepackage{makeidx}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{gxm}
\begin{document}
\[ {8 \choose 3}
= \frac{8 \times7 \times 6}{3 \times 2 \times 1}
= \frac{8 \times7 \times \xout{6}}{\xout{3} \times \xout{2} \times 1}
=56\]
\end{document} |
|
b*******t 发帖数: 33714 | 10 试试\usepackage[normalem]{ulem}?
然后用\uline |
|