📜 ⬆️ ⬇️

DMVN Style Pack

When I saw on the main page a topic about LaTeX in the blog of the same name, I was glad that a topic close to me was covered on Habré (and was a little sad that I did not write a similar article myself;)). Behind me, I have some experience with TeX in the form of 300 pages of mathematics lectures (three semesters), pairs of term papers, and some small things. The accumulated experience of sin is not to share - that's why I write this material.

Today we will talk about the style package , which greatly simplifies the life of TeH-nicknames.

So, the DMVN style pack is a collection of override commands (rendered in separate files), with which a set of formulas (yes, the main purpose of a latex is exactly a set of formulas!) Is much simpler. I will list the advantages that have saved me a fair amount of time and give some examples. You can read more in the document from the developers, the link to which will be given at the end of the article.
')
Environments

There are always standard repeating elements in lectures, such as a theorem , a proof , a statement , and so on. For convenience, you can define such a structure as an environment in the file header (in our case, these environments are defined in the style package), and write in the text of the abstract: \begin{theorem} ... \end{theorem} . The meaning of using this is: firstly, the standardization of the appearance of the document, secondly, the automatic numbering (which can be customized as desired).

Board
For users of the powerful WinEdt editor, if you enter a second extra curly bracket when entering any environment \begin{[_]}} , WinEdt will automatically close the environment \end{[_]} .

Simplified Greek Alphabet

It seems to be nonsense, but the Greek alphabet, as is known, is very widely used in mathematics. The reduction of some letters into several characters leads to a certain gain in time. Compare: \lambda vs. \la and \varepsilon vs. \ep .

Board
\varepsilon and \varphi look nicer than \epsilon and \phi (in standard notation). Compare:


Images obtained using the Online LaTeX Equation Editor .

Simplified set of limits, sums, integrals, etc.

This opportunity of a style package in due time demolished me a roof, the set of formulas was so simplified. I will not write beautiful words, just give a few examples - you yourself can estimate the amount of written code.

\lim\limits_{\delta\rightarrow0} vs. \liml{\de\ra0}

\int\limits_{a}^{b}f(x)\,dx vs. \intl{a}{b}f(x)\,dx

\sum\limits_{k=1}^{n} vs. \sumkun


The developers redefined the vast majority of characters used in the collection of mathematical texts. It is remembered quickly enough, the benefits of this are huge.

Parentheses

When recruiting large formulas, the size of the brackets surrounding the expression should change; if this is not done manually, it will be ugly:


TeX envisages resizing brackets, but to use it you need to surround the formula with an expression like \left( ... \right) . In the described style package, it is sufficient to surround the formula with the expression \hr{} for round brackets, \hs{} for square brackets, and so on for each type of brackets. Very comfortably.

Matrices, formulas

The set of “large” formulas (which do not go in a paragraph of text, but are put on a separate line) and the matrices are simplified as follows: just write \mat{a_1 & a_2 \\ b_1 & b_2} instead
\begin{matrix}
a_1 & a_2 \\ b_1 & b_2
\end{matrix}

to output such a matrix:


For formulas, instead of \begin{equation} .. \end{equation} suffices to write \equ{..} , similar simplifications are made for multi-line formulas and numbered formulas.

In conclusion

I will say about the important redefinition of "special" characters for sets. For one of the variants of the letter R

it is enough to write something from \Rc, \Rb, \Rf, \Rg, \R

Installation

In order to use this invaluable tool (at least for me), it is enough to download this archive , unpack it into one folder with your TeX-document and enter \usepackage{dmvn} in the header (before \ begin {document}).

For more information about the installation and the very style pack can be found in the official documentation .

disadvantages

In a barrel of honey is not without a spoon of tar. For myself, I did not find any flaws, but ...
1) The code typed using the style package is not compiled in its absence. Therefore, if you want to share your intellectual creativity with someone, you should not forget to send the style pack files as well.
2) The style pack has not been updated for a good two and a half years. It may disturb someone; I was told about the possible incompatibility between the new versions of the LaTeX packages used and what is used in the DMVN package. For some reason, this does not bother me.

To top it off, I want to say thanks to Dmitry and Mikhail Veltischev - the authors of the dmvn package - and for their work, and for the patient answers to my many questions when I was at the forefront of mastering TeX's skills :)

A section on the authors site dedicated to TeX

Thanks for attention.

In the future (if this article will be interesting to the Habra community) I plan to write about installing and using WinEdt and about working with graphics in TeX.

Source: https://habr.com/ru/post/46319/


All Articles