On Thursday, July 7, 2011 22:41 Steffen Wolfrum wrote: > Hi Stefan, > thanks for the note. Unfortunately Andreas' module doesn't work anymore.
> I had a correspondence with him on that in April this year: > he could reproduce the error, but had no idea what the reason might be, > resp. what changes in MkIV now cause a conflict with his module. > Maybe Hans knows? > Steffen After a lot of work with ConTeXt the past few weeks, I had some more thoughts on possible causes for this problem. I finally found the culprits: \expandoneargafter doesn't seem to be around anymore ... it works fine without, though. \doifnotempty doesn't quite seem to work (the way I intend it to), so I replaced them with \doifnot{...}{}{...} I attached the current "module" (yes, it's not really a module, but it's slightly more convenient to use that way ... the whole thing is nothing more than a workaround anyway). I hope I haven't killed any functionality while toying around and hunting the bug, but at least my Diploma Thesis looks still right when processed with that "module". Since I currently don't use that module actively, I will probably not enhance or otherwise improve it. So if anyone else feels like providing a better solution for the Ibidem-problem: please do! -- Best Regards, Andreas
\def\mycite{\dodoubleempty\domycite} \def\defaultciterepeat{Ebenda} \def\defaultciteprefix{Vgl. } \def\defaultcitepage{S. } \def\defaultcitechapter{Kap. } \def\domycite[#1][#2]{% \ifsecondargument% \getparameters[MCP][prefix={\defaultciteprefix},page=,chapter=,suffix=,repeat=,#2]% \doinsertmycite[#1]{\MCPprefix}{% \doifnot{\MCPpage}{}{\ \defaultcitepage\MCPpage.}% \doifnot{\MCPchapter}{}{\ \defaultcitechapter\MCPchapter.}% \doifnot{\MCPsuffix}{}{\ \MCPsuffix}% }% \else% \doinsertmycite[#1]{\defaultciteprefix}{}% \fi% } \def\doinsertmycite[#1]#2#3{% \footnote{% \doifelse{\MCPrepeat}{yes}{\global\setvalue{mycitelast}{#1}}{\doif{\MCPrepeat}{no}{\global\setvalue{mycitelast}{}}}% #2\doifnot{#2}{}{\strut}%prefix \doifelse{\getvalue{mycitelast}}{#1}% {\doifelse{#2}{}% {\defaultciterepeat}% {\lowercase{\defaultciterepeat}}%If there's a prefix, lower-case the cite-repeat string .% }% {\doifelse{\getvalue{mycitepast #1}}{used}% {\bgroup% \getcitedata[title][#1] to \bibtitle% \getcitedata[arttitle][#1] to \bibarttitle% \cite[alternative=authoryear][#1]. {\it\bibtitle\bibarttitle}.% \egroup}% {\cite[alternative=data][#1]}% }% #3%suffix \global\setvalue{mycitelast}{#1}% \global\setvalue{mycitepast #1}{used}% }% } %Reset last citation on page break (which we check when placing footnotes) \appendtoks \doifnoteonsamepageelse[footnote]{}{\global\setvalue{mycitelast}{}} \to\everyinsidenoteinsert
smime.p7s
Description: S/MIME Cryptographic Signature
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________