Rank: 25 based on 1697 downloads (last 30 days) and 2 files submitted
photo

Florian Knorn

E-mail
Lat/Long
59.858562, 17.63893

Personal Profile:

Homepage: http://www.florian-knorn.com

Professional Interests:

 

Watch this Author's files

 

Files Posted by Florian View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
16 Apr 2014 Screenshot M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn development environme..., source code highlight..., latex, tex, package, mcode 1664 210
  • 4.86792
4.9 | 109 ratings
23 Jun 2008 Screenshot Arrowhead arrowh draws a solid 2D arrow head into the current plot. Author: Florian Knorn annotation, customization, arrow, head, plot, line 33 13
  • 4.91667
4.9 | 12 ratings
Comments and Ratings by Florian View all
Updated File Comments Rating
14 Apr 2014 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn

@Ofelie: I suspect something with file and/or font encodings. Try this. Find this line in your local mcode.sty "{delta}{{\tiny$\Delta$}}1 % \Delta" and insert this below "{µ}{{$\mu$}}1 % \mu" (without the quotes of course). Does that help?

By the way, adding a "µ" to the mcode demo document half-works. While it doesn't seem to render on screen, it also doesn't break compilation...

09 Apr 2014 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn

@Ofelie: "An error" is not very descriptive of the problem...

09 Apr 2014 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn

@Sevada: Have a look at the documentation (top of the mcode.sty file), in particular the "useliterate" option.

05 Nov 2013 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn

@JH: As I said many times before, please have a look at the listings documentation (type "texdoc listings" in a command prompt, or find it here: http://mirrors.ctan.org/macros/latex/contrib/listings/listings.pdf), Section 4.8 in particular.

05 Nov 2013 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn

@Tony Almeida: Thanks for the pointer. The font size is static for each code block / inline code is static (it's set in the .sty file), so it doesn't change with context (such as in a footnote). As a remedy, I've updated the package for you to include a new \mcodefn{} command, which produces the inline code in footnotesize. Have a look at the mcode.sty for more details, in case you want to further adapt it for your particular application.

Comments and Ratings on Florian's Files View all
Updated File Comment by Comments Rating
16 Apr 2014 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn Karlsson, Stefan

BTW, great work :)

16 Apr 2014 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn Karlsson, Stefan

Until Florian gets around to fixing the "minus sign bug" for us, here is the fix spelled out for all:

1. open the style file
2. go to end of file, just before the "\endinput" statement, enter the following:

\makeatletter
\lst@CCPutMacro\lst@ProcessOther {"2D}{\lst@ttfamily{-{}}{-{}}}
\@empty\z@\@empty
\makeatother

save file and start typesetting. Haven't experimented with this too much yet, but it has worked for my examples. The minus sign is correctly interpreted by matlab when you copy from the pdf.

16 Apr 2014 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn Karlsson, Stefan

Until Florian gets around to fixing this for us, here is the fix spelled out for all:

1. open the style file
2. go to end of file, just before the "\endinput" statement, enter the following:

\makeatletter
\lst@CCPutMacro\lst@ProcessOther {"2D}{\lst@ttfamily{-{}}{-{}}}
\@empty\z@\@empty
\makeatother

save file and start typesetting. Haven't experimented with this too much yet, but it has worked for my examples. The minus sign is correctly interpreted by matlab when you copy from the pdf.

15 Apr 2014 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn Ofelie

Thanks, it worked!

14 Apr 2014 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn Knorn, Florian

@Ofelie: I suspect something with file and/or font encodings. Try this. Find this line in your local mcode.sty "{delta}{{\tiny$\Delta$}}1 % \Delta" and insert this below "{µ}{{$\mu$}}1 % \mu" (without the quotes of course). Does that help?

By the way, adding a "µ" to the mcode demo document half-works. While it doesn't seem to render on screen, it also doesn't break compilation...

Contact us