Although this is not strictly mathematical notation, I would like to denote an object with a calligraphy capital T and subscript non-italic P. I have this:


That works fine, \timeP gives me TP. Now I need a variant where the P is surrounded by parentheses. But this:


just produces the same result as above. The desired result is T(P).

Any ideas? A special escape character? My document uses package amsmath.


Indeed the commentators are right---the parentheses should be there. It seems the problem is caused by the combination of these imports:


% --- Font choice
%     nightmare! leave alone for your own sanity
%     first choice roman is mathptmx - nice!

The second one mathptmx was in some document later imported through \input of the thesis template I was using, whereas I added MnSymbol directly to the cls file. Now when I reverse their order:


...the parentheses come back. I think I got the meaning of the comment nightmare!.

closed as too localized by lockstep, egreg, percusse, Marco Daniel, Stefan Kottwitz Aug 20 '12 at 10:44

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Your second definition of \timePshould create the desired result. Could you provide a complete (minimal) example that shows the problem? – Martin May 19 '12 at 20:19
  • @Martin. We'll very simple: We call this time virtual or prospective performance time, denoted \timeVirt -- with the above definition, the parentheses are just not printed, so there is no visible difference between \timeP and \timePVirt – Emit Taste May 19 '12 at 20:27
  • Actually, I get the parenthesis when adding your definition to a minimalistic document. Thus, it would be helpful if you could provide a complete document, not just a part of it. – Martin May 19 '12 at 20:32
  • Sorry, that's a huge thesis template from my University :-/ I have a workaround though (posted as answer below) – Emit Taste May 19 '12 at 20:35
  • Found the culprit---see edit. – Emit Taste May 21 '12 at 19:29

The culprit was


when changing to


it's fine.


The trick from this question's answer does it: escape with \textrm:

  • \newcommand{\timePVirt}{$\mathcal{T}_{(\mathsf{P})} will surely work. There's no reason why it shouldn't. – egreg May 19 '12 at 20:38
  • Sorry, it doesn't here. I'm having \documentclass[11pt, a4paper, twoside]{uopthesis} with a 400 lines template file, including some two dozen packages (geometry, titlesec, amsmath, setspace, graphicx, fancyhdr, biblatex, makeidx, nomencl, caption, subfig, paralist, fontenc, inputenc, color, rotating, lettrine, hyperref, hypercap, MnSymbol, babel) – Emit Taste May 19 '12 at 20:45

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