ÔØÈëÖС£¡£¡£ 'S bLog
 
ÔØÈëÖС£¡£¡£
 
ÔØÈëÖС£¡£¡£
ÔØÈëÖС£¡£¡£
ÔØÈëÖС£¡£¡£
ÔØÈëÖС£¡£¡£
ÔØÈëÖС£¡£¡£
 
ÌîдÄúµÄÓʼþµØÖ·£¬¶©ÔÄÎÒÃǵľ«²ÊÄÚÈÝ£º


 
latexдÂÛÎÄ£¬pdf×ÖÊýͳ¼Æ·½·¨
[ 2012/4/24 21:21:00 | By: ÃÎÏè¶ù ]
 

latexдÂÛÎÄ£¬pdf×ÖÊýͳ¼Æ³ÉÁËÒ»¸öÎÊÌ⣬ºÃÔÚÊÕ¼¯Ò»Ð©×ÊÁϺóÖÕÓÚµÃÒÔ½â¾ö
http://topic.csdn.net/u/20110301/15/5d09a943-8319-4093-bf79-357ef9dfea62.html

$ cat cwc_utf8.pl
#!/usr/bin/perl -w
 
my $s;
my $x;
my $y;
my $ncword = 0;
my $cword = 0;
 
while (<>) {
    $s = $_;
    $s =~ s/\s//g;
    $x = () = $s =~ /[\x00-\x7f]+?/g;
    $y = () = $s =~ /[^\x00-\x7f]+?/g;
 
    $ncword += $x;
    $cword += $y;
}
 
$cword /= 3;
 
print "\n×ÖÊýͳ¼Æ\n";
print "\t·ÇÖÐÎÄ(²»º¬¿Õ¸ñ):\t$ncword\n";
print "\tÖÐÎÄ:\t\t\t$cword\n";
 
$s = $ncword + $cword;
print "\t¹²¼Æ:\t\t\t$s\n";

дÈëMakefile£º

$ cat Makefile
TARGET := thesis

all: wordcount
    @okular $(TARGET).pdf 2> /dev/null

pdf: wordcount

report:clean
    xelatex $(TARGET)
    bibtex  $(TARGET)
    xelatex $(TARGET)
    xelatex $(TARGET)

wordcount:report
    pdftotext $(TARGET).pdf
    @cwc_utf8.pl $(TARGET).txt

clean:
    @make -C chapter clean
    @rm -vfr *.pdf *.out *.log *.toc *.aux *.bak *.bbl *.blg *.txt

¿ÉϧpdftotextÓÐЩСƫ²î£¬Éú³ÉµÄtxtÎļþÉÙÁ˼¸¸ö×Ö·û£¬ºÍhttp://felix-cat.com/tools/wordcount/µÄͳ¼Æ½á¹ûÓÐЩ³öÈ룬²»¹ýÖ»Ê**ÀËãµÄ»°¾Í¹»ÓÃÁË

from:http://stesen.wikidot.com/wc

 
 
  • ±êÇ©£ºlatex pdf ×ÖÊýͳ¼Æ 
  •  
    Re:latexдÂÛÎÄ£¬pdf×ÖÊýͳ¼Æ·½·¨
    [ 2013/4/12 11:22:17 | By: zhtlancer(ÓοÍ) ]
     
    zhtlancer(ÓοÍ)ÔÞ£¬Ò»Ö±Ã»ÓÐÕÒµ½ÄܱȽϺõÄͳ¼Æ×ÖÊýµÄ±à¼­Æ÷£¬¿´À´Ö»ÄÜÓÃÕâÕÐÁË¡«
     
     
    ·¢±íÆÀÂÛ£º
    ÔØÈëÖС£¡£¡£

     
     
     

    ÃÎÏè¶ùÍøÕ¾ ÃηÉÏèµÄµØ·½ http://www.dreamflier.net
    ÖлªÈËÃñ¹²ºÍ¹úÐÅÏ¢²úÒµ²¿TCP/IPϵͳ ±¸°¸ÐòºÅ£ºÁÉICP±¸09000550ºÅ

    Powered by Oblog.