| 1 |
%% |
| 2 |
%% This is file `gboxsamp.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% graphbox.dtx (with options: `sample') |
| 8 |
%% |
| 9 |
%% Copyright (C) 2013-2025 Niklas Beisert |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% https://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 17 |
%% version 2008 or later. |
| 18 |
%% |
| 19 |
\NeedsTeXFormat{LaTeX2e}[1996/12/01] |
| 20 |
\ProvidesFile{gboxsamp.tex}[2025/03/25 v1.1.1 sample for graphbox] |
| 21 |
\documentclass[12pt]{article} |
| 22 |
|
| 23 |
\usepackage[margin=2cm]{geometry} |
| 24 |
\usepackage{graphicx} |
| 25 |
\usepackage{graphbox} |
| 26 |
|
| 27 |
\newcommand{\sample}[1]{ |
| 28 |
\textbf{options:} \texttt{#1}\par\vspace{1ex} |
| 29 |
\parbox{0.6\textwidth}{% |
| 30 |
XXXXXX\phantom{\fbox{}}XXXXXX\\% |
| 31 |
XXXXXX\phantom{\fbox{}}XXXXXX\\% |
| 32 |
XXXXXX\fbox{\includegraphics[#1]{gboxsamp.mps}}XXXXXX\\% |
| 33 |
XXXXXX\phantom{\fbox{}}XXXXXX\\% |
| 34 |
XXXXXX\phantom{\fbox{}}XXXXXX% |
| 35 |
}\vspace{1cm}\par} |
| 36 |
|
| 37 |
\begin{document} |
| 38 |
\sample{} |
| 39 |
\sample{hide} |
| 40 |
\sample{hide=true} |
| 41 |
\sample{hide=false} |
| 42 |
\newpage |
| 43 |
\sample{align=b} |
| 44 |
\sample{align=c} |
| 45 |
\sample{align=t} |
| 46 |
\newpage |
| 47 |
\sample{align=l} |
| 48 |
\sample{align=m} |
| 49 |
\sample{align=u} |
| 50 |
\newpage |
| 51 |
\sample{vshift=10pt} |
| 52 |
\sample{vshift=-10pt} |
| 53 |
\newpage |
| 54 |
\sample{lmargin=10pt} |
| 55 |
\sample{rmargin=10pt} |
| 56 |
\sample{tmargin=10pt} |
| 57 |
\sample{bmargin=10pt} |
| 58 |
\newpage |
| 59 |
\sample{lmargin=-10pt} |
| 60 |
\sample{rmargin=-10pt} |
| 61 |
\sample{tmargin=-10pt} |
| 62 |
\sample{bmargin=-10pt} |
| 63 |
\newpage |
| 64 |
\sample{vsmash=b} |
| 65 |
\sample{vsmash=c} |
| 66 |
\sample{vsmash=t} |
| 67 |
\newpage |
| 68 |
\sample{vsmash=l} |
| 69 |
\sample{vsmash=m} |
| 70 |
\sample{vsmash=u} |
| 71 |
\newpage |
| 72 |
\sample{hsmash=l} |
| 73 |
\sample{hsmash=c} |
| 74 |
\sample{hsmash=r} |
| 75 |
\newpage |
| 76 |
\sample{smash=tl} |
| 77 |
\sample{smash=cc} |
| 78 |
\sample{smash=br} |
| 79 |
\newpage |
| 80 |
\sample{smash,vshift=10pt} |
| 81 |
\sample{smash,hshift=10pt} |
| 82 |
\sample{smash,hshift=-10pt,vshift=-10pt} |
| 83 |
\end{document} |
| 84 |
\endinput |
| 85 |
%% |
| 86 |
%% End of file `gboxsamp.tex'. |