GeneralHow does he do this???

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
bjorn victor
Posts: 28
Joined: Fri Apr 13, 2007 11:17 am

How does he do this???

Post by bjorn victor »

Hi all,

I downloaded a file called LATEX for Complete Novices by Nicola L. C. Talbot.

(It can be found here: http://theoval.cmp.uea.ac.uk/~nlct/late ... ces_a4.pdf
Note that this will start a download!!)

All over the file there a colored words in the right margin to mark CODE, INPUT, OUTPUT, sometimes even with a nice limiting arrow. How does he do that???

I'm hoping someone can help me out with this...

Many thanks,

bjorn

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How does he do this???

Post by localghost »

I think she can explain best. Just take a look at the source code of this document. It is the first one in the LaTeX section on her personal web site [1]. Copy the relevant parts of the code and that's it.

[1] Dr. Nicola Talbot - LaTeX Related Information


Best regards
Thorsten
bjorn victor
Posts: 28
Joined: Fri Apr 13, 2007 11:17 am

How does he do this???

Post by bjorn victor »

localghost wrote:I think she can explain best.
Oops... If she ever reads this: I apologize.

Thorsten: thank you!

Bjorn
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How does he do this???

Post by localghost »

bjorn victor wrote:[...] Oops... If she ever reads this: I apologize. [...]
The probability is quite high. She's a member of this board.
bjorn victor
Posts: 28
Joined: Fri Apr 13, 2007 11:17 am

Re: How does he do this???

Post by bjorn victor »

Well, in that case I hope she does, because I will need her help...

1) the document class is called novices, so I guess she wrote it herself.
2) One of the things I'm looking for is called \begin{codeS}, but I cannot find any info on that commands in the preamble... I guess the info in the documentclass file?

Bjorn
bjorn victor
Posts: 28
Joined: Fri Apr 13, 2007 11:17 am

Re: How does he do this???

Post by bjorn victor »

Hang on!! I found the .cls file! Looking into it now...
bjorn victor
Posts: 28
Joined: Fri Apr 13, 2007 11:17 am

Re: How does he do this???

Post by bjorn victor »

no... I give up.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How does he do this???

Post by localghost »

The codeS environment is defined in line 530 of the class file. Use the search function of your editor to find other relevant parts.
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

How does he do this???

Post by nlct »

bjorn victor wrote:
localghost wrote:I think she can explain best.
Oops... If she ever reads this: I apologize.
Not to worry, it often happens.

Regards
Nicola Talbot
Post Reply