Search found 6 matches

by Thuleman
Mon Dec 13, 2010 12:45 am
Forum: Graphics, Figures & Tables
Topic: Captions and labels with section numbers
Replies: 2
Views: 4249

Re: Captions and labels with section numbers

Hey I have been away for a long time. Very sorry for the late answer.
Thank you very much for the answer, however I still have a problem.

\begin{section}
lstlisting... This will have 1.1
\begin{subsection}
lstlisting... This will have 1.1.2 -- I would like it to have 1.1.1

never mind, I use ...
by Thuleman
Fri Oct 15, 2010 11:59 am
Forum: Graphics, Figures & Tables
Topic: Captions and labels with section numbers
Replies: 2
Views: 4249

Captions and labels with section numbers

Hi.

If I have 2 sections and 1 subsection, with 4 listings in each, then I would like the caption and references to do the following: (same with tables and figures)
Section 1:
Listing 1.1
Listing 1.2
Listing 1.3
Listing 1.4
Section 2:
Listing 2.1
Listing 2.2
Listing 2.3
Listing 2.4
Subsection 2.1 ...
by Thuleman
Thu Oct 14, 2010 10:33 pm
Forum: Texmaker and TeXstudio
Topic: labels in listings doesn't show in structure
Replies: 0
Views: 1913

labels in listings doesn't show in structure

Hi.

When I insert some source code I do the following:

\lstinputlisting[firstline=43,lastline=45,firstnumber=43,caption={TCP variabler},
label={lst:variabler}]{server.cpp}

However the label doesn't show up in the structure window under labels.

How do I fix this?

I use TexMakerX 1.9.9a (SVN ...
by Thuleman
Wed Oct 13, 2010 12:20 pm
Forum: Fonts & Character Sets
Topic: How to: Consolas font in listing
Replies: 3
Views: 12523

Fixed

It works!

I downloaded the inconsolata package, and then used \ttfamily
by Thuleman
Wed Oct 13, 2010 11:35 am
Forum: Fonts & Character Sets
Topic: How to: Consolas font in listing
Replies: 3
Views: 12523

Re: How to: Consolas font in listing

Thank you very much. Is it possible for you to show me how to implement it in my code? I cannot figure it out. I have googled it and tried
by Thuleman
Wed Oct 13, 2010 10:55 am
Forum: Fonts & Character Sets
Topic: How to: Consolas font in listing
Replies: 3
Views: 12523

How to: Consolas font in listing

Hi.

How do I change the font in the listing package to consolas font?
Right now I have:
\lstset{
language=[Visual]C++,
frame=single,
backgroundcolor=\color{lbcolor},
keywordstyle=\bfseries\ttfamily\color[rgb]{0,0,1},
identifierstyle=\ttfamily,
commentstyle=\color[rgb]{0.133,0.545,0.133 ...