2

I want to use the roboto font for my document. It works nice when I compile it on my development machines. On our continous integration machine (running Jenkins) there is an old distribution of LaTeX on which I do not have influence on. Now I want to decide when to use the roboto package based upon which machine I build it. Can I do this in LaTeX or do I have to use Bash? I was thinking about using hostname for this.

  • I really don't see the use in having a conditional for a font based on two very different versions of a tex distribution. – Johannes_B Apr 04 '16 at 12:27
  • Downloading of the font fails in the old version. – Michael S. Apr 04 '16 at 12:29
  • easiest and most readable way is to have \usepackage{localfonts} or some such then have localfonts.sty on your CI machines doing nothing or selecting a font they have, and localfonts.sty on your machine using whatever font you want – David Carlisle Apr 04 '16 at 12:39
  • 1
    @EthanBolker: Thanks, I use \IfFileExists{roboto.sty} { \usepackage[sfdefault,light,condensed]{roboto} } now. Works. – Michael S. Apr 04 '16 at 13:26
  • How about using the newer package (or fonts) in a local, personal directory? –  Apr 04 '16 at 13:34

0 Answers0