{"id":943,"date":"2016-01-02T15:32:02","date_gmt":"2016-01-02T15:32:02","guid":{"rendered":"http:\/\/malemuk.com\/olofee\/?p=943"},"modified":"2016-01-02T15:32:02","modified_gmt":"2016-01-02T15:32:02","slug":"bibtex-tips","status":"publish","type":"post","link":"https:\/\/malemuk.com\/olofee\/bibtex-tips\/","title":{"rendered":"BibTeX tips"},"content":{"rendered":"<p>Check also out <a href=\"http:\/\/malemuk.com\/olofee\/?p=919\">LaTeX tips<\/a><\/p>\n<p><strong>Page number<\/strong><br \/>\nTo refer to a given page:<br \/>\n<code>\\cite[p. 25]{myref}<\/code><\/p>\n<p><strong>Multiple citations<\/strong><br \/>\n<code>\\cite{myref1,myref2,myref3}<\/code><\/p>\n<p><strong>Citations in author-year style<\/strong><br \/>\nUse natbib: include the following line at the beginning of the file.<br \/>\n<code>\\usepackage[authoryear,round]{natbib}<\/code><br \/>\nAuthor (Year) is obtained with <code>\\cite{myref}<\/code> while (Author, Year) is obtained with <code>\\citep{myref}<\/code><br \/>\nFor the reference list, there are many possibilities. You might want to try out the following ones:<\/p>\n<ul>\n<li><code>\\bibliographystyle{abbrvnat}<\/code><\/li>\n<li><code>\\bibliographystyle{apalike}<\/code><\/li>\n<li><code>\\bibliographystyle{plainnat}<\/code><\/li>\n<\/ul>\n<p>The advantage with <code>abbrvnat<\/code> and <code>plainnat<\/code> is that they display the &#8220;url&#8221; field. They also write the surname of the authors first and the year at the end of the reference. <code>plainnat<\/code> writes out the full surname if available, which I find makes it harder to find references. In <code>apalike<\/code> the reference starts with Lastname, S. (Year).<\/p>\n<p><strong>Authorless citations<\/strong><br \/>\nTypically, technical reports from research institutes. A workaround is to write an acronym of the institution in the &#8220;author&#8221; field and then write the full name in the &#8220;publisher&#8221; field.<\/p>\n<p><strong>&#8220;Cited in&#8221;<\/strong><br \/>\nI&#8217;ve chosen to simply write &#8220;Cited in&#8230;&#8221; in the &#8220;note&#8221; field. That way, &#8220;Cited in&#8230;&#8221; appears at the end of the reference.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Check also out LaTeX tips Page number To refer to a given page: \\cite[p. 25]{myref} Multiple citations \\cite{myref1,myref2,myref3} Citations in author-year style Use natbib: include the following line at the beginning of the file. \\usepackage[authoryear,round]{natbib} Author (Year) is obtained with \\cite{myref} while (Author, Year) is obtained with \\citep{myref} For the reference list, there are many [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-943","post","type-post","status-publish","format-standard","hentry","category-computer-stuff"],"jetpack-related-posts":[{"id":886,"url":"https:\/\/malemuk.com\/olofee\/coastal-sea-ice-action-on-a-breakwater-in-a-microtidal-inlet-in-svalbard-phd\/","url_meta":{"origin":943,"position":0},"title":"Coastal-sea-ice action on a breakwater in a microtidal inlet in Svalbard (PhD)","date":"December 31, 2015","format":false,"excerpt":"PhD Thesis (PDF) Abstract Preface LaTeX source code of the thesis Writing statistics Defence Trial lecture Defence video Defence slideshow Defence slideshow with notes Questions from the opponents Articles 19th IAHR International Symposium on Ice (2008) Caline, F. and Barrault, S., 2008, Transmission of level ice stresses to the ice\u2026","rel":"nofollow","context":"In \"PhD\"","img":{"src":"","width":0,"height":0},"classes":[]},{"id":910,"url":"https:\/\/malemuk.com\/olofee\/emacs-tips\/","url_meta":{"origin":943,"position":1},"title":"Emacs tips","date":"December 31, 2015","format":false,"excerpt":"Essential shortcuts M-: META key (ALT on most keyboards) C-: CONTROL key C-x C-f : open file C-x b : switch to buffer C-x k : kill buffer C-s : search text forward C-r : search text backward C-+ \/ C-- : Zoom in\/out C-space: mark set (start of the\u2026","rel":"nofollow","context":"In \"Computer stuff\"","img":{"src":"","width":0,"height":0},"classes":[]},{"id":753,"url":"https:\/\/malemuk.com\/olofee\/create-bookmarks-in-pdf\/","url_meta":{"origin":943,"position":2},"title":"pdftk tips","date":"November 9, 2015","format":false,"excerpt":"Number pages Source:\u00a0http:\/\/cazencott.info\/index.php\/post\/2015\/04\/30\/Numbering-PDF-Pages Create a PDF that contains only page numbers. In numbers.tex: \\documentclass[12pt,a4paper]{article} \\usepackage{multido} \\usepackage[hmargin=.8cm,vmargin=1.5cm,nohead,nofoot]{geometry} \\begin{document} \\multido{}{31}{\\vphantom{x}\\newpage} \\end{document} (where 31 is your total number of pages). Then create numbers.pdf pdflatex numbers.tex Finally, stamp your file with page numbers: pdftk file.pdf multistamp numbers.pdf output single_document_numbered.pdf Create bookmarks Instructions for pdftk\u2026","rel":"nofollow","context":"In \"Computer stuff\"","img":{"src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/posts\/943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/comments?post=943"}],"version-history":[{"count":4,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/posts\/943\/revisions"}],"predecessor-version":[{"id":949,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/posts\/943\/revisions\/949"}],"wp:attachment":[{"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/media?parent=943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/categories?post=943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/malemuk.com\/olofee\/wp-json\/wp\/v2\/tags?post=943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}