Open main menu

Changes

146 bytes added ,  20:24, 5 February 2008
First answers
(so that the do not get lost before integrating them into the bundle) --[[User:Mojca Miklavec|Mojca]] 02:55, 28 January 2008 (CET)
 
== parse_texexec_output.rb ==
 
* remove
<nowiki>str.gsub!("\n", "<br>")</nowiki>
* add
<nowiki>str = str.gsub(/^.*Insecure world writable dir.*?\n/, '')</nowiki>
 
*Replace
<nowiki>str = str.gsub(/(.*?):(\d+):(.*)/, "<a href='txmt://open?url=file://#{dir}/#{file}&line=\\2'>\\1:\\2:\\3</a>")</nowiki>
with
<nowiki>str = str.gsub(/(.*?):(\d+):(.*)/, "<a href='txmt://open?url=file://#{dir}/\\1&line=\\2'>\\1:\\2:\\3</a>")</nowiki>
else errors point to wrong locations in case of project structure.
 
 
== refresh viewer ==
 
* http://www.macosxhints.com/article.php?story=20040314102550515&query=tell%2Bmenu%2Bbar%2B1
 
improve this code & import it into ''open'' link:
pdf=${TM_FILEPATH%tex}pdf
PDFFILE=`echo "${pdf}" | sed -e 's/.[^.]*$/.pdf/'`
PDFBASENAME=`basename ${PDFFILE}`
echo "
tell application \"System Events\"
if exists process \"Preview\" then
tell application \"Preview\" to activate
tell process \"Preview\"
tell menu bar 1
repeat with currentItem in (every menu item of menu \"Window\" of menu bar item \"Window\" whose name contains \"${PDFBASENAME}\")
click currentItem
click menu item \"Close\" of menu \"File\" of menu bar item \"File\"
end repeat
end tell
end tell
end if
end tell
" | osascript
# open ${PDFFILE}
open -a ${PDF_VIEWER:=Preview} "${pdf}"
 
== $$ pairs ==
 
create a new ''P''
 
<nowiki>{ highlightPairs = (
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '$', '$' ),
);
smartTypingPairs = (
( '"', '"' ),
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '$', '$' ),
);
# no idea what that is (copied from text)
unIndentedLinePattern = '^\s*$';
}</nowiki>
 
== fix env[tab] ==
 
<nowiki>\start${1:text}
$0
\stop${1/(\w*)(.*\n*)*/$1/}</nowiki>
 
== add itm[tab] ==
 
\\startitemize
\\item $0
\\stopitemize
== inclusions for lua (as for metafun) ==
Is it possible to have a graphical menu with math symbols for example?
 
= Won't fix =
(comments by [[User:Patrick Gundlach|Patrick]])
 
== refresh viewer ==
Can't get this to work on my machine (tiger, power pc, german ui)
 
* http://www.macosxhints.com/article.php?story=20040314102550515&query=tell%2Bmenu%2Bbar%2B1
 
improve this code & import it into ''open'' link:
pdf=${TM_FILEPATH%tex}pdf
PDFFILE=`echo "${pdf}" | sed -e 's/.[^.]*$/.pdf/'`
PDFBASENAME=`basename ${PDFFILE}`
echo "
tell application \"System Events\"
if exists process \"Preview\" then
tell application \"Preview\" to activate
tell process \"Preview\"
tell menu bar 1
repeat with currentItem in (every menu item of menu \"Window\" of menu bar item \"Window\" whose name contains \"${PDFBASENAME}\")
click currentItem
click menu item \"Close\" of menu \"File\" of menu bar item \"File\"
end repeat
end tell
end tell
end if
end tell
" | osascript
# open ${PDFFILE}
open -a ${PDF_VIEWER:=Preview} "${pdf}"
 
= Fixed in 0.7 =
 
== parse_texexec_output.rb ==
 
* remove
<nowiki>str.gsub!("\n", "<br>")</nowiki>
* add
<nowiki>str = str.gsub(/^.*Insecure world writable dir.*?\n/, '')</nowiki>
 
*Replace
<nowiki>str = str.gsub(/(.*?):(\d+):(.*)/, "<a href='txmt://open?url=file://#{dir}/#{file}&line=\\2'>\\1:\\2:\\3</a>")</nowiki>
with
<nowiki>str = str.gsub(/(.*?):(\d+):(.*)/, "<a href='txmt://open?url=file://#{dir}/\\1&line=\\2'>\\1:\\2:\\3</a>")</nowiki>
else errors point to wrong locations in case of project structure.
 
== $$ pairs ==
 
create a new ''P''
 
<nowiki>{ highlightPairs = (
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '$', '$' ),
);
smartTypingPairs = (
( '"', '"' ),
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '$', '$' ),
);
# no idea what that is (copied from text)
unIndentedLinePattern = '^\s*$';
}</nowiki>
 
== fix env[tab] ==
 
<nowiki>\start${1:text}
$0
\stop${1/(\w*)(.*\n*)*/$1/}</nowiki>
 
== add itm[tab] ==
 
\\startitemize
\\item $0
\\stopitemize