Programing

Why does this perl code generate a stranger error message?

while(<>){ $line = $_; @blah=split(/\s/, $line); }

Error message: Split loop at expcurve1.pl line 4, <> line 1.

  • why does displaymath enviornment not work within proof env.?
It should! -- JackSnoeyink - 02 Apr 2005
Emacs
How to change comment style? How to stop saving bakcup files?

Cygwin

With scp. How do I automatically let it convert ascii file to unix format?

Why is printing characters to terminal so slow (I mean when using things like printf from a c-program )?

assertion failure does a stack dump that takes like 2 seconds. Why so long? I don't want to do any stack dump.

General Unix
How to mount a remote machine's dir as a drive?

Question Answered

* Make a latex macro work both with and without $ I have a macro \tomath that I put around things that will go to math mode if it is not already there. \def\tomath#1{{\relax\ifmmode #1\else $#1$\fi}}

Examples of its use: \def\degrees{\tomath{{}^\circ}} \def\Om#1{{\tomath{\Omega(#1)}}} \def\Th#1{{\tomath{\Theta(#1)}}} \def\Ologn{\O{\log n}} \def\Onlogn{\O{n\log n}} \def\O#1{{\tomath{O(#1)}}} \def\On#1{\O{n^{#1}}}

Revision: r1.1 - 23 Jul 2005 - 18:48 - Main.guest
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback