Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

There's small choice in rotten apples. -- William Shakespeare, "The Taming of the Shrew"


comp / comp.text.tex / Re: fancyhdr and babel

SubjectAuthor
* fancyhdr and babelFrançois Patte
`* Re: fancyhdr and babelPieter van Oostrum
 `- Re: fancyhdr and babelFrançois Patte

1
Subject: fancyhdr and babel
From: François Patte
Newsgroups: comp.text.tex
Organization: A noiseless patient Spider
Date: Sat, 11 Jan 2025 11:32 UTC
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: francois.patte@mi.parisdescartes.fr (François Patte)
Newsgroups: comp.text.tex
Subject: fancyhdr and babel
Date: Sat, 11 Jan 2025 12:32:44 +0100
Organization: A noiseless patient Spider
Lines: 69
Message-ID: <vltkst$jjbg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 11 Jan 2025 12:32:46 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d62eff4ff756a59654f18b13e8a314b6";
logging-data="642416"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+i0weU8f04kt80iQwjhIwV"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:xHOd6SLRMqdmsMx8+TNqlEBzzv8=
Content-Language: en-GB, en-US
View all headers

Bonjour,

I try to write a bilingual document (french and sanskrit). Defining an
environment to have the sanskrit text in devanagari script, this one
modify the fancyhdr configuration and I don't understand why.

Here is a minimal (I hope) working example:

<-----------------------------------------MWE
documentclass[a4paper,11pt,twoside]{report}
\usepackage{fontspec}

\newenvironment{velthuisdev}{%
\selectlanguage{sanskrit}%
\newfontfamily\fontdev[%
Mapping=velthuis-sanskrit,%
Script=Devanagari,%
UprightFeatures={Language=Sanskrit},%
AutoFakeSlant=0.2,%
WordSpace=1.2,%
]{%
FreeSerif%
}%
\fontdev%
}%
{\selectlanguage{french}}

\setmainfont{FreeSerif}[%
Mapping=tex-text,%
] \usepackage[sanskrit,french,provide+=*]{babel}
\usepackage{datetime}
\renewcommand{\timeseparator}{:~}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}%
\fancyfoot[LO,RE]{%
\tiny\today~--~\currenttime%
}
\usepackage{lipsum}

\begin{document}
\lipsum[1]
\newpage
\begin{velthuisdev}
\lipsum[2]
\end{velthuisdev}
\newpage
\lipsum[3]
\end{document}
-----------------------------------------------------------> MWE

Once I use the velthuisdev environment, the fancyfoot configuration does
not diplay the date but: ?today? on the following pages...

I tried what is suggested by babel style:
Package babel Warning: \today not set for 'french'. Please,
(babel) define it after the language has been loaded
(babel) (typically in the preamble) with:
(babel) \setlocalecaption{french}{today}{..}

without any success!

Why? What is wrong in my environment definition and how can I change this?

Thank you.

F.P.

Subject: Re: fancyhdr and babel
From: Pieter van Oostrum
Newsgroups: comp.text.tex
Date: Sat, 11 Jan 2025 16:32 UTC
References: 1
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pieter-l@vanoostrum.org (Pieter van Oostrum)
Newsgroups: comp.text.tex
Subject: Re: fancyhdr and babel
Date: Sat, 11 Jan 2025 17:32:23 +0100
Lines: 32
Message-ID: <m28qrhs44o.fsf@cochabamba.home>
References: <vltkst$jjbg$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net +tTelJUoX+uAQkge5y9teQUJevi0doMqS2xGC0EJ7LH72bMnW3
Cancel-Lock: sha1:AiCibURK/4muKLCNK779sMGsED4= sha1:Nzw8OB/5aG0gdrNSU1t3nD/4ovE= sha256:aPs3lbWiLqY7W+ZlIRpL+YnGEu3VMowMTuxTqD5IoXA=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
View all headers

François Patte <francois.patte@mi.parisdescartes.fr> writes:

> Bonjour,
>
> I try to write a bilingual document (french and sanskrit). Defining an
> environment to have the sanskrit text in devanagari script, this one
> modify the fancyhdr configuration and I don't understand why.
>
> Here is a minimal (I hope) working example:
[snip]
> Once I use the velthuisdev environment, the fancyfoot configuration does
> not diplay the date but: ?today? on the following pages...
>
> I tried what is suggested by babel style:
> Package babel Warning: \today not set for 'french'. Please,
> (babel) define it after the language has been loaded
> (babel) (typically in the preamble) with:
> (babel) \setlocalecaption{french}{today}{..}
>
> without any success!
>
> Why? What is wrong in my environment definition and how can I change this?
>

I tried this document, and it just works (compiled with xelatex). And in the footer there is 11 janvier 2025 on all pages even after the sanskrit text.

Also I don't get the babel warning.
So maybe something need to be updated in your LaTeX installation.
--
Pieter van Oostrum <pieter@vanoostrum.org>
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]

Subject: Re: fancyhdr and babel
From: François Patte
Newsgroups: comp.text.tex
Organization: A noiseless patient Spider
Date: Sat, 11 Jan 2025 17:33 UTC
References: 1 2
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: francois.patte@mi.parisdescartes.fr (François Patte)
Newsgroups: comp.text.tex
Subject: Re: fancyhdr and babel
Date: Sat, 11 Jan 2025 18:33:43 +0100
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <401e2fd9-205d-4c67-92b6-8d2807e435ea@mi.parisdescartes.fr>
References: <vltkst$jjbg$1@dont-email.me> <m28qrhs44o.fsf@cochabamba.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 11 Jan 2025 18:33:44 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d62eff4ff756a59654f18b13e8a314b6";
logging-data="765081"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gExss+oCsozniP5Ohv4IC"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hP4H0ezzGsoSR/+osob2i4Rpa6s=
In-Reply-To: <m28qrhs44o.fsf@cochabamba.home>
Content-Language: en-GB, en-US
View all headers

Le 11/01/2025 à 17:32, Pieter van Oostrum a écrit :
> François Patte <francois.patte@mi.parisdescartes.fr> writes:
>
>> Bonjour,
>>
>> I try to write a bilingual document (french and sanskrit). Defining an
>> environment to have the sanskrit text in devanagari script, this one
>> modify the fancyhdr configuration and I don't understand why.
>>
>> Here is a minimal (I hope) working example:
> [snip]
>> Once I use the velthuisdev environment, the fancyfoot configuration does
>> not diplay the date but: ?today? on the following pages...
>>
>> I tried what is suggested by babel style:
>> Package babel Warning: \today not set for 'french'. Please,
>> (babel) define it after the language has been loaded
>> (babel) (typically in the preamble) with:
>> (babel) \setlocalecaption{french}{today}{..}
>>
>> without any success!
>>
>> Why? What is wrong in my environment definition and how can I change this?
>>
>
> I tried this document, and it just works (compiled with xelatex). And in the footer there is 11 janvier 2025 on all pages even after the sanskrit text.
>
> Also I don't get the babel warning.
> So maybe something need to be updated in your LaTeX installation.

Thank you for answering. You are right, I just updated my texlive and
babel has changed on 01/01/2025 and fancyhdr on 06/01/2025!

Thank you.

F.P.

1

rocksolid light 0.9.8
clearnet tor