I am making my own list, similar to enumerate. I want numbering to be aligned to the right, so everything looks like this:
1. Text
Text
11. Text
Text
I also want to sometimes put a special symbol after automatically put number like (this doen't work, but I hope the idea is clear):
\item la-la-la
\item[*] difficult la-la-la
So I would like the document to look like:
1. la-la-la
2*. difficult la-la-la
The problem is that it looks like:
1. la-la-la
*. difficult la-la-la
so the "2" is gone.
Is there any solution?
My code so far (I am using LuaLaTeX):
\documentclass[10pt]{extarticle}
\usepackage[top=0.5in, bottom=1.25in, left=1in, right=1in]{geometry}
\pagestyle{empty}
\usepackage{mathtools}
\usepackage{comment}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{skull}
\usetikzlibrary{shapes.geometric}
\usepackage{tabularx}
\setlength\tabcolsep{0pt}
\setlength{\columnsep}{1cm}
\usepackage{ragged2e}
\usepackage[russian]{babel}
\usepackage{mathptmx}
\usepackage{polyglossia}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Times New Roman}
\newfontfamily\cyrillicfont{Times New Roman}
\usepackage{mathrsfs}
\setmainlanguage{russian}
\usepackage{enumitem}
\usepackage{lipsum}
\newcounter{qcounter}
\newcommand{\TTT}[1]{#1:}
\newenvironment{questions}{
\begin{list}{
\hfill\bfseries\upshape\arabic{qcounter}.
}{
\renewcommand{\makelabel}{\TTT}%
\usecounter{qcounter}
\setlength{\labelwidth}{2em}
\setlength{\leftmargin}{3em}
\setlength{\labelsep}{1em}
\setlength{\itemsep}{3pt}
\setlength{\listparindent}{1em}
\setlength{\parsep}{0pt}
\setlength{\topsep}{6pt}
}
}{
\end{list}
}
\begin{document}
\lipsum[1]
\begin{questions}
\item \lipsum[1]
\end{questions}
\end{document}
enumitem
package in order to modify your list – Yorgos Dec 7 '16 at 22:02