[Tex/LaTex] How to make lowercase of a uppercase table caption

captionstables

I am using the below code to make uppercase of a table caption. However, I want make the unit (such as mm) as lowercase. How could I change it

\documentclass[a4paper, 11pt]{article}

\usepackage{textcase}
\usepackage[tablename=TABLE]{caption}
\DeclareCaptionTextFormat{up}{\MakeTextUppercase{#1}}
\captionsetup[table]{
    labelsep=period,
    justification=centering,
    textformat=up,
}

\begin{document}

\begin{table}
  \caption{This is table with unit mm}
\end{table}

\end{document}

Best Answer

Why don't you use \MakeTextLowercase with the units?

\documentclass[a4paper, 11pt]{article}

\usepackage{textcase}
\usepackage[tablename=TABLE]{caption}
\DeclareCaptionTextFormat{up}{\MakeTextUppercase{#1}}
\captionsetup[table]{
    labelsep=period,
    justification=centering,
    textformat=up,
}

\begin{document}

\begin{table}
  \caption{This is table with unit \MakeTextLowercase{mm}}
\end{table}

\end{document}

enter image description here