2

I just discovered Pandoc and I am trying to use it to convert a doc.tex into a doc.docx but I facing some difficulties with the bibliography convertion. I write in the powershell cmd:

pandoc -s MyFile.tex  --bibliography=MyRefs.bib 
--csl=american-sociological-review.csl -o MyFile.doc

MyFile.tex, MyRefs.bib and the asr.csl are in the same folder. But whatever file.csl I insert, the result at the end in the MyFile.docx is the same chicago style with references in the body of my core text...

I am using TexLive 2015 (I know I need an update which I will do right after my deadline...) on Windows 10

Here is the code of my LaTeX document:

\documentclass[french]{article}

\usepackage[T1]{fontenc}

\usepackage[utf8]{inputenc}                     

\usepackage{lmodern}

\usepackage[backend=biber,style=verbose-trad1, ibidtracker=context]
{biblatex}

\renewcommand{\mkibid}[1]{\emph{#1}}

\usepackage{csquotes}

\usepackage[perpage]{footmisc}

\addbibresource{thesegain2017.bib}

\usepackage[english,francais]{babel}

\begin{document}

Il est important de souligner que ces mécanismes n'ont pas de 
finalité\autocite[Voir][p. 112 à 115]
{bourdieu2011champ}.

\printbibliography 

\end{document}

I can't find out what is going wrong. Thank you for your help !

8
  • Are you using pandoc-citeproc? Try: pandoc -s --bibliography MyRefs.bib --filter pandoc-citeproc --csl american-sociological-review.csl MyFile.tex -o MyFile.docx
    – DG'
    Commented Feb 27, 2018 at 12:23
  • Well I get a document modified regarding the citation-style but its written in the powershel command: (permission denied) and comments --like those with the pages references-- are still missing
    – mailysmanu
    Commented Feb 27, 2018 at 12:34
  • Maybe you should post some code. A minimal working example (MWE) would be nice.
    – DG'
    Commented Feb 27, 2018 at 12:43
  • 3
    Also: powershell problems, like insufficient permissions, are off topic on TeX.SX and should be asked on stackoverflow
    – DG'
    Commented Feb 27, 2018 at 12:49
  • There are no citations in your MWE
    – DG'
    Commented Feb 27, 2018 at 12:53

1 Answer 1

1

Let's take the following LaTeX document:

MyFile.tex

\documentclass[french]{article}
\usepackage[english,francais]{babel}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}                     
\usepackage{lmodern}

\usepackage[backend=biber,style=verbose-trad1, ibidtracker=context]
{biblatex}
\addbibresource{MyRefs.bib}

\begin{document}

Il est important de souligner que ces mécanismes n'ont pas de 
finalité \autocite[Voir][p. 112 à 115]{Bourdieu89}.

\printbibliography 

\end{document}

and a matching biblatex file:

MyRefs.bib

@book{Bourdieu89, 
  address   = {Paris}, 
  author    = {Bourdieu, Pierre}, 
  publisher = {Les Editions de Minuit}, 
  title     = {La noblesse d'État}, 
  subtitle  = {Grandes écoles et esprit de corps}, 
  year      = {1989}, 
} 

enter image description here enter image description here

Since pandoc doesn't know how to name the reference section, you have to set the metadata reference-section-title accordingly:

pandoc -s --bibliography MyRefs.bib --filter pandoc-citeproc --csl american-sociological-review.csl --biblatex MyFile.tex -M reference-section-title=Références -o MyFile.docx

enter image description here

1
  • 3
    --filter pandoc-citeproc is deprecated. Use --citeproc instead Commented Feb 22, 2021 at 9:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .