LaTeX forum ⇒ Math & ScienceWidth 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.

Postby diazdeus » Sun Mar 24, 2019 2:07 am

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
(46.53 KiB) Downloaded 4 times

User avatar
Johannes_B
Site Moderator
Posts: 3975
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Mar 24, 2019 8:37 am

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

Postby diazdeus » Sun Mar 24, 2019 3:36 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.

  1. \usepackage{etex}
  2. \reserveinserts{28}
  3. \setcounter{chapter}{61}
  4. \usepackage[pagestyles]{titlesec}
  5. \usepackage{ifthen}
  6. \usepackage{array}
  7. \usepackage{graphicx}
  8. \usepackage{rotating}
  9. \usepackage{longtable}
  10. \usepackage{fnpos}
  11. \usepackage{booktabs}
  12. \usepackage{dcolumn}
  13. \usepackage{slashbox}
  14. \usepackage{pict2e}
  15. \usepackage{multirow}
  16. \usepackage{float}
  17. \floatplacement{table}{tp}
  18. \usepackage{morefloats}
  19. \usepackage{flafter}
  20. \usepackage{floatflt}
  21. \usepackage{colortbl}
  22. \usepackage{wrapfig}
  23. \usepackage{enumitem}
  24. \usepackage{eso-pic,everyshi,calc}
  25. \usepackage{dashrule}
  26. \usepackage{marvosym}
  27. \usepackage{amsbsy}
  28. \usepackage{yhmath}
  29. \usepackage{txfonts}
  30. \usepackage{textcomp}
  31. \usepackage{mathcomp}
  32. \usepackage{gensymb}
  33. \usepackage{empheq}
  34. \usepackage[e]{esvect}
  35. \usepackage[spanish,es-nodecimaldot]{babel}
  36. \usepackage{ccaption}
  37. \usepackage[labelsep=endash,font={small,it},labelformat=simple,labelfont=bf,figurewithin=none,justification=centering]{caption}
  38. \renewcommand{\thechapter}{\Roman{chapter}}
  39. \renewcommand{\thesection}{\ifnum\value{section}<10 \arabic{chapter}0\arabic{section}\else\arabic{chapter}\arabic{section}\fi}
  40. \renewcommand{\sin}{\sen \nolimits}
  41. \renewcommand{\arcsin}{\arcsen \nolimits}
  42. \renewcommand{\sinh}{\senh \nolimits}
  43. \renewcommand{\tan}{\tg \nolimits}
  44. \renewcommand{\arctan}{\arctg \nolimits}
  45. \renewcommand{\tanh}{\tgh \nolimits}
  46. \renewcommand{\csc}{\cosec \nolimits}
  47. \renewcommand{\cot}{\cotg \nolimits}
  48. \renewcommand{\lg}{\log \nolimits}
  49. \renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}
  50.  
  51. \addto\captionsspanish{\renewcommand{\figurename}{Fig.}}
  52. \addto\captionsspanish{\renewcommand{\tablename}{Tabla}}
  53. \renewcommand{\thetable}{\tablename\;\arabic{table}}
  54. \DeclareMathOperator{\gs}{\textrm{\!\textdegree}}
  55. \DeclareCaptionLabelFormat{tabla}{#2}
  56.  
  57. \titleformat{\chapter}[display]
  58. {\Large\bfseries\fillast\vspace{-25pt}}
  59. {\normalfont\bfseries\chaptername\hspace{5pt}\thechapter}
  60. {.5ex minus .1ex}
  61. {\large}[\vspace{-15pt}]
  62.  
  63. \titleformat{\section}[runin]
  64. {\normalfont\bfseries}
  65. {\thesection.}{.5em}{}[.---\:]
  66.  
  67. \titlespacing{\section}
  68. {\parindent}{1.5ex plus .1ex minus .2ex}{0pt}
  69.  
  70. \makeatletter
  71. \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  72. \vspace*{\fill}
  73. \thispagestyle{empty}
  74. \newpage
  75. \if@twocolumn\hbox{}\newpage\fi\fi\fi}
  76. \makeatother
  77.  
  78. \setlist{noitemsep}
  79. \setenumerate{labelindent=\parindent,leftmargin=*,labelsep=1em}
  80. \setitemize{labelindent=\parindent,leftmargin=*,labelsep=1em}
  81.  
  82. \clubpenalty=10000
  83. \widowpenalty=10000
  84.  
  85. \usepackage[bookmarks=true,bookmarksopen=true,bookmarksopenlevel=2,bookmarksnumbered=true,breaklinks=true]{hyperref}
Attachments
Pagina_214_Moreu III.pdf
(15.53 KiB) Downloaded 5 times
Last edited by Stefan Kottwitz on Sun Mar 24, 2019 9:19 pm, edited 1 time in total.
Reason: code marked

User avatar
Stefan Kottwitz
Site Admin
Posts: 9366
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Mar 24, 2019 9:29 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
Site admin

diazdeus
Posts: 16
Joined: Fri Sep 28, 2018 9:34 pm

Postby diazdeus » Mon Mar 25, 2019 3:10 am

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.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9366
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Mar 25, 2019 2:26 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
fractions.png (68.93 KiB) Viewed 153 times


Stefan
Site admin

User avatar
Stefan Kottwitz
Site Admin
Posts: 9366
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Mar 25, 2019 3:01 pm

Lines are differently displayed at different zoom levels, depending on the PDF viewer. Here it's zoomed in:

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


Stefan
Site admin

diazdeus
Posts: 16
Joined: Fri Sep 28, 2018 9:34 pm

Postby diazdeus » Mon Mar 25, 2019 9:29 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
Pag_14.png (49.7 KiB) Viewed 144 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9366
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Mar 25, 2019 10:08 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
Site admin

diazdeus
Posts: 16
Joined: Fri Sep 28, 2018 9:34 pm

Postby diazdeus » Mon Mar 25, 2019 11:10 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
Pag_14.png (49.7 KiB) Viewed 136 times


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 1 guest