Description Usage Arguments Details Author(s) Examples
Write paragraphs in LaTeX code
1 2 3 |
... |
Text and other objects to be included in the paragraph |
title |
A title for the paragraph |
align |
alignment of the paragraph. Options are |
italic |
Logical. Indicates if the text should be italicized |
bold |
Logical. Indicates if the text shoudl be bolded |
underline |
Logical. Indicates if the text should be underlined |
sep |
Character. Denotes the separation string for the items in
|
translate |
Toggles if inputs in |
font |
HTML font for the paragraph. Defaults to the HTML option
(see |
family |
HTML font family for the paragraph. Defaults to the HTML
option (see |
size |
Text size of the paragraph. Defaults to the HTML option
(see |
Options for text size are
tiny | smallest |
scriptsize | |
footnotesize | |
small | |
normalsize | |
large | |
Large | |
LARGE | |
huge | |
Huge | BIGGEST |
When size is denoted as an integer, as necessary for HTML, it is mapped to a LaTeX size using
map.size
. Likewise, the LaTeX descriptors can be mapped to integers using map.size
.
Additional formatting may be applied using commands such as textbf{}
for bold text, emph{}
for italics, and
ul{}
for underlined text (assuming the soul
package is available), but doing so is probably
easier using lazy.text.format
.
Benjamin Nutter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
lazy.write(
lazy.file.start(),
lazy.text("Typically we want our paragraphs to be left
justified. This is often what we expect to see when reading."),
lazy.text("However, we may also have occasions where we would
like to center our text. It's one of many ways we can make the
words stand out on the page", align="center"),
lazy.text("A more traditional way to make the text stand out might be
to use bold text or italics, such as these", bold=TRUE, italic=TRUE),
lazy.file.end(),
OutFile="Example 1.tex")
unlink("Example 1.tex")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.