I was wondering if there is a conditional command that I can use in LaTeX (e.g., \ifthenelse) that would allow me to, in one case, use the word 'a' and in another use the word 'an' based on the whether or not the following word starts with a vowel.
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
||||
| show 6 more comments |
|
I agree with Caramdir that checking for a vowel is insufficient for determining which article to use. Nonetheless, if you really want to do this, this is how I will do this in ConTeXt.
I don't know which LaTeX package provides functionality similar to |
||||
|
|
|
To do this in plain TeX (works in LaTeX too) I would say something like:
This should work with any reasonably sane input, but I haven't te |
|||
|
|
ifthen,etoolbox, maybe others) which provide general conditional commands; TeX itself has many, but they are hard to understand. Search the questions on this site for more than one that ask about these. – Ryan Reich Dec 6 '10 at 17:50