# Tag Info

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

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 ...

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 ...

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

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. ...

20


17

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.

16

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

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 ...

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

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

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 } ...

13

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 ...

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, ...

12

The problem is that \index expands its contents, 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 that the double quotes get lost). Now TeX finds \delimiter followed by the number 426830, which is ...

12

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: ...

12

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}} ...

12

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]{% ...

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}, ...

10

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 ...

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

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

I suspect the package option sort=use will do what you're after, i.e. write \usepackage[sort=use]{glossaries}. From the manual: sort This is a ⟨key⟩=⟨value⟩ option where the option can only have one of the following values: standard: entries are sorted according to the value of the sort key used in \newglossaryentry (if present) or ...

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} ... % ...

10

Here's an implementation that satisfies your needs: \documentclass{article} \usepackage{environ,etoolbox}% http://ctan.org/pkg/{environ,etoolbox} \makeatletter \newcounter{orderenum}\newcounter{listcount}[orderenum]%\newcounter{listtotal}[orderenum] \let\olditem\item% Store regular \item macro \NewEnviron{orderenum}[1][\relax]{% \stepcounter{orderenum}% ...

10

The l3sort package does that (but currently with a merge sort, I hope you don't mind the speed-up), as long as the clist has at most 20000 items or so (I can't remember the exact limit). \documentclass{article} \usepackage{expl3, l3sort, xparse} \ExplSyntaxOn \clist_new:N \l_my_clist \NewDocumentCommand{\sorted}{m} { \clist_set:Nn \l_my_clist {#1} ...

9

Makeindex also supports sort keys. Entries of \changes or sorted with the style file gglo.ist. There the actual char is =: \changes{v0.1=v0.001}... \changes{v0.2=v0.001}... ... \changes{v0.10=v0.010}... \changes{v0.123=v0.123}... This can also be automated, if \changes is redefined in the driver file: \makeatletter \@ifdefinable{\org@changes@}{% ...

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