# How to convert pdflatex to word [duplicate]

I have a tex document with math formula, figure, tikz drawings.

What is the best way to convert tex to doc format.

I tried with latex2rtf, pandoc, ... but nothing works.

Can someone write step by step tutorial to convert tex to doc?

Thanks.

Edit

main.tex

\documentclass[a4paper, 12pt, oneside]{article}
\usepackage [utf8]{inputenc}
\usepackage[slovene]{babel}
\usepackage[a4paper,left=3cm,right=2.5cm,top=3.5cm,bottom=3cm]{geometry}
\usepackage[pdftex]{color,graphicx, hyperref}
\usepackage{times}
%\usepackage{a4wide}
\usepackage{mathtools}
\usepackage{subcaption}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{natbib}
\usepackage[T1]{fontenc}
\usepackage[parfill]{parskip}
\usepackage{lmodern}
\usepackage[final]{pdfpages}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{tkz-berge}
\usetikzlibrary{arrows,%
shapes,positioning}
\usepackage{standalone}

\begin{document}
\section{Objave}

\input{grafi}

\bibliographystyle{apa}
\bibliography{viri}
\end{document}


grafi.tex

\documentclass[a4paper, 12pt, oneside]{standalone}
\usepackage [utf8]{inputenc}
\usepackage[slovene]{babel}
\usepackage[a4paper,left=3cm,right=2.5cm,top=3.5cm,bottom=3cm]{geometry}
\usepackage[pdftex]{color,graphicx, hyperref}
\usepackage{times}
%\usepackage{a4wide}
\usepackage{mathtools}
\usepackage{subcaption}
\usepackage{subfig}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{natbib}
\usepackage[T1]{fontenc}
\usepackage[parfill]{parskip}
\usepackage{lmodern}
\usepackage[final]{pdfpages}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{tkz-berge}
\usetikzlibrary{arrows,%
shapes,positioning}
\usepackage{standalone}

\begin{document}

\subsection{Teorija grafov}
bla bla $(G)$ bla $V(G)$ bla $E(G)$.bla aaaaaaaaaaa $v,u$ $\epsilon$ $V(G)$ aaaaaaaa $(u,v)$ $\epsilon$ $E(G)$ aaa $u~v$.

\begin{figure}[h]
\def\tkzH{130pt}
\def\tkzV{130pt}
\input{graf}
\caption{aaaaaaaaaaaaaaa $V(G) = \left\{1,2,3,4,5,6\right\}$ aaaaaaaa $E(G) = \{ \{1,2\}, \{1,5\}, \{2,3\}, \{2,5\},\{3,4\}, \{4,5\}, \{4,6\}\}$.}
\label{graf}
\end{figure}

\end{document}


graf.tex

\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{fullpage}
\usepackage{fourier}
\usepackage{tikz}
\usetikzlibrary{arrows,%
shapes,positioning}

\begin{document}

\begin{center}
\resizebox{\tkzH}{\tkzV}{
\begin{tikzpicture}[node distance   = 30pt]
\tikzset{VertexStyle} = [shape          = circle,
draw,
%ball color     = white,
text           = black,
inner sep      = 2pt,
outer sep      = 0pt,
minimum size   = 24 pt]
\tikzset{EdgeStyle}   = [black,
double          = black,
double distance = 0.5pt]
\tikzset{LabelStyle} =  [%draw,
%fill           = yellow,
%text           = red,
sloped,
anchor=center,
above]

\node[VertexStyle](1){1};
\node[VertexStyle, below right =30pt of 1](2){2};

\node[VertexStyle, above right  = 30pt of 1](5) {5};
\node[VertexStyle, right =  of 5](4) {4};

\node[VertexStyle, right =  of 2] (3) {3};
\node[VertexStyle, above right = 30pt of 4] (6) {6};

\foreach \from/\to in {1/2, 1/5, 5/4, 2/3, 3/4, 4/6, 2/5}
\draw[EdgeStyle] (\from) -- (\to);

\end{tikzpicture}
}
\end{center}
\end{document}

• try tex4ht, command for conversion is mk4ht oolatex filename. math and figures should be fine, tikz probably would need some configuration. you should provide a minimal working example, so we can see the problems you found – michal.h21 Aug 29 '15 at 6:48
• Probably this is not the right place to ask this question :). – CroCo Aug 29 '15 at 7:01
• Do you really want to convert F-117 Nighthawk into Wright brothers' aeroplane? – Przemysław Scherwentke Aug 29 '15 at 7:05
• No, I'm OK with tex., but I need to share with others. – usil Aug 29 '15 at 7:09
• @michal.h21 I added an example – usil Aug 29 '15 at 7:09

## 1 Answer

Create with the standalone document class a single pdf image of your grafic which you then include with \includegraphics into your main document. Crate a pdf and then use https://www.gonitro.com/de/ to convert the pdf into a Word format. There is a trial version.