TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


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.

share|improve this question
Is \newcommand{\myword}{MyWorD} too impractical? You would use it as \myword in the text. – Jonas Granholm Apr 12 '14 at 14:44
Thank you Jonas, for my case it is a good solution, since there are only two words like this (for now). – Zemunk Apr 12 '14 at 18:16
For a more frequent use I guess something like the acronyms example would be cleaner than many command definitions. Would be interesting to know but then again I just started working with it :) – Zemunk Apr 12 '14 at 18:24
One thing to remember is the fact that commands without arguments eat any following whitespace, so \myword next will generate MyWorDnext. To preserve the space you can use \myword\ next or \myword{} next, or check the xspace package. – Jonas Granholm Apr 12 '14 at 18:25
With an acronym definition, simply call \acused{myword} after defining it to make all future calls to \ac{myword} be given in the short format. – cslstr Apr 13 '14 at 0:44

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




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.

share|improve this answer
You don't need to be a top user of any kind to join in :) Also we have only a handful of them, they drink and trash the chat room. We are scared.... please send help. – percusse Apr 12 '14 at 18:34
Thank you, Matt! I updated my question. – Zemunk Apr 12 '14 at 19:14
@percusse I should flag your comment as “rude or offensive”. ;-) – egreg Apr 12 '14 at 20:14
The answer is good; I took the liberty of adding the usual caution about spaces after control sequences. Don't be afraid to answer! Of course, you being based in Bologna is a big defect… – egreg Apr 12 '14 at 20:15
Package xspace can fix the space after macro issue. – cslstr Apr 13 '14 at 0:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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