LaTeX forum ⇒ 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
Carlo300
Posts: 3
Joined: Fri Apr 05, 2019 5:48 pm

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

Postby Carlo300 » Fri Apr 05, 2019 6:01 pm

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:

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




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.
Reason: code marked

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

Postby Carlo300 » Fri Apr 05, 2019 6:18 pm

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: 9416
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Apr 06, 2019 9:12 am

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
Site admin

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

Postby Carlo300 » Mon Apr 08, 2019 8:29 pm

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: 9416
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Apr 08, 2019 9:33 pm

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
Site admin


Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 3 guests