Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Please i'd like to display the month in French in the pdf, have you an idea ?

@Misc{url-site,
  key =      {site},
  title =    {\textit{site}},
  month = jun,
  year = {2012},
  howpublished = {URL: \texttt{http://www. a web site.com/}}

}

It displays June, but I'd like Juin

share|improve this question
    
i'm beginner with latex.. yes i have load babel –  researcher Sep 6 '12 at 17:02
2  
@MarcoDaniel biblatex supports misc as a 'fall back' type, but with a more general set of fields supported. –  Joseph Wright Sep 6 '12 at 17:03
    
i have already set the code in my question that's it –  researcher Sep 6 '12 at 17:05
    
\begin{document} text \cite{url-site} \end{document} –  researcher Sep 6 '12 at 17:09
    
@JosephWright: You can delete your comment. Researcher wasted our time because he wasn't able to read the site: "minimal working example (MWE)" and so biblatex has no relevance here. –  Marco Daniel Sep 6 '12 at 17:57
add comment

2 Answers

up vote 6 down vote accepted

You don't indicate which bibliography style file you use, so I'll assume that it's the "default" file, viz., plain.bst. If so, the problem you're facing is that this file contains the instruction

MACRO {jun} {"June"}

Thus, the string "jun" in your bib file will be typeset as "June" unless there's an explicit override. You can provide this override by inserting the instruction

@string{ jun = "Juin" }

at the top of your bib file.

Separately, I'd also recommend that you change the line

howpublished = {URL: \texttt{http://www.awebsite.com/}}

to

howpublished = {URL: \url{http://www.awebsite.com/}}

and load the url package (which provides the command \url). The advantage of taking this approach is that the url package can (almost) always choose a suitable line break for long and complicated url strings, letting you avoid massively underfull or overfull lines.

Taking these observations together, your .bib file (called, say, urlcite.bib) should contain:

@string{ jun = "Juin" }
@Misc{url-site,
  key          = {site},
  title        = {\textit{site}},
  month        = jun,
  year         = 2012,
  howpublished = {URL: \url{http://www.awebsite.com/}}
}

A full MWE might then look like this:

\documentclass{article}
\usepackage{url}          % for the \url command
\bibliographystyle{plain} % or whatever style file you prefer
\usepackage[french]{babel}
\begin{document} 
\cite{url-site} 
\bibliography{urlcite}    % if bib entries are in the file "urlcite.bib"
\end{document}
share|improve this answer
add comment

Add this in your .bib file:

@STRING{ jan = "Janvier" }
@STRING{ feb = "F{\'e}vrier" }
@STRING{ mar = "Mars" }
@STRING{ apr = "Avril" }
@STRING{ may = "Mai" }
@STRING{ jun = "Juin" }
@STRING{ jul = "Juilliet" }
@STRING{ aug = "Ao{\^u}t" }
@STRING{ sep = "Septembre" }
@STRING{ oct = "Octobre" }
@STRING{ nov = "Novembre" }
@STRING{ dec = "D{\'e}cembre" }
share|improve this answer
    
the same problem persist ;( –  researcher Sep 6 '12 at 17:37
    
@string{Jan = "Janvier"} not STRING{ jan = "Janvier" } Thank you so much for help –  researcher Sep 6 '12 at 17:39
    
@MarcoDaniel Sorry, I forgot the @ –  egreg Sep 6 '12 at 17:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.