Text FormattingTrouble converting from Overleaf to TeXStudio

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
dlongddsma
Posts: 5
Joined: Tue Jun 24, 2025 5:39 am

Trouble converting from Overleaf to TeXStudio

Post by dlongddsma »

Since Overleaf is cutting back on the compile time, I'm trying to switch over to TeXstudio. I used a template in Overleaf, and everything compiled beautifully. So I copy and pasted the entire coding from Overleaf into TeXstudio, and it's now screwed up. I'm trying to use Chicago style citations for endnotes, specifically (notes-bibliography). When I compile in overleaf, it compiles perfectly, with numbers after the citation and a beautifully formatted bibliography.

Wheelis, Mark. 2002. “Biological Warfare at the 1346 Siege of Caffa.”
Emerging Infectious Diseases 8 (9): 971–75. https://doi.org/10.
3201/e-id0809.010536.[6] This article r


References
[6] Mark Wheelis. “Biological warfare at the 1346 siege of Caffa”. In: Emerg-
ing Infectious Diseases 8.9 (2002), pp. 971–975. issn: 10806040. doi:
10.3201/eid0809.010536. url: https://www.ncbi.nlm.nih.gov/
pmc/articles/PMC2732530/.

However, when I compile the exact same code in TeXStudio, the reference is changed to the (author-date) style and there is no bibliography.

Wheelis, Mark. 2002. “Biological Warfare at the 1346 Siege of Caffa.”
Emerging Infectious Diseases 8 (9): 971–75. https://doi.org/10.
3201/e-id0809.010536.[Wheelis2002] This article r

Here is the preamble source code followed by the citation code

\documentclass[a4paper,12pt]{article}
\setlength{\parskip}{0.5pt}%
\setlength{\parindent}{20pt}%

%preamble: style and/or packages
\author{XXXXXXXXXXX}
\title{PhD research proposal}
\date{January 2023}

%\usepackage{package}

\usepackage{hyperref}
\usepackage{titlesec}
\setcounter{secnumdepth}{3}
\usepackage{enumitem}
\usepackage{varwidth}
\usepackage{tasks}
\usepackage{setspace}
%\doublespacing

\usepackage{graphicx}
\usepackage{siunitx}

%colors, boxes
\usepackage[dvipsnames]{xcolor}
\usepackage[most]{tcolorbox}
\tcbuselibrary{fitting}

\definecolor{columbiablue}{rgb}{0.61, 0.87, 1.0}
\definecolor{mossgreen}{rgb}{0.68, 0.87, 0.68}

%\usepackage[super,sort&compress,comma]{natbib}
\usepackage{biblatex} %Imports biblatex package
\addbibresource{My CollectionForDisProposal.bib} %Import the bibliography file

%indent first line
\usepackage{indentfirst}
\setlength{\parindent}{30pt}

%captions
\usepackage[font=footnotesize,labelfont={bf,it}, textfont=it]{caption}
\usepackage[labelsep=period]{caption}

%landscape pages
\usepackage{pdflscape}
\usepackage{fancyhdr}

%page number at bottom in landscape
\fancypagestyle{mylandscape}{
\fancyhf{} %Clears the header/footer
\fancyfoot{% Footer
\makebox[\textwidth][r]{% Right
\rlap{\hspace{.75cm}% Push out of margin by \footskip
\smash{% Remove vertical height
\raisebox{4.87in}{% Raise vertically
\rotatebox{90}{\thepage}}}}}}% Rotate counter-clockwise
\renewcommand{\headrulewidth}{0pt}% No header rule
\renewcommand{\footrulewidth}{0pt}% No footer rule
}

%temporarily disable superscript
\DeclareRobustCommand*{\citen}[1]{%
\begingroup
\romannumeral-`\x % remove space at the beginning of \setcitestyle
\setcitestyle{numbers}%
\cite{#1}%
\endgroup
}


\begin{document}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\item
Wheelis, Mark. 2002. “Biological Warfare at the 1346 Siege of Caffa.” \textit{Emerging Infectious Diseases} 8 (9): 971–75. \url{https://doi.org/10.3201/e-id0809.010536 ... heelis2002} This

Why is this code doing different things in different compilers???

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply