Texmaker and TeXstudioPDF file does not update

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
latex0123
Posts: 4
Joined: Wed Feb 23, 2022 3:22 am

PDF file does not update

Post by latex0123 »

I am using LaTeX for the first time.

When I click "Run" in Texmaker and then click "View PDF", the generated PDF file does not update. What could be the reason?

I use XeLaTex.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

PDF file does not update

Post by Ijon Tichy »

latex0123 wrote:What could be the reason?
  • You have not installed any TeX distribution.
  • You have not installed XeLaTeX.
  • TeXmaker does not find the TeX distribution/XeLaTeX.
  • TeXmaker is not correctly configured to run XeLaTeX and all other programs needed to generate a new PDF.
  • TeXmaker is configured to use another master file.
  • There are fatal errors at your LaTeX file(s).
  • Something has blocked the PDF, so that it cannot be written newly.
  • A virus has broken the TeX distribution or editor or the OS.
  • A anti-virus has blocked execution of some programs.
  • Many more user mistakes can lead to not generating a new PDF or generating a new PDF but do not show it.
Currently your question is like: I'm sitting in my car an press the start button, but the car does not move. What could be the reason? So we need much more information, e.g.:
  • Error messages of TeXmaker.
  • Exact configuration of TeXmaker for "Run"?
  • Does it work, you explicitly run XeLaTeX and also all other programs needed depending on your document?
  • Does it work, if you use another LaTeX editor like TeXworks?
  • Is the log file updated and what does it show?
  • If you are using bibtex or biber: Is the blg file updated and what does it show?
  • If you are using makeindex: Is the ilg file updated and what dies is show?
  • Can you reduce your problem to a Infominimal working example, please show it?
  • Does the problem also happen with an absolute minimal example like

    Code: Select all

    \documentclass{article}
    \begin{document}
    Test
    \end{document}
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
latex0123
Posts: 4
Joined: Wed Feb 23, 2022 3:22 am

PDF file does not update

Post by latex0123 »

The problem happens not with an absolute minimal example like

Code: Select all

\documentclass{article}
\begin{document}
Test
\end{document}
1.PNG
1.PNG (42.4 KiB) Viewed 59809 times
That's my current file:

Code: Select all

\documentclass[10pt]{article}
\usepackage[a4paper, left=1cm, right=1cm, top=1cm,  bottom=1cm]{geometry}
\usepackage{fontspec}
\usepackage{color}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{tikz}
\author{LastName, FirstName}
\setmainfont{Arial}


\definecolor{sectcol}{RGB}{255,150,0}
\definecolor{bgcol}{RGB}{110,110,110}
\definecolor{softcol}{RGB}{225,225,225}

\begin{document}

\textcolor{bgcol}{
	\begin{center}
		
			Max Mustermann \cdot Consultant and Software Engineer | Bremen, Germany | info@mustermann.com  | +49 176 123 456 78
		
	\end{center}
}


%\begin{tikzpicture}
%	\draw (0,0) rectangle (10,2) node[midway] {Max Mustermann | Resume};
%\end{tikzpicture}


%\begin{center}Max Mustermann | Resume\end{center}

\end{document}
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

PDF file does not update

Post by Ijon Tichy »

Have you seen, that there are error messages for your example?
The first one:

Code: Select all

Runaway argument?
{ \begin {center} 
! Paragraph ended before \@textcolor was complete.
<to be read again> 
                   \par 
l.20 ^^I^^I
           
? 
is because you are using paragraphs like empty lines inside \textcolor. \textcolor, \textrm, \textbf, \textit etc. is for small texts inside a paragraph. They all do not support multiple paragraphs.

The next one:

Code: Select all

Missing $ inserted.
<inserted text> 
                $
l.21 ^^I^^I^^IMax Mustermann \cdot
                                   Consultant and Software Engineer | Bremen...

is, because you are using the math mode comand \cdot in text mode.

Maybe you are searching for something like:

Code: Select all

\documentclass[ngerman]{article}% 10pt removed, because it is the default of article
\usepackage[a4paper, left=1cm, right=1cm, top=1cm,  bottom=1cm]{geometry}
\usepackage{fontspec}
\usepackage{color}
%\usepackage[utf8]{inputenc}% Not needed since LaTeX 2018/04/01 and not
                            % recommended with LuaLaTeX or XeLaTeX
\usepackage{babel}% Language option moved, so it is also available for other packages.
\usepackage{tikz}
\author{LastName, FirstName}
%\setmainfont{Arial}% Commented, because for a MWE it is not recommended to
                    % use fonts, that are usually only available with Windows
                    % and not needed to demonstrate the problem.

\definecolor{sectcol}{RGB}{255,150,0}
\definecolor{bgcol}{RGB}{110,110,110}
\definecolor{softcol}{RGB}{225,225,225}

\begin{document}

\begin{center}
  \color{bgcol}% Color changes inside environments usually stay inside the environment.
  Max Mustermann \textperiodcentered{} Consultant and Software Engineer | Bremen, Germany | info@mustermann.com  | +49 176 123 456 78
\end{center}

\end{document}
Note: You should always fix all errors immediately. Some of them can prevent LaTeX from generating a correct PDF. Depending on the editor, terminating with an error state can prevent the editor to reload a newly generated PDF.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
latex0123
Posts: 4
Joined: Wed Feb 23, 2022 3:22 am

PDF file does not update

Post by latex0123 »

Thank you. You have helped me a lot.
Post Reply