Hot answers tagged

6

Your file almost works. The main problem with it is that you use \bibligraphy{science.bib} so LaTeX looks for a file called science.bib.bib, which is probably not what you want. The other possible problem is, as Ian Thompson noted, that you are calling for an entry that does not exist in your .bib file. That will fail for obvious reasons. (Edit for greater ...


5

As far as I can see you will have to resort to \DeclareLabelalphaTemplate, but that is not too bad. We can just copy the default from biblatex.def and change \field[strwidth=2,strside=right]{year} to \field{year} \DeclareLabelalphaTemplate{ \labelelement{ \field[final]{shorthand} \field{label} ...


4

It is imho not a good idea to redefine such accent commands. But in your case you can make \turc robust: \documentclass{scrartcl} \usepackage{natbib} \let\turc\c \usepackage{etoolbox} \robustify\turc \renewcommand{\c}{\ensuremath{c^\pi}} \begin{document} \citep{ABC} \bibliographystyle{plainnat} \bibliography{lit} \end{document}


4

Quoting from the user guide of the jss document class (backticks added): The default in jss.cls is to use the natbib package with options authoryear, round and longnamesfirst. If you cite any article with six or more authors, the citations with all names should be avoided. This can either be done by declaring \shortcites{...} for the particular ...


3

Both citation call-out formats are examples of author-year style. The first, (Nordborg et al., 1996b) is called "parenthetic" citation call-out style. With natbib, it's produced with \citep{<key>} The second call-out style, viz., Nordborg et al. (1996b), is known as a "textual" style; with natbib it's generated via ...


3

You can automate the choice of length with the following code \newcounter{mymaxcitenames} \AtBeginDocument{% \setcounter{mymaxcitenames}{\value{maxnames}}% } \newlength{\citelabelwidth} \defbibenvironment{bibliography} {\list {\begingroup\defcounter{maxnames}{\value{mymaxcitenames}}\usebibmacro{cite}\endgroup} ...


2

I suggest you use the special type @inreference that is specifically for dictionaries and encyclopaedias. @inreference{BAR60, Author={Foo Bar}, Title={Baz}, Year={1960}, Booktitle={Encyclopaedia of Everything} } Then you can just do \DeclareFieldFormat[inreference]{title}{\printtext{s.v.}\addspace\mkbibquote{#1\isdot}} to automatically add the ...


2

When you do \let\turc\c you are essentially defining \def\turc{\OT1-cmd \c \OT1\c} Note that \OT1-cmd is a single control sequence, as well as \OT1\c; they can't ordinarily be written or used without special tricks. Simplifying a bit, the purpose of \OT1-cmd is twofold: during normal typesetting, it ignores the following \c token and uses \OT1\c, which ...


2

Here's a version with biblatex, because I find that natbib is really hard to customize. For now, the length is manual (set to 100pt) since this is the first time I've been trying to change biblatex this much and I'm not sure how to set it automatically. Although I doubt you should have longer last names, if they happen, you can just slightly increase that ...


2

I'd have expected your bibtex style to stop that, but \mbox{\cite{is}} will stop line breaking (but may also affect the size of word spaces, so isn't ideal).


2

You seem to want to manually format citations, and also to have them numeric, while being able to cite some sort of author or other aspect. The below idea is not generally recommended but I think does occasionally have its uses in unusual documents. You mean like this? -- here is how to use free format bibliography items (the file example.bib would ...


2

You'll need to load the natbib citation management package with options round and authoryear: \usepackage[round, authoryear]{natbib} add an "optional" argument, in square brackets, to each and every bibitem, e.g., \begin{thebibliography}{1} \bibitem[Balassy \emph{et~al.}(1989)]{balassy} Balassy Z., Huszar I., Csizmadia B. (1989): Determination of ...


2

The term "Vancouver style" or "Vancouver system" seems to be slightly more variable than say, APA style or Chicago style. Often institutions have their own modifications to the general idea of the style. (Much like "Harvard style" often just means an author year style.) According to Wikipedia the home of the "official Vancouver style" is the NLM's Citing ...


1

This can be done with a bit of modification of the cite macro (we assume authoyear-ibid here) \renewbibmacro*{cite}{% \global\boolfalse{cbx:loccit}% \iffieldundef{shorthand} {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} {\usebibmacro{cite:ibid}} {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}} ...


1

You can make the comma go away with \renewcommand*{\nameyeardelim}{\addspace} Indeed it is the natbib compatibility mode (see blx-natbib.def) that makes this change necessary, the default is to use a space only. The period in \cited you can get with \newrobustcmd{\mkbibparensperiod}[1]{\mkbibparens{#1\addperiod}} ...


1

Ok I've found the error. The only way what I have to do, was to write the following package in the header: \usepackage{natbib}


1

Don't specify the longnamesfirst option when loading natbib if you don't want the names of all authors shown the first time a multiple-author piece is cited. And, since the ecta bibliography style uses authoryear-style citation callouts surrounded in parentheses, the natbib options round and numberyear are not needed either (although providing them does no ...


1

This is not possible without modifying the code and recompiling TeXShop, specifically in the TSTextView object. It's not hard, but would require some familiarity with Objective-C. If you use \citepage{ as a command name, it should work as-is.


1

The package bibentry works under the assumption that each entry in the .bbl file is followed by a blank line and, unfortunately, model1-num-names.bst doesn't respect this convention. Modify a copy of model1-num-names.bst, say model1-num-names+blank.bst in the following way (line numbers added for reference) and place this modified copy in the working ...


1

Got it working by using \input and the %-*- root: filename.tex -*- in every subfile method, no need to use a .sublime_project file or \inputs after \end{document}, although the workaround mentioned by @Bordagoil in the comments is very valid.


1

Use \caption[Text for the LOT, if needed]{The text over/under the tabular (\small Copied from \url{http://any.where.org})} LOT: List of Tables Or create an online entry for the bibliography and use: \caption[Text for the LOT, if needed]{The text over/under the tabular~\cite{xyz}}


1

OK, I figured it out as soon as i posted the question, but other people may benefit from it (delete it otherwise). In Texstudio, the bibliography wasn't set to UTF-8 (in Adv. Editor tab), probably causing the strange effect to occur. by changing it to UTF-8 and saving the preset, the problem disappeared.


1

Just go with \DeclareAutoCiteCommand{footnote}{\footcite}{\footcites} to let biblatex-mla know what to do with autocite=footnote. MWE \documentclass[11pt]{article} \usepackage[backend=biber, style=mla, autocite=footnote]{biblatex} \addbibresource{biblatex-examples.bib} \DeclareAutoCiteCommand{footnote}{\footcite}{\footcites} \begin{document} foo ...


1

If you are having trouble with natbib and biblatex (sometimes I have compilation issues with these packages), the following answer enables you to avoid those packages. Only three simple steps: 1) download this style: http://ftp.math.utah.edu/pub/tex/bibtex/alpha.bst 2) place it in your project's directory, preferentially under a different name (e.g. ...


1

You'll probably find an appropriate one among many citation commands provided by biblatex. Search for biblatex manual, this is in chapter 3.7. You'll probably go with \citeauthor* or \footcite.



Only top voted, non community-wiki answers of a minimum length are eligible