Unable to translate any text with element type "errorMessage" in Azure B2C - translation

While working on my Signup and Signin page with azure B2C, I noticed some texts weren't being translated to the language that I customized so I proceeded to translate them manually. Most of them were translated succesfully except for the error messages.
No matter what I try, only the texts with type element "errorMessage" are the ones who don't get translated and I don't really know why.
This is my code to translate the texts manually:
<BuildingBlocks>
<ContentDefinitions>
<ContentDefinition Id="api.signuporsignin">
<LocalizedResourcesReferences MergeBehavior="Prepend">
<LocalizedResourcesReference Language="en" LocalizedResourcesReferenceId="api.signuporsignin.en"/>
<LocalizedResourcesReference Language="es" LocalizedResourcesReferenceId="api.signuporsignin.es"/>
<LocalizedResourcesReference Language="ca" LocalizedResourcesReferenceId="api.signuporsignin.ca"/>
<!-- Add more languages here -->
</LocalizedResourcesReferences>
</ContentDefinition>
<ContentDefinition Id="api.localaccountsignup">
<LocalizedResourcesReferences MergeBehavior="Prepend">
<LocalizedResourcesReference Language="es" LocalizedResourcesReferenceId="api.localaccountsignup.es"/>
<LocalizedResourcesReference Language="ca" LocalizedResourcesReferenceId="api.localaccountsignup.ca"/>
<!-- Add more languages here -->
</LocalizedResourcesReferences>
</ContentDefinition>
<ContentDefinition Id="api.localaccountpasswordreset">
<LocalizedResourcesReferences MergeBehavior="Prepend">
<LocalizedResourcesReference Language="es" LocalizedResourcesReferenceId="api.localaccountpasswordreset.es"/>
<LocalizedResourcesReference Language="ca" LocalizedResourcesReferenceId="api.localaccountpasswordreset.ca"/>
<!-- Add more languages here -->
</LocalizedResourcesReferences>
</ContentDefinition>
</ContentDefinitions>
<Localization Enabled="true">
<SupportedLanguages DefaultLanguage="en" MergeBehavior="Append">
<SupportedLanguage>en</SupportedLanguage>
<SupportedLanguage>es</SupportedLanguage>
<SupportedLanguage>ca</SupportedLanguage>
</SupportedLanguages>
<LocalizedResources Id="api.signuporsignin.en">
<LocalizedStrings>
<LocalizedString ElementType="UxElement" StringId="local_intro_generic">Sign in</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
<LocalizedResources Id="api.signuporsignin.es">
<LocalizedStrings>
<LocalizedString ElementType="ErrorMessage" StringId="DefaultMessage">Usuario o contraseña incorrectos.</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="signInName" StringId="DisplayName">Correo Electrónico</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="password" StringId="DisplayName">Contraseña</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="local_intro_generic">Iniciar sesión</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
<LocalizedResources Id="api.signuporsignin.ca">
<LocalizedStrings>
<LocalizedString ElementType="ErrorMessage" StringId="DefaultMessage">Usuari o contrasenya incorrectes.</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="signInName" StringId="DisplayName">Adreça electrònica</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="password" StringId="DisplayName">Contrasenya</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="local_intro_generic">Iniciar sessió</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
<LocalizedResources Id="api.localaccountsignup.es">
<LocalizedStrings>
<LocalizedString ElementType="ClaimType" ElementId="email" StringId="DisplayName">Correo Electrónico</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="DisplayName">Nueva Contraseña</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="PatternHelpText">8-16 caracteres, que contengan 3 de los 4 siguientes: Minúsculas, mayúsculas, números (0-9),y uno o más de los símbolos siguientes: # # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="DisplayName">Confirmar Nueva Contraseña</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="PatternHelpText">8-16 caracteres, que contengan 3 de los 4 siguientes: Minúsculas, mayúsculas, números (0-9),y uno o más de los símbolos siguientes: # # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="surname" StringId="DisplayName">Apellido</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="givenName" StringId="DisplayName">Nombre</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
<LocalizedResources Id="api.localaccountsignup.ca">
<LocalizedStrings>
<LocalizedString ElementType="ClaimType" ElementId="email" StringId="DisplayName">Adreça electrònica</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="DisplayName">Nova Contrasenya</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="PatternHelpText">8-16 caràcters, que continguin 3 dels 4 símbols següents: Minúscules, majúscules, números (0-9), i un o més caràcters dels següents símbols: # # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="DisplayName">Confirmar Nova Contrasenya</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="PatternHelpText">8-16 caràcters, que continguin 3 dels 4 símbols següents: Minúscules, majúscules, números (0-9), i un o més caràcters dels següents símbols: # # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="surname" StringId="DisplayName">Cognom</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="givenName" StringId="DisplayName">Nom</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
<LocalizedResources Id="api.localaccountpasswordreset.es">
<LocalizedStrings>
<LocalizedString ElementType="ClaimType" ElementId="email" StringId="DisplayName">Correo Electrónico</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="DisplayName">Nueva Contraseña</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="PatternHelpText">8-16 caracteres, que contengan 3 de los 4 siguientes: Minúsculas, mayúsculas, números (0-9),y uno o más de los símbolos siguientes: # # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="DisplayName">Confirmar Nueva Contraseña</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="PatternHelpText">8-16 caracteres, que contengan 3 de los 4 siguientes: Minúsculas, mayúsculas, números (0-9),y uno o más de los símbolos siguientes: # # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsPrincipalAlreadyExists">Ya existe un usuario con el ID especificado. Por favor, elija uno diferente.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsPrincipalAlreadyExist">No se pudo encontrar un usuario con la credencial especificada.</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
<LocalizedResources Id="api.localaccountpasswordreset.ca">
<LocalizedStrings>
<LocalizedString ElementType="ClaimType" ElementId="email" StringId="DisplayName">Adreça electrònica</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="DisplayName">Nova Contrasenya</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="PatternHelpText">8-16 caràcters, que continguin 3 dels 4 símbols següents: Minúscules, majúscules, números (0-9), i un o més caràcters dels següents símbols: # # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="DisplayName">Confirmar Nova Contrasenya</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="PatternHelpText">8-16 caràcters, que continguin 3 dels 4 símbols següents: Minúscules, majúscules, números (0-9), i un o més caràcters dels següents símbols: # # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsPrincipalAlreadyExists">Ja existeix un usuari amb la ID especificada. Si us plau, trieu-ne un de diferent.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsPrincipalAlreadyExist">No s'ha pogut trobar un usuari amb la credencial especificada.</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
And those are the versions I'm using i my policy:
<ContentDefinitions>
<!-- This content definition is to render an error page that displays unhandled errors. -->
<ContentDefinition Id="api.error">
<LoadUri>~/tenant/templates/AzureBlue/exception.cshtml</LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:globalexception:1.2.1</DataUri>
<Metadata>
<Item Key="DisplayName">Error page</Item>
</Metadata>
</ContentDefinition>
<ContentDefinition Id="api.idpselections">
<LoadUri>~/tenant/templates/AzureBlue/idpSelector.cshtml</LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:providerselection:1.2.1</DataUri>
<Metadata>
<Item Key="DisplayName">Idp selection page</Item>
<Item Key="language.intro">Sign in</Item>
</Metadata>
</ContentDefinition>
<ContentDefinition Id="api.idpselections.signup">
<LoadUri>~/tenant/templates/AzureBlue/idpSelector.cshtml</LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:providerselection:1.2.1</DataUri>
<Metadata>
<Item Key="DisplayName">Idp selection page</Item>
<Item Key="language.intro">Sign up</Item>
</Metadata>
</ContentDefinition>
<ContentDefinition Id="api.signuporsignin">
<LoadUri></LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:unifiedssp:2.1.5</DataUri>
<Metadata>
<Item Key="DisplayName">Signin and Signup</Item>
</Metadata>
</ContentDefinition>
<ContentDefinition Id="api.selfasserted">
<LoadUri></LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.8</DataUri>
<Metadata>
<Item Key="DisplayName">Collect information from user page</Item>
</Metadata>
</ContentDefinition>
<ContentDefinition Id="api.selfasserted.profileupdate">
<LoadUri></LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.8</DataUri>
<Metadata>
<Item Key="DisplayName">Collect information from user page</Item>
</Metadata>
</ContentDefinition>
<ContentDefinition Id="api.localaccountsignup">
<LoadUri></LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.7</DataUri>
<Metadata>
<Item Key="DisplayName">Local account sign up page</Item>
</Metadata>
</ContentDefinition>
<ContentDefinition Id="api.localaccountpasswordreset">
<LoadUri></LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.7</DataUri>
<Metadata>
<Item Key="DisplayName">Local account change password page</Item>
</Metadata>
</ContentDefinition>
<ContentDefinition Id="api.localaccountsignin">
<LoadUri>~/tenant/templates/AzureBlue/selfAsserted.cshtml</LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.7</DataUri>
<Metadata>
<Item Key="DisplayName">Collect information from user page</Item>
</Metadata>
</ContentDefinition>
</ContentDefinitions>
And as you can see, only the error messages aren't being translated, the other texts that I translated manually are just working fine:
Image1
Image2
Edit: I'm also trying to translate to French, Italian, Deutch and Portuguese following the same procedure as shown above with same results: the texts with element type "errorMessage": they aren't being translated.
Anyone knows why this is happening?
Thanks!

As mentioned in this Microsoft Documentation , Azure AD B2C doesn’t support Catalan(ca) language which can seen in the below screen shot:

Related

This tex file generates correct indentation in "Prefácio" and Chapter 1, but a reversed indentation in Chapter 2. Cannot guess why

This is the preamble and part of the tex file. The indentation is OK for "Prefácio" and chapter 1 (only first line indented), but gets reveed (first line not indented, the following ones are all indented)for chapter 2. Can anyone help with this?
I have tried it in Overleaf, but got the same result and no error message that could address the problem.
\documentclass[
a5paper,
pagesize,
10pt,
bibliography=totoc,% <-- changed
numbers=noenddot, % <-- changed
headings=normal, % <-- changed
%DIV=9,
twoside=false,
%parskip=half,
]{scrbook}
\usepackage[portuguese]{babel}
\usepackage{csquotes}
\usepackage{url}
\usepackage{pdfpages}
\usepackage{appendix}
\usepackage{trajan}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\usepackage{graphicx}
\usepackage{calc}
\usepackage[margin=1in, paperwidth=6in, paperheight=9in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{makeidx}
\makeindex
\ifPDFTeX
\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc}
%\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
%\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
% Use upquote if available, for straight quotes in verbatim environments
\usepackage{upquote}
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
\usepackage{xcolor}
\ifLuaTeX
\usepackage{selnolig} % disable illegal ligatures
\fi
\usepackage[hyphens]{xurl}
\usepackage[unicode]{hyperref}
\usepackage{bookmark}
\hypersetup{
hidelinks,
}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}%
}
%\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newlength{\csllabelwidth}
\setlength{\csllabelwidth}{3em}
\newlength{\cslentryspacingunit} % times entry-spacing
\setlength{\cslentryspacingunit}{\parskip}
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
{% don't indent paragraphs
\setlength{\parindent}{0pt}
% turn on hanging indent if param 1 is 1
\ifodd #1\relax
\def\par{\hangindent=\cslhangindent\endgraf}
\fi
% set entry spacing
\setlength{\parskip}{#2\cslentryspacingunit}
}%
{}
\newcommand{\CSLBlock}[1]{#1\hfill\break}
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
\usepackage{lipsum}% just to fill pages
\begin{document}
\frontmatter
\begin{titlepage}
\centering{
\fontsize{40}{48}\selectfont
Análise Crítica da Pesquisa Clínica\par
}
\vspace{10mm}
\centering{\Large{Joaquim P. Brasil-Neto}}\\
\vspace{\fill}
\centering \large{2022}
\end{titlepage}
%\renewcommand*\contentsname{Análise Crítica de Ensaios Clínicos}
%=========================================
\newpage
%\begin{fichacatalografica}
% \includepdf{images/ficha.pdf}
%\end{fichacatalografica}
%\
\newpage
\thispagestyle {empty}
\vspace*{2cm}
\begin{center}
\Large{\parbox{10cm}{
\begin{raggedright}
{\Large
\textit{Half of what you'll learn in medical school will be shown to be either dead wrong or out of date within five years of your graduation; the trouble is that nobody can tell you which half- so the most important thing to learn is how to learn on your own.
}
}
\vspace{.5cm}\hfill{---David Sackett}
\end{raggedright}
}
}
\end{center}
\newpage
\
\newpage
\chapter{Prefácio}
Este livro foi escrito durante um semestre, enquanto o autor ministrava uma disciplina sobre análise crítica da pesquisa clínica. Essa disciplina é a última de uma série de oito dedicadas à medicina baseada em evidências e ministradas durante os quatro primeiros anos do curso de graduação em Medicina do Centro Universitário Euro-Americano, Unieuro, em Brasília-DF. Apesar de ter a sua origem em um curso de Medicina, os pontos aqui abordados também são de interesse para outros profissionais da área da saúde.
Atualmente, os profissionais da saúde são expostos a uma grande quantidade de informações e sugestões terapêuticas, sob a forma de palestras, artigos de revisão, consensos de especialistas, publicações patrocinadas pela indústria, dentre outras. Assim sendo, é da máxima importância que esses profissionais disponham de conhecimento suficiente sobre medicina baseada em evidências para que possam, com critérios científicos, selecionar a informação de qualidade que irá orientar a sua prática diária com os pacientes.
Esta obra aborda os erros mais comuns cometidos na pesquisa clínica, e indica como detectá-los ou mesmo evitá-los, no caso em que o profissional for o próprio pesquisador. Seguindo a mesma dinâmica do curso no qual se baseou, ela traz também atividades (``exercícios''), sob a forma de clubes de revista (\emph{Journal Clubs}), num total de sete. Para cada um, foram selecionados artigos publicados que ilustram conceitos importantes abordados nos capítulos precedentes.
A prática da medicina com base em evidências científicas sólidas é um ideal que todos devem procurar alcançar, mas para isso é necessária uma preparação intensiva desde a graduação. A adoção das metodologias ativas pelas atuais escolas médicas em nosso país tem o mérito de incentivar o espírito crítico e a busca ativa do conhecimento.
Este trabalho também pode servir de arcabouço para o planejamento de outros cursos que pretendam abordar o mesmo tema. Temos consciência de que nem todos os pontos importantes da matéria foram abordados e que alguns dos temas contemplados poderiam ter sido mais profundamente explorados. Entretanto, esses são problemas inerentes a qualquer curso que tenha uma carga horária pré-determinada, o que invariavelmente leva o docente a fazer escolhas pessoais sobre o que seria mais importante incluir.
Espero que este texto seja de utilidade para os profissionais de saúde durante suas explorações da ``selva'' da literatura biomédica atual. Em especial, desejo que seja de valia e que contribua para o sucesso profissional dos meus estudantes do Unieuro.
\vspace{5mm}
Brasília, DF, 25 de novembro de 2022
\tableofcontents
\frontmatter
\mainmatter
\chapter{Medicina Baseada em Evidências na Atualidade}
%\hypertarget{a-importuxe2ncia-das-eviduxeancias-cientuxedficas-na-pruxe1tica-muxe9dica}{%
\section{Desafios da Prática Médica Baseada em Evidências}\label{a-importuxe2ncia-das-eviduxeancias-cientuxedficas-na-pruxe1tica-muxe9dica}
A medicina foi praticada, durante séculos, mais como arte do que como ciência. Uma longa estrada foi trilhada desde os tratamentos supersticiosos, mágico-religiosos e empiricos até os nossos dias, em que cada vez mais se preconiza a prática médica baseada em evidências científicas.
Mas onde e como buscar as evidências científicas? O profissional de saúde de nossos dias é continuamente exposto a informações supostamente científicas, oriundas das mais diversas fontes: notícias veiculadas em jornais e na televisão, resultados publicados em periódicos de boa reputação, artigos publicados pelas indústrias farmacêuticas na internet, dentre outras. Entretanto, nenhuma fonte merece total confiança do profissional de saúde, que deve necessariamente fazer a sua análise crítica de todas as informações que recebe, não importa a origem ou suposta autoridade do veículo de divulgação.
%\hypertarget{referuxeancias}{%
\subsection*{Referências}\label{referuxeancias}
\addcontentsline{toc}{subsection}{Referências}
%\hypertarget{refs}{}
\begin{CSLReferences}{1}{0}
\leavevmode\vadjust pre{\hypertarget{ref-evansavaliaccao}{}}%
Evans, Imogen, Hazel Thornton, and Iain Chalmers. 2016. {``Avaliação de Tratamentos de Saúde,''} no. 2º Ed. \url{https://pt.testingtreatments.org/}.
\chapter{As Evidências Científicas na Medicina}
\hypertarget{a-importuxe2ncia-das-eviduxeancias-cientuxedficas}{%
\section{A importância das evidências científicas}\label{a-importuxe2ncia-das-eviduxeancias-cientuxedficas}}
A história do tratamento de diversas doenças revela a importância do uso das melhores evidências na tomada de decisões terapêuticas. A seguir descrevemos alguns casos ilustrativos (Evans, Thornton, and Chalmers 2016).
\hypertarget{o-escorbuto-e-o-primeiro-ensaio-cluxednico-controlado}{%
\subsection{O escorbuto e o primeiro ensaio clínico controlado}\label{o-escorbuto-e-o-primeiro-ensaio-cluxednico-controlado}}
O escorbuto matou mais de dois milhões de marinheiros nos anos decorridos entre a viagem transatlântica de Cristóvão Colombo e o aparecimento dos motores a vapor em meados do século XIX. O risco de morrer de escorbuto nos navios era tão grande que os governos já contavam com uma perda de pelo menos 50\% das tripulações em todas as viagens.
James Lind, um médico escocês que serviu como cirurgião naval no navio \emph{HMS Salisbury} em 1747 é frequentemente lembrado como o autor de um dos primeiros experimentos controlados do mundo. Ele utilizou 12 marinheiros com escorbuto como sujeitos experimentais, dividindo-os em 6 grupos de 2 doentes cada. Ele então os manteve no mesmo compartimento do navio, com todas as condições iguais exceto pelo tratamento. Cada par recebia a cada dia os tratamentos considerados potencialmente válidos na época: 290 ml de cidra, 25 gotas de vitriol, 2 colheres de sopa de vinagre, 235 ml de água do mar, nós-moscada ou um ``tratamento'' com 2 laranjas e 1 limão. O vitriol, à base de ácido sulfúrico, era recomendado pelo \emph{Royal College of Physicians} e o almirantado apostava no vinagre.
Lind manteve os tratamentos por 14 dias, exceto para a dupla que recebia os limões e laranjas, pois estes acabaram em uma semana. Não obstante, esses dois pacientes se recuperaram tão rapidamente que passaram a ajudar Lind a cuidar dos demais. Hoje nós sabemos que o escorbuto é causado por deficiência de vitamina C e que a suplementação alimentar com frutas cítricas foi curativa. Lind, entretanto, não se deu conta da importância do seu achado, e embora acreditasse que o suco de limão era eficaz ficou com dúvidas quanto ao efeito da cidra, que também resultou em algum grau de melhora (provavelmente a cidra pouco elaborada que foi utilizada continha alguma quantidade de vitamina C).
Este é um bom exemplo de como a opinião de autoridades (no caso o \emph{Royal College of Physicians} e o almirantado) pode não indicar o melhor tratamento para uma doença, sendo necessária a comprovação científica por estudos controlados e sem viés do pesquisador.
\hypertarget{riscos-dos-tratamentos-intuitivos-mas-sem-comprovauxe7uxe3o-cientuxedfica}{%
\subsection{Riscos dos tratamentos intuitivos mas sem comprovação científica}\label{riscos-dos-tratamentos-intuitivos-mas-sem-comprovauxe7uxe3o-cientuxedfica}}
Nos anos 40, a mortalidade infantil era tal que um de cada cinco bebês prematuros morria. Depois que os médicos perceberam que esses bebês tinham grandes dificuldades respiratórias, passaram a aumentar os níveis de oxigênio nas incubadoras (Evans, Thornton, and Chalmers 2016).
De 1942 a 1954 foi relatada uma ``epidemia'' de cegueira em recém-nascidos prematuros devido a uma condição conhecida como \emph{fibroplasia retrolenticular}, ou retinopatia dos prematuros. A causa da condição era desconhecida.
\hypertarget{referuxeancias}{%
\subsection*{Referências}\label{referuxeancias}}
\addcontentsline{toc}{subsection}{Referências}
\hypertarget{refs}{}
\begin{CSLReferences}{1}{0}
\leavevmode\vadjust pre{\hypertarget{ref-evansavaliaccao}{}}%
Evans, Imogen, Hazel Thornton, and Iain Chalmers. 2016. {``Avaliação de Tratamentos de Saúde,''} no. 2º Ed. \url{https://pt.testingtreatments.org/}.
\leavevmode\vadjust pre{\hypertarget{ref-mannMotherKissCan2012}{}}%
Mann, Denise. 2012. {``{`Mother's Kiss'} Can Expel Objects From Kids' Noses.''} WebMD. 2012. \url{https://www.webmd.com/children/news/20121015/mothers-kiss-expel-foreign-objects-kids-noses}.
\leavevmode\vadjust pre{\hypertarget{ref-moschinoCaffeinePretermInfants2020}{}}%
Moschino, Laura, Sanja Zivanovic, Caroline Hartley, Daniele Trevisanuto, Eugenio Baraldi, and Charles Christoph Roehr. 2020. {``Caffeine in Preterm Infants: Where Are We in 2020?''} \emph{ERJ Open Research} 6 (1). \url{https://doi.org/10.1183/23120541.00330-2019}.
\end{CSLReferences}
\end{document}
I have no idea what the problem could be.
You are starting a CSLReferences environment in l. 179 which you never close:
\documentclass[
a5paper,
pagesize,
10pt,
bibliography=totoc,% <-- changed
numbers=noenddot, % <-- changed
headings=normal, % <-- changed
%DIV=9,
twoside=false,
%parskip=half,
]{scrbook}
\usepackage[portuguese]{babel}
\usepackage{csquotes}
\usepackage{url}
\usepackage{pdfpages}
\usepackage{appendix}
\usepackage{trajan}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\usepackage{graphicx}
\usepackage{calc}
\usepackage[margin=1in, paperwidth=6in, paperheight=9in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{makeidx}
\makeindex
\ifPDFTeX
\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc}
%\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
%\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
% Use upquote if available, for straight quotes in verbatim environments
\usepackage{upquote}
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
\usepackage{xcolor}
\ifLuaTeX
\usepackage{selnolig} % disable illegal ligatures
\fi
\usepackage[hyphens]{xurl}
\usepackage[unicode]{hyperref}
\usepackage{bookmark}
\hypersetup{
hidelinks,
}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}%
}
%\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newlength{\csllabelwidth}
\setlength{\csllabelwidth}{3em}
\newlength{\cslentryspacingunit} % times entry-spacing
\setlength{\cslentryspacingunit}{\parskip}
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
{% don't indent paragraphs
\setlength{\parindent}{0pt}
% turn on hanging indent if param 1 is 1
\ifodd #1\relax
\def\par{\hangindent=\cslhangindent\endgraf}
\fi
% set entry spacing
\setlength{\parskip}{#2\cslentryspacingunit}
}%
{}
\newcommand{\CSLBlock}[1]{#1\hfill\break}
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
\usepackage{lipsum}% just to fill pages
\begin{document}
\frontmatter
\begin{titlepage}
\centering{
\fontsize{40}{48}\selectfont
Análise Crítica da Pesquisa Clínica\par
}
\vspace{10mm}
\centering{\Large{Joaquim P. Brasil-Neto}}\\
\vspace{\fill}
\centering \large{2022}
\end{titlepage}
%\renewcommand*\contentsname{Análise Crítica de Ensaios Clínicos}
%=========================================
\newpage
%\begin{fichacatalografica}
% \includepdf{images/ficha.pdf}
%\end{fichacatalografica}
%\
\newpage
\thispagestyle {empty}
\vspace*{2cm}
\begin{center}
\Large{\parbox{10cm}{
\begin{raggedright}
{\Large
\textit{Half of what you'll learn in medical school will be shown to be either dead wrong or out of date within five years of your graduation; the trouble is that nobody can tell you which half- so the most important thing to learn is how to learn on your own.
}
}
\vspace{.5cm}\hfill{---David Sackett}
\end{raggedright}
}
}
\end{center}
\newpage
\
\newpage
\chapter{Prefácio}
Este livro foi escrito durante um semestre, enquanto o autor ministrava uma disciplina sobre análise crítica da pesquisa clínica. Essa disciplina é a última de uma série de oito dedicadas à medicina baseada em evidências e ministradas durante os quatro primeiros anos do curso de graduação em Medicina do Centro Universitário Euro-Americano, Unieuro, em Brasília-DF. Apesar de ter a sua origem em um curso de Medicina, os pontos aqui abordados também são de interesse para outros profissionais da área da saúde.
Atualmente, os profissionais da saúde são expostos a uma grande quantidade de informações e sugestões terapêuticas, sob a forma de palestras, artigos de revisão, consensos de especialistas, publicações patrocinadas pela indústria, dentre outras. Assim sendo, é da máxima importância que esses profissionais disponham de conhecimento suficiente sobre medicina baseada em evidências para que possam, com critérios científicos, selecionar a informação de qualidade que irá orientar a sua prática diária com os pacientes.
Esta obra aborda os erros mais comuns cometidos na pesquisa clínica, e indica como detectá-los ou mesmo evitá-los, no caso em que o profissional for o próprio pesquisador. Seguindo a mesma dinâmica do curso no qual se baseou, ela traz também atividades (``exercícios''), sob a forma de clubes de revista (\emph{Journal Clubs}), num total de sete. Para cada um, foram selecionados artigos publicados que ilustram conceitos importantes abordados nos capítulos precedentes.
A prática da medicina com base em evidências científicas sólidas é um ideal que todos devem procurar alcançar, mas para isso é necessária uma preparação intensiva desde a graduação. A adoção das metodologias ativas pelas atuais escolas médicas em nosso país tem o mérito de incentivar o espírito crítico e a busca ativa do conhecimento.
Este trabalho também pode servir de arcabouço para o planejamento de outros cursos que pretendam abordar o mesmo tema. Temos consciência de que nem todos os pontos importantes da matéria foram abordados e que alguns dos temas contemplados poderiam ter sido mais profundamente explorados. Entretanto, esses são problemas inerentes a qualquer curso que tenha uma carga horária pré-determinada, o que invariavelmente leva o docente a fazer escolhas pessoais sobre o que seria mais importante incluir.
Espero que este texto seja de utilidade para os profissionais de saúde durante suas explorações da ``selva'' da literatura biomédica atual. Em especial, desejo que seja de valia e que contribua para o sucesso profissional dos meus estudantes do Unieuro.
\vspace{5mm}
Brasília, DF, 25 de novembro de 2022
\tableofcontents
\frontmatter
\mainmatter
\chapter{Medicina Baseada em Evidências na Atualidade}
%\hypertarget{a-importuxe2ncia-das-eviduxeancias-cientuxedficas-na-pruxe1tica-muxe9dica}{%
\section{Desafios da Prática Médica Baseada em Evidências}\label{a-importuxe2ncia-das-eviduxeancias-cientuxedficas-na-pruxe1tica-muxe9dica}
A medicina foi praticada, durante séculos, mais como arte do que como ciência. Uma longa estrada foi trilhada desde os tratamentos supersticiosos, mágico-religiosos e empiricos até os nossos dias, em que cada vez mais se preconiza a prática médica baseada em evidências científicas.
Mas onde e como buscar as evidências científicas? O profissional de saúde de nossos dias é continuamente exposto a informações supostamente científicas, oriundas das mais diversas fontes: notícias veiculadas em jornais e na televisão, resultados publicados em periódicos de boa reputação, artigos publicados pelas indústrias farmacêuticas na internet, dentre outras. Entretanto, nenhuma fonte merece total confiança do profissional de saúde, que deve necessariamente fazer a sua análise crítica de todas as informações que recebe, não importa a origem ou suposta autoridade do veículo de divulgação.
%\hypertarget{referuxeancias}{%
\subsection*{Referências}\label{referuxeancias}
\addcontentsline{toc}{subsection}{Referências}
%\hypertarget{refs}{}
\begin{CSLReferences}{1}{0}
\leavevmode\vadjust pre{\hypertarget{ref-evansavaliaccao}{}}%
Evans, Imogen, Hazel Thornton, and Iain Chalmers. 2016. {``Avaliação de Tratamentos de Saúde,''} no. 2º Ed. \url{https://pt.testingtreatments.org/}.
\end{CSLReferences}
\chapter{As Evidências Científicas na Medicina}
\hypertarget{a-importuxe2ncia-das-eviduxeancias-cientuxedficas}{%
\section{A importância das evidências científicas}\label{a-importuxe2ncia-das-eviduxeancias-cientuxedficas}}
A história do tratamento de diversas doenças revela a importância do uso das melhores evidências na tomada de decisões terapêuticas. A seguir descrevemos alguns casos ilustrativos (Evans, Thornton, and Chalmers 2016).
\hypertarget{o-escorbuto-e-o-primeiro-ensaio-cluxednico-controlado}{%
\subsection{O escorbuto e o primeiro ensaio clínico controlado}\label{o-escorbuto-e-o-primeiro-ensaio-cluxednico-controlado}}
O escorbuto matou mais de dois milhões de marinheiros nos anos decorridos entre a viagem transatlântica de Cristóvão Colombo e o aparecimento dos motores a vapor em meados do século XIX. O risco de morrer de escorbuto nos navios era tão grande que os governos já contavam com uma perda de pelo menos 50\% das tripulações em todas as viagens.
James Lind, um médico escocês que serviu como cirurgião naval no navio \emph{HMS Salisbury} em 1747 é frequentemente lembrado como o autor de um dos primeiros experimentos controlados do mundo. Ele utilizou 12 marinheiros com escorbuto como sujeitos experimentais, dividindo-os em 6 grupos de 2 doentes cada. Ele então os manteve no mesmo compartimento do navio, com todas as condições iguais exceto pelo tratamento. Cada par recebia a cada dia os tratamentos considerados potencialmente válidos na época: 290 ml de cidra, 25 gotas de vitriol, 2 colheres de sopa de vinagre, 235 ml de água do mar, nós-moscada ou um ``tratamento'' com 2 laranjas e 1 limão. O vitriol, à base de ácido sulfúrico, era recomendado pelo \emph{Royal College of Physicians} e o almirantado apostava no vinagre.
Lind manteve os tratamentos por 14 dias, exceto para a dupla que recebia os limões e laranjas, pois estes acabaram em uma semana. Não obstante, esses dois pacientes se recuperaram tão rapidamente que passaram a ajudar Lind a cuidar dos demais. Hoje nós sabemos que o escorbuto é causado por deficiência de vitamina C e que a suplementação alimentar com frutas cítricas foi curativa. Lind, entretanto, não se deu conta da importância do seu achado, e embora acreditasse que o suco de limão era eficaz ficou com dúvidas quanto ao efeito da cidra, que também resultou em algum grau de melhora (provavelmente a cidra pouco elaborada que foi utilizada continha alguma quantidade de vitamina C).
Este é um bom exemplo de como a opinião de autoridades (no caso o \emph{Royal College of Physicians} e o almirantado) pode não indicar o melhor tratamento para uma doença, sendo necessária a comprovação científica por estudos controlados e sem viés do pesquisador.
\hypertarget{riscos-dos-tratamentos-intuitivos-mas-sem-comprovauxe7uxe3o-cientuxedfica}{%
\subsection{Riscos dos tratamentos intuitivos mas sem comprovação científica}\label{riscos-dos-tratamentos-intuitivos-mas-sem-comprovauxe7uxe3o-cientuxedfica}}
Nos anos 40, a mortalidade infantil era tal que um de cada cinco bebês prematuros morria. Depois que os médicos perceberam que esses bebês tinham grandes dificuldades respiratórias, passaram a aumentar os níveis de oxigênio nas incubadoras (Evans, Thornton, and Chalmers 2016).
De 1942 a 1954 foi relatada uma ``epidemia'' de cegueira em recém-nascidos prematuros devido a uma condição conhecida como \emph{fibroplasia retrolenticular}, ou retinopatia dos prematuros. A causa da condição era desconhecida.
\hypertarget{referuxeancias}{%
\subsection*{Referências}\label{referuxeancias}}
\addcontentsline{toc}{subsection}{Referências}
\hypertarget{refs}{}
\begin{CSLReferences}{1}{0}
\leavevmode\vadjust pre{\hypertarget{ref-evansavaliaccao}{}}%
Evans, Imogen, Hazel Thornton, and Iain Chalmers. 2016. {``Avaliação de Tratamentos de Saúde,''} no. 2º Ed. \url{https://pt.testingtreatments.org/}.
\leavevmode\vadjust pre{\hypertarget{ref-mannMotherKissCan2012}{}}%
Mann, Denise. 2012. {``{`Mother's Kiss'} Can Expel Objects From Kids' Noses.''} WebMD. 2012. \url{https://www.webmd.com/children/news/20121015/mothers-kiss-expel-foreign-objects-kids-noses}.
\leavevmode\vadjust pre{\hypertarget{ref-moschinoCaffeinePretermInfants2020}{}}%
Moschino, Laura, Sanja Zivanovic, Caroline Hartley, Daniele Trevisanuto, Eugenio Baraldi, and Charles Christoph Roehr. 2020. {``Caffeine in Preterm Infants: Where Are We in 2020?''} \emph{ERJ Open Research} 6 (1). \url{https://doi.org/10.1183/23120541.00330-2019}.
\end{CSLReferences}
\end{document}

Argument of \__cmd_expandable_grab_D:NNNwNNn has an extra }. Can't run my document

enter code hereThis is my code: (I've removed some lines just because of data). Today I've been just working with pdfs and tried to add there some tables converted to PDF but afterword error just poped up. I'm looking straight up for you answears.
My error is:
! Argument of __cmd_expandable_grab_D:NNNwNNn has an extra }.
\par
l.38 \section{^^c3^^9avod}
% Metódy inžinierskej práce
\documentclass[10pt,twoside,slovak,a4paper]{article}
\usepackage[slovak]{babel}
\usepackage[IL2]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{url}
\usepackage{hyperref}
\usepackage{cite}
\pagestyle{headings}
\title{Herný dizajn\thanks{Semestrálny projekt v predmete Metódy inžinierskej práce, ak. rok 2022/23, vedenie: Ing. Zuzana Špitálová}}
\author{Adam Melničák\\[2pt]
{\small Slovenská technická univerzita v Bratislave}\\
{\small Fakulta informatiky a informačných technológií}\\
{\small \texttt{ferko#xxx.sk}}
}
\date{\small 6. november 2022}
\begin{document}
\maketitle
\begin{abstract}
V dnešnej dobe sú hry oblasťou, ktorá je veľmi blízka mladým ľuďom.
\end{abstract}
\section{Úvod}
Gamifikácia je v dnešnej dobe častokrát mylne chápaný pojem, ktorý si ľudia zamieňajú so samotnými hrami. Tento pojem primárne vystihuje zapájanie herných prvkov do neherných oblastí. Aj keď práve táto technika je s hrami úzko spojená, nie je chápaná ako hra sama o sebe.
\section{Prvky herného dizajnu}
Pri aplikácii gamifikácie sú prvky herného dizajnu kľúčom k úspechu. Pojem herný dizajnér v praxi, označuje pracovné pozície, ktorých hlavnou úlohou je navrhovať pravidlá správania sa vecí v hre a potom tieto pravidlá zvyčajne implementovať.
\subsection{Definícia cieľa hry}
Napriek veľkému počtu definícii hier sa vedci vo všeobecnosti zhodujú na tom, že hry majú ciele.
\subsubsection{Výhra}
Jedným zo základných cieľov hry je výhra.
\subsubsection{Dokončenie}
Existujú hry, ktoré majú vopred navrhnutý a určený záver (závery), ale nemajú explicitné, súťažné hodnotenie, pri ich ukončení.
\subsubsection{Predĺženie}
Predĺženie patrí do kategórie hier, kde daná hra nemá konečný stav. Cieľom týchto hier je oddialiť ich záver nekonečným počtom životov. Príkladom takejto hry je World of Warcraft (Blizzard 2004), ktorá je svetovým fenoménom medzi multiplayerovými hrami a držiteľom svetových ocenení. Tieto hry nemajú koniec a o ich ukončení rozhoduje hráč. Medzi tento typ hier zaraďujeme aj hry s cieľom, ktorý však nie je možné dosiahnuť, keďže ich vývojári neustále dopĺňajú o nové úrovne. Jednou z takých hier je Don't Starve (Klei Entertainment 2013), ktorá je založená na prežití čo najväčšieho počtu dní. Hry s cieľom predĺženia nie je možné dokončiť a ich hlavným cieľom je predĺženie herného zážitku.
\subsection{Interakcia s hráčmi}
Masívne multiplayerová online hra na hrdinov je žáner PC hry, ktorá umožňuje stovkám alebo tisícom geograficky rozmiestnených hráčov, ktorí môžu súčasne hrať na internete. Hranie hier tohto typu zahŕňa kolektívnu spoluprácu pri plnení vzájomných úloh, čo výrazne napomáha pri riešení skupinových problémov. Takýto hráči sa častokrát chcú neustále zlepšovať a preto pátrajú po informáciach aj na online fórach, kde s ostatnými zdieľajú rôzne taktiky. Ďalšou formou interakcie pri hraní multiplayerových hier je možnosť zapojenia sa do klanov, cechov alebo tímov, kde majú hráči možnosť navzájom komunikovať prostredníctvom chatu. Teória spolupatričnosti naznačuje, že ľudia majú základnú potrebu patriť, ktorá ich motivuje k vyhľadávaniu sociálnych interakcií a vytváraniu blízkych a zmysluplných vzťahov s ostatnými.
\subsection{Obmedzenie v hrách}
\subsection{Využitie zvuku v hrách}
Pre mnoho ľudí je hudba v hrách oproti hudbe využitej vo filmoch na nerozoznanie.
\subsection{Tvorba príbehu}
Neoddeliteľnou súčasťou každej kvalitnej hry je dobrý príbeh. Vo väčšine prípadov je dôležité dbať dôraz na to, aby mali hráči dostatočnú kontrolu nad vývojom deja hry a pociťavali určitú obtiažnosť, ktorá ich nepriamo donucuje k tomu, aby sa zlepšovali. Prirodzená túžba človeka porozumieť svojmu svetu je taká silná, že ak sa herní dizajnéri zrieknu všetkej autorskej zodpovednosti a pokúsia sa vytvoriť hru bez príbehu, hráči do hry aj tak vnútia príbeh, bez ohľadu na to, či ho dizajnéri brali do úvahy.
\section{Hra}
\subsection{Vplyv hier na ľudí a ich rozvoj}
\subsection{Spoločnosti zamerané na vývoj hier}
\subsection{Rozdelenie hier podľa ich zamerania}
\end{document}
I have the same problem ; it seems to depend on the new babel package
(in my case, without the "\usepackage[french]{babel}" the compilation complete).

Extract price suffix in € (google sheet)

I have a cell with this text:
"Chalet independiente en Montealegre, Barcelona 425.000 €. URBILARO.
COM les ofrece en exclusiva esta fantástica vivienda ubicada en
Barcelona. Parcela de 613 mts2 con jardín consolidado, paellero y
piscina. Su interior se distribuye en un ...
[http://st1.idealista.com/static/common/release/home/resources/img/logo-small.png]
[https://www.idealista.com/?xts=582065&xtor=EPR-1147-[express_alerts_20220629]-20220629-[logo]-72485519100#1-20220629170428]Hola,
Idealist, 1 anuncio recién publicado con tus criterios
[https://img3.idealista.com/blur/500_375_mq/0/id.pro.es.image.master/63/6d/8c/1001269200.jpg]
[https://www.idealista.com/inmueble/98106051/?xts=582065&xtor=EPR-1147-[express_alerts_20220629]-20220629-[Property.New.Photo]-72485519100#1-20220629170428&isFromSavedSearch=true]
Ver 30 fotos
[https://www.idealista.com/inmueble/98106051/?xts=582065&xtor=EPR-1147-[express_alerts_20220629]-20220629-[Property.New.Photo]-72485519100#1-20220629170428&isFromSavedSearch=true]
Chalet independiente en Montealegre, Barcelona
[https://www.idealista.com/inmueble/98106051/?xts=582065&xtor=EPR-1147-[express_alerts_20220629]-20220629-[Property.New.Link]-72485519100#1-20220629170428&isFromSavedSearch=true]
425.000 € 152 m² 4 hab. URBILAR. COM les ofrece en exclusiva esta fantástica vivienda ubicada en La Barcelona. Parcela de 613 mts2 con
jardín consolidado, paellero y piscina. Su interior se distribuye en
un .........................."
The information structure for others cells, is similar to this one.
I want to extract the bold information in different cells:
For instances:
| Montealegre | 425.000 € | 98106051 | 152 m² | 4 hab | 613 mts2 |
I tried to start with the price, like this:
=REGEXEXTRACT('Hoja 1'!B1; "\€([0-9.]+)")
But no luck.
You can see sample here: https://docs.google.com/spreadsheets/d/1u0ItzOo50-aGv2yXzGxS_TzfsHFUmPZJ4hcwA8jswfM/edit?usp=sharing
This works
=REGEXEXTRACT('Hoja 1'!B1; "[0-9. ]+€")
(Remember the space.)

My native language special characters don't work on LaTeX

I'm new to LaTeX and I'm trying to make my Cover Letter on Overleaf. My name is Codruț Ștefan, and when I want to implement that in this section, the "ț" and the "Ș" don't render:
\namesection{Codrut Stefan}{Ursache}{
\href{mailto:ursache.codrut71#gmail.com}{ursache.codrut71#gmail.com} | 0765991609 |
\urlstyle{same}\href{https://github.com/Kreker71}{Github} |
\urlstyle{same}\href{https://www.facebook.com/ursache.codrut}{Facebook}
}
The strange part is that when I write these special characters in the main part of the letter, everything is all right.
I also included these special tags at the begging \usepackage[romanian]{babel} \usepackage{combelow}
Please help me and sorry if it's a dumb question.
cover.tex:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Deedy - Cover Letter Template
% LaTeX Template
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[]{cover}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\rfoot{Page \thepage \hspace{1pt}}
\thispagestyle{empty}
\renewcommand{\headrulewidth}{0pt}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% TITLE NAME
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\namesection{Codruț Ștefan}{Ursache}{ \href{mailto:ursache.codrut71#gmail.com}{ursache.codrut71#gmail.com} | 0765991609 | \urlstyle{same}\href{https://github.com/Kreker71}{Github} | \urlstyle{same}\href{https://www.facebook.com/ursache.codrut}{Facebook}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% MAIN COVER LETTER CONTENT
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hfill
\begin{minipage}[t]{0.5\textwidth}
\companyname{Microsoft Learn Student Ambassadors}
\end{minipage}
\begin{minipage}[t]{0.49\textwidth}
\currentdate{\today}
\end{minipage}
\vspace*{7mm}
\lettercontent{\hspace*{10mm} Dragă recrutant,}
% The first paragraph of your job application letter should include information on why you are writing. Mention the job you are applying for and where you found the position. If you have a contact at the company, mention the person's name and your connection here.
\lettercontent{\hspace*{10mm} Numele meu este Ursache Codruț-Ștefan. Am 18 ani și în prezent sunt student la Universitatea Politehnica din București, pe profilul Calculatoare și Tehnologia Informației. Atracția mea către domeniul informaticii a început din copilărie, prin prisma jocurilor pe calculator, ce reprezentau o provocare pentru mine, de a înțelege conceptele tehnice din spatele funcționalității acestora. Cu timpul, informatica a devenit o pasiune, fapt ce m-a determinat să urmez un profil de Matematică și Informatică cu predarea intensivă a Informaticii la Colegiul Național B.P.Hasdeu din Buzău, fiind unul dintre cele mai prestigioase licee din țară. Datorită metodelor avansate de predare, am putut să îmi însușesc un nivel de cunoștințe generale ridicat, cât și o bază complexă în primul meu limbaj de programare studiat, și anume C++.
}
% The next section of your cover letter should describe what you have to offer the company. Make strong connections between your abilities and the requirements listed in the job posting. Mention specifically how your skills and experience match the job. Expand on the information in your resume.
% Try to support each statement you make with a piece of evidence. Use several shorter paragraphs or bullets rather than one large block of text, which can be difficult to read and absorb quickly.
%For example
% Using the knowledge and skills I have acquired in my <DEGREE PROGRAM> combined with my technical abilities I believe I can provide significant value to <COMPANY> while providing me invaluable experience to <PREPARE FOR OR FURTHER CAREER>.
% <RELEVANT LIFE STORY/ WORK/ PROJECT >
% In own projects, my coursework, work as a <PREVIOUS JOB TITLE> I have applied knowledge of <SUBJECT MATTER>.
% <LIST OF SMART SOUNDING SKILLS AND TOOLS>.
% Combining these tools with my interests in <FIELD> issues, I hope to help the <DEPARTMENT> answer questions about the <SUBJECT> behind <FIELD> projects.
\lettercontent{\hspace*{10mm}Lumea se află în prezent într-o eră dominată de avansul rapid al tehnologiei asupra oamenilor, prin infiltrațiile sale în domenii cum ar fi medicina, inginerie, business. Fiind o fire cu o voință puternică cu privire la procesele de auto-învățare, pe care le consider esențiale în etapele pe care le parcurge un viitor programator, atenția mea a fost concentrată pe toate noutățile apărute din sfera științei, pentru a putea înțelege mai bine ce rol are și va avea în viitor tehnologia în viețile noastre. Acest lucru m-a determinat să înțeleg mai bine necesitățile lumii moderne, în strânsa legătura cu lumile artificiale create de fiecare calculator în parte.
}
%Proiect personal
\lettercontent{\hspace*{10mm}În clasa a 11-a, prin suportul imens acordat din partea unui profesor de informatică din cadrul liceului, am reușit să realizez primul meu proiect, ce a constat într-o oglindă inteligentă, ce îmbină eficient componente hardware, cum ar fi o placă principală de tip RaspberryPy Model 3B, și programare software, folosind concepte de Linux, NodeJS și Python. Dimensiunile acesteia sunt moderate, astfel încât se pot integra zone în care utilizatorul poate accesa știrile zilei, vremea, moduri diferite de vizualizare ce modifică luminozitatea, contrastul imaginii etc, în funcție de momentul în care oglinda este folosită. De asemenea, în funcție de momentul zilei, aceasta afișează un mesaj motivațional diferit(ex.: Dimineața între orele 07-10am sunt prezentate mesaje specifice pentru dimineață, precum "Bună dimineața!", "Cum a fost somnul?", "Gata pentru o nouă zi?"). Utilizarea site-ului GitHub m-a făcut să realizez cât de strânsă și unită este comunitatea de programatori din întreaga lume, prin intermediul acestuia reușind să implementez o funcție de RemoteControl a oglinzii prin intermediul smartphone-ului(widget-urile și oglinda pot fi închise și deschise de pe telefon).
}
% Proiecte liceu
\lettercontent{\hspace*{10mm}În perioada liceului, am înțeles cât de important este să pătrund cât mai adânc în diferite domenii ce fac parte din întregul științei calculatoarelor. O parte din efortul meu academic era îndreptat către rezolvarea problemelor de programare, fie ele strict efectuate în timpul orelor, fie proiecte avansate, cum ar fi jocuri sau aplicații. În timpul unui opțional în clasa a 11-a, am parcurs elemente de C\#, reușind, în decurs de doar câteva săptămâni, să proiectez diferite aplicații practice, destinate înțelegerii mai limpede a modului în care operează C\#, prin aceste procese educaționale: convertor valutar, tabel periodic al elementelor digital, generarea unor fractali și un calculator matematic. Lucrând la aceste aplicații, cât și la programe ce presupuneau o diversitate de noțiuni matematice, am conștientizat relația de interdependență dintre cele două ramuri științifice, matematica fiind un alt domeniu pe care mi-am canalizat atenția.}
%
% PATH
%
\lettercontent{\hspace*{10mm} Întotdeauna am fost adeptul ideii de posibilă conviețuire cu un calculator capabil să funcționeze autonom. Domeniul inteligenței artificiale cu ale sale sub-ramuri, Machine Learning și Deep Learning, creează pretextul unui viitor în care relațiile inter-umane vor fi dominate de legăturile stabilite între oameni și calculatoare. Fiind o persoană capabilă să se adapteze la orice provocare apărută în cadrul științei, cu precădere a științei calculatoarelor, fac parte din comunitatea ce se află în continuă dezvoltare, a oamenilor implicați, activ sau pasiv, în cercetarea inteligenței artificiale, aflată încă într-un stadiu de plină expansiune. De aceea, îmi doresc să fiu îndrumat corespunzător de către Microsoft Learn Student Ambassadors, spre a aprofunda noțiunile unei viitoare cariere de succes, combinând cercetarea acestui domeniu, până la realizarea programelor capabile să se auto-cerceteze.}
\lettercontent{\hspace*{10mm} Când vine vorba de hobby-uri, îmi place să mă surprind și să încerc lucruri noi, însă principalele mele atracții sunt îndreptate către fotografie și cinematografie. Fiecare fotografie ascunde în spatele ei o poveste ce poate fi descoperită la o analiză mai amănunțită, pixelii conținând nu doar o combinație de valori RGB, ci și o emoție sau o trăire a fotografului sau a obiectului fotografiat. Ceea ce ador cel mai mult la fotografie nu este acțiunea propriu-zisă de a face poze, ci posibilitatea de a o îmbina cu alte pasiuni dragi mie, cum ar fi drumețiile, concertele și observatul stelelor. Pe de altă parte, mă consider un cinefil dedicat. Părerea mea este că la fel cum elevii trebuie să învețe literatură și despre cât de multe lucruri are de oferit și de ascuns o carte, ar trebui să existe o oră asemănătoare pentru studiul filmelor, în care elevul are șansa să descopere de ce o anumită scenă a fost filmată cu cadre foarte mari, de ce filmul a fost produs Alb-Negru deși tehnologia din momentul filmării permitea o imagine color sau în câte moduri poate fi interpretat un anumit final. Trăim într-o eră a audio-vizualului în care, din păcate, din ce în ce mai multe filme care "au ceva de spus" sunt umbrite de filme comerciale, de cinema, pline de efecte speciale și lipsite de mesaj sau poveste.}
\lettercontent{\hspace*{10mm} Din punct de vedere al laturii sociale, sunt o persoană ce asociază fiecare interacțiune cu oamenii ca fiind o experiență din care pot învăța lucruri noi, ce mă pot ajuta în procesul meu de dezvoltare personală. De altfel, simt o nevoie intensă de a fi implicat în acte de voluntariat, dorind să am o contribuție, oricât de mică, asupra acțiunilor de ajutorare a oamenilor, dar și a animalelor. De exemplu, în primul an de liceu, am fost organizator într-o echipă ce a desfășurat un carnaval cu tematica Harry Potter, unde se vindeau sucuri și prăjituri. Banii strânși de pe urma acestora, cât și de pe urma vânzării biletelor pentru a putea intra la carnaval au fost donați unei case de bătrâni din orașul în care locuiesc.
}
\lettercontent{}
\lettercontent{}
\vspace{0.5cm}
\signature{Ursache Codruț Ștefan}
\end{document}
\documentclass[]{article}
cover.cls:
% Intro Options
\ProvidesClass{deedy-resume-openfont}[2014/04/30 CV class]
\NeedsTeXFormat{LaTeX2e}
\DeclareOption{print}{\def\#cv#print{}}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{article}
}
\ProcessOptions\relax
\LoadClass{article}
% Package Imports
\usepackage[hmargin=2.54cm, vmargin=2.54cm]{geometry}
\usepackage[hidelinks]{hyperref}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{titlesec}
\usepackage[absolute]{textpos}
\usepackage{fontspec,xltxtra,xunicode}
% Publications
\usepackage{cite}
\renewcommand\refname{\vskip -1.5cm}
% Color definitions
\usepackage[usenames,dvipsnames]{xcolor}
\definecolor{date}{HTML}{666666}
\definecolor{primary}{HTML}{2b2b2b}
\definecolor{headings}{HTML}{6A6A6A}
\definecolor{subheadings}{HTML}{333333}
% Set main fonts
\usepackage{fontspec}
\setmainfont[Color=primary, Path = OpenFonts/fonts/lato/,BoldItalicFont=Lato-RegIta,BoldFont=Lato-Reg,ItalicFont=Lato-LigIta]{Lato-Lig}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text, Path = OpenFonts/fonts/raleway/]{Raleway-ExtraLight}
% Date command
\usepackage[absolute]{textpos}
% \usepackage[UKenglish]{isodate}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{1mm}
\newcommand{\lastupdated}{\begin{textblock}{60}(155,5)
\color{date}\fontspec[Path = OpenFonts/fonts/raleway/]{Raleway-ExtraLight}\fontsize{8pt}{10pt}\selectfont
Last Updated on \today
\end{textblock}}
% Name command
\newcommand{\namesection}[3]{
\centering{
\fontsize{40pt}{60pt}
\fontspec[Path = OpenFonts/fonts/lato/]{Lato-Hai}\selectfont #1
\fontspec[Path = OpenFonts/fonts/lato/]{Lato-Lig}\selectfont #2
} \\[5pt]
\centering{
\color{headings}
\fontspec[Path = OpenFonts/fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{14pt}\selectfont #3}
\noindent\makebox[\linewidth]{\color{headings}\rule{\paperwidth}{0.0pt}}
\vspace{0pt}
}
% Section seperators
\usepackage{titlesec}
\titlespacing{\section}{0pt}{0pt}{0pt}
\titlespacing{\subsection}{0pt}{0pt}{0pt}
\newcommand{\sectionsep}{\vspace{8pt}}
% Headings command
\titleformat{\section}{\color{headings}
\scshape\fontspec[Path = OpenFonts/fonts/OpenFonts/fonts/lato/]{Lato-Lig}\fontsize{16pt}{24pt}\selectfont \raggedright\uppercase}{}{0em}{}
% Subeadings command
\titleformat{\subsection}{
\color{subheadings}\fontspec[Path = OpenFonts/fonts/lato/]{Lato-Bol}\fontsize{12pt}{12pt}\selectfont\bfseries\uppercase}{}{0em}{}
\newcommand{\runsubsection}[1]{
\color{subheadings}\fontspec[Path = OpenFonts/fonts/lato/]{Lato-Bol}\fontsize{12pt}{12pt}\selectfont\bfseries\uppercase {#1} \normalfont}
% Descriptors command
\newcommand{\descript}[1]{
\color{subheadings}\raggedright\scshape\fontspec[Path = OpenFonts/fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{13pt}\selectfont {#1 \\} \normalfont}
% Location command
\newcommand{\location}[1]{
\color{headings}\raggedright\fontspec[Path = OpenFonts/fonts/raleway/]{Raleway-Medium}\fontsize{10pt}{12pt}\selectfont {#1\\} \normalfont}
% Bullet Lists with fewer gaps command
\newenvironment{tightemize}{
\vspace{-\topsep}\begin{itemize}\itemsep1pt \parskip0pt \parsep0pt}
{\end{itemize}\vspace{-\topsep}}
% Cover Letter
\newcommand{\companyname}[1]{\raggedright\fontspec[Path = OpenFonts/fonts/lato/]{Lato-Bol}\fontsize{12pt}{14pt}\selectfont {#1 \\} \normalfont}
\newcommand{\companyaddress}[1]{\raggedright\fontspec[Path = OpenFonts/fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{13pt}\selectfont {#1 \\}\mbox{}\\\mbox{}\\ \normalfont}
\newcommand{\currentdate}[1]{\raggedleft\fontspec[Path = OpenFonts/fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{13pt}\selectfont {#1 \\} \normalfont}
% Letter content command
\newcommand{\lettercontent}[1]{\raggedright\fontspec[Path = OpenFonts/fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{13pt}\selectfont {#1 \\}\mbox{}\\ \normalfont}
\newcommand{\closing}[1]{\raggedright\fontspec[Path = OpenFonts/fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{13pt}\selectfont {#1 \\}\mbox{}\\\mbox{}\\ \normalfont}
\newcommand{\signature}[1]{\raggedright\fontspec[Path = OpenFonts/fonts/raleway/]{Raleway-Medium}\fontsize{11pt}{13pt}\selectfont {#1 \\} \normalfont}

What is about with Clisting environnement

could you help me to solve following problem?
below the MWE code and the error ==>Undefined control sequence. \end{Clisting}
why the error appear?
The problem to manage accent inside Clisting bloc is solved
The pdf document seems totally good.
the compilation operate with pdflatex
As you can see, I want to keep tikz and listing aspect in order to have a nice breakable box
\documentclass{book}
%mwe_clisting2
%Rétablissement des polices vectorielles
%Pour retourner dans le droit chemin, vous pouvez passer par le package ae ou bien utiliser les fontes modernes, voire les deux :
\usepackage{ae,lmodern} % ou seulement l'un, ou l'autre, ou times etc.
\usepackage[english,french]{babel}
\usepackage[utf8]{inputenc}
%%% Note that this is font encoding (determines what kind of font is used), not input encoding.
\usepackage[T1]{fontenc}
\usepackage[cyr]{aeguill}
\usepackage{tikz}
\tikzset{coltria/.style={fill=red!15!white}}
\usepackage{tcolorbox}
\tcbuselibrary{listings,breakable,skins,documentation,xparse}
\lstdefinestyle{Clst}{
literate=
{á}{{\'a}}1
{à}{{\`a }}1
{ã}{{\~a}}1
{é}{{\'e}}1
{ê}{{\^e}}1
{î}{{\^i}}1
{oe}{{\oe}}1
{í}{{\'i}}1
{ó}{{\'o}}1
{õ}{{\~o}}1
{ú}{{\'u}}1
{ü}{{\"u}}1
{ç}{{\c{c}}}1,
numbers=left,
numberstyle=\small,
numbersep=8pt,
frame = none,
language=C,
framexleftmargin=5pt, % la marge à  gauche du code
% test pour améliorer la présentation du code
upquote=true,
columns=flexible,
basicstyle=\ttfamily,
basicstyle=\small, % ==> semble optimal \tiny est vraiment trop petit
% provoque une erreur texcsstyle=*\color{blue},
commentstyle=\color{green}, % comment style
keywordstyle=\color{blue}, % keyword style
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
showtabs=false, % show tabs within strings adding particular underscores
stringstyle=\color{cyan}, % string literal style
numbers=none,
tabsize=4,
% pour couper les lignes trop longues
breaklines,
breakindent=1.5em, %?indente?de?3?caracteres?vers?la?droite
escapechar=µ,% pour escape en latex
% pour l'encodage à l'intérieur des listing utf8 et latin1 ?????
% inputencoding=utf8/latin1,
morekeywords=[2]{ % j'ajoute une catégorie de mots-clés
%%% pour tri sur le 5ieme caractere
gtk_window_new,
gtk_window_set_title,
gtk_window_set_resizable,
gtk_window_get_resizable,
gtk_window_is_maximized,
gtk_window_maximize,
gtk_window_unmaximize,
gtk_window_fullscreen,
gtk_window_fullscreen_on_monitor,
gtk_window_unfullscreen,
%%%%%%%%%%%
gdk_rgba_parse,
gdk_rgba_parse,
gdk_rgba_parse,
gdk_rgba_parse,
% dernier sans la virgule
},
morekeywords=[3]{ %% j'ajoute une autre catégorie de mots-clés
%%% pour tri sur le 3ieme caractere
G_TYPE_NONE,
G_TYPE_INTERFACE,
G_TYPE_CHAR,
G_TYPE_UCHAR,
G_TYPE_BOOLEAN,
G_TYPE_INT,
G_TYPE_UINT,
G_TYPE_LONG,
% dernier sans la virgule
},
morekeywords=[4]{ %% j'ajoute une autre catégorie de mots-clés
%%% pour tri sur le 1er caractere
GtkSourceLanguageManager,
GtkSourceSmartHomeEndType,
GtkSourceMarkAttributes,
GtkSourceDrawSpacesFlags,
GtkSourceCompletion,
GtkSourceGutter,
GtkSourceBackgroundPatternType,
Container_set_border_width,
GtkSourceSearchContext,
GtkFileChooserAction,
gboolean,
%%%%%%
cairo_rectangle,
cairo_fill,
% dernier sans la virgule
},
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%Traitement des mots-clefs type gtk_xxxxx
keywordstyle=[2]\monstyleblue, %%%\color{blue}, % je leur donne une coloration spéciale ds le texte
%% Intégration dans l'index OK
moreindex={[1][keywords2]}, % ces mots-clés sont ajoutés à  l'index?oui
%% gtk_xxxx trié par xxxx ca fonctionne sur tout l'index
indexstyle={[1]\indexgtk}, % par le biais de macro \indexgtk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%Traitement des mots-clefs type g_xxxxx
keywordstyle=[3]\monstylegreen, %%%\color{green}, % je leur donne une coloration spéciale ds le texte
%% Intégration dans l'index OK
moreindex={[3][keywords3]}, % ces mots-clés sont ajoutés à  l'index?oui
%% gtk_xxxx trié par xxxx ca fonctionne sur tout l'index
indexstyle={[3]\indexglib}, % par le biais de ma macro tri 3ieme
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%Traitement des mots-clefs type GtkSourceSmartHomeEndType
keywordstyle=[4]\monstylebrown, %%%\color{brown}, % je leur donne une coloration spéciale ds le texte
%% Intégration dans l'index OK
moreindex={[4][keywords4]}, % ces mots-clés sont ajoutés à  l'index?oui
%% xxxx trié par xxxx ca fonctionne sur tout l'index
indexstyle={[4]\indextype}, % tri sur le mot entier
}
%---------------------------------------------------------------------------------------
%------------------------------ box dédié au code langage C ----------------------------
%---------------------------------------------------------------------------------------
\newtcblisting{Clisting}[2][]{empty,breakable,leftrule=5mm,left=2mm,
%frame style={fill,top color=red!75!black,bottom color=red!75!black,middle color=red},
frame style={fill,top color=green!75!black,bottom color=green!75!black,middle color=green},
listing only,
listing engine=listings,
listing options={style=Clst,tabsize=4,breaklines,
breakindent=1.5em,columns=fullflexible},
% keywordstyle=\color{red}},
colback=yellow!15!white,
% code for unbroken boxes:
frame code={\path[tcb fill frame] (frame.south west)--(frame.north west)
--([xshift=-5mm]frame.north east)--([yshift=-5mm]frame.north east)
--([yshift=5mm]frame.south east)--([xshift=-5mm]frame.south east)--cycle; },
interior code={\path[tcb fill interior] (interior.south west)--(interior.north west)
--([xshift=-4.8mm]interior.north east)--([yshift=-4.8mm]interior.north east)
--([yshift=4.8mm]interior.south east)--([xshift=-4.8mm]interior.south east)
--cycle; },
attach boxed title to top center={yshift=-2mm},
title=\fcolorbox{black}{black}{\red{#2}},
% code for the first part of a break sequence:
skin first is subskin of={emptyfirst}{%
frame code={\path[tcb fill frame] (frame.south west)--(frame.north west)
--([xshift=-5mm]frame.north east)--([yshift=-5mm]frame.north east)
--(frame.south east)--cycle;
\path[coltria] ([xshift=2.5mm,yshift=1mm]frame.south west) -- +(120:2mm)
-- +(60:2mm)-- cycle; },
interior code={\path[tcb fill interior] (interior.south west|-frame.south)
--(interior.north west)--([xshift=-4.8mm]interior.north east)
--([yshift=-4.8mm]interior.north east)--(interior.south east|-frame.south)
--cycle; },
},%
% code for the middle part of a break sequence:
skin middle is subskin of={emptymiddle}{%
frame code={\path[tcb fill frame] (frame.south west)--(frame.north west)
--(frame.north east)--(frame.south east)--cycle;
\path[coltria] ([xshift=2.5mm,yshift=-1mm]frame.north west) -- +(240:2mm)
-- +(300:2mm) -- cycle;
\path[coltria] ([xshift=2.5mm,yshift=1mm]frame.south west) -- +(120:2mm)
-- +(60:2mm) -- cycle;
},
interior code={\path[tcb fill interior] (interior.south west|-frame.south)
--(interior.north west|-frame.north)--(interior.north east|-frame.north)
--(interior.south east|-frame.south)--cycle; },
},
% code for the last part of a break sequence:
skin last is subskin of={emptylast}{%
frame code={\path[tcb fill frame] (frame.south west)--(frame.north west)
--(frame.north east)--([yshift=5mm]frame.south east)
--([xshift=-5mm]frame.south east)--cycle;
\path[coltria] ([xshift=2.5mm,yshift=-1mm]frame.north west) -- +(240:2mm)
-- +(300:2mm) -- cycle;
},
interior code={\path[tcb fill interior] (interior.south west)
--(interior.north west|-frame.north)--(interior.north east|-frame.north)
--([yshift=4.8mm]interior.south east)--([xshift=-4.8mm]interior.south east)
--cycle; },#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% attention dans les 3 commandes ci-dessous l'activation simultanée de \marginpar{\scriptsize provoque une situation ingérable par latex
\newcommand{\monstylered}[1] % attention ici le 1 c'est un seul paramètre !!!!!
{\color{red}{\emph{#1}}
}
\newcommand{\monstyleblue}[1] % attention ici le 1 c'est un seul paramètre !!!!!
{\color{blue}{\emph{#1}}
}
\newcommand{\monstylebrown}[1] % attention ici le 1 c'est un seul paramètre !!!!!
{\color{brown}{\emph{#1}}
}
\newcommand{\monstylegreen}[1] % attention ici le 1 c'est un seul paramètre !!!!!
{\color{green}{\emph{#1}}
}
%----------------------- Fin Traitement des listing ------------------------------
% --------------------- Macros pour indexation des mots clefs --------------------
% macro pour fabriquer le fichier d'index
\usepackage{makeidx}
\makeindex
% fabrication de l'index
%makeindex mwe_clisting2.idx -s perso.ist
%---------------------------------------------------------------------------------
%%%%%% tri a partir du 5ieme element gtk_XXXX et couleur index blue
\makeatletter
\def\#indexgtk#i#1#2#3#4#5,{\index{#5#\monstyleblue{#1#2#3#4#5}}}
\def\indexgtk#1{\#indexgtk#i#1,}
\makeatother
%---------------------------------------------------------------------------------
%%%%% tri a partir du 3ieme element G_NONE et couleur index green
\makeatletter
\def\#indexglib#i#1#2#3,{\index{#3#\monstylegreen{#1#2#3}}}
\def\indexglib#1{\#indexglib#i#1,}
\makeatother
%%%%%% tri a partir du 1er element MANQUE MISE EN ITALIQUE et couleur index marron
\makeatletter
\def\#indextype#i#1,{\index{#1#\monstylebrown{#1}}}
\def\indextype#1{\#indextype#i#1,}
\makeatother
%---------------------------------------------------------------------------------------
\begin{document}
Voici l'étape qui a toute les chances de ne pas être lue au début mais plutôt quand on est dans une belle impasse. Croire qu'on va s'en sortir sans un minimum de méthode n'est pas viable dans le projet que je vous propose de suivre.
Aidez-moi à conjurer le mauvais sort, et lisez avec attention cette liste de recommandation qui relève du bon sens pratique du développeur expérimenté qu'il aurait aimé découvrir dès ses premiers pas.
\begin{Clisting} {fonction draw\_func}
void draw_func (GtkDrawingArea *da,
cairo_t *cr,
int width,
int height,
gpointer data)
{
GdkRGBA red, green, yellow, blue;
double w, h;
w = width / 2.0;
h = height / 2.0;
gdk_rgba_parse (&red, "red");
gdk_rgba_parse (&green, "green");
gdk_rgba_parse (&yellow, "yellow");
gdk_rgba_parse (&blue, "blue");
gdk_cairo_set_source_rgba (cr, &red);
cairo_rectangle (cr, 0, 0, w, h);
cairo_fill (cr);
gdk_cairo_set_source_rgba (cr, &green);
cairo_rectangle (cr, w, 0, w, h);
cairo_fill (cr);
gdk_cairo_set_source_rgba (cr, &yellow);
cairo_rectangle (cr, 0, h, w, h);
cairo_fill (cr);
gdk_cairo_set_source_rgba (cr, &blue);
cairo_rectangle (cr, w, h, w, h);
cairo_fill (cr);
}
...
gtk_drawing_area_set_draw_func (area, draw, NULL, NULL);
\end{Clisting}
\begin{Clisting}{here problem with accent}
gboolean TEST1 = TRUE
if (TEST1)
{
/** nouvel essai nouvelle méthode à tester **/
...
}
else
{
/** ancien bloc fonctionnel qui buggue **/
...
}
\end{Clisting}
\begin{Clisting}{Run ok with colorisation index}
gtk_window_new
gtk_window_set_title
gtk_window_set_resizable
gtk_window_get_resizable
gtk_window_is_maximized
gtk_window_maximize
gtk_window_unmaximize
gtk_window_fullscreen
gtk_window_fullscreen_on_monitor
gtk_window_unfullscreen
G_TYPE_NONE
G_TYPE_INTERFACE
G_TYPE_CHAR
G_TYPE_UCHAR
G_TYPE_BOOLEAN
G_TYPE_INT
G_TYPE_UINT
G_TYPE_LONG
GtkSourceLanguageManager
GtkSourceSmartHomeEndType
GtkSourceMarkAttributes
GtkSourceDrawSpacesFlags
GtkSourceCompletion
GtkSourceGutter
GtkSourceBackgroundPatternType
Container_set_border_width
GtkSourceSearchContext
GtkFileChooserAction
gboolean
\end{Clisting}
\printindex
\end{document}
EDIT : I changed the exemple code....
In order to understand, please compile with pdflatex, look two type of error.... as you have better knowledge as me you should help me.
pb with accent solved
Thanks a lot by advance
If you look at the complete error message in the log file, you get
! Undefined control sequence.
<argument> \red
{fonction draw\_func}
l.280 \end{Clisting}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
This tells you that \red is not defined, this is simply wrong syntax
\documentclass{book}
%mwe_clisting2
%Rétablissement des polices vectorielles
%Pour retourner dans le droit chemin, vous pouvez passer par le package ae ou bien utiliser les fontes modernes, voire les deux :
\usepackage{ae,lmodern} % ou seulement l'un, ou l'autre, ou times etc.
\usepackage[english,french]{babel}
\usepackage[utf8]{inputenc}
%%% Note that this is font encoding (determines what kind of font is used), not input encoding.
\usepackage[T1]{fontenc}
\usepackage[cyr]{aeguill}
\usepackage{tikz}
\tikzset{coltria/.style={fill=red!15!white}}
\usepackage{tcolorbox}
\tcbuselibrary{listings,breakable,skins,documentation,xparse}
\lstdefinestyle{Clst}{
literate=
{á}{{\'a}}1
{à}{{\`a }}1
{ã}{{\~a}}1
{é}{{\'e}}1
{ê}{{\^e}}1
{î}{{\^i}}1
{oe}{{\oe}}1
{í}{{\'i}}1
{ó}{{\'o}}1
{õ}{{\~o}}1
{ú}{{\'u}}1
{ü}{{\"u}}1
{ç}{{\c{c}}}1,
numbers=left,
numberstyle=\small,
numbersep=8pt,
frame = none,
language=C,
framexleftmargin=5pt, % la marge à gauche du code
% test pour améliorer la présentation du code
upquote=true,
columns=flexible,
basicstyle=\ttfamily,
basicstyle=\small, % ==> semble optimal \tiny est vraiment trop petit
% provoque une erreur texcsstyle=*\color{blue},
commentstyle=\color{green}, % comment style
keywordstyle=\color{blue}, % keyword style
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
showtabs=false, % show tabs within strings adding particular underscores
stringstyle=\color{cyan}, % string literal style
numbers=none,
tabsize=4,
% pour couper les lignes trop longues
breaklines,
breakindent=1.5em, %?indente?de?3?caracteres?vers?la?droite
escapechar=µ,% pour escape en latex
% pour l'encodage à l'intérieur des listing utf8 et latin1 ?????
% inputencoding=utf8/latin1,
morekeywords=[2]{ % j'ajoute une catégorie de mots-clés
%%% pour tri sur le 5ieme caractere
gtk_window_new,
gtk_window_set_title,
gtk_window_set_resizable,
gtk_window_get_resizable,
gtk_window_is_maximized,
gtk_window_maximize,
gtk_window_unmaximize,
gtk_window_fullscreen,
gtk_window_fullscreen_on_monitor,
gtk_window_unfullscreen,
%%%%%%%%%%%
gdk_rgba_parse,
gdk_rgba_parse,
gdk_rgba_parse,
gdk_rgba_parse,
% dernier sans la virgule
},
morekeywords=[3]{ %% j'ajoute une autre catégorie de mots-clés
%%% pour tri sur le 3ieme caractere
G_TYPE_NONE,
G_TYPE_INTERFACE,
G_TYPE_CHAR,
G_TYPE_UCHAR,
G_TYPE_BOOLEAN,
G_TYPE_INT,
G_TYPE_UINT,
G_TYPE_LONG,
% dernier sans la virgule
},
morekeywords=[4]{ %% j'ajoute une autre catégorie de mots-clés
%%% pour tri sur le 1er caractere
GtkSourceLanguageManager,
GtkSourceSmartHomeEndType,
GtkSourceMarkAttributes,
GtkSourceDrawSpacesFlags,
GtkSourceCompletion,
GtkSourceGutter,
GtkSourceBackgroundPatternType,
Container_set_border_width,
GtkSourceSearchContext,
GtkFileChooserAction,
gboolean,
%%%%%%
cairo_rectangle,
cairo_fill,
% dernier sans la virgule
},
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%Traitement des mots-clefs type gtk_xxxxx
keywordstyle=[2]\monstyleblue, %%%\color{blue}, % je leur donne une coloration spéciale ds le texte
%% Intégration dans l'index OK
moreindex={[1][keywords2]}, % ces mots-clés sont ajoutés à l'index?oui
%% gtk_xxxx trié par xxxx ca fonctionne sur tout l'index
indexstyle={[1]\indexgtk}, % par le biais de macro \indexgtk
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%Traitement des mots-clefs type g_xxxxx
keywordstyle=[3]\monstylegreen, %%%\color{green}, % je leur donne une coloration spéciale ds le texte
%% Intégration dans l'index OK
moreindex={[3][keywords3]}, % ces mots-clés sont ajoutés à l'index?oui
%% gtk_xxxx trié par xxxx ca fonctionne sur tout l'index
indexstyle={[3]\indexglib}, % par le biais de ma macro tri 3ieme
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%Traitement des mots-clefs type GtkSourceSmartHomeEndType
keywordstyle=[4]\monstylebrown, %%%\color{brown}, % je leur donne une coloration spéciale ds le texte
%% Intégration dans l'index OK
moreindex={[4][keywords4]}, % ces mots-clés sont ajoutés à l'index?oui
%% xxxx trié par xxxx ca fonctionne sur tout l'index
indexstyle={[4]\indextype}, % tri sur le mot entier
}
%---------------------------------------------------------------------------------------
%------------------------------ box dédié au code langage C ----------------------------
%---------------------------------------------------------------------------------------
\newtcblisting{Clisting}[2][]{empty,breakable,leftrule=5mm,left=2mm,
%frame style={fill,top color=red!75!black,bottom color=red!75!black,middle color=red},
frame style={fill,top color=green!75!black,bottom color=green!75!black,middle color=green},
listing only,
listing engine=listings,
listing options={style=Clst,tabsize=4,breaklines,
breakindent=1.5em,columns=fullflexible},
% keywordstyle=\color{red}},
colback=yellow!15!white,
% code for unbroken boxes:
frame code={\path[tcb fill frame] (frame.south west)--(frame.north west)
--([xshift=-5mm]frame.north east)--([yshift=-5mm]frame.north east)
--([yshift=5mm]frame.south east)--([xshift=-5mm]frame.south east)--cycle; },
interior code={\path[tcb fill interior] (interior.south west)--(interior.north west)
--([xshift=-4.8mm]interior.north east)--([yshift=-4.8mm]interior.north east)
--([yshift=4.8mm]interior.south east)--([xshift=-4.8mm]interior.south east)
--cycle; },
attach boxed title to top center={yshift=-2mm},
title=\fcolorbox{black}{black}{\color{red}{#2}},
% code for the first part of a break sequence:
skin first is subskin of={emptyfirst}{%
frame code={\path[tcb fill frame] (frame.south west)--(frame.north west)
--([xshift=-5mm]frame.north east)--([yshift=-5mm]frame.north east)
--(frame.south east)--cycle;
\path[coltria] ([xshift=2.5mm,yshift=1mm]frame.south west) -- +(120:2mm)
-- +(60:2mm)-- cycle; },
interior code={\path[tcb fill interior] (interior.south west|-frame.south)
--(interior.north west)--([xshift=-4.8mm]interior.north east)
--([yshift=-4.8mm]interior.north east)--(interior.south east|-frame.south)
--cycle; },
},%
% code for the middle part of a break sequence:
skin middle is subskin of={emptymiddle}{%
frame code={\path[tcb fill frame] (frame.south west)--(frame.north west)
--(frame.north east)--(frame.south east)--cycle;
\path[coltria] ([xshift=2.5mm,yshift=-1mm]frame.north west) -- +(240:2mm)
-- +(300:2mm) -- cycle;
\path[coltria] ([xshift=2.5mm,yshift=1mm]frame.south west) -- +(120:2mm)
-- +(60:2mm) -- cycle;
},
interior code={\path[tcb fill interior] (interior.south west|-frame.south)
--(interior.north west|-frame.north)--(interior.north east|-frame.north)
--(interior.south east|-frame.south)--cycle; },
},
% code for the last part of a break sequence:
skin last is subskin of={emptylast}{%
frame code={\path[tcb fill frame] (frame.south west)--(frame.north west)
--(frame.north east)--([yshift=5mm]frame.south east)
--([xshift=-5mm]frame.south east)--cycle;
\path[coltria] ([xshift=2.5mm,yshift=-1mm]frame.north west) -- +(240:2mm)
-- +(300:2mm) -- cycle;
},
interior code={\path[tcb fill interior] (interior.south west)
--(interior.north west|-frame.north)--(interior.north east|-frame.north)
--([yshift=4.8mm]interior.south east)--([xshift=-4.8mm]interior.south east)
--cycle; },#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% attention dans les 3 commandes ci-dessous l'activation simultanée de \marginpar{\scriptsize provoque une situation ingérable par latex
\newcommand{\monstylered}[1] % attention ici le 1 c'est un seul paramètre !!!!!
{\color{red}{\emph{#1}}
}
\newcommand{\monstyleblue}[1] % attention ici le 1 c'est un seul paramètre !!!!!
{\color{blue}{\emph{#1}}
}
\newcommand{\monstylebrown}[1] % attention ici le 1 c'est un seul paramètre !!!!!
{\color{brown}{\emph{#1}}
}
\newcommand{\monstylegreen}[1] % attention ici le 1 c'est un seul paramètre !!!!!
{\color{green}{\emph{#1}}
}
%----------------------- Fin Traitement des listing ------------------------------
% --------------------- Macros pour indexation des mots clefs --------------------
% macro pour fabriquer le fichier d'index
\usepackage{makeidx}
\makeindex
% fabrication de l'index
%makeindex mwe_clisting2.idx -s perso.ist
%---------------------------------------------------------------------------------
%%%%%% tri a partir du 5ieme element gtk_XXXX et couleur index blue
\makeatletter
\def\#indexgtk#i#1#2#3#4#5,{\index{#5#\monstyleblue{#1#2#3#4#5}}}
\def\indexgtk#1{\#indexgtk#i#1,}
\makeatother
%---------------------------------------------------------------------------------
%%%%% tri a partir du 3ieme element G_NONE et couleur index green
\makeatletter
\def\#indexglib#i#1#2#3,{\index{#3#\monstylegreen{#1#2#3}}}
\def\indexglib#1{\#indexglib#i#1,}
\makeatother
%%%%%% tri a partir du 1er element MANQUE MISE EN ITALIQUE et couleur index marron
\makeatletter
\def\#indextype#i#1,{\index{#1#\monstylebrown{#1}}}
\def\indextype#1{\#indextype#i#1,}
\makeatother
%---------------------------------------------------------------------------------------
\begin{document}
Voici l'étape qui a toute les chances de ne pas être lue au début mais plutôt quand on est dans une belle impasse. Croire qu'on va s'en sortir sans un minimum de méthode n'est pas viable dans le projet que je vous propose de suivre.
Aidez-moi à conjurer le mauvais sort, et lisez avec attention cette liste de recommandation qui relève du bon sens pratique du développeur expérimenté qu'il aurait aimé découvrir dès ses premiers pas.
\begin{Clisting} {fonction draw\_func}
void draw_func (GtkDrawingArea *da,
cairo_t *cr,
int width,
int height,
gpointer data)
{
GdkRGBA red, green, yellow, blue;
double w, h;
w = width / 2.0;
h = height / 2.0;
gdk_rgba_parse (&red, "red");
gdk_rgba_parse (&green, "green");
gdk_rgba_parse (&yellow, "yellow");
gdk_rgba_parse (&blue, "blue");
gdk_cairo_set_source_rgba (cr, &red);
cairo_rectangle (cr, 0, 0, w, h);
cairo_fill (cr);
gdk_cairo_set_source_rgba (cr, &green);
cairo_rectangle (cr, w, 0, w, h);
cairo_fill (cr);
gdk_cairo_set_source_rgba (cr, &yellow);
cairo_rectangle (cr, 0, h, w, h);
cairo_fill (cr);
gdk_cairo_set_source_rgba (cr, &blue);
cairo_rectangle (cr, w, h, w, h);
cairo_fill (cr);
}
...
gtk_drawing_area_set_draw_func (area, draw, NULL, NULL);
\end{Clisting}
\begin{Clisting}{here problem with accent}
gboolean TEST1 = TRUE
if (TEST1)
{
/** nouvel essai nouvelle méthode à tester **/
...
}
else
{
/** ancien bloc fonctionnel qui buggue **/
...
}
\end{Clisting}
\begin{Clisting}{Run ok with colorisation index}
gtk_window_new
gtk_window_set_title
gtk_window_set_resizable
gtk_window_get_resizable
gtk_window_is_maximized
gtk_window_maximize
gtk_window_unmaximize
gtk_window_fullscreen
gtk_window_fullscreen_on_monitor
gtk_window_unfullscreen
G_TYPE_NONE
G_TYPE_INTERFACE
G_TYPE_CHAR
G_TYPE_UCHAR
G_TYPE_BOOLEAN
G_TYPE_INT
G_TYPE_UINT
G_TYPE_LONG
GtkSourceLanguageManager
GtkSourceSmartHomeEndType
GtkSourceMarkAttributes
GtkSourceDrawSpacesFlags
GtkSourceCompletion
GtkSourceGutter
GtkSourceBackgroundPatternType
Container_set_border_width
GtkSourceSearchContext
GtkFileChooserAction
gboolean
\end{Clisting}
\printindex
\end{document}

Resources