Skip to content

table defaults #145

@janrito

Description

@janrito

As a table header for latex, multimarkdown now inserts this code:

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small

It seems to me, these are sensible defaults. However, because these
are hard-coded into multimarkdown C files, it is impossible to change when
needed. A few statements setting these defaults to variables at the beginning
of the latex output would allow the customisation of tables via latex
header includes.

For example, multimarkdown could do something like this:

\ifx\mmtablewidth\undefined
    \def\mmtablewidth{.5\linewidth}
\fi

\ifx\mmtablefont\undefined
    \def\mmtablefont{\centering\small}
\fi

...

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{\mmtablewidth}
\mmtablefont

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions