Here is the list of packages I load for my presentation:
\documentclass{beamer}
\usepackage[frenchb]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{stmaryrd}
\usepackage{amsthm}
\usepackage{color}
\usepackage{mathtools}
\usepackage{tikz}
\usepackage[boxed]{algorithm2e}
\usepackage{algorithmic}
\usepackage[parfill]{parskip}
\usepackage{stmaryrd}
\usepackage{caption}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{bbm}
\usepackage{bm}
\usepackage{empheq}
\usepackage{framed}
\usepackage{mathbbol}
\usepackage{float}
\usepackage{caption,subcaption}%
\usepackage{calc}% http://ctan.org/pkg/calc
\usepackage{hyperref}
\usepackage{multicol}
\usepackage{environ}
\usetikzlibrary{positioning,shapes,shadows,arrows,shapes.multipart}
There are 4 packages (as follows) that I use for my article, but if I add them to the list,
it gives me an error Command \algorithmic already defined. I guess some packages are not compatible with the one above:
\usepackage{algpseudocode}
\usepackage[all]{xy}
\usepackage{longtable}
\usepackage{listings,xcolor,lipsum}
Without loading the 4 packages, one problem is that a formula like abc_\textbf{index} which works in my article does not work anymore, so I need to change it to abc_{\textbf{index}}. And I have a lot of formulae having that...
So could anyone tell me which package is relevant to that? and how to add it to the list for my presentation?
Thank you very much!
algpseudocodedefines analgorithmicenvironment (and therefore not compatible). That's whatalgcompatibleis for. See thealgorithmicxpackage documentation. However, also as mentioned in the documentation, this is "used only in old documents." – Werner Aug 29 '11 at 22:29abc_\textbf{index}is still not accepted. – SoftTimur Aug 29 '11 at 22:31multicol:beamerprovides acolumnsenvironment;float,longtable: do you have any of these in your presentation? Regardingabc_\textbf{index}vs.abc_{\textbf{index}}: Using thearticledocumentclass rather thanbeamerin a minimal example works for both, but on the latter works inbeamer. Or does the loading of the mentioned 4 packages solve this problem inbeamer? – Werner Sep 01 '11 at 07:14