[Tex/LaTex] Define word with mixed case letters (upper/lower)

formattingtypography

I am using some acronym-like words in my text that actually do not have a phrase but have a standard way of writing, like a "brand". (for ex. MyWorD)

Is there a library for this or a way to define mixed case words and use them in text?
Like \formattingcommand{myword} resulting in MyWorD.

Something similar to the \newacronym{myword}{MyWorD}{boohoo...} glossary entry definition would be really nice.

Edit:

Thanks to MattAllegro's answer I tried some things with the acronym package. My problem was that I wanted to print my nomenclature so didn't want to have empty definitions for these mixed-case words. The other thing was to somehow avoid the first time printing of definition (acronym) format.

The second problem can be avoided by the \acrshort{myword} command. And since I am lazy, I wrapped it into a shorter command with \newcommand{\glss}[1]{\acrshort{#1}}.

The first one I solved by splitting the glossary in two files. One for the words with definitions which is going to be printed, and one for the mixed-case words.

If there is a nicer, cleaner way to do it I would love to know about it.

Best Answer

I am not a top user but the first thing I thought was - just like Jonas suggests - something like:

\newcommand{\myword}{MyWorD} 

or:

\newcommand{\MWD}{MyWorD}

or the acronym package.

Beware that TeX will ignore spaces after \myword, so \myword{} would be the way for typing it in your document to avoid this problem.

Related Question