Skip to content

Commit

Permalink
Removed the direct command for 500px (fixes #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
xdanaux committed May 22, 2016
1 parent 5e9ef18 commit 1a6ce6e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
20 changes: 10 additions & 10 deletions generate_tex_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,18 +471,18 @@

# tex command replacements, as tex macro names cannot include numerals (see the "fix for FontAwesome icon names containing numerals" section in fontawesome.sty)
tex_macro_names_replace = {
"Hourglass1" : "Hourglass[1]",
"Hourglass2" : "Hourglass[2]",
"Hourglass3" : "Hourglass[3]",
"Battery0" : "Battery[0]",
"Battery1" : "Battery[1]",
"Battery2" : "Battery[2]",
"Battery3" : "Battery[3]",
"Battery4" : "Battery[4]",
"faHourglass1" : "faHourglass[1]",
"faHourglass2" : "faHourglass[2]",
"faHourglass3" : "faHourglass[3]",
"faBattery0" : "faBattery[0]",
"faBattery1" : "faBattery[1]",
"faBattery2" : "faBattery[2]",
"faBattery3" : "faBattery[3]",
"faBattery4" : "faBattery[4]",
"fa500Px" : "faicon\{500px\}",
};



# command line arguments handling
# ------------------------------------------------------------------------------
parser = argparse.ArgumentParser(description='Generate TeX bindings for the FontAwesome font by Dave Gandy.');
Expand Down Expand Up @@ -719,7 +719,7 @@ def recurse_dictionary (dictionary, key):
if line == "% <showcaseicon commands go here>\n":
for glyph, tag in all_glyphs:
glyph_macro_name = glyph.replace('-',' ').title().replace(' ','');
doc.write(" \\showcaseicon{{{}}}{{fa{}}}{{{}}}\n".format(glyph, tex_macro_names_replace.get(glyph_macro_name, glyph_macro_name), tag));
doc.write(" \\showcaseicon{{{}}}{{{}}}{{{}}}\n".format(glyph, tex_macro_names_replace.get('fa'+glyph_macro_name, 'fa'+glyph_macro_name), tag));
else:
doc.write(line);
template.close();
Expand Down
14 changes: 9 additions & 5 deletions templates/fontawesome.tex.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

\documentclass{ltxdoc}
%\GetFileInfo{\jobname.sty}
\def\fileversion{4.6.3.1}
\def\filedate{May 15, 2016}
\def\fileversion{4.6.3.2}
\def\filedate{May 22, 2016}
\usepackage{lmodern}
\usepackage[numbered]{hypdoc}
\usepackage{hologo}
Expand Down Expand Up @@ -49,6 +49,9 @@ This package works both with \hologo{Xe}\hologo{(La)TeX} and Lua\hologo{(La)TeX}
%\let\PrintDescribeEnv\@gobble
\let\PrintMacroName\@gobble
%\let\PrintEnvName\@gobble
\begin{macro}{\fa500Px}
\changes{v4.6.3.2}{2016/05/22}{Removed direct command.}
\end{macro}
\begin{macro}{\faHourglass}
\changes{v4.6.3.1}{2016/05/15}{Fixed definition.}
\end{macro}
Expand Down Expand Up @@ -116,8 +119,9 @@ The \textsf{\jobname} package requires the \textsf{fontspec} package when using

\section{Usage}
\DescribeMacro{\faicon}
Once the \textsf{\jobname} package loaded, icons can be accessed through the general \cs{faicon}, which takes as mandatory argument the \meta{name} of the desired icon, or through a direct command specific to each icon. The full list of icon designs, names and direct commands are showcased next.
Once the \textsf{\jobname} package loaded, icons can be accessed through the general \cs{faicon}, which takes as mandatory argument the \meta{name} of the desired icon, or through a direct command specific to each icon. The full list of icon designs, names and direct commands are showcased in section \ref{section:icons}.

\section{List of icons\label{section:icons}}
\newenvironment{showcase}%
{%
% \begin{longtable}{ccp{3cm}p{3.5cm}p{1cm}}% debug: shows icons with both generic and specific commands
Expand All @@ -144,9 +148,9 @@ Once the \textsf{\jobname} package loaded, icons can be accessed through the gen
\ifthenelse{\equal{#1}{alias}}{%
\textcolor{black!50}{(alias)}}{}%
}}

\section{List of icons}
%\subsection{Web application icons\label{section:web_application}}
%\subsection{Transportation icons\label{section:transportation}}
%\subsection{...}
\begin{showcase}
% <showcaseicon commands go here>
\end{showcase}
Expand Down

0 comments on commit 1a6ce6e

Please sign in to comment.