/* $Id: eqn_term.c,v 1.8 2015/01/01 15:36:08 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mandoc.h"
#include "out.h"
#include "term.h"
TERMFONT_NONE, /* EQNFONT_NONE */
TERMFONT_NONE, /* EQNFONT_ROMAN */
TERMFONT_BOLD, /* EQNFONT_BOLD */
TERMFONT_BOLD, /* EQNFONT_FAT */
TERMFONT_UNDER /* EQNFONT_ITALIC */
};
void
{
p->flags &= ~TERMP_NOSPACE;
}
static void
{
p->flags |= TERMP_NOSPACE;
p->flags |= TERMP_NOSPACE;
}
term_word(p, "sqrt");
p->flags |= TERMP_NOSPACE;
p->flags |= TERMP_NOSPACE;
p->flags |= TERMP_NOSPACE;
p->flags |= TERMP_NOSPACE;
term_word(p, "^");
p->flags |= TERMP_NOSPACE;
}
}
} else {
eqn_box(p,
}
}
term_fontpop(p);
p->flags |= TERMP_NOSPACE;
p->flags |= TERMP_NOSPACE;
}
p->flags |= TERMP_NOSPACE;
}
p->flags |= TERMP_NOSPACE;
term_word(p, "_");
}
}