Encoding definition files

<#620#>#tex2html_accent_inline1772#<#620#> Some aspects of the contents of font definition files are still under development. Therefore, the current versions of the files |OT1enc.def| and |T1enc.def| are temporary versions and should not be used as models for producing further such files. For further information you should read the documentation in |ltoutenc.dtx|. The declarations in the encoding definition file are responsible for declaring the encoding and telling LATEX<#621#><#621#> how to produce characters in this encoding. The |;SPMlt;ENC;SPMgt;enc.def| files should contain only commands from this section. As with the font definition file commands, it is also possible (although normally not necessary) to use these declarations directly within a class or package file. <#622#>decl<#622#> || The |;SPMlt;ENC;SPMgt;enc.def| file should announce itself with a |command, described in #tex2html_accent_inline1773#. For example: <#626#>tex2html_preform<#626#>verbatim63# <#628#>decl<#628#> | | <#629#>encoding<#629#> <#630#>text-settings<#630#> <#631#>math-settings<#631#> Declares a new encoding scheme <#633#>encoding<#633#>. The <#634#>text-settings<#634#> are declarations which are executed every time || changes the encoding to be <#635#>encoding<#635#>. The <#636#>math-settings<#636#> are similar but are for math alphabets. They are executed whenever a math alphabet with this encoding is called. Spaces within the arguments are ignored to avoid surplus spaces in the document. If a real space is necessary use | |. Example: <#637#>tex2html_preform<#637#>verbatim64# Some author commands need to change their definition depending on which encoding is currently in use. For example, in the |OT1| encoding, the letter `Æ' is in slot |;SPMquot;1D|, whereas in the |T1| encoding it is in slot |;SPMquot;C6|. So the definition of |Æ| has to change depending on whether the current encoding is |OT1| or |T1|. The following commands allow this to happen. <#639#>decl<#639#> || <#640#>cmd<#640#> <#641#>encoding<#641#> <#642#>num<#642#> <#643#>default<#643#> <#644#>definition<#644#> This command is like | |, except that it defines a command which is specific to one encoding. For example, the definition of || in the |OT1| encoding is: <#646#>tex2html_preform<#646#>verbatim65#|| takes the same optional arguments as | |. The resulting command is robust, even if the code in <#648#>definition<#648#> is fragile. It does not produce an error if the command has already been defined but logs the redefinition in the transcript file. <#649#>decl<#649#> || <#650#>cmd<#650#> <#651#>encoding<#651#> <#652#>slot<#652#> This command defines a text symbol with slot <#654#>slot<#654#> in the encoding. For example, the definition of |ß| in the |OT1| encoding is: <#655#>tex2html_preform<#655#>verbatim66#It does not produce an error if the command has already been defined but logs the redefinition in the transcript file. <#657#>decl<#657#> || <#658#>cmd<#658#> <#659#>encoding<#659#> <#660#>slot<#660#> This command declares a text accent, with the accent taken from slot <#662#>slot<#662#> in the encoding. For example, the definition of ||̈ in the |OT1| encoding is: <#663#>tex2html_preform<#663#>verbatim67#It does not produce an error if the command has already been defined but logs the redefinition in the transcript file. <#665#>decl<#665#> || <#666#>cmd<#666#> <#667#>encoding<#667#> <#668#>letter<#668#> <#669#>slot<#669#> This command declares that the composite letter formed from applying <#671#>cmd<#671#> to <#672#>letter<#672#> is defined to be simply slot <#673#>slot<#673#> in the encoding. The <#674#>letter<#674#> should be a single letter (such as |a|) or a single command (such as |ı|). For example, the definition of |á| in the |T1| encoding could be declared like this: <#676#>tex2html_preform<#676#>verbatim68# The <#678#>cmd<#678#> should have been previously declared with ||, or as a one-argument ||.