in-dexter icon indicating copy to clipboard operation
in-dexter copied to clipboard

How to drop the letter grouping for short indexes?

Open rp-karanth opened this issue 1 year ago • 1 comments

This is a short example I have created where the index is very short and doesn't need groupings of letter at all. How to achieve it.

#import "@preview/in-dexter:0.7.0": *
#set text(font: "Noto Serif Devanagari", size: 12pt)
#set page( margin: 1in, paper: "a6")
#set heading(numbering: "1.")

= भारतीय संस्कृति का परिचय
यह दस्तावेज़ भारतीय संस्कृति के विभिन्न पहलुओं को प्रस्तुत करता है। इसमें 
संस्कृति #index(["संस्कृति"], initial: "स"), 
परंपरा #index(["परंपरा"], initial: "प"), और 
त्योहार #index(["त्योहार"], initial: "त") जैसे विषय शामिल हैं।

== परंपराएँ और रीति-रिवाज
भारत में 
परंपरा #index(["परंपरा"], initial: "प") का विशेष महत्व है। उदाहरण के लिए, 
विवाह #index(["विवाह"], initial: "व") समारोह में कई रीति-रिवाज शामिल होते हैं, जैसे 
हल्दी #index(["हल्दी"], initial: "ह") और 
मेंहदी #index(["मेंहदी"], initial: "म")। ये परंपराएँ पीढ़ियों से चली आ रही हैं।

== प्रमुख त्योहार
भारत 
त्योहारों #index(["त्योहारों"], initial: "त") का देश है। 
दीपावली #index(["दीपावली"], initial: "द"), 
होली #index(["होली"], initial: "ह"), और 
रक्षाबंधन #index(["रक्षाबंधन"], initial: "र") कुछ लोकप्रिय उदाहरण हैं। इन अवसरों पर लोग 
मिठाई #index(["मिठाई"], initial: "म") और 
उपहार #index(["उपहार"], initial: "उ") साझा करते हैं।

== कला और साहित्य

कला #index(["कला"], initial: "क") और 
साहित्य #index(["साहित्य"], initial: "स") भारतीय संस्कृति के अभिन्न अंग हैं। 
नृत्य #index(["नृत्य"], initial: "न") रूप जैसे 
कथक #index(["कथक"], initial: "क") और 
भरतनाट्यम #index(["भरतनाट्यम"], initial: "भ") विश्व प्रसिद्ध हैं।

#pagebreak()

#make-index()

rp-karanth avatar Mar 12 '25 05:03 rp-karanth

Great! Thank you. We will look into that.

RolfBremer avatar Mar 13 '25 12:03 RolfBremer

For now, until this might get baked in to the pacakge, I've found that you can suppress the level 2 headings on your index page:

// Hide letter headers and replace with spacing
#show heading.where(level: 2): it => {
  v(1em)
}

// Ensure proper indentation for index entries
#set par(hanging-indent: 0pt, first-line-indent: 0pt)

fungai2000 avatar Jun 02 '25 23:06 fungai2000

In 0.7.2 this can be done by formatting the letter section title. best regards

RolfBremer avatar Jun 26 '25 14:06 RolfBremer