The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [sorting]

{sorting} is about sorting document elements. Use this tag in addition to other tags specifying what should be sorted.

Filter by
Sorted by
Tagged with
97
votes
2answers
78k views

How to enter publications “in press”, or “submitted to” in BibTeX?

Is there a convention for how to enter publications that are "in preparation" or "submitted to Some Journal" into a BibTeX database?
82
votes
1answer
103k views

Biblatex citation order

I'm facing a problem with biblatex citation order. Using this configuration: \documentclass {article} \usepackage[brazil]{babel} \usepackage[utf8]{inputenc} \hyphenation{es-ta-bi-li-da-de} \...
69
votes
3answers
169k views

Sort thebibliography by citation order

Can thebibliography be sorted by citation order? Or is there a solution with an inlined bibliography that can be sorted? Not having an additional .bib file would be preferable. My current ...
58
votes
6answers
39k views

How to sort BibTeX references in reverse chronological order?

I am trying to get my list of publications to display in reverse chronological order. I can use \bibliographystyle{unsrt} as a workaround, and just order the entries manually, but I would naturally ...
36
votes
4answers
12k views

BibTeX handling of the Dutch “van” name prefix with natbib

I want to produce the following with LaTeX/BibTeX: In the running text: ... we refer the reader to the work of Van Noort (2010). In the bibliography: Thomas van Noort. An important paper. 2010....
33
votes
1answer
14k views

Sectioning bibliography by type of referred item

My promoteur has a very unusual requirement: the bibliography needs to be sorted first by specific type of referred item, next by author and by year of publication. I managed to get this custom ...
33
votes
2answers
26k views

Is it possible to get unsrt + abbrv bibliography?

Is there a ready made BibTeX bibliography style file that both: (1) prints author names abbreviated (like abbrv) in the references section and (2) sorts references numerically in citation order (like ...
29
votes
1answer
8k views

biblatex: Reverse numbering (i.e., count down)

I was wondering if it is possible to get the citation numbers to count down [3] newest item [2] item [1] oldest item in biblatex? I am sorting using either using sorting=none and entering in reverse ...
28
votes
1answer
8k views

biblatex sorting by date

I have written my own biblatex style for citing jurisdiction. I realized that the sorting in the bibliography is not chronological within the years. I addressed the date field to each bibliography ...
27
votes
4answers
104k views

LaTeX/BibTex not arranging citations by order of appearance

I am having an issue with LaTex/Bibtex presenting my citations in order of appearance. I know there a plenty of questions on this and I have read some of them, but the solutions posted don't seem to ...
27
votes
2answers
5k views

Different sorting schemes in different sections of bibliography

Update 5-Sep-2012: Sorry for highjacking this question, but as the status of the accepted selected answer has changed (now multiple sorting is implemented with biber/biblatex), and I think it is a ...
25
votes
4answers
884 views

Expandable (quick) sort array macro?

I'm trying to implement a (quick) sort algorithm. Here is what I can do : \documentclass[preview, border=7mm]{standalone} \usepackage{pgffor} % \push{xs}{\i} add \i in the array \xs \def\push#1#2{...
25
votes
5answers
9k views

How to sort an alphanumeric list

I have been trying to find a package or a method to sort lists of names in an easy manner in TeX/LaTeX. I have tried some of the routines in the xfor package, as well as looked at some of the new ...
24
votes
1answer
51k views

How does BibTeX sort references?

How does LaTeX sort references as it is causing the first reference I have used to be numbered as [2] in the document rather than [1]. See below: Technology has been introduced in various ways ...
24
votes
1answer
14k views

Alphabetically display the items in itemize

I am wondering whether it is possible to display the items alphabetically regardless of the order we type on the backend? For example I am using itemize as follows: \begin{itemize} \item ISDYNSTP:...
24
votes
1answer
1k views

How can I change the order of an alphabetic enumeration?

For instance, in Welsh the alphabet starts a, b, c, ch, d, dd, etc. Is there a way to automatically alter the ordering of lists to match this?
23
votes
3answers
3k views

Sorting of author names like “von Beethoven” with biblatex

I wonder how I can get a proper sorting of names in the bibliography. In the following example, "von Beethoven" is at the position "v", but it should be sorted as "Beethoven" under "B". \...
20
votes
1answer
32k views

How to get sequential references in my paper?

I'm using TeXnicCenter to write all my documents and generate my bib file by using JabRef. However I noticed that my references are out of order. It seems the addition order to JabRef file forces the ...
19
votes
1answer
5k views

Sectioning bibliography by type (with multiple types per section)

I would like to distinguish books from articles, manuals, etc. This can be done by using: \printbibliography[heading=subbibliography,title={Book References},type=book] or \printbibliography[heading=...
19
votes
1answer
3k views

Biblatex, capitalization of arabic names and name prefixes

As we know, using the useprefix option, when name prefixes like von, della etc. are present in the bibliography, enables us to change name sorting as well as capitalize those prefixes using commands ...
18
votes
1answer
722 views

Sorting preamble packages thematically while accounting for compulsory load orders

Within a document's preamble (or a custom "preamble" package), at times there's the need to take compulsory load orders for certain packages into account. Most packages must be loaded before the ...
17
votes
5answers
989 views

Reverse page numbering

How can one make LaTeX print the pages numbering in reverse order, in the sense that if the document in question has N pages then the first page is numbered N, then N-1, ...?
17
votes
3answers
3k views

Bibtex reverse numbering

For my CV, I would like to reverse number publications (i.e., starting from the total number of publications all the way down to 1). Is this possible with plain LaTeX and BibTeX? This question is ...
16
votes
3answers
2k views

Symbol index sorted by occurrence

I would like to make an symbol index which is sorted by occurence of symbol. For example: Something like ... $\omega$\index{$\omega$} ... $A^P_k$\index{$A^P_k$} ... $\{\}$\index{$\{\}$} should ...
16
votes
2answers
2k views

How can I put a name's prefix in front in citations but *not* in the bibliography?

For my Dutch thesis I need to have the prefix to a name when using the \cite command but not in the bibliography. So basically what I need is Cite: ‘De Jonge’ Bibliography: ‘Jonge, Marinus, de’...
16
votes
1answer
867 views

Wrong alphabetic order for Norwegian bibliography with biblatex

In Norwegian, aa is an (obsolete) alternative spelling of å, but it is still very commonly used in names. In bibliographies, it should as a result be alphabetized as if it said å (cf. Wikipedia). In ...
16
votes
1answer
286 views

Word-by-word sorting of authors in bibliography using biblatex/biber

I am using Biber/biblatex for the bibliography of my forthcoming book. I just received the last round of corrections from the copyeditor, and discovered that the sort order used in my bibliography is ...
15
votes
3answers
2k views

How to sort alphabet index in Vietnamese correctly?

I want to use index in Vietnamese Alphabetically. The order must be a, b, c, d, đ, e, ê. But in following code. That order is wrong. The first is "Ê", not "A", the second is "Đ", not "B". How to ...
15
votes
1answer
2k views

Biblatex handling of Dutch “van” prefix

This question has been posed in many different variants, but not exactly as I ask here, so please do not consider this as a duplicate. I use biblatex with the option useprefix. I would like to have ...
15
votes
1answer
5k views

BibLaTeX: how to sort references by year within the citation

I am using biblatex with the following command: \usepackage[citestyle=numeric-comp,sorting=none]{biblatex}, and then add muptiple citations with, e.g. \cite{Lamont1985, Sorin1983}. I need the ...
14
votes
4answers
5k views

Order items in enumerate environment automatically

I have a list of almost 300 items in an enumerate environment \documentclass{article} \begin{document} \begin{enumerate} \item This is the second item. \item This is the third item. \item This is the ...
14
votes
1answer
3k views

Index ordering when using math symbols

I'm making an index where certain entries start with the math symbols $k$, $\mathcal{C}$, $\ast$-a.... In the first two cases, I want them to appear in the index as if they start with k and c ...
14
votes
2answers
5k views

Sorting the bibliography by entry type

I am using BibTeX. For overall configuration I use a .cls file. I am looking for a way to sort the bibliography in this order: Books, articles, and miscellaneous. Currently all types of materials get ...
14
votes
3answers
4k views

Order table by row alphabeticaly

I have a table like this: \documentclass[10pt,spanish]{article} \usepackage[T1]{fontenc} \usepackage{selinput} \usepackage{multirow} \usepackage{tabularx} \SelectInputMappings{% aacute={á}, ...
14
votes
3answers
7k views

biblatex - quote in chronological order but bibliography list must be alphabetical order

I want to use more than one type of specification in my bibliography. I want to quote in chronological order but have the bibliography list in alphabetical order. If I am quoting 2-3 references in ...
14
votes
2answers
959 views

Indexing through texindy in imakeidx with custom .xdy style fails to produce desired order in index

I am trying to produce an index using texindy through the imakeidx make that follows the Sanskrit alphabetical order. I am working in XeLaTeX. I created a custom .xdy style file to be called as an ...
14
votes
1answer
2k views

Unsorted citations and floats

In attempting to answer this question Citations in order of appearance it's clear that unsorted citation schemes (ones in which the citations are numbered simply by order of appearance) can be easily ...
13
votes
3answers
925 views

Index in Swedish sorting order ( …YZÅÄÖ…) with xindy and LaTeX

I still haven't succeed to sort Swedish letters in the index list with class article in the correct order. I've tried it with specifying a sort key, i.e. \index{g~ra@göra}, but the result is not ...
13
votes
1answer
5k views

How to sort a glossary by order of appearance?

In the glossaries package, how can I make the glossary print the entries by order of appearance? Some context: I'm using the glossaries package to generate a symbol index, and I'm interested to see ...
13
votes
1answer
878 views

biblatex: merge the list of shorthands into the bibliography

Using biblatex, is it possible to merge the list of shorthands into the bibliography? The goal is to have a single alphabetical list of references, regardless of whether they are cited in shorthand ...
13
votes
1answer
592 views

Farsi alphabet order for glossary

I am using glossaries with makeidx in a Farsi document with xepersian. Currently it sorts the output using Arabic alphabet order and places words starting with گ, چ, پ and ژ at the end of list. How ...
13
votes
1answer
2k views

A tool for creating a dictionary with right-to-left script

I'm trying to typeset a dictionnary, using Arabic script. I would like to create a list of words in three columns, with Arabic word in right column aligned to the right, its Polish translation aligned ...
13
votes
0answers
585 views

Unexpected behaviour with sorting option, multiple ref context and biblist (biblatex 3.0)

I have a large bibliography file where the vast majority of entries are annotated (and annotations can (and do) contain \cite commands). I have to produce a list of the annotated entries displaying ...
12
votes
4answers
776 views

Sorting a comma-separated list with LaTeX?

Is there a simple way to sort a comma separated list alphabetically in LaTeX? I tried to write a macro (\sortlist{World, Hello} → "Hello, World") using the l3sort documentation example but it ...
12
votes
2answers
2k views

Bibliography entry out of alphabetical order with character Ş

I'm pretty new to TeX so please forgive me if this requires just a simple solution. I'm writing a thesis that uses almost 100% English characters exclusively, except for a case where an author I cite ...
12
votes
1answer
873 views

Sorting Comma Separated Lists defined with, or without macro

I would like to be able to sort a comma separated list. Before I resort to writing something that would require \ensureunix :-) and having that do the sort for me, I thought I'd make an attempt to ...
12
votes
2answers
2k views

Sorting and citing names with 'von' prefix using biblatex

Consider a document whose author is "van Beethoven, Ludwig". I'd like to cite it as "van Beethoven" in the text and list it as "van Beethoven" in the references. This could be achieved with ...
12
votes
3answers
3k views

Sorting index entries with accented words

Friends, I'm struggling for some time with this disturbance in the TeX force: I have a set of words in Portuguese which are accented. When sorting these words, we treat accented letters the same way ...
12
votes
1answer
2k views

Properly sort index containing utf8 characters?

If my input file is utf8 encoded, how to I create an index where the entries are properly sorted? Minimal example \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{makeidx} \makeindex \...
12
votes
2answers
379 views

Create arbitrary sorting of index entries

How does one go about setting an arbitrary sorting order in an index? For example, I would like to create an index of citations to Roman and canon law, which should not be sorted alphabetically. (...