1 % This is a testfile for PR 2058
3 % The definitions for the croatian letters \dj and \DJ for
4 % the OT1 as provided by the file babel.def v3.5e, are no
5 % good for fonts other then OT1/cmr/m/n (in particular not
6 % for italic and slanted fonts)
9 \documentclass[12pt]{article}
12 \FORMAT{LaTeX2e<1995/12/01>}
14 \PACKAGE[croatian]{babel}
17 \usepackage[croatian]{babel}
19 %\DeclareTextCommand{\xDJ}{OT1}{%
20 % \leavevmode\setbox0\hbox{h}\dimen@\ht0\advance\dimen@-1ex%
22 % \kern-0.2\fontdimen7\font % correction for typewriter font
23 %% \kern0.3\fontdimen3\font % additional correction for upright shapes
24 % \kern-3\fontdimen1\font % yet another correction for slanted shapes
25 % \raise-0.9\dimen@\hbox{\char'26}}D}
27 %\DeclareTextCommand{\xdj}{OT1}{%
28 % \leavevmode\setbox0\hbox{h}\dimen@\ht0\advance\dimen@-1ex%
30 % \kern0.1\fontdimen7\font % correction for typewriter font
31 % \kern0.7\fontdimen3\font % additional correction for upright shapes
32 % \kern-1\fontdimen1\font % yet another correction for slanted shapes
33 % \raise-0.2\dimen@\hbox{\char'26}}d}
42 \textrm{d\dj d} \textbf{\textrm{d\dj d}}
43 \textrm{D\DJ D} \textbf{\textrm{D\DJ D}} \quad roman\\
45 \textit{d\dj d} \textbf{\textit{d\dj d}}
46 \textit{D\DJ D} \textbf{\textit{D\DJ D}} \quad italic\\
48 \textsl{d\dj d} \textbf{\textsl{d\dj d}}
49 \textsl{D\DJ D} \textbf{\textsl{D\DJ D}} \quad slanted\\
51 \texttt{d\dj d} \qquad\quad \texttt{D\DJ D} \qquad\qquad typewriter\\
53 \textsf{d\dj d} \textbf{\textsf{d\dj d}}
54 \textsf{D\DJ D} \textbf{\textsf{D\DJ D}} \quad sanserif\\
58 \setbox0\vbox{\@parboxrestore\testtext}
66 % \setbox0\hbox{d}\dimen@=\ht0
69 % \dimen@ii\expandafter\rem@pt\the\fontdimen\@ne\font\dimen@
70 % \advance\dimen@ii.5ex
71 % \leavevmode\rlap{\raise\dimen@\hbox{\kern\dimen@ii\vbox{\crrtic@}}}}
73 % \setbox0\hbox{D}\dimen@=.55\ht0
74 % \dimen@ii\expandafter\rem@pt\the\fontdimen\@ne\font\dimen@
75 % \leavevmode\rlap{\raise\dimen@\hbox{\kern\dimen@ii\vbox{\crttic@}}}}
79 %\let\dj\xdj\let\DJ\xDJ