Text Formatting\Lowercase inside algorithm

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Rodo
Posts: 7
Joined: Thu Aug 12, 2010 1:20 pm

\Lowercase inside algorithm

Post by Rodo »

Hi,

I am writing an algorithm and I would like to name the function with some lowercase letters. I tried the \lowercase command as follows but it did't work

Code: Select all

\begin{algorithm}\caption{my algorithm}\label{myAlgorithm}
 \begin{algorithmic}[1]
  \Function{This\lowercase{and}That}
    \If{a}
	\State $b \gets 1$
    \EndIf
  \EndFunction
 \end{algorithmic}
\end{algorithm}
Any ideas?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply