latex_highlight: Highlight LaTeX

View source: R/latex_highlight.R

latex_highlightR Documentation

Highlight LaTeX

Description

Returns text with colour and monospaced LaTeX formatting..

Usage

latex_highlight(t1, text, t3, colour = "red")

Arguments

t1

Text that will precede coloured text. Still monospaced.

text

Text that will be highlighted with colour. Still monospaced.

t3

Text that will follow coloured text. Still monospaced.

colour

Colour of the highlighting. Default "red".

Details

Returns text that is surrounded with the \ textcolor and \ texttt wrappers for LaTeX formatting.

Examples


html_highlight("Code\\-looking text that ", "will contain red.", "")


BradyAJohnston/mdfret documentation built on April 16, 2022, 8:32 a.m.