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
5
votes
3answers
1k views

How to sort entries in a .bib file with biber

My question is similar to How to sort a .bib file with biber? I have a .bib file which is generated by Mendeley. Because it is generated, the entries are not formatted nor ordered. Also the order ...
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 ...
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 ...
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?
0
votes
0answers
12 views

Bibtex and BST file: sorting references by order of appearence first AND date second

I am using bibtex4word to sort my references within my word documents. I've got a bib file created by Jabref to pick up my references. Currently, I use the style "IEEEtran" to sort my references. ...
1
vote
3answers
3k views

Modifying existing code to sort a list of abbreviations

I have currently the Latex code written in the .cls file to display a list of abbreviations as follows: \newcommand\listnomenclature{Abbreviations} \usepackage{longtable} \newcommand\...
0
votes
0answers
11 views

Sorting bibliography with Natbib + Apacite

I'm trying to sort the bibliography at the end of my paper, using natbib and apacite. I would like to have this list sorted by name of the first author and then by year of publication. Is it possible? ...
1
vote
1answer
33 views

Sorting bibliography by appearance (sorting=none) with \nocite{*}

I know there are lots of similar questions, but I have problems with my particular code: \documentclass[12pt]{report} \usepackage[sorting=none,backend=bibtex]{biblatex} \addbibresource{references2....
0
votes
0answers
22 views

Sorting of Greek letters using \index with texindy

MWE \documentclass[]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{color} \usepackage[svgnames,dvipsnames]{xcolor} \usepackage{multicol} \usepackage{...
2
votes
0answers
19 views

Sorting nomenclature alphabetically

I would like to sort the attached nomenclature alphabetically while considering the following items: Some of the items are bold. I want to sort irrespective of a symbol being bold. Symbols like J_c ...
3
votes
2answers
58 views

Create unique sorted list

I am trying to create a simple function that takes in some lowercase letters a,b,r,e,r etc removes any duplicate letters, and sort them. Then I want to list the output in a list Input: \...
0
votes
0answers
25 views

Dictionary template how to arrange by alphabetical order

I am using Overleaf as an editor and came across their dictionary template. When I write my own entries they don't get sorted by alphabetical order as a dictionary should be. Q: How could one sort \...
0
votes
1answer
30 views

Having 1961/62 in the year field rather than 1961

This is the fourth question on the annotated bibliography project we are working on (1, 2, 3). This was originally a part of the third question but as moewe suggested, I'm making a new question for it....
0
votes
1answer
29 views

Ordering references manually using Jabref

I have several records in contained in a bibliographic library managed through Jabref. But, I want to show the records in LaTeX, Texstudio, PDF based on the order that I specify. In other words, I ...
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 ...
0
votes
0answers
41 views

reverse numbering with Bibtex and amsart document class

I am trying to do reverse numbering of a bibliography with bibtex (not biblatex) with the amsart document class. if I try to use previously suggested solutions then they produce errors. For example ...
3
votes
1answer
542 views

Bibliography order: How to get Danish letters æ, ø, å last

The Danish alphabet ends like x, y, z, æ, ø, å, but in my biblatex bibliography, e.g. ø is treated like o, i.e. a name like Østergaard is listed between Nilsen ans Petersen. Is there a way to fix ...
4
votes
1answer
32 views

Why does biblatex-chicago sort articles without an author by journaltitle rather than title?

According to the documentation for biblatex-chicago (notes), articles with no author field should be sorted alphabetically by title in the bibliography, except when the journaltitle's subtype is ...
3
votes
1answer
769 views

In \bibliographystyle{alpha}, can I sort references by the first author's last name instead of by the marker?

I'm creating a bibliography using \bibliographystyle{alpha}. Consider the following three references. [Gab72] Peter Gabriel... [GJ09] Paul G. Goerss and John F. Jardine... [GR92] Peter ...
4
votes
1answer
498 views

Regex replacement for biblatex/biber to eliminate the warning “month not integer…”

I am using biblatex with biber from TL2018 for my PhD thesis. Due to various reasons, I am forced to use Mendeley for citation managements and cannot switch to another tool now. Mendeley is capable of ...
2
votes
1answer
400 views

Apalike but sort by last name of first author and year

I would like to use the natbib package in bibtex with the bibliographystyle apalike with a specific type of author-year ordering in the bibliography. I want items to generally be sorted/ordered ...
2
votes
3answers
496 views

How to alphabetize all of the parts, chapters, sections, and content of an entire document in ConTeXt?

I have a document that is structured like this: \part{Birds} \chapter{North America} \section{West Coast} \mymacro{Bald Eagle} \mymacro{Spotted Owl} \...
0
votes
0answers
20 views

Sort selected references within brackets in main text with Lyx and JabRef

I'm using Lyx and JabRef and it appears that when citing multiple references within a bracket the default sorting within the brackets is alphabetically. However, I would like to sort them by their ...
2
votes
1answer
68 views

biblatex: automatically abbreviate year ranges

For consistency's sake I need to abbreviate all number-ranges in my document. While biblatex can easily be made to abbreviate page ranges the equivalent command for the year ranges breaks compilation ...
11
votes
2answers
5k views

Multibib reverse label or sort order

I'm using multibib. I manually set the order of the bibliography. I would like the order of the numbered items to be reversed. For example, my document has: \nociteX{Foo} \nociteX{Bar} And the ...
7
votes
1answer
1k views

`\index{…}` in footnode different from `\index{…}` in main text

Dear all I think I have a problem with the collation of makeidx. following some suggestions found here I have got in the text something like this \index[p]{Plutarco!demalignitate@\textit{De ...
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 ...
2
votes
1answer
70 views

How to produce an alphabetical list of elements [tcolorboxes]

I am compiling a private song book using a tcolorbox for each song. The tcolorbox package provides a nice interface for automatic numbering and creation of a list-of-tcolorboxes and even integrating ...
1
vote
1answer
42 views

Sort bibliography by eprint

I would like to sort the bibliography by eprint but it does not work: \documentclass{article} \usepackage{filecontents} \usepackage[backend=biber]{biblatex} \DeclareSortingTemplate{eprint}{ \...
1
vote
1answer
68 views

BibLaTeX - Sort bibliography by firstpage

I need to create a bibliography where journal articles within a volume and issue are sorted by the first page number. I can use \mkfirstpage{pages} to print the first page of the page range but cannot ...
9
votes
2answers
1k views

Applying \lowercase to index entries

I would like to sort the index entries independent of case. Initially I was getting (code provided in MWE) the image on the left. So, that seemed like an easy fix: just apply \lowercase (uncomment ...
1
vote
0answers
63 views

sorting text file in plain TeX

I have seen Latex sort macros (for an index, which is precisely what I want, the index having several thousand entries); but I haven't seen one in plain (or AmS-TeX, for that matter; either is OK). ...
0
votes
1answer
57 views

In-text citation sorted according to publication year with apalike bibliography style

I am using the natbib bibtex package with the [authoryear,compress] options and the bibliographystyle apalike. Is it possible to modify the natbib package options so that in-text citations are ordered ...
1
vote
0answers
44 views

Custom BST (based on apalike) with following sorting mechanism: (1) First author only, (2) Year, (3) All (other) authors, (4) Title

Following https://tex.stackexchange.com/a/484079/ I have created a custom BST, based on the apalike bibliographystyle of the natbib package in bibtex. This custom BST orders references in 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 ...
1
vote
1answer
187 views

How to sort corporate authors along personal authors with bibtex sorting=anyt?

The following MWE \documentclass{article} \usepackage[utf8]{inputenc} \RequirePackage{filecontents} \begin{filecontents}{debug.bib} @online{physx, author = {{Nvidia Corporation}}, key = {Nvidia ...
9
votes
2answers
3k views

Biblatex: how to automatically sort citation by year (sortcites=ynt) when references are sorted by name (sorting=nyt)

I want to sort in-text citations by year, but bibliography by name. It sound exactly like this question. However, suggested solution (using \usepackage[sorting=ynt]{biblatex} and \printbibliography[...
1
vote
1answer
21 views

Index entries sorted by text of macro instead of value

A related question was asked here seven years ago, but I couldn't manage to make that solution work in my case. I am using macros in various instances of my text to have a shorthand for often used ...
1
vote
1answer
64 views

Apply a numeric bubble-sort to output strings, which are specified by names/codes

Edit: My objective is to sort a group of output strings, which are specified through names/codes. There are effectively 3 components, the 'memorable codes' (names like Xenia, Alex, etc), the '...
2
votes
1answer
104 views

Keep sorting local to groups for symbols in glossaries-extra with bib2gls

Consider this example: \documentclass{article} \usepackage[record,style=alttreegroup,nomain,symbols]{glossaries-extra} \begin{filecontents}{symbols.bib} @symbol{alpha, name = {\ensuremath{\alpha}}, ...
0
votes
0answers
67 views

Sort bibliography with the order of appearance into .bib file (EDITED)

I work with natbib and \bibliographystyle{abstract}. I use this style because the ordering is done with respect to the key. Is it possible achieve a sorting with respect the order of appearance into ...
0
votes
1answer
59 views

Xindy seems to ignore sort-rules in custom .xdy file

So I am trying the change the way xindy is sorting umlauts in an index file by prescribing custom sort-rules. This is the myfile.xdy that I use: (require "lang/german/duden-utf8-lang.xdy") (sort-...
1
vote
1answer
64 views

natbib same author same year with a & b references wrong order

I'm working with the natbib package and the aa bibliography style for the Astronomy & Astrophysics journal. One author wrote two papers in the same year. The problem is with how the references and ...
5
votes
0answers
354 views

Altering index sort order in bibleref

Original post: The bibleref package affords tidy citation and indexing of Bible passages; sort order is by default alphabetical by book. According to the documentation, one can change the to another ...
2
votes
1answer
873 views

Redefining ordering in index

I'm generating an index of Bible references (using the bibleref) package. Bible references are usually not sorted by alphabetical order of book, but rather by order of appearance in the Bible (Genesis,...
2
votes
2answers
38 views

Automatic sorting of environments by parameters (e.g. by date)

I desire for some sort of easy system for manipulating "sections" or environments based on additional data such as dates. I did a preliminary google search and couldn't come up with anything because I ...
0
votes
0answers
25 views

Sorting entries by page number in a single index (out of multiple indices) made with imakeidx

I am trying to make two indices with imakeidx: an index of terms and an index of symbols. Since I am using mathematical symbols, I would like the symbols index to be sorted by page number rather than "...
3
votes
2answers
158 views

Sort list of elements created from a custom command

In order to have this result I wrote this command: \newlength{\boldAcrwidth} \setlength{\boldAcrwidth}{2cm} \NewDocumentCommand{\boldAcr}{m >{\SplitList{ }}m}{% \makebox[\boldAcrwidth][l]{\...
0
votes
0answers
13 views

Sorting acronyms that start with a number? [duplicate]

In my thesis I have an acronym that start with the number 4. In the list of abbreviations it gets sorted under the F for four. How can I sort it so it comes in the list before A? \documentclass[...
0
votes
0answers
24 views

Nomenclature sorting problem: it starts sorting again in a new page

I have the nomenclature sorted in an alphabetical order, but it starts over on the next page. See attached picture. Does anyone know how I can make so it doesn't start over when after a page shift? ...