Questions tagged [french]

{french} is about typesetting and conventions relating to the French language.

Filter by
Sorted by
Tagged with
19 votes
4 answers
3k views

tikz declare function and babel french option

I would like to declare functions in tikz for multiple uses of the same function within the code. Sadly, it seems that the tikz "declare function" is not compatible with the french option in babel. ...
Stephan BATT's user avatar
70 votes
2 answers
15k views

Test if a package (or package option) is loaded

[french]{babel} (aka frenchb) is incompatible with some other packages, such as tikz, since it tries to insert \thinspace before semi-colons. In order to make these two play nice, you have to call \...
raphink's user avatar
  • 31.9k
38 votes
2 answers
2k views

Ensure minimal length of last line

This question led to a new feature in a package: impnattypo One rule in French typography is that the last line of a paragraph should not be shorter than the double of the indentation of the next ...
raphink's user avatar
  • 31.9k
47 votes
3 answers
7k views

French accents in \hl from soul package

I'd like to use the \hl command from the soul package in a French text. However, it does not work whenever the part to highlight contains French accents (e.g.: \hl{é}). I could use \'e instead of é (...
Zach's user avatar
  • 653
4 votes
2 answers
687 views

Keep lowercase in biblatex

I have a little issue, my bibliography (using Biblatex, biber) is written in upper case while I did note specified anything (I think), and I'm not happy with this. Here is a little example : \...
B_runo's user avatar
  • 115
18 votes
3 answers
7k views

Changing language back and forth with polyglossia

I'm using polyglossia and lualatex to compile my source, and I am switching languages back and forth inside my document. It looks like polyglossia (or myself), is not doing what it is supposed to do: ...
BigDawg's user avatar
  • 1,387
13 votes
2 answers
3k views

French section numbering using bis, ter, etc

I'm in the process of transcribing an old French engineering text (circa 1890) that uses a somewhat non-standard section numbering. As I am attempting to make a more-or-less verbatim copy, it is ...
grfrazee's user avatar
  • 969
21 votes
3 answers
3k views

French typography recommendations

This question led to a new package: impnattypo The French government publications office (Imprimerie Nationale) publishes a list of recommendations for French typography. I'm wondering how to ...
raphink's user avatar
  • 31.9k
14 votes
1 answer
629 views

Wrong spacing around guillemets

I use UTF-8 encoding to type a document in French, with the following definitions for guillemets: \DeclareUnicodeCharacter{AB}{\og} \DeclareUnicodeCharacter{BB}{\fg\xspace} and the Babel package: \...
F'x's user avatar
  • 3,011
7 votes
1 answer
2k views

Very strange biblatex style in french archeology

I have many problems with a bibliography style with biblatex. And excuse my english, I'm a French student. I would like a style like this: but after a lot of research I obtained: It is almost ...
4 votes
1 answer
451 views

Prevent line break before :

Here is my minimal code: \documentclass[12pt]{memoir} \usepackage{polyglossia} \setdefaultlanguage{french} \begin{document} Bonjour tout le monde. Si je vais au bout de la ligne, je vais avoir cela :...
Blacksad's user avatar
  • 263
3 votes
2 answers
2k views

TexLive 2015 - error when using "french" options with TexStudio

I am new in the LaTex world. I just installed yesterday Texlive 2015 et texstudio (last version) on my windows 10 computer. Everything seems to be working properly except for the template "Article{...
mailysmanu's user avatar
2 votes
1 answer
3k views

How to write directly French characters in Emacs and print them in LaTeX?

I am editing LaTeX with Emacs. I would like to write in French. At the moment I have to write special French characters for instance like this: \'e prints é. If I write directly é in Emacs, the ...
SoftTimur's user avatar
  • 19.8k
10 votes
1 answer
1k views

"in" untranslated for French incollection and article bibliography entries

Instead of showing the French word dans, BibLaTeX is putting in to introduce booktitles and journals. For example @incollection{rodgers99, Address = {London}, Author = {Roders, C.}, ...
jaimepapier's user avatar
9 votes
2 answers
3k views

Colon in bibliography keys incompatible with babel, biblatex and tex4ht

Keys are labeled as author:year in my BibTeX file. For example, @article{John:2000, author={John}, year={2000}, ...}. This scheme works well with pdftex, biblatex and mk4ht oolatex. But if in ...
n.r.'s user avatar
  • 4,952
9 votes
3 answers
914 views

xelatex + frenchb introduce extra spaces before some characters in lstlisting blocks

When using babel 'frenchb' with xelatex, spaces are introduced before colons and other characters. This is great for prose, but this is also being applied to code snippets. This yields an unacceptable ...
spacecolon's user avatar
5 votes
3 answers
985 views

How to get/suppress french spacing before punctuation in `\href`

Attention I have already a possible answer and will add it soon. I thought it would be useful to have a solution about it on the site. (Other answers are naturally welcome too). Question How to ...
Ulrike Fischer's user avatar
4 votes
1 answer
348 views

prettyref bug when used with babel-french

I'm writting in French so I use babel. I'd like to use prettyref to keep from writting "Section" and co. The problem is that I can not use it with French babel. It throws me: ! Paragraph ended ...
etienne-monier's user avatar
3 votes
1 answer
403 views

Obtaining babel-french automatic spaces before punctuation when using pandoc

I'm trying to get pandoc (which converts Markdown to PDF using LaTeX) to produce PDFs which respect French typesetting rules concerning non-breakable spaces. The suggestions here do not seem to work, ...
user3078439's user avatar
3 votes
1 answer
325 views

French spacing disappears within commands

I am preparing a document in French, using the "babel" package with option "french" and using commands that include colons and semicolons. My problem is, the French spacing before colons and ...
Rpy's user avatar
  • 133
31 votes
3 answers
86k views

How to type French character in LaTeX

I would like to insert "ç". Tried including \usepackage[utf8]{inputenc}, and type \c {c} , but doesn't work.
user16739's user avatar
  • 717
29 votes
1 answer
3k views

microtype and french typography

In french, we put spaces before characters : ! ; ? when we type the text. For instance, we will type Que fait-on ? On met un espace avant les deux points : comme cela. If I do so and use microtype, ...
Colas's user avatar
  • 6,782
26 votes
3 answers
10k views

How to suppress the space before the colon, in French language?

I would like to suppress the space before the colon, when using [french]babel. I only want to change this locally (that is not everywhere in the document, but just at some place). \documentclass{...
Colas's user avatar
  • 6,782
16 votes
2 answers
352 views

How can I avoid AUCTeX wrongly inferring the language of a document?

A colleague using a class I wrote reports that AUCTeX is inserting guillemets when he hits the double-quote key. Investigation showed that TeX-language-fr-hook is being called even though the document ...
Silvio Levy's user avatar
12 votes
3 answers
21k views

How can I install Kile 2.1.0 spellcheck libraries other than English?

I need a french dictionary. At least, it would be nice to have any information on the location where kile stores its spell-checking dictionaries.
Ivan's user avatar
  • 221
12 votes
1 answer
820 views

babel, frenchb and em dash

If I'm not wrong, in French the em-dashes, typeset with --- in LaTeX, are usually treated like the guillemets as far as non-breaking spaces go. An "opening" em-dash must be followed by a non-breaking ...
raphink's user avatar
  • 31.9k
12 votes
3 answers
392 views

Why does the package babel[french] destroy \@for loops?

Why does this minimal example code: \documentclass{article} \usepackage[francais]{babel} \begin{document} \def\names{Toto,Titi,Tete,Tutu} \makeatletter \@for\next:=\names\do{\textbf{\next} } \...
Cristo's user avatar
  • 647
12 votes
4 answers
9k views

No hyphenation patterns were preloaded

I have a problem with a document I'm writing and I found no suitable response to my problem: Package babel Warning: No hyphenation patterns were preloaded for (babel) the language `...
Lerenn's user avatar
  • 251
11 votes
1 answer
457 views

Tikzmark and french seem to conflict

I just discovered tikzmark thanks to the blog, and it sounds really promising. I downloaded the files from CTAN and put tikzlibrarytikzmark.code.tex and tikzmarklibrarylistings.code.tex in the same ...
Christoph B.'s user avatar
  • 1,901
10 votes
2 answers
11k views

Bibliography .bib encoding utf8 (french) accents

I am trying to use a bibliography for a my latex report. I am using a .bib file named bibli with articles written in french (so the titles have accents like é or ô). At the beginning of my .tex file I ...
etienne's user avatar
  • 479
8 votes
3 answers
1k views

Right-aligned line-break with long verses in verse

I'm happily using the verse environment to typeset French poetry. However, I'm unsatisfied with the behavior of long-line breaks (when the verse is too long to fit on the page). The verse behavior is ...
Jocelyn delalande's user avatar
7 votes
3 answers
6k views

How can I define bullet style for itemize with french option babel?

I would like to use itemize environment with the bullet style before each item. I found out that the french option with the babel package seems to define the dash style for the itemize environment. It ...
Ludovic C.'s user avatar
  • 8,898
7 votes
2 answers
10k views

Renew command \makelettertitle in moderncv

I want to modify the command \makelettertitle of the package moderncv so that I can have a heading in French style, that is, my data on the left, then below in 2 colums a "formule de politesse" on ...
Álvaro's user avatar
  • 1,210
6 votes
1 answer
2k views

Removing spaces before command

When using French guillemets with TeX4HT, the resulting symbols are not followed/preceded by non-breaking spaces like they should, resulting in wrong line-breaking in HTML. I tried resetting \og and \...
raphink's user avatar
  • 31.9k
6 votes
2 answers
305 views

catoptions destroys french active characters ! and :

A user of my menukeys package reported, that there’s an issue with the activ characters in french, i.e. !, ;, ? and :. I found out that it’s not a bug in menukeys but catoptions seems to interferre ...
Tobi's user avatar
  • 56.4k
6 votes
1 answer
749 views

Equation spacing issue with fleqn (amsmath) and frenchb (Babel)

This is a follow-up to this question. Here is an exemple of the code I wrote to add a light gray background to important equations: \documentclass{article} \usepackage[fleqn]{amsmath} % \usepackage[...
M. Toya's user avatar
  • 3,227
5 votes
1 answer
605 views

Is there a way to add accented characters support to the QRcode package?

Is there a way to add accented characters support to the qrcode package ? \documentclass[french]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \...
SDrolet's user avatar
  • 4,908
5 votes
1 answer
695 views

french: Add \usepackage{fontspec} to the preamble of your document

Consider the input \documentclass{article} \usepackage{fontspec} \usepackage[french,main=american]{babel} % \usepackage{fontspec}%%% Doesn't matter where you use fontspec \begin{document} Nothing. \...
user avatar
5 votes
1 answer
1k views

efrench vs frenchb

What are the differences between efrench and frenchb? Are they compatible with one another (for example the use of \og and fg in frenchb)? Why is efrench not in TeXLive even though its documentation ...
raphink's user avatar
  • 31.9k
5 votes
3 answers
6k views

French babel trouble: 1\ier{}, 2\ieme{}, etc

I'm having an issue with French babel. Whenever I use any of the 1\ier{}, 2\ieme{} and so on constructs (to obtain 1er, 2e, etc.), the spacing following it behaves very strangely. So, for example, if ...
landroni's user avatar
  • 1,333
5 votes
3 answers
2k views

French math style with default font

Edit: Okay, I found it, just needed more focus on the related entry. The package mathastext called with the frenchmath option does the job. The time for my first question to stackexchange could have ...
Idl's user avatar
  • 51
5 votes
1 answer
470 views

Conflicts with Datatool and babel (french)

I am having trouble compiling a latex document using an external CSV file with datatool and using the french language from the babel package. The content of my latex file is: \documentclass[...
David's user avatar
  • 213
4 votes
1 answer
417 views

Error in some rare circumstances: babel with french option after listings, active character in moving argument, code in listing across pages

Edit: I have edited my question which initially wrongly focused on labels. This question is related to Code in \lstlisting breaks document (compile error). Let us consider the following MWE: \...
Denis Bitouzé's user avatar
3 votes
1 answer
1k views

Using inputs both in utf8 and latin1

Issue I am writing a document in utf8 but I have to include some files encoded in ISO-8859 which are crashing my build. Indeed, I am using [utf8]{inputenc} which works great for all my files but does ...
Akaizoku's user avatar
  • 608
3 votes
1 answer
3k views

Package inputenc Error: Unicode char ⁠ (U+2060)(inputenc) not set up for use with LaTeX

To write French in my Latex documents, I've added "\usepackage[utf8]{inputenc}" to the preamble. This statement prints the following error in different parts of the log file: Package inputenc Error:...
Nasreddine's user avatar
3 votes
3 answers
13k views

How to convert UTF-8 to latin-1 on the fly?

I have my whole latex document which is encoded in latin-1. Also, the documentclass provided by my institution is designed to use latin-1. I write in french. I wish to use .bib files created by ...
jul059's user avatar
  • 313
2 votes
1 answer
68 views

Parts broken in TOC with Polyglossia / French

I'm trying to remove "Première Partie" from the TOC, I just would like the part title. It works well if I remove polyglossia, but I need it for Asian languages in my document. Minimal example: \...
Blacksad's user avatar
  • 263
2 votes
1 answer
931 views

How to write in French script mt font

How can I print an output in French Script MT font style using LaTex, what is the package to use? Thank you in advance.
macpee's user avatar
  • 291
2 votes
0 answers
1k views

TeXStudio: disable internal shortcut (Ctrl+Alt+X) [closed]

I'm using a french keyboard with a bepo layout which makes great use of the AltGr key modifier. Unfortunately, some of TeXStudio's shortcuts use the Ctrl+Alt modifier. I managed to disable almost all ...
user avatar
2 votes
2 answers
634 views

KOMA-Script and \captionformat

I am using the class scrartcl to set an article which includes figures. I want the figures to have arbitrary titles, without a "Figure n:" in front of them. According to the KOMA-Script manual, I ...
Ben Brewster's user avatar