# Undefined Sequence in Texmaker when using minted and -shell-escape package [closed]

I had some issue when using the minted package on Texmaker I read on an answer on tex.stackexchange that it was maybe better to download TeXStudio but it wasn't. I heard it was something about -shell-escape in Option> Configure Texmaker> Latex and Option> Configure Texmaker> PdfLaTex so I added them both and now I'm having Undefined Sequence errors.

Here are some screenshots :

• Undefined Sequence error

• Option> Configure Texmaker modifications

And here is a minimal code :

\documentclass[a4paper]{article}

%% Language and font encodings
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}

%% Sets page size and margins
\usepackage[a4paper,top=3cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}

%% Useful packages
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{minted}

\author{You}

\begin{document}
\begin{minted}{SQL}
params = {
'database': 'la base de donnee',
'user': 'utilisateur',
'host': 'souvent c'est amazon AWS',
'port': 'le bon port'
}

try:
conn = psycopg2.connect(**params)
cur = conn.cursor()

cur.execute("""--- requete SQL
SELECT ...""")
\end{minted}
\end{document}


Can you help me to cope this problem? I like Texmaker, how can I remove TeXStudio?

## closed as unclear what you're asking by TeXnician, Andrew Swann, Kurt, Bobyandbob, TroyDec 30 '17 at 16:51

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Please, add a minimal code showing the issue. – egreg Jul 31 '17 at 13:46
• @egreg Okay, just done, but actually the issue is about configuration and Control sequences. – ThePassenger Jul 31 '17 at 14:02
• Confirm if its a Possible Duplicate of Minted Error “Undefined control sequence. \PYG” with TEXMaker – texenthusiast Jul 31 '17 at 15:30
• the screen shots are not much help, especialy as that view does not show the error message, just a (poor) summary of it. please show the error message from the log file, in a code section as used for the tex code, so line breaks are preserved. – David Carlisle Jul 31 '17 at 15:54