MorganBauer / tufte-latex

Automatically exported from code.google.com/p/tufte-latex
0 stars 0 forks source link

Abbreviated citations, abbreviate all the citations except the first #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(Please attach an example .tex file demonstrating the problem or bug.)

Please describe the feature, problem, or bug:

I am using the patch in 
http://tex.stackexchange.com/questions/45868/can-i-automatically-generate-abbrev
iated-citations-in-tufte-documents-after-the/45878#45878

To get  abbreviated citations for references that are multiply defined. 

What is the expected output? What do you see instead?

I expect that the second citation of repeted referenced apperar abbreviated.
Instead all the citations except the first one are abbreviated.

What version of Tufte-LaTeX are you using?  With which TeX distribution?

Please provide any additional information below.

I attach a test file. 

Original issue reported on code.google.com by zunbe...@gmail.com on 28 Feb 2012 at 1:28

Attachments:

GoogleCodeExporter commented 9 years ago
I change a bit the macro for debugging

\newcommand{\@tufte@print@margin@citation}[1]{%
  % print full citation if bibkey is not in the old bibkeys list
  \renewcommand*{\do}[1]{#1\par}%
  \dolistloop{\@tufte@old@bibkeys}%
  \ifinlist{#1}{\@tufte@old@bibkeys}{%
    \citealp{#1}% print short entry
  }{%
    \bibentry{#1}% print full entry
  % add bibkey to the old bibkeys list
  \listgadd{\@tufte@old@bibkeys}{#1}%
  }%
}

It should print the list of keys, but what I show is that the list is empty in 
the first citation and in the followings it contains just one element, which is 
precisely the key for the current citation.

Original comment by zunbe...@gmail.com on 29 Feb 2012 at 9:45

GoogleCodeExporter commented 9 years ago
I am using tufte-latex version from git.

Original comment by zunbe...@gmail.com on 29 Feb 2012 at 9:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I actually worked out how to fix this, luckily; see my StackExchange answer: 
<http://tex.stackexchange.com/a/232372/73875>.

Original comment by haskell....@gmail.com on 10 Mar 2015 at 3:37