Generalhow to make texcentre works with jabref?

LaTeX specific issues not fitting into one of the other forums of this category.
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

Re: how to make texcentre works with jabref?

Post by spiegboy »

I see, thank you very much.
actually it doesnt make too much sense that we have to link the files outside the main file directory,
our discussion is based on the high spirit of research.:)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

how to make texcentre works with jabref?

Post by Stefan Kottwitz »

Hi,

Code: Select all

\input{"foo bar.tex"}
works for me with TeX Live.

Code: Select all

\begingroup\catcode`~=12\input{foobar~1.tex}\endgroup
works too, but note that this way the ~ will not produce a non-breaking space when used inside foobar~1.tex.

Stefan
LaTeX.org admin
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

how to make texcentre works with jabref?

Post by gmedina »

T3. wrote:

Code: Select all

\documentclass{minimal}
\begin{document}
Test input with white space:
\input{"foo bar.tex"} %this works

Test input with short name:
%\input{foobar~1.tex} %this fails

Test input with short name:
\begingroup\catcode`~=12\input{foobar~1.tex}\endgroup %this works

Test include with white space:
\include{"foo bar.tex"} %this fails but the compilation proceeds

Test include with short name:
%\include{foobar~1.tex} %this fails

Test input with short name:
\begingroup\catcode`~=12\include{foobar~1.tex}\endgroup %this behaves strangely
\end{document}
So, actually only input of quoted file name works entirely properly. Anyway, it's a really bad idea to rely on this behaviour. And I'm not sure if the same holds for TeXLive. Perhaps someone else can test it.

Cheers,

Tomek

Edit: Tested on MiKTeX 2.7
Hi Tomek, I tested your code with TeX-Live 2007 and I can confirm almost all your results: The only difference comes in the last part:

Code: Select all

Test input with short name:
\begingroup\catcode`~=12\include{foobar~1.tex}\endgroup %this behaves strangely
The first run goes OK but the second one generates errors.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply