Menu

#1219 Preview of equation not working with \begin{equation*}

None
fixed
nobody
None
1
2015-02-22
2015-02-04
Kendon Bell
No

Works fine with \begin{equation}

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2015-02-04

    works here.

    • Which version of TXS are you using?
    • Do you get an error message in the Messages tab at the bottom?
     
  • Kendon Bell

    Kendon Bell - 2015-02-04

    No messages at all at the bottom. I am using TeXstudio 2.8.8 (hg 4828+:0a999280f5cb+)
    Using Qt Version 5.3.1, compiled with Qt 5.3.1 R. My minimal example is:

    \documentclass[10pt,a4paper]{article}
    \usepackage[latin1]{inputenc}
    \usepackage{amsmath}
    \usepackage{amsfonts}
    \usepackage{amssymb}
    \usepackage{graphicx}
    \begin{document}
    % Nothing happens
    \begin{equation*}
    x^2
    \end{equation*}

    % Works
    \begin{equation}
        x^2
    \end{equation}
    

    \end{document}

     

    Last edit: Kendon Bell 2015-02-04
  • Tim Hoffmann

    Tim Hoffmann - 2015-02-04
    • Is the content of the equation* envrionment highlighted as math (green by default)?
    • How do you start the preview (shortcut or context menu)? Note, that only the text cursor position is relevant, even if you invoke it via the context menu.
    • Please check if it works for the following positions of the cursor (a) |\begin{equation*} (b) \be|gin{equation*} (c) \begin{equat|ion*} (d) within the formula itself, e.g x|^2
     
  • Kendon Bell

    Kendon Bell - 2015-02-05

    Yes, the content is highlighted green.

    I start the preview by hovering the cursor over the environment. I didn't know you could preview using the context menu - this DOES work and is a great new feature of TeXstudio I just discovered! This only

    None of those (hovering) cursor positions work for equation*. Using the context menu, I need to highlight to get it to work.

    I also should have noted that I am editing an .Rnw file!

     
  • Kendon Bell

    Kendon Bell - 2015-02-05

    Just checked and I also get the same behavior with just a .tex.

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2015-02-05

    works here too ...

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-02-05

    Alright, so we are talking about the tooltip preview which is triggered by hovering the mouse cursor over the formula?

    The tooltip preview has the following behavior (both for equation and equation*). The text cursor position does not matter for the tooltip preview, only mouse cursor position is relevant. A tooltip is displayed when hovering anywhere over \begin{...} or \end{...}. No tooltip is displayed when hovering over the formula itself.

    That's the state as it's expected to be right now. Can you confirm this or do you see something else?

     
  • Kendon Bell

    Kendon Bell - 2015-02-07

    Right, sorry we are talking about tooltip, which also displays the evaluated equation (i.e. after being processed by LaTeX).

    Tooltip works for equation with the mouse cursor hovering over begin or end, but not for equation*. Preview seems to be working fine for both.

    Thanks!

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-02-22

    Assuming has been fixed as a side effect of some other change, because it works in the most recent development snapshot.

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-02-22
    • status: open --> fixed
    • Group: -->
     

Log in to post a comment.