I recently started university, and was annoyed to find out, we had to do our reports and assignments in LaTeX... until I learned how to use it! I went from hating it to loving it in one day. :) But seeing as I'm still very new, I might have some noobish questions - so please forgive me...

Anyways, on to the question, I am trying to use the minted environment, to write some VHDL code inside. I am having two issues (though solving one, might solve the other...)

I have written the following code: enter image description here

which results in the following: enter image description here

So my problem is this: LaTeX (Minted?) doesn't recognize the "Signal" line. it puts red boxes around the commas and colon and from the coloring it seems it doesn't recognize the "std_logic" in this context... Any ideas how to solve this?

Please let me know if I need to specify the problem any further...

ps. what I'm hoping it will look like in the end, is this(minus the comments): enter image description here

I hope this will suffice as a minimal example, though the preamble might be a bit too extensive - it does reproduce the problem (to me at least):



USE ieee.std_logic_1164.all;

    PORT(A,B,C,D    :   IN STD_LOGIC;
         X      :   OUT STD_LOGIC);
END func

        L <= C  XOR D;
        I <= L  AND B;
        J <= A  OR  B;
        K <= I  AND J;
        X <= A  OR  L;
END LogicFunc;

  • 1
    Can you post the code (not a screenshot, so that it can be copied) for a complete, short document that produces this? I can't reproduce the problem, at least retyping a couple of lines around your code line 10. So it's possible that there is a package conflict or some other issue that can't be found without looking at a complete, minimal example.
    – G. Poore
    Oct 21, 2014 at 22:31
  • @Joachim meta.tex.stackexchange.com/questions/228/…. Further doesn't the listings package give you a suitable output? It has markup support for VHDL... ftp.tex.ac.uk/tex-archive/macros/latex/contrib/listings/…
    – WG-
    Oct 21, 2014 at 22:35
  • I have updated my question with a minimal example. Oct 23, 2014 at 11:40
  • I have also tried the listings environment as you can see in my screenshot, but it it is my understanding, that using the minted package, I can get a much better looking code example, as it actually looks like what it would look like in the actual coding environment... As far as I could get working, listings could color a very limited part of my code (only LIBRARY, ENTITY, END etc.) where as minted actually color the entire piece of code... very frustrating when it aaalmost works... Thank you very much for taking your time to try and answer :) Oct 23, 2014 at 11:46
  • I believe you need END func --> END func;. The missing semicolon is interfering with the highlighting.
    – G. Poore
    Oct 23, 2014 at 13:20

1 Answer 1


You need END func --> END func;. The missing semicolon is interfering with the highlighting.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .