CTAN Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/multilang

README.md

The mul­ti­lang Pack­age

Copy­right (C) 2016-2018 Richard Grewe

Re­leased un­der the Project Public Li­cense ver­sion 1.2 or later

Ab­stract

Main­tain­ing a doc­u­ment with trans­la­tions for mul­ti­ple lan­guages can be cum­ber­some and er­ror-prone. The multilang pack­age pro­vides a set of macros for defin­ing macros and en­vi­ron­ments as wrap­pers around ex­ist­ing macros and en­vi­ron­ments. Th­ese wrap­pers al­low one to clearly spec­ify mul­ti­ple trans­la­tions for the ar­gu­ments to the wrapped macros and en­vi­ron­ments while only the trans­la­tion of the doc­u­ment's lan­guage is ac­tu­ally shown. Choos­ing a trans­la­tion then is as sim­ple as choos­ing the doc­u­ment's lan­guage via babel or polyglossia.

Avail­abil­ity

The multilang pack­age is on CTAN, where you can also find the doc­u­men­ta­tion, as well as on github.

Man­ual In­stal­la­tion

The multilang pack­age comes with (at least) the fol­low­ing files

  • mul­ti­lang.ins
  • mul­ti­lang.dtx
  • README.md

and pos­si­bly also with

  • Make­file
  • mul­ti­lang.pdf (gen­er­ated from mul­ti­lang.dtx)
  • mul­ti­lang.sty (gen­er­ated from mul­ti­lang.dtx)

To in­stall the multilang pack­age, you ad­di­tion­ally need

  • doc­strip.tex

To build the pack­age (multilang.sty), run one of the fol­low­ing

    latex multilang.ins
    make package (needs Makefile)

Put the re­sult­ing multilang.sty some­where where can find it. Read the doc­u­men­ta­tion of your sys­tem to find out where this might be.

Build­ing Doc­u­men­ta­tion

To build the doc­u­men­ta­tion of the multilang pack­age, you ad­di­tion­ally need the fol­low­ing classes and pack­ages (in­clud­ing their de­pen­den­cies)

  • ltx­doc
  • ba­bel
  • clev­eref
  • csquotes
  • date­time2
  • en­u­mitem
  • en­v­i­ron
  • etool­box
  • hyp­doc
  • idxlay­out
  • pbox
  • pgfkeys
  • pg­fopts
  • sec­tion­box
  • show­expl
  • trans­la­tions
  • xcolor
  • xs­pace

as well as

  • pdfla­tex

To build the doc­u­men­ta­tion (multilang.pdf), ei­ther run

    make docs

or the fol­low­ing se­quence of com­mands

    pdflatex multilang.dtx
    makeindex -s gind.ist -o multilang.ind multilang.idx
    makeindex -s gglo.ist -o multilang.gls multilang.glo
    pdflatex multilang.dtx
    pdflatex multilang.dtx

Happy 'ing

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

mul­ti­lang – A pack­age for main­tain­ing mul­ti­ple trans­la­tions of a doc­u­ment

Main­tain­ing a doc­u­ment with trans­la­tions for mul­ti­ple lan­guages can be cum­ber­some and er­ror-prone. This pack­age pro­vides a set of macros for defin­ing macros and en­vi­ron­ments as wrap­pers around ex­ist­ing macros and en­vi­ron­ments. Th­ese wrap­pers al­low one to clearly spec­ify mul­ti­ple trans­la­tions for the ar­gu­ments to the wrapped macros and en­vi­ron­ments while only the trans­la­tion of the doc­u­ment’s lan­guage is ac­tu­ally shown. Choos­ing a trans­la­tion then is as sim­ple as choos­ing the doc­u­ment’s lan­guage via ba­bel or poly­glos­sia.

Pack­agemul­ti­lang
Bug trackerhttps://github.com/Ri-Ga/mul­ti­lang/is­sues
Re­pos­i­toryhttps://github.com/Ri-Ga/mul­ti­lang
Ver­sion0.9b
Li­censesThe Project Public Li­cense 1.2
Copy­right2016–2018 Richard Grewe
Main­tainerRichard Grewe
Con­tained inTeX Live as mul­ti­lang
MiKTeX as mul­ti­lang
TopicsMulti-lin­gual
...
Guest Book Sitemap Contact Contact Author