I head in a webcast that you can copy selected text in firefox and
with a keyboard shortcut have textmate create a new file and paste
the selection.
How is this done?
Can it post directly to a new blog post markdown file? Thanks
Hi Haris,
Revision 6390. Label completion is ok, citation completion fails
silently. No problem with the same files I have used when I remove /
Library/Application\ Support/TextMate, and put the environment.plist
back in charge.
> So, what happens when you type, in the terminal, "/usr/texbin/
> kpsewhich"?
/usr/texbin/kpsewhich
gives
Missing argument. Try `kpsewhich --help' for more information.
Özgür
--
Özgür Gökmen | og(a)pyromedia.org
Hi Haris and everybody else,
I split up my different questions into different emails.
>> So, for example, let's say I have a custom command for including
>> scheme and figures, and I would like to have that command colored
>> in a specific way; what would be the best and most forward-
>> compatible way of doing it? If I understand things correctly,
>> then, if I change the LaTeX language file directly, future updates
>> to the bundle are going to be ignored (overwritten by my changed
>> file). I guess, it would be better to put those personal additions
>> into an extra file. But what is the correct/optimal way to call/
>> include it in the LaTeX language file?
>
> I don't know what you mean about including scheme. Do you mean
> scheme code via the lstlistings environment or something like that?
> Then we should add those to the official bundle. As for figure
> environments, they should be already targeted by the scope
> mechanism, so you should be able to assign them colors as is, I
> think. Unless I misunderstand what you want to do. Both of these
> two you should also be able to do by creating your own bundle and
> including the latex grammar. However there is one tricky bit: The
> rules that match environments match the spaces before the \begin,
> so that they match from the beginning of the line (for coloring the
> background more nicely). So if your rule matches only from the
> \begin part, it does not matter whether it appears first or not,
> since the built-in rule matches EARLIER. So you would need to be
> matching those spaces as well. (I've been bitten by this myself ;) ).
Sorry for choosing a potentially confusing example. What I meant to
say is that I have a custom command for including schemes and
figures: \includescheme{scale}{name}{caption} which inserts a
centered figure environment, inserts file <name> at scale <scale>,
creates a label <name>, and inserts the caption <caption>. So, it is
not targeted by the scope mechanism ... But this just served as a
specific example.
My question was more general. In case I have a custom LaTeX command
(any command) that I want to have a syntax colored, i.e., or in case
I want to change an existing syntax color behavior, *what is the best
way to do it*?
I just don't understand yet how to do it so that it does not break
forward compatibility. I assume, it would be best to put my own
private additions/changes to the syntax coloring into a separate
language file, e.g. "LaTeX HF", instead of just writing them into the
"LaTeX" language file itself. Is that correct? But, then, how do I
either call/include it from the LaTeX file or vice versa? How do I
set up such a separate file for my private additions?
Thanks.
Holger
__
Eidgenössische Technische Hochschule Zürich (ETH Zürich)
Department of Materials
Wolfgang-Pauli-Str. 10, HCI H515
CH-8093 Zürich
Switzerland
Phone: (+41) 1 633 6474
Fax: (+41) 1 633 1390
Email: frauenrath(a)mat.ethz.ch
Web: http://www.polychem.mat.ethz.ch/frauenrath/
Harris: I got rid of ~/.MacOSX/environment.plist, rebooted. My path
is /usr/texbin as assigned by /etc/profile. Binaries actually do live
in /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/. Label completion
seems to be working. However, the citation completion command cannot
locate the binaries.
\footcite{The tex binaries cannot be located!}.
On a side note, you might also consider to deal with the Documention
for Package command. See the path in the error note below. teTeX is
not the only distro available. ;)
Traceback (most recent call last): File "/Library/Application Support/
TextMate/Bundles/Latex.tmbundle/Support/bin/PyTeXdoc.py", line 31,
in ? docIndexFile = open(docIndex,'r') IOError: [Errno 2] No such
file or directory: '/usr/local/teTeX/share/texmf.tetex/texdoctk/
texdoctk.dat'
Özgür
Charilaos Skiadas <skiadas@...> writes:
> among you and with no paper deadlines, please remove any special PATH
> specifications that you had made just for LaTeX TM (likely based on
> previous recommendations by me), and let me know if the commands
> still work for you, and if not then also where, to the best of your
> knowledge, your tex binaries are.
> Haris
--
Özgür Gökmen | og(a)pyromedia.org
After I run and typesetting a document with command+R, TM shows me an
overview of the appeard errors. At the bottom left of this window,
there is a link for previewing the document. Now I have 2 question:
1. How could I achieve that the document is automatically displayed
for preview?
2. I instaled the file pdfsync.sty in the following directory: ~/
Library/texmf/tex/latex/pdfsync.sty. In the document I called the
packaged with \usepackage{pdfsync}.
How do I use pdfsync now?
Thanks
Christian
Hello,
I installed Latex with the i-installer and then used textmade to work
with it.
Wherefrom does Textmate know the install location of latex?
Thanks
Christian
Harris: Checked out revision 6378 -- the bundle, support, and
plugins. I get the following for citation completion (opt-esc). The
info you will see at the bottom is from the first entry in the bib
file. I can post the preamble of the tex file if that would help.
Özgür
/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
82:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filemap'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
53:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
168:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
139:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
138:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 4: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
173:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
fileget_citations'
from /tmp/temp_textmate.7uvsfX:7
Found citekey: Adanir2001aa
Found key: Address
Found contents: Boulder
Found key: Author
Found contents: Fikret Adanır
Found key: Booktitle
Found contents: Fascism Outside Europe
Found key: Date-Modified
Found contents: 2006-11-11 01:33:36 +0100
Found key: Editor
Found contents: Stein Ulgevik Larsen
Found key: Juratitle
Found contents: Kemalist Authoritarianism and Fascist Trends in
Turkey during the Interwar Period
Found key: Pages
Found contents: 313--61
Found key: Publisher
Found contents: Social Science Monographs
Found key: Title
Found contents: Kemalist Authoritarianism and Fascist Trends in
Turkey during the Interwar Period
Found key: Year
Found contents: 2001
--
Özgür Gökmen | og(a)pyromedia.org
Harris: The bib file lives in the same working directory, so within
the brackets was just the bib filename,
not the path. Checked out Revision 6386. Quite strangely, I couldn't
get the completion commads work at
all -- on the very same tex and bib files. Neither via the key
combo, nor via the menu. Basic completion
via the esc key failed as well. Pointing to another bib file, I got
the citation based on current word
command working. Label based on current word command prints the word
"exit" within the brackets.
Özgür
Charilaos Skiadas <skiadas@...> writes:
> Özgür, Helge,
> this should be fixed now. The problem in Helge's case is that I was
> not expecting full paths in the bib file. Özgür if you still have
> problems let me know how the \bibliography{...} line says in your
> case. In any case, the error message should now be a bit clearer.
> Haris
--
Özgür Gökmen | og(a)pyromedia.org
>> And, finally, I have a probably stupid question: I would like to
>> change the menu structure (the commands) in the LaTeX bundle menu.
>> How can I do that? To be more specific, I am sure (well ...) that
>> I had done it before, and it used to work by simply dragging
>> commands from the list in the bundle editor into the menu
>> structure window of the LaTeX bundle. But it does not work
>> (anymore). I can shuffle around commands, and I can move them to
>> "excluded items", but I cannot add a new one.
>
> In the bundle editor, select the LaTeX bundle, and you should see
> the menu structure on the right. Then you should be able to
> rearrange those. If you want to add another command, it must first
> be moved into the LaTeX bundle.
Well, this is precisely what I tried to do (and I think it had worked
that way until a couple of days ago): I clicked on the LaTeX bundle
so that the LaTeX bundle menu structure appeared on the right. I
could shuffle around commands and separators in the menu structure,
and I could remove commands by dragging them to the "Excluded Items"
list.
But when I tried to add a new command by dragging a command from the
LaTeX bundle command list on the left side into the LaTeX menu
structure on the right side (that is the way it is supposed to work,
isn't it?), that field (the menu structure) did not accept any input.
It just did not work.
Any suggestions?
Holger