Disputatio Libri:Gauss, Carl Friedrich - Werke (1870).djvu

Page contents not supported in other languages.
E Wikisource

math et al. (provisory) style guide[recensere]

These are a few notes about how and why I decided to write <math>and other things for the DA in certain ways. Trlit (disputatio)


creating a new article[recensere]

To automate sectioning and anchor creation use {{DA art}} at the start of each article. Why?

  • To allow for custom editions, i. e., someone creating a page with some articles of interest (why not from different sections of the book), each article is enclosed by <section> tags:
<section begin="art._XXX" />ARTICLE TEXT...<section end="art._XXX" />
This allows one to use transclusion through the from/tosection parameter of the <pages> tag or the {{#section:}} function hook.
<pages index=Gauss,_Carl_Friedrich_-_Werke_(1870).djvu from=AAA to=BBB fromsection=art._XXX tosection=art._YYY/>
{{DA art}} closes a presumed previous section and opens the current one. So, one has to look for pages breaks and section breaks, where one has to manually put (or remove extra) closing section tags.
  • To make linking to a particular article possible, there's an anchor ({{ancora}}) inserted before each article.


inex[recensere]

Thanks to the anchors created with {{DA art}}, it's possible to make links with {{inex}} which will work with any edition of the text having an InterNexii.

{{inex|art. XXX}}

Every occurence of an anchor has to be book-keeped in InterNexii indexes. The Main namespace InterNexii is complete. The Page namespace one is not complete.
And in Page namespace, there's a bug. When one edits it with the editor, it is mangled, so a preserved copy is kept at Disputatio Libri: InterNexii.

The syntax should be clear, even though if you want to understand why it's made the way it is, it's probably better you read the template code of {{inex}} and documentation about transclusion. To state it tersely, the target page address for the link is transcluded as text in the code for the link (depending on the current InterNexii subpage, etc.).

math[recensere]


{{fbloc}}:"in-paragraph" logically, but block laid-out formulas[recensere]

{{fbloc|<math></math>}} allows for custom in-paragraph block-layout for math formulas. See pp. 20, 22, resp., for no spacing, for custom spacing.


\textstyle has three main nice features[recensere]
  • making fractions disrupt less line-height (as \tfrac, and more legible than \scriptstyle),
  • reducing the horizontal spacing, particularily the one before \pmod{p}, which can make justification look plain ugly,
  • "in-paragraph" logically, but block laid-out formulas look more "in-paragraph" when \textstyled.

These combined advantages make its use quite pervasive.


\pmod betrays original typography, but is so much more logical[recensere]

There would be two other possibilities and one glitch with \pmod and finally TRW !:

<math>\alpha \equiv\ 1</math> (mod. <math>p^n</math>)
(mod. ) → Faithful, but looks somewhat ugly in standard WS css.
<math>\alpha \equiv\ 1\ (\operatorname{mod.} p^n</math>)
) → Faithful, but bad spacing, and lengthy, uncommon latex
<math>\alpha \equiv\ 1\pmod{p^n}</math>
\pmod by itself takes too much space
<math>\textstyle \alpha \equiv\ 1\pmod{p^n}</math>

\! (negative space) has one frequent use[recensere]

at end of formulas when and only when they end in an exponent.
with no negspace is further from following text than with a negspace which fits nicely.