diff --git a/README.md b/README.md index 973690d..6e3b0ca 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,20 @@ yarn add latex.css Add any optional classnames to elements with special styles (author subtitle, abstract, lemmas, theorems, etc.). A list of supported class-based elements can be found [here](https://latex.now.sh/#class-based-elements). +## Languages + +The labels of theorems, definitions, lemmas and proofs can be changed to other [supported languages](lang) by including the following snippet in addition to the main CSS file. + +```html + +``` + +and changing the html `lang` attribute: + +```html + +``` + ## Contributing Contributions, feedback and issues are welcome. Feel free to fork, comment, critique, or submit a pull request. diff --git a/lang/es.css b/lang/es.css new file mode 100644 index 0000000..00598bd --- /dev/null +++ b/lang/es.css @@ -0,0 +1,4 @@ +:lang(es) .theorem::before { content: 'Teorema ' counter(theorem) '. ' !important; } +:lang(es) .lemma::before { content: 'Lema ' counter(theorem) '. ' !important; } +:lang(es) .proof::before { content: 'Demostración. ' attr(title) !important; } +:lang(es) .definition::before { content: 'Definición ' counter(definition) '. ' !important; }