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 would like to know that which one of the following commands is faster in running?

‎\usepackage{A,B,C,...}‎ or

‎\usepackage{A}‎
‎\usepackage{B}‎
‎\usepackage{C}‎
...

Thanks

share|improve this question
add comment

2 Answers

up vote 19 down vote accepted

In either case, the difference is too small to worry about it. If you preamble is slow to process, you might consider using mylatex to speed things up.

share|improve this answer
    
As Will says, the difference will be pretty small as most of the processing will be in the packages themselves. –  Joseph Wright Aug 29 '10 at 10:56
    
+1 for the useful suggestion. I've never heard of mylatex. –  Geoff Aug 30 '10 at 12:06
add comment

I think the only difference that may arise is when you have to specify some options for the packages you are loading. In this case you have to load the packages one by one.

share|improve this answer
7  
(*) unless by design or coincidence, they both accept the same options you intend to pass (e.g., \usepackage[pdftex]{xcolor,graphicx}). –  Geoffrey Jones Aug 29 '10 at 12:38
7  
Or if it's likely that at some stage you might want to comment out one or other of the packages, keeping the packages separate is a good idea... –  Seamus Aug 29 '10 at 12:53
add comment

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.