[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-users
Subject:    Cross-references using xr from command line
From:       "Wong, Michael" <Michael.Wong () chicagobooth ! edu>
Date:       2013-09-24 22:17:47
Message-ID: 74E208FF247D5545A31FAC3F14C6D19C0F037897 () bushexmb03 ! gsb ! uchicago ! edu
[Download RAW message or body]

Hi Lyx users, Could you help me with a question?

I have two LyX documents, say draft.lyx and supplement.lyx. I need to compi=
le them into separate pdf files and be able to cross reference from the sup=
plement to the draft. I am attempting to use xr per the instruction on stac=
k exchange [1], but it requires a manual step. What do you do in order to a=
utomate cross referenes using xr in LyX?

When I don't have cross-references, I prefer to use a little python script =
to call LyX sequentially to compile each file from the command line. Howeve=
r, it seems that the temp folder only persists while LyX is running, so the=
 necessary .aux file is deleted before it can be referenced. Is there a way=
 to automatically copy the .aux file or to force the temp directory to pers=
ist?

Thanks, M

[1] http://tex.stackexchange.com/questions/39772/using-the-xr-package-in-ly=
x-for-cross-referencing-an-external-lyx-document

[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
code
	{mso-style-priority:99;
	font-family:"Courier New";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;background:white">Hi \
Lyx users, Could you help me with a question?</span><span \
style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222"><br> <br>
<span style="background:white">I have two LyX documents, say draft.lyx and \
supplement.lyx. I need to compile them into separate pdf files and be able to cross \
reference from the supplement to the draft. I am attempting to use xr per the \
instruction on stack  exchange [1], but it requires a manual step. What do you do in \
order to automate cross referenes using xr in LyX?&nbsp;</span><br> <br>
<span style="background:white">When I don&#8217;t have cross-references, I prefer to \
use a little python script to call LyX sequentially to compile each file from the \
command line. However, it seems that the temp folder only persists while LyX is \
running, so the  necessary .aux file is deleted before it can be referenced. Is there \
a way to automatically copy the .aux file or to force the temp directory to persist? \
<o:p></o:p></span></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;background:white"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;background:white">Thanks, \
M<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;background:white"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#222222;background:white">[1] \
http://tex.stackexchange.com/questions/39772/using-the-xr-package-in-lyx-for-cross-referencing-an-external-lyx-document</span><o:p></o:p></p>
 </div>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic