Hi list,
I'm currently in the process of rearranging and cleaning my thesis files. My chapter files are arranged in subdirectories, and I've decided to change the \include{path/file} occurrences in my main latex file to \includefrom{path/}{file}, so that I don't have to give the absolute path for every single included file or figure in "file.tex" (for example, changing the name of "path" would involve a tedious search and replace procedure in "file.tex"). This command is provided by the import package (along with the \import command, which is the \input counterpart).
For example, if I have a file "path/figure.pdf" that I want to include in "file.tex", I would normally have to do \includgraphics{path/figure.pdf}, even though "file.tex" is itself in the "path/" directory. That's not neat, and quite unpractical indeed. Including "file.tex" using \includefrom{path/}{file} instead allows to circumvent this issue, and allows to use \includgraphics{figure.pdf}, where figure.pdf is resolved in "path/". Anyway, this is an preliminary for those who wouldn't know what the import package is for.
So, my question is, would it be simple to make the LaTeX bundle cooperate with \includefrom and \import too just as it does with \include and \input? For example, I find it very frustrating not to be able to use "Open included item" command, but I didn't find any simple way to extend the functionality of the bundle in that direction.
Thanks,
enas
How do I add 'xltxtra' to the xelatexIndicators in LaTeX 2? The xltxtra package alone loads fontspec and xunicode in the right order. Thanks for any pointer.
-- Gildas
Hello,
Application shall not bind ⌥letter or ⇧⌥letter shortcuts as those are used to type accented/special characters on various keyboard layouts.
TM follow this rule with one exception "Insert Scratch Snippet" that binds to ⇧⌥S which makes typing Ś (accented S) impossible in my case.
I believe this is a bug and this keyboard shortcut shall be corrected to i.e. ⇧⌃⌥S.
Filled at: http://github.com/textmate/textmate.tmbundle/issues/issue/1
Regards,
--
Adam
Dear List,
I have a strange bug to report. Using 10.6.3, Textmate and Skim
together (via the LaTeX bundle) seems to trigger a nasty bug in OS X.
As far as I can tell, it is triggered when skim reloads a changed PDF
file, but I haven't been able to completely reliably find out exactly
what triggers it. At first I thought it was to do with the pdfsync
functionality, but then I noticed it could be triggered simply if the
files changed. Whatever is causing it, once triggered any new process
on the machine will use up 100% of the CPU. The only way to get
things back to normal is to log out of the user account and back in
again.
I realise that this is a very sketchy bug report - I'm posting it here
in the hopes that someone else has run into it and has managed to work
out exactly what is causing it better than I have. I'm not even sure
if the fault lies with skim or with textmate or with the latex bundle.
Best wishes,
Nicholas
In GetBundles I see two for DocBook (one by Brian Hogan, the other by
weppos), is one better than the other?
Is TextMate the best editor to use for DocBook XML on the Mac, if I'm
new to DocBook?
Thanks.
Dan
Hi
I have recently started using textmate, and like it very much, with the exception of the search and replace, which I find rather awkward.
from vi and emacs I am familiar with being able to specify the search and replace strings from a command line like, for example in vi I would
%s/OLD/NEW/g
which replaces OLD with NEW throughout the entire file. OLD can also be a regex
In texmate you essentially always have to bring up the find/replace dialog if you want to use regex expression.
for simple find/replace you can use the cmd-E to put the current selection into the search field, but there is no easy way to put a replacement text into the replace field. If the replacement text happens to be some where in the file you can find and select it and shift-cmd-F into the replace field.
But this is all very long and awkward. Am I missing something or is the a easier way to use the find and replace in textmate, without having to bring up the dialog box all the time. seems a lot of key strokes with shift cmd, option, tabs, returns etc compared to my familiar
s/regex-find/replace/g
thanks
Steve
Dear guys
I have two questions. These looks piecs of cake... however, I cannot solve
it. :-(
1. Folding JsDoc-Toolkit comment
As you know, JsDoc-toolkit (and the similar auto-document-generation tools)
creates document with the comment as below:
/**
* Description of constructor.
* @class Description of class.
* @constructs
*/
Sometimes, the comments are too long to review the codes, I REALLY wanna
fold them. So I add rules to grammer like that:
foldingStartMarker = '(^.*{[^}]*$|^.*\([^\)]*$|^.*/\*(?!.*\*/).*$)';
foldingStopMarker = '(^\s*\}|^\s*\)|^(?!.*/\*).*\*/)';
Unfortunately, it's just working as below:
/**
* Description of constructor.
* @class Description of class.
* @constructs
*/
Colud you tell me how I can fold the original jsdoc comments with space?
2. Highlight Keywords.
The framework I use has a object, $Class, so I wanna highlight this object
as keyword.
However, it's impossible because of "$" even I add this keyword into the
grammer file. I use a escape character and Regular express format, it
doesnot working.
Please give the advice to highlight a string with "$".
Best regards.
--
View this message in context: http://old.nabble.com/JsDoc-comments-folding-%2B-Keyword-highlight-tp285194…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all-
Not that I couldn't figure out how to make this work, but is there any
current facility for substituting Biber for Bibtex in the LaTeX2
bundle? (or, I guess, the original bundle?)
If not, any thinking on the right way to do this; or should I just
start hacking?
;-)
Thanks! Charles
The keyboard shortcut, ⌃⌘T, for "Select Bundle Item..." doesn't
work. All of my modifier keys work fine in other instances, and if I
click on the menu item then it works fine, but when I enter in the
shortcut, nothing happens. I don't think this shortcut is bound to any
programs running in the background. Has anyone encountered this
problem or know how to fix it?
Hey all,
I seem to be having issues getting both the rails and ruby bundles to work
properly. Both of them show up in the bundles dropdown, but don't seem to be
working. For example when I use the forin snippet it ends up giving me a
shell command of for in statement. Likewise many of the snippets associated
with the .rb file just dont seem to exist and none of the ones for the
html.erb/rhtml ones do, similarly the syntax coloring in the html.erb is not
working properly either. I've tried reinstalling both bundles a couple
times, does anyone have any insight on this?
Thanks for the help.
Hi everyone,
Is there a shortcut or bundle that allows us to move to the [n]th
occurrence of a char in the the current line?
This is similar to vim's:
"f{char}To [count]'th occurrence of {char} to the right. The cursor is
placed on {char} (inclusive).
F{char}To the [count]'th occurrence of {char} to the left. The cursor
is placed on {char} (inclusive).
t{char}Till before [count]'th occurrence of {char} to the right. The
cursor is placed on the character left of {char} (inclusive).
T{char}Till after [count]'th occurrence of {char} to the left. The
cursor is placed on the character right of {char} (inclusive)."
Thanks,
Jorge Luis
With so many great plugins now available, is there a way to change the size
of the Preferences window? In defaults for com.macromates.textmate, I see
window sizes for every other window in TextMate, but only
OakPreferencesWindowLeftTop.
Jay Levitt
The topic of unit testing grammars has often been brought up and I
finally did a CLI tool for running a file through the TM parser.
The tool is here: http://updates.textmate.org/gtm.bz2
It reads the text to be parsed from stdin and takes as argument paths
to tmGrammar files which should be loaded. If the -g/--grammar option
is not given, the first grammar specified will be used to parse the
input.
Output is the parsed document in the pseudo-XML format that TextMate
commands can receive as input.
Presently the -t and -d options are not implemented.
Examples:
gtm < test.c C.tmbundle/Syntaxes/C.plist
gtm < test.cc -g source.c++ C.tmbundle/Syntaxes/{C,C++}.plist
I plan to also make this a profiling tool so that it can list how much
time is spent in each rule, but this is secondary to the current
agenda of providing the basis for grammar unit tests.
I am announcing this to get some input on how we can build a good unit
testing system. My concern is that we’ll either make really simple
tests that never break (it’s generally complex interplays of rules
that cause problems), or we’ll have fully parsed complex documents as
the “expected output” and can’t make changes to the grammars w/o
pretty much rewriting all the tests.
Hi,
I tried to compile a simple document with the latex2 bundle and get the following:
----------
Typesetting latexws.tex…
graphics.sty:68: \clearpage
Program exited with code #1 after 0.94 seconds.
-----------
I am not loading the graphics package (only the graphicx).
What does this mean? And how could I resolve it?
Thanks in advance!
--
Christian
-It's better to be a pirate than to join the Navy.-
John Sculley and John A. Byrne, 1987
Hey Guys,
A friend pointed me to the this list! Way excited. Any of you guys have
experience adding the run script for a new bundle? I'm helping a friend with
a new open source markup language called ZML.We added a bundle to TextMate
and added the syntax highlighter.
I really love the functionality, with apple command + R that allows me to
run a Perl Script or Shell Script, or what have you, and display the results
in HTML. This would be really helpful, in place of being forced to run each
document in terminal to view the output. My command is simply "zml
myzmlfile.txt" and I want to leverage the bundle editor to get this going.
Anyone have experience doing this? I obviously, do not.
Thanks in Advance!
Kenny G
I cannot find where in the TextMate documentation it explains how to go to
the end of a line or to the start of a line. It must be very simple, but I
don't know what the keyboard shortcuts are because I can't find any
reference to this in the Help System.
--
View this message in context: http://old.nabble.com/how-do-I-go-to-end-of-line-and-or-go-to-start-of-line…
Sent from the textmate users mailing list archive at Nabble.com.
Hi list,
I’ve recently taken the step from the LaTeX bundle to the LaTeX 2 bundle, but only for a short time. Indeed, whenever I type a \, the autocompletion command takes hand but fail as soon as I hit the next symbol (letter, parenthesis, bracket...). It just displays the message “Error: too many arguments” (as tool tip). So, basically, it prevents me from typing a backslash, which is quite a pain when working with LaTeX.
Any suggestion ?
Édouard GILBERT
edouard.gilbert(a)gmail.com
In Stata, strings can begin with the two characters: `", end with the
characters: "'. How can textmate recognise these as quotation marks? The
following code in the Stata bundle won't work, because textmate doesn't parse
the 'begin' and 'end' lines as I'd like it to. Instead it (understandably)
complains that it finds a " where there should be a ; on the second line below.
Is there some way to get textmate to recognise this quotation convention?
{ name = 'string.quoted.single.stata';
begin = "`"";
end = ""'";
patterns = (
{ name = 'constant.character.escaped.untitled';
match = '\\.';
},
);
},
Any help much appreciated.
Hi
TM with LaTeX fails to launch skim or preview. TM works only
with "view in Texmate".
I have the same problem with a macbook and an imac intel 10.6.2
Alain Matthes
Dear TextMate experts,
I would like to execute the shell script myscript.sh from within TextMate. The script myscript.sh takes a file name as argument and does something with the file (it indents the file correctly; for this, it calls emacs in batch mode). So if I use
sh myscript.sh myfile.R
the script works perfectly fine, i.e., it indents the source code contained in myfile.R. I would like to have textmate do this for me on the file I am working on when I use a certain key combination.
Using the Bundle Editor, I created a new command "tidy" with key equivalent "shift+command+T". As the actual command, I put in:
sh /path_to_my_script/myscript.sh "$TM_FILENAME"
Unfortunately, this does not work. I set "Input" to "Entire Document" and "Output" to "Replace Document" (currently I obtain an empty document after "shift+command+T").
How can I trigger the shell script, such that the current content of myfile.R is replaced by the (quietly generated) output of myscript.sh?
Below is the script
Many thanks in advance,
Marius
#!/bin/sh
function usage () {
printf "Indent R file with Emacs ESS package.\n"
printf "Usage: $0 FILE\n"
exit 1
}
f=$1
shift
if test "x$f" = x -o "x$f" = "x-h"; then
usage
fi
emacs -batch \
-eval '(load "/usr/local/share/emacs/site-lisp/ess-5.8/lisp/ess-site")' \
-f R-mode \
-eval '(untabify (point-min) (point-max))' \
-eval '(insert-file "'${f}'")' \
-eval '(set-visited-file-name "'"${f}"'")' \
-eval '(indent-region (point-min) (point-max) nil)' \
-f save-buffer \
2>/dev/null
I've been trying to track down a problem in code folding for Ruby.
At this point, I have two 100+ line files, one of which has problems
and the other does not. The _odd_ thing is that cmp(1) says they're
identical. I have tried closing the files, stopping and restarting
TM, reloading bundles, etc. Nothing seems to make much difference.
One annoying constraint is that the code is proprietary, so I can't
just post it publicly (even in its rather cut-down form). Sigh.
Details:
TextMate 1.5.9 (1510)
Mac OS X 10.5.8 (Mac Pro)
RUBY_VERSION 1.8.5 (for Google Sketchup Pro 7.1.6859)
Guesses:
It appears that TM has saved bogus folding information for one of
the files, but not the other. Suggestions on tracking this down
or at least gathering useful information?
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume rdm(a)cfcl.com
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, system design
I have been trying to get Scheme set up for Textmate. When I first installed
the bundle and tried the run command, I got an error. I had an installation
from Macports, but I wiped that and downloaded mit-scheme for Unix and
installed the binary in: /usr/local/bin.
I set the shell variable, "TM_SCHEME", and pointed it to:
"/usr/local/bin/scheme". Now, when I call the run command, it brings up the
read-eval-print-loop and it does not read the scheme text file I have saved.
Now, I understand that I could mess around with the Run command in the
Bundle editor, but I hardly have enough experience to do that. Does anyone
know if there is another bundle I can install that accounts for this issue,
or a different way in which I can install Scheme?
Thanks a bunch for the help.
--
View this message in context: http://old.nabble.com/Scheme-Run-Command-Doesn%27t-Read-Text-From-File-tp27…
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I was trying to give all (round) parentheses a certain color while editing
in C++.
Can someone help me to achieve this? Sorry if that has been asked before.
As a second question, would it be possible to give parentheses of function
calls a different color, or ideally color all the text within the brackets?
Thanks!
Tim
--
View this message in context: http://old.nabble.com/Coloring-parentheses-in-C%2B%2B-code-tp27998726p27998…
Sent from the textmate users mailing list archive at Nabble.com.