Search found 5 matches

by calder
Fri Feb 06, 2009 3:51 am
Forum: General
Topic: Example Environment, (a la 'lshort')
Replies: 10
Views: 14856

Re: Example Environment, (a la 'lshort')

Thank youguys so much! I think you may have collectively solved my problem!!! While I don't really understand what phi's code DOES, I know where to plug in options, and that's all I need. Thankyou thankyou thankyou! I'm sure I'll enjoy asking (and maybe answering) more questions in the future ...
by calder
Thu Feb 05, 2009 2:51 pm
Forum: General
Topic: Example Environment, (a la 'lshort')
Replies: 10
Views: 14856

Example Environment, (a la 'lshort')

It's simply a matter of good form, but it would be nicer to have a command like this:
\newcommand{example}[1]{
\begin{LTXexample}[bunch-o'-options]
#1
\end{LTXexample}
}
and simply have to write:
\example{blablabla}

Than to have to write:
\begin{LTXexample}[bunch-o'-options]
#1
\end ...
by calder
Wed Feb 04, 2009 9:52 pm
Forum: General
Topic: Example Environment, (a la 'lshort')
Replies: 10
Views: 14856

Re: Example Environment, (a la 'lshort')

Thanks a ton gmedina and localghost! One last problem, and then I promise to stop bugging youguys. How can I include this in a macro? Do I need to define a custom .sty file?
by calder
Wed Feb 04, 2009 3:36 am
Forum: General
Topic: Example Environment, (a la 'lshort')
Replies: 10
Views: 14856

Re: Example Environment, (a la 'lshort')

Hrm, thanks for the help, but unfortunately this isn't quite what I'm looking for. The two problems with it may be very minor, but I've spent nearly 4 hours trying to solve them already and failed, so here they are:
1) There is no line-wrapping for the verbatim code, so the line just keeps going and ...
by calder
Tue Feb 03, 2009 12:06 am
Forum: General
Topic: Example Environment, (a la 'lshort')
Replies: 10
Views: 14856

Example Environment, (a la 'lshort')

What would it take to create a minimal Example environment like the one used in lshort? Basically,
\begin{example}
LaTeX code
\end{example}

Generates the verbatim "LaTeX code" to the left and a box with the compiled version of the code to the right. I've tried looking at 'lshort.sty' but it ...