LyXspaces between the words in references in pdf view

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
jije
Posts: 8
Joined: Fri Mar 04, 2016 8:06 pm

spaces between the words in references in pdf view

Post by jije »

I am using book document
when I view my work on pdf, some of references looks like this with spaces. how to avoid them?
Can I change "bibliography" to "references"?
Image

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

spaces between the words in references in pdf view

Post by Johannes_B »

Seems the URL cannot be broekn down. Search in the hyperref properties for breaklinks.

EDIT: Crosspost
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
jije
Posts: 8
Joined: Fri Mar 04, 2016 8:06 pm

Re: spaces between the words in references in pdf view

Post by jije »

Would you pleas help me with that?
I looked at some solution like \usepackage[hyphens]{url}
but it did not work, maybe because the spaces are not in the link itself?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

spaces between the words in references in pdf view

Post by Johannes_B »

In order to help we will need to see a minimal working example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
jije
Posts: 8
Joined: Fri Mar 04, 2016 8:06 pm

spaces between the words in references in pdf view

Post by jije »

Code: Select all

%% LyX 2.1.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{luainputenc}
\usepackage{babel}
\begin{document}
\begin{thebibliography}{27}
\bibitem[1]{key-1}Fayyazuddin and Riazuddin, \textit{A Modern Introduction
to Particle Physics}, 3rd ed. Singapore: World Scientific Publishing
Company, 2011.

\bibitem[2]{key-2}F. Close, \textit{Particle Physics: A Very Short
Introduction}. Oxford: Oxford University Press, 2004. {[}Online{]}.
Available: http://emilkirkegaard.dk/en/wp-content/uploads/Particle-Physics-A-Very-Short-Introduction.pdf.
Accessed: Feb. 10, 2016.

\bibitem[8]{key-8}J. Carroll, \textquotedbl{}Explainer: Standard
model of particle physics,\textquotedbl{} The Conversation, 2011.
{[}Online{]}. Available: http://theconversation.com/explainer-standard-model-of-particle-physics-2539.
Accessed: Mar. 7, 2016.

\bibitem[27]{key-27}K. Brading, \textquotedbl{}Which Symmetry? Noether,
Weyl, and Conservation of Electric Charge,\textquotedbl{}. {[}Online{]}.
Available: http://www3.nd.edu/\textasciitilde{}kbrading/Research/WhichSymmetryStudiesJuly01.pdf.
Accessed: Mar. 13, 2016.

\bibitem[34]{key-34}\textquotedbl{}Elementary Particles,\textquotedbl{}.
{[}Online{]}. Available: http://www.particlecentral.com/particle\_page.html.
Accessed: Apr. 9, 2016.

\bibitem[35]{key-35}C. G. Vayenas and S. N.-A. Souentie, G\textit{ravity,
Special Relativity, and the Strong Force}. United States: Springer-Verlag
New York, 2012.

\bibitem[43]{key-43}A. Hobson, \textquotedbl{}Teaching E = mc\textasciicircum{}2:
Mass Without Mass,\textquotedbl{} The Physics Teacher, 2005. {[}Online{]}.
Available: http://physics.uark.edu/hobson/pubs/05.02.tpt.pdf. Accessed:
Apr. 12, 2016.\end{thebibliography}

\end{document}
Last edited by cgnieder on Tue Apr 19, 2016 4:31 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

spaces between the words in references in pdf view

Post by Johannes_B »

Code: Select all

%% LyX 2.1.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{luainputenc}
\usepackage{babel}
\usepackage[hyphens]{url}
\begin{document}
\begin{thebibliography}{27}
%		\raggedright % Might give you better results
	\bibitem[1]{key-1}Fayyazuddin and Riazuddin, \textit{A Modern Introduction
		to Particle Physics}, 3rd ed. Singapore: World Scientific Publishing
		Company, 2011.

	\bibitem[2]{key-2}F. Close, \textit{Particle Physics: A Very Short
		Introduction}. Oxford: Oxford University Press, 2004. {[}Online{]}.
		Available:~\url{http://emilkirkegaard.dk/en/wp-content/uploads/Particle-Physics-A-Very-Short-Introduction.pdf}.
		Accessed:~Feb. 10, 2016.

	\bibitem[8]{key-8}J. Carroll, \textquotedbl{}Explainer: Standard
		model of particle physics,\textquotedbl{} The Conversation, 2011.
		{[}Online{]}. Available:~\url{http://theconversation.com/explainer-standard-model-of-particle-physics-2539}.
		Accessed:~Mar. 7, 2016.

	\bibitem[27]{key-27}K. Brading, \textquotedbl{}Which Symmetry? Noether,
		Weyl, and Conservation of Electric Charge,\textquotedbl{}. {[}Online{]}.
		Available:~\url{http://www3.nd.edu/~kbrading/Research/WhichSymmetryStudiesJuly01.pdf}.
		Accessed:~Mar. 13, 2016.

	\bibitem[34]{key-34}\textquotedbl{}Elementary Particles,\textquotedbl{}.
		{[}Online{]}. Available:~\url{http://www.particlecentral.com/particle\_page.html}.
		Accessed:~Apr. 9, 2016.

	\bibitem[35]{key-35}C. G. Vayenas and S. N.-A. Souentie, G\textit{ravity,
		Special Relativity, and the Strong Force}. United States: Springer-Verlag
		New York, 2012.

	\bibitem[43]{key-43}A. Hobson, \textquotedbl{}Teaching E = mc\textasciicircum{}2:
		Mass Without Mass,\textquotedbl{} The Physics Teacher, 2005. {[}Online{]}.
		Available:~\url{http://physics.uark.edu/hobson/pubs/05.02.tpt.pdf}. 
		Accessed:~Apr. 12, 2016.
\end{thebibliography}

\end{document}

By the way, if you really want to do your references by hand, you should consult manually managing references.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply