## LaTeX forum ⇒ Math & Science ⇒ Width of the fractions separator line near of 4pt. Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
diazdeus
Posts: 16
Joined: Fri Sep 28, 2018 9:34 pm

### Width of the fractions separator line near of 4pt.

Hi. I am working on an scientific book for astronomy and maritime navigation, with a lot of equations and fractions. This is the third and the last volume and the preamble document is the same than the preamble of the other two volumes, with the exception of the packages pst-math and pstricks-add; this two pst packages are only in the preamble of the third volume, because if not the latex file don't compile to obtain the final pdf (ps2pdf). But the surprise for me is that the fractions separator line in this third volume are too bold (near to 3pt), but not in the other two volumes that they have the same preamble. I see on web the command \genfrac but his modification with \renewcommand don't work for me and I don't want to modify the enormous quantity of fractions that I have now in this third volume. The preamble is attached.
Attachments
Preamble_Vol III.pdf

Johannes_B
Site Moderator
Posts: 3975
Joined: Thu Nov 01, 2012 4:08 pm
What are we supposed to do with the preamble as a pdf? Please show a minimal working example to let us reproduce the line width issue.

There is a reason for the behavior and it is somewhere in your code.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

diazdeus
Posts: 16
Joined: Fri Sep 28, 2018 9:34 pm
Excuse me for to attach a file in pdf format. Bellow you have only text and I attached a page of the document final pdf where you can see the width too large on fractions and boxed equations.
Thanks.

Attachments
Pagina_214_Moreu III.pdf
Last edited by Stefan Kottwitz on Sun Mar 24, 2019 9:19 pm, edited 1 time in total.
Reason: code marked

Stefan Kottwitz
Posts: 9366
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

thanks for posting code!

Sometimes seeing the preamble helps, but usually we need to see code that actually produces the wrong output, so we can check and fix it.

I think though that this may help you - insert the width you like:

\renewcommand{\frac}[2]{\genfrac{}{}{0.6pt}{}{#1}{#2}}

Stefan

diazdeus
Posts: 16
Joined: Fri Sep 28, 2018 9:34 pm
Thank you very much for your help, but I tried this and don't work for me. I put in the preamble:

\renewcommand{\frac}[2]{\genfrac{}{}{0.1pt}{}{#1}{#2}}

And the line of the fractions and the boxes until are very bolded, nothing's changed. I am wondering because the preamble of the other two volumes are the same of this one of the third volume, but the fractions line are correct in this volumes I and II.

I think it's possible that the package empheq in the preamble causes some type of conflict.

Stefan Kottwitz
Posts: 9366
Joined: Mon Mar 10, 2008 9:44 pm
When I tested it with your preamble, the lines are just fine, as normal.

Could it be a PDF viewer issue? Please try a different PDF viewer, such as the Adobe Reader or a capable browser. I attach how it's displayed on my side:

fractions.png (68.93 KiB) Viewed 156 times

Stefan

Stefan Kottwitz
Posts: 9366
Joined: Mon Mar 10, 2008 9:44 pm
Lines are differently displayed at different zoom levels, depending on the PDF viewer. Here it's zoomed in:

fractions-lines.png (41.17 KiB) Viewed 154 times

Stefan

diazdeus
Posts: 16
Joined: Fri Sep 28, 2018 9:34 pm
Thank you, Stefan.

Normally I use Adobe Acrobat DC like pdf viewer. Opened the file with Foxit Reader, I have the same problem (see the png). If I open the file with Firefox, all is normal! but with Opera I have the same extra bolded fractions line an rule of boxes (?). As you can see this extra bold rules on boxes (\boxed command) also appears on your png.
Attachments
Pag_14.png (49.7 KiB) Viewed 147 times

Stefan Kottwitz
Posts: 9366
Joined: Mon Mar 10, 2008 9:44 pm
Zoom in to see if the problem is real or if it's a displaying fault at low zoom. Also zoom in with FoxIt and Opera. How is it?

Print it to verify. Electronic display is always a software approximation of the actual content.

It's ok for me. Even in the PDF you attached. Perhaps post code that actually produces such a bad image: a reduced copy of your document (small, dummy text) that brings the output when compiled. I tested with your preamble (I did not have your document code) and it worked fine.

Stefan

diazdeus
Posts: 16
Joined: Fri Sep 28, 2018 9:34 pm
I think that's impossible the error is caused for the zoom. The pdf,s of the others two volumes don't have this problem; this files have the same preamble of the problematic third volume... Here you have a zoomed screen capture in Opera and a page of the Volume I.
Attachments
Pag_14.png (49.7 KiB) Viewed 139 times