diff options
author | Karl Berry <karl@freefriends.org> | 2009-07-20 18:30:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-07-20 18:30:23 +0000 |
commit | eb5a89a8da01c520f97a11b39b254cec48c99b46 (patch) | |
tree | be9de6c8181f19f84926941a92e8908fff0f6e2d /Master/texmf-dist | |
parent | 9c6aa2c6efcab0851a6ea285a7e12ed87adafccc (diff) |
asyfig update
git-svn-id: svn://tug.org/texlive/trunk@14349 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/asyfig/README.txt | 42 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/asyfig/frf.asy | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/asyfig/test-asyfig.tex | 15 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/asyfig/asyfig.tex (renamed from Master/texmf-dist/doc/latex/asyfig/asyfig.tex) | 0 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/asyfig/asyalign.sty | 87 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/asyfig/asyfig.sty | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/asyfig/asyprocess.sty | 59 |
7 files changed, 1 insertions, 209 deletions
diff --git a/Master/texmf-dist/doc/latex/asyfig/README.txt b/Master/texmf-dist/doc/latex/asyfig/README.txt deleted file mode 100644 index 6295a8e66a3..00000000000 --- a/Master/texmf-dist/doc/latex/asyfig/README.txt +++ /dev/null @@ -1,42 +0,0 @@ -__________________ -The ASYFIG package -v0.1b - -This package provides an alternative to the asymptote package for including Asymptote graphics in a LaTeX document. In this package, all Asymptote figures are defined separately from the source in their own individual ".asy" files. This package uses Asymptote's inline mode so that labels in the graphics are produced by the main typesetting run; this ensures consistent font and size selection of text within the graphics. In addition, each individual ".asy" graphic can be very quickly processed individually to facilitate easy maintenance and editing of the graphics. - -______________ -CHANGE HISTORY - -v0.1b - - Now supports Asymptote v1.78 (an internal macro was - changed that needed to be mirrored in this package) - -v0.1a - - Initial public release after Asymptote was added to - CTAN and TeX Live - -____________ -INSTALLATION - -Run `latex` on asyfig.tex to produce the files - asyfig.ins, asyfig.sty, asyalign.sty, asyprocess.sty, and README.txt, -as well as to compile the PDF documentation. - -Execute `tex pstool.ins` to produce the files above -except pstool.ins (and the PDF file, obviously). - -___________ -MAINTENANCE - -Please report bugs or request features: - <http://github.com/wspr/asyfig/issues> - -Developmental and historical versions: - <http://github.com/wspr/asyfig> - -Current release version: - <http://ctan.tug.org/pkg/asyfig> - -______________ -Will Robertson -Copyright 2008-2009 diff --git a/Master/texmf-dist/doc/latex/asyfig/frf.asy b/Master/texmf-dist/doc/latex/asyfig/frf.asy deleted file mode 100644 index 18cca920419..00000000000 --- a/Master/texmf-dist/doc/latex/asyfig/frf.asy +++ /dev/null @@ -1,5 +0,0 @@ -unitsize(10mm); -draw( (0,0){right}..{up}(3,2){down}.. - {down}(4,-2){up}..{right}(7,0) ); -draw( "Resonance" , align=E, (3,2) ); -draw( "Anti-resonance" , align=W, (4,-2) ); diff --git a/Master/texmf-dist/doc/latex/asyfig/test-asyfig.tex b/Master/texmf-dist/doc/latex/asyfig/test-asyfig.tex deleted file mode 100644 index 12034bf4f74..00000000000 --- a/Master/texmf-dist/doc/latex/asyfig/test-asyfig.tex +++ /dev/null @@ -1,15 +0,0 @@ - -%% uncomment this to enable non-PDF mode: -%\pdfoutput=0 -%% (rememer to delete asyfig_.tex if it's previously been generated for PDF mode) - -\documentclass[12pt,twocolumn]{article} -\usepackage[sc]{mathpazo} -\usepackage{asyfig} -\begin{document} -A boxed graphic:\\ -\fbox{\sffamily\asyfig{frf}}\par -Note the font in the graphic follows -the current font of the document. -\end{document} - diff --git a/Master/texmf-dist/doc/latex/asyfig/asyfig.tex b/Master/texmf-dist/source/latex/asyfig/asyfig.tex index 3416c24c0ca..3416c24c0ca 100644 --- a/Master/texmf-dist/doc/latex/asyfig/asyfig.tex +++ b/Master/texmf-dist/source/latex/asyfig/asyfig.tex diff --git a/Master/texmf-dist/tex/latex/asyfig/asyalign.sty b/Master/texmf-dist/tex/latex/asyfig/asyalign.sty deleted file mode 100644 index 366c6f0e970..00000000000 --- a/Master/texmf-dist/tex/latex/asyfig/asyalign.sty +++ /dev/null @@ -1,87 +0,0 @@ -%% LaTeX2e file `asyalign.sty' -%% generated by the `filecontents' environment -%% from source `asyfig' on 2009/07/01. -%% -\ProvidesPackage{asyalign} - -% This package provides code for placing Asymptote labels inline in \LaTeX\ documents. It is adapted from code that is usually included within Aymptote's \<filename>|_.pre| file, which provides a \LaTeX\ preamble for |asy| processing; this preamble is skipped with the \pkg{asyfig} package since all figures inherit the preamble from that of the main document. - -\RequirePackage{ifpdf} - -\newbox\ASYbox -\newdimen\ASYdimen - -\long\def\ASYbase#1#2{% - \leavevmode - \setbox\ASYbox\hbox{#1}% - \ASYdimen=\ht\ASYbox - \setbox\ASYbox\hbox{#2}% - \lower\ASYdimen\box\ASYbox -} - -\ifpdf - - \long\def\ASYaligned(#1,#2)(#3,#4)#5#6#7{% - \leavevmode - \setbox\ASYbox\hbox{#7}% - \setbox\ASYbox\hbox{% - \ASYdimen\ht\ASYbox - \advance\ASYdimen\dp\ASYbox - \kern#3\wd\ASYbox - \raise#4\ASYdimen - \box\ASYbox - }% - \put(#1,#2){% - #5\wd\ASYbox 0pt\dp\ASYbox 0pt\ht\ASYbox 0pt\box\ASYbox#6% - }% - } - - \long\def\ASYalignT(#1,#2)(#3,#4)#5#6{% - \ASYaligned(#1,#2)(#3,#4){% - \special{pdf:q #5 0 0 cm}% - }{% - \special{pdf:Q}% - }{#6}% - } - - \long\def\ASYalign(#1,#2)(#3,#4)#5{\ASYaligned(#1,#2)(#3,#4){}{}{#5}} - - \let\ASYraw\@firstofone - -\else - - \long\def\ASYaligned(#1,#2)(#3,#4)#5#6#7{% - \leavevmode - \setbox\ASYbox\hbox{#7}% - \setbox\ASYbox\hbox{% - \ASYdimen\ht\ASYbox% - \advance\ASYdimen\dp\ASYbox - \kern#3\wd\ASYbox - \raise#4\ASYdimen - \box\ASYbox - }% - \put(#1,#2){#5\wd\ASYbox 0pt\dp\ASYbox 0pt\ht\ASYbox 0pt\box\ASYbox#6}% - } - - \long\def\ASYalignT(#1,#2)(#3,#4)#5#6{% - \ASYaligned(#1,#2)(#3,#4){% - \special{% - ps:gsave currentpoint currentpoint translate - [#5 0 0] concat neg exch neg exch translate% - }% - }{% - \special{ps:currentpoint grestore moveto}% - }{#6}% - } - - \long\def\ASYalign(#1,#2)(#3,#4)#5{\ASYaligned(#1,#2)(#3,#4){}{}{#5}} - - \def\ASYraw#1{% - currentpoint currentpoint translate matrix currentmatrix - 100 12 div -100 12 div scale - #1 - setmatrix neg exch neg exch translate% - } - -\fi - diff --git a/Master/texmf-dist/tex/latex/asyfig/asyfig.sty b/Master/texmf-dist/tex/latex/asyfig/asyfig.sty index fa3c1dd3913..da1fdc10b9a 100644 --- a/Master/texmf-dist/tex/latex/asyfig/asyfig.sty +++ b/Master/texmf-dist/tex/latex/asyfig/asyfig.sty @@ -1,6 +1,6 @@ %% LaTeX2e file `asyfig.sty' %% generated by the `filecontents' environment -%% from source `asyfig' on 2009/07/01. +%% from source `asyfig' on 2009/06/30. %% \ProvidesPackage{asyfig}[2009/06/30 v0.1b Commands for using asymptote figures] diff --git a/Master/texmf-dist/tex/latex/asyfig/asyprocess.sty b/Master/texmf-dist/tex/latex/asyfig/asyprocess.sty deleted file mode 100644 index 57b51494880..00000000000 --- a/Master/texmf-dist/tex/latex/asyfig/asyprocess.sty +++ /dev/null @@ -1,59 +0,0 @@ -%% LaTeX2e file `asyprocess.sty' -%% generated by the `filecontents' environment -%% from source `asyfig' on 2009/07/01. -%% -\ProvidesPackage{asyprocess} -\nofiles - -\RequirePackage{ifmtarg,ifpdf,catchfile,ifplatform,color,graphicx} -\RequirePackage[active,tightpage]{preview} - -\def\@par@macro{\par} - -\def\asy@status{asyprocess-statusfile.txt} - -\edef\@tempa{\detokenize{-comp}} -\@temptokena{\def\asy@strip@comp#1} -\expandafter\the\expandafter\@temptokena\@tempa#2\@nil{% - \@ifmtarg{#2}{% - \errorstopmode - \PackageError{asyprocess}{% - The \string\jobname\space of this compilation must end with `-comp'% - }{% - You must set the \cmd\jobname\ with the equivalent of^^J\space\space - pdflatex -jobname=XYZ-comp ...% - } - }{}% - \edef\asy@compname{#1}} -\expandafter\expandafter\expandafter - \asy@strip@comp\expandafter\jobname\@tempa\@nil - -\newcommand\ProcessAsy{% - \immediate\write18{% - asy -wait -inlinetex -tex \ifpdf pdf\fi latex - \asy@compname\space 2> \asy@status}% - \CatchFileDef{\@tempb}{\asy@status}{}% - \immediate\write18{\ifwindows del \else rm \fi \asy@status} - \ifx\@tempb\@par@macro - \expandafter\@gobble - \else - \g@addto@macro\@tempb{^^J^^J% - ------------ ASY ERROR ------------^^J% - -----------------------------------}% - \expandafter\@firstofone - \fi{% - \errorstopmode - \typeout{% - -----------------------------------^^J% - ------------ ASY ERROR ------------^^J} - \typeout{\expandafter\strip@prefix\meaning\@tempb} - \batchmode - \end{document}}} - -\newcommand\ShowAsy{% - \begin{preview} - \input{\asy@compname_} - \end{preview}} - -\AtBeginDocument{\InputIfFileExists{\asy@compname_.pre}{}{}} - |