Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When I typeset a journal issue, I first make the seperate articles, and I join them together (adding the Table of Contents and other stuff, that's irrelevant now).

When I read the final issue.pdf, I often find small mistakes in the articles. However, the Jump to Source in context menu in TeXworks brings me only to the instruction \includepdf in issue.tex, and not to the correct file a1/art1.tex.

Is there any way how to correctly join all the .synctex.gz files generated by all the articles and the issue itself, so that the forward-inverse-search works as I would like?

I appreciate partial or non-automated solutions and ideas as well.

MWE: File issue.tex

\documentclass{article}
\usepackage{pdfpages}
\begin{document}

\begin{center}
This is an issue 42 of Journal of funny \TeX\@ questions.\\
Contents:\\
Article One, on page 2\\
Article Two, on page 4
\end{center}

\includepdf[pages=-]{a1/art1.pdf}
\includepdf[pages=-]{a2/art2.pdf}

\end{document}

MWE: File a1/art1.tex

\documentclass{article}
\title{ARTICLE ONE}
\setcounter{page}{2}

\begin{document}
\maketitle
Some text. Some text. Some text.

\newpage
Other page of article one.
\end{document}

MWE: File a2/art2.tex

\documentclass{article}
\title{ARTICLE TWO}
\setcounter{page}{4}

\begin{document}
\maketitle
Some text. Some text. Some text.

\newpage
Other page of article two.
\end{document}
share|improve this question
    
I don't see easy ways to do it. –  egreg Nov 24 '13 at 0:05
    
@egreg Well, SyncTeX is able to step in files that are \input or \included. So it might be possible to just correctly mix the XML files. After all, I keep, to some extent, the proper page numbering and stuff. I wanted to know whether there's anything done in this direction. If not, I'll consider seeing what can be done. –  tohecz Nov 24 '13 at 0:09
    
I don't think there is anything. But .synctex files are not XML. –  egreg Nov 24 '13 at 0:10
    
Damn, you're again right. I've always thought they are... –  tohecz Nov 24 '13 at 0:19
    
Tom is there any reason that you can't use combine or standalone? –  Harish Kumar Nov 24 '13 at 0:42
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.