I have two questions about a beamer slide I'm trying to make with an equation and corresponding text.
First, how do I left align the equation with the text? I'm using \hspace{} and adjusting it with trial and error. Is there a better approach?
Second, how do I place a box -- preferably red -- around a variable in the equation? For example, in the following equation, how would I place a box around the gamma?
PS: for solved topics, please click the solution post solved button, not the button in the first post (the question). The reason is, that the new feature sets a link from the checkmark to the solution. Could be good for longer threads with many posts.
This works incredibly well! May I please ask a follow up question?
Suppose I would like to do 2 overlays? The first has the box around gamma. The second has the box around theta. Also, I'd like for the first overlay to not have the line, "Linear time trends." That would change the spacing of where the equation is vertically and also where the "Fixed effects" line appears vertically. It would make it lower without the line "Linear time trends" Is is possible to set the first overlay such that the equation would appear in the same spot vertically in the two overlays?
Thank you so much for your help!
Stefan_K wrote:
latexhelp1 wrote:
latexhelp1 wrote:Second, how do I place a box -- preferably red -- around a variable in the equation?
Use boxed of amsmath. Here's a redefinition with color, you could place that in your preamble:
latexhelp1 wrote:Could I use this command, \boxed, to make a similar box in a table?
Sure, for math content. For text content, you should define a different macro, which could be done similarly, just remove the math code \m@th$\displaystyle...$ from the definition.
Thank you! And if I may please follow up on my earlier question:
Suppose I would like to do 2 overlays. The first overlay has the box around gamma. The second overlay has the box around theta. Also, I'd like for the first overlay to not have the line, "Linear time trends." That would change the spacing of where the equation appears vertically on the slide and also where the "Fixed effects" line appears vertically on the slide. It would make it lower without the line "Linear time trends" Is it possible to set the first overlay such that the equation would appear in the exact same spot vertically in the two overlays?
Stefan_K wrote:
latexhelp1 wrote:Could I use this command, \boxed, to make a similar box in a table?
Sure, for math content. For text content, you should define a different macro, which could be done similarly, just remove the math code \m@th$\displaystyle...$ from the definition.
I noticed the other question. It's just not good to mix topics and threads (who reads the last question about overlays, at the end of this answered equation alignmenr topic?). I just don't work much with overlays. Perhaps somebody else may answer. If not, you could post an update with some information, so the post is pushed up, becoming good visible again - after some time.
Any marking topic as solved helps in this regard, as potential answerers often filter out solved topic with the menu on the right, so we see unsolved topics better, such as the overlay topic.
Thank you for getting back to me! I don't quite understand what you mean, however. Could you please show me a quick example? Do you mean to do this with the each equation within the slide rather than in the preamble?
Stefan_K wrote:You could use \setlength{\mathindent}{0pt} with in a group (such as within curly braces) or within an environment, to limit the effect.
A different way would be using flalign or similar of amsmath, adding a & at the right for pushing to the left.