表や図用の 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-不足している数字

その包みムウェは、 を使用して含めることができる画像「example-image」を提供しますincludegraphics{example-image}。また、黄金比などの画像も提供します。

例画像

私がチェックしました簡単にできる修正メモやること、 そして修正するいずれも、欠落している図の簡単な指定には対応していません。

関連情報