4

For some reason I need one slanted sans serif character. Otherwise in my documents I use Fourier, Helvet and Luximono fonts. How to determine it?

\documentclass{memoir}
    \usepackage{fouriernc}
    \usepackage[scaled=0.83]{helvet}
    \usepackage[scaled=0.82]{luximono}
        \usepackage{marvosym,pifont}

    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}

    \usepackage{mathtools,xspace} 

\newcommand{\T}{\ensuremath{\mathsf{T}}\xspace}

    \begin{document}
I like \T to be slanted and sans serif character. I use it in text as well in equations: 
    \[\T = a + b \quad\mathrm{and}\quad \int_\T = \cdots    \]
How to achieve this with considering used fonts?
    \end{document}

![enter image description here][1]
2
  • It's “sans serif”. :-) \newcommand{\slT}{\text{\normalfont\sffamily\bfseries\slshape T}}
    – egreg
    Jul 5 '15 at 15:43
  • of course, but it seems that I need one sheriff who will find me this sans serif T :-)
    – Zarko
    Jul 5 '15 at 15:48
4

You can use \text:

\documentclass{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{fouriernc}
\usepackage[scaled=0.83]{helvet}
\usepackage[scaled=0.82]{luximono}
\usepackage{marvosym,pifont}


\usepackage{mathtools} 

\newcommand{\T}{\text{\sffamily\bfseries\slshape T\/}}

\begin{document}

I like $\T$ to be a slanted and sans serif character. I use it in text as well in equations: 
\[
\T = a + b \quad\text{and}\quad \int_\T = \cdots
\]
How to achieve this with considering used fonts?

\end{document}

enter image description here

6
  • As usual I discourage using \ensuremath and \xspace for this. It's a mathematical symbol, so it should always be used in math.
    – egreg
    Jul 5 '15 at 15:48
  • thank you for comment about ensuremath and xspace. Regarding T: it is slightly smaller then roman T. Is this feature of used sans serif fonts that uppercase characters are less tall as roman at same heights as small cap characters?
    – Zarko
    Jul 5 '15 at 16:04
  • @Zarko Do \usepackage[scaled=0.92]{helvet}: you were telling LaTeX it should be smaller. ;-)
    – egreg
    Jul 5 '15 at 16:06
  • yes I do (a long time ago, and I do not remember for what reasons. Now I try to remove helvet fonts and result is in this MWE better, but in real document cause me an error. About it I need deeper look in my document preamble ...
    – Zarko
    Jul 5 '15 at 16:19
  • I found source of error: it is ntheorem package. If I use ensuremath, than errors disappear. So temporary I return to it's use.
    – Zarko
    Jul 5 '15 at 16:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.