I am quite new to Mageia and I started using it for a month. I am using LaTeX for writting my courses and I encountered a problem when compiling .tex some files (that contains griaphics I suppose).
The error is quite general, as I have seen on some forums. I am wondering if I have to install miktex. I tried but unsuccessful (I used the instructions from here https://miktex.org/download, Linux, Fedora and I got an error of compatibility for three libraries) .I am using TexStudio and I also tried cu complile the code with GNOME LaTeX but the same problem occured.
File `pdftex.def' not found. ...d{ver@\Gin@driver}{\input{\Gin@driver}}{}
The code I whant to compile is:
- Code: Select all
\documentclass[10pt, envcountsect]{beamer}
\usetheme{Singapore}
\setbeamertemplate{theorems}[numbered]
\setbeamertemplate{caption}[numbered]
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{enumerate}
\usepackage{hyperref}
\newtheorem{defin}{Defini\c tia}[section]
\newtheorem{exer}{Exemplul}
\newtheorem{prop}{Propozi\c tia}[section]
\newtheorem{theor}{Teorema}[section]
\def\bN{{\bf N}}
\def\bZ{{\bf Z}}
\def\bR{{\bf R}}
\def\cO{{\cal O}}
\newenvironment{rez}
{\noindent{\bf Rezolvare}\ \ \ }
\title{Codificare Huffman \\ Huffman Adaptativ cu secven\c ta $escape$}
\begin{document}
\maketitle
\begin{frame}
$text\ =\ \textcolor{red}{a}\textcolor{blue}{b}racadabra$
$cod = a$
\begin{enumerate}
\item[2.] citim $b$:
\begin{itemize}
\item $b \not \in A_1$ $\Rightarrow$ $cod +=\ code(esc,A_1) b$ $\Rightarrow$ $cod = a\textcolor{blue}{0b}$;
\item $b \not \in A_1$ $\Rightarrow$ $A_2$ este construit ca in Figura \ref{HA2}.
\begin{figure}
\begin{tikzpicture}[level/.style={sibling distance=20mm/#1, level distance = 0.75cm}]
\node[circle, draw, blue] (rad) {$2$}
child {
node[circle, blue, draw] {$1$}
child{
node[circle, draw, blue, label=below:$esc$] (esc) {$0$}
edge from parent node [midway,left,font=\scriptsize] {$0$}}
child {node[circle, draw, blue, label=below:$b$] (newc) {$1$}
edge from parent node [midway,right,font=\scriptsize] {$1$}}
edge from parent node [midway,left,font=\scriptsize] {$0$}
}
child {node[circle, draw, label=below:$a$] (newc) {$1$}
edge from parent node [midway,right,font=\scriptsize] {$1$}};
\end{tikzpicture}
\caption{Codificare - arbore $A_2$}\label{HA2}
\end{figure}
\item etichetele nodurilor: $0$ - $1$ - $1$ - $1$ - $2$ - proprietatea de \textit{sibling} este respectat\u a;
\end{itemize}
\end{enumerate}
\end{frame}
\end{document}
Does anybody use LaTeX successfuly in Mageia 7.1?
Thank you in advance!