After consulting lots of posts here at tex exchange and other resources, I still can't figure out the problem. Everything looks fine, still alphabetical sorting in working for me. This is the last important step to finish my thesis, and wonder some of the experienced people can help me.  Linked posts:         \documentclass[fontsize=11.5pt,                headsepline,                BCOR=40mm, american, %paper=a4,ngerman,                bibliography=totoc]{scrbook}  # loading natbib \usepackage[round]{natbib}  # using plainnat to sort it alphabetically  \bibliographystyle{plainnat}  # using references from two different files \bibliography{Bibliography/introMethods,Bibliography/resultsDiscussion}   Entries from my reference files (all in bibtex format)  @article{roguev2001saccharomyces,   title={The Saccharomyces cerevisiae Set1 complex includes an Ash2 homologue and methylates histone 3 lysine 4},   author={Roguev, Assen and Schaft, Daniel and Shevchenko, Anna and Pijnappel, WWM Pim and Wilm, Matthias and Aasland, Rein and Stewart, A Francis},   journal={The EMBO journal},   volume={20},   number={24},   pages={7137--7148},   year={2001},   publisher={EMBO Press} }  @article{miller2001compass,   title={COMPASS: a complex of proteins associated with a trithorax-related SET domain protein},   author={Miller, Trissa and Krogan, Nevan J and Dover, Jim and Erdjument-Bromage, H and Tempst, Paul and Johnston, Mark and Greenblatt, Jack F and Shilatifard, Ali},   journal={Proceedings of the National Academy of Sciences},   volume={98},   number={23},   pages={12902--12907},   year={2001},   publisher={National Acad Sciences} }   I calling within text using citep ~\citep{roguev2001saccharomyces}  These entries look fine as someone mentioned in the other post, to reformat the author name.  I using TexLive beta for ElCaptain (MacOSX) complied via pdflatex using TexStudio. I have also deleted .bbl,.blg,.aux files before regenerating the bibliography. There are total of around 250 references in both the files. I mostly used google schlolar to export the citations of scientific papers in the bibtex format.  Please let me know, if I am missing any information and I will add up here. Thanks a lot and have a great day!  How the output looks like   Update:  Thanks to Ulrike for pointing out that the references are already sorted and problem with other references. First two entries have no author name, that's why they are not sorted. But for the third entry (Agger) I want it like this:    Minimal working example  \documentclass[a4paper]{article} \usepackage{amstext} \usepackage{makeidx} \usepackage{graphicx} \usepackage[round]{natbib} \usepackage[hmargin=3cm,vmargin=3.5cm]{geometry} \pagestyle{plain}  \begin{document} Lets cite this reference \citep{roguev2001saccharomyces} and this ~\citep{miller2001compass}. \printindex  \bibliographystyle{plainnat} \bibliography{temp.bib} % Insert the name of your bib file here  \end{document}   Contents of temp.bib  @article{roguev2001saccharomyces,   title={The Saccharomyces cerevisiae Set1 complex includes an Ash2 homologue and methylates histone 3 lysine 4},   author={Roguev, Assen and Schaft, Daniel and Shevchenko, Anna and Pijnappel, WWM Pim and Wilm, Matthias and Aasland, Rein and Stewart, A Francis},   journal={The EMBO journal},   volume={20},   number={24},   pages={7137--7148},   year={2001},   publisher={EMBO Press} }  @article{miller2001compass,   title={COMPASS: a complex of proteins associated with a trithorax-related SET domain protein},   author={Miller, Trissa and Krogan, Nevan J and Dover, Jim and Erdjument-Bromage, H and Tempst, Paul and Johnston, Mark and Greenblatt, Jack F and Shilatifard, Ali},   journal={Proceedings of the National Academy of Sciences},   volume={98},   number={23},   pages={12902--12907},   year={2001},   publisher={National Acad Sciences} }   Generates    I want to change the order of first name and last name and the first author name to be bold, for ex:
\RequirePackage{filecontents} \begin{filecontents}{\jobname.bib} @article{Arter95,     Author = {David Arter},     Date-Added = {2013-08-11 17:38:06 +0000},     Date-Modified = {2013-09-01 15:13:22 +0000},     Journal = {Journal of Common Market Studies},     Number = {3},     Pages = {361-287},     Title = {The {EU} {Referendum} in {Finland} on 16 October 1994:              {A} Vote for the {West}, not for {Maastricht}},     Volume = {33},     Year = {1995}}  @article{Detlef95,     Author = {Jahn, Detlef; Storsved,Ann-sofie},     Date-Added = {2013-08-11 17:14:34 +0000},     Date-Modified = {2013-08-11 17:16:45 +0000},     Journal = {West European Politics},     Number = {4},     Pages = {18-37},     Title = {Legitimacy through referendum? The nearly successful domino‚Äêstrategy of the Eu‚Äêreferendums in Austria, Finland, Sweden and Norway},     Volume = {18},     Year = {1995}} \end{filecontents} \documentclass{article} \usepackage[ngerman]{babel} \usepackage{natbib} \bibpunct{(}{)}{;}{a}{}{,} \makeatletter \renewcommand\@biblabel[1]{} \makeatother  \begin{document}  \cite{Arter95}  \bibliography{\jobname} \bibliographystyle{plainnat}  \end{document}   Please help. I want the author's name displayed like this "Arter, D." instead of David Arter
How to delete a full stop on reference ending According to APA rules, after each reference there must the digital object identification (doi). I use JabRef as a reference manager and for some reason, if I put an article doi on its "doi" field, it won't show up after the build on my editor, but if I put the doi on its "note" field it shows up. However, it's adding a period after the note field. I need a way to have the reference without an ending period.  Here's the LaTex document. I use TexPad as my editor.  \documentclass[12pt,a4paper,oneside]{report} \usepackage[utf8]{inputenc} \usepackage[portuguese, english]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[sort, longnamesfirst]{natbib} \usepackage[strings]{underscore} \bibliographystyle{newapa}  \usepackage{sectsty} \chapterfont{\fontsize{14}{15}\selectfont} \sectionfont{\fontsize{12}{15}\selectfont} \subsectionfont{\fontsize{12}{15}\selectfont} \renewcommand\bibsection{\section*{Referências}} \bibpunct[:\ ]{(}{)}{;}{a}{,}{,}  \title{} \date{} \makeindex  \begin{document}  \cite{aldous-newviewsgrandparents-1995}  \bibliography{/Users/Ricardo/Documents/Ricardo/library2.bib}  \end{document}   It produces this:     Aldous, J. (1995). New views of grandparents in intergenera- tional   context. Journal of Family Issues, 16(1), 104–122. doi:   10.1177/019251395016001006.   I need that last period out.  Thanks. Is Cursed Child canon to the original story? From what I am hearing the stage-play called The Cursed Child is based on the characters from the Harry Potter series. It is set 19 years from the end of Deathly Hallows (i.e. When Harry's children are starting their time at Hogwarts).   I have also seen the J.K. Rowling has had at least some involvement and been on the set and a part of rehearsals, etc.   My question is has there been a statement given relating to the canon of the stage play to original series? If so, would any conflicting information be considered a retcon?  Related:  - but not dupe because this asking about in-universe information. Can someone identify this book, where children are bred for specific jobs? Things I remember about this book:   Every child was selected for a certain job/career; If twins were born, one was always killed; Seeing colors for the first time (describing the color of an apple); Seeing war and death and poverty.   Does anyone have any idea what this book might be? I think the title says it all. Let's say you're mastering a game without the benefit of miniatures, maps, or any kind of physical representation of the environment. How would you keep track of details like line-of-sight, ranged attack viability, and all the other small nuances which go with creating a "believable-enough" environment in which your PCs live and thrive?  (I admit that @LoganMacRae, who is my own DM, is an inspiration for this question. He does this with panache, and in my one-off, I feel like I have some mighty big shoes to fill!) SharePoint online REST: Get users profile properties I'm looking for some help with a REST call I'm attempting to make in SharePoint Online.  I'm doing an add-in that gives me the name, birhday and photo property of all user in user profiles    I tried with this code   var siteUrl = _spPageContextInfo.siteAbsoluteUrl;     Console.log(siteUrl);     $.ajax({         url: siteUrl + "/_api/SP.UserProfiles.PeopleManager/GetMyProperties",         method: "GET",         headers: { "Accept": "application/json; odata=verbose" },         success: function (data) {             console.log(data);         },         error: function(error) {             console.log(error);         }     });   but I only get current user profile properties, what I need is all user profiles properties for all users, how can i achieve that?  Thanks in advance! homeomorphism of cantor set extends to the plane? Suppose C is a Cantor set in the Euclidean plane, or even in R^3. Suppose h is a homeomorphism of C onto itself. Can h be extended to a homeomorphism of the whole space? What about if h preserves the ´end points´ of the Cantor set? Seems that the latter is a necessary condition but I don´t know how to prove it. How are Stormtroopers uniquely identified in the field? Multiple times in Star Wars: The Force Awakens, people refer to trooper FN-2187 by that specific correct name, while he is in armor.  But the armor is largely identical (some have little accessories like shoulder pads, or different weapon loadouts, but FN-2187 lacks these), which makes me wonder how do First Order (or even the old Imperials) identify who they're talking to?  How are Stormtroopers correctly identified while they're in armor? Abandoned colony of military engineer corps org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 After learning about the  datasets I've working with the following layers, from the USA data   Country boundaries State boundaries County boundaries City boundaries ZipCode/Postcode boundaries   What I am trying to find is the equivalent (where appropriate) of the same data for various countries.  Is there any free administrative boundaries available as shapefiles for other countries? How to run a scheduled job every 15 minutes? Using the salesforce GUI it seams impossible to schedule a job every 15 minutes. Or more than once a day. Why do students go for a PhD even when chances of getting academic jobs on its completion are slim? This is in reference to my question: .  I was told in the answer of the above linked question that chances of landing a job as an assistant professor in Mathematics are quite slim. Very few people will actually get a permanent position in academia.  An article of 2014 shows only 0.5-3% of PhD graduates will actually get a job as an Assistant Professor.  But I have two questions:        Why do so many people still apply for a PhD in some reputed institutes in India even knowing the harsh reality? I found there are 1500 applications for four PhD scholarship positions.          One answer says that people move to industry, but I still don’t understand how after doing a PhD in suppose differential geometry or algebraic geometry one can do a job in industry if he/she gets no position as an assistant professor.   Will one be satisfied to do some managerial work in some Consultancy firm after doing a PhD in Mathematics?      Are people jobless after a PhD?   Completion of a PhD requires so much effort. So why is there no value after doing it?      NOTE:  In the most up-voted answer below it has been said that many who enroll for  a PhD don't even wish to pursue an academic career.  I have been asking my seniors who are currently pursuing a PhD or are in the verge of completing their degree or who have completed it. They said that they all want to be Professors in some Universities and want to be involved in research because that is the dream job for them.  I am obviously talking about PhD in Mathematics SQL Switch/Case in 'where' clause Suppose $f(x)$ is an irreducible polynomial over $\mathbb Z$ of degree $n$. Is it always the case that there exist distinct $x_1,\ldots,x_{2n+1}\in \mathbb Z$ such that $f(x_1),\ldots,f(x_{2n+1})$ are all prime?  So far I've tested a few irreducible polynomials using mathematica, and this has held. The motivation is to use this as a test for irreducibility, as if $f(x)$ is not irreducible then it takes on at most $2n$ prime values, as either factor takes on $1$ or $-1$ at most $2n$ times. (I'd also be interested in learning if this bound can be improved).  This could potentially be expended to other rings of integers, i.e. $\mathbb Z[i]$, but in that case the minimal number of primes needed to certify that $f(x)$ is irreducible would increase as more units appear. How to compute the integral $\int_{0}^{\infty} \frac{x^{1/3}}{1+x^{2}} \ dx$ I want to compute this integral $$\displaystyle\int_{0}^{\infty} \frac{x^{1/3}}{1+x^{2}} \ dx$$  What I did was the following. I substituted $x=t^{6}$, so that my $dx= 6t^{5} \ dt$ and so the integral changes to $$\int_{0}^{\infty} \frac{t^2}{1+t^{12}} \cdot 6 t^{5} \ dt =6 \cdot \int_{0}^{\infty} \frac{t^7}{1+t^{12}} \: dt$$  Now If I substitute $t^{4}=v$ then what I will be having is the following integral $$\frac{6}{4}\cdot \int_{0}^{\infty} \frac{v}{1+v^{3}} \ dv$$  Now I can write $1+v^{3} = (1+v) \cdot (1-v+v^{2})$ and so I have   \begin{align*} \int_{0}^{\infty} \frac{v}{1+v^{3}}\: dv &amp;= \int_{0}^{\infty}\biggl[\frac{1}{3}\cdot \frac{v+1}{1-v+v^{2}} - \frac{1}{3} \cdot \frac{1}{1+v}\biggr]\: dv \end{align*}  Now the point is that the integral of $1/(1+v) \to \infty$, so I am not sure if this is the right way to do. Can anyone suggest anything? Doubt related to a theorem in congruences of Chapter 5 of Apostol Introduction to analytic number theory I am self studying number theory from Introduction to Analytic number theory by Apostol.   I have a doubt in one argument of proof of Theorem 5.14 and I am posting its image.      My doubt is in 2nd line of 2 nd paragraph how Apostol writes - If y is a solution of (5) then ay $\equiv $ at ( mod m) . How does y being a solution of (5) implies that?       Can someone please help Filter log file entries based on date range How to show that the nth power of a $n \times n$ nilpotent matrix equals to zero $A^n=0$ Function $f(z)$ such that $|f(z)| > |z|$ for every $z\in\mathbb{C}, 1/f(z)$ Linear transformations map lines to lines I need help with this question:  Let $T$ be a linear map from $\mathbb{R}^n \to \mathbb{R}^m$, and let $L$ be a line in $\mathbb{R}^n$. Show that $T(L)$ is also a line (is it not enough to just consider lines in the plane).