summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/combelow/combelow.sty
blob: 2a52e35c320d830d07244dad43aa662417900122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%% This is file combelow.sty
%% Copyright (C) 2009 by Gianluca Pignalberi
%% (g.pignalberi@freesoftwaremagazine.com)
%%
%% this file may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License, either version 1.3a or
%% (at your option) any later version. The latest version of this
%% license is in http://www.latex-project.org/lppl.txt
%% and version 1.3a or later is part of all distributions of LaTeX
%% version 2004/10/01 or later.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{combelow}[2010/05/02 v0.99f comma below command]
\def\@commafont{\check@mathfonts
    \fontsize\sf@size\z@\selectfont}
\DeclareRobustCommand{\cb}[1]{{%
\setbox\z@\hbox{#1}%
\ifdim\dp\z@<.1\ht\z@\ooalign{\unhbox\z@\crcr\hidewidth\lower.3ex\hbox{\@commafont,}\hidewidth}%
\else\ooalign{\unhbox\z@\crcr\hidewidth\raise.5ex\hbox{\@commafont`}\hidewidth}%
\fi}}%
\endinput
%%
%% End of file `combelow.sty'.