I know there are many questions posted about this topic and that my question might be a duplicate (I'm a beginner in LyX, so apologizing in advance). However, I preformed a search before posting but I haven't been able to find one that seems to match my problem.

I am using unsrt natbib style that supports urls (I have checked the .bst) and the entries in my bib file have the url. However, the url is not being displayed in my pdf.

Additional info, I am generating the bib file with Zotero using Western encoding.

Bib file entry example:

        titlenter code heree = {{INTERCONNECT} {Circuit} {Solver} {\textbar} {Lumerical} {Inc}},
        url = {https://www.lumerical.com/support/whitepaper/interconnect_circuit_solver.html},
        urldate = {2018-03-05},

My LaTeX preamble is:

%{{ Don't change! times font for proper scaling
%}} times font for proper scaling

\usepackage[numbers,square]{natbib} %see http://merkel.zoneo.net/Latex/natbib.php for usage!
\usepackage{xtab, tabularx} %for multipage tables
\usepackage[Sonny]{fncychap} %for the chapter headings

%{{ set double-space
%}} set double-space

%set margins
\usepackage[top=1in, bottom=1in, left=1.25in, right=1.25in]{geometry}

% Define your own commands and environment definitions, for example:
\newcommand{\program}[1]{\textbf{#1}} % program names in bold text
\newcommand{\exten}[1]{\texttt{#1}} % file extensions in bold text (use caps)
\newcommand{\cmmd}[1]{\textbackslash\texttt{#1}} % command name in tt font
\newcommand{\enviro}[1]{\texttt{#1}} % environment name in tt font  
  % Provides indented formal definition and emphasizes the word.
  % e.g. \begin{definition}{Reliability} ... \end{definition}

% Put the document title and page numbers in the header

%Place floats within section

% To be able to capitalize cross reference
  • Use howpublished instead of url. -> howpublished = {\url{<URL here>}, – Johannes_B Apr 8 '18 at 9:14
  • By the way, you should have a look at en.wikibooks.org/wiki/LaTeX/… – Johannes_B Apr 8 '18 at 9:15
  • Is there a way to change all the url to howpublished other than by hand? I have a long bibliography. – user44756 Apr 8 '18 at 9:28
  • If you switch to the modern biblatex, there is no need to change anything. It supports url as well as urldate. Your reference management tool seems to be in biblatex mode already. It also provides online instead of misc for your online entries. Find out more by clicking the link i posted earlier. – Johannes_B Apr 8 '18 at 9:35
  • This question has nothing to do with LyX. – Johannes_B Apr 8 '18 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.