Arek Kuźniewski
2007-03-09 10:16:58 UTC
Hello
I have a problem with colouring the java code in my latex document.
I expect environment for example, where I write somethink like this:
--------------------------------------------------------------------
\begin{java}
public interface CellSpan {
public final int ROW = 0;
public final int COLUMN = 1;
public int[] getSpan(int row, int column);
public void setSpan(int[] span, int row, int column);
public boolean isVisible(int row, int column);
public void combine(int[] rows, int[] columns);
public void split(int row, int column);
}
\end{java}
--------------------------------------------------------------------
and it should give me the same efect like this (for example):
--------------------------------------------------------------------
{\bfseries public interface} CellSpan \{ \\
public final int ROW = 0; \\
\{\bfseries public final int\} COLUMN = 1; \\
\\
public int[] getSpan(int row, int column); \\
public void setSpan(int[] span, int row, int column); \\
\\
public boolean isVisible(int row, int column); \\
\\
public void combine(int[] rows, int[] columns); \\
public void split(int row, int column); \\
\\
\}
--------------------------------------------------------------------
Is there any package which let me reach this effect?
Greetings, Arek
------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~->
I have a problem with colouring the java code in my latex document.
I expect environment for example, where I write somethink like this:
--------------------------------------------------------------------
\begin{java}
public interface CellSpan {
public final int ROW = 0;
public final int COLUMN = 1;
public int[] getSpan(int row, int column);
public void setSpan(int[] span, int row, int column);
public boolean isVisible(int row, int column);
public void combine(int[] rows, int[] columns);
public void split(int row, int column);
}
\end{java}
--------------------------------------------------------------------
and it should give me the same efect like this (for example):
--------------------------------------------------------------------
{\bfseries public interface} CellSpan \{ \\
public final int ROW = 0; \\
\{\bfseries public final int\} COLUMN = 1; \\
\\
public int[] getSpan(int row, int column); \\
public void setSpan(int[] span, int row, int column); \\
\\
public boolean isVisible(int row, int column); \\
\\
public void combine(int[] rows, int[] columns); \\
public void split(int row, int column); \\
\\
\}
--------------------------------------------------------------------
Is there any package which let me reach this effect?
Greetings, Arek
------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~->