Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\rispostatutti non formatta correttamente la "e" maiuscola accentata \`E #3

Open
afcuttin opened this issue Sep 22, 2017 · 3 comments

Comments

@afcuttin
Copy link

ciao,

in

\newcommand{\rispostatutti}[1]{%
 \par\nobreak\vspace{\prerisp}%
 \noindent\respindent\respsym\ {\respfont#1}\par%
 \vspace{\postrisp}%
}

deve esserci qualche cosa che impedisce di formattare correttamente la "e" accentata maiuscola. Ottengo infatti:
screenshot_2017-09-22_16-34-04

Ho dovuto modificare il file .sty e scrivere `E al posto di È
perché altrimenti dalla compilazione ottenevo questo errore:

! Package inputenc Error: Unicode char �\check@icr (U+3DB)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.207 \prefazio
               
? 

! Package inputenc Error: Keyboard character used is undefined
(inputenc)                in inputencoding `utf8'.

@afcuttin
Copy link
Author

Does \respfont try to grab the first token of its argument to do apply some special formatting to the first letter? In which case you may need to use grouping {È} or {\`E}

Come riportato qui: https://tex.stackexchange.com/q/392725/177

@eg9
Copy link

eg9 commented Sep 22, 2017

The problem is in \renewcommand{\respfont}{\textbf} which should be

\renewcommand{\respfont}{\bfseries}

See https://tex.stackexchange.com/a/392744/4427

@franen
Copy link
Owner

franen commented Sep 23, 2017

Thanks Enrico, of course your answer is the right one. In the package \respfont is defined as
\newcommand{\respfont}{\itshape}
So every redefinition should use a declaration (\itshape, \bfseries, \scshape,...).
@afcuttin let me know if it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants