Questions tagged [java]

{Java} is a general-purpose, concurrent, class-based, object-oriented programming language.

is a general-purpose, concurrent, class-based, object-oriented programming language. Use this tag for questions involving both Java code and (La)TeX; if your question deals with formatting and displaying Java code in a (La)TeX document, you may be interested in the and tags, as well as the and packages.

Syntax Highlighting

If your question or answer contains writing Java code, you can enable syntax highlighting by doing the following:

<!-- language: lang-java -->

    code goes here

For example, here's how this works on a “Hello, world!” program:

// A "Hello, world!" program.
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}

See here for a more detailed overview of syntax highlighting on Stack Exchange.

64 questions
10
votes
2 answers

Is there a LaTex java .jar?

I'm very interested in using the Java LaTeX Report library, but one of the requirements is an installed or portable LaTeX distribution. My software would be running on various servers and it would not be possible to install any software (only…
4
votes
0 answers

Java library to parse Latex source file

Is there any java library that can extract title, keywords and abstract from latex source file. Something which works similar to jsoup library that returns html tags. Thanks in advance.
Prachi
  • 41
2
votes
0 answers

Producing LaTeX output in Java

Is there a Java library for producing LaTeX output from Java? I want a methos, where the argument will be the String and the output will be PDF.
Jony
  • 21
2
votes
1 answer

Include java code to display text in latex

is it possible to do something like the following in texlipse? \documentclass{article} \usepackage{listings} \begin{document} \section{Title} import java \subsection{Subtitle} I want to display some java result \begin{lstlisting} …
Fseee
  • 123
  • 1
  • 3
1
vote
0 answers

producing latex strings from java

Basically I have a string such as String latex = "\\documentclass{article} \\usepackage[utf8]{inputenc} \\title{First document} \\author{me} \\begin{document} \\maketitle \\begin{abstract} XXX \\end{abstract} YYY \\end{document}" How can I…
Stephen
  • 11
0
votes
0 answers

I need to generate a large technical document with dynamically generated data from java

I'm writing an Interface Control Document (ICD) that contains dynamic data queried from relation databases and extracted from Magic Draw SysML/UML models. The java "backend" to obtain/generate this information already exists. All the data I need to…
0
votes
1 answer

I want to compile a pdf document using latex as part of a java program

I'm doing a java project and want to produce a word doc or pdf of inputted (formatted) text. I've read that I could use Apache POI xwpf, but I know infinitely more LaTEx commands than apache poi. How would I get my java program to open miketex and…