Math & Science ⇒ Width of the fractions separator line near of 4pt.
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
- (46.53 KiB) Downloaded 243 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Width of the fractions separator line near of 4pt.
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.
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.
Width of the fractions separator line near of 4pt.
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.
Thanks.
Code: Select all
\usepackage{etex}
\reserveinserts{28}
\setcounter{chapter}{61}
\usepackage[pagestyles]{titlesec}
\usepackage{ifthen}
\usepackage{array}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{longtable}
\usepackage{fnpos}
\usepackage{booktabs}
\usepackage{dcolumn}
\usepackage{slashbox}
\usepackage{pict2e}
\usepackage{multirow}
\usepackage{float}
\floatplacement{table}{tp}
\usepackage{morefloats}
\usepackage{flafter}
\usepackage{floatflt}
\usepackage{colortbl}
\usepackage{wrapfig}
\usepackage{enumitem}
\usepackage{eso-pic,everyshi,calc}
\usepackage{dashrule}
\usepackage{marvosym}
\usepackage{amsbsy}
\usepackage{yhmath}
\usepackage{txfonts}
\usepackage{textcomp}
\usepackage{mathcomp}
\usepackage{gensymb}
\usepackage{empheq}
\usepackage[e]{esvect}
\usepackage[spanish,es-nodecimaldot]{babel}
\usepackage{ccaption}
\usepackage[labelsep=endash,font={small,it},labelformat=simple,labelfont=bf,figurewithin=none,justification=centering]{caption}
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\ifnum\value{section}<10 \arabic{chapter}0\arabic{section}\else\arabic{chapter}\arabic{section}\fi}
\renewcommand{\sin}{\sen \nolimits}
\renewcommand{\arcsin}{\arcsen \nolimits}
\renewcommand{\sinh}{\senh \nolimits}
\renewcommand{\tan}{\tg \nolimits}
\renewcommand{\arctan}{\arctg \nolimits}
\renewcommand{\tanh}{\tgh \nolimits}
\renewcommand{\csc}{\cosec \nolimits}
\renewcommand{\cot}{\cotg \nolimits}
\renewcommand{\lg}{\log \nolimits}
\renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}
\addto\captionsspanish{\renewcommand{\figurename}{Fig.}}
\addto\captionsspanish{\renewcommand{\tablename}{Tabla}}
\renewcommand{\thetable}{\tablename\;\arabic{table}}
\DeclareMathOperator{\gs}{\textrm{\!\textdegree}}
\DeclareCaptionLabelFormat{tabla}{#2}
\titleformat{\chapter}[display]
{\Large\bfseries\fillast\vspace{-25pt}}
{\normalfont\bfseries\chaptername\hspace{5pt}\thechapter}
{.5ex minus .1ex}
{\large}[\vspace{-15pt}]
\titleformat{\section}[runin]
{\normalfont\bfseries}
{\thesection.}{.5em}{}[.---\:]
\titlespacing{\section}
{\parindent}{1.5ex plus .1ex minus .2ex}{0pt}
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\vspace*{\fill}
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
\setlist{noitemsep}
\setenumerate{labelindent=\parindent,leftmargin=*,labelsep=1em}
\setitemize{labelindent=\parindent,leftmargin=*,labelsep=1em}
\clubpenalty=10000
\widowpenalty=10000
\usepackage[bookmarks=true,bookmarksopen=true,bookmarksopenlevel=2,bookmarksnumbered=true,breaklinks=true]{hyperref}
- Attachments
-
- Pagina_214_Moreu III.pdf
- (15.53 KiB) Downloaded 213 times
Last edited by Stefan Kottwitz on Sun Mar 24, 2019 9:19 pm, edited 1 time in total.
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
Width of the fractions separator line near of 4pt.
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:
Stefan
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
LaTeX.org admin
Width of the fractions separator line near of 4pt.
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.
\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
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
Width of the fractions separator line near of 4pt.
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:
Stefan
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:
Stefan
LaTeX.org admin
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
Width of the fractions separator line near of 4pt.
Lines are differently displayed at different zoom levels, depending on the PDF viewer. Here it's zoomed in:
Stefan
Stefan
LaTeX.org admin
Width of the fractions separator line near of 4pt.
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.
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 5353 times
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
Width of the fractions separator line near of 4pt.
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
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
LaTeX.org admin
Width of the fractions separator line near of 4pt.
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 5345 times