Comprehensive TeX Archive Network

Direc­tory tex-archive/macros/generic/langcode

             README for the `langcode' package

             Adjust Language-Dependent Settings 
                     by Language Code

                 (C) Uwe Lueck 2012/09/20

`langcode.sty' in the first instance provides a command 


to adjust language-dependent settings, such as key words, 
typographical conventions, and language codes (ISO-639-1).
An author frequently writing documents in two or more languages 
can use the same commands independently of the language, 
provided they are gathered in a list macro to be used by the 
`dowith' package. If `\<cmd>' is in the list, it is set to work 
like `\<chars><cmd>', and a macro `\langcode' will expand to 
<chars> (the respective tokens), usable in URLs. 

The package is ``generic," based on `plainpkg'. The code has 
been used with `morehype' and `catchdq' (`catcodes'), but may 
be useful more generally.

REQUIRED PACKAGES: plainpkg, stackrel, dowith

RELATED PACKAGES:  babel, polyglossia; 
                   morehype, catchdq (catcodes)

KEYWORDs:          language support; German, macro programming
                   (programming structures), hypertext


The package file `langcode.sty' and the documentation files
`langcode.pdf' and `langcode.tex' can be redistributed and/or
modified under the terms of the LaTeX Project Public License;
either version 1.3c of the License, or any later version, see


We did our best to help you, but there is NO WARRANTY.

The `langcode' package is author-maintained in the sense of
this license.

The latest public version of the package is available at


A TDS version of the package is available as


Please report bugs, problems, and suggestions via



Name Notes


Name Size Date Notes
README 1919 2012-09-20 13:29
Sr­cFILEs.txt 636 2012-09-20 13:25
lang­code.pdf 345459 2012-09-20 13:31
lang­code.sty 5917 2012-09-20 13:25

Down­load the con­tents of this pack­age in one zip archive (312.4k).

lang­code – Sim­ple lan­guage-de­pen­dent set­tings based on lan­guage codes

The pack­age pro­vides a com­mand \use­lang­code{<code>} to ad­just lan­guage-de­pen­dent set­tings such as key words, ty­po­graph­i­cal con­ven­tions and lan­guage codes (ISO 639-1).

The pack­age pro­vides a means of se­lect­ing macros ac­cord­ing to the spec­i­fied code, for prepar­ing a doc­u­ment that is to be sep­a­rately type­set in dif­fer­ent laguages.

The pack­age is de­pen­dent on the plainpkg pack­age, and is al­ready in use in the more­hype and cat­codes pack­ages.

Pack­age De­tailslang­code
Li­censeThe LaTeX Project Public Li­cense 1.3
Main­tainerUwe Lück
TDS archivelangcode.tds.zip
Con­tained inTeX Live as lang­code
MiKTeX as lang­code
Topics sup­port for more than one (nat­u­ral) lan­guage
macros that are in­de­pen­dent of the (TeX) for­mat in use
Guest Book Sitemap Contact Contact Author