Does anyone know if it is possible to change TextMate's display font via
Applescript. I'd like to do this so that I can work in one font size, and
print in another.
Advance thanks for any help.
-Brandon
Take a look at the screenwriting bundle, which uses Prince for PDF
output.
http://ollieman.net/screenbundle
--oliver
On Mar 28, 2007, at 5:00 AM, textmate-request(a)lists.macromates.com
wrote:
> Has anyone here downloaded and installed Prince? I'm increasingly
> happy using TextMate for almost all of my writing and so I thought
> to give the CSS + XHTML route a go. I downloaded Prince and ran
> install.sh both as root (using sudo) and as a regular user. But
> when I go to use Prince or ask for help -- "prince -- help" all I
> get is this:
>
> /usr/local/bin/prince: line 3: /usr/local/lib/prince/bin/prince: No
> such file or directory
> /usr/local/bin/prince: line 3: exec: /usr/local/lib/prince/bin/
> prince: cannot execute: No such file or directory
>
> I know this is off-topic for this list, but I was hoping someone
> here was working towards a similar workflow and had done it
> successfully.
>
> john
Has anyone here downloaded and installed Prince? I'm increasingly
happy using TextMate for almost all of my writing and so I thought to
give the CSS + XHTML route a go. I downloaded Prince and ran
install.sh both as root (using sudo) and as a regular user. But when
I go to use Prince or ask for help -- "prince -- help" all I get is
this:
/usr/local/bin/prince: line 3: /usr/local/lib/prince/bin/prince: No
such file or directory
/usr/local/bin/prince: line 3: exec: /usr/local/lib/prince/bin/
prince: cannot execute: No such file or directory
I know this is off-topic for this list, but I was hoping someone here
was working towards a similar workflow and had done it successfully.
john
> I'll give a talk on the ConTeXt bundle next weekend in
> Epen/Netherlands. Until then I will enchance it a lot and post it to
> the ConTeXt mailing list. (And here, if anyobdy is interested.)
>
>
> Patrick
Patrcick,
Would you mind posting a link to your talk here too? (I don't
subscribe to the
ConTeXt mailing list anymore)
> I suppose that given that the syntax is very similar, we could try to
> add ConTeXt to the existing LaTeX bundle and try to make the commands
> work for ConTeXt as well. I'd be happy to help people out with this,
> but I don't know much ConTeXt. (On the other hand, I do know the
> workings of the LaTeX bundle pretty well ;) ). So perhaps we can
> figure out what needs to be done and then start doing it.
>
> Do I understand correctly that ConTeXt is an extension of TeX, i.e.
> all TeX code is valid in general? In that case we can use the
> existing TeX syntax and include it, and just add the special features
> that ConTeXt has.
>
> Really the only reason ConTeXt is not part of the LaTeX bundle at
> this point is (I think) simply the fact that the people who have
> worked on the LaTeX bundle haven't had much use for ConTeXt. But I
> see no reason not to make it work, if there are enough people
> interested in it and willing to make it work.
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
>
>
Haris,
In general, I believe that you can use plain tex commands, but
ConTeXt also provides a complete macro
set built on TeX, so that you do not need to use plain TeX commands.
I've attached a good template file from Sanjoy Mahajan that you can
typeset in TeXShop.
-paul
% "Hello world!" document for the ConTeXt typesetting system
%
% === History ===
% 2006-12-29 Sanjoy Mahajan <sanjoy(a)mit.edu>
% * Created
%
% This document is the public domain (no copyright).
\setupcolors[state=start] % otherwise you get greyscale
\definecolor[headingcolor][r=1,g=0.0]
% for the document info/catalog (reported by 'pdfinfo', for example)
\setupinteraction[state=start, % make hyperlinks active, etc.
title={Hello world!},
subtitle={A ConTeXt template},
author={Sanjoy Mahajan},
keyword={template}]
% useful urls
\useURL[author-email][mailto:a.u.thor@somewhere.edu][]
[a.u.thor(a)somewhere.edu]
\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
\useURL[sanjoy][mailto:sanjoy@mit.edu][][sanjoy@mit.edu]
% for US paper; the sensible default is [A4][A4] (A4 typesetting,
% printed on A4 paper)
\setuppapersize[letter][letter]
\setuplayout[topspace=0.5in, backspace=1in, header=24pt, footer=36pt,
height=middle, width=middle]
% uncomment the next line to see the layout
% \showframe
% headers and footers
\setupfooter[style=\it]
\setupfootertexts[\date\hfill \ConTeXt\ template]
\setuppagenumbering[location={header,right}, style=bold]
\setupbodyfont[11pt] % default is 12pt
\setuphead[section,chapter,subject][color=headingcolor]
\setuphead[section,subject][style={\ss\bfa},
before={\bigskip\bigskip}, after={}]
\setuphead[chapter][style={\ss\bfd}]
\setuphead[title][style={\ss\bfd},
before={\begingroup\setupbodyfont[14.4pt]},
after={\leftline{\ss\tfa A. U. Thor $\langle$\from[author-email]$
\rangle$}
\bigskip\bigskip\endgroup}]
\setupitemize[inbetween={}, style=bold]
% set inter-paragraph spacing
\setupwhitespace[medium]
% comment the next line to not indent paragraphs
\setupindenting[medium, yes]
\starttext
\title{Hello, world!}
Here is a hello-world template document to illustrates a few \ConTeXt\
features. Have fun. You can find a lot more information at
\from[wiki]; the preceding text should be colored and clickable, and
clicking it should take you to the wiki.
\subject{A list}
Here is an example of a list.
\startitemize[a] % tags are lowercase letters
\item first
\item second
\item third
\stopitemize
\subject{Math}
An equation can be typeset inline like $e^{\pi i}+1=0$, or as a
displayed formula:
\startformula
\int_0^\infty t^4 e^{-t}\,dt = 24.
\stopformula
% don't use $$...$$ (the plain TeX equivalent)
You can also have numbered equations:
\placeformula[eq:factorial-example]\startformula
\int_0^\infty t^5 e^{-t}\,dt = 120.
\stopformula
And you can refer to them by name. I called the previous equation {\tt
factorial-example}, and it is equation \in[eq:factorial-example].
\ConTeXt\ figures out the number for you. And with interaction turned
on, you can click on the equation number to get to the equation.
\subject{Text with figures}
Now text with a few figures. The first figure goes on the right, with
the paragraph flowing around it.
\placefigure[right,none]{}{\externalfigure[dummy]}
\input tufte
The next figure will go inline, like a displayed formula:
\placefigure[here,none]{}{\externalfigure[dummy]}
\input tufte
Here's another reference to the numbered equation -- equation
\in[eq:factorial-example] on \at{page}[eq:factorial-example], so that
you can test clicking on it or on the page reference.
% most plain TeX commands work
\vfill
\noindent
\framed[corner=round, width=\textwidth,height=1in,
backgroundcolor=gray,background=color]
{This document is in the public domain, so that you can improve it,
share
it, and otherwise do what you want with it.
Suggestions are welcome. You can send them to me
at \from[sanjoy] (Sanjoy Mahajan).}
\stoptext
Hi,
I noticed some weird indentation problem when using "Insert as
Snippet" as the output for a command. I reduced it to a simple test
case (at least I hope):
Make a command with
Output: "Insert as Snippet"
Command: echo -n "$TM_SELECTED_TEXT"
Example text:
✂------✂------✂------✂------
- list1
[tab]- indented list2
paragraph 1
paragraph 2
✂------✂------✂------✂------
If I select the text somewhere in the first line to the end and run
the command, nothing changes, which is good.
If I select the text somewhere after the tab in the second line to
the end I get this:
✂------✂------✂------✂------
- test list
[tab]- test indented list
[tab]paragraph 1
[tab]paragraph 2
✂------✂------✂------✂------
If I use "Replace selected text" instead, this doesn't happend.
So, if I understand this right: When a command inserts a snippet on a
indented line, everything in the snippet is indented. Why?
Just in case, I deselected "Re-indent pasted text" in the prefs,
still the same.
Am I missing something?
Thanks
--
FredB
Hi,
I was wondering if there's an easy to to prefix or suffix selected
lines with a string.
Anyone who has used BBEdit will know what I am taking about.
I assume there is a way to do this, but I was hoping to avoid regular
expressions other overly complex gyrations.
Thanks in advance.
I've found this topic a few times in the archives, but never came up
with a definitive answer.
I'm using Textmate for basic XHTML/CSS/JavaScript editing and while
Camino and Safari happily pop right up when I choose "Open Document
in Running Browser(s)" and Refresh when I pick "Refresh Running
Browser(s)" but Firefox responds a bit differently.
It doesn't respond at all to "Open Document in Running Browser(s)"
and Refresh Running Browser(s)" just opens a new, empty, window or tab.
It's a bit frustrating as Firefox is my browser of choice for working
on sites, thanks of course to the Web Development plugin among others.
Any advice?
Hi all.
I've just finished the 0.1 release of a command I've been working on
tonight, based on Tom Counsell's (http://tom.counsell.org/view/
ExcelToLatexTableConvertor) excel2latex, that will take an excel
table from clipboard (copy from excel. doesn't work for selected text
yet.) and run by typing excel[tab] (excel⇥').
It requires that the longtable package is included, but if you're
working with tables, you'll probably want that anyway. This isn't
perfect, you'll probably want to change the '\begin{longtable}{c c c
c c c }' to format the rows how you like, but it seems to work for me.
let me know what you think. I know this saves me a lot of time, so I
hope it will for you too.
Cheers, Al.
☠☢✯☢☠