pub struct MinipageParams {
pub position: Option<String>,
pub height: Option<String>,
pub inner_pos: Option<String>,
pub width: String,
}Expand description
Parameters for the LaTeX minipage environment.
§Example
use rusttex::{MinipageParams, StringOrBuilder};
let params = MinipageParams::new(Some("c"), Some("2cm"), None, "5cm");Generated LaTeX:
\begin{minipage}[c][2cm][]{5cm}
...
\end{minipage}Fields§
§position: Option<String>Governs how the minipage vertically aligns with the surrounding material.
height: Option<String>It sets the height of the minipage
inner_pos: Option<String>Specifies the inner position of the minipage.
width: StringIt gives the width of the box into which contents are typeset.
Implementations§
Source§impl MinipageParams
impl MinipageParams
Sourcepub fn new<S: StringOrBuilder, V: StringOrBuilder, T: StringOrBuilder, U: StringOrBuilder>(
position: Option<S>,
height: Option<V>,
inner_pos: Option<T>,
width: U,
) -> Self
pub fn new<S: StringOrBuilder, V: StringOrBuilder, T: StringOrBuilder, U: StringOrBuilder>( position: Option<S>, height: Option<V>, inner_pos: Option<T>, width: U, ) -> Self
Auto Trait Implementations§
impl Freeze for MinipageParams
impl RefUnwindSafe for MinipageParams
impl Send for MinipageParams
impl Sync for MinipageParams
impl Unpin for MinipageParams
impl UnwindSafe for MinipageParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more