Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Math symbol-Integral sign is not being displayed in the pdf preview window #33

Closed
LloydBG opened this issue Jul 3, 2015 · 8 comments
Assignees
Labels
Milestone

Comments

@LloydBG
Copy link

LloydBG commented Jul 3, 2015

Description:
The PDF preview window doesn't display the integral sign. When the tex file generates a PDF, the integral sign is displayed.

Steps to Recreate:

  1. Open LaTex Studio
  2. Open Existing Document
  3. type \usepackage{amsmath} in the preamble section of the document
  4. At the body of the document type
    \begin{equation_}
    x = \int^0_5 y^2 +7
    \end{equation_}

Expected Result:
The pdf preview window will display the whole equation including the integral sign

Actual Result:
The pdf preview window did not display the integral sign to complete the equation

Screenshot:
Windows 7
image
In the generated PDF the integral sign is displayed.
image

@Labelpm
Copy link
Contributor

Labelpm commented Jul 9, 2015

Sign SUM not being displayed as well as an integral sign
Sum $\sum_{n=1}^{\infty} 2^{-n} = 1$ inside text

@GaboFDC
Copy link
Contributor

GaboFDC commented Aug 4, 2015

I was checking and it seems to be a bug in the PDPage.convertToImage so I reported this: https://issues.apache.org/jira/browse/PDFBOX-2915

@GaboFDC
Copy link
Contributor

GaboFDC commented Aug 4, 2015

Also, while debugging made this change:

--- a/OpenLaTeXStudio/EditorModule/src/latexstudio/editor/pdf/PDFPreviewRefresher.java
+++ b/OpenLaTeXStudio/EditorModule/src/latexstudio/editor/pdf/PDFPreviewRefresher.java
@@ -11,6 +11,7 @@ import java.util.logging.Logger;
 import javax.swing.JPanel;
 import javax.swing.JScrollPane;
 import javax.swing.JViewport;
+import latexstudio.editor.ApplicationLogger;
 import latexstudio.editor.EditorTopComponent;
 import latexstudio.editor.files.FileService;
 import latexstudio.editor.runtime.CommandLineBuilder;
@@ -27,7 +28,7 @@ public class PDFPreviewRefresher implements Runnable {
     private final EditorTopComponent etc;
     private final PDFDisplay pdfDisplay;

-    private static final Logger LOGGER = Logger.getLogger(PDFPreviewRefresher.class.getName());
+       private static final ApplicationLogger LOGGER = new ApplicationLogger("Open LaTeX Studio");

     public PDFPreviewRefresher(JScrollPane jScrollPane, EditorTopComponent etc, PDFDisplay pdfDisplay) {
         this.jScrollPane = jScrollPane;

So you use de app logger and not the global logger.

@sebbrudzinski
Copy link
Owner

It looks like this has been fixed in PDFBox 2.0.0 which is now released https://pdfbox.apache.org/index.html
We should consider migrating to new PDFBox.

@sebbrudzinski
Copy link
Owner

I've updated the pdfbox version we use to 2.0.0, however there are some issues. When scaling the image up, at some point the renderer throws OutOfMemoryError. If anyone is interested in trying to resolve that problem, the progress is on dev/new-pdfbox branch.

@KalKolberg
Copy link
Contributor

Looks like the out of memory error is tied to the scaling not working. The returned image expands in size until it's too large, not sure of the actual implementation.

@KalKolberg
Copy link
Contributor

Looks like the old method for zooming had issues as well, still ongoing in order to generate a fix for the issue.

@sebbrudzinski
Copy link
Owner

Should be fixed by #140

@sebbrudzinski sebbrudzinski added this to the 1.5 milestone Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants