I am giving a presentation in the beamer class. I would like the grouped bibliographic references to be displayed as [1]-[3] instead of [1-3]. \documentclass{beamer} \usetheme{AnnArbor} \usecolortheme{beaver}  \usepackage[brazil]{babel}       \usepackage[T1]{fontenc}         \usepackage[utf8]{inputenc}      \usepackage[square, comma, sort&amp;compress]{natbib}  %\usepackage{cite} \begin{document}  \begin{frame}     References \cite{rodrigues2016unbalanced, rodrigues2016considerations, monteiro2018unbalanced}. \end{frame}   \begin{frame}[allowframebreaks]{References}     \tiny          \bibliographystyle{mmc-unsrt}     \bibliography{my_bibliography} \end{frame}  \end{document}  I tried to include the \renewcommand\citepunct{], [} and \renewcommand\citedash{]-[} commands in the preamble but it didn't work. They worked in the article class but in the beamer they don't work.
I have spent a whole day trying to solve the following problem. Please help if you know how to do this.  I am using natbib (\usepackage[sort&amp;compress,square,comma]{natbib}), and my current citation style looks like [1-4], [5, 8-9].  What is the easiest way to change the citation style to [1]-[4] and [5],[8]-[9]?
Find the area where dog can roam A dog is tied to circular pillar by a rope. Radius of this pillar is $1m$ and length of rope is $\pi m$. What is an area where dog can roam?   I tried to find the area of all semicircles and then to find its sum. It is easy to find an area at front side of the pillar. It is $\displaystyle\frac12\pi^2\pi=\frac{\pi^3}{2}$. Problem is how to find remaining area. I tried to write this area using compass and straightedge, but I couldn't. Then I wrote this in AutoCAD and it looks like this: Is it possible to find the exact value of this area? What are some scenarios where FTL information transfer would violate causality? I've always heard people saying, "Faster than light information transfer can't happen because it would violate causality!  Effects can precede their causes!"  However, I'm trying to think of a situation where this would happen.  I'm sure it has something to do with relativity or something like that.  I sort of understand that people going faster perceive time slower.  Can someone help illuminate this for me by showing a scenario where causality is clearly violated due to FTL information transfer? Multi colored strokes in Illustrator? I'm drawing maps in Illustrator. Our way of depicting divided highways is parallel lines with a fill. Here is an example:    The way I did this was a 1 point yellow stroke, command c, command f, send to back, explained stroke to 2 points  and make black.  These are a pain to make and edit. I'm wondering if there's a way to do this with a single stroke. Prove $\operatorname{rank}A^TA=\operatorname{rank}A$ for any $A\in M_{m \times n}$ How can I prove $\operatorname{rank}A^TA=\operatorname{rank}A$ for any $A\in M_{m \times n}$?   This is an exercise in my textbook associated with orthogonal projections and Gram-Schmidt process, but I am unsure how they are relevant. What does the "private" modifier do? Considering "private" is the default access modifier for class Members, why is the keyword even needed? fetching list of friends using facebook 2.0 How do I properly install a system app given its .apk? I removed a system app (com.android.mms) and I have the .apk needed to restore it, however it won't install through the standard channels (running the .apk gives me "application not installed"). What's the proper way to install a system app's .apk? Defining new unit (year, century) in siunitx I'm having a hard time figuring out the LaTeX commands to define new units of year and century in siunitx.  I'd like to write \SI{3}{\cm\per\year} and have it show: 3 cm yr-1, or \SI{42}{\micro\meter\per\century} become 4.2E-5 m/century How to grep a specific line _and_ the first line of a file? What is the difference of 3 object declarations of javascript Scala 2.10 + Json serialization and deserialization Level 10 vim adventures beers on the wall complete solution I saw this question  but it doesn't have a full solution. What is the full solution to the 99 bottles of beer on the wall for Vim adventures?  Context: for the sake of being a good SO member I will give more details but a full solution will answer my question. It seems from reading the other post that my register is incorrect for some reason. I can't get the &lt;NL&gt;. I think that's the issue since pasting won't work... What's a concise way to check that environment variables are set in a Unix shell script? Get string inside parentheses, removing parentheses, with regex A Light is shone out the side window of a spaceship ( moving close to light speed ), will the light still travel at the speed of light in the B axis? I'm doing some architectural cleanup that involves moving a bunch of classes into different projects and/or namespaces. Currently I'm moving the files by hand, building, and then manually adding using Foo statements as needed to resolve compilation errors. Anyone know of a smarter way of doing this? (We're a CodeRush and Refactor! shop, but I'd be interested to hear if Resharper has support for this) A commutative ring is a field iff the only ideals are $(0)$ and $(1)$ Let $R$ be a commutative ring with identity. Show that $R$ is a field if and only if the only ideals of $R$ are $R$ itself and the zero ideal $(0)$.  I can't figure out where to start other that I need to prove some biconditional statement. Any help? Why are my photos not crisp? Let $f \colon \mathbb{R} \rightarrow  \mathbb{R}$ be a smooth function such that $$f'(x) = f(1+x)$$ How can we find the general form of $f$? I thought of some differential equations, but not sure how to use them here. Thanks. Subcaption defaulting to capital letter labels? I seem to be having a unique problem. There are many questions asking about how to change subcaption to a label with capital letters but for me my program is defaulting to capital letters when I would prefer lowercase.  My preamble  \documentclass[12pt,reqno]{amsart} \setlength\parindent{0pt} %no auto indentation for new paragraphs \usepackage{geometry}  \geometry{a4paper}  \usepackage{natbib}  \usepackage[latin1]{inputenc} \usepackage{amsmath, amsthm, amssymb, calc, dsfont}    \usepackage{enumerate} \usepackage{subcaption, caption, graphicx} %figure packages \usepackage{authblk} %author affiliations \usepackage{setspace, lineno} %double spaced etc. options, line numbering  \usepackage{tikz} \usetikzlibrary{shapes,arrows,chains,automata,positioning}   My figure  \begin{figure}[h!]   \centering   \begin{subfigure}[]{0.48\textwidth}           \includegraphics{Figure1.pdf}           \caption{}           \label{FigPractice}    \end{subfigure}    \begin{subfigure}[]{0.48\textwidth}           \includegraphics{Figure2.pdf}           \caption{}           \label{PracticeAge}   \end{subfigure}   \caption{a caption} \end{figure}   I've also tried \renewcommand{\thesubfigure}{\alph{subfigure}}