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

Change name for figures and alike according to language #375

Open
L4ckadaisy opened this issue Feb 6, 2024 · 1 comment
Open

Change name for figures and alike according to language #375

L4ckadaisy opened this issue Feb 6, 2024 · 1 comment

Comments

@L4ckadaisy
Copy link

L4ckadaisy commented Feb 6, 2024

I can't figure out how to effectively change the language of my exported document, so that all elements are actually in the selected language.
If I set lang: it in the properties, I get \babelprovide[main,import]{italian} in the tex file, which I assume means that the language has been correctly set.

What I don't understand is why, despite this, i also find

\AtBeginDocument{%
\renewcommand*\figurename{Figure}
\renewcommand*\tablename{Table}
}
\AtBeginDocument{%
\renewcommand*\listfigurename{List of Figures}
\renewcommand*\listtablename{List of Tables}

which forces the naming of figures and tables to be set to the original english. I seem to gather that this output comes from the {caption} package.
If I delete these lines from the .tex exported file and compile that, the name for the figure changes correctly according to the set language (in my case "Figura", in italian, and not "Figure" anymore).

What is forcing this renewcommand, and how can I prevent it?

Thank you in advance

@L4ckadaisy
Copy link
Author

Nevermind, I figured out it wasn't due to {caption} but rather pandoc-crossref. Here I found the solution.

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

1 participant