-
Notifications
You must be signed in to change notification settings - Fork 17
Improve latex typography #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This option was never used.
5d45482 to
e37c614
Compare
The 3 times running of latex has been done with cmake logic since 2015.
The hyperref option should be correctly inferred in all modern versions of latex. This avoids problems when building the document with other tools (like pandoc, pdflatex, or latexmk).
e37c614 to
17b932e
Compare
17b932e to
b0ea96d
Compare
dzenanz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good. Cursory review identified some questions.
In modern LaTeX, you should not use the old two-letter command \bf.
Instead, you should use the recommended \textbf{...} command or the
\bfseries declaration for producing bold text.
Search for and replace obsolete font commands in all .tex
- Replace `{\bf ...}` with `\textbf{...}`
- Replace `{\it ...}` with `\textit{...}`
- Replace `{\tt ...}` with `\texttt{...}`
- Replace `{\rm ...}` with `\textrm{...}`
- Replace `{\sc ...}` with `\textsc{...}`
- Replace `{\sf ...}` with `\textsf{...}`
- Replace `{\sl ...}` with `\textsl{...}`
- Replace `{\cal ...}` with `\mathcal{...}`
- Replace `{\em ...}` with `\emph{...}`
Search for and replace other obsolete commands:
- Replace `\over` with `\frac{...}{...}` or `\overline{...}`:
Prevent LaTeX line breaks that may cause a \label or \index to be referenced in the wrong place for page references. Delete this space to maintain correct pagereferences. Found with `chktex` latex linting tool
Ensures proper layout and prevent misaligned page references
cite, ref, pageref, Figure, Table should have the reference information adjacent to the preceeding text for clarity.
A linter test suggestion by chktex
Replace the literal double-quote character in LaTeX. It is for the rare cases where you actually want the ASCII " glyph, not typographic quotes. chktex warns when " character is used without explicit request for the type of quotes needed.
…` tables Improve the visual representation of tables following recommendations provided by chktex linting and online suggestions.
User Regex: 1:Capitalize before references.
For identifying and addressing common formatting issues
This ensures compatibility by requiring ImageMagick version 6 or greater and the `convert` component in relevant CMake files. Updates improve dependency clarity, preventing potential issues with older versions or missing components. ImageMagick version 7 was released as a production version in May 2016. ImageMagick version 7 deprecates the 'convert' tool which will be removed in future version. Support both version 6 and 7 with cmake syntax introduced in cmake version 3.9.
b0ea96d to
6feafa5
Compare
|
@dzenanz I think I addressed all the issues you mentioned. |
|
@thewtex I had a silly syntax error that needed fixing. This is now done. |
thewtex
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hjmjohnson thanks!
Review the Insight Software guide and run the chktex linting tool
to identify places where the software guide can be made more robust.