I am trying to figure out why my reference is not being cited properly and it's been cut off. It looks like that:    The reference should look like that-> "(Harvard T.H. Chan School of Public Health (2012)". Since I am new to LaTeX, I would appreciate any advice! Thank you! P.S.: I use natbib for bibliography management   \usepackage[round]{natbib}    main.tex file:  \documentclass [oneside, a4paper, openany]{book}  \usepackage[utf8]{inputenc} \usepackage[british]{babel} % Use British english for hyphenation etc \usepackage{tocbibind} % Auto add Bibliography etc to Table of Contents \usepackage[round]{natbib} % Use BibTeX for bibliography management \usepackage{graphicx} \usepackage{hyperref} % Create hyperlinks within text \usepackage[toc,nonumberlist,nopostdot]{glossaries}  \begin{document}  \chapter{Literature Review} \label{Chapter:Literature-Review}  The next section will discuss the consequences of SB and the suggested amount of physical activity per day \citep{harvardthchanschoolofpublichealth2012}.  \bibliographystyle{plainnat} \bibliography{bibliography} \end{document}   bibliography.tex file:  @misc{harvardthchanschoolofpublichealth2012, author = "Harvard TH Chan School of Public Health", organization = "The Nutrition Source", title = "Measuring physical activity", url = "https://www.hsph.harvard.edu/nutritionsource/mets-activity-table/", urldate = "2016-11-09", year = "2012", month = "09", day = "18" }
I'm having a problem with author display for a statute - the author is 'City and County of San Francisco' but the output (using the apalike.bst style file provided by Elsevier) gives the author as 'City and San Francisco', missing the 'County' in the authorname.  Any suggestions?
If I create a custom environment based on the equation environment, I get a spacing issue: the next line of text after my environment closes doesn't start on the left margin.  Example code:  \documentclass{article} \begin{document} \newenvironment{myenv}{\begin{equation}}{\end{equation}} \noindent $| \leftarrow$ this is the left margin. \begin{myenv} e ^{i \pi} + 1 = 0 \end{myenv} $| \leftarrow$ this isn't the left margin. \end{document}   Output:    Removing the newline after \end{myenv} solves the spacing problem, but the resulting code is not readable.  Of course, in this example I could just use the equation environment itself. My real issue involves a more complex custom environment that suffers from the same problem, and which also includes an equation environment within it. How do I assign the output of a command into an array? I usually use "at a company" but I have encountered some articles using "in a company", "in XYZ firm" or "in an organization".  Which one is right? How to get back sudo on Ubuntu? I had Ubuntu 12.04 Beta installed on my computer. When 12.04 was finally released, I made a bootable USB Flash Drive using Startup Disk Creator.  Then I decided to check if this drive works properly and to reinstall the system on my desktop. I must add, my desktop behaves a bit strange when it comes to bootable USB's, it recognizes them as HDD.  In BIOS I changed priority of boot so USB Flash Drive (recognized as HDD) was first. Successfully booted, I installed Ubuntu. Everything worked fine, but...  Now I cannot boot from my real HDD. Every time I want to boot, I put the USB Flash Drive into my computer, boot, safely remove it and everything works.  What do I need to do to repair boot? How to get hardware specs of Android device? How do I add a .sty file to my MacTeX/TeXShop installation? I've searched online, but I have not found any clear instructions how to permanently add .sty files to my TeXShop installation. I'm using a Mac with OSX (TeXShop is a mac only program).  What is the best way of doing this? The one comprehensive set of instructions I found .   I've got as far as extracting the files (running LaTeX on the .ins and . dtx files) but after that I don't know what to do. I also don't understand how to update the index of my distribution, and whether there are particular OSX specifics (the instructions are for Windows). How can adding an infinite number of rationals yield an irrational number? For example how come $\zeta(2)=\sum_{n=1}^{\infty}n^{-2}=\frac{\pi^2}{6}$. It seems counter intuitive that you can add numbers in $\mathbb{Q}$ and get an irrational number. Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer.  Assumption: The browser figures out which application/viewer to use by the mime-type (content-type?) header in the HTTP response.  Based on that assumption, in addition to the bytes of the file, you also want to save the MIME type.  How would you find the MIME type of a file? I'm currently on a Mac, but this should also work on Windows.   Does the browser add this information when posting the file to the web page?  Is there a neat python library for finding this information? A WebService or (even better) a downloadable database? no wifi in Ubuntu 15.04 Will spoiled food always make you sick? Storing C++ template function definitions in a .CPP file I have some template code that I would prefer to have stored in a CPP file instead of inline in the header.  I know this can be done as long as you know which template types will be used.  For example:  .h file  class foo { public:     template &lt;typename T&gt;     void do(const T&amp; t); };   .cpp file  template &lt;typename T&gt; void foo::do(const T&amp; t) {     // Do something with t }  template void foo::do&lt;int&gt;(const int&amp;); template void foo::do&lt;std::string&gt;(const std::string&amp;);   Note the last two lines - the foo::do template function is only used with ints and std::strings, so those definitions mean the app will link.  My question is - is this a nasty hack or will this work with other compilers/linkers? I am only using this code with VS2008 at the moment but will be wanting to port to other environments. What is the best way to share/distribute Excel macro? I can join the server and sometimes the map would load for the server but i would just fall through the map and it would dissconect me and say timed out, any solutions? QThread and QTimer Sum over all non-evil numbers I'm working on the following contest math problem:     Define an evil number to be any positive integer that contains the   digit $9$. Show that      $$ \sum_{x} \frac{1}{x} &lt; 80 $$      where the sum is over all non-evil positive integers $x$.   I'm very confused on where to begin. Initially, I tried to consider this sum as part of the sum of $1/x$ over all positive integers, namely by noting that  $$ \sum_{n=1}^{\infty} \frac{1}{n} = \sum_{x} \frac{1}{x} + \sum_{y} \frac{1}{y} $$  where the first summation on the right side is the same as in the problem statement and the second is the sum over all evil numbers. However, I can't seem to find a way to use this since the sum of the left diverges.  Could anyone lend a helping hand? Why is integration the inverse of differentiation equivalent norms in Banach spaces of infinite dimension Suppose $ X $ is a Banach space with respect to two different norms, $ \|\cdot\|_1 \mathrm{ e } \|\cdot\|_2 $. Suppose there is a constant $ K &gt; 0 $  such that $$ \forall  x \in X, \|x\|_1 \leq K\|x\|_2 .$$ show then that these two norms are equivalent Sorting citations using \cites command in biblatex I am using biblatex for citations and bibliography. Now I often have lists of multiple citations, for which biblatex has the \cites command. Now I can get citations to automatically sort if I don't want page numbers, but I cannot get it right with page numbers.  What I want is all citation ordered chronological (oldest first). Is this possible, or must I just do this by hand?  Here is an example.  \documentclass[11pt,oneside]{memoir}  \usepackage[     style=authortitle,     useprefix=false,     maxnames=2,     firstinits=true,     sortcites=true,     uniquename=init,     abbreviate=true,     backend=biber,     sorting=ynt ]{biblatex}  \begin{filecontents}{jobname.bib} @book{tom1,   author = {Author, A.},   year = {2001},   title = {This book is from 2001},   shorttitle = {2001}, } @book{tom2,   author = {Author, A.},   year = {1999},   title = {This book is from 1999},   shorttitle = {1999}, } \end{filecontents}  \addbibresource{jobname.bib}   \begin{document} This one is corrent.\footnote{\Cites{tom1,tom2}.} This one is corrent.\footnote{\Cite{tom1,tom2}.}   This one is incorrent.\footnote{\Cites{tom1}{tom2}.} This one is incorrent.\footnote{\Cites[1]{tom1}[12]{tom2}.} \end{document} $24\mid n(n^{2}-1)(3n+2)$ for all $n$ natural problems in the statement.