[NTG-context] How to shift unnumbered ToC entry?

Lukas/ConTeXt lpr.context at email.cz
Wed Sep 23 12:17:38 CEST 2020


Hello,

yes, this works well, thanks you!
 
(I guessed there was a built-in option to achieve this simply.)
 
Best regards,
 
Lukas



---------- Původní e-mail ----------

Od: Tomas Hala <tomas.hala at mendelu.cz>

Komu: mailing list for ConTeXt users <ntg-context at ntg.nl>

Datum: 23. 9. 2020 12:08:50

Předmět: Re: [NTG-context] How to shift unnumbered ToC entry?

Hello Lukas,

you can try this:

\setuphead[subsubsection][number=no]
\setuplist[subsubsection][distance=20mm,width=20mm,textcommand=\mycmd]

\def\mycmd#1{\hskip20mm#1}

\starttext
  \placecontent
  \page
  \section{S}
    \subsection{Ss}
      \subsubsection{Sss}
\stoptext

Best wishes,

Tomáš 

Wed, Sep 23, 2020 ve 10:33:45AM +0200 Lukas/ConTeXt napsal(a):
# Hello,
# 
# how do I shift unnumbered ToC entry (here: \subsubsection)? My attempt:
# 
# ----
# \setuphead[subsubsection][number=no]
# \setuplist[subsubsection][distance=20mm,width=20mm]
# 
# \starttext
#   \placecontent
#   \page
#   \section{S}
#     \subsection{Ss}
#       \subsubsection{Sss}
# \stoptext
# ----
# 
# I'm getting:
# 
# "
# 1. S
# 1.1  Ss
# Sss
# "
# 
# but I'd rather see:
# 
# "
# 1. S
# 1.1  Ss
#         Sss
# "
# 
# How to achieve this?
# 
# Best regards,
# 
# Lukas

# \setuphead[subsubsection][number=no]
# \setuplist[subsubsection][distance=20mm,width=20mm]
# 
# \starttext
#   \placecontent
#   \page
#   \section{S}
#     \subsection{Ss}
#       \subsubsection{Sss}
# \stoptext


More information about the ntg-context mailing list