Git Product home page Git Product logo

simple-icons-latex's People

Contributors

github-actions[bot] avatar ineshbose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

onurbulbul2

simple-icons-latex's Issues

XeLaTeX: There is no (U+0020) in font SimpleIcons Filtered

\documentclass{article}
\usepackage{simpleicons}
\begin{document}
\end{document}

compiled with XeLaTeX gives:

Missing character: There is no (U+0020) in font SimpleIcons Filtered!
Missing character: There is no (U+0020) in font SimpleIcons Filtered/OT!
Missing character: There is no (U+0020) in font SimpleIcons Filtered/OT:language=dflt;!
Missing character: There is no (U+0020) in font SimpleIcons Filtered/OT:language=dflt;!

Compiling with LuaLaTeX or pdfLaTeX does not give any of these errors.

legacy iftex packages

\RequirePackage{ifxetex,ifluatex}

produces the warnings

Package: ifxetex 2019/10/25 v0.7 ifxetex legacy package. Use iftex instead.
Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.

so you could replace by

\RequirePackage{iftex}

The package provides \iftutex if TU encoding supported (xetex and luatex) so you could delete

\newif\ifsimpleicons@otf\simpleicons@otffalse
\ifxetex
  \simpleicons@otftrue
\else
  \ifluatex
    \simpleicons@otftrue\fi\fi

and use \iftutex

1001tracklists

\documentclass{article}
\usepackage{simpleicons}
\begin{document}
\simpleicon{1001tracklists}
\end{document}

Compiling with XeLaTeX or LuaLaTeX: While the icon is printed, the message shows:

Missing character: There is no  (U+EA01) in font SimpleIcons Filtered/OT:language=dflt;!

Compiling with pdfLaTeX: The icon is not printed and the message shows:

Missing character: There is no ^^@ in font SimpleIcons--simpleiconsOne!

[pdfLatex] Missing character in font cmr10

I am using pandoc with the pdfTex TexLive renderer to compile from mixed markdown/LaTeX to pdf, and it looks like LaTeX is using the wrong font trying to display the icons. I have tried adding \pdfmapfile{+simpleicons.map} to the header as per the documentation, but that does not help.

My document is very simple, so I will paste it, as well as the terminal output below:

---
header-includes:
    - \usepackage{simpleicons}
    - \pdfmapfile{+simpleicons.map}
---

Testing: \simpleicon{html5}
Testing: \simpleicon{css3}

and I get the output:

[WARNING] Missing character: There is no Ê (U+00CA) in font cmr10!
[WARNING] Missing character: There is no ó (U+00F3) in font cmr10!

Compile from source

Can you provide instructions on how to compile from source?

I'm affected by #18 and my distribution (Arch Linux) supply old version of this package (8.x)

Icons is not shown on some systems [investigate]

Hello,

After I compiled my tex file to pdf the simpleicons used in the document disappeared. I compile the tex file inside the docker container and open the pdf on my host computer.

I should mention that it works correctly inside the container but not working inside the host machine (I think it can be related to the installed fonts inside the container but because they are not available in the host machine so the icons disappeared?).

This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex 2022.8.3)  10 AUG 2022 19:00

(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/simpleicons.sty
Package: simpleicons 2022/07/29 7.5.0 Simple Icons 7.5.0 Logos

(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/simpleiconsglyphs-pdf
tex.tex))

(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/usimpleiconssix.fd
File: usimpleiconssix.fd 2022/07/29 Font definitions for U/simpleiconssix.
)
LaTeX Font Info:    Trying to load font information for U+simpleiconsthree on i
nput line 132.

(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/usimpleiconsthree.fd
File: usimpleiconsthree.fd 2022/07/29 Font definitions for U/simpleiconsthree.
)
LaTeX Font Info:    Trying to load font information for U+simpleiconsseven on i
nput line 133.
(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/usimpleiconsseven.fd
File: usimpleiconsseven.fd 2022/07/29 Font definitions for U/simpleiconsseven.
)
LaTeX Font Info:    Trying to load font information for U+simpleiconsfour on in
put line 134.
(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/usimpleiconsfour.fd
File: usimpleiconsfour.fd 2022/07/29 Font definitions for U/simpleiconsfour.
)
LaTeX Font Info:    Trying to load font information for U+simpleiconstwo on inp
ut line 135.

(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/usimpleiconstwo.fd
File: usimpleiconstwo.fd 2022/07/29 Font definitions for U/simpleiconstwo.
)
LaTeX Font Info:    Trying to load font information for U+simpleiconsnine on in
put line 139.

(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/usimpleiconsnine.fd
File: usimpleiconsnine.fd 2022/07/29 Font definitions for U/simpleiconsnine.
)
LaTeX Font Info:    Trying to load font information for U+simpleiconsfive on in
put line 141.

(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/usimpleiconsfive.fd
File: usimpleiconsfive.fd 2022/07/29 Font definitions for U/simpleiconsfive.
)
LaTeX Font Info:    Trying to load font information for U+simpleiconseight on i
nput line 147.

(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/usimpleiconseight.fd
File: usimpleiconseight.fd 2022/07/29 Font definitions for U/simpleiconseight.
)
LaTeX Font Info:    Trying to load font information for U+simpleiconsone on inp
ut line 148.
(/usr/local/texlive/2022/texmf-dist/tex/latex/simpleicons/usimpleiconsone.fd
File: usimpleiconsone.fd 2022/07/29 Font definitions for U/simpleiconsone.
)

Thanks.

Icon Bug: Lerna

There seems to be issues with the Lerna icon causing documents to not compile.

CharString: more arguments on stack than required

Glyphs not in line

The character seems to be in the correct position, but the glyphs themselves are appearing below the line.

The simpleicons do not work with xelatex on Windows

The xelatex compiler does not find the SimpleIcons.otf file on Windows. The solution is that you should replace the code
\newfontfamily{\simpleiconsmap}{SimpleIcons}
with
\newfontfamily{\simpleiconsmap}{SimpleIcons.otf}
in the simpleicons.sty.

fd files should be lower case

with pdflatex on case sensitive file systems the package produces

LaTeX Font Warning: Font shape `U/simpleiconsOneZero/m/n' undefined
(Font)              using `U/cmr/m/n' instead on input line 4.


LaTeX Font Warning: Font shape `U/simpleiconsOne/m/n' undefined
(Font)              using `U/cmr/m/n' instead on input line 5.

and uses cmr10 so no icons.

latex produces the .fd filename by lowercasing the encoding and family so it looks for usimpleiconsone.fd but does not find it. Simply renaming the file works although also changing \ProvidesFile{usimpleiconsOne.fd} to match would be better

LaTeX compile error: file not found

Hi guys, I just start using this package and thank you for your works.

I have compile error and this is the compiler log:

This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex 2022.7.25)  2 AUG 2022 14:44

Package: simpleicons 2022/07/29 7.5.0 Simple Icons 7.5.0 Logos


! LaTeX Error: File `simpleiconsglyphs-pdftex.tex' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex)

C# (csharp) Not Displaying Correctly

I am trying to use \simpleicon{csharp} in Overleaf using pdfLaTeX, and while the icon loads, the shape is wrong. It is displaying as a circle when it should be a hexagon (as shown in the documentation and on simple icons). I have tried switching to XeLaTeX, and the issue persists. Any help is greatly appreciated!

Renaming \SI

I love this package, but it collides with the siunitx package, which defines the \SI command. I have hacked my copy, changing the \SI command to \SIc, and making the corresponding updates to simpleiconsglyphs-xeluatex.tex.

Automate updates

The pipeline is yet to be setup for automatically getting latest release of Simple Icons, and upload on CTAN. The version of the package could also ideally be the same as Simple Icons as it seems consistent between them.

legacy iftex packages

The simpleicons.sty still uses an "\if" which is way more complicated than necessary. Please consider this simplified code instead:

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{simpleicons}[2023/07/07 v9.4.0 Simple Icons Logos]
\RequirePackage{iftex}

\newcommand*{\simpleicon}[1]{{\csname simpleicon@#1\endcsname}}

\iftutex
  \usepackage{fontspec}
  \newfontfamily{\simpleiconsmap}{SimpleIcons.otf}
  \input{simpleiconsglyphs-xeluatex.tex}
\else
  \DeclareRobustCommand\simpleiconsmapone{\fontencoding{U}\fontfamily{simpleiconsone}\selectfont}
  \DeclareRobustCommand\simpleiconsmaptwo{\fontencoding{U}\fontfamily{simpleiconstwo}\selectfont}
  \DeclareRobustCommand\simpleiconsmapthree{\fontencoding{U}\fontfamily{simpleiconsthree}\selectfont}
  \DeclareRobustCommand\simpleiconsmapfour{\fontencoding{U}\fontfamily{simpleiconsfour}\selectfont}
  \DeclareRobustCommand\simpleiconsmapfive{\fontencoding{U}\fontfamily{simpleiconsfive}\selectfont}
  \DeclareRobustCommand\simpleiconsmapsix{\fontencoding{U}\fontfamily{simpleiconssix}\selectfont}
  \DeclareRobustCommand\simpleiconsmapseven{\fontencoding{U}\fontfamily{simpleiconsseven}\selectfont}
  \DeclareRobustCommand\simpleiconsmapeight{\fontencoding{U}\fontfamily{simpleiconseight}\selectfont}
  \DeclareRobustCommand\simpleiconsmapnine{\fontencoding{U}\fontfamily{simpleiconsnine}\selectfont}
  \DeclareRobustCommand\simpleiconsmaponezero{\fontencoding{U}\fontfamily{simpleiconsonezero}\selectfont}
  \input{simpleiconsglyphs-pdftex.tex}
\fi
\endinput

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.