#StackBounty: #bibtex #natbib #bibentry Citation in the body of the text without references section showing up

Bounty: 50

I want to have the whole reference in the body of the text or in other words in-text citation. The solution to this problem has been given here. However, the code is set up there such that there is also a reference section at the end. I don’t want that. I only want the citations spelled out in the body itself and no references section at the end. Can it be done? How should I do it. Consider the code discussed there itself as an example to try out the solution.

Edit: If there is any other method to get the full references spelled out within the body of the text directly from the bibtex entries but without invoking bibentry, that’ll also work.


Get this bounty!!!

#StackBounty: #natbib #arara #multibib Problems with multibib and natbib with defcitealias

Bounty: 100

I have a problem getting two seperate bibliographies from a main .bib file. The other problem is the issue with the defcitealias described here. I tried to reproduce the example in the link, but it is not working for me.

MWE

% arara: pdflatex
% arara: bibtex
% arara: bibtex: { files: [ sec ] }
% arara: pdflatex
% arara: pdflatex

documentclass[a4paper]{article}
usepackage[numbers]{natbib}

makeatletter
    def@mb@citenamelist{cite,citep,citet,citealp,citealt,citepalias,citetalias}
makeatother

usepackage{multibib}
newcites{sec}{Other bibliographic references}

defcitealias{manual-full}{International journal of logistics, issue 91}

begin{document}
    
    cite{article-full}
    
    citesec{booklet-full}
    
    Something something something and then citepaliassec{manual-full}.
    
    bibliographystyle{plainnat}
    bibliography{xampl}
    
    letnoopsortundefined
    letprintfirstundefined
    letsingleletterundefined
    letswitchargsundefined
    
    bibliographystylesec{plainnat}
    bibliographysec{xampl}
    
end{document}

Output

enter image description here

Also, I am wondering what is ment with "To process your document, three runs of LATEX and two runs of BibTEX are required." in the multibib manual p.4?
I compiled my .tex document in TeXStudio with F5 and F8, was this the way to do it?

Edit

I added the lines

% arara: pdflatex
% arara: bibtex
% arara: bibtex: { files: [ sec ] }
% arara: pdflatex
% arara: pdflatex

for the compiling issue, but the problem/output stays the same.

Edit2

I followed the instructions recommended here and installed arara.

enter image description here

Then, I implemented arara in TeXstudio

enter image description here
enter image description here

Then, I tried to compile the data using arara but I got the error message:

Prozess gestartet: "C:/Users/.../AppData/Local/Programs/MiKTeX/miktex/bin/x64/arara.exe" -v -l "natbib+multibib"
Entschuldigung, aber arara.exe ist aus dem folgenden Grund fehlgeschlagen: MiKTeX could not find the script engine 'java.exe' which is required to execute 'arara'. Abhilfe: Make sure 'java.exe' is installed on your system. Die Log-Datei enthält hoffentlich alle Informationen, um MiKTeX wieder in Gang zu bringen. C:Users...AppDataLocalMiKTeXmiktexlogarara.log Für weitere Information, besuchen Sie: https://miktex.org/kb/fix-script-engine-not-found

I think the Java issue is stated wrong, since I can run arara and it is already installed.

enter image description here

Does anyone know the cause of the error?


Get this bounty!!!

#StackBounty: #natbib #arara #multibib Problems with multibib and natbib with defcitealias

Bounty: 100

I have a problem getting two seperate bibliographies from a main .bib file. The other problem is the issue with the defcitealias described here. I tried to reproduce the example in the link, but it is not working for me.

MWE

% arara: pdflatex
% arara: bibtex
% arara: bibtex: { files: [ sec ] }
% arara: pdflatex
% arara: pdflatex

documentclass[a4paper]{article}
usepackage[numbers]{natbib}

makeatletter
    def@mb@citenamelist{cite,citep,citet,citealp,citealt,citepalias,citetalias}
makeatother

usepackage{multibib}
newcites{sec}{Other bibliographic references}

defcitealias{manual-full}{International journal of logistics, issue 91}

begin{document}
    
    cite{article-full}
    
    citesec{booklet-full}
    
    Something something something and then citepaliassec{manual-full}.
    
    bibliographystyle{plainnat}
    bibliography{xampl}
    
    letnoopsortundefined
    letprintfirstundefined
    letsingleletterundefined
    letswitchargsundefined
    
    bibliographystylesec{plainnat}
    bibliographysec{xampl}
    
end{document}

Output

enter image description here

Also, I am wondering what is ment with "To process your document, three runs of LATEX and two runs of BibTEX are required." in the multibib manual p.4?
I compiled my .tex document in TeXStudio with F5 and F8, was this the way to do it?

Edit

I added the lines

% arara: pdflatex
% arara: bibtex
% arara: bibtex: { files: [ sec ] }
% arara: pdflatex
% arara: pdflatex

for the compiling issue, but the problem/output stays the same.

Edit2

I followed the instructions recommended here and installed arara.

enter image description here

Then, I implemented arara in TeXstudio

enter image description here
enter image description here

Then, I tried to compile the data using arara but I got the error message:

Prozess gestartet: "C:/Users/.../AppData/Local/Programs/MiKTeX/miktex/bin/x64/arara.exe" -v -l "natbib+multibib"
Entschuldigung, aber arara.exe ist aus dem folgenden Grund fehlgeschlagen: MiKTeX could not find the script engine 'java.exe' which is required to execute 'arara'. Abhilfe: Make sure 'java.exe' is installed on your system. Die Log-Datei enthält hoffentlich alle Informationen, um MiKTeX wieder in Gang zu bringen. C:Users...AppDataLocalMiKTeXmiktexlogarara.log Für weitere Information, besuchen Sie: https://miktex.org/kb/fix-script-engine-not-found

I think the Java issue is stated wrong, since I can run arara and it is already installed.

enter image description here

Does anyone know the cause of the error?


Get this bounty!!!

#StackBounty: #bibliographies #formatting #natbib #apa-style #alignment Alignment of apalike bibliography style with multibib

Bounty: 50

I want to use multiple bibliographies with the apalike style and multibib.

This style however has the problem that the numbers are not aligned.

The problem is also described in this question and an answer exists which used to work for me so far because I was not using multibib for the bibliography.

I have the following code.

test_article.tex

documentclass{article}
usepackage[numbers]{natbib}
usepackage{multibib}
newcites{book,article}{Books,Articles}
usepackage{etoolbox}

% This is the workaround from the linked answer
makeatletter 
patchcmd{thebibliography}{c@NAT@ctrz@}{c@NAT@ctrz@
  renewcommand{makelabel}[1]{makebox[1.2em][r]{##1hfill}}%
  setlength{labelwidth}{1.2em}%
  setlength{labelsep}{.5em}%
  setlength{leftmargin}{dimexprlabelwidth+labelsep}%
}{}{}
makeatother
% end of the workaround

begin{document}
Test citebook{testBook} and citearticle{testArticle}.

bibliographystylebook{apalike}
bibliographystylearticle{apalike}

bibliographybook{bookBib}
bibliographyarticle{articleBib}

end{document}

bookBib.bib:

@book{testBook,
  title={This is a test book},
  author={Book, Author},
  year={2021},
  publisher={Book Publisher}
}

article.bib:

@article{testArticle,
  title={This is a test article with a long title that should display that an entry with more than one lines is not aligned},
  author={Article, Author},
  journal={Test Journal},
  volume={1},
  number={1},
  pages={1--2},
  year={2021},
  publisher={Article Publisher}
}

Problem: If I remove multibib and use only a single bibliography everything works fine. I already tried to change the patchcmd from patching thebibliography to thebibliographybook and thebibliographyarticle, but that didn’t work either.

This is how it looks now (the article entry is not aligned):

enter image description here

And this is how it should look:

enter image description here

Question: How can I fix this problem and get the alignment correct?

Is there a similar workaround available when using multibib instead a single bibliography?


Get this bounty!!!

#StackBounty: #biblatex #hyperref #natbib #cite-package references in biblatex

Bounty: 100

I’m having trouble formatting the references. I have to prepare whole text using font 11 and single line spacing. Also I want to save space in references by removing new line when next bibitem is printed. Also I want the reference numbers to be in bold. I have achieved both of these, but the font in references is somehow compressed relative to the rest of the text.

If possible, I’d like also to change the format of references:

  • order: authors, year, title, journal, journal information
  • remove extra space in [ 1], so that it looks like [1]
  • transform each entry into a link to an url with given article

I couldn’t find a documentation which explains how to manually format references. I don’t have to stick to biblatex, so if my requirements can be achieved using natbib or cite packages, then that’s fine for me. For compilation I’m using overleaf with default settings.

Edit: the comment by @daleif solved most problems and I’ve crossed them out. The code and image are updated.

Here’s my current version:

enter image description here

documentclass[11pt]{article}
usepackage{lipsum}
usepackage[doi=false,isbn=false,url=false,eprint=false]{biblatex}
addbibresource{bibinfo.bib}
defbibenvironment{bibliography}
  {noindent}
  {unspace}
  {textbf{printtext[labelnumberwidth]{%
    printfield{labelprefix}%
     printfield{labelnumber}}}%
   addspace}
renewbibmacro*{finentry}{finentryaddspace}

begin{document}

lipsum[1-1]

See also cite{duquennoy91} and cite{dwek95}. Also cite{duquennoy91,dwek95,feroz08}.

printbibliography[heading=none]

end{document}
@ARTICLE{duquennoy91,
   author = {{Duquennoy}, A. and {Mayor}, M.},
    title = "{Multiplicity among solar-type stars in the solar neighbourhood. II - Distribution of the orbital elements in an unbiased sample}",
  journal = {it A&A},
 keywords = {Binary Stars, Dwarf Stars, G Stars, Solar Neighborhood, Stellar Orbits, Brown Dwarf Stars, Orbital Elements, Peculiar Stars, Radial Velocity, Stellar Evolution, Variable Stars},
     year = 1991,
    month = aug,
   volume = 248,
    pages = {485-524},
   adsurl = {http://adsabs.harvard.edu/abs/1991A%26A...248..485D},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{dwek95,
   author = {{Dwek}, E. and {Arendt}, R.~G. and {Hauser}, M.~G. and {Kelsall}, T. and 
    {Lisse}, C.~M. and {Moseley}, S.~H. and {Silverberg}, R.~F. and 
    {Sodroski}, T.~J. and {Weiland}, J.~L.},
    title = "{Morphology, near-infrared luminosity, and mass of the Galactic bulge from COBE DIRBE observations}",
  journal = {it ApJ},
 keywords = {COSMIC BACKGROUND EXPLORER SATELLITE, GALACTIC BULGE, GALACTIC MASS, IMAGE PROCESSING, LUMINOSITY, MORPHOLOGY, NEAR INFRARED RADIATION, ASTRONOMICAL MODELS, GALACTIC STRUCTURE, MAPPING, STAR DISTRIBUTION, STELLAR EVOLUTION},
     year = 1995,
    month = jun,
   volume = 445,
    pages = {716-730},
      doi = {10.1086/175734},
   adsurl = {http://adsabs.harvard.edu/abs/1995ApJ...445..716D},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{feroz08,
   author = {{Feroz}, F. and {Hobson}, M.~P.},
    title = "{Multimodal nested sampling: an efficient and robust alternative to Markov Chain Monte Carlo methods for astronomical data analyses}",
  journal = {it MNRAS},
archivePrefix = "arXiv",
   eprint = {0704.3704},
 keywords = {methods: data analysis, methods: statistical},
     year = 2008,
    month = feb,
   volume = 384,
    pages = {449-463},
      doi = {10.1111/j.1365-2966.2007.12353.x},
   adsurl = {http://adsabs.harvard.edu/abs/2008MNRAS.384..449F},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}


Get this bounty!!!

#StackBounty: #bibliographies #natbib Modifying a style of bib

Bounty: 50

I need to modify this style s.t. the call of a reference on text appear with braquets instead of parenteses. Indeed, I’d like to get bf at the principal title of reference at bibliography. Could someone help me?

https://github.com/manoelcampos/ft-unb-latex-template/blob/master/abnt-num.bst


Edit

The brackets are OK thanks the comment of Mico. I just would like to know how to get bold at the title of entries now. Using this style I get:

Example

I would like to get boldface on the title I’ve painted with yellow.

The .bib entry is:

@article{chapiro2016numerical,
  title={Numerical solution of a class of moving boundary problems with a nonlinear complementarity approach},
  author={Chapiro, Grigori and Gutierrez, Angel ER and Herskovits, Jos{'e} and Mazorche, Sandro R and Pereira, Weslley S},
  journal={Journal of Optimization Theory and Applications},
  volume={168},
  number={2},
  pages={534--550},
  year={2016},
  publisher={Springer}
}


Get this bounty!!!

#StackBounty: #bibtex #natbib #sorting In bibliographystyle{alpha}, can I sort references by the first author's last name instead …

Bounty: 50

I’m creating a bibliography using bibliographystyle{alpha}. Consider the following three references.

[Gab72] Peter Gabriel…

[GJ09] Paul G. Goerss and John F. Jardine…

[GR92] Peter Gabriel and Andrei V. Roiter…

They are automatically being displayed in my LaTeX file in the ordering above. This is alphabetical order by the marker: [Gab72] < [GJ09] < [GR92]. Is it possible to instead have the ordering based on alphabetical ordering of the first author’s last name? This would instead give the following ordering:

[Gab72] Peter Gabriel…

[GR92] Peter Gabriel and Andrei V. Roiter…

[GJ09] Paul G. Goerss and John F. Jardine…

I would prefer this latter ordering because then Peter Gabriel’s references are adjacent.


Get this bounty!!!

#StackBounty: #bibtex #natbib #sorting In bibliographystyle{alpha}, can I sort references by the first author's last name instead …

Bounty: 50

I’m creating a bibliography using bibliographystyle{alpha}. Consider the following three references.

[Gab72] Peter Gabriel…

[GJ09] Paul G. Goerss and John F. Jardine…

[GR92] Peter Gabriel and Andrei V. Roiter…

They are automatically being displayed in my LaTeX file in the ordering above. This is alphabetical order by the marker: [Gab72] < [GJ09] < [GR92]. Is it possible to instead have the ordering based on alphabetical ordering of the first author’s last name? This would instead give the following ordering:

[Gab72] Peter Gabriel…

[GR92] Peter Gabriel and Andrei V. Roiter…

[GJ09] Paul G. Goerss and John F. Jardine…

I would prefer this latter ordering because then Peter Gabriel’s references are adjacent.


Get this bounty!!!

#StackBounty: #bibtex #natbib #sorting In bibliographystyle{alpha}, can I sort references by the first author's last name instead …

Bounty: 50

I’m creating a bibliography using bibliographystyle{alpha}. Consider the following three references.

[Gab72] Peter Gabriel…

[GJ09] Paul G. Goerss and John F. Jardine…

[GR92] Peter Gabriel and Andrei V. Roiter…

They are automatically being displayed in my LaTeX file in the ordering above. This is alphabetical order by the marker: [Gab72] < [GJ09] < [GR92]. Is it possible to instead have the ordering based on alphabetical ordering of the first author’s last name? This would instead give the following ordering:

[Gab72] Peter Gabriel…

[GR92] Peter Gabriel and Andrei V. Roiter…

[GJ09] Paul G. Goerss and John F. Jardine…

I would prefer this latter ordering because then Peter Gabriel’s references are adjacent.


Get this bounty!!!