#StackBounty: #biblatex #bibliographies #footnotes #footcite How to combine repeated bibliography entries when using footcite?

Bounty: 50

If I cite the same source several times consecutively, it produces a bibliography list consisting of identical items:


  1. author, title
  2. author, title
begin{filecontents}{database.bib}
@Misc{key,
    author      = {author},
    title       = {title},
}
end{filecontents}

documentclass{article}
usepackage[autocite=footnote,style=authortitle]{biblatex}
bibliography{database.bib}
begin{document}
begin{itemize}
item one pointautocite{key}
item another oneautocite{key}
end{itemize}
end{document}

How do I compress the list in the footnote to look like this:


1,2 author, title


Get this bounty!!!

#StackBounty: #biblatex #bibliographies #footnotes How to combine bibliography entries under one label in footnotes?

Bounty: 50

If I cite the same source several times consecutively, it produces a bibliography list consisting of identical items:


  1. author, title
  2. author, title
begin{filecontents}{database.bib}
@Misc{key,
    author      = {author},
    title       = {title},
}
end{filecontents}

documentclass{article}
usepackage[autocite=footnote,style=authortitle]{biblatex}
bibliography{database.bib}
begin{document}
begin{itemize}
item one pointautocite{key}
item another oneautocite{key}
end{itemize}
end{document}

How do I compress the list in the footnote to look like this:


1,2 author, title


Get this bounty!!!

#StackBounty: #errors #luatex #footnotes #compiling #expl3 How correct do auto tagging of page break

Bounty: 150

In our package i want handle page break,to use tagpdf package in genericnode. For this i want to redefine tagncbegin/tagncend commands, to save last params of tagging. For this i save this params in tallest,but when i redefine naketitle command,i get an error:

            inaccessible 

l.73 maketitle
Also i have a problem with converting of tlist to keys,because according to documentation, in l3keys arguments consider as strings, so name of variables in arguments will consider as string value,but not as name of variable,which should be expanded. Help me please solve this problems. Thanks everybody very much for any help (i use the latest version of tagpdf and pdfresources packages from newest )branches on GitHub and sorry for line separators,because i modified and write now my post from my Mac).

RequirePackage[patches]{pdfresources}
DeclareDocumentMetadata{pdfversion=2.0}
documentclass{article}
usepackage{tagpdf}
tagpdfsetup{tabsorder=structure,uncompress,activate-all,add-new-tag=Title/P,interwordspace=true}
ExplSyntaxOn
makeatletter
  tl_new:N g__last_mc_tl %last opened mc tag with all params
  bool_new:N g__inside_new_page_command_bool
letorig@tagmcbegin=tagmcbegin
  letorig@tagmcend=tagmcend
letorig@newpage=newpage
renewcommand{tagmcbegin}[1]{
tl_gset:Nn  g__last_mc_tl{#1}
orig@tagmcbegin{#1}
}
renewcommand{tagmcend}{
orig@tagmcend
bool_if:NTF g__inside_new_page_command_bool{}{tl_gclear:N g__last_mc_tl}
}
  renewcommand{newpage}{
  tl_if_empty:NTF g__last_mc_tl{
  orig@newpage
}{
bool_gset_true:N g__inside_new_page_command_bool
tagmcend
bool_gset_false:N g__inside_new_page_command_bool
orig@newpage
tagmcbegin{g__last_mc_tl}
}}
%tagging of title

prop_set_from_keyval:Nn l__kozlovskiy_data_of_title_prop
  {
    @author = H1 ,
    @date   = H1 ,
    @title  = H1 ,
  }
DeclareRobustCommandthanks[1]{footnotemark
    protected@xdef@thanks{@thanks
        protectfootnotetext[thec@footnote]{tagstructbegin{tag=H1}tagmcbegin{tag=H1}#1tagmcendtagstructend}}
}
cs_new_protected:Npn kozlovskiy_maketitle:
  {
    tagstructbegin{tag=Title}
prop_map_inline:Nn l__kozlovskiy_data_of_title_prop{
cs_set_eq:cc { orig@##1 } { ##1 }
bool_if:nTF{tl_if_empty_p:N {##1}}
{
use:c { orig@##1 }
}
{
cs_gset_protected:cpn { ##1 } {
tagstructbegin{tag=##2}
tagmcbegin{tag=##2}
use:c { orig@##1 } 
tagmcend
tagstructend
}
}
}
__kozlovskiy_original_maketitle:
    tagstructend
  }
cs_new_eq:NN __kozlovskiy_original_maketitle: maketitle
cs_gset_protected:Npn maketitle { kozlovskiy_maketitle: }
makeatother
ExplSyntaxOff
begin{document}
tagstructbegin{tag=Document}
author{Alexandr Kozlovskiy}
title{test thanks{Alexandr Kozlovskiy}}
maketitle{}
tagstructbegin{tag=P}
tagmcbegin{tag=P}
Test
newpage
test again
tagmcend
tagstructend
tagstructend
end{document}


Get this bounty!!!

#StackBounty: #biblatex #footnotes supercite and footnote

Bounty: 100

I use a newcommand combining supercite and footfullcite to have a bibliography reference in footnote and the same in the bibliography. I can’t merge the numbers of the citation.

documentclass[a4paper,11pt]{book}
usepackage{geometry} 
usepackage[T1]{fontenc}
usepackage[french]{babel}    
usepackage[autopunct=true,giveninits=true,autocite=superscript,backend=bibtex,sorting=none, sortlocale=auto,notetype=foot+end,style=numeric-comp,maxnames=10,maxbibnames=100,doi=true, isbn=true,url=false,eprint=true]{biblatex}
addbibresource{library.bib} 
usepackage{csquotes}

newcommand{PresCite}[1]{autocite{#1} footfullcite{#1}}

usepackage[colorlinks=true, frenchlinks=true, linkcolor=black,filecolor=magenta,urlcolor=blue, citecolor=gray]{hyperref}
urlstyle{same}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
begin{document}

bla bla bla PresCite{Toto1900,Toto1901,Toto1902}

printbibliography  
end{document}

The result is:

  1. in text

    enter image description here

  2. in footnote

    enter image description here

  3. in bibliography

    enter image description here

What I would like:

  1. in text

    enter image description here

  2. in footnote

    enter image description here

  3. in Bibliography

    enter image description here


Get this bounty!!!

#StackBounty: #footnotes #bigfoot Unwanted vertical space with `FN@beforebreak` in `bigfoot`

Bounty: 100

I use bigfoot for creating two types of footnotes. And also I want to place dots when long footnote continues on next page (FN@beforebreak). I use raisebox{12pt}[0pt][0pt] and it should be 0 height. But there still appears vertical space after the footnote break.

MWE (overleaf):

documentclass{article}
usepackage{blindtext}
usepackage{bigfoot}

DeclareNewFootnote{default}
DeclareNewFootnote{B}[alph]

setlength{skipfootinsB}{0pt}

% fix bug in bigfoot 2015/08/30 2.1
% see https://tex.stackexchange.com/questions/471379/footnote-marks-missplaced-with-bigfoot/
usepackage{xpatch}
makeatletter
patchcmdFN@allmarks{266}{256}{}{fail}

renewcommandFN@beforebreak{hbox{%
raisebox{12pt}[0pt][0pt]{hspacetextwidth~dots{}}%
}}
makeatother

begin{document}
Blindtext[1][1]
blindtext[1]footnote{Blindtext[3][2] New line}
Some wordsfootnoteB{See the vertical space}
Blindtext[2][1]
TextfootnoteB{no vertical space}

end{document}

Preview before break:

enter image description here

Preview without break:

enter image description here


Get this bounty!!!

#StackBounty: #footnotes Footnotes in one column in twocolumn document

Bounty: 50

I have a Latex code with twocolumn option in article.cls.

documentclass [11pt,twocolumn]{article}
usepackage[affil-it]{authblk}
usepackage{blindtext}
usepackage{abstract}

makeatletter
newboxabstract@box
renewenvironment{abstract}
  {globalsetboxabstract@box=vboxbgroup
     hsize=textwidthlinewidth=textwidth
    small
    begin{center}%
    {bfseries abstractnamevspace{-.5em}vspace{z@}}%
    end{center}%
    quotation}
  {endquotationegroup}
expandafterdefexpandafter@maketitleexpandafter{@maketitle
  ifvoidabstract@boxelseunvboxabstract@boxif@twocolumnvskip1.5emfifi}
makeatother


begin{document}

title{Title}
author[1]{The first authorfootnote{Corresponding author:
\
The author would like to thank someone The author would like to thank someone .}}
author[2]{The second author}
affil[1]{University 1}
affil[2]{University 2}

date{today}

begin{abstract}
blindtext
end{abstract}

maketitle

section{Introduction}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis sem. Nullam nec mi et neque pharetra sollicitudin.footnote{The first footnote.
The first footnote. The first footnote.
The first footnote.The first footnote.
The first footnote.}
 Praesent imperdiet mi nec ante. Donec ullamcorper, felis non sodales commodo, lectus velit ultrices augue, a dignissim nibh lectus placerat pede.
The author would like to thank someone The author would like to thank someone.
vamus nunc nunc, molestie ut, ultricies vel, semper in, velit. Ut porttitor. Praesent in sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis fringilla tristique 
neque.footnote{The secont footnote. The author would like to thank someone The author would like to thank someone}
end{document} 

enter image description here

Main text is in two columns and footnotes are in two columns, too. However, I want to have a document wit the footnotes in one column (footnotes span over two columns).
Note: I do not want to use package usepackage{multicol}, but only the option that is set in documentclass [11pt, twocolumn] {article}.

If someone knows the solution and makes an example, I will be very grateful.


Get this bounty!!!

#StackBounty: #hyperref #footnotes #minipage #counters Special, pre-defined "out-of-order" footnotes for boilerplate text wit…

Bounty: 150

Inside minipage environments I repeatedly need a handful of predefined footnotes (with a fixed boilerplate text) that should use symbolic footnote marks (for better detectability) alongside “normal” footnotes that are numbered automatically.

Within the same minipage, such a “special” footnote might be referenced multiple times, but the footnote text should only appear once per minipage.

The association between a particular footnotemark and its text is fixed beforehand. As the number of these “special” footnotes is fixed and relatively small I thought I could use hard-coded negative values for the footnote counter (to avoid interference with the normal counting) and hard-coded symbols for the values of the counter (i.e. ddag, ast, and so on).

This MWE shows how far I came

documentclass{article}

usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage[utf8]{inputenc}
%usepackage{fnpct}
usepackage[unicode,final]{hyperref}

makeatletter

newcommand*{specialfnmark}{%
%count255=value@mpfn% Originally, @mpfn is stepped. Here, we save the old value and set @mpfn to 0, -1, -2, and so on.
%setcounter{@mpfn}{0}%
protected@xdef@thefnmark{ensuremath{ddag}}% Originally: protected@xdef@thefnmark{thempfn}
@footnotemark%
%setcounter{@mpfn}{count255}%  Restore old value
}

newcommand*{specialfntext}{%
protected@xdef@thefnmark{ensuremath{ddag}}% Originally: {protected@xdef@thefnmark{thempfn}
@footnotetext{A special footnote.}%
}

makeatother

begin{document}

begin{minipage}{textwidth}specialfntext
Lore ipsumfootnote{1st minipage, 1st footnote.}.
Lore ipsumspecialfnmark.
Lore ipsumfootnote{1st minipage, 2nd footnote.}.
end{minipage}

begin{minipage}{textwidth}specialfntext
Lore ipsumspecialfnmark.
Lore ipsumfootnote{2nd minipage, 1st footnote.}.
Lore ipsumspecialfnmark.
end{minipage}

end{document}

Please note that this MWE only use one type of special footnote (i.e. specialfnmark and specialfntext) for the sake of being a MWE. The full-fledged paper uses a couple of these footnotes (i.e. foofnmark, foofntext, thingyfnmark, thingyfntext) with macros coming in pairs.

This nearly does what I wanted to achieve, but two problems remain.

  1. PDF links from the footnote mark to the correct footnote text do not work. I get the following errors:
      Package hyperref Warning: Ignoring empty anchor on input line 28.
      pdfTeX warning (ext4): destination with the same identifier (name{Hfootnote.3}) has been already used, duplicate ignored
      pdfTeX warning (dest): name {Hfootnote.6} has been referenced but does not exist, replaced by a fixed one
      pdfTeX warning (dest): name{Hfootnote.4} has been referenced but does not exist, replaced by a fixed one
      pdfTeX warning (dest): name{Hfootnote.2} has been referenced but does not exist, replaced by a fixed one
    

    How do I make the macro definition compatible with hyperref? I already tried to tinker with the counter (see commented lines of the MWE) but have been unsuccessful.

  2. Is is possible to additionally make the definition compatible with the fnpct package such that the final period of the sentence and the footnote mark are re-ordered and horizontally adjusted?


Get this bounty!!!

#StackBounty: #footnotes #tex4ht #arabic #parnotes producing ODT Arabic edition with apparatus in parnotes via tex4ht: customizing parn…

Bounty: 50

I would like to convert my edition of Arabic text into ODT format. The edition uses notes that are supposed appear in a smaller font in a paragraph below the text (not at the bottom of each page). I would like the footnote hooks to be in Arabic-style numerals ١٢٣٤٥٦٧٨٩٠ rather than Roman-style numerals 1234567890. Ideally I would like to be able to select the font (Amiri) to which it will output (current default is Tahoma for the Arabic text).

What I haven’t been able to figure out is

  1. how to make the footnote hooks Arabic-style
  2. how to make the notes paragraph a much smaller font size
  3. how to remove a spurious space that comes after the footnote marker in the notes paragraph.

How can I do this?

MWE

myfile.tex:

documentclass[12pt,letterpaper,oldfontcommands]{memoir}

usepackage{fontspec}
usepackage{xunicode}
usepackage[T1]{fontenc}

newcommand{%
خ%
    }[2]{%
    ar{#1}footnoteA{ar{#1%
    :
    #2}}%
    }

newfontfamilyarabicfont[Script=Arabic,Mapping=arabicdigits]{Amiri}

%Arabic
newcommand{ar}[1]{#1}
newenvironment{arab}{}{}

% APPARATUS FOR VARIANTS IN ARABIC TEXT
usepackage[para]{manyfoot}
SetFootnoteHook{setRL}
DeclareNewFootnote[para]{A}[alph]

%%%%%%%%%%%%%%%%%%%%%%%%%%
% Placing Arabic apparatus at the end of each paragraph
% (WARNING !!! :  currently only works if VARIANT commands only come within `arab` environments)
usepackage[restart]{parnotes} % package
renewcommand{parnotefmt}[1]{tinynoindent #1}
renewcommand{footnoteA}[1]{parnote{#1}} % mk app fns parnotes
% renewcommand*{parnotecusmarkfmt}[1]{arabicfontaddfontfeature{Mapping=arabicdigits}textsuperscript{#1}}
renewcommand*{parnotecusmarkfmt}[1]{arabicfontaddfontfeature{Mapping=arabicdigits}textsuperscript{#1}}

letorigArabarab
renewenvironment{arab}{begin{origArab}}{parnotes{}end{origArab}} % make arab environment print parnotes at the end
%%%%%%%%%%%%%%%%%%%%%%%%%%

begin{document}
begin{arab}
خ{لكن لما}{ڤ؛ إنني كلما: ي}
end{arab}
end{document}

Compiled with

make4ht -uxm draft -f odt -c myconfig.cfg

where myconfig.cfg is:

Preamble{xhtml}
ConfigureOO{Footnote}{
<style:style
    style:name="Footnote"
    style:family="paragraph"
    style:parent-style-name="Standard"
    style:class="extra">Hnewline
  <style:paragraph-properties
             fo:margin-left="0in"
             fo:margin-right="0in"
             fo:text-indent="0.1in"
              style:auto-text-indent="false"/>
  <style:text-properties fo:font-size="83.3333333333333333333333%"
      style:font-size-asian="83.3333333333333333333333%"
      style:font-size-complex="83.3333333333333333333333%" />
</style:style>Hnewline
<text:notes-configuration text:note-class="footnote"
    text:citation-style-name="Footnote_20_Symbol"
    text:citation-body-style-name="Footnote_20_anchor"
    style:num-format="1" text:start-value="0"
    text:footnotes-position="page"
    text:start-numbering-at="document" />Hnewline
<style:style style:name="Footnote_20_Symbol"
style:display-name="Footnote Symbol" style:family="text" >Hnewline
  <style:text-properties style:text-position="super 58%" />Hnewline
</style:style>
<style:style style:name="Footnote_20_anchor"
style:display-name="Footnote anchor" style:family="text">
  <style:text-properties style:text-position="super 58%" />Hnewline
</style:style>Hnewline
}

ConfigureOO{verse}{Hnewline
<style:style style:name="verse"
             style:family="paragraph"
             style:parent-style-name="Text-body"
             style:next-style-name="Text-body">
<style:paragraph-properties  fo:margin-left="1.499cm"
             fo:margin-right="1cm"
             fo:margin-top="0cm"
             fo:margin-bottom="0cm"
             fo:text-indent="-0.499cm"
             style:auto-text-indent="false">
   <style:tab-stops/>
</style:paragraph-properties >
</style:style>
Hnewline}

xeuniuseblock{Greek}
xeuniuseblock{Arabic}
makeatletter
ConfigureEnv{arab}{@rltrue}{@rlfalse}{}{}
Configure{ref}{Link}{EndLink}{}
makeatother
begin{document}
EndPreamble

current output

enter image description here

desired output

enter image description here


Get this bounty!!!

#StackBounty: #footnotes #verbatim Footnotes in a verbatim environment that also appear in (or just below) that environment

Bounty: 50

I require a verbatim like environment that allows footnotes and, in addition, displays the footnote text in that environment (as opposed to the page) or just below the environment floating with it.

I have got the following.

documentclass[a4paper,10pt]{book}
usepackage{verbatim}
usepackage{fancyvrb}
usepackage{bera}

newenvironment{MyVerb}[1]
{defheader{S#1}Verbatim[label=header, frame=single, commandchars=@{}]}
{endVerbatim}

begin{document}

An apple a day....

begin{MyVerb}{Blah}
 Blah.
 Blah@footnote{Blah.} blah.
 Blah.
end{MyVerb}

...keeps the doctor away.

end{document}

The footnote numbers appear but the footnote text appears neither on the page nor in the environment. I would like the footnote bodies to appear inside the “boxed” verbatim environment (as opposed to the page).

The footnotes need not be verbatim nor even appear directly in the verbatim environment itself, but they must appear at the bottom of the box around the verbatim.


Get this bounty!!!

#StackBounty: #errors #footnotes #bigfoot Footnote marks missplaced with bigfoot

Bounty: 150

With big foot package sometimes footnote text is placed on other page then corresponding footnote mark. MWE:

documentclass[11pt, b5paper, final]{memoir}

usepackage[english]{babel}
usepackage[pangram]{blindtext}

usepackage{bigfoot}
DeclareNewFootnote{default}
DeclareNewFootnote{B}[roman]

begin{document}
blindtext[10]footnote{blindtext[20]}
blindtext[5]footnote{
blindtext[10]footnoteB{blindtext[1]}
blindtext[30]}
blindtext[10]footnote{blindtext[40]}
end{document}

Preview:

enter image description here
enter image description here

However if I create similar document without bigfoot it works as expected. MWE

documentclass[11pt, b5paper, final]{memoir}

usepackage[english]{babel}
usepackage[pangram]{blindtext}

begin{document}
blindtext[10]footnote{blindtext[20]}
blindtext[5]footnote{
blindtext[10]
blindtext[30]}
blindtext[10]footnote{blindtext[40]}
end{document}

Preview:

enter image description here
enter image description here

Question how can I fix bigfoot that marks appear on same page as text? I can choose other package for footnotes, but i need insert second level footnotes into first level footnote (as in bigfoot MWE).


Get this bounty!!!