Newbie woes. Had TextMate working fine with TeXniscope with the settings below. Then, I tried to set up PDFView (it just looks better) according to the instructions on their web page.
In the Bundle Editor I wrote over the old TeXniscope item, calling the new item "Show in PDFView (pdfsync)" and copied the commands from the PDFView web page for setting up TextMate.
My TextMate preferences Shell Variables are:
TM_LATEX_COMPILER latex TX_PSTRICKS 1
I hit Command-R (Typset & View PDF) and all the tex files are created. I just cannot view the pdf file from within TextMate by hitting Ctrl-Option-Command-O (Show in PDFView).
Any suggestions?
thanks walter johnson
Hi!
On Dec 15, 2006, at 8:26 PM, walter johnson wrote:
Newbie woes. Had TextMate working fine with TeXniscope with the settings below. Then, I tried to set up PDFView (it just looks better) according to the instructions on their web page. In the Bundle Editor I wrote over the old TeXniscope item, calling the new item "Show in PDFView (pdfsync)" and copied the commands from the PDFView web page for setting up TextMate.
My TextMate preferences Shell Variables are:
TM_LATEX_COMPILER latex TX_PSTRICKS 1
I hit Command-R (Typset & View PDF) and all the tex files are created. I just cannot view the pdf file from within TextMate by hitting Ctrl-Option-Command-O (Show in PDFView).
Any suggestions?
Set the Shell-variable TM_LATEX_VIEWER to "PDFViewer" (w/out ") and it should work - just by using cmd+R (Typeset and View). At least it worked for me (PDFsync works as well then). No hassle with creating new commands…
Niels
Niels Kobschätzki a écrit :
Set the Shell-variable TM_LATEX_VIEWER to "PDFViewer" (w/out ") and it should work - just by using cmd+R (Typeset and View). At least it worked for me (PDFsync works as well then). No hassle with creating new commands…
Typeset and View (Ctrl-R) seems to work just fine indeed. Also, I get to use pdfsync in the sense PDFView -> TextMate w/o any hassle. However, I can't get to make the sync TextMate -> PDFView (the Ctrl-Option-Command-O shortcut) to work, when using the code given on the PDFView webpage. The code seems perfectly alright though, so I suspect a bug in PDFView. Has anyone encountered a similar problem, and if yes, found a solution?
Emmanuel
Niels Kobschätzki wrote:
Hi!
On Dec 15, 2006, at 8:26 PM, walter johnson wrote:
Newbie woes. Had TextMate working fine with TeXniscope with the settings below. Then, I tried to set up PDFView (it just looks better) according to the instructions on their web page. In the Bundle Editor I wrote over the old TeXniscope item, calling the new item "Show in PDFView (pdfsync)" and copied the commands from the PDFView web page for setting up TextMate.
My TextMate preferences Shell Variables are:
TM_LATEX_COMPILER latex TX_PSTRICKS 1
I hit Command-R (Typset & View PDF) and all the tex files are created. I just cannot view the pdf file from within TextMate by hitting Ctrl-Option-Command-O (Show in PDFView).
Any suggestions?
Set the Shell-variable TM_LATEX_VIEWER to "PDFViewer" (w/out ") and it should work - just by using cmd+R (Typeset and View). At least it worked for me (PDFsync works as well then). No hassle with creating new commands…
Niels ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Thanks, Niels. Now, I get "Error locating external viewer: PDFViewer" (or same error if I use "/Appications/PDFView.app" as the value for TM_LATEX_VIEWER.
-walter
On Dec 15, 2006, at 9:14 PM, walter johnson wrote:
Niels Kobschätzki wrote:
Hi!
On Dec 15, 2006, at 8:26 PM, walter johnson wrote:
Newbie woes. Had TextMate working fine with TeXniscope with the settings below. Then, I tried to set up PDFView (it just looks better) according to the instructions on their web page. In the Bundle Editor I wrote over the old TeXniscope item, calling the new item "Show in PDFView (pdfsync)" and copied the commands from the PDFView web page for setting up TextMate.
My TextMate preferences Shell Variables are:
TM_LATEX_COMPILER latex TX_PSTRICKS 1
I hit Command-R (Typset & View PDF) and all the tex files are created. I just cannot view the pdf file from within TextMate by hitting Ctrl-Option-Command-O (Show in PDFView).
Any suggestions?
Set the Shell-variable TM_LATEX_VIEWER to "PDFViewer" (w/out ") and it should work - just by using cmd+R (Typeset and View). At least it worked for me (PDFsync works as well then). No hassle with creating new commands…
Thanks, Niels. Now, I get "Error locating external viewer: PDFViewer" (or same error if I use "/Appications/PDFView.app" as the value for TM_LATEX_VIEWER.
Sorry - that was a typo Should be set to "PDFView" (not "PDFViewer" -- "/Applications/ PDFView.app" won't work). Btw. it works here on 3 different Macs all with TextMate at the actual SVN-checkout.
Niels
Niels Kobschätzki wrote:
On Dec 15, 2006, at 9:14 PM, walter johnson wrote:
Niels Kobschätzki wrote:
Hi!
On Dec 15, 2006, at 8:26 PM, walter johnson wrote:
Newbie woes. Had TextMate working fine with TeXniscope with the settings below. Then, I tried to set up PDFView (it just looks better) according to the instructions on their web page. In the Bundle Editor I wrote over the old TeXniscope item, calling the new item "Show in PDFView (pdfsync)" and copied the commands from the PDFView web page for setting up TextMate.
My TextMate preferences Shell Variables are:
TM_LATEX_COMPILER latex TX_PSTRICKS 1
I hit Command-R (Typset & View PDF) and all the tex files are created. I just cannot view the pdf file from within TextMate by hitting Ctrl-Option-Command-O (Show in PDFView).
Any suggestions?
Set the Shell-variable TM_LATEX_VIEWER to "PDFViewer" (w/out ") and it should work - just by using cmd+R (Typeset and View). At least it worked for me (PDFsync works as well then). No hassle with creating new commands…
Thanks, Niels. Now, I get "Error locating external viewer: PDFViewer" (or same error if I use "/Appications/PDFView.app" as the value for TM_LATEX_VIEWER.
Sorry - that was a typo Should be set to "PDFView" (not "PDFViewer" -- "/Applications/PDFView.app" won't work). Btw. it works here on 3 different Macs all with TextMate at the actual SVN-checkout.
Niels ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Niels,
Works great. Thanks so much.
-walter
On Dec 15, 2006, at 11:49 PM, walter johnson wrote:
Niels,
Works great. Thanks so much.
Let me clarify this, because it still doesn't work here. You have gotten the "Show in PDFView (pdfsync)" command to work and take you to the right page? Is this with TM_LATEX_MASTER set? What is the full pathname of the file in question?
-walter
Haris
On Dec 17, 2006, at 5:41 AM, Charilaos Skiadas wrote:
On Dec 15, 2006, at 11:49 PM, walter johnson wrote:
Niels,
Works great. Thanks so much.
Let me clarify this, because it still doesn't work here. You have gotten the "Show in PDFView (pdfsync)" command to work and take you to the right page? Is this with TM_LATEX_MASTER set? What is the full pathname of the file in question?
I don't have TM_LATEX_MASTER set. I just checked pdfsync from Tex- file to document (which I don't really use) and it doesn't take me to the right page -- the other way around works though (from PDF to Tex- file). But you respond to answer for a question from someone whom didn't get PDFView work at all in combination with TextMate - I didn't say anything about pdfsync ;)
Niels
On Dec 17, 2006, at 9:23 AM, Niels Kobschätzki wrote:
But you respond to answer for a question from someone whom didn't get PDFView work at all in combination with TextMate - I didn't say anything about pdfsync ;)
This is what I saw in Walter's email that I thought I was replying to:
I hit Command-R (Typset & View PDF) and all the tex files are created. I just cannot view the pdf file from within TextMate by hitting Ctrl-Option-Command-O (Show in PDFView).
This last part gave me the impression that the ctrl-opt-cmd-O modification mentioned at http://pdfview.sourceforge.net/latex.html was not working. Has anyone gotten that to work? The LaTeX and View command works just fine over here as well, and opens the file in PDFView.
Niels
Haris
On Dec 16, 2006, at 8:41 PM, Charilaos Skiadas wrote:
On Dec 15, 2006, at 11:49 PM, walter johnson wrote:
Niels,
Works great. Thanks so much.
Let me clarify this, because it still doesn't work here. You have gotten the "Show in PDFView (pdfsync)" command to work and take you to the right page? Is this with TM_LATEX_MASTER set? What is the full pathname of the file in question?
-walter
Haris
There is still a problem getting PDFView to open on the correct page when you format. For me, it opens on the last page that was opened, not at the current line. Andrea is working on this.
Here is how you get pdfsync to work. (This is from Andrea's help page)
For TextMate, you can open up the Bundle Editor (Control+Option +Command+B), select LaTeX and create (or replace the TeXniscope one) a new item, calling it (for example) "Show in PDFView (pdfsync)". Insert the following as the commands:
# If TM_LATEX_MASTER is not set use TM_FILEPATH : ${TM_LATEX_MASTER:=$TM_FILEPATH}
# Switch to the right directory cd "${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}" cd "$(dirname "$TM_LATEX_MASTER")"
FILE="$TM_LATEX_MASTER" SCRIPT="$(find_app PDFView.app)/Contents/MacOS/gotoline.sh"
if [[ -x "$SCRIPT" ]]; then "$SCRIPT" &>/dev/console "$TM_LINE_NUMBER" "${FILE%.tex}.pdf" open -a PDFView.app else echo "Unable to locate PDFView." fi
Jenny
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Charilaos Skiadas wrote:
On Dec 15, 2006, at 11:49 PM, walter johnson wrote:
Niels,
Works great. Thanks so much.
Let me clarify this, because it still doesn't work here. You have gotten the "Show in PDFView (pdfsync)" command to work and take you to the right page? Is this with TM_LATEX_MASTER set? What is the full pathname of the file in question?
-walter
Haris
I am getting nice pdf output from the "Typeset & View (PDF)" command . But, I do get this error.
./matePSTRICKSADD.tex:27: pdfTeX error (\pdfsavepos): used while \pdfoutput is not set. @PDFSYNC ->\relax \ifPDFSYNCOK \pdfsavepos \immediate \write \PDFPOS {l\spa... l.27 \begin{document}
I cannot make the "Show in PDFView (pdfsync)" command work at all and I do not have TM_LATEX_MASTER set.
-walter
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Dec 17, 2006, at 8:31 AM, walter johnson wrote:
I am getting nice pdf output from the "Typeset & View (PDF)" command . But, I do get this error.
./matePSTRICKSADD.tex:27: pdfTeX error (\pdfsavepos): used while \pdfoutput is not set. @PDFSYNC ->\relax \ifPDFSYNCOK \pdfsavepos \immediate \write \PDFPOS {l\spa... l.27 \begin{document}
I cannot make the "Show in PDFView (pdfsync)" command work at all and I do not have TM_LATEX_MASTER set.
-walter
Did you replace the "Show in TeXniscope (pdfsync) command in the Latex bundle, as in my last message?
Jenny
______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Jenny Harrison wrote:
On Dec 17, 2006, at 8:31 AM, walter johnson wrote:
I am getting nice pdf output from the "Typeset & View (PDF)" command . But, I do get this error.
./matePSTRICKSADD.tex:27: pdfTeX error (\pdfsavepos): used while \pdfoutput is not set. @PDFSYNC ->\relax \ifPDFSYNCOK \pdfsavepos \immediate \write \PDFPOS {l\spa... l.27 \begin{document}
I cannot make the "Show in PDFView (pdfsync)" command work at all and I do not have TM_LATEX_MASTER set.
-walter
Did you replace the "Show in TeXniscope (pdfsync) command in the Latex bundle, as in my last message?
Jenny
______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com mailto:textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Yes and I installed the new PDFView 0.14.1.
-walter