MarkDoc has a new release (3.9.3), with modified document layouts, providing a syntax highlighter in LaTeX documents in addition to HTML and PDF, and above all, a modified way for writing dynamic text in do-file, which greatly simplifies writing dynamic text in Stata. You can read about the new feature for writing dynamic text on GitHub WiKi.
Basically, with the new feature, you can display values of Scalars, Macros, Matrices, and also observations from the data set inside the documentation, without using the txt command. A new marker was developed to display the values dynamically, which is <!*!> where * is a scalar, `numericLocal' or $numericGlobal, "`stringLocal'", "$stringGlobal", Matrix[r,c], or variable[n] which is an observation from the nth row of a variable.
Here is an example:
Read more here...
If you are using MarkDoc on daily basis, you can "watch" (subscribe) to the package updates on GitHub.
To update your MarkDoc to the current version, use the github package:
Basically, with the new feature, you can display values of Scalars, Macros, Matrices, and also observations from the data set inside the documentation, without using the txt command. A new marker was developed to display the values dynamically, which is <!*!> where * is a scalar, `numericLocal' or $numericGlobal, "`stringLocal'", "$stringGlobal", Matrix[r,c], or variable[n] which is an observation from the nth row of a variable.
Here is an example:
Code:
local macro a = 1 scalar b = 2 matrix define A = (20,30\40,50) /*** This is heading <!`a'!> ======================= The values of a matrix can be displayed within the text. For example, you can write <!A[1,1]!> which shows the scalar of the first row and first column of the matrix in your documentation. This feature makes writing dynamic text much more convenient compared to the previous procedure. This is heading <!b!> --------------------- REMEMBER, that this procedure only works if you execute a do-file with markdoc, that is, using the `markdoc filename.do, export(format)` syntax. ***/
If you are using MarkDoc on daily basis, you can "watch" (subscribe) to the package updates on GitHub.
To update your MarkDoc to the current version, use the github package:
Code:
github install haghish/markdoc
Comment