Hello fellow maters,
A while ago we had a command that would align statements at their =
signs…
Would it be possible to incorporate that feature into the table-
macros fo LaTeX? So that the tables cells are aligned at the & signs?
And possibly make a command out of this that would re-format existing
tables?
just wondering if anyone feels like it ;)
Dan
…in his final stages of actually beating that thesis writing monster…
Hello everybody,
I am almost sure that this has been discusse on the list some time
ago, but I did not find anything right now.
For my Ph.D. dissertation, I am working with a LaTeX document which
is split up to many small files, one for each chapter.
I am using the TM_LATEX_MASTER variable which is set as a project
preference, and which points to the master document.
Now I would like to do the following: In order to print only a single
chapter of my dissertation I would like to use another central
document which ignores the TM_LATEX_MASTER variable. It should be
part of my project, however.
Is it possible to set the TM_LATEX_MASTER to a different value only
for this file?
TeXShop allows setting the main document by putting something like
%!TEX root = ../main.tex
at the beginning of a document. Does something like this exist in TM
as well?
(I know that I could also use the includeonly command, but that does
not work too well, since I also would like to change some things in
the central document for this specific file.)
Thanks in advance,
best regards
Matthias
--
Matthias Damm
mad(a)macpla.net
PGP key: http://macpla.net/MatthiasDamm.asc
PGP fingerprint: CED3 6074 7F7D 3148 C6F3 DFF2 05FF 3A0B 0D12 4D41
hi.
i made a command which converts textile-code to html (duh!). and
back (yeah!). well not really. what it does is embedding the
textile-content within a html-comment and on revert it ditches all
the html and just returns the comment.
i made this command because i think textile is a really fast way of
producing formated content (i know you're there, markdown-fans!).
but the problem is, the files don't stay editable. with textile,
that is. so now i can save an html-file with embedded textile and it
is ready for presentation and i can come back at any time and edit
the same file without having to keep a copy of the textile-file.
i'm a bad coder. i didn't manage to use the entire document rather
than the saved file as input. perhaps s/o else can help.
here's the code:
-------------------------------------------------------------
if [[ `head -1 $TM_FILENAME` == '<?xml version="1.0" encoding="utf-8"?
>' ]]
then
TEXTILEBEGINSAT=`grep "begin textile code" -n $TM_FILEPATH |\
awk -F ":" '{print $1}' `
DOCUMENTHASLINES=`wc -l $TM_FILEPATH | awk '{print $1}'`
LINES=`calc $DOCUMENTHASLINES - $TEXTILEBEGINSAT`
cat $TM_FILEPATH |\
tail -$LINES |\
grep -v "end textile code-->" | grep -v "</body></html>"
else
if [[ -z $TM_FILENAME ]]
then title="Textile Preview"
else title="${TM_FILENAME%.*}"
fi
{
. "$TM_SUPPORT_PATH/lib/html.sh"
htmlHeader "$title" '<style type="text/css">
body {
background-color: #eee;
}
.contents {
background: white;
font-family: Verdena, sans-serif;
font-size: 13px;
border: 1px #888 solid;
padding: 0 1em;
}
</style>'
beginTag div 'contents'
cat $TM_FILEPATH | "$TM_SUPPORT_PATH/bin/Textile.rb"
endTag
echo "<!-- begin textile code:"
cat $TM_FILEPATH
echo
echo "end textile code-->"
htmlFooter; }
fi
--------------------------------------------------------
the command uses "input: none" and "output: replace document" and
"scope selector: text.html.textile".
it would also be nice, if the command could change the scope to html
and back to textile. is this possible?
regards, niko.
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
The Blogging bundle is really nifty, apart from one small problem –
it doesn't want to set the date to anything other than Right Now when
used with WordPress 2.04.
If I add a Date: header and change the date to some point in the
future the post still shows with the current time and I have to edit
the date through the WordPress interface.
I don't know whether it's WordPress or the bundle that's causing this
- can anyone help?
BTW, is it particularly easy to add extra fields? I'd quite like to
add support for the event end time field for the EventCalendar plugin
(http://blog.firetree.net/2006/07/21/eventcalendar-31-beta/)
Thanks
--
JY
Currently we have tab triggers, key commands, and drag commands as
ways of activating commands in TextMate. It would be very useful to
be able to trigger commands when a file is saved, activated, or
deactivated in the ui as well (there may be others but these are the
ones that came to my mind). One example of where this would be
useful is saving a GTD project file and having it automatically
update a conext file with any necessary changes.
What do others think of this? Allan, how difficult would something
like this be?
Matthew
Hi,
Currently, trying saving a Pascal file shows a save dialogue whose
field is "untitled.p". However, this ".p" extension doesn't seem to
be associated *well* with TextMate.
TextMate has a icon for Pascal document, but ".p" files don't show up
with TexMate doc icons. After some trial and errors, I found that
".pas" is associated with TextMate, showing a proper icon.
By supporting ".p" as a Pascal file as well, I don't bother to
associate thsese files with TextMate each time, using Get Info and
Change setting with "Open With...".
Takaaki
I have an action "@tum GPC-Daten/wässrig mit nach hause nehmen"
which cannot be marked as done via the html-list of nextactions (set
its mark).
Btw, the odd symbols were an umlaut which either got killed somehere
in the GTDAlt bundle.
Yeah, I know, those guys with the weird keyboard layouts… ;)
Dan
I know textmate documents are usually just plaintext, however I have
a military client who wants to know if textmate documents have any
tracking in them, like microsoft word? For example every word
document contains a serial number.
He just wanted to be confident that textmate DOES NOT do anything
like this to protect privacy.
I assume it doesn't, but i just wanted to doublecheck.
Thanks!
can anyone explain why this definition in the perl language bundle
includes the newline as part of the comment?
line_comment =
{ name = 'comment.line.number-sign.perl';
match = '#.*$\n?';
};
it causes weird things in the mason bundle i use, where if a line of
perl includes a comment, textmate assumes the following line is also
perl, when it frequently is not.
% if ( $something ) { # something is up
<p>hi, something is up!</p> textmate thinks this line is perl and
the syntax highlighting is wrong
% }
if i want to change the line_comment pattern, but not miss any future
updates that might come with the perl bundle, what is the right way
to go about it?
---
michael reece :: software engineer :: mreece(a)vinq.com