Règles de syntaxe | Des exemples | Les principaux types et champs BibTeX | En savoir plus |
condition sur la valeur du champ $type de BibTeX :Quelques exemples
condition négative :
condition sur le champ YEAR et AUTHOR :
condition sur l'absence d'un champ :
condition sur le champ TITLE :
condition pour avoir les références pour lesquelles
Dupont est le premier auteur
Recherche des références dont le titre commence
par un 'C' suivi d'un blanc:
Recherche des références dont le titre
inclut 'C++', suivi d'un blanc:
Recherche sur des champs qui peuvent
avoir été abrégés dans les fichiers
source BibTeX:
Ceci est un extrait commenté de ftp://ftp.tex.ac.uk/ctan/tex-archive/documentation/bibtex.hlp: ne figurent ici que les plus usuels.
and
c2 (or c1 &
c2) ;
or
c2 (or c1 |
c2);
not
c (or
!
c) ;
exists
f
(or ?
f) where f is a field name ;
$key
which corresponds to the key of
an entry.
$type
which corresponds to the type
of an entry (Article, InProceedings, etc.)
$^.*+?[]
matches itself, see
Table 1 for the meaning of the special characters.
.
matches any character except newline [..]
character set; ranges are denoted with -
, as in[a-z]
; an initial^
, as in[^0-9]
, complements the set^
matches the beginning of the string matched $
matches the end of the string matched \b
matches word boundaries \
quotes special characters regexp *
matches regexp zero, one or several times regexp +
matches regexp one or several times regexp ?
matches regexp once or not at all regexp1 \|
regexp2alternative between two regular expressions, this operator has low priority against *
,+
and?
\(
regexp\)
grouping regular expression
Table 1: Syntax of regular expressions
Cond ® Cond and
Cond | Condor
Cond |not
Cond |exists
IdCond ® Cond &
Cond | Cond|
Cond |!
Cond |?
Id| Expr Comp Expr | Expr :
String |(
Cond)
Comp ® =
|>
|<
|>=
|<=
|<>
Expr ® Id | String | Int | $key
|$type
Id ® [ a
-z
A
-Z
]+String ® "
([^"\
] |\"
|\\
)*"
|'
([^'\
] |\'
|\\
)*'
Integer ® [ 0
-9
]+
Table 2: Syntax of conditions
Copyright © INRA 2014 | Mentions légales