# Introducing special signs to cls file [duplicate]

Possible Duplicate:
How to type special/accented letters in LaTeX?

Can sameone provide some suggestion how to introduce special signs to cls file? I had tried to avoid this problem by trying to define new variable : \def\@abc and typing my test with \abc{text} but it didn't work.

-

## marked as duplicate by Alan Munn, Martin Schröder, Marco Daniel, cgnieder, percusseAug 22 '12 at 3:42

What exactly do you mean by "special signs"? Do you mean using reserved characters like @,#,\$ etc. in text? If so, most of them can be used by escaping them with \. –  Alan Munn Jul 2 '12 at 16:24
By special signs I mean diacritic signs. –  qry Jul 2 '12 at 16:25
Make sure your source document is encoded in UTF-8 and if using pdfLaTeX use the inputenc package with the [utf8] option, and a font encoding that supports the characters. Or compile using XeLaTeX or LuaLaTeX with no inputenc. In both cases you just enter the characters directly into your source. –  Alan Munn Jul 2 '12 at 16:28
@AlanMunn I don't have problem with compiling such signs in tex file. I have problem introducing such signs in class file. The problem arises when I want to compile tex file of such class. Text with diacritic sigh which is introduced in tex file source is fine but text which is introduced in cls file isn't. I hope that I presented my problem clearly enough - I'm don't have much practice working with LateX. –  qry Jul 2 '12 at 16:36
Ok. Now the question is clearer (you might want to add your last comment to the question itself.) One simple solution would be to use \RequirePackage[utf8]{inputenc} (unless XeLaTeX or LuaLaTeX is used) in your class file. This would make the class file dependent on a particular encoding, though. If you don't want to do that, then you can use macros for the diacritics. (See the Comprehensive LaTeX Symbols List for those.) (texdoc symbols should probably find it.) –  Alan Munn Jul 2 '12 at 16:55

So rather than use [[é]] use [[\'e]] This will then work whether the document using the class uses \usepackage[utf8]{inputenc} or \usepackage[latin1]{inputenc}