是否有像 Lipsum 或 Blindtext 這樣的表格和圖形虛擬包?

是否有像 Lipsum 或 Blindtext 這樣的表格和圖形虛擬包?

Lipsum 和 Blindtext 提供段落、列表,甚至整個文件的虛擬內容,用於測試 LaTeX 版面配置。

是否有一個軟體包可以以類似的方式產生表格和圖形?

答案1

我不確定這會為世界帶來多少好處,但你就可以了。

該軟體包在浮動環境中提供了一個虛擬圖形和一個虛擬表格。該表格將始終等於 ,\linewidth因此您可以在不同的頁面幾何形狀中使用它,如下twocolumn例所示。該圖實際上是一個表格,但如果主要關注的是檢查標題格式和頁面佈局,這似乎不是問題。

我想讓這個可配置(指定浮動位置、表格行數、不同的圖形寬度等),但如果其他人需要的內容超出了此提供的範圍,我會將其留給其他人。


包裹sator.sty

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{sator}[2014/11/26 Dummy figures and tables for testing, by Andrew A. Cashner, [email protected]]

\RequirePackage{tabulary,booktabs}

\newcommand{\sator}{Sator arepo tenet opera rotas}
\newcommand{\Sator}{Sator Arepo Tenet Opera Rotas}

% For float labels
\newcounter{fignum}
\newcounter{tabnum}

% Figures
\newcommand{\satorfig}{%
    \stepcounter{fignum}%
    See figure~\ref{fig:\thefignum}.\par
    \begin{figure}
    {\huge\bfseries\hfil%
    \begin{tabular}{|c|c|c|c|c|} \hline
        S & A & T & O & R\\ \hline
        A & R & E & P & O\\ \hline
        T & E & N & E & T\\ \hline
        O & P & E & R & A\\ \hline
        R & O & T & A & S\\ \hline
    \end{tabular}}

    \caption{\sator}
    \label{fig:\thefignum}
    \end{figure}
}

%*******************
% Tables
\newcommand{\tableheader}{No. & Sator Arepo & Tenet Opera & Rotas\\}
\newcommand{\tablerow}[1]{#1 & \sator &  \sator & \sator\\}

\newcommand{\satortab}{%
    \stepcounter{tabnum}%
    See table~\ref{table:\thetabnum}.\par
    \begin{table}
        \caption{\sator}
        \label{table:\thetabnum}

        \begin{tabulary}{\linewidth}{rLLL}
            \toprule
            \tableheader\midrule
            \tablerow{1}
            \tablerow{2}
            \tablerow{3}
            \tablerow{4}
            \bottomrule
        \end{tabulary}
    \end{table}%
}

\endinput

使用範例:

\documentclass[twocolumn]{article}
\usepackage{sator}
\usepackage[nopar]{lipsum}

\begin{document}

\section{\Sator}
\lipsum[1-3]

\satorfig

\lipsum[4]

\subsection{\Sator}
\lipsum[5-7]

\satortab

\lipsum[8-9]
\satorfig
\end{document}

在此輸入影像描述 在此輸入影像描述

答案2

套餐托多筆記盧阿托多諾特斯提供\missingfigure

todonotes-missingfigure

套餐姆韋提供圖像“example-image”,可以使用 包含該圖像includegraphics{example-image}。它還提供更多圖像,例如具有黃金比例的圖像等。

範例影像

我檢查了容易做,固定方法註釋,去做, 和整我。所有這些都不支援簡單地指定缺失的數字。

相關內容