Coder Social home page Coder Social logo

MiKTeX error on ubuntu about miktex HOT 7 CLOSED

miktex avatar miktex commented on May 16, 2024
MiKTeX error on ubuntu

from miktex.

Comments (7)

edocevoli avatar edocevoli commented on May 16, 2024

Thank you. Please attach the log files. Should be here:

~/.miktex/data/miktex/log/

And it would be nice if you provide a minimal test case.

from miktex.

aochtman avatar aochtman commented on May 16, 2024

I am sorry but I am quite new to ubuntu.

I am currently in the /usr directory. ls outputs the following:

  • bin
  • games
  • include
  • lib
  • libexec
  • local
  • sbin
  • share
  • src

from miktex.

edocevoli avatar edocevoli commented on May 16, 2024

Thank you. So it seems that you cannot provide more information? Too bad...

Let's try again. Enter this command:

tar -cvzf logfiles.tar.gz ~/.miktex/texmfs/data/miktex/log/*

Then attach logfiles.tar.gz to this ticket. Thank you!

from miktex.

aochtman avatar aochtman commented on May 16, 2024

logfiles.tar.gz

from miktex.

edocevoli avatar edocevoli commented on May 16, 2024

Thank you. So it seems that everything is alright (no error messages in the log files). Since you provided no minimal test case, I cannot work on this issue effectively and I will close this ticket. If you have more info available: you can add comments and attach files.

from miktex.

aochtman avatar aochtman commented on May 16, 2024

Setup

  • Ubuntu
  • Installed pandoc
  • Installed MikTeX:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889

echo "deb http://miktex.org/download/ubuntu xenial universe" | sudo tee /etc/apt/sources.list.d/miktex.list

sudo apt-get update

sudo apt-get install miktex

R-code

# Set working directory
setwd("/var/www/html/test_Knitr")

# Create .md, .html, and .pdf files
print("Debug1: packages loaded")

setwd("/var/www/html/DATA/test")
knit("/var/www/html/test_Knitr/reporting_style.Rmd")
print("Debug2: knit succesfull")

setwd("/var/www/html/DATA/test")
print("Debug3: setwd successfull")

markdownToHTML('/var/www/html/DATA/test/reporting_style.md', '/var/www/html/DATA/test/reporting_style.html', options=c("use_xhml"))
print("Debug4: markdownToHTML succesfull")

system("pandoc -s /var/www/html/DATA/test/reporting_style.html -o /var/www/html/DATA/test/reporting_style.pdf")
print("Debug5: pandoc succesfull")

reporting_style.Rmd

---
title: "Reporting template"
output: html_document
---


## R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. 

Problem
The function runs perfectly until it reaches the last part system("pandoc.." Here I receive an error message:

Sorry, but pdflatex did not succeed.

You may want to visit the MiKTeX project page, if you need help.
terminate called after throwing an instance of 'MiKTeX::Core::MiKTeXException'
  what():  MiKTeX encountered an internal error.

pandoc: Error producing PDF

Is this sufficient?

from miktex.

edocevoli avatar edocevoli commented on May 16, 2024

No, this does not help me to reproduce the issue. Quoting this site:

"The aim of the exercise is to enable them to reproduce the problem. You want the programmer to run their own copy of the program, do the same things to it, and make it fail in the same way. When they can see the problem happening in front of their eyes, then they can deal with it.

So tell them exactly what you did. If it's a graphical program, tell them which buttons you pressed and what order you pressed them in. If it's a program you run by typing a command, show them precisely what command you typed. Wherever possible, you should provide a verbatim transcript of the session, showing what commands you typed and what the computer output in response.

Give the programmer all the input you can think of. If the program reads from a file, you will probably need to send a copy of the file. If the program talks to another computer over a network, you probably can't send a copy of that computer, but you can at least say what kind of computer it is, and (if you can) what software is running on it."

from miktex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.