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'm sorry but I do not understand much English, so I do not understand how to use the command \quickprofile in the 'interfaces' package.

\documentclass[a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage{interfaces}
\usepackage{lipsum}

\begin{document}

{\changefont{shape=it}
  \lipsum[1]
}

{\changefont{size+ = 1}
  \lipsum[1]
}

{\quickprofile2{shape=bf}
  \lipsum[1]
}

\end{document}

Could someone show me an example please?

share|improve this question
    
Can you make it clearer what you want to do with the command? –  Canageek Nov 24 '11 at 2:18
    
Actually I want to understand how it works, that's all! –  Regis da Silva Nov 24 '11 at 3:39
add comment

1 Answer

up vote 6 down vote accepted

The \quickprofile command simply reports in the console output and the log file the result of doing n repetitions of the code of its argument.

e.g.

\documentclass{article}
\usepackage{interfaces}
\begin{document}
\def\foo{This is some text.}
\quickprofile1000{\foo}
\end{document}

The output of the console of this run is:

Profiler: step 0
Profiler: step 1

... 

Profiler: step 998 
Profiler: step 999

(interfaces) quickprofile: Time elapsed for 1000 cycles: 0sec 13ms

This expands \foo 1000 times and reports the amount of time elapsed. I think it is only of practical use to developers who are concerned about the speed of complex code. For end users it is likely to have little value.

share|improve this answer
    
Thank you!!!!!!!!!!!!!!! –  Regis da Silva Nov 24 '11 at 15:40
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.