Skip to main content
I changed \cite{NAME} to \cite{Human}
Source Link
Rageful
  • 233
  • 1
  • 13
\documentclass[11pt,a4paper,oneside]{article}
\usepackage{natbib}
\usepackage{url}
\usepackage[utf8x]{inputenc}
\usepackage{siunitx}
\usepackage{indentfirst}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{patterns}
\usepackage{caption}
\usepackage{pgfplots}
\usepackage{listings}
\usepackage{color}
\usepackage[colorlinks]{hyperref}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{hyperref}
\usepackage{parskip}
\usepackage{cite}
\usepackage{fancyhdr}
\usepackage{vmargin}
\setmarginsrb{3 cm}{2.5 cm}{3 cm}{2.5 cm}{1 cm}{1.5 cm}{1 cm}{1.5 cm}


\title{Life is too short to learn LaTeX}    % Title
\author{Rageful}    % Author
\date{01.01.2019} % Date

\makeatletter
\let\thetitle\@title
\let\theauthor\@author
\let\thedate\@date
\makeatother

\pagestyle{fancy}
\fancyhf{}
\rhead{\theauthor}
\lhead{\thetitle}
\cfoot{\thepage}


\renewcommand{\refname}{Referance}

\begin{document}

\begin{titlepage}
   \centering
\vspace*{0.5 cm}
\includegraphics[scale = 0.08]{latex.png}\\[1.0 cm] 
{\centering \textsc{\LARGE \ \ \ \ \ \ \ \ \ LATEX} \newline\newline \textsc{\LARGE PROJECT}\\[2.0 cm]} 
\textsc{\Large 17.01.2019}\\[0.5 cm]    
\rule{\linewidth}{0.2 mm} \\[0.4 cm]
{ \huge \bfseries \thetitle}\\
\rule{\linewidth}{0.2 mm} \\[3.5 cm]

\begin{minipage}{0.5\textwidth}
    \begin{flushleft} \large
        \emph{Person A}\\
        \end{flushleft}
        \end{minipage}~
        \begin{minipage}{0.4\textwidth}
        
        \begin{flushright} \large
        \emph{Person B :} \\
    \end{flushright}
\end{minipage}\\[2 cm]
\end{titlepage}

\section{Preface}

Why is LaTeX too hard? \cite{NAMEHuman:1}

\newpage

\bibliographystyle{unsrt}
\bibliography{\water} % bibliography prints here

\end{document}
\documentclass[11pt,a4paper,oneside]{article}
\usepackage{natbib}
\usepackage{url}
\usepackage[utf8x]{inputenc}
\usepackage{siunitx}
\usepackage{indentfirst}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{patterns}
\usepackage{caption}
\usepackage{pgfplots}
\usepackage{listings}
\usepackage{color}
\usepackage[colorlinks]{hyperref}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{hyperref}
\usepackage{parskip}
\usepackage{cite}
\usepackage{fancyhdr}
\usepackage{vmargin}
\setmarginsrb{3 cm}{2.5 cm}{3 cm}{2.5 cm}{1 cm}{1.5 cm}{1 cm}{1.5 cm}


\title{Life is too short to learn LaTeX}    % Title
\author{Rageful}    % Author
\date{01.01.2019} % Date

\makeatletter
\let\thetitle\@title
\let\theauthor\@author
\let\thedate\@date
\makeatother

\pagestyle{fancy}
\fancyhf{}
\rhead{\theauthor}
\lhead{\thetitle}
\cfoot{\thepage}


\renewcommand{\refname}{Referance}

\begin{document}

\begin{titlepage}
   \centering
\vspace*{0.5 cm}
\includegraphics[scale = 0.08]{latex.png}\\[1.0 cm] 
{\centering \textsc{\LARGE \ \ \ \ \ \ \ \ \ LATEX} \newline\newline \textsc{\LARGE PROJECT}\\[2.0 cm]} 
\textsc{\Large 17.01.2019}\\[0.5 cm]    
\rule{\linewidth}{0.2 mm} \\[0.4 cm]
{ \huge \bfseries \thetitle}\\
\rule{\linewidth}{0.2 mm} \\[3.5 cm]

\begin{minipage}{0.5\textwidth}
    \begin{flushleft} \large
        \emph{Person A}\\
        \end{flushleft}
        \end{minipage}~
        \begin{minipage}{0.4\textwidth}
        
        \begin{flushright} \large
        \emph{Person B :} \\
    \end{flushright}
\end{minipage}\\[2 cm]
\end{titlepage}

\section{Preface}

Why is LaTeX too hard? \cite{NAME:1}

\newpage

\bibliographystyle{unsrt}
\bibliography{\water} % bibliography prints here

\end{document}
\documentclass[11pt,a4paper,oneside]{article}
\usepackage{natbib}
\usepackage{url}
\usepackage[utf8x]{inputenc}
\usepackage{siunitx}
\usepackage{indentfirst}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{patterns}
\usepackage{caption}
\usepackage{pgfplots}
\usepackage{listings}
\usepackage{color}
\usepackage[colorlinks]{hyperref}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{hyperref}
\usepackage{parskip}
\usepackage{cite}
\usepackage{fancyhdr}
\usepackage{vmargin}
\setmarginsrb{3 cm}{2.5 cm}{3 cm}{2.5 cm}{1 cm}{1.5 cm}{1 cm}{1.5 cm}


\title{Life is too short to learn LaTeX}    % Title
\author{Rageful}    % Author
\date{01.01.2019} % Date

\makeatletter
\let\thetitle\@title
\let\theauthor\@author
\let\thedate\@date
\makeatother

\pagestyle{fancy}
\fancyhf{}
\rhead{\theauthor}
\lhead{\thetitle}
\cfoot{\thepage}


\renewcommand{\refname}{Referance}

\begin{document}

\begin{titlepage}
   \centering
\vspace*{0.5 cm}
\includegraphics[scale = 0.08]{latex.png}\\[1.0 cm] 
{\centering \textsc{\LARGE \ \ \ \ \ \ \ \ \ LATEX} \newline\newline \textsc{\LARGE PROJECT}\\[2.0 cm]} 
\textsc{\Large 17.01.2019}\\[0.5 cm]    
\rule{\linewidth}{0.2 mm} \\[0.4 cm]
{ \huge \bfseries \thetitle}\\
\rule{\linewidth}{0.2 mm} \\[3.5 cm]

\begin{minipage}{0.5\textwidth}
    \begin{flushleft} \large
        \emph{Person A}\\
        \end{flushleft}
        \end{minipage}~
        \begin{minipage}{0.4\textwidth}
        
        \begin{flushright} \large
        \emph{Person B :} \\
    \end{flushright}
\end{minipage}\\[2 cm]
\end{titlepage}

\section{Preface}

Why is LaTeX too hard? \cite{Human:1}

\newpage

\bibliographystyle{unsrt}
\bibliography{\water} % bibliography prints here

\end{document}
improved formatting
Source Link
Mensch
  • 65.9k
  • 37
  • 93
  • 300

I can perfectly compile main.texmain.tex file below and havahave a pdf on OverLeaf but can't do it on TeXworks on my pc. So I can't have referancereference section.

Here is water.bibwater.bib file:

I can perfectly compile main.tex file below and hava pdf on OverLeaf but can't do it on TeXworks on my pc. So I can't have referance section.

Here is water.bib file:

I can perfectly compile main.tex file below and have a pdf on OverLeaf but can't do it on TeXworks on my pc. So I can't have reference section.

Here is water.bib file:

I added error info.
Source Link
Rageful
  • 233
  • 1
  • 13

EDIT: This is the error:

(c:/texlive/2018/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/texlive/2018/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./main.out) (./main.out)
(c:/texlive/2018/texmf-dist/tex/latex/amsfonts/umsa.fd)
(c:/texlive/2018/texmf-dist/tex/latex/amsfonts/umsb.fd) [1{c:/texlive    /2018/texm
f-var/fonts/map/pdftex/updmap/pdftex.map} <./images/latex.png>]
Runaway argument?
]{NAME:1} 
! Paragraph ended before \@citex was complete.
<to be read again> 
               \par 
l.74 
 

?

EDIT: This is the error:

(c:/texlive/2018/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/texlive/2018/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./main.out) (./main.out)
(c:/texlive/2018/texmf-dist/tex/latex/amsfonts/umsa.fd)
(c:/texlive/2018/texmf-dist/tex/latex/amsfonts/umsb.fd) [1{c:/texlive    /2018/texm
f-var/fonts/map/pdftex/updmap/pdftex.map} <./images/latex.png>]
Runaway argument?
]{NAME:1} 
! Paragraph ended before \@citex was complete.
<to be read again> 
               \par 
l.74 
 

?

Source Link
Rageful
  • 233
  • 1
  • 13
Loading