this will be my first question here so sorry for asking such a noob question. How do you render the image(python text inside a rounded corner textbox) below using pure LaTeX?
2 Answers
Another solution using the TikZ package.
\documentclass{article}
\usepackage{tikz}
\newcommand\HappyNewYear[1]{\tikz[baseline=(x.base)]{
\node[draw,rounded corners] (x) {#1};
}}
\begin{document}
\HappyNewYear{Python} is a programming language, but \HappyNewYear{snake} isn't.
\end{document}
If you don't need colour, a box from the simple fancybox package will do:
\documentclass{article}
\usepackage{fancybox}
\begin{document}
\ovalbox{\quad\sffamily Python\quad}
\bigskip
\Ovalbox{\quad\sffamily Python\quad}
\end{document}
For more sophisticated needs, you have the mdframed or tcolorbox package.



menukeyspackage, try\documentclass{article} \usepackage{menukeys} \begin{document} \keys{Python} \end{document}. But I agree with @Fractal that you might be better off if you just used TikZ.