Skip to content

Commit

Permalink
More doc-related fixes...
Browse files Browse the repository at this point in the history
Add another "\n" at the end of a </dl>

Compute number boxwidth automatically in tocbox numbers
  • Loading branch information
rocky committed Aug 5, 2024
1 parent 32355f0 commit f223222
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mathics/builtin/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,9 @@ class PointSize(_Size):
<dt>'PointSize[$t$]'
<dd>sets the diameter of points to $t$, which is relative to the overall width.
</dl>
'PointSize' can be used for both two- and three-dimensional graphics. The initial default pointsize is 0.008 for two-dimensional graphics and 0.01 for three-dimensional graphics.
'PointSize' can be used for both two- and three-dimensional graphics. \
The initial default pointsize is 0.008 for two-dimensional graphics and 0.01 for three-dimensional graphics.
>> Table[Graphics[{PointSize[r], Point[{0, 0}]}], {r, {0.02, 0.05, 0.1, 0.3}}]
= {-Graphics-, -Graphics-, -Graphics-, -Graphics-}
Expand Down
10 changes: 10 additions & 0 deletions mathics/doc/latex/mathics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@

\documentclass[index=totoc,fleqn,10pt,oneside,toc=flat]{scrbook}

% The number is sections and subsections can get high, for example:
% 26.2.16 PolarPlot
% ^^^^^^^
% So we need the below to automatically calculate the width numbers can take
% See:
% https://tex.stackexchange.com/questions/694088/koma-book-class-listoftables-increase-the-space-between-the-number-and-title-of
\DeclareTOCStyleEntry[dynnumwidth]{default}{chapter}
\DeclareTOCStyleEntry[dynnumwidth]{default}{section}
\DeclareTOCStyleEntry[dynnumwidth]{default}{subsection}

%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{gensymb} % For \degree. usepackage needs to be early.
Expand Down

0 comments on commit f223222

Please sign in to comment.