I have some troubles by comparing strings in my beamer
theme.
I would like to compare the "techno" argument with a string (iOS, Android, Java,...):
if techno =="iOS" logo_path = "some_image" else if techno == "android" logo_path = "some_other_image"
and so on,
I take an argument from the main .tex
files and I would like to compare it do define an image to include :
\def\beamer@ALE@iOSLogo{ios.png}
\def\beamer@ALE@AndroidLogo{android_logo.jpeg}
\DeclareOptionBeamer{techno}{\def\beamer@ALE@Techno{#1}}
\ProcessOptionsBeamer
\IfStrEq{\def\beamer@ALE@Techno}{iOS}{{\def\beamer@ALE@TechnoLogo{\beamer@ALE@DiOSLogo}}{{\def\beamer@ALE@TechnoLogo{\beamer@ALE@DefaultLogo}}
Then I include a graphics :
\includegraphics[width=1cm]{\beamer@ALE@TechnoLogo}
When I compile it tolds me : image `ios' (back quote + value + quote) is not found.
I have to declare a macro to solve the problem :
\def\beamer@ALE@iOS{iOS}
Do someone have some explanations?
\documentclass{...}
and ending with\end{document}
.\def
inside\IfStrEq{\def\beamer@ALE@Techno}{\def\beamer@ALE@iOSLogo}...
? If you want to get the value of\beamer@ALE@Techno
it should not be there...@
in macros name in the normal text, e.g. see tex.stackexchange.com/questions/6240/…. Due to a missing MWE it is more difficult to say, but it might be the problem...