lib/texstylist/unicode_babel.rb
def latex_inclusions(string)
    locales = babel_locales(string) || []
    locales.push("english")
    maybe_fontenc = if locales.include?("russian") ||  locales.include?("polish")
      "\\usepackage[T2A]{fontenc}\n"
    else ''
    end
    maybe_fontenc + "\\usepackage[#{locales.join(",")}]{babel}\n"
  end
# Only class methods, this is a general utility library
Only class methods, this is a general utility library
Only class methods this is a general utility library
def latex_inclusions(string)
    locales = babel_locales(string) || []
    locales.push("english")
    maybe_fontenc = if locales.include?("russian") ||  locales.include?("polish")
      "\\usepackage[T2A]{fontenc}\n"
    else ''
    end
    maybe_fontenc + "\\usepackage[#{locales.join(",")}]{babel}\n"
  end
def latex_inclusions ( string ) locales = babel_locales ( string ) || [ ] locales . push ( "english" ) maybe_fontenc = if locales . include? ( "russian" ) || locales . include? ( "polish" ) "\\usepackage[T2A]{fontenc}\n" else '' end maybe_fontenc + "\\usepackage[#{locales.join(",")}]{babel}\n" end
Only class methods, this is a general utility library
Only class methods this is a general utility library
string