Linked Questions

1
vote
0answers
93 views

How to beautify '+' sign [duplicate]

I am writing a document with LaTeX covering the basics of programming with C++ and unfortunately the '+' signs look kind of ugly to me: They seem to be too big, too thin (regarding the rest of the ...
0
votes
0answers
48 views

Remove white spaces from latex [duplicate]

How can the white spaces from the output of the following line: $C++$ be omitted so that there is no white space between 'C' and '+' and the last '+'. The current output is: C + + C and the ...
55
votes
11answers
62k views

How to make the correct hash-symbol in C Sharp (C#)

I want to make C# look nice in my book, but with the following: C\# it looks like this: When it should look more like this: For the second one, I used verbatim, but I don't want that and I've also ...
5
votes
1answer
18k views

LaTeX getting “Missing } inserted” error

I'm getting "Missing } inserted" error, when compiling with pdflatex and I really don't understand why. This is occurring in a beamer frame. Maybe someone comes up with something useful. \...
10
votes
2answers
1k views

Subscript. Superscript. Middlescript?

What's the best way to vertically center inline text for both math and text modes? Is there something similar to \textsuperscript for non-math mode?
1
vote
3answers
563 views

How to outputs 'C\C++'

I just try output C\C++ in LaTeX as following below: \textit{C\backslashC\+\+} But im getting this issue: ! Undefined control sequence. <argument> C\backslashC \+\+ l.141 ...
6
votes
1answer
1k views

Multiple listings styles

In using the listings package, how can I have a distinct \lstlistingname value for each type of listing. Lets say my document has C++, R and Pseudo listings, and I would like the \lstlistingname ...
8
votes
1answer
1k views

A package with macros for programming languages names?

Is there any package with predefined macros for common programming languages' names? I mean, macros that help writing things like C++, C#, F# etc. in a nice way, the same way as for example \TeX? I ...
3
votes
1answer
1k views

\verb illegal in command argument in task

Following this: Make two-columned list start at same line as its section, I did: \documentclass{article} \usepackage{cprotect} \usepackage{tasks} \begin{document} \section{Languages} \...
1
vote
1answer
103 views

avoid line overflow in algorithm

How can I stop lines of my algorithm to be overflowing as shown in the picture below, I would like to break the lines that are too long into 2 lines and just go down to the next line if one line ...