Tag Info

Hot answers tagged

24

You can achieve this by using the sorting=none option. Here is a fully working MWE: \documentclass{article} \usepackage[ %backend=biber, natbib=true, style=numeric, sorting=none ]{biblatex} \addbibresource{biblatex-examples.bib} \begin{document} Aksin~\cite{aksin} says one in his article. Aristotle~\cite{aristotle:poetics} says two ...


24

One can enter non-numeric information -- such as "in press" and "forthcoming" -- directly in the year field of a bibliographic entry. The only time that having non-numeric information in the year field may cause trouble is if you (a) have several "in-press" pieces by the same author(s) and (b) need to ensure that the entries are sorted in a certain order. ...


23

The desired numbering scheme can be achieved by printing the labelnumber as the total number of entries in the current reference section, minus the actual label number, plus one. This approach is demonstrated in the document below. It relies on commands from etoolbox and allows for an arbitrary number of reference sections. \documentclass{article} ...


21

Under any of the predefined sorting schemes, you can override the order of the bibliography using the presort and sortkey fields. The presort field is intended to group entries together in the bibliography. The sortkey field serves as a master sort key. From the appendix the biblatex manual, you can see that the predefined sorting schemes establish ...


21

Here's a solution using biblatex: \documentclass{article} \usepackage[sorting=ydnt]{biblatex} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @misc{a01, author = {Author, A.}, year = {2001}, title = {Alpha}, } @misc{b03, author = {Buthor, B.}, year = {2003}, title = {Bravo}, } @misc{c02, author = {Cuthor, C.}, year = {2002}, ...


21

I didn't find a ready-made bst-file, but seem to have managed to combine unsrt and abbrv by myself. Since I can't upload the new bst-file, here's what I did: Copy unsrt.bst into a working directory and rename it (later, this file should go into your local texmf tree); In the new file, look for FUNCTION {format.names}. In the seventh code line of this ...


20

Don't forget that many options in biblatex/biber are per-entry so you can just add: OPTIONS = {useprefix=false} to the entry. Table 2 in the Biber manual and Appendix C of the BibLaTeX manual detail which options have which scope - with Biber, many options can have global, per-entrytype or per-entry scope. This actually makes quite a few surprising things ...


20

You could define a command for this purpose. Use that command in defining the label. Here's an example: \documentclass{article} \makeatletter \newcommand*\welsh[1]{% \ifcase#1\or a\or b\or c\or ch\or d\or dd\or ... \else\@ctrerr\fi} \newcommand*\Welsh[1]{% \ifcase#1\or A\or B\or C\or ... \else\@ctrerr\fi} \makeatother ...


18

There are several ways to have separate bibliographies by type of items cited. I'll describe here some of them, namely: With bibtex Using splitbib; using bibtopic; and using multibib With biblatex BibTeX There are several, more or less complicated solutions to separate bibliographies by type with bibtex, but that's not "automagicly" at all... Using ...


18

If you are using a traditional BibTeX style file, use the @unpublished type and use the notes field to explain the status. If you are using biblatex, then you can use the @article type and add the information to the notes: biblatex tends to be more forgiving in what is 'required' for an article.


17

A working scheme seems to be \documentclass{article} \usepackage[authoryear]{natbib} \usepackage{hyperref} \DeclareRobustCommand{\VAN}[3]{#2} \begin{document} \citet{vannoort} \citet{other} \bibliographystyle{plainnat} % here we change the meaning of \VAN \DeclareRobustCommand{\VAN}[3]{#3} \bibliography{vannoort} \end{document} where the entry in the ...


16

If I understand the question correctly, that you want the bibliography arranged in the order that each item is first cited, then you need to write \bibliographystyle{unsrt} or if you are using natbib then \bibliographystyle{unsrtnat}. You also need to rerun latex, bibtex, latex, latex, each time the ordering of the citations changes, so as to get the ...


16

If you need the bibliography sorted in order of appearance, use \bibliographystyle{unsrt} because the plain bib style sorts alphabetically by author. As an aside: your bib entries are wrong. Authors should be separated by and rather than commas: @article{ GatorTechSmartHouse, Author = {S. Helal and W. Mann and H. El-Zabadani and J. King and Y. ...


15

The useprefix option just tells biblatex that "von" must be considered as part of the last name for citing and sorting. \usepackage[natbib=true, style=numeric-comp, backend=bibtex8, defernumbers, % useprefix, % <- von is part of last name with this option maxnames=99, maxcitenames=3]{biblatex} (Page 60 of the manual.)


14

Taking some code from How to sort an alphanumeric list, a mild change to your interface works for sorting via the datatool package: \documentclass{article} \usepackage{datatool}% http://ctan.org/pkg/datatool \newcommand{\sortitem}[1]{% \DTLnewrow{list}% Create a new entry \DTLnewdbentry{list}{description}{#1}% Add entry as description } ...


14

Adding sortlocale = nn_NO (nn for Norwegian nynorsk, nb for Norwegian bokmål) as a package option will ensure that Aa is treated as Å, and that Å is alphabetized last. Cf. the University of Oslo’s Local guide to biblatex. \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{nynorsk} \usepackage[style = authoryear, language = nynorsk, ...


14

I didn't look at Charles's code because I wanted to see how difficult it would be to implement a generic sorting macro that was expandable. It turns out that it's more or less straight-forward to do in a continuation-passing style. \documentclass{article} \usepackage{etoolbox} \makeatletter % #1 - comparator % #2 - token list to sort \newcommand\sort[2]{% ...


14

Here's a solution you can use for book class documents. It counts down the remaining pages from \mainmatter to the last page, ignoring pages in the \frontmatter division (mainly because I didn't want to overcomplicate things with roman numbering, but still wanted to provide an answer that recognised the issue). You'll obviously need to adjust this answer ...


14

This is not currently possible. However the functionality for this is implemented in biber already and will be made visible through biblatex in the near future. This will allow you to specify different sorting not only for each refsection but for multiple bibliography lists in the same refsection. This is now possible with biblatex 2.x and biber 1.x: ...


13

This solution changes the sorting scheme, and hence requires biber as the backend. \documentclass{article} \usepackage[backend=biber,style=authoryear]{biblatex} \usepackage{filecontents} \renewbibmacro*{begentry}{% \iffieldundef{shorthand}{}{% \printfield{shorthand}\addspace =\addspace}} \DeclareSortingScheme{nyt}{% \sort{\field{presort}} ...


13

The problem is that \index expands its contents when it appears as the argument to another command, while it doesn't if it appears at the top level, so with \is{$\langle\rangle$} you get, in the .idx file, \indexentry{0@{$\delimiter "426830A \delimiter "526930B $}}{1} and, in the .ind file, \item {$\delimiter 426830A \delimiter 526930B $}, 1 (notice ...


13

You could simply omit the useprefix option -- and this will also produce "Beethoven" instead of "von Beethoven" in citations (as it should for the sake of consistency). To sort the composer under "Beethoven" and at the same time use the prefix when citing, keep useprefix and add a sortkey field to the entry in your .bib file: @MISC{vonBeethoven2005, ...


11

Having different sorting within the text and the bibliography is currently possible with the development versions of biblatex and biber. (UPDATE: By now biblatey 2.x and corresponding biber are released and incuded in both MiKTeX and Texlive 2012.) The sorting scheme for citations has to be defined in the preamble. The sorting scheme for the bibliography is ...


11

You can use the etaremune package; this requires redefining thebibliography to use it. I assume you are using the unsrt bibliography style. \begin{filecontents*}{\jobname.bib} @article{a, author={x y}, title={a}, journal={j}, year=2000, } @article{b, author={x y}, title={b}, journal={j}, year=2000, } @article{c, author={x y}, title={c}, ...


11

As Egreg said, makeindex, which is used with imakeidx to produce index by default, doesn't support unicode. There is support for vietnamese in xindy, the other index processor. Unfortunately, there is some problem with pdflatex, Vietnamese language and xindy, because index entries are written as TeX sequences, not utf-8 codes, and xindy is unable to sort ...


10

It isn't really clear how these rules should be combined. Based on reference lists recently published in this journal it appears that any two-author paper should precede a three-or-more-author work having the same first author, regardless of chronology. A similar precedent holds for one-author and two-author works. You can achieve all this by copying the ...


10

Finally! Using a combination of \autocap, the shortauthor field and the sortkey field does the trick: Always typeset as "Al-Ghazali" for in text-citations; Typeset as "Al-Ghazali" resp. "al-Ghazali" in the bibliography, in accordance with the chosen naming scheme; Sorted under "Ghazali" in the bibliography. \documentclass{article} ...


10

If you are using makeindex you can specify both the sorting string and the typeset version for the document. By default @ is the separator although it can be changed in the index style. \index{p-vector@$\mathcal{P}$-vector}


10

I'd say that \newcommand*{\AddIndexEntry}[2]{% % #1 = indexed term, #2 = word to index this under \par\noindent \lowercase{\def\temp{#2}}% Indexing: #2% \expandafter\index\expandafter{\temp!#1}% } should be what you need. How does \lowercase works? It sends its argument to a further processor (it's not a macro, so it doesn't its work ...


10

A simple solution is to make use of the hook \AfterPackage{<package>}{<code>} provided by the scrlfile package (support package in the KOMA-Script bundle): \documentclass{article} ... % programming tools \usepackage{scrlfile} ... % glossaries and indices \AfterPackage*{hyperref}{% \usepackage{glossaries}% } \usepackage{makeidx} ... % ...



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