i have a problem in the table of content in latex because the sections and subsections have styles. the problem is the style of the sections and subsections affected on the table of content like the picture below: enter image description here

how can remove the style of sections in the TOC can anyone help me please?

  • How did you define the style of you (sub)sections? – Bernard Sep 13 '19 at 23:18
  • Make the shortest posible example, without any irrelevant code for this issue (e.g, neither tables in text nor packages in preamble to make tables, etc.) and then post the complete source document, not a snippet of the supposedly relevant code. – Fran Sep 14 '19 at 0:30
  • 1
    To elaborate on the other comments: LaTeX's default is an unstyled table of contents. Since yours is styled, you must have done something to style it. Unless you show us what you did to style it, the only thing we can tell you is "undo what you've done". And posting your entire source for us to wade through will probably not get you much help. – Teepeemm Sep 14 '19 at 2:01
  • 1
    You want to avoid style commands within the \(sub)section commands, because those arguments end up being used elsewhere, as you've seen. It's better to use a package dedicated to that end, such as titlesec in the accepted answer to the linked question. – Teepeemm Sep 14 '19 at 12:29
  • 1
    (You need to prefix the name with @ if you want the person to be pinged. The post owner is automatically pinged.) I'm not sure what you mean. The numbering is blue and orange because you've renewcommanded them to be blue and orange. What are you wanting to happen? You may need to take a step back, and explain (in a new question?) what it is that you're trying to accomplish. This is starting to turn into an XY problem (you ask about X, but it turns out you're really trying to do Y). – Teepeemm Sep 14 '19 at 20:00

Browse other questions tagged or ask your own question.