[−][src]Struct bookbinder::LatexOptions
Options for generating a pdf through LaTeX
Implementations
impl PreambleOptions
[src]
pub fn chapter_label<S>(&mut self, label: S) -> &mut PreambleOptions where
S: Into<Cow<'static, str>>,
[src]
S: Into<Cow<'static, str>>,
Set a custom label for chapters (i.e. renew \\chaptername
in the preamble)
pub fn set_linespread(&mut self, linespread: f32) -> &mut PreambleOptions
[src]
Set the linespread
pub fn open_any(&mut self) -> &mut PreambleOptions
[src]
Open on any
pub fn set_secnumdepth(
&mut self,
secnumdepth: LatexSecNumDepth
) -> &mut PreambleOptions
[src]
&mut self,
secnumdepth: LatexSecNumDepth
) -> &mut PreambleOptions
Set the secnumdepth
pub fn set_publisher_logo(
&mut self,
p: PathBuf
) -> Result<&mut PreambleOptions, String>
[src]
&mut self,
p: PathBuf
) -> Result<&mut PreambleOptions, String>
Set the logo of a publisher to use on the titlepage
pub fn set_sans_typeface<T>(&mut self, typeface: T) -> &mut PreambleOptions where
T: Into<LatexFont>,
[src]
T: Into<LatexFont>,
Set the sans typeface; this is used in sans text, but is also the fallback typeface for headings, headers and footers, and the titlepage
pub fn set_serif_typeface<T>(&mut self, typeface: T) -> &mut PreambleOptions where
T: Into<LatexFont>,
[src]
T: Into<LatexFont>,
Set the serif typeface
pub fn set_mono_typeface<T>(&mut self, typeface: T) -> &mut PreambleOptions where
T: Into<LatexFont>,
[src]
T: Into<LatexFont>,
Set the monospace typeface to use in code samples, urls, etc
pub fn set_titlepage_typeface<T>(&mut self, typeface: T) -> &mut PreambleOptions where
T: Into<LatexFont>,
[src]
T: Into<LatexFont>,
Set the typeface to use on the titlepage
pub fn set_headers_and_footers_typeface<T>(
&mut self,
typeface: T
) -> &mut PreambleOptions where
T: Into<LatexFont>,
[src]
&mut self,
typeface: T
) -> &mut PreambleOptions where
T: Into<LatexFont>,
Set the typeface to use in running headers and footers
pub fn set_heading_typeface<T>(&mut self, typeface: T) -> &mut PreambleOptions where
T: Into<LatexFont>,
[src]
T: Into<LatexFont>,
Set the typeface to use in headings
pub fn suppress_chapter_titles(&mut self) -> &mut PreambleOptions
[src]
Do not show any given chapter's title -- rely instead
on its label.
For example, Chapter 1: Wolves Attack!
would be
represented as Chapter 1
pub fn suppress_chapter_label(&mut self) -> &mut PreambleOptions
[src]
Do not label chapters as such in headings; i.e. use only the
chapter title.
For example, Chapter 1: Wolves Attack!
would be
represented as Wolves Attack!
pub fn only_number_chapters(&mut self) -> &mut PreambleOptions
[src]
Indicate chapters only by using a numerical indication,
in whatever format.
For example, Chapter 1: Wolves Attack!
would be
represented as 1
,
or I
if use_roman_numerals_for_chapter_labels
was called
pub fn use_roman_numerals_for_chapter_labels(&mut self) -> &mut PreambleOptions
[src]
Label chapters with roman rather than arabic numerals:
e.g. a third chapter would be labelled
as Chapter III
not Chapter 3
pub fn use_words_for_chapter_labels(&mut self) -> &mut PreambleOptions
[src]
Label chapters with words rather than numbers:
e.g. a first chapter would be labelled
as Chapter One
not Chapter 1
pub fn include_toc(&mut self) -> &mut PreambleOptions
[src]
Include a table of contents
pub fn suppress_footers(&mut self) -> &mut PreambleOptions
[src]
have blank pdf running footers
pub fn page_number_only_in_footers(&mut self) -> &mut PreambleOptions
[src]
only include the page number in pdf running footers
pub fn do_not_suppress_figure_labels(&mut self) -> &mut PreambleOptions
[src]
label figures in pdf output
pub fn ten_pt(&mut self) -> &mut PreambleOptions
[src]
set the font size to use in pdf output at 11pt
pub fn eleven_pt(&mut self) -> &mut PreambleOptions
[src]
set the font size to use in pdf output at 11pt
pub fn twelve_pt(&mut self) -> &mut PreambleOptions
[src]
set the font size to use in pdf output at 11pt
pub fn set_papersize(&mut self, size: PaperSize) -> &mut PreambleOptions
[src]
Set the size of paper to use in this book
Trait Implementations
impl Clone for PreambleOptions
[src]
pub fn clone(&self) -> PreambleOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PreambleOptions
[src]
impl Default for PreambleOptions
[src]
pub fn default() -> PreambleOptions
[src]
impl From<UnifiedOptions> for LatexOptions
[src]
fn from(src: UnifiedOptions) -> LatexOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for PreambleOptions
impl Send for PreambleOptions
impl Sync for PreambleOptions
impl Unpin for PreambleOptions
impl UnwindSafe for PreambleOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,