diff options
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/listings/listings.dtx | 35 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/listings/lstdrvrs.dtx | 373 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/listings/lstdrvrs.ins | 4 |
3 files changed, 381 insertions, 31 deletions
diff --git a/Master/texmf-dist/source/latex/listings/listings.dtx b/Master/texmf-dist/source/latex/listings/listings.dtx index b99c0b7aa3b..4767819937f 100644 --- a/Master/texmf-dist/source/latex/listings/listings.dtx +++ b/Master/texmf-dist/source/latex/listings/listings.dtx @@ -30,7 +30,7 @@ % % The package has the LPPL maintenance status "maintained". % -% $Id: listings.dtx 84 2013-08-26 19:50:43Z j_hoffmann $ +% $Id: listings.dtx 125 2014-03-04 19:53:21Z j_hoffmann $ % % The Current Maintainer is Jobst Hoffmann <j.hoffmann-(at)-fh-aachen.de>. % @@ -115,7 +115,7 @@ % Hoffmann became the maintainer of the \packagename{listings} % package in 2013; see the Preface for details.}~ % % \textless\lstemail\textgreater} -% \date{2013/08/26\enspace\enspace Version 1.5b\ \box\abstractbox} +% \date{2014/03/04\enspace\enspace Version 1.5c\ \box\abstractbox} % \def\lstemail{\href{mailto:j.hoffmann@fh-aachen.de}{\texttt{j.hoffmann-(at)-fh-aachen.de}}} % \ifhyper % \hypersetup{pdfsubject=Package guide,pdfauthor=Jobst Hoffmann <j.hoffmann-(at)-fh-aachen.de>} @@ -5531,7 +5531,7 @@ % \part{Implementation} % % -% \CheckSum{12359} +% \CheckSum{12367} %^^A %^^A Don't index TeX-primitives. %^^A @@ -5672,8 +5672,8 @@ % \paragraph{Identification} % All files will have same date and version. % \begin{macrocode} -\def\filedate{2013/08/26} -\def\fileversion{1.5b} +\def\filedate{2014/03/04} +\def\fileversion{1.5c} % \end{macrocode} % What we need and who we are. % \begin{macrocode} @@ -13424,7 +13424,17 @@ \global\advance\c@lstnumber-\lst@advancelstnum \ifx \lst@firstnumber\c@lstnumber \global\advance\c@lstnumber-\lst@advancelstnum - \fi} + \fi% +% \end{macrocode} +% \lstthanks{Byron~K.~Boulton}{bkboulton@berriehill.com}{2013/11/21} +% reported, that the line numbers are off by one, if the are displayed when +% a linerange is given by patterns and |includerangemarker=false| is +% set. Adding this test corrects this behaviour. +% \begin{macrocode} + \lst@ifincluderangemarker\else% + \global\advance\c@lstnumber by 1% + \fi% + } % \end{macrocode} % % The end-marker is defined if and only if it's not empty. The definition is @@ -14265,7 +14275,18 @@ \def\lst@boxpos{b}% \lsthk@PreSet\lstset{flexiblecolumns,#1}% \lsthk@TextStyle - \@ifnextchar\bgroup{\afterassignment\lst@InlineG \let\@let@token}% + \@ifnextchar\bgroup{% +% \end{macrocode} +% \lstthanks{Luc~Van~Eycken}{Luc.VanEycken@esat.kuleuven.be}{2014/01/22} +% reported, that the experimental implementation of |\lstinline| with +% braces instead of characters surrounding the source code resulted in an +% error if used in a tabular environment. He found that this error comes +% from the master counter (cf. appendix D (Dirty Tricks), item 5. (Brace +% hacks), of the TeXbook (p. 385-386)). Adding the following line remedies +% the wrong behaviour. +% \begin{macrocode} + \ifnum`{=0}\fi% + \afterassignment\lst@InlineG \let\@let@token}% \lstinline@} \def\lstinline@#1{% \lst@Init\relax diff --git a/Master/texmf-dist/source/latex/listings/lstdrvrs.dtx b/Master/texmf-dist/source/latex/listings/lstdrvrs.dtx index 1c790c52ea8..10253633a27 100644 --- a/Master/texmf-dist/source/latex/listings/lstdrvrs.dtx +++ b/Master/texmf-dist/source/latex/listings/lstdrvrs.dtx @@ -1,6 +1,6 @@ % \iffalse % -% $Id: lstdrvrs.dtx 85 2013-08-26 19:53:54Z j_hoffmann $ +% $Id: lstdrvrs.dtx 126 2014-03-04 19:53:34Z j_hoffmann $ % %<*driver> \documentclass{ltxdoc} @@ -32,7 +32,7 @@ % % \title{Language, Style and Format drivers\\ for \textsf{Listings}\\ {\large by Carsten Heinz and individual authors:}} % \author{\InputIfFileExists{lstdrvrs.tmp}{}{}} -% \date{2013/08/26\enspace\enspace Version 1.5b\ \box\abstractbox} +% \date{2014/03/04\enspace\enspace Version 1.5c\ \box\abstractbox} % % \hypersetup{pdfsubject=Language definitions,pdfauthor=Jobst Hoffmann % <j.hoffmann-(at)-fh-aachen.de>} @@ -100,6 +100,8 @@ } \generate{ + \file{listings-acm.prf}{\from{lstdrvrs.dtx}{acm-prf}} + \file{listings-fortran.prf}{\from{lstdrvrs.dtx}{fortran-prf}} \file{listings-lua.prf}{\from{lstdrvrs.dtx}{lua-prf}} \file{listings-python.prf}{\from{lstdrvrs.dtx}{python-prf}} } @@ -126,7 +128,7 @@ % \endgroup % We mainly define default dialects. % \begin{macrocode} -\ProvidesFile{listings.cfg}[2013/08/26 1.5b listings configuration] +\ProvidesFile{listings.cfg}[2014/03/04 1.5c listings configuration] \def\lstlanguagefiles {lstlang0.sty,lstlang1.sty,lstlang2.sty,lstlang3.sty} \lstset{defaultdialect=[R/3 6.10]ABAP, @@ -167,9 +169,11 @@ %<+lang1>\ProvidesFile{lstlang1.sty} %<+lang2>\ProvidesFile{lstlang2.sty} %<+lang3>\ProvidesFile{lstlang3.sty} +%<+acm-prf>\ProvidesFile{listings-acm.prf} +%<+fortran-prf>\ProvidesFile{listings-fortran.prf} %<+lua-prf>\ProvidesFile{listings-lua.prf} %<+python-prf>\ProvidesFile{listings-python.prf} -%<-config> [2013/08/26 1.5b listings language file] +%<-config> [2014/03/04 1.5c listings language file] % \end{macrocode} % % @@ -267,6 +271,109 @@ % \endgroup % % +% \subsection{ACM} +% +% ACM is the language of the Aspen Custom Modeler +% (\url{http://www.aspentech.com/products/aspen-custom-modeler.aspx}), the +% language definition was provided by \lstthanks{Stefan Pinnow}{Stefan +% Pinnow <Mo-Gul@gmx.net>}{2013/09/08}. It is intended for writing models. +% \begingroup +% \begin{macrocode} +%<*lang2> +% \end{macrocode} +% \begin{macrocode} +%% +%% ACM and ACMscript definition +%% (c) 2013 Stefan Pinnow +%% +\lst@definelanguage{ACM}{ + morekeywords={ + abs,After,acos,And,As,asin,atan,At,Call,Compatibility,Connect,cos,cosh,% + Create,Delay,Difference,Do,Else,ElseIf,End,EndFor,EndIf,EndParallel,% + EndState,EndSwitch,EndText,EndWith,exp,External,Fixed,For,ForEach,Free,% + Global,Hidden,If,Implementation,In,Initial,Input,InterSection,% + IntegerSet,Invoke,Is,Language,Library,Link,Log10,LogE,Max,Min,Model,Of,% + Once,Options,Output,Parallel,Parameter,Pause,Port,Print,Private,% + Procedure,Product,Ramp,Repeat,Restart,Return,Round,Runs,Sigma,sin,sinh,% + Size,SnapShot,sqr,sqrt,SRamp,State,Stream,StringSet,Structure,Switch,% + SubRoutine,SymDiff,tan,tanh,Task,Text,Time,Then,Truncate,Union,Until,% + Uses,Variable,Wait,When,With,WithIn,WorkSpace% + },% + sensitive=false,% + morecomment=[l]{//},% + morecomment=[s]{/*}{*/},% + string=[b]{"},% +}[keywords,comments,strings]% +% \end{macrocode} +% \begin{macrocode} +%</lang2> +% \end{macrocode} +% \endgroup +% +% In addition to writing models there is a language ACMscript, which is +% similar to VBScript. According to Stefan Pinnow this language is used for +% writing scripts for the models. +% \begingroup +% \begin{macrocode} +%<*lang2> +% \end{macrocode} +% \begin{macrocode} +\lst@definelanguage{ACMscript}[]{VBScript}{% + morekeywords={% + ElseIf,False,In,Resume,True% + },% + deletekeywords={% + Abs,Array,Clear,CreateObject,CStr,Err,ForReading,ForWriting,% + OpenTextFile,Replace,WriteLine% + }% +}[keywords,comments,strings]% +% \end{macrocode} +% \begin{macrocode} +%</lang2> +% \end{macrocode} +% \endgroup +% +% \begingroup +% Stefan Pinnow also supplied a definition of a style for printing ACM code: +% \begin{macrocode} +%<*acm-prf> +% \end{macrocode} +% \begin{macrocode} +\usepackage[rgb, x11names]{xcolor} + +\definecolor{Comments}{rgb}{0.00,0.50,0.00} +\definecolor{KeyWords}{rgb}{0.00,0.00,0.63} +\definecolor{Strings}{rgb}{0.84,0.00,0.00} + +\lstdefinestyle{ACM}{% + basicstyle=\scriptsize\ttfamily,% + keywordstyle=\color{KeyWords},% + showstringspaces=false,% + identifierstyle=\color{black},% + commentstyle=\color{Comments},% + stringstyle=\color{Strings},% + frame=shadowbox,% % for ACM-Code scrartcl commented out +% frame=l,% % line on the left side + rulesepcolor=\color{black},% + numbers=left,% % left + firstnumber=1,% + stepnumber=5,% + columns=fixed,% % to prevent inserting spaces + fontadjust=true,% + basewidth=0.5em,% + captionpos=t,% + abovecaptionskip=\smallskipamount,% same amount as default + belowcaptionskip=\smallskipamount,% in caption package +}% +% \end{macrocode} +% This code is provided in the file |listings-acm.prf|, see section +% 2.4.1 (Preferences) of the \packagename{listings} documentation. +% \begin{macrocode} +%</acm-prf> +% \end{macrocode} +% \endgroup +% +% % \subsection{ACSL} % % This language was provided by \lstthanks{Andreas~Matthias}{amat@kabsi.at} @@ -1528,7 +1635,17 @@ SUBX,SWAP,TAS,TRAP,TRAPV,TST,UNLK},% % \begin{macrocode} \lst@definelanguage[08]{Fortran}[03]{Fortran}{% morekeywords={ALL, BLOCK, CODIMENSION, CONCURRENT, CONTIGUOUS, CRITICAL,% - ERROR, LOCK, SUBMODULE, SYNC, UNLOCK}% + ERROR, LOCK, SUBMODULE, SYNC, UNLOCK},% +% \end{macrocode} +% New procedures in Fortran 2008: +% \begin{macrocode} + morekeywords=[3]{ACOSH,ASINH,ATANH,ATOMIC_DEFINE,ATOMIC_REF,BESSEL_J0,% + BESSEL_J1,BESSEL_JN,BESSEL_Y0,BESSEL_Y1,BESSEL_YN,BGE,BGT,BLE,BLT,% + C_SIZEOF,COMPILER_OPTIONS,COMPILER_VERSION,DSHIFTL,DSHIFTR,ERF,ERFC,% + ERFC_SCALED,EXECUTE_COMMAND_LINE,GAMMA,HYPOT,IALL,IANY,IMAGE_INDEX,% + IPARITY,LCOBOUND,LEADZ,LOG_GAMMA,MASKL,MASKR,MERGE_BITS,NORM2,% + NUM_IMAGES,PARITY,POPCNT,POPPAR,SHIFTA,SHIFTL,SHIFTR,STORAGE_SIZE,% + THIS_IMAGE,TRAILZ,UCOBOUND}% }% % \end{macrocode} % Fortran 2003 introduces the following keywords: @@ -1536,7 +1653,18 @@ SUBX,SWAP,TAS,TRAP,TRAPV,TST,UNLK},% \lst@definelanguage[03]{Fortran}[95]{Fortran}{% morekeywords={ABSTRACT, ASSOCIATE, ASYNCHRONOUS, BIND, CLASS, DEFERRED,% ENUM, ENUMERATOR, EXTENDS, FINAL, FLUSH, GENERIC, IMPORT,% - NON_OVERRIDABLE, NOPASS, PASS, PROTECTED, VALUE, VOLATILE, WAIT}% + NON_OVERRIDABLE, NOPASS, PASS, PROTECTED, VALUE, VOLATILE, WAIT},% +% \end{macrocode} +% These are new options/specifiers: +% \begin{macrocode} + morekeywords=[2]{DECIMAL,ENCODING,IOMSG,ROUND},% corrected NML from NMT +% \end{macrocode} +% And also some new procedures: +% \begin{macrocode} + morekeywords=[3]{C_ASSOCIATED,C_F_POINTER,C_F_PROCPOINTER,C_FUNLOC,% + C_LOC,COMMAND_ARGUMENT_COUNT,EXTENDS_TYPE_OF,GET_COMMAND,GET_COMMAND_ARGUMENT,% + GET_ENVIRONMENT_VARIABLE,IS_IOSTAT_END,MOVE_ALLOC,NEW_LINE,SAME_TYPE_AS,% + SELECTED_CHAR_KIND}% }% % \end{macrocode} % \lsthelper{Denis Girou}{Denis.Girou@idris.fr}{1998/07/26}{Fortran 95=90} @@ -1551,11 +1679,11 @@ SUBX,SWAP,TAS,TRAP,TRAPV,TST,UNLK},% % \begin{macrocode} \lst@definelanguage[95]{Fortran}[77]{Fortran}% {deletekeywords=SAVE,% - morekeywords={ACTION,ADVANCE,ALLOCATE,ALLOCATABLE,ASSIGNMENT,CASE,% - CONTAINS,CYCLE,DEALLOCATE,DEFAULT,DELIM,EXIT,INCLUDE,IN,NONE,IN,% - OUT,INTENT,INTERFACE,IOLENGTH,KIND,LEN,MODULE,NAME,NAMELIST,NMT,% - NULLIFY,ONLY,OPERATOR,OPTIONAL,OUT,PAD,POINTER,POSITION,PRIVATE,% - PUBLIC,READWRITE,RECURSIVE,RESULT,SELECT,SEQUENCE,SIZE,STAT,% + morekeywords={ALLOCATABLE,ALLOCATE,ASSIGNMENT,CASE,% + CONTAINS,CYCLE,DEALLOCATE,DEFAULT,EXIT,INCLUDE,IN,NONE,% + OUT,INTENT,INTERFACE,MODULE,NAMELIST,% + NULLIFY,ONLY,OPERATOR,OPTIONAL,OUT,POINTER,PRIVATE,% + PUBLIC,RECURSIVE,RESULT,SELECT,SEQUENCE,% TARGET,USE,WHERE,WHILE,BLOCKDATA,DOUBLEPRECISION,% ENDBLOCKDATA,ENDFILE,ENDFUNCTION,ENDINTERFACE,% ENDMODULE,ENDPROGRAM,ENDSELECT,ENDSUBROUTINE,ENDTYPE,ENDWHERE,% @@ -1565,8 +1693,23 @@ SUBX,SWAP,TAS,TRAP,TRAPV,TST,UNLK},% % \begin{macrocode} ELEMENTAL, ELSEWHERE, FORALL, PURE},% % \end{macrocode} -% and here are the final settings for Fortran +% The list of option keywords/specifiers new in Fortran 90 and 95: +% \begin{macrocode} + morekeywords=[2]{ACTION,ADVANCE,DELIM,IOLENGTH,LEN,NAME,% + NML,PAD,POSITION,READWRITE,SIZE,STAT},% corrected NML from NMT +% \end{macrocode} +% and the list of intrinsic procedures new in Fortran 90 and 95: % \begin{macrocode} + morekeywords=[3]{ADJUSTL,ADJUSTR,ALL,ALLOCATED,ANY,ASSOCIATED,BIT_SIZE,% + BTEST,CEILING,COUNT,CPU_TIME,CSHIFT,DATE_AND_TIME,DIGITS,DOT_PRODUCT,% + EOSHIFT,EPSILON,EXPONENT,FLOOR,FRACTION,HUGE,IACHAR,IAND,IBCLR, + IBITS,IBSET,ICHAR,IEOR,IOR,ISHFT,ISHFTC,KIND,LBOUND,LEN_TRIM,% left out LOGICAL + MATMUL,MAXEXPONENT,MAXLOC,MAXVAL,MERGE,MINEXPONENT,MINLOC,MINVAL,% + MODULO,MVBITS,NEAREST,NOT,NULL,PACK,PRECISION,PRESENT,PRODUCT,% + RADIX,RANDOM_NUMBER,RANDOM_SEED,RANGE,RANK,REPEAT,RESHAPE,RRSPACING,% + SCALE,SCAN,SELECTED_INT_KIND,SELECTED_REAL_KIND,SET_EXPONENT,SHAPE,% + SINH,SIZE,SPACING,SPREAD,SUM,SYSTEM_CLOCK,TINY,TRANSFER,TRANSPOSE,% + TRIM,UBOUND,UNPACK,VERIFY},% deletecomment=[f],% no fixed comment line: 1998 Magne Rudshaug morecomment=[l]!% }% @@ -1578,14 +1721,35 @@ SUBX,SWAP,TAS,TRAP,TRAPV,TST,UNLK},% % more common variants (e.g., `GO TO' and `GOTO'). % \begin{macrocode} \lst@definelanguage[77]{Fortran}% - {morekeywords={ACCESS,ASSIGN,BACKSPACE,BLANK,BLOCK,CALL,CHARACTER,% - CLOSE,COMMON,COMPLEX,CONTINUE,DATA,DIMENSION,DIRECT,DO,DOUBLE,% - ELSE,ELSEIF,END,ENDIF,ENDDO,ENTRY,EOF,EQUIVALENCE,ERR,EXIST,EXTERNAL,% - FILE,FMT,FORM,FORMAT,FORMATTED,FUNCTION,GO,TO,GOTO,IF,IMPLICIT,% - INQUIRE,INTEGER,INTRINSIC,IOSTAT,LOGICAL,NAMED,NEXTREC,NUMBER,% - OPEN,OPENED,PARAMETER,PAUSE,PRECISION,PRINT,PROGRAM,READ,REAL,% - REC,RECL,RETURN,REWIND,SEQUENTIAL,STATUS,STOP,SUBROUTINE,THEN,% - TYPE,UNFORMATTED,UNIT,WRITE,SAVE},% +% \end{macrocode} +% Jobst Hoffmann divided the list of keywords into two lists. The first +% list contains the statement keywords, the second list contains the option +% keywords/specifiers and values. This makes the different meanings of the +% keywords distinguishable. +% \begin{macrocode} + {morekeywords={ASSIGN,BACKSPACE,CALL,CHARACTER,% + CLOSE,COMMON,COMPLEX,CONTINUE,DATA,DIMENSION,DO,DOUBLE,% + ELSE,ELSEIF,END,ENDIF,ENDDO,ENTRY,EQUIVALENCE,EXTERNAL,% + FILE,FORMAT,FUNCTION,GO,TO,GOTO,IF,IMPLICIT,% + INQUIRE,INTEGER,INTRINSIC,LOGICAL,% + OPEN,PARAMETER,PAUSE,PRECISION,PRINT,PROGRAM,READ,REAL,% + RETURN,REWIND,STOP,SUBROUTINE,THEN,% + WRITE,SAVE},% + morekeywords=[2]{ACCESS,BLANK,BLOCK,DIRECT,EOF,ERR,EXIST,% + FMT,FORM,FORMATTED,IOSTAT,NAMED,NEXTREC,NUMBER,OPENED,% + REC,RECL,SEQUENTIAL,STATUS,TYPE,UNFORMATTED,UNIT},% +% \end{macrocode} +% And here is another list: the list of intrinsic procedures (remember: all +% functions belong to the Fortran language specification!) +% \begin{macrocode} + morekeywords=[3]{INT,DBLE,CMPLX,ICHAR,CHAR,AINT,ANINT,% left out real + NINT,ABS,MOD,SIGN,DIM,DPROD,MAX,MIN,AIMAG,CONJG,SQRT,EXP,LOG,% + LOG10,SIN,COS,TAN,ASIN,ACOS,ATAN,ATAN2,SINH,COSH,TANH,LGE,LLE,LLT,% + LEN,INDEX},% +% \end{macrocode} +% And here is the last list: fortran operators: +% \begin{macrocode} + morekeywords=[4]{AND,EQ,EQV,FALSE,GE,GT,OR,LE,LT,NE,NEQV,NOT,TRUE},% sensitive=f,%% not Fortran-77 standard, but allowed in Fortran-95 %% morecomment=[f]*,% morecomment=[f]C,% @@ -1599,6 +1763,61 @@ SUBX,SWAP,TAS,TRAP,TRAPV,TST,UNLK},% % \end{macrocode} % \endgroup % +% \begingroup +% Jobst Hoffmann supplied a definition of a style for printing Fortran code: +% \begin{macrocode} +%<*fortran-prf> +% \end{macrocode} +% \begin{macrocode} +\usepackage[rgb, x11names]{xcolor} + +% common settings +\lstset{% + frame=tlb,% the frame is open on the right side + resetmargins=false,% + rulesepcolor=\color{black},% + numbers=left,% % left + numberstyle=\tiny,% + numbersep=5pt,% + firstnumber=1,% + stepnumber=5,% + columns=fixed,% % to prevent inserting spaces + fontadjust=true,% + keepspaces=true,% + basewidth=0.5em,% + captionpos=t,% + abovecaptionskip=\smallskipamount,% same amount as default + belowcaptionskip=\smallskipamount,% in caption package +} +% settings for colored printing +\lstdefinestyle{fortran}{% + backgroundcolor=\color{yellow!10},% + basicstyle=\small\ttfamily,% + identifierstyle=\color{black},% + keywordstyle=\color{blue},% + keywordstyle={[2]\color{cyan}},% + keywordstyle={[3]\color{olive}},% + stringstyle=\color{teal},% + commentstyle=\itshape\color{orange},% +}% +% settings for back and white printing +\lstdefinestyle{fortranbw}{% + backgroundcolor={},% + basicstyle=\small\ttfamily,% + identifierstyle={},% + keywordstyle=\bfseries,% + stringstyle=\itshape,% + commentstyle=\slshape,% + rulesepcolor=\color{black},% +}% +% \end{macrocode} +% This code is provided in the file |listings-fortran.prf|, see section +% 2.4.1 (Preferences) of the \packagename{listings} documentation. +% \begin{macrocode} +%</fortran-prf> +% \end{macrocode} +% \endgroup +% % % \subsection{GAP---Groups, Algorithms, Programming} %\label{sec:gap} @@ -1716,6 +1935,111 @@ SUBX,SWAP,TAS,TRAP,TRAPV,TST,UNLK},% % \endgroup % % +% \subsection{Hansl/Gretl} +% +% Thanks to \lstthanks{Ignacio +% D\'{i}az-Emparanza}{ignacio.diaz-emparanza@ehu.es}{2013/10/24} for providing +% the definition of hansl. Hansl is the gretl scripting language (see +% \url{http://gretl.sourceforge.net}). +% \begingroup +% \begin{macrocode} +%<*lang2> +% \end{macrocode} +% \begin{macrocode} +%% +%% http://gretl.sourceforge.net/gretl-help/cmdref.html +%% (c) 2013 Ignacio D\'iaz-Emparanza +%% +\lst@definelanguage{hansl}{% + % $-variables are internal functions in hansl + keywordsprefix ={\$}, + morekeywords={ % hansl commands: + add,adf,anova,append,ar,ar1,% + arbond,arch,arima,biprobit,boxplot,break,% + catch,chow,clear,coeffsum,coint,coint2,% + corr,corrgm,cusum,data,dataset,debug,% + delete,diff,difftest,discrete,dpanel,dummify,% + duration,elif,else,end,endif,endloop,% + eqnprint,equation,estimate,fcast,foreign,fractint,% + freq,function,garch,genr,gmm,gnuplot,% + graphpg,hausman,heckit,help,hsk,hurst,% + if,include,info,intreg,join,kalman,% + kpss,labels,lad,lags,ldiff,leverage,% + levinlin,logistic,logit,logs,loop,mahal,% + makepkg,markers,meantest,mle,modeltab,modprint,% + modtest,mpols,negbin,nls,normtest,nulldata,% + ols,omit,open,orthdev,outfile,panel,% + pca,pergm,poisson,print,printf,probit,% + pvalue,qlrtest,qqplot,quantreg,quit,rename,% + reset,restrict,rmplot,run,runs,scatters,% + sdiff,set,setinfo,setobs,setmiss,shell,% + smpl,spearman,sprintf,square,sscanf,store,% + summary,system,tabprint,textplot,tobit,tsls,% + var,varlist,vartest,vecm,vif,wls,% + xcorrgm,xtab,scalar,series,matrix,string},% + morekeywords=[2]{ % Functions + abs,acos,acosh,aggregate,argname,% + asin,asinh,atan,atanh,atof,% + bessel,BFGSmax,bkfilt,boxcox,bwfilt,% + cdemean,cdf,cdiv,ceil,cholesky,% + chowlin,cmult,cnorm,colname,colnames,% + cols,corr,corrgm,cos,cosh,% + cov,critical,cum,deseas,det,% + diag,diagcat,diff,digamma,dnorm,% + dsort,dummify,eigengen,eigensym,eigsolve,% + epochday,errmsg,exp,fcstats,fdjac,% + fft,ffti,filter,firstobs,fixname,% + floor,fracdiff,gammafun,getenv,getline,% + ghk,gini,ginv,halton,hdprod,% + hpfilt,I,imaxc,imaxr,imhof,% + iminc,iminr,inbundle,infnorm,inlist,% + int,inv,invcdf,invmills,invpd,% + irf,irr,isconst,isnan,isnull,% + isodate,iwishart,kdensity,kfilter,ksimul,% + ksmooth,kurtosis,lags,lastobs,ldet,% + ldiff,lincomb,ljungbox,lngamma,log,% + log10,log2,loess,logistic,lower,% + lrvar,max,maxc,maxr,mcorr,% + mcov,mcovg,mean,meanc,meanr,% + median,mexp,min,minc,minr,% + missing,misszero,mlag,mnormal,mols,% + monthlen,movavg,mpols,mrandgen,mread,% + mreverse,mrls,mshape,msortby,muniform,% + mwrite,mxtab,nadarwat,nelem,ngetenv,% + nobs,normal,npv,NRmax,nullspace,% + obs,obslabel,obsnum,ok,onenorm,% + ones,orthdev,pdf,pergm,pmax,% + pmean,pmin,pnobs,polroots,polyfit,% + princomp,prodc,prodr,psd,psdroot,% + pshrink,psum,pvalue,pxsum,qform,% + qnorm,qrdecomp,quadtable,quantile,randgen,% + randgen1,randint,rank,ranking,rcond,% + readfile,regsub,remove,replace,resample,% + round,rownames,rows,sd,sdc,% + sdiff,selifc,selifr,seq,setnote,% + simann,sin,sinh,skewness,sort,% + sortby,sqrt,sscanf,sst,strlen,% + strncmp,strsplit,strstr,strstrip,strsub,% + sum,sumall,sumc,sumr,svd,% + tan,tanh,toepsolv,tolower,toupper,% + tr,transp,trimr,typestr,uniform,% + uniq,unvech,upper,urcpval,values,% + var,varname,varnum,varsimul,vec,% + vech,weekday,wmean,wsd,wvar,% + xmax,xmin,xpx,zeromiss,zeros,% + },% + sensitive=t,% + morecomment=[l]{\#},% + morecomment=[s]{/*}{*/},% + morestring=[b]{"}}% +\lstalias{gretl}{hansl} +% \end{macrocode} +% \begin{macrocode} +%</lang2> +% \end{macrocode} +% \endgroup +% +% % \subsection{Haskell} % % Thanks to \lstthanks{Peter~Bartke}{bartke@inf.fu-berlin.de}{1999/11/18} for @@ -1948,7 +2272,7 @@ SUBX,SWAP,TAS,TRAP,TRAPV,TST,UNLK},% life,list_together,name number,orders,parse_name,plural,% react_after,react_before,short_name,short_name_indef,time_left,% time_out,when_closed,when_open,when_on,when_off,% - with_key}, + with_key},% % % Library routines morekeywords=[6]{Achieved,AfterRoutines,AllowPushDir,Banner,ChangePlayer,% @@ -6580,6 +6904,9 @@ literate=% widehat,widetilde,wlog,wp,wr,xi,Xi,zeta}% }% % \end{macrocode} +% \lsthelper{Herbert Voss}{Herbert.Voss@FU-Berlin.DE}{2013-12-12}{typo} pointed +% to a typo: the \TeX{} primitive is |lineskiplimit| instead of +% |lineskiplimits|. % \begin{macrocode} \lst@definelanguage[primitive]{TeX}% {moretexcs={above,abovedisplayshortskip,abovedisplayskip,aftergroup,% @@ -6605,7 +6932,7 @@ literate=% ignorespaces,immediate,indent,input,insert,insertpenalties,% interlinepenalty,jobname,kern,language,lastbox,lastkern,% lastpenalty,lastskip,lccode,leaders,left,lefthyphenmin,leftskip,% - leqno,let,limits,linepenalty,lineskip,lineskiplimits,long,% + leqno,let,limits,linepenalty,lineskip,lineskiplimit,long,% looseness,lower,lowercase,mag,mark,mathaccent,mathbin,mathchar,% mathchardef,mathchoice,mathclose,mathcode,mathinner,mathop,% mathopen,mathord,mathpunct,mathrel,mathsurround,maxdeadcycles,% @@ -6634,7 +6961,7 @@ literate=% vfilneg,vfuzz,voffset,vrule,vsize,vskip,vsplit,vss,vtop,wd,% widowpenalty,write,xdef,xleaders,xspaceskip,year},% sensitive,% - alsoother={0123456789$_},% + alsoother={0123456789$_},%$ to make Emacs fontlocking happy morecomment=[l]\%% }[keywords,tex,comments]% % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/listings/lstdrvrs.ins b/Master/texmf-dist/source/latex/listings/lstdrvrs.ins index 993ab30b8bd..35958a9f1b5 100644 --- a/Master/texmf-dist/source/latex/listings/lstdrvrs.ins +++ b/Master/texmf-dist/source/latex/listings/lstdrvrs.ins @@ -38,6 +38,8 @@ } \generate{ + \file{listings-acm.prf}{\from{lstdrvrs.dtx}{acm-prf}} + \file{listings-fortran.prf}{\from{lstdrvrs.dtx}{fortran-prf}} \file{listings-lua.prf}{\from{lstdrvrs.dtx}{lua-prf}} \file{listings-python.prf}{\from{lstdrvrs.dtx}{python-prf}} } @@ -52,7 +54,7 @@ } \endbatchfile - [2013/08/26 1.5b listings language file] + [2014/03/04 1.5c listings language file] \endinput %% %% End of file `lstdrvrs.ins'. |