summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/preview
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-05-06 21:41:33 +0000
committerKarl Berry <karl@freefriends.org>2017-05-06 21:41:33 +0000
commit3a2be28238774b02f63528fa021cf47376340eaa (patch)
treeabacac62ef9061e8a628f4a9d7cb1d4bff9e1103 /Master/texmf-dist/source/latex/preview
parent734c91dfac1697d69bdd509c8bc7a97750c78f96 (diff)
preview (6may17)
git-svn-id: svn://tug.org/texlive/trunk@44227 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/preview')
-rw-r--r--Master/texmf-dist/source/latex/preview/preview.dtx21
1 files changed, 13 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/preview/preview.dtx b/Master/texmf-dist/source/latex/preview/preview.dtx
index 5372032891d..6729886b1ba 100644
--- a/Master/texmf-dist/source/latex/preview/preview.dtx
+++ b/Master/texmf-dist/source/latex/preview/preview.dtx
@@ -3,7 +3,7 @@
%% Developed as part of AUCTeX <URL:http://www.gnu.org/software/auctex>.
%
% Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006,
-% 2010 Free Software Foundation
+% 2010, 2017 Free Software Foundation
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
@@ -20,10 +20,10 @@
% Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
% Boston, MA 02110-1301 USA
% \fi
-% \CheckSum{1758}
+% \CheckSum{1760}
% \GetFileInfo{preview.sty}
% \date{\filedate}
-% \author{David Kastrup\thanks{\texttt{dak@gnu.org}}}
+% \author{David Kastrup\thanks{\texttt{bug-auctex@gnu.org}}}
% \title{The \texttt{preview} Package for \LaTeX\\Version \fileversion}
% \maketitle
% \section{Introduction}
@@ -37,7 +37,7 @@
% Current uses of the package include the \previewlatex\ package for
% WYSIWYG functionality in the AUC\TeX\ editing environment,
% generation of previews in LyX, as part of the operation of the
-% ps4pdf package, the tbook XML system and some other tools.
+% pst-pdf package, the tbook XML system and some other tools.
%
% Producing EPS files with Dvips and its derivatives using the
% \texttt{-E} option is not a good alternative: People make do by
@@ -388,7 +388,7 @@
%
% As an example for using this argument, you might want to specify
% \begin{quote}
-% |\PreviewMacro*\footnote[{[]}][#1{}]|
+% |\PreviewMacro*[{[]}][#1{}]{\footnote}|
% \end{quote}
% This will replace a footnote by an empty footnote, but taking any
% optional parameter into account, since an optional paramter changes
@@ -420,7 +420,7 @@
% is essential for the operation of \cmd{\PreviewOpen} that the macro
% treated with it will open an additional group even when the preview
% falls inside of another preview or inside of a |nopreview|
-% environment. Similarly, the macro treated with \cmd{PreviewClose}
+% environment. Similarly, the macro treated with \cmd{\PreviewClose}
% will close an environment even when inactive.
%
% \DescribeMacro{\ifPreview} In case you need to know whether
@@ -444,7 +444,7 @@
\def\next release_{} \lccode`\_=`.
\edef\next{\lowercase{\endgroup
\def\noexpand\pr@version{\expandafter\next\pr@version}}} \next \fi
-\reserved@a\next $Date: 2010/02/14 16:19:00 $
+\reserved@a\next $Date: 2017/04/24 13:20:00 $
\edef\next{\noexpand\ProvidesPackage{preview}%
[\next\space \pr@version\space (AUCTeX/preview-latex)]}
\next
@@ -494,13 +494,18 @@
% got executed.
%\begin{macro}{\pr@loadcfg}
% The macro \cmd{\pr@loadcfg} is used for loading in configuration
-% files, unless disabled by the |noconfig| option.
+% files, unless disabled by the |noconfig| option. After discussion
+% with maintainer of pst-pdf package Rolf Niepraschk (Thanks!), we
+% add here a check for existence of |luatex85.sty| and load it if
+% available. With this, |preview| will also work with newer |luatex|
+% versions.
% \begin{macrocode}
%<*!active>
\let\preview@delay=\@gobble
\let\pr@advise=\@gobbletwo
\long\def\pr@advise@ship#1#2#3{}
\def\pr@loadcfg#1{\InputIfFileExists{#1.cfg}{}{}}
+\IfFileExists{luatex85.sty}{\RequirePackage{luatex85}}{}
\DeclareOption{noconfig}{\let\pr@loadcfg=\@gobble}
% \end{macrocode}
%\begin{macro}{\pr@addto@front}