diff options
author | Karl Berry <karl@freefriends.org> | 2013-03-25 23:29:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-03-25 23:29:57 +0000 |
commit | ac6d0cd3c85184c47dcb1498d22d1c69a9a36f2c (patch) | |
tree | f0002aafad50cdc178b6cb171ec32b8e578eb4cc /Master/texmf-dist/tex/latex/abntex2/abntex2cite.sty | |
parent | 1f4b433d5d56d82289b2dd70af8bf0e2b71818a3 (diff) |
abntex2 (24mar13)
git-svn-id: svn://tug.org/texlive/trunk@29502 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/abntex2/abntex2cite.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/abntex2/abntex2cite.sty | 65 |
1 files changed, 37 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/abntex2/abntex2cite.sty b/Master/texmf-dist/tex/latex/abntex2/abntex2cite.sty index 076924c565d..b7a9266e408 100644 --- a/Master/texmf-dist/tex/latex/abntex2/abntex2cite.sty +++ b/Master/texmf-dist/tex/latex/abntex2/abntex2cite.sty @@ -1,4 +1,4 @@ -%% abntex2cite.sty, v-1.5 laurocesar +%% abntex2cite.sty, v-1.6 laurocesar %% Copyright 2012-2013 by abnTeX2 group at http://abntex2.googlecode.com/ %% %% This work may be distributed and/or modified under the @@ -21,6 +21,10 @@ %% %% Revision history: %% +%% 2013/03/08 07h00 laurocesar +%% Corrige criaçao das macros \su@ExpandTwoArgs, \IfSubStringInString e \su@IfSubStringInString +%% importados de substr.sty: apenas criá-las se já não existirem +%% %% 2013/01/31 08h20 laurocesar %% Corrige uso de \singlespacing para evitar incompatibilidade com beamer. %% @@ -28,6 +32,10 @@ %% Add \SingleSpacing before and \OnehalfSpacing after \bibliography command or %% \singlespacing and \onehalfspacing from setspace.sty if memoir is not loaded %% +%% 2013/01/05 14h35 laurocesar +%% Corrige uma incompatibilidade com o Beamer: adiciona a verificação da +%% existência da length \bibindent antes de usá-la. +%% %% 2012/12/13 22h31 laurocesar %% Fork of the version v 1.26 2003/10/13 09:40:41 gweber created by gweber %% Changed file name to from abntcite.sty to abntex2cite.sty @@ -36,11 +44,6 @@ %% %% The original revision history is the following: %% -%% -%% 2013/01/05 14h35 laurocesar -%% Corrige uma incompatibilidade com o Beamer: adiciona a verificação da -%% existência da length \bibindent antes de usá-la. -%% %% 2012/04/26 20h20 laurocesar %% Incluída as contribuições de compatibilização com o pacote backref de %% Alan Wilter Sousa da Silva (AWSS), desenvolvida em 2005-06-26 23:13:59 GMT @@ -191,31 +194,37 @@ % expands the first and second argument with % \protected@edef and calls #3 with them: -\newcommand{\su@ExpandTwoArgs}[3]{% - \protected@edef\su@SubString{#1}% - \protected@edef\su@String{#2}% - \expandafter\expandafter\expandafter#3% - \expandafter\expandafter\expandafter{% - \expandafter\su@SubString\expandafter - }\expandafter{\su@String}% -} +\ifx \su@ExpandTwoArgs\undefined + \newcommand{\su@ExpandTwoArgs}[3]{% + \protected@edef\su@SubString{#1}% + \protected@edef\su@String{#2}% + \expandafter\expandafter\expandafter#3% + \expandafter\expandafter\expandafter{% + \expandafter\su@SubString\expandafter + }\expandafter{\su@String}% + } +\fi %% %% tests if #1 in #2. If yes execute #3, else #4 -\newcommand*{\IfSubStringInString}[2]{% - \su@ExpandTwoArgs{#1}{#2}\su@IfSubStringInString -} +\ifx \IfSubStringInString\undefined + \newcommand*{\IfSubStringInString}[2]{% + \su@ExpandTwoArgs{#1}{#2}\su@IfSubStringInString + } +\fi %% -\newcommand*{\su@IfSubStringInString}[2]{% - \def\su@compare##1#1##2\@nil{% - \def\su@param{##2}% - \ifx\su@param\@empty - \expandafter\@secondoftwo - \else - \expandafter\@firstoftwo - \fi - }% - \su@compare#2#1\@nil -} +\ifx \su@IfSubStringInString\undefined + \newcommand*{\su@IfSubStringInString}[2]{% + \def\su@compare##1#1##2\@nil{% + \def\su@param{##2}% + \ifx\su@param\@empty + \expandafter\@secondoftwo + \else + \expandafter\@firstoftwo + \fi + }% + \su@compare#2#1\@nil + } +\fi %---------------------------------------------------------------- |