[SOLVED] LaTeX - MikTex

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] LaTeX - MikTex

Postby meinsta » Apr 29th, '20, 23:30

Hi,
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!
Last edited by meinsta on Apr 30th, '20, 23:23, edited 1 time in total.
meinsta
 
Posts: 45
Joined: Apr 29th, '20, 23:08

Re: LaTeX - MikTex

Postby doktor5000 » Apr 30th, '20, 00:39

What texlive packages do you currently have installed? Your missing file is contained in texlive-dist and also in texlive-collection-basic, do you have those installed? Best post the output of
Code: Select all
rpm -qa|grep -i texlive|sort
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: LaTeX - MikTex

Postby meinsta » Apr 30th, '20, 08:58

Thank you very much for your response. Here is what I got
texlive-20180414-12.mga7
texlive-collection-basic-20180414-6.mga7

I am installing the missing package now.
meinsta
 
Posts: 45
Joined: Apr 29th, '20, 23:08

Re: LaTeX - MikTex

Postby meinsta » Apr 30th, '20, 15:30

This is the error I got while installing the package directly from the Instalation Center of Mageia.

1 installation transactions failed

There was a problem during the installation:

package texlive-dist-20180414-6.mga7.noarch does not verify: Payload SHA256 digest: BAD (Expected 825810008ad1207a77b5a70a4785412694327f023d1fbde9eebe8b3e3f97e640 != 47296992070b7c4ae8b69fda466c7ede5ba478fc0ff3b01707d2805201630292)

...retrieving failed: curl failed: exited with 56


So I downloaded the package from here: https://rpmfind.net/linux/mageia/distrib/7/x86_64/media/core/updates/texlive-dist-20180414-6.mga7.noarch.rpm

Now it is working!
Thank you very much!

This is what I got now from
Code: Select all
rpm -qa|grep -i texlive|sort

texlive-20180414-12.mga7
texlive-collection-basic-20180414-6.mga7
texlive-dist-20180414-6.mga7
texlive-texmf-20180414-6.mga7
Last edited by meinsta on Apr 30th, '20, 18:58, edited 1 time in total.
meinsta
 
Posts: 45
Joined: Apr 29th, '20, 23:08

Re: LaTeX - MikTex

Postby doktor5000 » Apr 30th, '20, 17:42

meinsta wrote:package texlive-dist-20180414-6.mga7.noarch does not verify: Payload SHA256 digest: BAD (Expected 825810008ad1207a77b5a70a4785412694327f023d1fbde9eebe8b3e3f97e640 != 47296992070b7c4ae8b69fda466c7ede5ba478fc0ff3b01707d2805201630292)

...retrieving failed: curl failed: exited with 56
So I downloaded the package from here: https://rpmfind.net/linux/mageia/distrib/7/x86_64/media/core/updates/texlive-dist-20180414-6.mga7.noarch.rpm


Please don't download packages from some arbitrary website. Your download from the configured repos failed, either try again, or please post what mirror your're currently using
Code: Select all
urpmq --list-media active --list-url
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: LaTeX - MikTex

Postby meinsta » Apr 30th, '20, 18:44

Thank you for your advice!
This is what I it retured
(due to the fact that we can only have 25 url-s, I will spliti it in few messages)

edit doktor5000: merged partial messages
Code: Select all
Core Release (distrib1) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/core/release
Core Release Debug (distrib2) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/debug/core/release
Core Updates (distrib3) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/core/updates
Core Updates Debug (distrib4) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/debug/core/updates
Core Updates Testing (distrib5) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/core/updates_testing
Core Updates Testing Debug (distrib6) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/debug/core/updates_testing
Nonfree Release (distrib11) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/nonfree/release
Nonfree Release Debug (distrib12) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/debug/nonfree/release
Nonfree Updates (distrib13) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/nonfree/updates
Nonfree Updates Debug (distrib14) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/debug/nonfree/updates
Nonfree Updates Testing (distrib15) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/nonfree/updates_testing
Nonfree Updates Testing Debug (distrib16) ftp://vodka.sublink.org/mageia/distrib/7/x86_64/media/debug/nonfree/updates_testing
Core 32bit Release (distrib31) ftp://vodka.sublink.org/mageia/distrib/7/i586/media/core/release
Core 32bit Updates (distrib32) ftp://vodka.sublink.org/mageia/distrib/7/i586/media/core/updates
Core 32bit Updates Testing (distrib33) ftp://vodka.sublink.org/mageia/distrib/7/i586/media/core/updates_testing
Nonfree 32bit Release (distrib36) ftp://vodka.sublink.org/mageia/distrib/7/i586/media/nonfree/release
Nonfree 32bit Updates (distrib37) ftp://vodka.sublink.org/mageia/distrib/7/i586/media/nonfree/updates
Nonfree 32bit Updates Testing (distrib38) ftp://vodka.sublink.org/mageia/distrib/7/i586/media/nonfree/updates_testing
Tainted 32bit Release (distrib41) ftp://vodka.sublink.org/mageia/distrib/7/i586/media/tainted/release
Core Release (distrib46) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/core/release
Core Release Debug (distrib47) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/debug/core/release
Core Updates (distrib48) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/core/updates
Core Updates Debug (distrib49) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/debug/core/updates
Core Updates Testing (distrib50) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/core/updates_testing
Core Updates Testing Debug (distrib51) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/debug/core/updates_testing
Nonfree Release (distrib56) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/nonfree/release
Nonfree Release Debug (distrib57) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/debug/nonfree/release
Nonfree Updates (distrib58) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/nonfree/updates
Nonfree Updates Debug (distrib59) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/debug/nonfree/updates
Nonfree Updates Testing (distrib60) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/nonfree/updates_testing
Nonfree Updates Testing Debug (distrib61) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/debug/nonfree/updates_testing
Tainted Release (distrib66) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/tainted/release
Tainted Release Debug (distrib67) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/debug/tainted/release
Tainted Updates (distrib68) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/tainted/updates
Tainted Updates Debug (distrib69) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/debug/tainted/updates
Core 32bit Release (distrib76) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/core/release
Core 32bit Updates (distrib77) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/core/updates
Core 32bit Updates Testing (distrib78) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/core/updates_testing
Nonfree 32bit Release (distrib81) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/nonfree/release
Core Release (distrib91) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/core/release
Core Updates (distrib93) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/core/updates
Nonfree Release (distrib101) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/nonfree/release
Nonfree Updates (distrib103) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/nonfree/updates
Core Release (distrib136) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/core/release
Core Release Debug (distrib137) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/debug/core/release
Core Updates (distrib138) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/core/updates
Core Updates Debug (distrib139) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/debug/core/updates
Core Updates Testing (distrib140) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/core/updates_testing
Nonfree Release (distrib146) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/nonfree/release
Nonfree Updates (distrib148) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/nonfree/updates
Core 32bit Release (distrib166) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/core/release
Core 32bit Updates (distrib167) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/core/updates
Core 32bit Updates Testing (distrib168) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/core/updates_testing
Nonfree 32bit Release (distrib171) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/nonfree/release
Nonfree 32bit Updates (distrib172) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/nonfree/updates
Nonfree 32bit Updates Testing (distrib173) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/nonfree/updates_testing
Tainted 32bit Release (distrib176) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/tainted/release
Tainted 32bit Updates (distrib177) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/tainted/updates
Tainted 32bit Updates Testing (distrib178) http://mirror.math.princeton.edu/pub/mageia/distrib/7/i586/media/tainted/updates_testing
Core Release (distrib181) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/core/release
Core Updates (distrib183) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/core/updates
Nonfree Release (distrib191) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/nonfree/release
Nonfree Updates (distrib193) http://mirror.math.princeton.edu/pub/mageia/distrib/7/x86_64/media/nonfree/updates
Last edited by doktor5000 on Apr 30th, '20, 22:19, edited 3 times in total.
Reason: merged partial messages
meinsta
 
Posts: 45
Joined: Apr 29th, '20, 23:08

Re: LaTeX - MikTex

Postby isadora » Apr 30th, '20, 20:35

This is what I it retured
(due to the fact that we can only have 25 url-s, I will spliti it in few messages)

And if you had placed all the output in between CODE-tags, only one message was needed.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2742
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: LaTeX - MikTex

Postby meinsta » Apr 30th, '20, 21:20

Good to know!
Thank you! :)
Last edited by doktor5000 on Apr 30th, '20, 22:20, edited 1 time in total.
Reason: removed fullquote
meinsta
 
Posts: 45
Joined: Apr 29th, '20, 23:08

Re: LaTeX - MikTex

Postby doktor5000 » Apr 30th, '20, 22:24

Are you sure you didn't omit the active option?
urpmq --list-media active --list-url


Anyways, you currently have two complete sets of repositories configured, one set from the mirror ftp://vodka.sublink.org and one set from http://mirror.math.princeton.edu
I'd suggest to do the following, remove all configured repositories and add a complete set, to do that, as root:
Code: Select all
urpmi.removemedia -a
drakrpm-edit-media
-> File -> Add a specific media mirror -> choose one of the FTP mirrors near your location.

And afterwards please don't enable neither Debug nor Testing repositories.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: LaTeX - MikTex

Postby meinsta » Apr 30th, '20, 22:45

I put ”active” in the command.
I have done what you said in the previous post. It took a while to complete the task but it ended successfully. This is what I got now from the command you gave before, urpmq --list-media active --list-url
Code: Select all
# urpmq --list-media active --list-url
Core Release (distrib1) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/x86_64/media/core/release
Core Updates (distrib3) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/x86_64/media/core/updates
Nonfree Release (distrib11) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/x86_64/media/nonfree/release
Nonfree Updates (distrib13) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/x86_64/media/nonfree/updates
Tainted Release (distrib21) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/x86_64/media/tainted/release
Tainted Updates (distrib23) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/x86_64/media/tainted/updates
Core 32bit Release (distrib31) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/i586/media/core/release
Core 32bit Updates (distrib32) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/i586/media/core/updates
Nonfree 32bit Release (distrib36) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/i586/media/nonfree/release
Nonfree 32bit Updates (distrib37) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/i586/media/nonfree/updates
Tainted 32bit Release (distrib41) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/i586/media/tainted/release
Tainted 32bit Updates (distrib42) ftp://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/7/i586/media/tainted/updates

Thank you very much for your help!
meinsta
 
Posts: 45
Joined: Apr 29th, '20, 23:08

Re: LaTeX - MikTex

Postby doktor5000 » Apr 30th, '20, 23:17

Please don't forget to mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] LaTeX - MikTex

Postby meinsta » Apr 30th, '20, 23:24

Thank you again! :)
meinsta
 
Posts: 45
Joined: Apr 29th, '20, 23:08


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest