Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
3
votes
1answer
42 views

Alphabetically sort a list of indexed words

I am preparing cloze ("fill in the gaps") worksheets for my students. They contain texts with gaps that have to be filled in using words from a list below the text (either with or without duplicates). ...
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. ...
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
59 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 ...
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 ...
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 ...
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
70 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 ...
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 ...
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 ...
2
votes
1answer
404 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 ...
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 '...
0
votes
0answers
68 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 ...
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
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 ...
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? ...
1
vote
1answer
68 views

Sort all citations from one year automatically under a heading with the year number

I would like to ensure that all entries in the bibliography are sorted by year. In addition, a separate heading should be generated for each year. The whole should run as automatically as possible, i....
1
vote
1answer
31 views

Automatically refer to n-th author

I'm writing a paper with many people, and to be honest, at this point I'm not even sure who will be listed as an author in the final version. In the text, I would like to write things like "the forty-...
1
vote
1answer
170 views

Unsorted bibliography but locally sorted using biblatex

I'm trying to solve a rather odd sorting of the bibliography. I want to have the numeric citations appear in order of citation. However, I want to sort the group of references by another style. I ...
4
votes
1answer
54 views

Sort symbol index by page occurence

SE, I have a problem ordering items in symbol index. MWE: \documentclass[oneside,12pt,a4paper]{memoir} \renewcommand{\baselinestretch}{1.15} \let\memoldbibsection\bibsection \let\bibsection\relax %...
2
votes
1answer
54 views

Order items using their references

I try to sort enumerated lists in latex. All I found is how to sort items by their ordinal number (see Order items in enumerate environment automatically): \documentclass{article} \usepackage{pgffor}...
1
vote
0answers
68 views

Sort grouped citations on unsorted style with bibtex [closed]

I'm trying to get sorted citations when they are in a group, that is, within a \cite{}, but unsorted or in order of appearance when they are called from different \cite macros. Basically, what I want ...
0
votes
1answer
45 views

How to subdivide and group a bibliography by year of publication?

Consider this MWE \documentclass{article} \usepackage[style=archaeologie]{biblatex} \addbibresource{biblatex-examples.bib} \newcounter{BIBnumberYEARcount} \setcounter{BIBnumberYEARcount}{1} \...
1
vote
0answers
46 views

Sorting a description [duplicate]

I want to sort a description list in an alphabetical order. \documentclass{article} \begin{document} \begin{description} \item[bb] \hfill \\ something bb \item[aa] \hfill \\ something aa \item[...
1
vote
1answer
88 views

Two different bibliographies with different styles and sortings, Vol.2

The answer of moewe appearing in this question is almost what I want to achieve: one bibliography containing online references which are numbered and sorted in order of appearence (nothing to change ...
0
votes
0answers
29 views

Regex replacement with lowercase monthnames for biblatex/biber to eliminate the warning “month not integer…” [duplicate]

I had already asked a nearly identical question here 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 ...
1
vote
0answers
17 views

How to change the sorting of the last author name in the bibliography [duplicate]

How is it possible to change the name sorting for every last author in the bibliography? In the following WME it should be ... and N. Tesla instead of ... and Tesla, N. I'm using biblatex with ...
0
votes
1answer
74 views

Ordering an index lexicographically

I need to use a custom sort order (T, K, m, C, P, M, N, SA) and that's implemented in the lua function Bsort below. When I generate two indexes of the same length this works e.g. in the attached the ...
0
votes
0answers
22 views

BibLaTeX doesn't sort my bib (using a custom style) [duplicate]

Problem: I want to sort my bib entries by author (a...z), year (ascending), month (ascending), day (ascending), title (a...z). I customized my bib style with the help of @moewe and I think we broke ...
4
votes
1answer
182 views

Sorting biblatex bibliography by last name beginning with “Al-”

I would like to sort my biblatex bibliography by last name. Unfortunately, names beginning with "Al-" are not sorted as expected. MWE: \documentclass{article} \usepackage[ backend=biber, ...
3
votes
1answer
99 views

Sorting a list of items with underscores

I am trying to alphabetically sort a bunch of items (for a coding base), and naturally many of the method names have underscores. Normally I can sort any number of items in LaTeX using a sortedlist ...
4
votes
1answer
501 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 ...
1
vote
0answers
61 views

Disable sorting in texindy

I'm trying to establish a workflow for a LaTeX project and haven't figured out how to use makeidx or imakeidx packages to sort UTF-8 encoded index by languages not covered in the section supported ...
1
vote
1answer
109 views

glossaries-extra autoindex, manual sorting of entry

(Kind of a follow up question to this one.) The following example contains a definition of an abbreviation which requires some extra care: [Śatika-]Kālajñāna is supposed to be sorted, both in the list ...