Strange Temp directory used

2012-10-26 Thread Andreas Paeffgen

MacOS 10.7.4, Lyx 2.04

In the preferences of Lyx i set the temp directory path to 
/Users/MyUser/Documents/TMP.


But Lyx uses the following path to create tmp files:  
/private/var/folders/c9..

Is there a way force Lyx to use the path in the preferences?

Andreas




psfragfig

2012-10-26 Thread Michael Bach

Dear LyX Users and Developers,

I am using MacTeX on OS X 10.8.2 with the pstool package installed. I am 
trying to get the matlabfrag Matlab package to work. It can be found here:

http://www.mathworks.com/matlabcentral/fileexchange/21286-matlabfrag

The User Guide explicitly says to include the generated .eps file in LyX 
via a LaTeX inset containing the \psfragfig macro inside a float 
environment. The foo.eps file resides in the figures/ folder relative to 
the .lyx file. I also had to enable -shell-escape in the converters 
settings under preferences.


The LaTeX source thus reads:
\begin{figure}
\psfragfig{figures/EulerImplizit}
\caption{\label{fig:Implizites-Eulerverfahren-Matlab}Implizites 
Eulerverfahren

mit Matlab. Verschiedene Schrittweiten $h$ für die Differentialgleichung
$x'=-x$}
\end{figure}

Now when I try to compile the document, I see the line:
=== pstool: begin processing ===
Error exporting to format 
pdf2/Users/Shared/LyX/lyx-2.0.4/src/support/Systemcall.cpp(273): 
Systemcall: 'pdflatex -synctex=-1 -shell-escape  skriptum.tex' 
finished with exit code 1


in the messages pane and get the error:
I can't write on file `figures/EulerExplizit-pstool.tex'.

Now I assume that the external command from pstool is run inside the 
temporary LyX directory and it thus cannot find the figures/ folder to 
write the .tex file to...


Is anyone using this setup? Or otherwise related to psfragfig? Can you 
give me hints on how to solve this?


Best Regards,
Michael Bach




bibtex citation are converted to '?' in the output pdf

2012-10-26 Thread Nasreddine Cheniki
hi,
I'm using Lyx on windows 7. I have a problem with bibliography.
I tried to add external .bib bibliography to my document, for the first
time it worked, but now compiled pdf display question mark '?' instead of a
citation.
Another strange problem, that the citation style display two list items :
'[#ID]' and 'add to the bibliography only'.


Re: xfig and LyX

2012-10-26 Thread Georg Baum
Wolfgang Engelmann wrote:

 Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:
 
 Thanks, Georg,
 
 but I have still not managed to get the greek letter displayed in the .fig
 file in LyX. If you don't mind, I would like to send you a minimal lyx
 file and the fig file privately (together 10kb) for a trial. May I?

Sure, I can have a look. But I can't promise that I'll find the problem ;-)


Georg



Re: Metric (TFM) file not found error

2012-10-26 Thread Csikos Bela
Paul A. Rubin ru...@msu.edu írta:

 Once more for maikng it clear: if I run pdflatex in the same directory
 the pdf file is created and is correct. Latex can find the file
 if I run pdflatex.

Paul, thank you for your answer, it helped me to solve the problem.

What happens if you run pdflatex from a different directory and give it
the path to the exported .tex file?

In that case pdflatex can not make pdf output either as it can not find
the necessary files (fonts and sty files).


LyX does not run pdflatex in the source directory; it exports the .tex
file to a temp directory, copies over image files (mangling their names
as needed) and compiles in the temp directory, so as not to screw up 
anything in the source directory. It should be copying over the PDF 
files, but it has no way of knowing that it needs to copy over the
TFM files.


I knew that lyx uses a temporary directory but I believed that
it still uses all the necessary files which are available in the current
(lyx file's) directory. Obviously I was wrong.

If the TFM files are on the LaTeX search path, then no copying of
them should be required (pdflatex should be able to find them from 
anywhere).

Your message made clear that this is latex path and not lyx problem.
Therefore I made a copy of the /usr/local/texlive/2011/texmf-dist/fonts 
directory structure in my ~/texfm dir and copied the fonts into the
corresponding subdirs. (I also added the necessary map entry lines to
/usr2/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex_dl14.map 
file, but I did it earlier.)
After this both lyx and latex could produce pdf output.

One more thing: I added the full path of the directory that contained all the 
necessary files (fonts, map, style file) to lyx-tools-preferences-paths 
TEXINPUT prefix but it did not make a change either.
What is TEXINPUT prefix path for then?

Thank for your help,

bcsikos



Re: Metric (TFM) file not found error

2012-10-26 Thread Paul A . Rubin
Csikos Bela bcsikos425 at freemail.hu writes:

 One more thing: I added the full path of the directory that contained
 all the necessary files (fonts, map,
 style file) to lyx-tools-preferences-paths 
 TEXINPUT prefix but it did not make a change either.
 What is TEXINPUT prefix path for then?

I'm not positive, since I never use it, but I believe it is intended to
provide a default path to external source files that are included in the 
final .tex file. I'm not sure if this includes .sty files, although I
think it does. Apparently it does not help with font files (?).

Paul






underline bug?

2012-10-26 Thread Csikos Bela
Hello:

When several words are underlined and the font size is changed from normal to 
other size the output font size is incorrect for the second, third etc. word.
See the attached example.
Is this a bug or am I missing something?

It can be fixed by inserting TEX code but it might be tricky
as it is difficult to predict where the TEX codes are put exactly
in the formatted text.

This raises another issue: there should be a way in
lyx to control the exact location of the inserted TEX code.

bcsikos


underline-bug-1.lyx
Description: Binary data


underline-bug-1.pdf
Description: Adobe PDF document


Re: bibtex citation are converted to '?' in the output pdf

2012-10-26 Thread Richard Heck

On 10/26/2012 09:40 AM, Nasreddine Cheniki wrote:

hi,
I'm using Lyx on windows 7. I have a problem with bibliography.
I tried to add external .bib bibliography to my document, for the 
first time it worked, but now compiled pdf display question mark '?' 
instead of a citation.
Another strange problem, that the citation style display two list 
items : '[#ID]' and 'add to the bibliography only'.


Check DocumentSettingsBibliography, and see what style is selected. 
This is normal for numerical citations.


rh




Re: open file/file selector window size in linux

2012-10-26 Thread Charlie
 On Fri, 26 Oct 2012 22:52:57 +0200 (CEST) Csikos Bela
 bcsikos...@freemail.hu suggested this:

Hello:

I am using lyx 2.0.4 on openSUSE linux.
Whenever I open a lyx file the file chooser/file picker window
(titled Select document to open) is sized too small and I have to
drag the edge/corner to increase it. Next time when I open a file
the window size is again the same small size as previously.
Is it possible to make lyx remember the file picker window size
or set the default size larger?

Thanks,

bcsikos

Is that something to do with your desktop/display manager not LyX?

Charlie

-- 
Registered Linux User:- 329524
***

What does education often do? It makes a straight-cut ditch of
a free, meandering brook. - Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Strange Temp directory used

2012-10-26 Thread Andreas Paeffgen

MacOS 10.7.4, Lyx 2.04

In the preferences of Lyx i set the temp directory path to 
/Users/MyUser/Documents/TMP.


But Lyx uses the following path to create tmp files:  
/private/var/folders/c9..

Is there a way force Lyx to use the path in the preferences?

Andreas




psfragfig

2012-10-26 Thread Michael Bach

Dear LyX Users and Developers,

I am using MacTeX on OS X 10.8.2 with the pstool package installed. I am 
trying to get the matlabfrag Matlab package to work. It can be found here:

http://www.mathworks.com/matlabcentral/fileexchange/21286-matlabfrag

The User Guide explicitly says to include the generated .eps file in LyX 
via a LaTeX inset containing the \psfragfig macro inside a float 
environment. The foo.eps file resides in the figures/ folder relative to 
the .lyx file. I also had to enable -shell-escape in the converters 
settings under preferences.


The LaTeX source thus reads:
\begin{figure}
\psfragfig{figures/EulerImplizit}
\caption{\label{fig:Implizites-Eulerverfahren-Matlab}Implizites 
Eulerverfahren

mit Matlab. Verschiedene Schrittweiten $h$ für die Differentialgleichung
$x'=-x$}
\end{figure}

Now when I try to compile the document, I see the line:
=== pstool: begin processing ===
Error exporting to format 
pdf2/Users/Shared/LyX/lyx-2.0.4/src/support/Systemcall.cpp(273): 
Systemcall: 'pdflatex -synctex=-1 -shell-escape  skriptum.tex' 
finished with exit code 1


in the messages pane and get the error:
I can't write on file `figures/EulerExplizit-pstool.tex'.

Now I assume that the external command from pstool is run inside the 
temporary LyX directory and it thus cannot find the figures/ folder to 
write the .tex file to...


Is anyone using this setup? Or otherwise related to psfragfig? Can you 
give me hints on how to solve this?


Best Regards,
Michael Bach




bibtex citation are converted to '?' in the output pdf

2012-10-26 Thread Nasreddine Cheniki
hi,
I'm using Lyx on windows 7. I have a problem with bibliography.
I tried to add external .bib bibliography to my document, for the first
time it worked, but now compiled pdf display question mark '?' instead of a
citation.
Another strange problem, that the citation style display two list items :
'[#ID]' and 'add to the bibliography only'.


Re: xfig and LyX

2012-10-26 Thread Georg Baum
Wolfgang Engelmann wrote:

 Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:
 
 Thanks, Georg,
 
 but I have still not managed to get the greek letter displayed in the .fig
 file in LyX. If you don't mind, I would like to send you a minimal lyx
 file and the fig file privately (together 10kb) for a trial. May I?

Sure, I can have a look. But I can't promise that I'll find the problem ;-)


Georg



Re: Metric (TFM) file not found error

2012-10-26 Thread Csikos Bela
Paul A. Rubin ru...@msu.edu írta:

 Once more for maikng it clear: if I run pdflatex in the same directory
 the pdf file is created and is correct. Latex can find the file
 if I run pdflatex.

Paul, thank you for your answer, it helped me to solve the problem.

What happens if you run pdflatex from a different directory and give it
the path to the exported .tex file?

In that case pdflatex can not make pdf output either as it can not find
the necessary files (fonts and sty files).


LyX does not run pdflatex in the source directory; it exports the .tex
file to a temp directory, copies over image files (mangling their names
as needed) and compiles in the temp directory, so as not to screw up 
anything in the source directory. It should be copying over the PDF 
files, but it has no way of knowing that it needs to copy over the
TFM files.


I knew that lyx uses a temporary directory but I believed that
it still uses all the necessary files which are available in the current
(lyx file's) directory. Obviously I was wrong.

If the TFM files are on the LaTeX search path, then no copying of
them should be required (pdflatex should be able to find them from 
anywhere).

Your message made clear that this is latex path and not lyx problem.
Therefore I made a copy of the /usr/local/texlive/2011/texmf-dist/fonts 
directory structure in my ~/texfm dir and copied the fonts into the
corresponding subdirs. (I also added the necessary map entry lines to
/usr2/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex_dl14.map 
file, but I did it earlier.)
After this both lyx and latex could produce pdf output.

One more thing: I added the full path of the directory that contained all the 
necessary files (fonts, map, style file) to lyx-tools-preferences-paths 
TEXINPUT prefix but it did not make a change either.
What is TEXINPUT prefix path for then?

Thank for your help,

bcsikos



Re: Metric (TFM) file not found error

2012-10-26 Thread Paul A . Rubin
Csikos Bela bcsikos425 at freemail.hu writes:

 One more thing: I added the full path of the directory that contained
 all the necessary files (fonts, map,
 style file) to lyx-tools-preferences-paths 
 TEXINPUT prefix but it did not make a change either.
 What is TEXINPUT prefix path for then?

I'm not positive, since I never use it, but I believe it is intended to
provide a default path to external source files that are included in the 
final .tex file. I'm not sure if this includes .sty files, although I
think it does. Apparently it does not help with font files (?).

Paul






underline bug?

2012-10-26 Thread Csikos Bela
Hello:

When several words are underlined and the font size is changed from normal to 
other size the output font size is incorrect for the second, third etc. word.
See the attached example.
Is this a bug or am I missing something?

It can be fixed by inserting TEX code but it might be tricky
as it is difficult to predict where the TEX codes are put exactly
in the formatted text.

This raises another issue: there should be a way in
lyx to control the exact location of the inserted TEX code.

bcsikos


underline-bug-1.lyx
Description: Binary data


underline-bug-1.pdf
Description: Adobe PDF document


Re: bibtex citation are converted to '?' in the output pdf

2012-10-26 Thread Richard Heck

On 10/26/2012 09:40 AM, Nasreddine Cheniki wrote:

hi,
I'm using Lyx on windows 7. I have a problem with bibliography.
I tried to add external .bib bibliography to my document, for the 
first time it worked, but now compiled pdf display question mark '?' 
instead of a citation.
Another strange problem, that the citation style display two list 
items : '[#ID]' and 'add to the bibliography only'.


Check DocumentSettingsBibliography, and see what style is selected. 
This is normal for numerical citations.


rh




Re: open file/file selector window size in linux

2012-10-26 Thread Charlie
 On Fri, 26 Oct 2012 22:52:57 +0200 (CEST) Csikos Bela
 bcsikos...@freemail.hu suggested this:

Hello:

I am using lyx 2.0.4 on openSUSE linux.
Whenever I open a lyx file the file chooser/file picker window
(titled Select document to open) is sized too small and I have to
drag the edge/corner to increase it. Next time when I open a file
the window size is again the same small size as previously.
Is it possible to make lyx remember the file picker window size
or set the default size larger?

Thanks,

bcsikos

Is that something to do with your desktop/display manager not LyX?

Charlie

-- 
Registered Linux User:- 329524
***

What does education often do? It makes a straight-cut ditch of
a free, meandering brook. - Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Strange Temp directory used

2012-10-26 Thread Andreas Paeffgen

MacOS 10.7.4, Lyx 2.04

In the preferences of Lyx i set the temp directory path to 
/Users/MyUser/Documents/TMP.


But Lyx uses the following path to create tmp files:  
/private/var/folders/c9..

Is there a way force Lyx to use the path in the preferences?

Andreas




psfragfig

2012-10-26 Thread Michael Bach

Dear LyX Users and Developers,

I am using MacTeX on OS X 10.8.2 with the pstool package installed. I am 
trying to get the matlabfrag Matlab package to work. It can be found here:

http://www.mathworks.com/matlabcentral/fileexchange/21286-matlabfrag

The User Guide explicitly says to include the generated .eps file in LyX 
via a LaTeX inset containing the \psfragfig macro inside a float 
environment. The foo.eps file resides in the figures/ folder relative to 
the .lyx file. I also had to enable -shell-escape in the converters 
settings under preferences.


The LaTeX source thus reads:
\begin{figure}
\psfragfig{figures/EulerImplizit}
\caption{\label{fig:Implizites-Eulerverfahren-Matlab}Implizites 
Eulerverfahren

mit Matlab. Verschiedene Schrittweiten $h$ für die Differentialgleichung
$x'=-x$}
\end{figure}

Now when I try to compile the document, I see the line:
=== pstool: begin processing ===
Error exporting to format 
pdf2/Users/Shared/LyX/lyx-2.0.4/src/support/Systemcall.cpp(273): 
Systemcall: 'pdflatex -synctex=-1 -shell-escape  "skriptum.tex"' 
finished with exit code 1


in the messages pane and get the error:
I can't write on file `figures/EulerExplizit-pstool.tex'.

Now I assume that the external command from pstool is run inside the 
temporary LyX directory and it thus cannot find the figures/ folder to 
write the .tex file to...


Is anyone using this setup? Or otherwise related to psfragfig? Can you 
give me hints on how to solve this?


Best Regards,
Michael Bach




bibtex citation are converted to '?' in the output pdf

2012-10-26 Thread Nasreddine Cheniki
hi,
I'm using Lyx on windows 7. I have a problem with bibliography.
I tried to add external .bib bibliography to my document, for the first
time it worked, but now compiled pdf display question mark '?' instead of a
citation.
Another strange problem, that the citation style display two list items :
'[#ID]' and 'add to the bibliography only'.


Re: xfig and LyX

2012-10-26 Thread Georg Baum
Wolfgang Engelmann wrote:

> Am Dienstag, 23. Oktober 2012, 21:23:11 schrieb Georg Baum:
> 
> Thanks, Georg,
> 
> but I have still not managed to get the greek letter displayed in the .fig
> file in LyX. If you don't mind, I would like to send you a minimal lyx
> file and the fig file privately (together 10kb) for a trial. May I?

Sure, I can have a look. But I can't promise that I'll find the problem ;-)


Georg



Re: Metric (TFM) file not found error

2012-10-26 Thread Csikos Bela
"Paul A. Rubin"  írta:
>
>> Once more for maikng it clear: if I run pdflatex in the same directory
>> the pdf file is created and is correct. Latex can find the file
>> if I run pdflatex.>

Paul, thank you for your answer, it helped me to solve the problem.

>What happens if you run pdflatex from a different directory and give it
>the path to the exported .tex file?

In that case pdflatex can not make pdf output either as it can not find
the necessary files (fonts and sty files).

>
>LyX does not run pdflatex in the source directory; it exports the .tex
>file to a temp directory, copies over image files (mangling their names
>as needed) and compiles in the temp directory, so as not to screw up 
>anything in the source directory. It should be copying over the PDF 
>files, but it has no way of knowing that it needs to copy over the
>TFM files.
>

I knew that lyx uses a temporary directory but I believed that
it still uses all the necessary files which are available in the current
(lyx file's) directory. Obviously I was wrong.

>If the TFM files are on the LaTeX search path, then no copying of
>them should be required (pdflatex should be able to find them from 
>anywhere).

Your message made clear that this is latex path and not lyx problem.
Therefore I made a copy of the /usr/local/texlive/2011/texmf-dist/fonts 
directory structure in my ~/texfm dir and copied the fonts into the
corresponding subdirs. (I also added the necessary map entry lines to
/usr2/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex_dl14.map 
file, but I did it earlier.)
After this both lyx and latex could produce pdf output.

One more thing: I added the full path of the directory that contained all the 
necessary files (fonts, map, style file) to lyx->tools->preferences->paths 
TEXINPUT prefix but it did not make a change either.
What is TEXINPUT prefix path for then?

Thank for your help,

bcsikos



Re: Metric (TFM) file not found error

2012-10-26 Thread Paul A . Rubin
Csikos Bela  freemail.hu> writes:

> One more thing: I added the full path of the directory that contained
> all the necessary files (fonts, map,
> style file) to lyx->tools->preferences->paths 
> TEXINPUT prefix but it did not make a change either.
> What is TEXINPUT prefix path for then?

I'm not positive, since I never use it, but I believe it is intended to
provide a default path to external source files that are included in the 
final .tex file. I'm not sure if this includes .sty files, although I
think it does. Apparently it does not help with font files (?).

Paul






underline bug?

2012-10-26 Thread Csikos Bela
Hello:

When several words are underlined and the font size is changed from normal to 
other size the output font size is incorrect for the second, third etc. word.
See the attached example.
Is this a bug or am I missing something?

It can be fixed by inserting TEX code but it might be tricky
as it is difficult to predict where the TEX codes are put exactly
in the formatted text.

This raises another issue: there should be a way in
lyx to control the exact location of the inserted TEX code.

bcsikos


underline-bug-1.lyx
Description: Binary data


underline-bug-1.pdf
Description: Adobe PDF document


Re: bibtex citation are converted to '?' in the output pdf

2012-10-26 Thread Richard Heck

On 10/26/2012 09:40 AM, Nasreddine Cheniki wrote:

hi,
I'm using Lyx on windows 7. I have a problem with bibliography.
I tried to add external .bib bibliography to my document, for the 
first time it worked, but now compiled pdf display question mark '?' 
instead of a citation.
Another strange problem, that the citation style display two list 
items : '[#ID]' and 'add to the bibliography only'.


Check Document>Settings>Bibliography, and see what style is selected. 
This is normal for numerical citations.


rh




Re: open file/file selector window size in linux

2012-10-26 Thread Charlie
 On Fri, 26 Oct 2012 22:52:57 +0200 (CEST) "Csikos Bela
 bcsikos...@freemail.hu" suggested this:

>Hello:
>
>I am using lyx 2.0.4 on openSUSE linux.
>Whenever I open a lyx file the file chooser/file picker window
>(titled "Select document to open") is sized too small and I have to
>drag the edge/corner to increase it. Next time when I open a file
>the window size is again the same small size as previously.
>Is it possible to make lyx remember the file picker window size
>or set the default size larger?
>
>Thanks,
>
>bcsikos

Is that something to do with your desktop/display manager not LyX?

Charlie

-- 
Registered Linux User:- 329524
***

What does education often do? It makes a straight-cut ditch of
a free, meandering brook. - Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-