Recently I got an eBook reader so I've been trying to scan in some of my
books instead of buying them again.
I've got the process down pretty well (thanks to a a OpticBook 3600) but I'm
having trouble doing some fine editing.
As you can imagine, the text can get pretty big so I need automated
processes to make this efficient.
I've been using text mate do do a lot of this - unwrapping text and such,
but I need to remove the page numbers/titles.
So, with this text:
Ser Waymar Royce glanced at the sky with disinterest. "It does that every
day
about this time. Are you unmanned by the dark, Gared?"
Will could see the tightness around Gared's mouth, the barely sup
2 GEORGE R.R. MARTIN
pressed anger in his eyes under the thick black hood of his cloak. Gared had
spent forty years in the Night's Watch, man and boy, and he was not
accustomed
to being made light of. Yet it was more than that. Under the wounded pride,
Will could sense something else in the older man. Yonervous tension that
came perilous close to fear.
---
I need to figure out a way to remove the page numbers and the break that
will be a number then the author/title. And then I'd need to be able to
reflow it like the rest of the text without a big space there.
Any help would be greatly appreciated.
(It stands to mention that I really can't write applescript or anything
along those lines. I need an "inside textmate" solution, or other program I
may have.)
--
View this message in context: http://www.nabble.com/Ebook-Editing-tp15127738p15127738.html
Sent from the textmate users mailing list archive at Nabble.com.
I am trialling TextMate with a view to using it with R, but I am slightly
confused as to how I get it to work with R, and indeed the funcionality with
R.
I had niaively assumed that I would be able to just download an R bundle and
install it (like ESS with Emacs), but R isn't listed as a bundle in
TextMate.
Further investigation led me to coming across discusion about Subversion
repository where I did find mention of what might be the R bundle. This led
me onto apparantly needing to download subversion software and I began to
feel I had maybe gone astray, as it started to seem very complicated. There
is also mention of other R options in this mailing list.
All told I'm afraid I need led by the hand a bit to help me sort this out as
to what I might need to do to get TexMate and R workng together.
Many thanks,
Graham
(Reposted as I accidentally responded to an existing thread)
It seems to me that the RSpec bundle's 'it' snippet is in need of some
love. By default, a newly inserted spec passes. This seems odd as it
is misleading. It also makes it harder find what specs still need to
be completed if you return to an RSpec module after a break.
I propose that the 'it' snippet is changed to the following:
it "${0:should ${1:description}}" ${3:do
${2:pending("Needs to be written")}
end}
This tweak simply adds a 'pending' statement as the body of a newly
created spec. When run, the tester will be alerted to an unfinished
test.
Thoughts?
Thanks!
Matt Darby, M.S.
IT Manager / Lead Web Developer
Dynamix Engineering Ltd.
1108 City Park Ave.
Columbus, OH 43206
Cell: (614) 403-5289
www.dynamix-ltd.com
hello
I try to understand how work this file but I don't know python
if texCommand == 'latexmk':
writeLatexmkRc(engine,constructEngineOptions(tsDirs,tmPrefs))
if engine == 'latex':
texCommand = 'latexmk.pl -pdfps -f -r /tmp/latexmkrc '
else:
texCommand = 'latexmk.pl -pdf -f -r /tmp/latexmkrc '
If I understand, in ayy case, you use latexmk ?
is it possible to use pdflatex directly without latexmk ?
Regards Alain
hello
I've a file and I can compile this file with texshop
A lot of teachers can compile it on Linux and XP
I can compile it with the TERMINAL`
pdflatex --shell-escape /Users/ego/Boulot/SANDBOX/trytablor.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
\write18 enabled.
%&-line parsing enabled.
entering extended mode
.....
This is MetaPost, Version 0.993 (Web2C 7.5.6)
(XCasmpTV.mp (/Users/ego/Library/texmf/metapost/tableauVariation.mp)
[0] )
1 output file written: XCasmpTV.0
Transcript written on XCasmpTV.log.
[MP to PDF] (./XCasmpTV.0) [1{/usr/local/texlive/2007/texmf-var/
fonts/map/pdf
tex/updmap/pdftex.map}] (./trytablor.aux) ){/usr/local/texlive/2007/
texmf-dist/
fonts/enc/dvips/base/8r.enc}</usr/local/texlive/2007/texmf-dist/fonts/
type1/pub
lic/fourier/fourier-ms.pfb></usr/local/texlive/2007/texmf-dist/fonts/
type1/adob
e/utopia/putb8a.pfb></usr/local/texlive/2007/texmf-dist/fonts/type1/
adobe/utopi
a/putbi8a.pfb></usr/local/texlive/2007/texmf-dist/fonts/type1/adobe/
utopia/putr
8a.pfb></usr/local/texlive/2007/texmf-dist/fonts/type1/adobe/utopia/
putri8a.pfb
>
Output written on trytablor.pdf (1 page, 33559 bytes).
Transcript written on trytablor.log.
but with textmate
This is MetaPost, Version 0.993 (Web2C 7.5.6)
{/usr/local/texlive/2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
!pdfTeX error: pdflatex (file /usr/local/texlive/2007/texmf-var/fonts/
map/pdfte
x/updmap/pdftex.map): fflush() failed
==> Fatal error occurred, no output PDF file produced!
I would like to be sure that the problem is the script.
My question : Is it possible to use the old script or a new script
for pdflatex
to make a test ?
Alain
Regards
The file : tablor is on CTAN you need to install giac_osx
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
the file use giac and metapost
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx,tablor}
\usepackage[upright]{fourier}
\DeclareGraphicsRule{*}{mps}{*}{}
\begin{document}
\begin{TV}
TV([-5,7],[],"f","x",x^2,0,\tv)
\end{TV}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Hello everyone,
I have just updated my Rails to 2.0.2 but now when I edit a html.erb file,
TextMate doesn't show any syntax highlighting: all the text is white. Is it
possible to add syntax highlighting ???
Thank you and have a good 1!
SIG
Hi list,
When I opened a existing file, then do File>Save as, with a new file
name, and the original file will disappear from the Drawer! I can
verify the file is still in system, but the drawer is out of sync
until I reopen TextMate(or, I have to add "existing file" back into
the drawer manually).
Has anyone seen this? This is repeatable and getting very annoying...
please help.
-Zemian
Hello
I would like to know if it's possible to use the old script to typeset
and view.
I understand a little the old one but with python it's difficult to me
to make modification.
I have a file .tex that use metafont and giac. I can compile this file
with texshop and pdflatex or latex.
With textmate I can compile it only with LaTeX, with pdflatex I have a
strange error fflush ().
I would like to know if the new command can produce this error
Thanks
Regards
Alain Matthes
I'm trying to draw some plots using the tikz
package. The coordinates are computed automatically
via gnuplot. I set the Latex bundle preferences to
use the --shell-escape option as required.
Indeed, when I typeset using CMD R, the graph is drawn perfectly.
But when I use Latex Watch, the graph is not drawn.
What might be the reason? Paths as usual?
Thanks for help,
Piero
I'm sure that this is probably a stupid user error, but one of the few
things which bothers me about TextMate is that it seems to insist on
padding lines with blanks when I mouse click past the end of the line.
This makes it hard to do things like generating clean patches with diff.
Is there a hidden setting somewhere in TextMate so that clicking to
the right of existing text will select an insert point at the end of
the existing line, rather than extending the line with blanks?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
hello all,
i do a lot of work with python and gtk. the builder file is written as
a .glade file, which is xml.
Is there a way that when i edit a .glade file in textmate, i can have
textmate treat the file as if it is an .xml file?
thanks,
shawn
great editor you guys have here by the way. much worth the coin.
A quick query...
When working in Markdown, the language grammar only seems to pick up
headings if they have a blank line (or another heading) above them. So
for instance, this:
# Heading 1
## Heading 2
some text here
## Heading 3
some text here
... is fine, and all headings are recognised as such and coloured
correctly. However, I use { and } in my Markdown documents to enable
folding, and this:
# Heading 1
## Heading 2 {
some text here
}
## Heading 3 {
some text here
}
... would make Heading 3 not be picked up as a heading, even though
the Markdown script will pick it up as such and convert to HTML
properly.
Is it possible to change the language grammar so that the headings
with no blank line above are picked up? At the moment I have to leave
a blank line between all my folded text and I'd like not to have to.
I've had a go at this but my regex-fu is not strong and I ended up
breaking all the highlighting...
Many thanks,
Nigel
Hello
I would like to know exactly when I run pdflatex, if the script
used by TM is the same that the script used by TeXShop because
I have an error with TM (see below) and I don't have an error with
TexShop
Regards Alain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(/usr/local/texlive/2007/texmf-dist/tex/context/base/supp-pdf.tex
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count92
\scratchdimen=\dimen105
\scratchbox=\box27
\nofMPsegments=\count93
\nofMParguments=\count94
\MPscratchCnt=\count95
\MPscratchDim=\dimen106
\MPnumerator=\count96
\everyMPtoPDFconversion=\toks17
)
\openout3 = `XCasTV.out'.
system(giac <XCasTV.in )...executed.
system(mpost XCasmpTV)...executed.
File: XCasmpTV.0 Graphic file (type mps)
[MP to PDF] (./XCasmpTV.0) [1
{/usr/local/texlive/2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
!pdfTeX error: pdflatex (file /usr/local/texlive/2007/texmf-var/fonts/
map/pdfte
x/updmap/pdftex.map): fflush() failed
==> Fatal error occurred, no output PDF file produced!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Thanks Paul,
I have check this issue with your suggestion and found the require
'rubygem' line was there. I am suspicious that it may be due to the
environment. I am using Locomotive2 on a Macintosh. I am now looking
into that as a possible issue. But thanks for your reply. It was
something I had thought about as well.
Hi all,
I'm having issues with the Paste Selection Online command. Seems the
culprit is a missing folder in /var/folders. Has anyone ever
encountered something similar? Should I just manually create this
folder?
The feature is completely hosed until I can figure out how it broke
and what to do to resolve it.
Thanks for the help,
- sf
Hello
When I compile a file with pdflatex and texshop, I get a pdf file
but when I use TextMate I have this error :
{/usr/local/texlive/2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map
!pdfTeX error: pdflatex (file /usr/local/texlive/2007/texmf-var/fonts/
map/pdfte
x/updmap/pdftex.map): fflush() failed
I have some difficulties to understand that :
Perhaps some different options when I use TexShop ?
An idea ??
Regards
Alain
Trying to see what changes I have in my Bundles with respect to the
official repository, I have issue the commands in
> http://wiki.macromates.com/Bundles/HowToContribute
> Asunto: Re: [TxMt] Commit bit on the Perl Bundle?
> Responder a: TextMate users <textmate(a)lists.macromates.com>
>
> On 22 Jan 2008, at 00:00, Luke Daley wrote:
>>> What's the situation with getting a commit bit for the Bundles repo?
>>
>> http://wiki.macromates.com/Bundles/HowToContribute
>
>
> Is that the page you meant? I can't see any mention of getting commit.
>
> --
> Andy Armstrong, Hexten
(On the way. That page has a errata in
it tries to change to a dir that doesn't exist)
But I can't get any thing because svn always tells me the same weird
message:
% cd ~/Library/Application\ Support/TextMate/Bundles
% l
total 0
drwxr-xr-x@ 7 juan staff 238B Mar 28 10:35:45 2007 C.tmbundle/
drwxr-xr-x@ 5 juan staff 170B May 7 10:32:34 2007 HTML.tmbundle/
drwxr-xr-x@ 8 juan staff 272B Jul 30 00:09:15 2007 JUAN.tmbundle/
drwxr-xr-x@ 7 juan staff 238B Feb 25 18:12:03 2007 LaTeX.tmbundle/
drwxr-xr-x@ 4 juan staff 136B Feb 8 10:16:01 2007 Man
Pages.tmbundle/
drwxr-xr-x@ 5 juan staff 170B Feb 7 02:07:55 2007 Perl.tmbundle/
drwxr-xr-x@ 5 juan staff 170B Feb 12 15:25:36 2007 Ruby.tmbundle/
drwxr-xr-x@ 5 juan staff 170B Feb 12 11:59:41 2007 Source.tmbundle/
drwxr-xr-x@ 4 juan staff 136B Apr 7 23:36:01 2007 TODO.tmbundle/
drwxr-xr-x 8 juan staff 272B Aug 25 02:36:13 2006 Tcl.tmbundle/
drwxr-xr-x@ 6 juan staff 204B Feb 20 23:50:11 2007 Text.tmbundle/
drwxr-xr-x@ 4 juan staff 136B Mar 16 23:02:15 2007
TextMate.tmbundle/
% svn st http://macromates.com/svn/Bundles/trunk/Bundles/Text.tmbundle
svn: warning: 'http://macromates.com/svn/Bundles/trunk/Bundles/Text.tmbundle'
is not a working copy
is not a working copy. I am not used to use cvs. I wish TextMate had
a gui interface for this rather important process: to know the local
changes with respect the original/current official bundles.
What am I doing bad?
Thanks.
Using Ruby-On-Rails I have been able to use parseexcel with little
trouble. Just today I started to use a script that was working and it
now reports "MissingSourceFile: no such file to load — parseexcel'
I installed parseexcel on my Mac. Have used it a few times in the past
and now can not get the scripts to find it. I am hoping someone can
direct me to where to begin my search, fix, what ever.. I need this to
work.
Thanks in advance
I see it in the Actionscript bundle - but for the life of me I can't
get it to work... any help would be MOST appreciated
Saul Rosenbaum
Visual Chutzpah
---------------------------------
Strengthening Brands Through Illustrated Images And Interactive Design
VISIT US ON THE WEB
web: http://www.visualchutzpah.com
email: lists(a)visualchutzpah.com
illos: http://www.saulrosenbaum.com
blog: http://www.saulrosenbaum.com/blog
---------------------------------
Hi. I happened to notice that the Perl "Read File" snippet was using
bareword filehandles and doing a lot more work than it has to. The following
uses lexical filehandles, 3-argument open (to prevent anything in the filename
from being misinterpreted as an open sigil) and a do block to simplify the
assignment.
Finally, a third, blank position is provided so you can tab straight to the
next line instead of the end of the block.
my \$${1:var} = do { local \$/; open my \$fh, "<", "${2:file}"; <\$fh>; };
$3
PS It's worth mentioning that this is backwards compatible to 5.6 which
should be more than plenty these days.
--
If at first you don't succeed--you fail.
-- "Portal" demo
Schwern and I have been chatting on IRC about Perl support in
TextMate. We're both fairly prolific Perl developers and would like to
be able to maintain the Perl Bundle on behalf of the Perl community.
What's the situation with getting a commit bit for the Bundles repo?
--
Andy Armstrong, Hexten
I've written up a simple snippet to run the current file as a Perl test. To
ensure compatibility it has no bells or whistles, just runs the file through
Test::Harness and displays the output. Future versions might snaz it up but
it would be nice to have something basic at least.
I used Ctrl-Apple-t for the command but it's fine to change that to whatever
the normal convention is for "run a test".
I've attached the .tmbundle file. Sorry if this isn't the proper way to
submit a snippet.
--
Whip me, beat me, make my code compatible with VMS!
> Dear Sir, I use a keyboard mapping to write spanish accents in latex.
>
> This is a development made for Juan L. Verona, http://
> www.unirioja.es/cu/jvarona/TeXkeylayout.html
>
> This help me to share latex files without the use of inputenc package.
>
> The code for this keymap is joined in a file down this mail.
>
> I have tried with several applications in Mac OS X and works fine.
> For example, this sentence with Mail.app,
>
> -- "El avi\'on sol\'{\i}a volar bajo el a\~no pasado" (El avión
> solía volar bajo el año pasado)--
>
> Nevertheless, in TexMate the same sentence will be like this
>
> "El avinn sol\'{\i}a volar bajo el a\~no pasado"
>
> Accent followed by a vocal different of "i" doesn't do the
> secuence "\'o" for example.
>
> It seems something particular of the TexMate application. Anyone
> know why this is happening?
>
> Thanks you very much for your help
>
> Pablo L.