LyX ⇒ Math in Lyx View and PDF View
Math in Lyx View and PDF View
Hi,
i have a problem when converting formulas to PDF.
In LyX, the math looks really good, but when i view the document as a PDF, it looks really crappy. I have included a screenshot of the math in LyX and in the PDF. Can i do something about this?
thx for any help!
i have a problem when converting formulas to PDF.
In LyX, the math looks really good, but when i view the document as a PDF, it looks really crappy. I have included a screenshot of the math in LyX and in the PDF. Can i do something about this?
thx for any help!
- Attachments
-
- Viewed in LyX.
- pic2.png (16.17 KiB) Viewed 5418 times
-
- Viewed in PDF output.
- pic1.png (10.51 KiB) Viewed 5418 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

Math in Lyx View and PDF View
It really does look crappy.
First, are you using some decent PDF viewer? Like Adobe Reader, Foxit Reader, Sumatra PDF?
Second, I compiled with TeXLive and you can see the result. But MiKTeX should also have very good output.
I am almost certain it is from the PDF viewer not rendering the fonts correctly.
I did the first row with \bar, the second with \overline. There is a slight difference.
Nikolay
First, are you using some decent PDF viewer? Like Adobe Reader, Foxit Reader, Sumatra PDF?
Second, I compiled with TeXLive and you can see the result. But MiKTeX should also have very good output.
I am almost certain it is from the PDF viewer not rendering the fonts correctly.
I did the first row with \bar, the second with \overline. There is a slight difference.
Nikolay
Math in Lyx View and PDF View
I used the PDF XChange Viewer and the build-in thingy that comes with Linux Mint..
I tried Foxit now and it really does look better. But still, the minus from the "-1" looks like an extension to the "\bar".. Is there anything that can be done about this?
I added the code and a new picture, taken with foxit reader for reference..
PS: Thanks to the admin who took the time to clean up my messy post..
I tried Foxit now and it really does look better. But still, the minus from the "-1" looks like an extension to the "\bar".. Is there anything that can be done about this?
I added the code and a new picture, taken with foxit reader for reference..
Code: Select all
Code, edit and compile here:
\begin{eqnarray}\bar{s}_{ap}^{-1}\cdot\bar{a} & = & \bar{v}_{ap}\label{eq:}\\\bar{s}_{gt}^{-1}\cdot\bar{a} & = & \bar{v}_{gt}\label{eq:-1}\end{eqnarray}
- Attachments
-
- pic3.JPG (17.01 KiB) Viewed 5408 times
Last edited by Stefan Kottwitz on Wed Mar 14, 2012 6:26 pm, edited 1 time in total.
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Math in Lyx View and PDF View
Btw.
Stefan
eqnarray
is obsolet and not consistent regarding other math environments, so I would not use it. Have a look at the spacing around the equal sign and compare it to simple equation
environments. Perhaps have a look at eqnarray vs. align for further information.Stefan
LaTeX.org admin
Re: Math in Lyx View and PDF View
Align does not seem to make a difference. It looks the same.
Anyway, i plan to hand my thesis in tomorrow, so this will be a detail that my professor has to live with^^
Anyway, i plan to hand my thesis in tomorrow, so this will be a detail that my professor has to live with^^
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Math in Lyx View and PDF View
No need to change, it was just a remark.
Here it can be compared: first
Stefan
Here it can be compared: first
equation
, then align
, then the different spacing with eqnarray
:Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{amsmath}\begin{document}\begin{equation}\bar{s}_{ap}^{-1}\cdot\bar{a} = \bar{v}_{ap}\end{equation}\begin{align}\bar{s}_{ap}^{-1}\cdot\bar{a} &= \bar{v}_{ap}\\\bar{s}_{gt}^{-1}\cdot\bar{a} &= \bar{v}_{gt}\end{align}\begin{eqnarray}\bar{s}_{ap}^{-1}\cdot\bar{a} & = & \bar{v}_{ap}\\\bar{s}_{gt}^{-1}\cdot\bar{a} & = & \bar{v}_{gt}\end{eqnarray}\end{document}
LaTeX.org admin
Math in Lyx View and PDF View
you could superscript the minus sign as follows:
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{amsmath}\begin{document}\begin{equation}\bar{s}_{ap}^{^-1}\cdot\bar{a} = \bar{v}_{ap}\end{equation}\begin{align}\bar{s}_{ap}^{-1}\cdot\bar{a} &= \bar{v}_{ap}\\\bar{s}_{gt}^{-1}\cdot\bar{a} &= \bar{v}_{gt}\end{align}\begin{eqnarray}\bar{s}_{ap}^{-1}\cdot\bar{a} & = & \bar{v}_{ap}\\\bar{s}_{gt}^{-1}\cdot\bar{a} & = & \bar{v}_{gt}\end{eqnarray}\end{document}
Last edited by Stefan Kottwitz on Mon May 14, 2012 5:50 pm, edited 1 time in total.