Texmaker and TeXstudioneed help: opening an old .tex on a new Texmaker

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
Carlo300
Posts: 3
Joined: Fri Apr 05, 2019 5:48 pm

need help: opening an old .tex on a new Texmaker

Post by Carlo300 »

Hello, i need your help. Im not a speacialist with latex - so some years ago i used Latex with texmaker on an old PC, i started a scientific report. Now years later i need to proceed with it.
Last time i used the texmaker and compiled the file to PDF with PDFLatex. If i want to do this now it does not work anymore.

this is my header:

Code: Select all

\documentclass[a4paper, 12pt, DIV=calc, oneside, headsepline, ngerman, headings=small, openany,
listof=totoc, bibliography=totoc]{scrbook}
\usepackage[T1]{fontenc} %  Schriftverbesserung
\usepackage[ngerman]{babel} % Deutscher Satzbau
\usepackage[ansinew]{inputenc} %  für Windows, damit die Umlaute funktionieren
\usepackage{lscape} 
\usepackage{scrpage2} %  zur Manipulation der Kopf und Fusszeilen
\usepackage{makeidx} %  zum Erstellen und Indexen (Abkürzungsverzeichnis)
\usepackage[pdftex]{graphicx} %  zum Einbinden von Grafiken und Bilddateien
\usepackage[intoc]{nomencl} %  Abkuerzungsverzeichnis (und ins Inhaltsverzeichnis aufnehmen)
\let\abk\nomenclature %  Befehl umbenennen in abk
\renewcommand{\nomname}{Abk�rzungsverzeichnis} %  Deutsche Überschrift
\setlength{\nomlabelwidth}{.20\hsize} %  Punkte zw. Abkürzung und Erklärung
\renewcommand{\nomlabel}[1]{#1 \dotfill} %  Punkte zw. Abkürzung und Erklärung
\makenomenclature
\usepackage[numbers]{natbib} % BibTex-Literatur-Style, Zitate als Nummern [2,4]
\usepackage{pdfpages} %  zum Einbinden von PDF-Dateien
\usepackage{setspace}  % Paket einbinden
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\onehalfspacing        % einstellen des Zeilenabstandes auf 1,5
\usepackage[vcentering,dvips]{geometry} %  Seitengröße definieren
\geometry{left=30mm,right=25mm,papersize={209.9mm,297mm},total={130mm,210mm}}
\usepackage{color} %  um Text zu färben
\usepackage{colortbl}
\definecolor{tabelle}{rgb}{1,0.925,0.545}
\usepackage{endnotes} % End- und Fußnoten
\usepackage{url} % Weblinks
\usepackage{hyperref} % klickbare Kapitel und Link-Fraben
\hypersetup{colorlinks=true, linkcolor=blue, urlcolor=blue, citecolor=blue}
\usepackage{caption} %  für z.B. Tabellenüberschriften
\usepackage{fancybox} %  für Kasten und Boxen
\usepackage{longtable} %  für mehrseitige lange Tabellen
\usepackage{tabularx} %  für Tabellen
\usepackage{eurosym} % Für das e-Symbol
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} % zentrierte Spalten mit Breitenangabe
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}} % rechtsbündig mit Breitenangabe
\newcommand{\ctab}{\centering\arraybackslash } % Tabellenabschnitt zentrieren
\newcommand{\rtab}{\raggedleft\arraybackslash} % Tabellenabschnitt rechtsbündig
\newcommand{\ltab}{\raggedright\arraybackslash} % Tabellenabschnitt linksbündig
\clubpenalty = 10000 % schliesst "Schusterjungen" aus
\widowpenalty = 10000 % schliesst "Hurenkinder" aus
\setlength{\headheight}{1.1\baselineskip}
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\bibliographystyle{natdin} % verwendet den natbib-Literaturstyle
\shorthandoff{"} % aus "A wird NICHT Ä!
%
%
% %%%%%%%%%%%%%% D E C K B L A T T
% ================================================
...


The following errors are shown:
-E:\Programme\Latex\tex/latex/koma-script\scrpage2.sty - usage of obsolete package!(scrpage2) Package `scrpage2' is obsolete.
- dissertation.tex - Over-specification in `h'-direction.
-dissertation.tex - old toc file detected, not used; run LaTeX again.
-dissertation.tex - old lof file detected, not used; run LaTeX again.
-dissertation.tex - old lot file detected, not used; run LaTeX again.
-includes/00Hauptteil.tex - Citation `Sloniger1997a' on page 2 undefined
(The last error is there multipe times for every citation i made...)

It would be really great if you would help me, i was really happy working with latex last time. Just dont know what to change to get it working again.. .; (
Thank you so much !!!
Regards, Carlo
Last edited by Stefan Kottwitz on Sat Apr 06, 2019 9:02 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Carlo300
Posts: 3
Joined: Fri Apr 05, 2019 5:48 pm

need help: opening an old .tex on a new Texmaker

Post by Carlo300 »

Now it added some more errors - the last ones were only warning. not it is showing 4 errors:

1. dissertation.tex - line 56 - ! LaTeX Error: Command \textcurrency unavailable in encoding T1.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.... ...elvolumetrie der Oberschenkel von Ultralä
(the lines where it is referring to shows: "\huge Belastungsbegleitenden Muskelvolumetrie der Oberschenkel von Ultraläufern mittels mobilem MRT während eines transkontinentalen Ultramarathon über 4487,7km \\ % Trage hier den Titel deiner Arbeit ein")

2. includes/00Hauptteil.tex - line 227 - ! Dimension too large.<argument> \ht \@tempboxa ...width=0.7\linewidth]{pic/Messbereich.jpg}
3. includes/00Hauptteil.tex - line 227 -! Dimension too large.<recently read> \Gin@nat@height ...width=0.7\linewidth]{pic/Messbereich.jpg}
4. includes/00Hauptteil.tex - line 227 - ! Dimension too large.\Gscale@box ...tw@ -#2\dp \z@ \dp \tw@ -#2\ht \z@\else \ht \tw@ #2\ht \z@ \... ...width=0.7\linewidth]{pic/Messbereich.jpg}
--> the line to which these refere shows the following: \includegraphics[width=0.7\linewidth]{pic/Messbereich.jpg}

; ((
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

need help: opening an old .tex on a new Texmaker

Post by Stefan Kottwitz »

Hi Carlo,

welcome to the forum!

Let's skip the warnings for now and look at the errors to get your document compilable. I always tackle the first error, since following errors can simply be a consequence of the first one.

"LaTeX Error: Command \textcurrency unavailable in encoding T1" points to an encoding error. It's probably already the input encoding. Try to check (or to remember) what input encoding your old document uses. You have to set the same in Texmaker (Options -> Configure Texmaker -> Editor -> Editor font encoding) and in the document, where you have \usepackage[ansinew]{inputenc}. Today's editors (and good operation systems) use utf8. But first you can try if ansinew still works with your old file if you configure ansinew (or latin1) also in Texmaker.

Stefan
LaTeX.org admin
Carlo300
Posts: 3
Joined: Fri Apr 05, 2019 5:48 pm

need help: opening an old .tex on a new Texmaker

Post by Carlo300 »

Hi Stefan,
thanks so much for your fast reply. I found the old Version of Texmaker and the settings are exactly the same. ; (
Well, now (i dont know why) after i changed the \usepackage[ansinew]{inputenc} to something else and changed it back afterwards it is producing different errors now.
Now the errors are:

line 103 - ! Missing \endcsname inserted.<to be read again>\protect ... Perzentile\relax }{figure.caption.18}{}}
line 103 - ! Missing \endcsname inserted.<to be read again>\protect ... Perzentile\relax }{figure.caption.18}{}}
line 103 - ! LaTeX Error: Missing \begin{document}.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.... ... Perzentile\relax }{figure.caption.18}{}}
line 103 - ! Missing control sequence inserted.<inserted text>\inaccessible ... Perzentile\relax }{figure.caption.18}{}}
line 103 - ! Missing control sequence inserted.<inserted text>\inaccessible ... Perzentile\relax }{figure.caption.18}{}}
line 103 - ! Bad character code (256).\iterate ->\catcode \@tempcnta=15 \advance \@tempcnta \@ne \relax \iterate ... Perzentile\relax }{figure.caption.18}{}}
(the last one is reapeated around 30 times)
and then there is 2 warnings

I do not even have a line 103 in my main file? it ends with line 102...


What do you mean by "if you configure ansinew (or latin1) also in Texmaker"?
in the Settings (Options -> Configure Texmaker -> Editor -> Editor font encoding) there is no such option like ansinew or latin1... ; /


Can you help me with these new errors? ; /

Thanks a lot in advance,
Carlo
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

need help: opening an old .tex on a new Texmaker

Post by Stefan Kottwitz »

latin1 or ansinew (as in the document) are perhaps called ISO-8859-1 or ISO-8859-15 or the like in Texmaker. (I don't have Texmaker)

Regarding the errors: can you post the .log file here, as attachment? The Attatchments link is below the text edit field, when writing a post. All errors and warnings are listed there.

Stefan
LaTeX.org admin
Post Reply