this is obsolete doc -- see instead

LaTeX tips & tricks 


Base preamble 

If your GUI is LyX you might want to start with this to disable the automatic date, 



Then it's good to enable Babel for spell checking and hyphenation. Csquotes is also recommended for use with Biblatex. The default language is the last one mentioned, here french. 



Change the text for the Bibliography heading according to your taste and language e.g., 

\renewcommand\refname{Enquête et bibliographie


Biblatex tricks 

Enable Biblatex with the traditional style (full citation in body or footnote and some limited loc/op cit capabilities), 




Note. stick with biber if you are using LyX and you've set it up in Tools > Options. change to bibtex8 if you are using TexWorks otherwise you'll end up with an error (as far Miktex 2.9 is concerned). 

Note. language=auto to also handle idem entries with babel. 

Note. sorting=nyt only works (and is the default) with biber processor, not with bibtex8. 

Note. maxbibnames to print all authors, disable short name list in the citation. 

Note. citepages=seperate as with verbose-* styles, this allows to show both: total pages and the `esp.' page. 


Don't forget to load your bibliography, better soon than never, 



Since Lyx 2.1 and a local layout script I could work around that trick, but I prefer to keep using it, 



Put the first name first, 



Change the delimiter from '. ' to ', ', 



Print Ibidem in italics, 



Suppress 'in: ' for journals and co., 




Define a macro \mkbiblege analogous to \mkbibparens to wrap text in < and >, 




Adapt the bibliography strings according to your taste and language, 


urlseen = {consulté le}, 

  url = {en ligne},
idem = {Idem},
idemsm = {Idem},
idemsf = {Eadem},
idemsn = {Idem},
idempm = {Eidem},
idempf = {Eaedem},
idempn = {Eadem},
idempp = {Eidem},
ibidem = {Ibid\adddot},
opcit = {op\adddotspace cit\adddot},
loccit = {loc\adddotspace cit\adddot},


Remove parenthesis made by footcite in a footnote, 

    {\blx@warning{Nested notes}%
     \addspace{#2}}% this was: \addspace\mkbibparens{#2}}



Other tricks 

Use a smaller and lighter font size for URLs and DOIs footnotes versus body, add this to the preamble, 


Note. An alternative would be to use some of those or to use the `resize' package, 



To remove the text on figures, add this to the preamble, 



Advanced footnote layout 

You can further configure the footnote layout with the footmisc package e.g., 


Note. It is tricky to make it work with babel so here it goes all in all, 


Note. For having raggedright footnotes you might add, 


Note. And to prevent a footnote to spread on several pages you might want to force it on the same page, 


Note. Finally if you need to enable the hyperref package but want to exclude the footnotes, 



In the previous example, english is activated by default although it may not be an english document. It is needed to get the footnote right, and you need to switch to french manually. Start the document with, 

(ERT) \selectlanguage{frenchb}


An alternative to the to handle multiple footnotes would be, 




Incompatibility between footmisc-option multiple and hyperref: 


MWE tricks 

To show the text body AND the footnote next to each other, push the text to the bottom with, 



\vspace after \vfill ignored: 

Why are URLs typeset with monospace fonts by default?: 

What is \null and when do we need to use it?: 


To check margins and text layout you could also add this in the preamble, 


and this in the body, 


Note. optional argument '1' here for just one paragraph, otherwise the default occupies more than one page. 


Bibtex / Natbib tricks 

Get rid of the numbering of the 'plain' or 'plainnat' Bibtex styles, 



bibentry package 

To configure Natbib with the bibentry package, configure Natbib as usual and add this preamble to the document, 


you should now be able to insert complete references by doing, 

  (ERT) \bibentry{clé


Bibtex / Jurabib tricks 

Choose a Jurabib style among: jox, jurabib, juraeco or jurunsrt. 


Add this preamble e.g., 

%Replaces recurring authors name(s) by a dash
%removes bold author name


\renewcommand{\bibansep}{, }
\renewcommand{\bibatsep}{, }
\renewcommand{\bibbdsep}{, }

Note. The 'super' option allows you to use complete references in footnotes with just \cite (default button in LyX). 

Note. The 'lookat' option which points to another note on a previous page conflicts with some documents types. And I prefer the classical ibid style anyway. 


Only problem with Jurabib (apart from the fact that it isn't maintained anymore): it doesn't handle internationalized bibliographies. 


Bibtex / Babelbib tricks 

(FR) Copiez 'C:\Program Files\MiKTeX 2.9\bibtex\bst\babamspl.bst' sur le bureau puis renommez le en 'babamspl-custom.bst' afin d'en retirer tous les appels à la fonction 'format.language' ainsi que, facultativement, la fonction elle-même. Cela désactive l'indication de la langue de l'ouvrage à la fin de chaque entrée bibliographique (elle est affichée si différente de la langue principale du document). 


You can also use the Bibtex Babelbib style for internationalized bibliography, 



In the bib file, 

  Language                 = {french},


  Language                 = {english},

Note. in e.g. the title entry, do not place a space before colons (or only in the languages that need one, eventually), those will be added if non-english entry. 


You will notice that hyphenation and colons are placed adequately depending on the bib entry language parameter. 


Ref. Multilingual bibliographies: The babelbib package: 


Additional notes 


The first paragraph's identation depends on the default language, (enabled for french, disabled for english), so it is automatic and you shouldn't use it. If you really want to force that identation when it doesn't happen (e.g. english language), 



(FR) Nota. Si vous souhaitez faire apparaître des éléments indépendants dans la table des matières (et non pas si vous souhaitez simplement retirer les numéros aux chapitres, auquel cas je vous invite simplement à suivre la procédure décrite plus haut au sujet de la configuration de la numérotation), 


  \addcontentsline{toc}{chapter}{\protect\numberline{}Introduction générale} 




For verbose-* styles that do note-style (page) referencing in the footnotes (I do not use those), make sure it is enabled in the biblatex options, 



Global references 

Index of /LaTeX/cours: 


Getting to Grips with LaTeX: 

\pagebreak vs \newpage: 

LaTeX/Paragraph Formatting: 


References about document types 

Why should I *not* use the KOMA-Script classes?: 


References about footnotes 

LaTeX Footnotes: 

LaTeX footnotes: 

LaTeX/Footnotes and Margin Notes: 

Multiple footnotes at one point: 

comma delineation of consecutive endnotes: 


3.2. Footnotes, endnotes, and marginals: 


Change line spacing for footnote text only: 


References about packages 

hyphenat – Disable/enable hypenation: 


References about endnotes 


Customize endnotes: