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

Italian translation #85

Closed
VincentMVV opened this issue Mar 16, 2020 · 10 comments
Closed

Italian translation #85

VincentMVV opened this issue Mar 16, 2020 · 10 comments

Comments

@VincentMVV
Copy link

Hi,
I need to known if some kind of localization for ElegantBook, if possible define "IT" instead of "EN" in

\documentclass[lang=en]{elegantbook}

I would like use your template for a juridical work in italian, because it seems perfect for my project.

May you help me?

Many thanks

@EthanDeng
Copy link
Member

Did you try babel package under lang=en?

@EthanDeng
Copy link
Member

EthanDeng commented Mar 18, 2020

If you want to localize of all the prefix/name of ElegantBook completely, you can refer this \renewcommand list/settings under lang=en language mode in your preamble. I don't know Italian, so I can't translate for you.

\renewcommand\figref[1]{\textbf{Figure}~\ref{#1}}
\renewcommand\tabref[1]{\textbf{Table}~\ref{#1}}
\renewcommand{\chaptername}{Chapter \thechapter}
\renewcommand{\authorname}{\textbf{Author: }}
\renewcommand{\institutename}{\textbf{Institute: }}
\renewcommand{\datename}{\textbf{Date: }}
\renewcommand{\versionname}{\textbf{Version: }}
\renewcommand{\notename}{Note}
\renewcommand{\proofname}{Proof}
\renewcommand{\problemname}{Problem}
\renewcommand{\definitionname}{Definition}
\renewcommand{\theoremname}{Theorem}
\renewcommand{\axiomname}{Axiom}
\renewcommand{\postulatename}{Postulate}
\renewcommand{\lemmaname}{Lemma}
\renewcommand{\propositionname}{Proposition}
\renewcommand{\corollaryname}{Corollary}
\renewcommand{\examplename}{Example}
\renewcommand{\exercisename}{Exercise}
\renewcommand{\remarkname}{Remark}
\renewcommand{\assumptionname}{Assumption}
\renewcommand{\conclusionname}{Conclusion}
\renewcommand{\solutionname}{Solution}
\renewcommand{\propertyname}{Property}
\renewcommand{\introductionname}{Introduction}
\renewcommand{\problemsetname}{Exercise}
\renewcommand{\updatename}{Updates:}
\renewcommand{\historyname}{Version History}

@EthanDeng
Copy link
Member

I like Aurora's painting of supporting each other, may you and your country will be fine.

italian-china

@VincentMVV
Copy link
Author

Did you try babel package under lang=en?

Thank you for answering my question.Yes, I did and it works!

@VincentMVV
Copy link
Author

I like Aurora's painting of supporting each other, may you and your country will be fine.

italian-china

What a beautiful image, so rich in feeling. Thanks very much for the thought. The world is one!

@VincentMVV
Copy link
Author

If you want to localize of all the prefix/name of ElegantBook completely, you can refer this \renewcommand list/settings under lang=en language mode in your preamble. I don't know Italian, so I can't translate for you.

\renewcommand\figref[1]{\textbf{Figure}~\ref{#1}}
\renewcommand\tabref[1]{\textbf{Table}~\ref{#1}}
\renewcommand{\chaptername}{Chapter \thechapter}
\renewcommand{\authorname}{\textbf{Author: }}
\renewcommand{\institutename}{\textbf{Institute: }}
\renewcommand{\datename}{\textbf{Date: }}
\renewcommand{\versionname}{\textbf{Version: }}
\renewcommand{\notename}{Note}
\renewcommand{\proofname}{Proof}
\renewcommand{\problemname}{Problem}
\renewcommand{\definitionname}{Definition}
\renewcommand{\theoremname}{Theorem}
\renewcommand{\axiomname}{Axiom}
\renewcommand{\postulatename}{Postulate}
\renewcommand{\lemmaname}{Lemma}
\renewcommand{\propositionname}{Proposition}
\renewcommand{\corollaryname}{Corollary}
\renewcommand{\examplename}{Example}
\renewcommand{\exercisename}{Exercise}
\renewcommand{\remarkname}{Remark}
\renewcommand{\assumptionname}{Assumption}
\renewcommand{\conclusionname}{Conclusion}
\renewcommand{\solutionname}{Solution}
\renewcommand{\propertyname}{Property}
\renewcommand{\introductionname}{Introduction}
\renewcommand{\problemsetname}{Exercise}
\renewcommand{\updatename}{Updates:}
\renewcommand{\historyname}{Version History}

Can I send you my translation?

@VincentMVV
Copy link
Author

Here my translation (indent lines are the italian version)

%\renewcommand\figref[1]{\textbf{Figure}\ref{#1}}
\renewcommand\figref[1]{\textbf{Figura}
\ref{#1}}
%\renewcommand\tabref[1]{\textbf{Table}\ref{#1}}
\renewcommand\tabref[1]{\textbf{Tabella}
\ref{#1}}
%\renewcommand{\chaptername}{Chapter \thechapter}
\renewcommand{\chaptername}{Capitolo \thechapter}
%\renewcommand{\authorname}{\textbf{Author: }}
\renewcommand{\authorname}{\textbf{Autore: }}
%\renewcommand{\institutename}{\textbf{Institute: }}
\renewcommand{\institutename}{\textbf{Istituto: }}
%\renewcommand{\datename}{\textbf{Date: }}
\renewcommand{\datename}{\textbf{Data: }}
%\renewcommand{\versionname}{\textbf{Version: }}
\renewcommand{\versionname}{\textbf{Versione: }}
%\renewcommand{\notename}{Note}
\renewcommand{\notename}{Nota}
%\renewcommand{\proofname}{Proof}
\renewcommand{\proofname}{Dimostrazione}
%\renewcommand{\problemname}{Problem}
\renewcommand{\problemname}{Problema}
%\renewcommand{\definitionname}{Definition}
\renewcommand{\definitionname}{Definizione}
%\renewcommand{\theoremname}{Theorem}
\renewcommand{\theoremname}{Teorema}
%\renewcommand{\axiomname}{Axiom}
\renewcommand{\axiomname}{Assioma}
%\renewcommand{\postulatename}{Postulate}
\renewcommand{\postulatename}{Postulato}
%\renewcommand{\lemmaname}{Lemma}
\renewcommand{\lemmaname}{Lemma} %It's the same word
%\renewcommand{\propositionname}{Proposition}
\renewcommand{\propositionname}{Proposizione}
%\renewcommand{\corollaryname}{Corollary}
\renewcommand{\corollaryname}{Corollario}
%\renewcommand{\examplename}{Example}
\renewcommand{\examplename}{Esempio}
%\renewcommand{\exercisename}{Exercise}
\renewcommand{\exercisename}{Esercizio}
%\renewcommand{\remarkname}{Remark}
\renewcommand{\remarkname}{Commento} %doubtful translation, because it is a
%mathematical environment that I don't know
%\renewcommand{\assumptionname}{Assumption}
\renewcommand{\assumptionname}{Assunto}
%\renewcommand{\conclusionname}{Conclusion}
\renewcommand{\conclusionname}{Conclusione}
%\renewcommand{\solutionname}{Solution}
\renewcommand{\solutionname}{Soluzione}
%\renewcommand{\propertyname}{Property}
\renewcommand{\propertyname}{Proprietà}
%\renewcommand{\introductionname}{Introduction}
\renewcommand{\introductionname}{Introduzione}
%\renewcommand{\problemsetname}{Exercise}
\renewcommand{\problemsetname}{Esercizio}
%\renewcommand{\updatename}{Updates:}
\renewcommand{\updatename}{Aggiornamenti:}
%\renewcommand{\historyname}{Version History}
\renewcommand{\historyname}{Cronologia delle versioni}

@VincentMVV VincentMVV reopened this Mar 18, 2020
@EthanDeng
Copy link
Member

EthanDeng commented Mar 19, 2020

I add option of Italian with lang=it today, since next stable version will be released after several weeks or months, you can download the latest version of elegantbook.cls and replace your local elegantbook.cls file. I just add the translation which you provided, and add babel package with option italian, therefore, this option lang=it may have some other problems, you or other Italian are welcome to provide modifications by creating issues or pull requests for this option.

Here is some piece of code provided by Overleaf:

\documentclass[lang=it,math=newtx]{elegantbook}

\title{Best wishes}
\author{ddswhu}
\date{\today}

\begin{document}

\maketitle

\chapter{Test}
\section{Sezione introduttiva}
Questa è la prima sezione, possiamo aggiungere alcuni elementi aggiuntivi e tutto 
digitato correttamente. Inoltre, se una parola è troppo lunga e deve essere troncato 
babel cercherà per troncare correttamente a seconda della lingua.

\section{Teoremi Sezione}
Questa sezione è quello di vedere cosa succede con i comandi testo definendo

\[ \lim x =  \sin{\theta} + \max \{3.52, 4.22\} \]

\begin{property}
Questo è un breve riassunto dei contenuti del documento scritto in italiano.
\end{property}

\end{document}

The PDF looks like:
QQ截图20200319132544

@abfek66
Copy link

abfek66 commented May 13, 2020

This is the french translation , but still confusing the two commands below
\renewcommand{\exercisename}{Exercice}
\renewcommand{\problemsetname}{Exercice}

Elegant_booklang_fr.txt

@abfek66
Copy link

abfek66 commented May 13, 2020

\renewcommand\figref[1]{\textbf{Figure}\ref{#1}}
\renewcommand\tabref[1]{\textbf{Tableau}
\ref{#1}}
\renewcommand{\chaptername}{Chapitre \thechapter}
\renewcommand{\authorname}{\textbf{Auteur: }}
\renewcommand{\institutename}{\textbf{Institut: }}
\renewcommand{\datename}{\textbf{Date: }}
\renewcommand{\versionname}{\textbf{Version: }}
\renewcommand{\notename}{Note}
\renewcommand{\proofname}{Démonstration}
\renewcommand{\problemname}{Problème}
\renewcommand{\definitionname}{Définition}
\renewcommand{\theoremname}{Théorème}
\renewcommand{\axiomname}{Axiôme}
\renewcommand{\postulatename}{Postulat}
\renewcommand{\lemmaname}{Lemme}
\renewcommand{\propositionname}{Proposition}
\renewcommand{\corollaryname}{Corollaire}
\renewcommand{\examplename}{Exemple}
\renewcommand{\exercisename}{Exercice}
\renewcommand{\remarkname}{Remarque}
\renewcommand{\assumptionname}{Supposition}
\renewcommand{\conclusionname}{Conclusion}
\renewcommand{\solutionname}{Solution}
\renewcommand{\propertyname}{Propriété}
\renewcommand{\introductionname}{Introduction}
\renewcommand{\problemsetname}{Exercice}
\renewcommand{\updatename}{Mises à jour:}
\renewcommand{\historyname}{Historique des versions}

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