jinwen-xu / crefthe Goto Github PK
View Code? Open in Web Editor NEWCross referencing with proper definite articles and declensions
Home Page: https://ctan.org/pkg/crefthe
License: LaTeX Project Public License v1.3c
Cross referencing with proper definite articles and declensions
Home Page: https://ctan.org/pkg/crefthe
License: LaTeX Project Public License v1.3c
Is there a way to use articles with apostrophes? For instance, in French, I tried using
\crefthename{equation}[l']{équation}[les]{équations}
in order to use \crefthe
with an equation. However, this inserts a space between l'
and équation
givint l' équation
while I'd like l'équation
. Is there a way to remove it?
The following MCE fails to compile because a patch failed (BTW, a more meaningful error message would be welcome 😄)
\documentclass[french]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{crefthe}
\usepackage{cleveref}
\crefname{theorem}{le théorème}{les théorèmes}
\crefname{proposition}{la proposition}{les propositions}
\crefthename{theorem}[le]{théorème}[les]{théorèmes}
\crefthename{proposition}[la]{proposition}[les]{propositions}
\newtheorem{theorem}{Théorème}
\newtheorem{proposition}{Proposition}
\begin{document}
\begin{theo}\label{thm1}
Foo
\end{theo}
\begin{theo}\label{thm2}
Bar
\end{theo}
\begin{proposition}\label{prop3}
Baz
\end{proposition}
On peut le déduire de \cref{thm1,thm2,prop3}.
On peut le déduire \crefthe[de]{thm1,thm2,prop3}.
\end{document}
Here is my File List
article.cls 2021/10/04 v1.4n Standard LaTeX document class
size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
fontenc.sty
t1lmr.fd 2015/05/01 v1.6.1 Font defs for Latin Modern
babel.sty 2022/04/30 3.74 The Babel package
french.ldf 2022/04/18 v3.5n French support from the babel system
scalefnt.sty
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
crefthe.sty 2022/04/24 Cross referencing with proper definite articles
l3keys2e.sty 2022-01-12 LaTeX2e option processing using LaTeX3 keys
expl3.sty 2022-05-04 L3 programming layer (loader)
l3backend-luatex.def 2022-04-20 L3 backend support: PDF output (LuaTeX)
cleveref.sty 2018/03/27 v0.21.4 Intelligent cross-referencing
regexpatch.sty 2021/03/21 v0.2f Extending etoolbox patching commands
xparse.sty 2022-01-12 L3 Experimental document command parser
ts1cmr.fd 2019/12/16 v2.5j Standard LaTeX font definitions
***********
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.