0.3.0 • Published 10 years ago

commonform-tex v0.3.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
10 years ago

Render Common Forms in TeX.

var tex = require('commonform-tex');

var form = {
  content: [
    { heading: 'IP',
      form: {
        content: ['An IP clause'] } },
    { heading: 'Survival',
      form: {
        content: [{reference: 'IP'}] } } ] };

var output = [
  '\\noindent%',
  '\\hskip 1\\parindent%',
  '1. %',
  '{\\bf IP}. %',
  'An IP clause',
  '',
  '\\noindent%',
  '\\hskip 1\\parindent%',
  '2. %',
  '{\\bf Survival}. %',
  'Section 1 (IP)'
].join('\n');

tex(form, {}); // => output

Indentation

The package uses twice the standard \parindent dimension to indent nested provisions.

Bold-Italic Type

The package outputs conspicuous type with a \bi macro. To define \bi to set type both bold and italic, try:

\font\tenbi=cmbxti10
\newfam\bifam \def\bi{\fam\bifam\tenbi} \textfont\bifam=\tenbi
0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago