2016-04-07 15:27:09 -04:00
|
|
|
Execute (Setup):
|
2016-04-07 16:32:18 -04:00
|
|
|
=================================================================================
|
2016-04-07 15:27:09 -04:00
|
|
|
call system('touch fig_1.tex')
|
|
|
|
call system('touch fig_2.tex')
|
|
|
|
call system('touch fig_1.pdf')
|
|
|
|
call system('touch fig_2.pdf')
|
|
|
|
call system('touch fig_3.pdf')
|
2016-04-07 16:32:18 -04:00
|
|
|
call system('touch fig_a.png')
|
|
|
|
call system('touch fig_b.png')
|
|
|
|
call system('touch fig_c.png')
|
|
|
|
call system('touch preamble.tex')
|
|
|
|
call system('touch chapter.tex')
|
|
|
|
call system('touch section.tex')
|
2016-04-07 15:27:09 -04:00
|
|
|
|
2016-04-07 16:32:18 -04:00
|
|
|
Given tex (Completion: \includegraphics):
|
|
|
|
=================================================================================
|
|
|
|
\includegraphics{
|
|
|
|
\includegraphics[scale=0.5]{
|
|
|
|
\includegraphics[100,100][300,300]{
|
2016-04-07 15:27:09 -04:00
|
|
|
|
|
|
|
Do (Complete):
|
2016-04-07 16:32:18 -04:00
|
|
|
A\<c-x>\<c-o>\<c-n>}\<esc>
|
|
|
|
jA\<c-x>\<c-o>\<c-n>\<c-n>}\<esc>
|
|
|
|
jA\<c-x>\<c-o>\<c-n>\<c-n>\<c-n>}
|
|
|
|
|
|
|
|
Expect tex (Verify):
|
|
|
|
\includegraphics{fig_b.png}
|
|
|
|
\includegraphics[scale=0.5]{fig_c.png}
|
|
|
|
\includegraphics[100,100][300,300]{fig_1.pdf}
|
|
|
|
|
|
|
|
Given tex (Completion: \include and \input):
|
|
|
|
=================================================================================
|
|
|
|
\input {
|
|
|
|
\includeonly{
|
|
|
|
\include{
|
|
|
|
|
|
|
|
Do (Complete):
|
|
|
|
A\<c-x>\<c-o>\<c-o>\<c-o>\<c-o>}\<esc>
|
|
|
|
jA\<c-x>\<c-o>,\<c-x>\<c-o>\<c-o>\<c-o>\<c-o>\<c-o>}\<esc>
|
|
|
|
jA\<c-x>\<c-o>\<c-p>\<c-p>}
|
2016-04-07 15:27:09 -04:00
|
|
|
|
|
|
|
Expect tex (Verify):
|
2016-04-07 16:32:18 -04:00
|
|
|
\input {preamble.tex}
|
|
|
|
\includeonly{chapter.tex,section.tex}
|
|
|
|
\include{section.tex}
|
2016-04-07 15:27:09 -04:00
|
|
|
|
|
|
|
Given tex (Completion: \includepdf):
|
2016-04-07 16:32:18 -04:00
|
|
|
=================================================================================
|
2016-04-07 15:27:09 -04:00
|
|
|
\includepdf{
|
|
|
|
|
|
|
|
Do (Complete):
|
|
|
|
A\<c-x>\<c-o>\<c-p>\<c-p>}
|
|
|
|
|
|
|
|
Expect tex (Verify):
|
|
|
|
\includepdf{fig_3.pdf}
|
|
|
|
|
2016-04-07 16:32:18 -04:00
|
|
|
Given tex (Completion: \includestandalone):
|
|
|
|
=================================================================================
|
|
|
|
\includestandalone{
|
|
|
|
|
|
|
|
Do (Complete):
|
|
|
|
A\<c-x>\<c-o>\<c-n>}
|
|
|
|
|
|
|
|
Expect tex (Verify):
|
|
|
|
\includestandalone{fig_1}
|
|
|
|
|
2016-04-07 15:27:09 -04:00
|
|
|
Given:
|
2016-04-07 02:24:26 -04:00
|
|
|
Execute (Cleanup):
|
2016-04-07 16:32:18 -04:00
|
|
|
=================================================================================
|
2016-04-07 17:08:10 -04:00
|
|
|
call system('rm -f *.tex')
|
2016-04-07 15:27:09 -04:00
|
|
|
call system('rm -f fig*pdf')
|
2016-04-07 16:32:18 -04:00
|
|
|
call system('rm -f fig*png')
|
2016-04-07 17:08:10 -04:00
|
|
|
call system('rm -f fig*png')
|
2016-04-07 02:24:26 -04:00
|
|
|
|