6

I tried to do this with enumitem package as such:

\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[utf8]{inputenc}
\usepackage[greek]{babel}
\usepackage[shortlabels]{enumitem}
.
.
\begin{document}
.
.
\begin{enumerate}[labels=\Alph*]
\item blah...
\item 2timesblah...
\end{enumerate}
.
.
\end{document}

But it will insist to add after every letter an apostrophe, like "A'". Even if I write it this way:

\begin{enumerate}[A.]
\item blah...
\item 2timesblah...
\end{enumerate}

the apostrophe is still there but before the dot. Actually, it will be there before anything: "A'.", "A')" etc.

What can I do?

lockstep
  • 250,273
Laxuist
  • 107
  • 1
    Please always post a complete small document. That is much more useful than mere fragments, especially when contaminated by dots in the preamble! – cfr Apr 26 '14 at 01:07

2 Answers2

4

The “apostrophe” is called, in greek.ldf, \textdexiakeraia and, as far as I know, it is the traditional way for denoting alphabetic numerals in Greek: see http://en.wikipedia.org/wiki/Greek_numerals that has it in the description of “modern usage”.

If you don't want it for a specific enumerate environment, you can do like this:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[greek]{babel}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=\let\textdexiakeraia\relax\Alph*]
\item blah...
\item 2timesblah...
\end{enumerate}

\Alph{page}

\end{document}

The final line is for showing that other usages of \Alph are unaffected.

enter image description here

If you want to disable the \textdexiakeraia altogether, add

\renewcommand{\textdexiakeraia}{}

to your document preamble. No \let\textdexiakeraia\relax will be necessary any more.

egreg
  • 1,121,712
  • I wrote exactly this \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[greek]{babel} \usepackage{enumitem} \renewcommand{\textdexiakeraia}{} \begin{document} \begin{enumerate}[label=\Alph*] \item blah... \item 2timesblah... \end{enumerate} \end{document} but it won't "relax" the apostrophe. Then I write the exact same thing on www.writelatex.com and it works like you said. What is the problem here? – Laxuist Apr 27 '14 at 17:17
  • 1
    @Teo Try \AtBeginDocument{\renewcommand{\textdexiakeraia}{}} – egreg Apr 27 '14 at 17:55
  • I tried this too but still won't work. How could this be happening? Could this be a matter of editor? I use TeXworks. It's OK though if I can't work this out I can copy my final code on writelatex. But this is strange, really. – Laxuist Apr 28 '14 at 11:05
  • 1
    @Teo My feeling is that you're running an outdated TeX distribution. Can you tell which one? – egreg Apr 28 '14 at 11:41
  • I have miktex-portable-2.9.5105 if that's what you're asking me. I just downloaded that and realized it has a built in TeXeditor. Is this outdated? Or the version of MiKTeX is different from the one of TeX? – Laxuist Apr 28 '14 at 12:05
  • 1
    @Teo Can you try updating all the MiKTeX packages? There have been several improvements in the Greek related packages, so this could be the cause. – egreg Apr 28 '14 at 12:08
  • I just updated everything but still it won't work, neither \renewcommand{\textdexiakeraia}{} nor \AtBeginDocument{\renewcommand{\textdexiakeraia}{}} anyway it's really nothing I can do it in another editor just for this one. Thank you very much for your great help! – Laxuist Apr 28 '14 at 13:16
2

For Latin capital letters, you could use this:

\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[utf8]{inputenc}
\usepackage[british,greek]{babel}
\usepackage{enumitem}

\begin{document}

\begin{enumerate}[label=\foreignlanguage{british}{\Alph*}]
\item blah
\item 2timesblah
\end{enumerate}

\end{document}

Latin caps for enumeration

cfr
  • 198,882