
Eu uso biblatex
e o estilo authoryear
. Eu uso o comando \textcite
para fazer citações no texto. Atualmente \textcite
produz algo como:
Mas eu gostaria de colocá-lo em itálico (incluindo parênteses), assim:
Estou ciente desta postagem semelhanteComo definir citações no texto em itálico?No entanto, ele se concentra em \cite
e \parencite
, mas não \textcite
.
Meu MWE:
\documentclass{article}
\usepackage[french]{babel}
\usepackage[
backend=biber,
natbib=true,
bibencoding=utf8,
style=authoryear,
sorting=nyt,
maxcitenames=2,
giveninits=true,
uniquename=init]{biblatex}
% Because of the use of the french option of babel with biblatex, all names are in uppercase. This revert to lowercase except the first letter of the names.
\DefineBibliographyExtras{french}{\restorecommand\mkbibnamefamily}
\addbibresource{biblatex-examples.bib}
\begin{document}
\textcite{cicero}
\printbibliography[
title={Bibliographie},
]
\end{document}
Responder1
Você pode usar a mesma abordagem das perguntas e respostas vinculadas. Copie a definição do \textcite
seu estilo (neste casoauthoryear.cbx
, ll. 126-137 na v3.18b) e adicione um \mkbibemph
ao código do wrapper.
\documentclass{article}
\usepackage[french]{babel}
\usepackage[
backend=biber,
style=authoryear,
maxcitenames=2,
giveninits=true,
uniquename=init,
]{biblatex}
\DefineBibliographyExtras{french}{\restorecommand\mkbibnamefamily}
\DeclareCiteCommand{\textcite}[\mkbibemph]
{\boolfalse{cbx:parens}}
{\usebibmacro{citeindex}%
\iffirstcitekey
{\setcounter{textcitetotal}{1}}
{\stepcounter{textcitetotal}%
\textcitedelim}%
\usebibmacro{textcite}}
{\ifbool{cbx:parens}
{\bibcloseparen\global\boolfalse{cbx:parens}}
{}}
{\usebibmacro{textcite:postnote}}
\addbibresource{biblatex-examples.bib}
\begin{document}
\textcite{cicero}
\printbibliography[
title={Bibliographie},
]
\end{document}
Observe que a definição \textcite
depende do estilo. \textcite
A implementação de é um pouco mais complexa em estilos mais complexos. A abordagem geral ainda funcionará, mas pode precisar ser um pouco ajustada.