Search found 4 matches

by Omcsesz
Fri Mar 02, 2018 1:14 am
Forum: Text Formatting
Topic: listings gives the same result for every language
Replies: 7
Views: 6634

listings gives the same result for every language

I see. You are right.
by Omcsesz
Sun Feb 25, 2018 2:52 pm
Forum: Text Formatting
Topic: listings gives the same result for every language
Replies: 7
Views: 6634

listings gives the same result for every language

I see. So no matter what language I choose, it will be black and white by default.
by Omcsesz
Sat Feb 24, 2018 7:48 pm
Forum: Text Formatting
Topic: listings gives the same result for every language
Replies: 7
Views: 6634

listings gives the same result for every language

HI, Stefan!

They are the same in Overleaf as well, mainly. A few words are in bold in Java, which are not in C. But the words are the same color.
by Omcsesz
Sat Feb 24, 2018 2:26 pm
Forum: Text Formatting
Topic: listings gives the same result for every language
Replies: 7
Views: 6634

listings gives the same result for every language

Hello, All!

I get the same results whatever language I choose when using the listings package.
MWE:
\documentclass[a4paper,11pt]{article}

\usepackage[utf8]{inputenc} % utf8
\usepackage[T1]{fontenc}
\usepackage{listings}

\begin{document}
\lstset{language=Java}
\begin{lstlisting}
public ...