0

Both É (upper case E with accent aigu) and é (lower case E with accent aigu) are disappearing.

\documentclass[draft]{article}
\usepackage{fontspec}
\usepackage{hyperref}
\usepackage{listings}

\begin{document}
\lstset{language=Rexx, extendedchars=true, frame=trbl}

\section{Statement of problem}

\subsection{Secondary Problem}

sets bar to REN\'{e} rather than to REN\capitalacute{E}.

\end{document}

This happens with both pdflatex and with xelatex.

Changing the source to

\documentclass[draft]{article}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage{listings}

\begin{document}
\lstset{language=Rexx, extendedchars=true, frame=trbl}

\section{Statement of problem}

\subsection{Secondary Problem}

using \\' and \\capitalacute: sets bar to REN\'{e} rather than to REN\capitalacute{E}.
%Command \capitalacute unavailable in encoding T1. r than to REN\capitalacute

using actual é and É sets bar to RENé rather than to RENÉ.

\end{document}

I get the error message

Command \capitalacute unavailable in encoding T1. r than to REN\capitalacute

What package and parameters do I need in order to allow both the symbols and the actual letters?

3
  • The problem you describe can not be occuring under pdfLaTeX since pdfLaTeX cannot handle the fontspec package.
    – Mico
    May 28, 2023 at 14:19
  • The fontspec was an attempt to resolve the problem; it wasn't there originally.
    – shmuel
    May 28, 2023 at 14:31
  • If I remove fontspec, I get the expected output.
    – egreg
    May 28, 2023 at 16:24

1 Answer 1

0

The problem is unclear, but if you load the fontenc package with the T1 option you don't need \capitalacute.

\documentclass[draft]{article}
\usepackage[T1]{fontenc}
\usepackage{listings}
\usepackage{hyperref}

\begin{document}

Ren\'{e} René 

REN\capitalacute{E} REN\'{E} RENÉ

\end{document}

enter image description here

9
  • Is there a combination of package and parameter that will work with both the commands and the actual characters?
    – shmuel
    May 28, 2023 at 20:07
  • 1
    @shmuel Sorry, but I can't understand.
    – egreg
    May 28, 2023 at 21:20
  • Please see updated question.
    – shmuel
    May 29, 2023 at 15:31
  • @shmuel If you type REN\'{e} you shouldn't be expecting to get “RENÉ”.
    – egreg
    May 29, 2023 at 16:19
  • 1
    @shmuel Well, believe me: I don't get error messages. You must have a rather outdated TeX distribution (prior to 2018). Do also \usepackage{textcomp} if you don't want or can't update.
    – egreg
    May 29, 2023 at 21:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .