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

enter image description here

  • Option> Configure Texmaker modifications

enter image description here

And here is a minimal code :


%% Language and font encodings

%% Sets page size and margins

%% Useful packages
\usepackage[colorlinks=true, allcolors=blue]{hyperref}

\title{Your Paper}

params = {
      'database': 'la base de donnee',
      'user': 'utilisateur',
      'password': 'mot de passe',
      'host': 'souvent c'est amazon AWS',
      'port': 'le bon port'

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

        cur.execute("""--- requete SQL
        SELECT ...""")

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, Troy Dec 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
  • 1
    Confirm if its a Possible Duplicate of Minted Error “Undefined control sequence. \PYG” with TEXMaker – texenthusiast Jul 31 '17 at 15:30
  • 1
    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