Skip to content

Instantly share code, notes, and snippets.

@dokenzy
Created March 6, 2016 07:24
Show Gist options
  • Save dokenzy/dd0011f55bf36af68eec to your computer and use it in GitHub Desktop.
Save dokenzy/dd0011f55bf36af68eec to your computer and use it in GitHub Desktop.
latex에서 취소선 긋는 방법
\documentclass{article}
\usepackage{xcolor}
\usepackage{ulem}
\usepackage{soul}
\setstcolor{red}%%%
\usepackage{fontspec}
\usepackage{fontenc}
\usepackage{inconsolata}
\usepackage{erewhon}
\newfontface\aaa{Inconsolatazi4}%%%
\newfontface\bbb{Helvetica Neue}%%%
% http://www.ktug.org/xe/index.php?mid=blog&document_srl=23375
\def\mysoutlight#1{{\leavevmode\setbox0\hbox{#1}%
\rlap{\textcolor{red}{\vrule width\wd0 height.7ex depth-.62ex}}\box0}
}
\def\mysoutbold#1{{\leavevmode\setbox0\hbox{#1}%
\rlap{\textcolor{red}{\vrule width\wd0 height.7ex depth-.5ex}}\box0}
}
\begin{document}
\sout{default}
\st{default}
%%
\aaa \sout{Inconsolatazi4 font}
\aaa \st{Inconsolatazi4 font}
%%
\bbb \sout{Helvetica Neue font}
\bbb \st{Helvetica Neue font}
%%
\textde{\sout{miama font in TeXLive}}
\textde{\st{miama font in TeXLive}}
%%
\mysoutlight{aAbBfFgGxXyY light}
\mysoutbold{aAbBfFgGxXyY bold}
%%
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment