Take the 2-minute tour ×
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.

I have got a long list of bib-files

\bibliographystyle{siam}
\bibliography{../mybib/bibA,../mybib/bibB,../mybib/bibC, and so on }

My problem is two-fold:

(i) First, it seems that the argument of \bibliography must not contain linebreaks, so I really have to write a huge list of bibfiles in one single line. This does not make the code more readable, so is there a way work around this?

(ii) Second, I use Texmaker 3.2 on my system. However, it seems the editor component of Texmaker doesn't let me edit my code beyond a certain column position, although it still shows my code. I regard this as very annoying and I would like to know whether this can be corrected somehow?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

In relation to problem i)

The following works for me in TexStudio

\bibliography{fileA,%
              fileB,%
              fileC}

The % at the end of each line fixes the problem which you describe.

Not sure about problem ii)

share|improve this answer
    
Strange enough for me, this seems to solve the first problem. Is there any logical reason why this works? –  shuhalo Jan 23 '13 at 13:45
    
When LaTeX encounters a % character while processing an input file, it ignores the rest of the current line, the line break, and all whitespace at the beginning of the next line. This can be used to write notes into the input file, which will not show up in the printed version. –  Nicholas Hamilton Jan 23 '13 at 16:25

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.