Hi
Switching over to Textmate for Latex projects. I realize that I don't understand setting the master file (which does all of the \include's).
I have an issue of trying to use more than one computer to work on a single latex project. I use dropbox to keep computers sync'd.
Let's suppose I have an identical directory structure, down from the home area:
/User/homeareafirstcomputer/dir1/dir2/ ---> where all of the .tex files are, including master.tex
and on the second:
/User/homeareasecondcomputer/dir1/dir2/ ---> where all of the .tex files are, including master.tex
If I identify master.tex in one computer with the shell definition TM_LATEX_MASTER of either:
1. ~/dir1/dir2/master.tex
or
2. master.tex
Then secondcomputer cannot find the master.tex.
If I identify the variable TM_LATEX_MASTER as
1. /User/homeareafirstcomputer/dir1/dir2/master.tex
then, of course secondcomputer looks for it in that absolute path and can't find it.
If I show info on the master file in the project file drawers, it insists on checking the Save as absolute path box.
How can I use this feature for a project that's shared among computers? I'm surely missing something simple...
thanks Ray
Try to set TM_LATEX_MASTER as either 1)master.tex or 2)./master.tex
Did it work for you?
S.V. wrote:
Try to set TM_LATEX_MASTER as either 1)master.tex or 2)./master.tex
Did it work for you?
I believe that ./master.tex has worked.
thanks,
* chip brock (brock@pa.msu.edu) wrote: |> Hi |> |> Switching over to Textmate for Latex projects. I realize that I don't understand setting the master file (which does all of the \include's). |> |> I have an issue of trying to use more than one computer to work on a single latex project. I use dropbox to keep computers sync'd. |> |> Let's suppose I have an identical directory structure, down from the home area: |>
I use a similar setup: dropbox to synchronize my desk and portable computers. For each folder where I keep a piece of work, say a book, I set up a file I call root.tex, with all of the formatting and \include(s). At the top of all of the files I'm including, I use Preferences in the Latexbundle to set the master file, with a line such as: %!TEX root = /Users/me/Documents/Work/Writing/Books/newbook/root.tex
The Watch Document command in the Latex bundle will work from inside any of the documents included in root.tex. The standard command + R typesetting command needs to be issued from root.tex.
I presently do the typesetting not in TextMate but I switch to TeXShop and latexmk (pdflatexmk or xelatexmk)---their most recent versions---, because I often like to use the -pvc flag (continuous preview) of latexmk. Furthermore, I use biber and the most recent version of biblatex in texlive 2010. I set TeXShop for an external editor in its preferences, and added the flag -pvc to its latexmk engines. At the top of my root.tex file, I have the line: %!TEX TS-program = xelatexmk (or pdflatexmk as the case may be)
Once I start TeXShop for typesetting, I use command + tab to switch to TextMate project window, and back and forth. Any save in TextMate or in BibDesk bib files will trigger latexmk. Editing in TextMate allows me to do citations from BibDesk without opening it.
Hope this helps, -- gildas
Thanks! That's interesting...I confess a lingering fondess for the TexShop interface. What you've adopted is the 2.4 version of how to set up the old set project root command, I think.
Ray
Gildas Hamel wrote:
- chip brock (brock@pa.msu.edu) wrote: |> Hi |> |> Switching over to Textmate for Latex projects. I realize that I
don't understand setting the master file (which does all of the \include's). |> |> I have an issue of trying to use more than one computer to work on a single latex project. I use dropbox to keep computers sync'd. |> |> Let's suppose I have an identical directory structure, down from the home area: |> I use a similar setup: dropbox to synchronize my desk and portable computers. For each folder where I keep a piece of work, say a book, I set up a file I call root.tex, with all of the formatting and \include(s). At the top of all of the files I'm including, I use Preferences in the Latexbundle to set the master file, with a line such as: %!TEX root = /Users/me/Documents/Work/Writing/Books/newbook/root.tex
The Watch Document command in the Latex bundle will work from inside any of the documents included in root.tex. The standard command + R typesetting command needs to be issued from root.tex.
I presently do the typesetting not in TextMate but I switch to TeXShop and latexmk (pdflatexmk or xelatexmk)---their most recent versions---, because I often like to use the -pvc flag (continuous preview) of latexmk. Furthermore, I use biber and the most recent version of biblatex in texlive 2010. I set TeXShop for an external editor in its preferences, and added the flag -pvc to its latexmk engines. At the top of my root.tex file, I have the line: %!TEX TS-program = xelatexmk (or pdflatexmk as the case may be)
Once I start TeXShop for typesetting, I use command + tab to switch to TextMate project window, and back and forth. Any save in TextMate or in BibDesk bib files will trigger latexmk. Editing in TextMate allows me to do citations from BibDesk without opening it.
Hope this helps, -- gildas
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I use a similar setup: dropbox to synchronize my desk and portable computers. For each folder where I keep a piece of work, say a book, I set up a file I call root.tex, with all of the formatting and \include(s). At the top of all of the files I'm including, I use Preferences in the Latexbundle to set the master file, with a line such as: %!TEX root = /Users/me/Documents/Work/Writing/Books/newbook/root.tex
The Watch Document command in the Latex bundle will work from inside any of the documents included in root.tex. The standard command + R typesetting command needs to be issued from root.tex.
I presently do the typesetting not in TextMate but I switch to TeXShop and latexmk (pdflatexmk or xelatexmk)---their most recent versions---, because I often like to use the -pvc flag (continuous preview) of latexmk. Furthermore, I use biber and the most recent version of biblatex in texlive 2010. I set TeXShop for an external editor in its preferences, and added the flag -pvc to its latexmk engines. At the top of my root.tex file, I have the line: %!TEX TS-program = xelatexmk (or pdflatexmk as the case may be)
Once I start TeXShop for typesetting, I use command + tab to switch to TextMate project window, and back and forth. Any save in TextMate or in BibDesk bib files will trigger latexmk. Editing in TextMate allows me to do citations from BibDesk without opening it.
Hope this helps, -- gildas
This sounds just like what I have been looking for. Are you able to sync? How do you add the flag -pvc to the latexmk engine of TeXShop?
-jenny
Jenny, what are the benefits of texshop + latexmk over textmate's and latexmk?
cheers, Daniel
On 19 May 2011, at 16:40, Jenny Harrison wrote:
I use a similar setup: dropbox to synchronize my desk and portable computers. For each folder where I keep a piece of work, say a book, I set up a file I call root.tex, with all of the formatting and \include(s). At the top of all of the files I'm including, I use Preferences in the Latexbundle to set the master file, with a line such as: %!TEX root = /Users/me/Documents/Work/Writing/Books/newbook/root.tex
The Watch Document command in the Latex bundle will work from inside any of the documents included in root.tex. The standard command + R typesetting command needs to be issued from root.tex.
I presently do the typesetting not in TextMate but I switch to TeXShop and latexmk (pdflatexmk or xelatexmk)---their most recent versions---, because I often like to use the -pvc flag (continuous preview) of latexmk. Furthermore, I use biber and the most recent version of biblatex in texlive 2010. I set TeXShop for an external editor in its preferences, and added the flag -pvc to its latexmk engines. At the top of my root.tex file, I have the line: %!TEX TS-program = xelatexmk (or pdflatexmk as the case may be)
Once I start TeXShop for typesetting, I use command + tab to switch to TextMate project window, and back and forth. Any save in TextMate or in BibDesk bib files will trigger latexmk. Editing in TextMate allows me to do citations from BibDesk without opening it.
Hope this helps, -- gildas
This sounds just like what I have been looking for. Are you able to sync? How do you add the flag -pvc to the latexmk engine of TeXShop?
-jenny
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 5/19/11, at 10:37 , Daniel Stegmüller wrote:
Jenny, what are the benefits of texshop + latexmk over textmate's and latexmk?
cheers, Daniel
Daniel,
The interface between textmate and skim is not as buttery smooth and fast as that between texshop's source and pdf. The difference is striking and it surprised me how much texshop has evolved since I dove into textmate a few years ago. For example, skim's window jumps around each time I make a small edit in the textmate source and I have to manually drag it back to where I was focused each time. I get the impression that some have figured out how to use textmate as an external editor and get the best of both worlds.
Jenny
Jenny,
I just tried Texshop and you are right, the compilation steps are indeed a lot smoother (and quicker!). However, when I start latexmk from terminal and let it continuously update the PDF, Texmate and Skim behave quite well.
cheers, Daniel
On 19 May 2011, at 19:53, Jenny Harrison wrote:
On 5/19/11, at 10:37 , Daniel Stegmüller wrote:
Jenny, what are the benefits of texshop + latexmk over textmate's and latexmk?
cheers, Daniel
Daniel,
The interface between textmate and skim is not as buttery smooth and fast as that between texshop's source and pdf. The difference is striking and it surprised me how much texshop has evolved since I dove into textmate a few years ago. For example, skim's window jumps around each time I make a small edit in the textmate source and I have to manually drag it back to where I was focused each time. I get the impression that some have figured out how to use textmate as an external editor and get the best of both worlds.
Jenny
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Jenny,
I just tried Texshop and you are right, the compilation steps are indeed a lot smoother (and quicker!). However, when I start latexmk from terminal and let it continuously update the PDF, Texmate and Skim behave quite well.
cheers, Daniel
That's great news! After getting help from Allan and Gildas, I finally got everything working as smoothly as I would like combining TeXShop and TextMate, but it was not easy to set up (for non-coders like myself) and there is no sync. It also felt a little weird to move out of the TextMate fold where I have lived and flourished for so long. The TextMate and Skim union strengthened by Dr. Daniel, the marriage counselor par excellence, will draw me right back in. Now for those of us who don't know how to do this, can you please write out the steps to type in terminal?
Jenny
I simply use
latexmk -pvc test.tex
which tells latexmk to continuously recompile the PDF on file changes.
I also set some default options for latexmk by creating a .latexmkrc file in my home directory. Mine contains
$pdf_mode = 1; $pdf_previewer = 'open %S';
to enable pdf creation by default and tells latexmk to open the created pdf via skim (which is my default viewer for pdfs).
That said, I think the "Watch document" function in the Latex Bunde accomplishes basically the same thing ... (?)
Daniel
On 20 May 2011, at 21:18, Jenny Harrison wrote:
Jenny,
I just tried Texshop and you are right, the compilation steps are indeed a lot smoother (and quicker!). However, when I start latexmk from terminal and let it continuously update the PDF, Texmate and Skim behave quite well.
cheers, Daniel
That's great news! After getting help from Allan and Gildas, I finally got everything working as smoothly as I would like combining TeXShop and TextMate, but it was not easy to set up (for non-coders like myself) and there is no sync. It also felt a little weird to move out of the TextMate fold where I have lived and flourished for so long. The TextMate and Skim union strengthened by Dr. Daniel, the marriage counselor par excellence, will draw me right back in. Now for those of us who don't know how to do this, can you please write out the steps to type in terminal?
Jenny
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On a similar topic, is it possible to have multiple "master" files? I write my notes in multiple files but also have a beamer presentation in the same project. So basically what I would need is, if I hit cmd+R in the beamer file this file should be compiled and from every other file the defined master file.
Thanks, Peter Am 20.05.2011 um 15:18 schrieb Jenny Harrison:
Jenny,
I just tried Texshop and you are right, the compilation steps are indeed a lot smoother (and quicker!). However, when I start latexmk from terminal and let it continuously update the PDF, Texmate and Skim behave quite well.
cheers, Daniel
That's great news! After getting help from Allan and Gildas, I finally got everything working as smoothly as I would like combining TeXShop and TextMate, but it was not easy to set up (for non-coders like myself) and there is no sync. It also felt a little weird to move out of the TextMate fold where I have lived and flourished for so long. The TextMate and Skim union strengthened by Dr. Daniel, the marriage counselor par excellence, will draw me right back in. Now for those of us who don't know how to do this, can you please write out the steps to type in terminal?
Jenny
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
* Jenny Harrison (profharrison@gmail.com) wrote: |> > |> |> This sounds just like what I have been looking for. Are you able to sync? How do you add the flag -pvc to the latexmk engine of TeXShop? |>
I make sure I have the engines needed in ~/Library/TeXShop/Engines.
In my latexmk.engine, my last line now reads as follows: "${LTMKBIN}"/latexmk -pvc -pdfps -r "${LTMKEDIT}/latexmkrcedit" -r "${TSBIN}/latexmkrc" "$1"
In my pdflatexmk.engine, the last line is: "${LTMKBIN}"/latexmk -pvc -pdf -r "${LTMKEDIT}/latexmkrcedit" -r "${TSBIN}/pdflatexmkrc" "$1"
And in my xelatexmk.engine, it is: "${LTMKBIN}"/latexmk -pvc -pdf -r "${LTMKEDIT}/latexmkrcedit" -r "${TSBIN}/xelatexmkrc" "$1"
I was nervous about adding this -pvc flag as my knowledge of exactly what it does is dim. It all works fine for me. I love TextMate because of the syntax coloring, indentation, ability to do \cite completions from the bib files, and of course the project format, with powerful search capabilities. Now I also have speed and control, especially because of the biblatex/biber power.
Re. sync: no, i'm not able to do that between TeXShop and TestMate, but I structure text systematically, so in textmate almost always use command/shift/O to keep track of where I am. -- gildas