I followed the instructions for the genealogytree package to create a Hungarian language library. I tested it but I now want to use the library. What do I need to do? I have TeXLive on a Fedora Liux system. I have copied gtrlang.hungarian.code.tex to /usr/share/texlive/texmf-dist/tex/latex/genealogytree and ran texhash but I still get Package genealogytree Error: The library 'lang.hungarian' is unknown..
Asked
Active
Viewed 126 times
2
js bibra
- 21,280
Máté Wierdl
- 1,444
genealogytreecannot find it in the current (working) directory, and this is why I tried to put it in theTeXLivedist directory. I rantexhashand I do see the file in the appropriatels-Rfile, but the error persists. Unfortunately, the docs ofgenealogytreedon't give indication what to do. – Máté Wierdl Nov 29 '19 at 21:36\IfFileExists{gtrlib.\pgfkeyscurrentname.code.tex}%, so there might be some confusion betweengtrlibandgtrlangbut just renaming the file accordingly does not fix the issue. – Nov 29 '19 at 22:15/usr/share/texliveregardless. That's for DNF to manage. Instead, use the value ofTEXMFLOCAL(needstexhash) orTEXMFHOME(no need fortexhash). – cfr Nov 29 '19 at 22:22\makeatletter\gtr@add@library{lang.hungarian}{gtrlang.hungarian.code.tex}\makeatotherafter loading the package and before setting the language, in the preamble? – cfr Nov 29 '19 at 22:29cp /usr/local/texlive/2019/texmf-dist/tex/latex/genealogytree/gtrlang.german.code.tex gtrlang.bavarian.code.tex(of course in my local directory) and tried to load bavarian. Didn't work.\makeatletter \input{gtrlang.bavarian.code.tex} \makeatotherdoes work, so I think it could be a bug. – Nov 29 '19 at 22:35gtrlib.lang.hungarian.code.tex? – Nov 29 '19 at 22:41genealogytree-languages.pdffor testing a new language withbavariancreated as you described (I think) and the test document provided compiled fine (and includes output forbavarian). However, I'm not sure that custom languages can be used out-of-the-box in the same way as those provided by the package. – cfr Nov 30 '19 at 02:36.texfile:cp /usr/local/texlive/2019/texmf-dist/tex/latex/genealogytree/gtrlang.german.code.tex gtrlib.lang.bavarian.code.tex. 2. Ingtrlib.lang.bavarian.code.texreplacelanguage@/german/.codebylanguage@/bavarian/.code. 3. put\gtrset{language=bavarian}in the preamble. Then it does translate e.g. dates to German/Bavarian. – Nov 30 '19 at 03:59germans, but I didn't usegtrlib. However, I don't understand why yours worked. Maybe it is a bug, then. – cfr Dec 01 '19 at 00:55gtrlang.bavarian.code.texand it works? – Dec 01 '19 at 01:01