Skip to main content

Questions tagged [syntax-highlighting]

For questions about highlighting document source code in your editor.

23 votes
2 answers
9k views

As can be seen on the first image there are outlines around the brackets and parenthesis (blue and red colored), on the second picture is shown what happens to these outlines if I move away to another ...
jkrod's user avatar
  • 643
11 votes
4 answers
2k views

I am writing academic papers with lots of footnotes. The writing process is not ideal, since when I am writing the original .tex file, all footnotes are embedded in the main text. Often, a long ...
redmouse's user avatar
  • 651
10 votes
2 answers
2k views

I'm trying to switch my editor from vscodium (telemetry free VS Code) to Emacs. So far, I've installed AUCTeX and tried some things in a testdocument. For regular LaTeX code everything is fine. But ...
lukeflo's user avatar
  • 1,625
9 votes
1 answer
3k views

I included the chemfig package to draw chemical stuff in LaTex. But the commands aren't recognized by TeXstudio. I even added the package to the autocompletion list in the settings to get recognized ...
Martin Niederl's user avatar
7 votes
3 answers
8k views

I use minted to highlight some javascript code. I use \documentclass{article} \usepackage{minted} \begin{document} \begin{minted}{js} const mySchema = new Schema({ name: String, is_true: ...
Jamgreen's user avatar
  • 3,797
7 votes
1 answer
4k views

Here is my code: \documentclass{article} \usepackage{listings} \usepackage{textcomp} \usepackage{xcolor} \lstdefinestyle{style1}{ basicstyle=\ttfamily, columns=fullflexible, keepspaces=...
Lone Learner's user avatar
  • 3,507
7 votes
3 answers
359 views

The LaTeX3 syntax is not recognized by TeXstudio, and I'm looking for ways to solve it. The problem comes from (IMHO) the underscores being taken as "separators"... Here is an example: The ...
3isenHeim's user avatar
  • 2,127
6 votes
1 answer
139 views

LaTeX code: \documentclass{article} \usepackage{listings} \usepackage{textcomp} \usepackage{xcolor} \lstset{ basicstyle=\ttfamily, columns=fullflexible, keepspaces=true, upquote=true, ...
Lone Learner's user avatar
  • 3,507
6 votes
1 answer
1k views

I wondered if its possible to embed source code of some software you are writing about into the PDF but not displayed by default. E.g. you have a long script I would be nice if the user/reader could ...
math's user avatar
  • 3,295
6 votes
1 answer
360 views

I have the following snippet of code: \documentclass{beamer} % Solarized colors \definecolor{sbase03}{HTML}{002B36} \definecolor{sbase02}{HTML}{073642} \definecolor{sbase01}{HTML}{586E75} \...
Patryk's user avatar
  • 971
6 votes
2 answers
3k views

When I use the mathpartir package, Tex Studio does not seem to identify that mathpar is a math environment, and highlights all my math mode commands in red. When I hover the mouse over them, it says "...
hugomg's user avatar
  • 1,161
6 votes
1 answer
889 views

I am using AucTeX to write LaTeX and I have fontification enabled. The highlighting of marcos works but while macros like \begin are highlighted using font-lock-keyword-face all math macros (\sum, \...
Gennady Uraltsev's user avatar
6 votes
3 answers
886 views

My code: \documentclass{article} \usepackage{listings} \usepackage{xcolor} \lstset{ language=[latex]tex, basicstyle=\ttfamily, commentstyle=\color{violet}, columns=fullflexible, ...
Lone Learner's user avatar
  • 3,507
6 votes
2 answers
740 views

I want to add some math symbols into the escaped contents, minted works well for languages like Python, but not LaTeX. A sample code: \documentclass{article} \usepackage{minted} \begin{document} \...
Neymar87's user avatar
  • 101
6 votes
1 answer
4k views

I have a JSON code snippet that I like to include into my LaTeX document: "builders": [ { "type": "test", "image": "ubuntu:latest", "changes": [ "EXPOSE 123 ...
Kyu96's user avatar
  • 297

15 30 50 per page
1
2 3 4 5
11