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
Comments
Sign SUM not being displayed as well as an integral sign |
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 |
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. |
It looks like this has been fixed in PDFBox 2.0.0 which is now released https://pdfbox.apache.org/index.html |
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. |
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. |
Looks like the old method for zooming had issues as well, still ongoing in order to generate a fix for the issue. |
Should be fixed by #140 |
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:
\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
In the generated PDF the integral sign is displayed.
The text was updated successfully, but these errors were encountered: