% \iffalse meta-comment %<=*COPYRIGHT> %% Copyright (C) 2011-2018 by Martin Scharrer %% ---------------------------------------------------------------------- %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% %% This work has the LPPL maintenance status `maintained'. %% %% The Current Maintainer of this work is Martin Scharrer. %% %% This work consists of the files easyfig.dtx and easyfig.ins %% and the derived filebase easyfig.sty. %% %<=/COPYRIGHT> % \fi % % \iffalse %<*driver> \ProvidesFile{easyfig.dtx}[% %<=*DATE> 2018/03/30 %<=/DATE> %<=*VERSION> v1.2a %<=/VERSION> Easily include images as figures] \documentclass{ydoc} \GetFileInfo{easyfig.dtx} \usepackage{easyfig}[\filedate] \usepackage{flafter} %\usepackage{mwe} \graphicspath{{example-}} \EnableCrossrefs \CodelineIndex \RecordChanges \OnlyDescription \optionaloff \def\textfraction{0.2} \def\bottomfraction{0.8} \begin{document} \DocInput{\jobname.dtx} \PrintChanges \PrintIndex \end{document} % % \fi % % \CheckSum{207} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z % Digits \0\1\2\3\4\5\6\7\8\9 % Exclamation \! Double quote \" Hash (number) \# % Dollar \$ Percent \% Ampersand \& % Acute accent \' Left paren \( Right paren \) % Asterisk \* Plus \+ Comma \, % Minus \- Point \. Solidus \/ % Colon \: Semicolon \; Less than \< % Equals \= Greater than \> Question mark \? % Commercial at \@ Left bracket \[ Backslash \\ % Right bracket \] Circumflex \^ Underscore \_ % Grave accent \` Left brace \{ Vertical bar \| % Right brace \} Tilde \~} % % % \changes{v1.0}{2011/10/31}{Initial release.} % \changes{v1.1}{2012/05/06}{Fix of "placement" key and non-e-TeX fallback code.} % \changes{v1.2}{2012/05/15}{Added "here" key.} % \changes{v1.2a}{2018/03/30}{Updated manual to mentioned \pkg{adjustbox} as alternative.} % % \DoNotIndex{\newcommand,\newenvironment} % % \GetFileInfo{easyfig.dtx} % \author{Martin Scharrer} % \email{martin@scharrer-online.de} % \ifdefined\repository % \repository{https://bitbucket.org/martin_scharrer/easyfig} % \fi % % \maketitle % % \begin{abstract}\noindent % This package aims to simplify the most common usage of \env{figure} environments % to include a single image with a caption and label. % % Current versions of the \pkg{adjustbox} package now provide keys for turning an image or other content into a % float or non-float inclusive a caption. This makes this package quite redundant. % \end{abstract} % % \section{Introduction} % A very high percentage of all \LaTeX\ figures aim to simply display a simple image with a caption and label. % A common way to code this is: % \begin{lstlisting}[gobble=4,numbers=none,language={[latex]tex}] % \begin{figure} % \centering % \includegraphics[]{} % \caption{} % \label{