Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In my java code, I have extensively used the variables and methods from the BigInteger library. In LaTeX, in order to display my code neatly, I have used listings package. So between the \begin{lstlisting} and \end{lstlisting} I paste the aforementioned java code. But I am not able to compile it in TexStudio because anywhere I've used the methods from the BigInteger library, i get an error.

However, if I have a java code that doesn't use the BigInteger library, it gets compiled properly in TexStudio without any errors.

I have TexStudio for creating my LaTeX documents. Is there anyway to circumvent this issue?

share|improve this question
(La)TeX-related questions are better asked at TeX - LaTeX. Your question has been flagged so that it gets migrated there. – Alexis Pigeon Oct 18 '12 at 7:35
Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. Can you also add a small example of code that gives the error? – egreg Oct 18 '12 at 10:56

migrated from stackoverflow.com Oct 18 '12 at 8:45

1 Answer

Either use BigInteger with full package name i.e. java.math.BigInteger or add an import statement as import java.math.BigInteger; in the import section(top) of your file..

Hope this helps resolving your issue.

share|improve this answer
Nope. Thats what i have done. I believe you have understood the question wrong, the texstudio doesnt compile it when i use BigInteger library in my java code. – Ashwin Ganesh Oct 18 '12 at 1:56
1  
I may have missed to answer your real issue but that wasn't very clear in the question. if it doesn't compile, what is the issue you get? Does it work when you use Integer instead? – Yogendra Singh Oct 18 '12 at 2:05
@Yogendra Singh, Yes it does. It works fine when Integer is used. TexStudio is not able to generate a pdf document when a BigInteger Code is provided. – Ashwin Ganesh Oct 19 '12 at 17:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.