Add minipage and vbox block boxes
This commit is contained in:
1 parent
2552008d4b
commit
5fa301fdcd
7 files changed
+116
-20
No files matched your search
@@ -26,6 +26,8 @@ const PRELUDE: &str = r#"
|
||||
\def\maketitle{\texrramaketitle}
|
||||
\def\tableofcontents{}
|
||||
\def\noindent{\texrranoindent}
|
||||
\def\vbox#1{\parbox{\textwidth}{#1}}
|
||||
\def\vtop#1{\parbox{\textwidth}{#1}}
|
||||
\def\hfill{\hskip0pt plus 1fil\relax}
|
||||
\def\hfil{\hskip0pt plus 1fil\relax}
|
||||
\def\allowbreak{\penalty0}
|
||||
|
||||
@@ -5513,6 +5513,16 @@ fn begin_environment_primitive(
|
||||
.filter_map(|token| token.char())
|
||||
.collect::<String>(),
|
||||
)
|
||||
} else if name == "minipage" {
|
||||
// \begin{minipage}[t]{50mm}: skip the optional position and return
|
||||
// the mandatory width argument.
|
||||
let _ = read_optional_bracketed_argument(input, token, "minipage position")?;
|
||||
Some(
|
||||
read_scanned_token_list(input)?
|
||||
.into_iter()
|
||||
.filter_map(|token| token.char())
|
||||
.collect::<String>(),
|
||||
)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user