Conversion to $\TeX$ internally uses TraditionalForm
boxes. $C$ is already used there:
Cyclotomic[m, 1] // TraditionalForm
$ C_m(1) $
In definition of Cyclotomic
:
?? Cyclotomic
(* ...
Cyclotomic/:MakeBoxes[Cyclotomic[BoxForm`a$_,BoxForm`b$_],TraditionalForm]/;BoxForm`sufficientVersionQ[6.1]:=
TemplateBox[{MakeBoxes[BoxForm`a$,TraditionalForm],MakeBoxes[BoxForm`b$,TraditionalForm]},Cyclotomic]
... *)
we can see that conversion to TraditionalForm
boxes use a TemplateBox
with "Cyclotomic"
style.
Inspection of "Cyclotomic"
style:
CurrentValue[{StyleDefinitions, "Cyclotomic"}]
(* {TemplateBoxOptionsDisplayFunction ->
(RowBox[{SubscriptBox["C", #1], "(", #2, ")"}] &),
TemplateBoxOptionsTooltip -> Automatic} *)
reveals DisplayFunction
, that is used by TemplateBox
with this style, containing "C"
that you'd like to change.
You can create your own StyleSheet with modified DisplayFunction
:
Export[
FileNameJoin@{$UserBaseDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "MyCyclotomic.nb"},
Notebook[{
Cell[StyleData[StyleDefinitions -> "Default.nb"]],
Cell[StyleData["Cyclotomic"], TemplateBoxOptions -> {
DisplayFunction -> (RowBox[{SubscriptBox["Φ", #], "(", #2, ")"}] &),
Tooltip -> Automatic
}]
}, StyleDefinitions -> "PrivateStylesheetFormatting.nb"]
]
(* ".../.Mathematica/SystemFiles/FrontEnd/StyleSheets/MyCyclotomic.nb" *)
and set it as StyleSheet of current notebook:
SetOptions[EvaluationNotebook[], StyleDefinitions -> "MyCyclotomic.nb"]
Now any conversion to $\TeX$ of Cyclotomic
will give expected Φ
:
Cyclotomic[m, 1] // TeXForm
(* \Phi _m(1) *)
C_m
with\Phi_m
and that should do it? $\endgroup$