# Slant character manually in TeX coding

How to slant some character in the text of roman font (I don't want to use italics coding)?

• Welcome to TeX.SX! Using \textsl{slanted} should do. – egreg Jun 24 '15 at 7:24
• I need this to work in TeX not in LaTex. for example ${\bf n}$ The output required is slanted "n" in bold roman – Mydeen Jun 24 '15 at 7:33
• Then {\sl slanted\/} – egreg Jun 24 '15 at 7:36
• could you please guide what is wrong in my code ${\sl \tf="OTb65e897d_B"n}$ ${\tf="OTb65e897d_B"{\sl n}}$ – Mydeen Jun 24 '15 at 7:39
• What should \tf do? And recall that font declarations are not cumulative, so \sl\bf is equivalent to \bf. See my edited answer. – egreg Jun 24 '15 at 7:46

# Slant font of plain TeX

The plain TeX format defines \tensl to hold the slanted (not italics) variant of the default CM roman font, from plain.tex:

\font\tensl=cmsl10 % slanted roman


It can be used via \tensl or the higher level command \sl:

Default font vs.~{\sl slanted font.}
\bye


For more details, see the answer of egreg.

# Slanting with TikZ

TikZ can be used with plain TeX, it allows arbitrary slant angles:

\input tikz

\def\slant#1#2{%
\tikz[baseline=(X.base), xslant=tan(#1)]
\node[inner sep=0pt, xslant=tan(#1)](X){#2};%
}

Normal, \slant{9.46}{slanted,} \slant{45}{larger slanting,}
\slant{-15}{slanted to the left.}

\bye


• Great suggestion, Herbert... – MadyYuvi Apr 1 at 12:09

The Plain TeX format provides \sl, so

This is {\sl slanted\/} type


will do.

If you need “boldface slanted”, you have to define the font:

\font\tenslbf=cmbxsl10
\def\slbf{\tenslbf}


(the definition is just to possibly support math mode, if needed).

Full example:

\font\tenslbf=cmbxsl10
\def\slbf{\tenslbf}

This is {\sl slanted\/} type.

This is {\slbf boldface slanted\/} type.

\bye


Here's the basic support for math:

\font\tenslbf=cmbxsl10
\newfam\slbffam
\textfont\slbffam=\tenslbf
\def\slbf{\tenslbf\fam\slbffam}

This is {\sl slanted\/} type.

This is {\slbf boldface slanted\/} type.

${\sl n}\neq{\slbf n}$

\bye


• Thanks bro. Actually I am using 3B2 softwareIn this it has option to def. as I coded. \def \bf {\tf="XXX"} means assign the font for \bf code. It has no option for create external cls file. The above coding is not supported in 3B2. Thanks for your swift reply and answers. – Mydeen Jun 24 '15 at 8:25
• @Mydeen That I know of, 3B2 no longer uses TeX at all so that is perhaps not a surprise! – Joseph Wright Jun 24 '15 at 8:26
• Is that any other way to get the output in 3B2. – Mydeen Jun 24 '15 at 8:29
• @Mydeen 3B2 is commercial software and presumably has appropriate support. If there is a TeX back end in the version you have then it should be accessible somewhere. If it doesn't we can't really help. – Joseph Wright Jun 24 '15 at 10:58