mkulesh / microMathematics

microMathematics Plus - Extended visual calculator
GNU General Public License v3.0
561 stars 68 forks source link

Misaligned, fragmented pdfs (aggravated in Sumatra pdf viewer) #118

Closed goyalyashpal closed 2 years ago

goyalyashpal commented 2 years ago

Update:


Summary

The pdf file of documentation contains extremely fragmented text

Reproduction

Steps

  1. Open documentation's pdf microMathematics-v2.22.0.pdf
  2. Select a paragraph of text
  3. Copy it, and then test using some clipboard viewer
  4. Try to "Find" any word in the pdf digitally, that is, by using the find in document functionality of the pdf viewer
  5. All these details shown in the video below:

Expectations

Reality

Screenshot

https://user-images.githubusercontent.com/19423063/163712397-bfef86ea-d7e0-4cd5-aab9-eb452b4f67e3.mp4

goyalyashpal commented 2 years ago

Details

What

Affects

Comments

goyalyashpal commented 2 years ago
\usepackage[T1]{fontenc}
\usepackage{lmodern}

^

So,


Fixing patch and demonstration video Patch created by copying CLI output of `git diff` on the local git repo ```diff diff --git a/microMathematics.sty b/microMathematics.sty index a7333aa..937e462 100644 --- a/microMathematics.sty +++ b/microMathematics.sty @@ -1,7 +1,7 @@ \usepackage{lipsum} % Package to create dummy text \usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage{lmodern} +%\usepackage[T1]{fontenc} +%\usepackage{lmodern} \usepackage[protrusion=true,expansion=true]{microtype} % Better typography \usepackage{amsmath,amsfonts,amsthm} % Math packages \usepackage[pdftex]{graphicx} % Enable pdflatex ``` https://user-images.githubusercontent.com/19423063/163714401-e8710c60-903f-4e27-a1dc-bf1fc2f06c77.mp4
goyalyashpal commented 2 years ago

Related issue: