Re: Slightly OT: compiling .tex file

2022-11-01 Thread Herbert Voss



Am 01.11.22 um 20:57 schrieb Rich Shepard:

On Tue, 1 Nov 2022, Herbert Voss wrote:


Rich your PSTricks files are too old. You have 3.01 and the Lua-support
was introduced with version 3.06


Slackware still uses TeXLive 2021.


xelatex 


Same failure.


ok, then use the (old) traditional way:

latex 
dvips 
ps2pdf --dNoSafer .ps


If you have a ew Ghostscript you may use

ps2pdf --dNoSafer -dALLOWPSTRANSPARENCY  .ps


Herbert





Looking at  I don't find a link to
download/upgrade all installed packages. Guess I'll do them one at a 
time.


Thanks,

Rich


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Slightly OT: compiling .tex file

2022-11-01 Thread Rich Shepard

On Tue, 1 Nov 2022, Herbert Voss wrote:


Rich your PSTricks files are too old. You have 3.01 and the Lua-support
was introduced with version 3.06


Herbert,

Okay.


Update your TeXLive system or run the document with


Slackware still uses TeXLive 2021.


xelatex 


Same failure.

Looking at  I don't find a link to
download/upgrade all installed packages. Guess I'll do them one at a time.

Thanks,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Slightly OT: compiling .tex file

2022-11-01 Thread Herbert Voss

Rich your PSTricks files are too old. You have 3.01 and the Lua-support
was introduced with version 3.06

Update your TeXLive system or run the document with

xelatex 

Herbert


Am 01.11.22 um 20:06 schrieb Rich Shepard:

On Tue, 1 Nov 2022, Herbert Voss wrote:

$ lualatex logo.tex This is LuaHBTeX, Version 1.13.2 (TeX Live 2021 
on Slint)

 restricted system commands enabled.

(Fatal format file error; I'm stymied)



run in a terminal


Herbert,

That's what I do.


fmtutil-sys --byengine=luahbtex


Yes, this needs to be run by root.

lualatex produced an error; gzipped file of the command results are
attached.

Regards,

Rich



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Slightly OT: compiling .tex file

2022-11-01 Thread Rich Shepard

On Tue, 1 Nov 2022, Herbert Voss wrote:

$ lualatex logo.tex This is LuaHBTeX, Version 1.13.2 (TeX Live 2021 on 
Slint)

 restricted system commands enabled.

(Fatal format file error; I'm stymied)



run in a terminal


Herbert,

That's what I do.


fmtutil-sys --byengine=luahbtex


Yes, this needs to be run by root.

lualatex produced an error; gzipped file of the command results are
attached.

Regards,

Rich

lualatex-error.txt.gz
Description: GNU Zip compressed data
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Slightly OT: compiling .tex file

2022-11-01 Thread Herbert Voss



Am 01.11.22 um 19:42 schrieb Rich Shepard:

On Tue, 1 Nov 2022, Herbert Voss wrote:


it is PSTricks, use lualatex instead.


Herbert,

Okay. That's different. But lualatex and I are stymied:
$ lualatex logo.tex This is LuaHBTeX, Version 1.13.2 (TeX Live 2021 on 
Slint)

 restricted system commands enabled.

(Fatal format file error; I'm stymied)

I've missed something, perhaps because I've not before used lualatex?


Rich,

run in a terminal

fmtutil-sys --byengine=luahbtex

maybe that you need sudo

sudo fmtutil-sys --byengine=luahbtex

Are there error messages in the output? If not, then try again with
running the example.

Hebrert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Slightly OT: compiling .tex file

2022-11-01 Thread Rich Shepard

On Tue, 1 Nov 2022, Herbert Voss wrote:


it is PSTricks, use lualatex instead.


Herbert,

Okay. That's different. But lualatex and I are stymied:
$ lualatex logo.tex 
This is LuaHBTeX, Version 1.13.2 (TeX Live 2021 on Slint)

 restricted system commands enabled.

(Fatal format file error; I'm stymied)

I've missed something, perhaps because I've not before used lualatex?

Regards,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Slightly OT: compiling .tex file

2022-11-01 Thread Herbert Voss

Rich,

it is PSTricks, use lualatex instead.

Herbert


Am 01.11.22 um 18:29 schrieb Rich Shepard:

I thought that pdflatex would compile this file:
---
\documentclass{article}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{pst-solides3d,pstricks-add,graphicx}

\begin{document}
\resizebox{500pt}{492pt}{%
    \begin{pspicture}(-10,-4)(10,17)
    \psset{lightsrc=viewpoint,lightintensity=1,viewpoint=40 10 30 
rtp2xyz,Decran=120}

\axesIIID[showOrigin=true,linecolor=Orange](0,0,0)(7.5,6,6)
    \psSolid[object=octahedron,a=4.5] 
\psSolid[r=4.5,object=sphere,action=draw,ngrid=20 20]

    \end{pspicture}}

\end{document}
---
But it doesn't. I'm running texlive-2021.210418-x86_64-1slint.

It's been a long time since I last compiled a PSTricks file and I've
obviously fogotten steps. Please remind me how this is done.

Rich


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Slightly OT: compiling .tex file

2022-11-01 Thread Rich Shepard

I thought that pdflatex would compile this file:
---
\documentclass{article}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{pst-solides3d,pstricks-add,graphicx}

\begin{document}
\resizebox{500pt}{492pt}{%
    \begin{pspicture}(-10,-4)(10,17)
    \psset{lightsrc=viewpoint,lightintensity=1,viewpoint=40 10 30 
rtp2xyz,Decran=120}
    \axesIIID[showOrigin=true,linecolor=Orange](0,0,0)(7.5,6,6)
    \psSolid[object=octahedron,a=4.5] 
    \psSolid[r=4.5,object=sphere,action=draw,ngrid=20 20]

    \end{pspicture}}

\end{document}
---
But it doesn't. I'm running texlive-2021.210418-x86_64-1slint.

It's been a long time since I last compiled a PSTricks file and I've
obviously fogotten steps. Please remind me how this is done.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Replacing .tex file fonts

2022-08-20 Thread Paul A. Rubin

On 8/20/22 17:16, Rich Shepard wrote:

On Sat, 20 Aug 2022, Rich Shepard wrote:


Okay. I'll post results.


Paul,

What's displayed on screen is the first few lines (\put ...) between 
\begin

and \end document.

The preamble has the entire .tex file.

Sigh,

I've not worked before writing a plain .tex document. Long ago I had a 
book
on TeX, but that's been gone for a while. So, I've no idea how to 
translate

that flavor of .tex file to .pdftex or .pdflatex.

Rich
I don't think this is a plain tex versus pdftex/pdflatex issue. I took a 
closer look at the file. In the preamble, it defines a custom 
environment named "roastlog" which includes some goofy (to me) font 
specifications ("Museo Slab 300 Italic"??). The \put commands in the 
body of the LyX doc are between \begin and \end commands for that 
environment, not begin/end document.


I've attached a LyX file in which I switched the fonts to defaults and, 
in the preamble, commented out the load of the xunicode package (because 
I'm using pdflatex and not xetex), all the setromanfont commands (you 
can try uncommenting them and replacing Museo whatever with some fonts 
you do have) and the graphics includes (because I don't have the graphic 
files). Your guess is better than mine as to why weird fonts are being 
used, but in your shoes I would be tempted to compile and print it 
(using default fonts) and then abandon the .tex file and, starting from 
scratch, create a LyX file that produces the same general output with 
fonts you like (meaning more stuff in the document body and no macros in 
the preamble).


Lotsa luck!

Paul


roastlog2.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Replacing .tex file fonts

2022-08-20 Thread Rich Shepard

On Sat, 20 Aug 2022, Rich Shepard wrote:


I've not worked before writing a plain .tex document. Long ago I had a
book on TeX, but that's been gone for a while. So, I've no idea how to
translate that flavor of .tex file to .pdftex or .pdflatex.


Looking at my business book case I see that I have a book on Postscript with
all my LaTeX books. Since The TeXbook is spiral bound I realize that I never
had a copy, but one will be here Monday. :-)

I'll make that darn roast log work with Farenheit temperatures on letter
size paper and in a typeface and fonts that are installed here.

Thanks, Paul,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Replacing .tex file fonts

2022-08-20 Thread Rich Shepard

On Sat, 20 Aug 2022, Rich Shepard wrote:


Okay. I'll post results.


Paul,

What's displayed on screen is the first few lines (\put ...) between \begin
and \end document.

The preamble has the entire .tex file.

Sigh,

I've not worked before writing a plain .tex document. Long ago I had a book
on TeX, but that's been gone for a while. So, I've no idea how to translate
that flavor of .tex file to .pdftex or .pdflatex.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Replacing .tex file fonts

2022-08-20 Thread Rich Shepard

On Sat, 20 Aug 2022, Paul A. Rubin wrote:


I can't do much with your .tex file for a variety of reasons (including
the fact that the graphic files were not included, but mostly due to my
not using xetex, luatex or several of the more "exotic" packages
involved).


Paul,

I don't use those, either.


That said, you might try the following: (a) import the file into LyX using
File > Import LaTeX (plain) ...; (b) use Document > Settings... > Fonts to
adjust as needed (you might want to uncheck the "Use non-TeX fonts"
option); (c) remove or comment out the \DefaultFontFeatures command in the
preamble if it gives you trouble; (d) compile and see if you get something
you like. If you get something you don't like, try futzing with the font
selections. If you don't get anything, you're on your own. :-)


Okay. I'll post results.

Thanks,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Replacing .tex file fonts

2022-08-20 Thread Paul A. Rubin

On 8/20/22 14:06, Rich Shepard wrote:
I have a .tex file designed for a4 paper and a font family I don't 
have (and
don't want) that I want to convert to letterpaper (done) and my lyx 
default

typeface. Or, another appropriate typeface found in a .lyx file.

Looking at one of my .lyx files I see:
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default

which doesn't help.

The entire roastlog.tex file is attached (and, of course, available 
for use

by any other home coffee roaster.)

Please suggest a type face to replace the Museo Slab 300.

Regards,

Rich


Rich,

I can't do much with your .tex file for a variety of reasons (including 
the fact that the graphic files were not included, but mostly due to my 
not using xetex, luatex or several of the more "exotic" packages 
involved). That said, you might try the following: (a) import the file 
into LyX using File > Import > LaTeX (plain) ...; (b) use Document > 
Settings... > Fonts to adjust as needed (you might want to uncheck the 
"Use non-TeX fonts" option); (c) remove or comment out the 
\DefaultFontFeatures command in the preamble if it gives you trouble; 
(d) compile and see if you get something you like. If you get something 
you don't like, try futzing with the font selections. If you don't get 
anything, you're on your own. :-)


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Replacing .tex file fonts

2022-08-20 Thread Rich Shepard

I have a .tex file designed for a4 paper and a font family I don't have (and
don't want) that I want to convert to letterpaper (done) and my lyx default
typeface. Or, another appropriate typeface found in a .lyx file.

Looking at one of my .lyx files I see:
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default

which doesn't help.

The entire roastlog.tex file is attached (and, of course, available for use
by any other home coffee roaster.)

Please suggest a type face to replace the Museo Slab 300.

Regards,

Rich

roastlog.tex
Description: TeX document
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-28 Thread Rich Shepard

On Sat, 28 Aug 2021, Stephan Witt wrote:


Ok, I mentioned it because you said you’ve killed LyX. If you’ve quit LyX
regularly then the temporary files are removed and you cannot find them anymore.
The running process has this open and therefore you can see it. It’s on disk
present until you kill the background process and then the disk space is freed.


LyX is always exited with Ctrl-Q. The .tex processes that remained and
consumed 100% of the CPUs (according to top) were killed by root with the
command
kill -9 

FWIW I've run only linux since 1997 and am quite familiar with it.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-28 Thread Stephan Witt
Am 28.08.2021 um 14:36 schrieb Rich Shepard :
> 
> On Sat, 28 Aug 2021, Stephan Witt wrote:
> 
>> on quit LyX removes it’s temporary files and directories. This doesn’t
>> happen on sudden death of LyX. The question now is: is /tmp the location
>> for temporary files and directories?
>> 
>> On MacOS it’s not /tmp if you don’t set the path explicitly to /tmp.
> 
> Stephan,
> 
> Yes, LyX has always stored temporary files in /tmp (appropriately enough)
> which is a default directory in linux. And I've not had LyX crash in
> decades; it's closed properly.

Ok, I mentioned it because you said you’ve killed LyX. If you’ve quit LyX
regularly then the temporary files are removed and you cannot find them anymore.
The running process has this open and therefore you can see it. It’s on disk
present until you kill the background process and then the disk space is freed.

BR, Stephan
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-28 Thread Rich Shepard

On Sat, 28 Aug 2021, Stephan Witt wrote:


on quit LyX removes it’s temporary files and directories. This doesn’t
happen on sudden death of LyX. The question now is: is /tmp the location
for temporary files and directories?

On MacOS it’s not /tmp if you don’t set the path explicitly to /tmp.


Stephan,

Yes, LyX has always stored temporary files in /tmp (appropriately enough)
which is a default directory in linux. And I've not had LyX crash in
decades; it's closed properly.

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-27 Thread Stephan Witt
Am 27.08.2021 um 22:51 schrieb Rich Shepard :
> 
> On Fri, 27 Aug 2021, Paul A. Rubin wrote:
> 
>> Do you by any chance have instant preview turned on in Tools > Preferences > 
>> Look & Feel > Display.
> 
> Paul,
> 
> Huh! It was turned on, but I've no recollection of ever doing this. And, as
> I wrote, it's never before been an issue. So I turned it off.
> 
>> The presence of "preview" in the file name suggests to me that LyX might
>> have been compiling something for instant preview.
> 
> Could be. I opened LyX, looked in preferences (but not Display), exited,
> then found Display and turned off instant preview. There were to *.tex files
> using the CPUs after I exited the second time. Killed both processes.
> 
>> As far as the undead process, if LyX spawns a latex / pdflatex / whatever
>> process to compile something and then you kill LyX, the child process does
>> not get killed automatically (at least in my experience). You have to nuke
>> it manually. I would expect the lyxpreviewN17596.tex file to be stashed in
>> the LyX temporary directory for the parent document.
> 
> If yesterday's files were in /tmp find should have found them. It didn’t.

Hi Rich,

on quit LyX removes it’s temporary files and directories. This doesn’t happen 
on sudden death of LyX. The question now is: is /tmp the location for temporary 
files and directories?

On MacOS it’s not /tmp if you don’t set the path explicitly to /tmp.

Stephan

> 
> Anyway, however the instant preview became active it's now off. Must be
> pandemic related, eh? :-)
> 
> Stay well,
> 
> Rich
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-27 Thread Paul A. Rubin

On 8/27/21 4:51 PM, Rich Shepard wrote:

On Fri, 27 Aug 2021, Paul A. Rubin wrote:

Do you by any chance have instant preview turned on in Tools > 
Preferences > Look & Feel > Display.


Paul,

Huh! It was turned on, but I've no recollection of ever doing this. 
And, as

I wrote, it's never before been an issue. So I turned it off.


The presence of "preview" in the file name suggests to me that LyX might
have been compiling something for instant preview.


Could be. I opened LyX, looked in preferences (but not Display), exited,
then found Display and turned off instant preview. There were to *.tex 
files

using the CPUs after I exited the second time. Killed both processes.

As far as the undead process, if LyX spawns a latex / pdflatex / 
whatever
process to compile something and then you kill LyX, the child process 
does
not get killed automatically (at least in my experience). You have to 
nuke
it manually. I would expect the lyxpreviewN17596.tex file to be 
stashed in

the LyX temporary directory for the parent document.


If yesterday's files were in /tmp find should have found them. It didn't.

Anyway, however the instant preview became active it's now off. Must be
pandemic related, eh? :-)

Stay well,

Rich

Rich,

The seldom benevolent digital deities have been on a bit of a rampage 
lately, based on personal experience. I don't know if it's caused by the 
pandemic, global warming, a surfeit of politicians (note that I'm 
listing disasters in ascending order of severity) or just random timing.


Anyway, hopefully the issue is fixed. The (presumed) fact that instant 
preview produced LaTeX processes that spun their digital wheels 
indefinitely might, however, indicate that you have something (math 
inset? other sort of inset?) that is indigestible to LaTeX, in which 
case the same problem may arise if and when you actually do compile the 
parent document.


Or maybe not. I've given up predicting the outcome of anything digital.

Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-27 Thread Rich Shepard

On Fri, 27 Aug 2021, Paul A. Rubin wrote:

Do you by any chance have instant preview turned on in Tools > Preferences > 
Look & Feel > Display.


Paul,

Huh! It was turned on, but I've no recollection of ever doing this. And, as
I wrote, it's never before been an issue. So I turned it off.


The presence of "preview" in the file name suggests to me that LyX might
have been compiling something for instant preview.


Could be. I opened LyX, looked in preferences (but not Display), exited,
then found Display and turned off instant preview. There were to *.tex files
using the CPUs after I exited the second time. Killed both processes.


As far as the undead process, if LyX spawns a latex / pdflatex / whatever
process to compile something and then you kill LyX, the child process does
not get killed automatically (at least in my experience). You have to nuke
it manually. I would expect the lyxpreviewN17596.tex file to be stashed in
the LyX temporary directory for the parent document.


If yesterday's files were in /tmp find should have found them. It didn't.

Anyway, however the instant preview became active it's now off. Must be
pandemic related, eh? :-)

Stay well,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Permanence of strange .tex file

2021-08-27 Thread Paul A. Rubin

On 8/26/21 3:27 PM, Rich Shepard wrote:

Here's another new experience for me. When I kill the lyx process there
remains a file, for example lyxpreviewN17596.tex, which shows up in the
process list as 'latex lyxpreviewN17596.tex' and consumes 100% of the 
CPUs

most of the time.

Root cannot find this file anywhere, and it persists after I close 
lyx, even

when I did not open the compiled PDF or look at a preview within lyx.

I kill the process but haven't seen this before and would like to 
understand

what might be behind this behavior.

Regards,

Rich
Do you by any chance have instant preview turned on in Tools > 
Preferences > Look & Feel > Display. The presence of "preview" in the 
file name suggests to me that LyX might have been compiling something 
for instant preview. As far as the undead process, if LyX spawns a latex 
/ pdflatex / whatever process to compile something and then you kill 
LyX, the child process does not get killed automatically (at least in my 
experience). You have to nuke it manually. I would expect the 
lyxpreviewN17596.tex file to be stashed in the LyX temporary directory 
for the parent document.


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Permanence of strange .tex file

2021-08-26 Thread Rich Shepard

Here's another new experience for me. When I kill the lyx process there
remains a file, for example lyxpreviewN17596.tex, which shows up in the
process list as 'latex lyxpreviewN17596.tex' and consumes 100% of the CPUs
most of the time.

Root cannot find this file anywhere, and it persists after I close lyx, even
when I did not open the compiled PDF or look at a preview within lyx.

I kill the process but haven't seen this before and would like to understand
what might be behind this behavior.

Regards,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Importing tex file into Lyx

2021-01-28 Thread Richard Kimberly Heck

On 1/28/21 2:48 PM, Paul A. Rubin wrote:

On 1/28/21 10:54 AM, Keith Sloan wrote:


My Uni has supplied me with a tex template that they want me to use.
I have tried opening a new Lyx document and then importing the tex 
file but I get an error see attached.

An error occurred while running:
$$s/../MacOS/text2lyx -f "casestudy.tex"
"casestudy.lyx"

I am on Mac Catalina 10.15.7

I note the tex file has near the beginning

%Example of use of Time Domain Astrophysics latex class
\documentclass{tda}

And they are also supplying a file tda.cls

Not sure where to go to diagnose the problem.
Hope somebody can help advise

== Art & Ceramics ===
https://www.instagram.com/ksloan1952/


I think you are going to have to do the following:

 1. Install tda.cls in your LaTeX setup (park it in an appropriate
location and make sure your LaTeX installation can find it).
 2. Create a LyX layout file for the tda class, and store that in your
local LyX directory.
 3. Reconfigure LyX so it finds the new layout.

See chapter 5 of the LyX Customization manual for details.

If you're lucky, the tda template will be based upon some standard LaTeX 
template (e.g., report or book), and you can get a working layout very 
simply: Copy report.layout (say) to tda.layout, and put that into your 
LyX user directory. Look at the tda.cls file (or post it here). You are 
likely to find some material that shows what it is based upon.


Riki


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Importing tex file into Lyx

2021-01-28 Thread Paul A. Rubin

On 1/28/21 10:54 AM, Keith Sloan wrote:


My Uni has supplied me with a tex template that they want me to use.
I have tried opening a new Lyx document and then importing the tex 
file but I get an error see attached.

An error occurred while running:
$$s/../MacOS/text2lyx -f "casestudy.tex"
"casestudy.lyx"

I am on Mac Catalina 10.15.7

I note the tex file has near the beginning

%Example of use of Time Domain Astrophysics latex class
\documentclass{tda}

And they are also supplying a file tda.cls

Not sure where to go to diagnose the problem.
Hope somebody can help advise

== Art & Ceramics ===
https://www.instagram.com/ksloan1952/


I think you are going to have to do the following:

1. Install tda.cls in your LaTeX setup (park it in an appropriate
   location and make sure your LaTeX installation can find it).
2. Create a LyX layout file for the tda class, and store that in your
   local LyX directory.
3. Reconfigure LyX so it finds the new layout.

See chapter 5 of the LyX Customization manual for details.

Paul


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Importing tex file into Lyx

2021-01-28 Thread Keith Sloan

My Uni has supplied me with a tex template that they want me to use.
I have tried opening a new Lyx document and then importing the tex file 
but I get an error see attached.

An error occurred while running:
$$s/../MacOS/text2lyx -f "casestudy.tex"
"casestudy.lyx"

I am on Mac Catalina 10.15.7

I note the tex file has near the beginning

%Example of use of Time Domain Astrophysics latex class
\documentclass{tda}

And they are also supplying a file tda.cls

Not sure where to go to diagnose the problem.
Hope somebody can help advise

== Art & Ceramics ===
https://www.instagram.com/ksloan1952/

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


RE: Intermediate .tex file during 'Convert' differs from manual export,causes problems

2020-06-11 Thread Mike Reeks
Alex
Could you please explain to me in simple English what these files represent.  
How do they relate to my problem. 
Mike

Sent from Mail for Windows 10

From: Alexander
Sent: 11 June 2020 11:10
To: lyx-users@lists.lyx.org
Subject: Intermediate .tex file during 'Convert' differs from manual 
export,causes problems

Hi all,

during creation of a Markdown converter in LyX I noticed some behavior,
which messes up the final output.

- created a new File Format 'Markdown' (as 'Document format' and 'With
  TeX fonts:' = 'PDF (XeTex)' <-- side note: using 'PDF (pdflatex)'
  would result in UTF-8 encoding errors during later conversion with
  pandoc error "pandoc: Cannot decode byte…")

- created a new Converter Definition 'LaTeX (XeTeX) -> Markdown', with
  converter command 'pandoc --wrap=none -f latex -t markdown -o $$o $$i'
  (results below are also the same when using 'LaTeX (plain) ->
  Markdown' as Converter)

- used this converter to export as Markdown


This basically works, and when I have an algorithm included in the LyX
file, the export still finishes, but has a fault in the output.

The intermediate .tex temp file created by LyX, during exporting to
markdown, has the two lines
--
\begin{lstlisting}%
[language=Python]
--
which in the final markdown file look like
--
%
[language=Python]
--
This causes problems when people receiving the Markdown file then try
to convert them to PDF, as the code is like that not correctly rendered
as program code.

When manually exporting the .lyx as 'PDF (XeTex)' the resulting file
does not have the problem, the output is one line
--
\begin{lstlisting}[language=Python]
--
which in the markdown file (generated using same command as in my new
LyX Converter: "pandoc --wrap=none -f latex -t markdown -o
"minimal-example.md" "minimal-example.tex") results in the correct
output, which gets handled as code:
--
``` {.python language="Python"}
--

This is Lyx 2.3.2 on Debian Linux and I would be happy if someone could
tell me how to get this generator running with the expected output of
algorithms.
[Attached example files, hoping the file names are self-explanatory]

TYVM,
Alexander


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Intermediate .tex file during 'Convert' differs from manual export,causes problems

2020-06-11 Thread Alexander
Hi Mike,

I am sorry if you misunderstood something. These files are only related
to my problem I described below and which got solved by Jürgens
suggestions.
I do not know anything about any problems you might have posted to the
public lyx-user list.

Sorry again,
Best,
Alexander

Mike Reeks  
am Donnerstag, 11. Juni 2020, 21:12:17:

> Alex
> Could you please explain to me in simple English what these files
> represent.  How do they relate to my problem. Mike
> 
> Sent from Mail for Windows 10
> 
> From: Alexander
> Sent: 11 June 2020 11:10
> To: lyx-users@lists.lyx.org
> Subject: Intermediate .tex file during 'Convert' differs from manual
> export,causes problems
> 
> Hi all,
> 
> during creation of a Markdown converter in LyX I noticed some
> behavior, which messes up the final output.
> 
> - created a new File Format 'Markdown' (as 'Document format' and 'With
>   TeX fonts:' = 'PDF (XeTex)' <-- side note: using 'PDF (pdflatex)'
>   would result in UTF-8 encoding errors during later conversion with
>   pandoc error "pandoc: Cannot decode byte…")
> 
> - created a new Converter Definition 'LaTeX (XeTeX) -> Markdown', with
>   converter command 'pandoc --wrap=none -f latex -t markdown -o $$o
> $$i' (results below are also the same when using 'LaTeX (plain) ->
>   Markdown' as Converter)
> 
> - used this converter to export as Markdown
> 
> 
> This basically works, and when I have an algorithm included in the LyX
> file, the export still finishes, but has a fault in the output.
> 
> The intermediate .tex temp file created by LyX, during exporting to
> markdown, has the two lines
> --
> \begin{lstlisting}%
> [language=Python]
> --
> which in the final markdown file look like
> --
> %
> [language=Python]
> --
> This causes problems when people receiving the Markdown file then try
> to convert them to PDF, as the code is like that not correctly
> rendered as program code.
> 
> When manually exporting the .lyx as 'PDF (XeTex)' the resulting file
> does not have the problem, the output is one line
> --
> \begin{lstlisting}[language=Python]
> --
> which in the markdown file (generated using same command as in my new
> LyX Converter: "pandoc --wrap=none -f latex -t markdown -o
> "minimal-example.md" "minimal-example.tex") results in the correct
> output, which gets handled as code:
> --
> ``` {.python language="Python"}
> --
> 
> This is Lyx 2.3.2 on Debian Linux and I would be happy if someone
> could tell me how to get this generator running with the expected
> output of algorithms.
> [Attached example files, hoping the file names are self-explanatory]
> 
> TYVM,
> Alexander
> 
> 



Vielen Dank und Grüße,
Alexander Stiebing
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Intermediate .tex file during 'Convert' differs from manual export, causes problems

2020-06-11 Thread Scott Kostyshak
On Thu, Jun 11, 2020 at 05:43:42PM +0200, Alexander wrote:
> Hi Jürgen,
> 
> On Thu, 11 Jun 2020 14:13:34 +0200
> Jürgen Spitzmüller  wrote:
> 
> > The reason for the difference is this commit:
> > commit e798db5739871aaa29f95de321c52f19058064c9
> > (…)
> > The converter flag "nice" will get you the LaTeX file which is also
> > used for export.
> 
> This is the even-greater-than-I-could-hope-for answer I could not
> even hope for :-)
> 
> Adding 'nice' as flag for the converter solves the case (and the
> question marks in my head) – thank you very much for your effort.

That's great the problem seems to be solved. Alexander, would you mind
still filing a bug/enhancement report for Pandoc? Even though the issue
doesn't affect you anymore, it would affect others. I suggest to make a
minimal example .tex file and to post it here:

  https://github.com/jgm/pandoc/issues

Let us know what issue number is so we can follow the discussion.

Thanks!

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


RE: Intermediate .tex file during 'Convert' differs from manualexport, causes problems

2020-06-11 Thread Mike Reeks
Thankyou for the feedback but it just sounds like a dialogue between  Alexand 
and Jurgen. I am not sure but are you are referring to something within the 
software of  Lyx and therefore a bug. From what you are saying  its with a temp 
file that’s created during the conversion. So can you explain why this error is 
occurring now and not before. What do you suggest I do? Is it a bug that’s just 
appeared in the lyx I have installed and not generally  the case. So maybe you 
would suggest reinstalling  lyx 2.2 or the most recnt version. Grateful for you 
feedback
Regards
Mike
Useful if you could include me explicitly in your discussion.

Sent from Mail for Windows 10

From: Alexander
Sent: 11 June 2020 11:59
To: lyx-users@lists.lyx.org
Subject: Re: Intermediate .tex file during 'Convert' differs from manualexport, 
causes problems

Hi,

On Thu, 11 Jun 2020 12:30:19 +0200
Jean-Marc Lasgouttes  wrote:

> Le 11/06/2020 à 12:28, Jürgen Spitzmüller a écrit :
> > Am Donnerstag, den 11.06.2020, 11:50 +0200 schrieb Alexander:  
> >> The intermediate .tex temp file created by LyX, during exporting to
> >> markdown, has the two lines
> >> --
> >> \begin{lstlisting}%
> >> [language=Python]
> >> --
> >> which in the final markdown file look like
> >> --
> >>  %
> >>  [language=Python]  
> > 
> > Since this is perfectly valid LaTeX it strikes me a pandoc bug. I
> > suggest you file a report at https://github.com/jgm/pandoc/issues
> > 
> > As for the export, you could add an intermediate script that
> > transfers
> > 
> > }%
> > [
> > 
> > to
> > 
> > }[  
> 
> Or maybe even remove traces of "%\n" ?
> 
> JMarc
> 

Thx for first suggestions, but isn't the real point, that LyX does
different .tex exports, depending on if it is an intermediate temporary
file, or manually done?
Shouldn't it be always the same, or shouldn't there at least be a
possibility to force the one or other option?

Working around (IMHO) weird LyX behavior with additional scripts does
not really sound like the way to achieve the normal result, in my view…
If I only new at least which kind of .tex export mode LyX uses for
intermediate files, I would at least know where to try more tuning of
its behavior.

Alexander
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Intermediate .tex file during 'Convert' differs from manual export, causes problems

2020-06-11 Thread Alexander
Hi Jürgen,

On Thu, 11 Jun 2020 14:13:34 +0200
Jürgen Spitzmüller  wrote:

> The reason for the difference is this commit:
> commit e798db5739871aaa29f95de321c52f19058064c9
> (…)
> The converter flag "nice" will get you the LaTeX file which is also
> used for export.

This is the even-greater-than-I-could-hope-for answer I could not
even hope for :-)

Adding 'nice' as flag for the converter solves the case (and the
question marks in my head) – thank you very much for your effort.

Best,
Alexander
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Intermediate .tex file during 'Convert' differs from manual export, causes problems

2020-06-11 Thread Jürgen Spitzmüller
Am Donnerstag, den 11.06.2020, 12:59 +0200 schrieb Alexander:
> Thx for first suggestions, but isn't the real point, that LyX does
> different .tex exports, depending on if it is an intermediate
> temporary file, or manually done?
> 
> Shouldn't it be always the same, or shouldn't there at least be a
> possibility to force the one or other option?

The reason for the difference is this commit:

commit e798db5739871aaa29f95de321c52f19058064c9
Author: Guillaume Munch , Mon Oct 10 16:52:32 2016 +0200
(vor 3 Jahren, und 8 Monaten)
Committer: Guillaume Munch , Sat Oct 22 22:39:33 2016 +0200
(vor 3 Jahren, und 8 Monaten)
Follows: 2.2.0
Precedes: 2.3.0alpha1
Branches: 

Safe line break to increase precision of error reporting in Listings
caption


So apparently the %\n improves error messages in Listings (which are
only relevant to batch export).


> If I only new at least which kind of .tex export mode LyX uses for
> intermediate files, I would at least know where to try more tuning of
> its behavior.

The converter flag "nice" will get you the LaTeX file which is also
used for export.

HTH,
Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Intermediate .tex file during 'Convert' differs from manual export, causes problems

2020-06-11 Thread Jürgen Spitzmüller
Am Donnerstag, den 11.06.2020, 12:59 +0200 schrieb Alexander:
> Working around (IMHO) weird LyX behavior with additional scripts does
> not really sound like the way to achieve the normal result, in my
> view…
> 
> If I only new at least which kind of .tex export mode LyX uses for
> 
> intermediate files, I would at least know where to try more tuning of
> 
> its behavior.

The files are semantically equivalent. The output is not weird at all.
It's pandoc that does not get this right.

Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Intermediate .tex file during 'Convert' differs from manual export, causes problems

2020-06-11 Thread Alexander
Hi,

On Thu, 11 Jun 2020 12:30:19 +0200
Jean-Marc Lasgouttes  wrote:

> Le 11/06/2020 à 12:28, Jürgen Spitzmüller a écrit :
> > Am Donnerstag, den 11.06.2020, 11:50 +0200 schrieb Alexander:  
> >> The intermediate .tex temp file created by LyX, during exporting to
> >> markdown, has the two lines
> >> --
> >> \begin{lstlisting}%
> >> [language=Python]
> >> --
> >> which in the final markdown file look like
> >> --
> >>  %
> >>  [language=Python]  
> > 
> > Since this is perfectly valid LaTeX it strikes me a pandoc bug. I
> > suggest you file a report at https://github.com/jgm/pandoc/issues
> > 
> > As for the export, you could add an intermediate script that
> > transfers
> > 
> > }%
> > [
> > 
> > to
> > 
> > }[  
> 
> Or maybe even remove traces of "%\n" ?
> 
> JMarc
> 

Thx for first suggestions, but isn't the real point, that LyX does
different .tex exports, depending on if it is an intermediate temporary
file, or manually done?
Shouldn't it be always the same, or shouldn't there at least be a
possibility to force the one or other option?

Working around (IMHO) weird LyX behavior with additional scripts does
not really sound like the way to achieve the normal result, in my view…
If I only new at least which kind of .tex export mode LyX uses for
intermediate files, I would at least know where to try more tuning of
its behavior.

Alexander
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Intermediate .tex file during 'Convert' differs from manual export, causes problems

2020-06-11 Thread Jean-Marc Lasgouttes

Le 11/06/2020 à 12:28, Jürgen Spitzmüller a écrit :

Am Donnerstag, den 11.06.2020, 11:50 +0200 schrieb Alexander:

The intermediate .tex temp file created by LyX, during exporting to
markdown, has the two lines
--
\begin{lstlisting}%
[language=Python]
--
which in the final markdown file look like
--
 %
 [language=Python]


Since this is perfectly valid LaTeX it strikes me a pandoc bug. I
suggest you file a report at https://github.com/jgm/pandoc/issues

As for the export, you could add an intermediate script that transfers

}%
[

to

}[


Or maybe even remove traces of "%\n" ?

JMarc

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Intermediate .tex file during 'Convert' differs from manual export, causes problems

2020-06-11 Thread Jürgen Spitzmüller
Am Donnerstag, den 11.06.2020, 11:50 +0200 schrieb Alexander:
> The intermediate .tex temp file created by LyX, during exporting to
> markdown, has the two lines
> --
> \begin{lstlisting}%
> [language=Python]
> --
> which in the final markdown file look like
> --
> %
> [language=Python]

Since this is perfectly valid LaTeX it strikes me a pandoc bug. I
suggest you file a report at https://github.com/jgm/pandoc/issues

As for the export, you could add an intermediate script that transfers 

}%
[

to

}[

HTH
Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Intermediate .tex file during 'Convert' differs from manual export, causes problems

2020-06-11 Thread Alexander
Hi all,

during creation of a Markdown converter in LyX I noticed some behavior,
which messes up the final output.

- created a new File Format 'Markdown' (as 'Document format' and 'With
  TeX fonts:' = 'PDF (XeTex)' <-- side note: using 'PDF (pdflatex)'
  would result in UTF-8 encoding errors during later conversion with
  pandoc error "pandoc: Cannot decode byte…")

- created a new Converter Definition 'LaTeX (XeTeX) -> Markdown', with
  converter command 'pandoc --wrap=none -f latex -t markdown -o $$o $$i'
  (results below are also the same when using 'LaTeX (plain) ->
  Markdown' as Converter)

- used this converter to export as Markdown


This basically works, and when I have an algorithm included in the LyX
file, the export still finishes, but has a fault in the output.

The intermediate .tex temp file created by LyX, during exporting to
markdown, has the two lines
--
\begin{lstlisting}%
[language=Python]
--
which in the final markdown file look like
--
%
[language=Python]
--
This causes problems when people receiving the Markdown file then try
to convert them to PDF, as the code is like that not correctly rendered
as program code.

When manually exporting the .lyx as 'PDF (XeTex)' the resulting file
does not have the problem, the output is one line
--
\begin{lstlisting}[language=Python]
--
which in the markdown file (generated using same command as in my new
LyX Converter: "pandoc --wrap=none -f latex -t markdown -o
"minimal-example.md" "minimal-example.tex") results in the correct
output, which gets handled as code:
--
``` {.python language="Python"}
--

This is Lyx 2.3.2 on Debian Linux and I would be happy if someone could
tell me how to get this generator running with the expected output of
algorithms.
[Attached example files, hoping the file names are self-explanatory]

TYVM,
Alexander



minimal-example.lyx
Description: application/lyx
Minimal example

%
[language=Python]
@my_decorator(foo, bar=baz)
def dummy(arg):
arr = arg
out = pack.method(arr)
return out


minimal-example--by-lyx.md.pdf
Description: Adobe PDF document
Minimal example

``` {.python language="Python"}
@my_decorator(foo, bar=baz)
def dummy(arg):
arr = arg
out = pack.method(arr)
return out
```


minimal-example--by-pandoc.md.pdf
Description: Adobe PDF document
%% LyX 2.3.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[10pt,american,ngerman]{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=1.5cm,rmargin=1.5cm}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{babel}
\usepackage{float}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=2,
 breaklinks=true,pdfborder={0 0 0},pdfborderstyle={},backref=page,colorlinks=false]
 {hyperref}

\makeatletter

%% LyX specific LaTeX commands.
\floatstyle{ruled}
\newfloat{algorithm}{tbp}{loa}
\providecommand{\algorithmname}{Algorithmus}
\floatname{algorithm}{\protect\algorithmname}

\makeatother

\usepackage{listings}
\addto\captionsamerican{\renewcommand{\algorithmname}{Algorithm}}
\addto\captionsamerican{\renewcommand{\lstlistingname}{Listing}}
\addto\captionsngerman{\renewcommand{\algorithmname}{Algorithmus}}
\addto\captionsngerman{\renewcommand{\lstlistingname}{Listing}}
\renewcommand{\lstlistingname}{Listing}

\begin{document}
Minimal example

\selectlanguage{american}%
\begin{algorithm}[h]
\begin{lstlisting}[language=Python]
@my_decorator(foo, bar=baz)
def dummy(arg):
	arr = arg
	out = pack.method(arr)
	return out
\end{lstlisting}
\end{algorithm}
\selectlanguage{ngerman}%

\end{document}
\batchmode
\makeatletter
\def\input@path{{/dev/shm/}}
\makeatother
\documentclass[10pt,american,ngerman]{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=1.5cm,rmargin=1.5cm}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{babel}
\usepackage{float}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=2,
 breaklinks=true,pdfborder={0 0 0},pdfborderstyle={},backref=page,colorlinks=false]
 {hyperref}

\makeatletter

%% LyX specific LaTeX commands.
\floatstyle{ruled}
\newfloat{algorithm}{tbp}{loa}
\providecommand{\algorithmname}{Algorithmus}
\floatname{algorithm}{\protect\algorithmname}

\makeatother

\usepackage{listings}
\addto\captionsamerican{\renewcommand{\algorithmname}{Algorithm}}
\addto\captionsamerican{\renewcommand{\lstlistingname}{Listing}}
\addto\captionsngerman{\renewcommand{\algorithmname}{Algorithmus}}
\addto\captionsngerman{\renewcommand{\lstlistingname}{Listing}}
\renewcommand{\lstlistingname}{Listing}

\begin{document}
Minimal example 

\selectlanguage{american}%

Re: Fwd: Why does lyx add: '\noindent' when generating my .tex file

2019-11-16 Thread Jürgen Spitzmüller
Am Samstag, den 16.11.2019, 09:56 -0700 schrieb Ralph Boland:
> Thanks Jurgen,  your help has added to my insight into the problem.
> Unfortunately it hasn't solved the problem.
> 
> The lines (paragraphs) in question,
> in fact I think every line in the document of my Lyx file,
> have the "Indent Paragraph"  box checked.

I do not understand. In the minimal example file you sent, indent
paragraph was *not* checked, and checking it solved the problem. So
there must be an additional problem in your thesis.

> So I repeat:  is this a Lyx bug?   Is there anything I can do so that
> the "\noindent"
> code is not added by Lyx to the .tex file?

I can only answer this if I see the original file (not converted to the
recent LyX version). It might by a problem in lyx2lyx conversion.

Jürgen



signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Why does lyx add: '\noindent' when generating my .tex file

2019-11-16 Thread Paul A. Rubin

On 11/15/19 7:09 PM, Ralph Boland wrote:

I am using Debian 10  and Lyx  2.3.2.
In my thesis (2002) I used the algolyx package and it worked fine in 2002.
But I have been updating my thesis to fix a few things (a bad idea i
know) and in the updated
version most of my algorithms printed properly but a few failed for
reasons I do not
understand.  I seems like a Lyx or Latex error due to using upgraded
Lyx/Latex software
since I haven't changed the lyx code or latex code (not necessarily
true of course but not the issue here anyway).

Rather than track this issue down I decided to use the enumitem
package and rewrite the
algorithms that  Lyx/Latex could no longer handle.

Unfortunately, this also failed because of what appeared to be a bug
in the enumitem package.
So I emailed the enumitem package maintainer with a sample piece of
latex code generated by Lyx demonstrating the bug.  (Lesson learned:
Do not use Lyx to generate latex code demonstrating a bug in Latex.)

Anyway the maintainer determined that there was a '\noindent'  in the
latex code that
shouldn't be there and removing it solved the problem.  So the problem is not a
enumitem package bug!

Alas, I do not know why Lyx added the  '\noindent' code.  I did not
tell it to do so and so
now I (foolishly?) assume I have found a Lyx bug!

Can anyone tell me if this is a Lyx bug and if not then how do I get
Lyx to not add the
'offending \noindent' code?
I have attached the problematic Lyx file and the pdflatex tex file
generated from it containing
the 'noindent' code.


While I'm here i'd like to point out that when I run Lyx on this file
(and most other Lyx files)
I get the message:
'step: Counter does not exist: enum'  many times.
If anyone can shed light on why I get this message that would me most helpful.

Thanks for any help received.

Ralph Boland  rpbol...@gmail.com

Curious. First, when I compile your LyX file here (LyX 2.3.3, Linux Mint 
18.3) without making any changes to it, I do not see an error with level 
3 indentation. The "junk" entry in the AlgNum2 list aligns with the 
"deeper junk" entry in the AlgNum list. The deeper entries in AlgNum2 
also align with antecedents one level shallower in AlgNum. FWIW, I'm 
compiling with pdflatex. The compiled PDF file is attached.


Second, I do see a problem with indentation of the line "does this line 
also ...", and it is caused by a \noindent inserted immediately prior to 
the "if" from "if c = d". I don't think that \noindent is being inserted 
by LyX, at least not automatically. I retyped your document (without the 
notes and other baggage) and did not get the errant \noindent in my 
version (also attached). That leads me to wonder if some combination of 
typing stuff in and editing it somehow introduced the \noindent.


Paul



enumItemBug.pdf
Description: Adobe PDF document


newfile1.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Fwd: Why does lyx add: '\noindent' when generating my .tex file

2019-11-16 Thread Ralph Boland
-- Forwarded message -
From: Jürgen Spitzmüller 
Date: Sat, 16 Nov 2019 at 00:15
Subject: Re: Why does lyx add: '\noindent' when generating my .tex file
To: 


> Am Freitag, den 15.11.2019, 17:09 -0700 schrieb Ralph Boland:
> > Alas, I do not know why Lyx added the  '\noindent' code.  I did not
> > tell it to do so and so
> > now I (foolishly?) assume I have found a Lyx bug!

> I don't know how it cae there, but the solution is: go to the two
> respective lines ((a) if c = d then \,\,return B), open the paragraph
> settings dialog, and check "Indent Paragraph".

> HTH
> Jürgen

Thanks Jurgen,  your help has added to my insight into the problem.
Unfortunately it hasn't solved the problem.

The lines (paragraphs) in question,
in fact I think every line in the document of my Lyx file,
have the "Indent Paragraph"  box checked.

So I repeat:  is this a Lyx bug?   Is there anything I can do so that
the "\noindent"
code is not added by Lyx to the .tex file?

Thanks for any help received.

Ralph Boland
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Why does lyx add: '\noindent' when generating my .tex file

2019-11-15 Thread Jürgen Spitzmüller
Am Freitag, den 15.11.2019, 17:09 -0700 schrieb Ralph Boland:
> Alas, I do not know why Lyx added the  '\noindent' code.  I did not
> tell it to do so and so
> now I (foolishly?) assume I have found a Lyx bug!

I don't know how it cae there, but the solution is: go to the two
respective lines ((a) if c = d then \,\,return B), open the paragraph
settings dialog, and check "Indent Paragraph".

HTH
Jürgen




signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Why does lyx add: '\noindent' when generating my .tex file

2019-11-15 Thread Ralph Boland
I am using Debian 10  and Lyx  2.3.2.
In my thesis (2002) I used the algolyx package and it worked fine in 2002.
But I have been updating my thesis to fix a few things (a bad idea i
know) and in the updated
version most of my algorithms printed properly but a few failed for
reasons I do not
understand.  I seems like a Lyx or Latex error due to using upgraded
Lyx/Latex software
since I haven't changed the lyx code or latex code (not necessarily
true of course but not the issue here anyway).

Rather than track this issue down I decided to use the enumitem
package and rewrite the
algorithms that  Lyx/Latex could no longer handle.

Unfortunately, this also failed because of what appeared to be a bug
in the enumitem package.
So I emailed the enumitem package maintainer with a sample piece of
latex code generated by Lyx demonstrating the bug.  (Lesson learned:
Do not use Lyx to generate latex code demonstrating a bug in Latex.)

Anyway the maintainer determined that there was a '\noindent'  in the
latex code that
shouldn't be there and removing it solved the problem.  So the problem is not a
enumitem package bug!

Alas, I do not know why Lyx added the  '\noindent' code.  I did not
tell it to do so and so
now I (foolishly?) assume I have found a Lyx bug!

Can anyone tell me if this is a Lyx bug and if not then how do I get
Lyx to not add the
'offending \noindent' code?
I have attached the problematic Lyx file and the pdflatex tex file
generated from it containing
the 'noindent' code.


While I'm here i'd like to point out that when I run Lyx on this file
(and most other Lyx files)
I get the message:
   'step: Counter does not exist: enum'  many times.
If anyone can shed light on why I get this message that would me most helpful.

Thanks for any help received.

Ralph Boland  rpbol...@gmail.com


enumItemBug.lyx
Description: application/lyx
%% LyX 2.3.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,oneside,english]{amsart}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{verbose,tmargin=0.3in,bmargin=0.5in,lmargin=1in,rmargin=1in}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{stmaryrd}

\makeatletter
%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\usepackage{changepage}
\usepackage{enumitem}
\newlist{algnum}{enumerate}{6}
\setlist[algnum]{leftmargin=*}
\setlist[algnum,1]{label=\arabic*:}
\setlist[algnum,2]{label=\arabic*:,itemindent=-20pt}
\setlist[algnum,3]{label=\arabic*:,itemindent=-30pt}
\setlist[algnum,4]{label=\arabic*:,itemindent=-30pt}
\setlist[algnum,5]{label=\arabic*:,itemindent=-30pt}
\setlist[algnum,6]{label=\arabic*:,itemindent=-30pt}

\newlist{algnum2}{enumerate}{6}
\setlist[algnum2]{leftmargin=*}
\setlist[algnum2,1]{label=\arabic*:}
\setlist[algnum2,2]{label=\arabic*:,itemindent=-20pt}
\setlist[algnum2,3]{label=\arabic*:,itemindent=-70pt}
\setlist[algnum2,4]{label=\arabic*:,itemindent=-30pt}
\setlist[algnum2,5]{label=\arabic*:,itemindent=-30pt}
\setlist[algnum2,6]{label=\arabic*:,itemindent=-30pt}


%% User specified LaTeX commands.
\pagenumbering{gobble}

\makeatother

\usepackage{babel}
\begin{document}
\title{Enumitem Package itemindent Bug}

\maketitle
First the algnum list:
\begin{algnum}{}
\item If a then b
\item \textbf{\emph{do~}}
\begin{algnum}{}
\item \noindent \textbf{if} \emph{c = d }\textbf{then} $\,\,$return B.
\item does this line also add a \textbackslash noindent? 
\begin{algnum}{}
\item \textbf{\emph{done}}
\begin{algnum}{}
\item junk
\begin{algnum}{}
\item deeper junk
\begin{algnum}{}
\item crazy deep
\end{algnum}
\end{algnum}
\end{algnum}
\end{algnum}
\end{algnum}
\item junk
\end{algnum}
End of algnum list.

~

Second the algnum2 list:
\begin{algnum2}{}
\item If a then b
\item \textbf{\emph{do}}
\begin{algnum2}{}
\item \noindent \textbf{if} \emph{c = d }\textbf{then} $\,\,$return B
\begin{algnum2}{}
\item \textbf{\emph{done}}
\begin{algnum2}{}
\item junk
\begin{algnum2}{}
\item deeper junk
\begin{algnum2}{}
\item crazy deep
\end{algnum2}
\end{algnum2}
\end{algnum2}
\end{algnum2}
\end{algnum2}
\item junk
\end{algnum2}
End of algnum2 list
\begin{description}
\item [{~}]~
\item [{~}]~
\item [{~}]~
\item [{Bug~1}] indentation level 3 ignores the setting on how much to
indent. Note that the algnum list and algnum2 list are the same except
for differing in the amount of level 3 indentation. Yet the pdf shows
the same amount of indentation. In my document where I discovered
this bug I need level 3 indentation (and also 1 and 2) to work.
\end{description}

\end{document}
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Update .tex file

2015-09-29 Thread Mueez Aizaz
Hey Guys,

Hope everybody is doing well. I am using lyx for my master dissertation. I
received a template from the university with different aspects divided into
.tex files. Meaning there is a .tex file for introduction, a .tex file for
chapters, a .tex file abstract and so on.

I import the .tex file into lyx make changes but when I try to compile it I
get a large number of errors. I tried using texmaker but again when I
compile same errors. I looked around and found there is also a build.bat
file given. So if I make changes in the .tex file, save and then run the
build.bat file a final  pdf document is produced which shows my changes.

So basically I need to make changes to the .tex file and run the build.bat
file and it all works fine. I would like to continue working with lyx as I
am much more comfortable with the gui compared to texmaker. The problem is
lyx creates a .lyx file and the changes are made there and not in the .tex
file.

Is it possible to reflect the changes in the .tex file without compiling
the .lyx file? Thank you for your time.

Best Regards,
Mueez Aizaz.


Re: Update .tex file

2015-09-29 Thread Michael Berger

On 09/29/2015 10:54 AM, Mueez Aizaz wrote:

Hey Guys,
Hope everybody is doing well. I am using lyx for my master 
dissertation. I received a template from the university with different 
aspects divided into .tex files. Meaning there is a .tex file for 
introduction, a .tex file for chapters, a .tex file abstract and so on.
I import the .tex file into lyx make changes but when I try to compile 
it I get a large number of errors. I tried using texmaker but again 
when I compile same errors. I looked around and found there is also a 
build.bat file given. So if I make changes in the .tex file, save and 
then run the build.bat file a final  pdf document is produced which 
shows my changes.
So basically I need to make changes to the .tex file and run the 
build.bat file and it all works fine. I would like to continue working 
with lyx as I am much more comfortable with the gui compared to 
texmaker. The problem is lyx creates a .lyx file and the changes are 
made there and not in the .tex file.
Is it possible to reflect the changes in the .tex file without 
compiling the .lyx file? Thank you for your time.

Best Regards,
Mueez Aizaz.

Hi Mueez,
you may try to adapt to the concept of having child documents in a LyX 
master document.
You could then make a single LyX document of every tex file (using 
import) and in a second step to include all the single LyX documents as 
child documents in a Lyx Master document.

Study the manuals on this concept.

Michael


Re: Convert my thesis .tex file into .lyx

2015-09-27 Thread Guillaume Munch

Le 25/09/2015 03:34, Nader Mahmoudi a écrit :

Dear Sir/Madam,

I am writing my M.Sc. thesis in latex template provide by my university
(You may find the template folder here
<http://www.ozyegin.edu.tr/getattachment/AKADEMIK-PROGRAMLAR/Fen-Bilimleri-Enstitusu/Ogrenciler-Icin/OzU-Thesis-Style-TEMPLATE.rar>).
As Lyx provides more user-friend space to write the science, I would
like to convert to .lyx file. However, because the document class is not
available on Lyx, it could not do so. I tried to import from
File/Import/latex(plain), but the error occurred while running. As I am
very new in Lyx, I could not understand the information given here
<http://wiki.lyx.org/Layouts/CreatingLayouts>. Please let me know there
is any simple way to do so.

Best regards,
Nader Mahmoudi



Dear Nader,


After having looked at the files it seems that creating a dedicated 
layout is the only option. The class ozu-thesis.cls is based on the 
report class so we can start from there. See the attached file 
ozu-thesis.layout which would be your starting point and which just 
loads the layout for the report class.


To use it you need to create a lyx file and select a local format file 
under "Class". See the attached example lyx file which needs to be saved 
in the same directory as ozu-thesis.layout, ozu-thesis.cls and the other 
files.


At this point it only has the features from the report class. You can 
then extend it with the features from ozu-thesis.cls in two ways:


* Use ERT to directly input LaTeX commands (this is quickly cumbersome 
for environments that you are going to use often but will allow you to 
move forward).


* You can progressively define the missing environments in the "Local 
format" pane after reading the "Customization" guide and the many 
examples located in the "layouts" dir of your lyx installation.


Try to compare the "view source" pane with the example tex file if you 
encounter problems.


Hopefully, once you are done, you can send us the final state of your 
layout so that others will benefit from your work.



Best,
Guillaume


ozu-thesis.lyx
Description: application/lyx
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[ozu-thesis]{OZU-thesis}
#  \DeclareCategory{Reports}
# Stub for ozu-thesis.cls.

Format 49

# ozu-thesis.cls is based on report.cls
Input report.layout


Convert my thesis .tex file into .lyx

2015-09-24 Thread Nader Mahmoudi
Dear Sir/Madam,

I am writing my M.Sc. thesis in latex template provide by my university
(You may find the template folder here
).
As Lyx provides more user-friend space to write the science, I would like
to convert to .lyx file. However, because the document class is not
available on Lyx, it could not do so. I tried to import from
File/Import/latex(plain), but the error occurred while running. As I am
very new in Lyx, I could not understand the information given here
. Please let me know there is
any simple way to do so.

Best regards,
Nader Mahmoudi


tex file

2014-11-30 Thread Patrick Dupre
Hello,

I prepared a document with lyx before submission to the editor. Hence
The pdf file generated by lyx is OK. However, I need to compile the .tex file 
before.
I have picture files like.
foo.eps.gz

But when I export the lyx file in latex (plain or pdflatex), the 
pictures file name are changed in
foo
in the latex file.

The latex commands fails:
! LaTeX Error: File `foo.eps.bb' not found.

How can I generate the right file?

Thank.

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


tex file

2014-11-30 Thread Patrick Dupre
Hello,

I prepared a document with lyx before submission to the editor. Hence
The pdf file generated by lyx is OK. However, I need to compile the .tex file 
before.
I have picture files like.
foo.eps.gz

But when I export the lyx file in latex (plain or pdflatex), the 
pictures file name are changed in
foo
in the latex file.

The latex commands fails:
! LaTeX Error: File `foo.eps.bb' not found.

How can I generate the right file?

Thank.

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


tex file

2014-11-30 Thread Patrick Dupre
Hello,

I prepared a document with lyx before submission to the editor. Hence
The pdf file generated by lyx is OK. However, I need to compile the .tex file 
before.
I have picture files like.
foo.eps.gz

But when I export the lyx file in latex (plain or pdflatex), the 
pictures file name are changed in
foo
in the latex file.

The latex commands fails:
! LaTeX Error: File `foo.eps.bb' not found.

How can I generate the right file?

Thank.

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


How to open tex file in Latex

2014-05-11 Thread Jeremy P
Hi 
I download the tex file from La Tex Zip Files
and It seems I cannot open thetex file in Lyx and Do you know how to do this?

Best

Jeremy

Re: How to open tex file in Latex

2014-05-11 Thread Richard Heck

On 05/11/2014 06:55 PM, Jeremy P wrote:

Hi
I download the tex file from La Tex Zip Files 
http://www.grad.umn.edu/prod/groups/grad/@pub/@grad/documents/content/thesis_template_zip.zip
and It seems I cannot open thetex file in Lyx and Do you know how to 
do this?


This has been discussed on the list quite a lot. You can't open an 
arbitrary TeX
file in LyX. You need a layout for whatever the document class is. 
These are

not terribly hard to write, and you will find many people who have written
layout files for thesis classes, if you search the list.

Richard



How to open tex file in Latex

2014-05-11 Thread Jeremy P
Hi 
I download the tex file from La Tex Zip Files
and It seems I cannot open thetex file in Lyx and Do you know how to do this?

Best

Jeremy

Re: How to open tex file in Latex

2014-05-11 Thread Richard Heck

On 05/11/2014 06:55 PM, Jeremy P wrote:

Hi
I download the tex file from La Tex Zip Files 
http://www.grad.umn.edu/prod/groups/grad/@pub/@grad/documents/content/thesis_template_zip.zip
and It seems I cannot open thetex file in Lyx and Do you know how to 
do this?


This has been discussed on the list quite a lot. You can't open an 
arbitrary TeX
file in LyX. You need a layout for whatever the document class is. 
These are

not terribly hard to write, and you will find many people who have written
layout files for thesis classes, if you search the list.

Richard



How to open tex file in Latex

2014-05-11 Thread Jeremy P
Hi 
I download the tex file from La Tex Zip Files
and It seems I cannot open thetex file in Lyx and Do you know how to do this?

Best

Jeremy

Re: How to open tex file in Latex

2014-05-11 Thread Richard Heck

On 05/11/2014 06:55 PM, Jeremy P wrote:

Hi
I download the tex file from La Tex Zip Files 
<http://www.grad.umn.edu/prod/groups/grad/@pub/@grad/documents/content/thesis_template_zip.zip>
and It seems I cannot open thetex file in Lyx and Do you know how to 
do this?


This has been discussed on the list quite a lot. You can't open an 
arbitrary TeX
file in LyX. You need a "layout" for whatever the document class is. 
These are

not terribly hard to write, and you will find many people who have written
layout files for thesis classes, if you search the list.

Richard



Import tex file and reinterpret layout structure

2013-05-31 Thread Yann Le Du
Hello,

I've unsuccessfully tried to find a solution to that problem: I write in
Lyx using AMS book. I export to tex and reimport. The layout is lost,
replaced by ERT. How may I ask Lyx to parse the file and interpret the
layout nicely ?

Cheers,

Yann


Re: Import tex file and reinterpret layout structure

2013-05-31 Thread Richard Heck

On 05/31/2013 11:51 AM, Yann Le Du wrote:

Hello,

I've unsuccessfully tried to find a solution to that problem: I write 
in Lyx using AMS book. I export to tex and reimport. The layout is 
lost, replaced by ERT. How may I ask Lyx to parse the file and 
interpret the layout nicely ?


All layouts or lost, or some?

rh



Import tex file and reinterpret layout structure

2013-05-31 Thread Yann Le Du
Hello,

I've unsuccessfully tried to find a solution to that problem: I write in
Lyx using AMS book. I export to tex and reimport. The layout is lost,
replaced by ERT. How may I ask Lyx to parse the file and interpret the
layout nicely ?

Cheers,

Yann


Re: Import tex file and reinterpret layout structure

2013-05-31 Thread Richard Heck

On 05/31/2013 11:51 AM, Yann Le Du wrote:

Hello,

I've unsuccessfully tried to find a solution to that problem: I write 
in Lyx using AMS book. I export to tex and reimport. The layout is 
lost, replaced by ERT. How may I ask Lyx to parse the file and 
interpret the layout nicely ?


All layouts or lost, or some?

rh



Import tex file and reinterpret layout structure

2013-05-31 Thread Yann Le Du
Hello,

I've unsuccessfully tried to find a solution to that problem: I write in
Lyx using AMS book. I export to tex and reimport. The layout is lost,
replaced by ERT. How may I ask Lyx to parse the file and interpret the
layout nicely ?

Cheers,

Yann


Re: Import tex file and reinterpret layout structure

2013-05-31 Thread Richard Heck

On 05/31/2013 11:51 AM, Yann Le Du wrote:

Hello,

I've unsuccessfully tried to find a solution to that problem: I write 
in Lyx using AMS book. I export to tex and reimport. The layout is 
lost, replaced by ERT. How may I ask Lyx to parse the file and 
interpret the layout nicely ?


All layouts or lost, or some?

rh



Re: import tex-file to lyx with containing ERT-information

2013-05-16 Thread Tino Langer

Hello Uwe,

I tried it with the following snippet of tex-code
...
\multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
...

Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX 
it isn't it. Have it to be marked as one command?


Many thanks - Tino

Am 15.05.2013 23:55, schrieb Uwe Stöhr:

Am 15.05.2013 11:07, schrieb Tino Langer:

from an own delevolped softwaretool I export statistics via 
tex-files, which I then import in lyx to
use it in different documents. In a special case I generate tables 
and I want to format some table
cells with the latex command \cellcolor. When I do this in lyx, I 
insert an ERT and insert the latex

code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an

ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the 
easiest way is to leave everything as it is.
For the LaTeX code generated by LyX for your table, use the menu 
View-View Source.


regards Uwe




Re: import tex-file to lyx with containing ERT-information

2013-05-16 Thread Uwe Stöhr

Am 16.05.2013 22:07, schrieb Tino Langer:


I tried it with the following snippet of tex-code
...
\multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
...

Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX it isn't 
it. Have it to be
marked as one command?


You found a bug. Attached is the original LyX-file. When you export this to TeX you get the attached 
TeX file. When you import the TeX file (which contains your command), you get the attached result. 
And in the result the square brackets are indeed not in TeX-code so the document is uncompilable.

Could you please report this bug to our bugtracker:
http://www.lyx.org/trac/wiki/BugTrackerHome
(set the component to tex2lyx and CC uwestoehr)

regards Uwe
%% LyX 2.0.6 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}

\makeatletter

%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%% User specified LaTeX commands.
\usepackage{colortbl}

\makeatother

\usepackage{babel}
\begin{document}
\begin{tabular}{|cc|}
\multicolumn{6}{|c|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
  \tabularnewline
\end{tabular}
\end{document}


tex2lyx-original.lyx
Description: application/lyx


tex2lyx-test.lyx
Description: application/lyx


Re: import tex-file to lyx with containing ERT-information

2013-05-16 Thread Tino Langer

Hello Uwe,

I tried it with the following snippet of tex-code
...
\multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
...

Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX 
it isn't it. Have it to be marked as one command?


Many thanks - Tino

Am 15.05.2013 23:55, schrieb Uwe Stöhr:

Am 15.05.2013 11:07, schrieb Tino Langer:

from an own delevolped softwaretool I export statistics via 
tex-files, which I then import in lyx to
use it in different documents. In a special case I generate tables 
and I want to format some table
cells with the latex command \cellcolor. When I do this in lyx, I 
insert an ERT and insert the latex

code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an

ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the 
easiest way is to leave everything as it is.
For the LaTeX code generated by LyX for your table, use the menu 
View-View Source.


regards Uwe




Re: import tex-file to lyx with containing ERT-information

2013-05-16 Thread Uwe Stöhr

Am 16.05.2013 22:07, schrieb Tino Langer:


I tried it with the following snippet of tex-code
...
\multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
...

Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX it isn't 
it. Have it to be
marked as one command?


You found a bug. Attached is the original LyX-file. When you export this to TeX you get the attached 
TeX file. When you import the TeX file (which contains your command), you get the attached result. 
And in the result the square brackets are indeed not in TeX-code so the document is uncompilable.

Could you please report this bug to our bugtracker:
http://www.lyx.org/trac/wiki/BugTrackerHome
(set the component to tex2lyx and CC uwestoehr)

regards Uwe
%% LyX 2.0.6 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}

\makeatletter

%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%% User specified LaTeX commands.
\usepackage{colortbl}

\makeatother

\usepackage{babel}
\begin{document}
\begin{tabular}{|cc|}
\multicolumn{6}{|c|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
  \tabularnewline
\end{tabular}
\end{document}


tex2lyx-original.lyx
Description: application/lyx


tex2lyx-test.lyx
Description: application/lyx


Re: import tex-file to lyx with containing ERT-information

2013-05-16 Thread Tino Langer

Hello Uwe,

I tried it with the following snippet of tex-code
...
\multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
...

Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX 
it isn't it. Have it to be marked as one command?


Many thanks - Tino

Am 15.05.2013 23:55, schrieb Uwe Stöhr:

Am 15.05.2013 11:07, schrieb Tino Langer:

from an own delevolped softwaretool I export statistics via 
tex-files, which I then import in lyx to
use it in different documents. In a special case I generate tables 
and I want to format some table
cells with the latex command \cellcolor. When I do this in lyx, I 
insert an ERT and insert the latex

code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an

ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the 
easiest way is to leave everything as it is.
For the LaTeX code generated by LyX for your table, use the menu 
View->View Source.


regards Uwe




Re: import tex-file to lyx with containing ERT-information

2013-05-16 Thread Uwe Stöhr

Am 16.05.2013 22:07, schrieb Tino Langer:


I tried it with the following snippet of tex-code
...
\multicolumn{6}{|l|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
...

Here, \cellcolor[gray]{0.7} should be surrounded by an ERT. But in LyX it isn't 
it. Have it to be
marked as one command?


You found a bug. Attached is the original LyX-file. When you export this to TeX you get the attached 
TeX file. When you import the TeX file (which contains your command), you get the attached result. 
And in the result the square brackets are indeed not in TeX-code so the document is uncompilable.

Could you please report this bug to our bugtracker:
http://www.lyx.org/trac/wiki/BugTrackerHome
(set the component to "tex2lyx" and CC "uwestoehr")

regards Uwe
%% LyX 2.0.6 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}

\makeatletter

%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%% User specified LaTeX commands.
\usepackage{colortbl}

\makeatother

\usepackage{babel}
\begin{document}
\begin{tabular}{|cc|}
\multicolumn{6}{|c|}{\cellcolor[gray]{0.7}HIER EIN TEXT}\tabularnewline
 &  &  &  &  & \tabularnewline
\end{tabular}
\end{document}


tex2lyx-original.lyx
Description: application/lyx


tex2lyx-test.lyx
Description: application/lyx


import tex-file to lyx with containing ERT-information

2013-05-15 Thread Tino Langer

Hallo,

from an own delevolped softwaretool I export statistics via tex-files, 
which I then import in lyx to use it in different documents. In a 
special case I generate tables and I want to format some table cells 
with the latex command \cellcolor. When I do this in lyx, I insert an 
ERT and insert the latex code.


My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an ERT for the resulting lyx-file.


btw. - I'm working with lyx 2.0.5.

Many thanks for help! - Tino


Re: import tex-file to lyx with containing ERT-information

2013-05-15 Thread Uwe Stöhr

Am 15.05.2013 11:07, schrieb Tino Langer:


from an own delevolped softwaretool I export statistics via tex-files, which I 
then import in lyx to
use it in different documents. In a special case I generate tables and I want 
to format some table
cells with the latex command \cellcolor. When I do this in lyx, I insert an ERT 
and insert the latex
code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an
ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the easiest way is to leave 
everything as it is.

For the LaTeX code generated by LyX for your table, use the menu View-View 
Source.

regards Uwe


import tex-file to lyx with containing ERT-information

2013-05-15 Thread Tino Langer

Hallo,

from an own delevolped softwaretool I export statistics via tex-files, 
which I then import in lyx to use it in different documents. In a 
special case I generate tables and I want to format some table cells 
with the latex command \cellcolor. When I do this in lyx, I insert an 
ERT and insert the latex code.


My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an ERT for the resulting lyx-file.


btw. - I'm working with lyx 2.0.5.

Many thanks for help! - Tino


Re: import tex-file to lyx with containing ERT-information

2013-05-15 Thread Uwe Stöhr

Am 15.05.2013 11:07, schrieb Tino Langer:


from an own delevolped softwaretool I export statistics via tex-files, which I 
then import in lyx to
use it in different documents. In a special case I generate tables and I want 
to format some table
cells with the latex command \cellcolor. When I do this in lyx, I insert an ERT 
and insert the latex
code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an
ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the easiest way is to leave 
everything as it is.

For the LaTeX code generated by LyX for your table, use the menu View-View 
Source.

regards Uwe


import tex-file to lyx with containing ERT-information

2013-05-15 Thread Tino Langer

Hallo,

from an own delevolped softwaretool I export statistics via tex-files, 
which I then import in lyx to use it in different documents. In a 
special case I generate tables and I want to format some table cells 
with the latex command \cellcolor. When I do this in lyx, I insert an 
ERT and insert the latex code.


My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an ERT for the resulting lyx-file.


btw. - I'm working with lyx 2.0.5.

Many thanks for help! - Tino


Re: import tex-file to lyx with containing ERT-information

2013-05-15 Thread Uwe Stöhr

Am 15.05.2013 11:07, schrieb Tino Langer:


from an own delevolped softwaretool I export statistics via tex-files, which I 
then import in lyx to
use it in different documents. In a special case I generate tables and I want 
to format some table
cells with the latex command \cellcolor. When I do this in lyx, I insert an ERT 
and insert the latex
code.

My question is how the 'generated' latex-code have to be, that the 
tex2lyx-converter generates an
ERT for the resulting lyx-file.


tex2lyx generates TeX-code for all things it don't understand. So the easiest way is to leave 
everything as it is.

For the LaTeX code generated by LyX for your table, use the menu View->View 
Source.

regards Uwe


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-18 Thread Guenter Milde
On 2012-04-17, Richard Heck wrote:

 [-- Type: text/plain, Encoding: 7bit --]

 On 04/17/2012 05:24 PM, William Hanson wrote:
 The solution Richard Heck proposes is one I'd like to follow.  But 
 when I go to Export I'm asked to choose between four different 
 versions of LaTeX.  Which one should I use?

 plain, probably, unless you've been using XeTeX or LuaTeX features.

I'd rather go for pdflatex (unless you use some package that does not work
with it, like pstricks).

Günter



Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-18 Thread Wolfgang Engelmann
Am Mittwoch, 18. April 2012, 01:01:15 schrieb stefano franchi:

.

 Note that Springer usually requires that your .bib file contains only
 the references you use in your manuscript. If you have a  bib file
 with other references (as most people do), you should save it as a new
 file and then eliminate all the extra references (how to do that
 depends on which software you use to manage your references).
 

If you use Jabref as a bib manager, you can create a bib file, with the used 
references only, on the command line:

jabref -a filename[.aux],newBibfile[.bib]

I find this useful, especially if you are using several bib files and many 
references.

Wolfgang


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-18 Thread PhilipPirrip

On 04/18/2012 03:55 AM, William Hanson wrote:

I've created a .bib file that contains only the references I use in my
paper, but this file is inside the Mendeley Desktop. And I _cannot_ move
it to any other location.  So in particular I can't get it into the
folder that contains the .tex file of my manuscript.


You should be able to create the .bib file anywhere you want. For 
example, select all the references, then right-click - Export...

Or just copy (not move) the file that you already have.



Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-18 Thread Guenter Milde
On 2012-04-17, Richard Heck wrote:

 [-- Type: text/plain, Encoding: 7bit --]

 On 04/17/2012 05:24 PM, William Hanson wrote:
 The solution Richard Heck proposes is one I'd like to follow.  But 
 when I go to Export I'm asked to choose between four different 
 versions of LaTeX.  Which one should I use?

 plain, probably, unless you've been using XeTeX or LuaTeX features.

I'd rather go for pdflatex (unless you use some package that does not work
with it, like pstricks).

Günter



Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-18 Thread Wolfgang Engelmann
Am Mittwoch, 18. April 2012, 01:01:15 schrieb stefano franchi:

.

 Note that Springer usually requires that your .bib file contains only
 the references you use in your manuscript. If you have a  bib file
 with other references (as most people do), you should save it as a new
 file and then eliminate all the extra references (how to do that
 depends on which software you use to manage your references).
 

If you use Jabref as a bib manager, you can create a bib file, with the used 
references only, on the command line:

jabref -a filename[.aux],newBibfile[.bib]

I find this useful, especially if you are using several bib files and many 
references.

Wolfgang


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-18 Thread PhilipPirrip

On 04/18/2012 03:55 AM, William Hanson wrote:

I've created a .bib file that contains only the references I use in my
paper, but this file is inside the Mendeley Desktop. And I _cannot_ move
it to any other location.  So in particular I can't get it into the
folder that contains the .tex file of my manuscript.


You should be able to create the .bib file anywhere you want. For 
example, select all the references, then right-click - Export...

Or just copy (not move) the file that you already have.



Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-18 Thread Guenter Milde
On 2012-04-17, Richard Heck wrote:

> [-- Type: text/plain, Encoding: 7bit --]

> On 04/17/2012 05:24 PM, William Hanson wrote:
>> The solution Richard Heck proposes is one I'd like to follow.  But 
>> when I go to Export I'm asked to choose between four different 
>> versions of LaTeX.  Which one should I use?

> plain, probably, unless you've been using XeTeX or LuaTeX features.

I'd rather go for pdflatex (unless you use some package that does not work
with it, like pstricks).

Günter



Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-18 Thread Wolfgang Engelmann
Am Mittwoch, 18. April 2012, 01:01:15 schrieb stefano franchi:

.

> Note that Springer usually requires that your .bib file contains only
> the references you use in your manuscript. If you have a  bib file
> with other references (as most people do), you should save it as a new
> file and then eliminate all the extra references (how to do that
> depends on which software you use to manage your references).
> 

If you use Jabref as a bib manager, you can create a bib file, with the used 
references only, on the command line:

jabref -a filename[.aux],newBibfile[.bib]

I find this useful, especially if you are using several bib files and many 
references.

Wolfgang


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-18 Thread PhilipPirrip

On 04/18/2012 03:55 AM, William Hanson wrote:

I've created a .bib file that contains only the references I use in my
paper, but this file is inside the Mendeley Desktop. And I _cannot_ move
it to any other location.  So in particular I can't get it into the
folder that contains the .tex file of my manuscript.


You should be able to create the .bib file anywhere you want. For 
example, select all the references, then right-click -> Export...

Or just copy (not move) the file that you already have.



Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread William Hanson
I'm trying to submit a manuscript via the Springer web site to one of their
journals (Philosophical Studies).  Although the web site says they accept
many formats, including LaTeX2E and TeX, it won't accept the file that LyX
has produced.  Any ideas?  (I've contacted Springer too but so far have
received no response.)

Bill Hanson


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread stefano franchi
On Tue, Apr 17, 2012 at 10:50 AM, William Hanson whan...@umn.edu wrote:
 I'm trying to submit a manuscript via the Springer web site to one of their
 journals (Philosophical Studies).  Although the web site says they accept
 many formats, including LaTeX2E and TeX, it won't accept the file that LyX
 has produced.  Any ideas?  (I've contacted Springer too but so far have
 received no response.)

Lyx will produce a LaTeX2e file IF you export the file as such:

FileExportLatex(plain)

It will produce a will with extension .tex in the same directory as
the original Lyx file.
Notice that the .lyx file that you open in Lyx is not latex and will
most likely not be accepted by Springer.


Cheers,

Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread William Hanson
Thanks Stefano,

It worked, but I now have another problem.  The Springer web site has
accepted the .tex file that you helped me create, but when I look at the
contents of that file on their web site (in order to give it my Final
Approval) the references do not show up.  (There's no list of references
at the end of my paper, and all the little reference items in the text or
the paper appear as [?], rather than as [7], etc.) I suppose this is
because the references are in a BibTeX Generated Bibliography, as it says
at the end of my .lyx file.  How do I get that to Springer so that the two
files will work together to make the references to appear as they
should?

Bill


On Tue, Apr 17, 2012 at 11:00 AM, stefano franchi stefano.fran...@gmail.com
 wrote:

 On Tue, Apr 17, 2012 at 10:50 AM, William Hanson whan...@umn.edu wrote:
  I'm trying to submit a manuscript via the Springer web site to one of
 their
  journals (Philosophical Studies).  Although the web site says they accept
  many formats, including LaTeX2E and TeX, it won't accept the file that
 LyX
  has produced.  Any ideas?  (I've contacted Springer too but so far have
  received no response.)

 Lyx will produce a LaTeX2e file IF you export the file as such:

 FileExportLatex(plain)

 It will produce a will with extension .tex in the same directory as
 the original Lyx file.
 Notice that the .lyx file that you open in Lyx is not latex and will
 most likely not be accepted by Springer.


 Cheers,

 Stefano



 --
 __
 Stefano Franchi
 Associate Research Professor
 Department of Hispanic StudiesPh:   +1 (979) 845-2125
 Texas AM University  Fax:  +1 (979) 845-6421
 College Station, Texas, USA

 stef...@tamu.edu
 http://stefano.cleinias.org



Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread stefano franchi
On Tue, Apr 17, 2012 at 11:53 AM, William Hanson whan...@umn.edu wrote:
 Thanks Stefano,

 It worked, but I now have another problem.  The Springer web site has
 accepted the .tex file that you helped me create, but when I look at the
 contents of that file on their web site (in order to give it my Final
 Approval) the references do not show up.  (There's no list of references at
 the end of my paper, and all the little reference items in the text or the
 paper appear as [?], rather than as [7], etc.) I suppose this is because the
 references are in a BibTeX Generated Bibliography, as it says at the end
 of my .lyx file.  How do I get that to Springer so that the two files will
 work together to make the references to appear as they should?

Ahh, that's trickier. You need to run latex and then bibtex on your
file (assuming you're using bibtex, instead of its later replacements
like biblatex and stuff). After you've done that, you'll find a file
with extension .bbl.
Append the content of that file to your tex file and you're in
business. You can even do insert everything into you lyx file as
explained here: http://wiki.lyx.org/Examples/AcmSigplan (look at the
Including bibliography entries in LyX file section).

Notice, however, that Springer usually accepts submissions as .tex +
.bib files. I am not familiar with Philosophical Studies (in spite of
being a philosopher), but Springer's instructions are usually very
clear. Perhaps they want you to to combine the .tex and .bib file into
a zipped archive?

Cheers,

Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread UD
The problem that Hanson ran into is a common one, which I have commented 
on here
in the past.  It would be really nice if there was a simple way to 
automate the solution so that new users will
not need to come  to this list again (some users do not know that it 
exists) to find out
how to solve this problem (of generating a Latex file that is acceptable 
to journals, with all

the references included in the .tex file).

Ehud Kaplan

On 04/17/2012 01:10 PM, stefano franchi wrote:

On Tue, Apr 17, 2012 at 11:53 AM, William Hansonwhan...@umn.edu  wrote:

Thanks Stefano,

It worked, but I now have another problem.  The Springer web site has
accepted the .tex file that you helped me create, but when I look at the
contents of that file on their web site (in order to give it my Final
Approval) the references do not show up.  (There's no list of references at
the end of my paper, and all the little reference items in the text or the
paper appear as [?], rather than as [7], etc.) I suppose this is because the
references are in a BibTeX Generated Bibliography, as it says at the end
of my .lyx file.  How do I get that to Springer so that the two files will
work together to make the references to appear as they should?

Ahh, that's trickier. You need to run latex and then bibtex on your
file (assuming you're using bibtex, instead of its later replacements
like biblatex and stuff). After you've done that, you'll find a file
with extension .bbl.
Append the content of that file to your tex file and you're in
business. You can even do insert everything into you lyx file as
explained here: http://wiki.lyx.org/Examples/AcmSigplan (look at the
Including bibliography entries in LyX file section).

Notice, however, that Springer usually accepts submissions as .tex +
.bib files. I am not familiar with Philosophical Studies (in spite of
being a philosopher), but Springer's instructions are usually very
clear. Perhaps they want you to to combine the .tex and .bib file into
a zipped archive?

Cheers,

Stefano





--
Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness/ Professor
*Director*, The laboratory of Visual  Computational Neuroscience
*Director*, Center for Excellence in Computational  Systems Neuroscience
/Friedman Brain Institute/
Departments of Neuroscience, Ophthalmology, Structural  Chemical Biology,
The Mount Sinai School of Medicine
One Gustave Levy Place,
NY, NY, 10029


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread Richard Heck

On 04/17/2012 04:42 PM, UD wrote:
The problem that Hanson ran into is a common one, which I have 
commented on here
in the past.  It would be really nice if there was a simple way to 
automate the solution so that new users will
not need to come  to this list again (some users do not know that it 
exists) to find out
how to solve this problem (of generating a Latex file that is 
acceptable to journals, with all

the references included in the .tex file).

There's a Python script included with LyX that will do this for you. 
There are some remarks here:

http://www.lyx.org/trac/ticket/4624
about how to set it up as a converter, and also an explanation of why we 
do not set it up by default. We should probably put something in the 
docs about it.


Richard


Ehud Kaplan

On 04/17/2012 01:10 PM, stefano franchi wrote:

On Tue, Apr 17, 2012 at 11:53 AM, William Hansonwhan...@umn.edu  wrote:

Thanks Stefano,

It worked, but I now have another problem.  The Springer web site has
accepted the .tex file that you helped me create, but when I look at the
contents of that file on their web site (in order to give it my Final
Approval) the references do not show up.  (There's no list of references at
the end of my paper, and all the little reference items in the text or the
paper appear as [?], rather than as [7], etc.) I suppose this is because the
references are in a BibTeX Generated Bibliography, as it says at the end
of my .lyx file.  How do I get that to Springer so that the two files will
work together to make the references to appear as they should?

Ahh, that's trickier. You need to run latex and then bibtex on your
file (assuming you're using bibtex, instead of its later replacements
like biblatex and stuff). After you've done that, you'll find a file
with extension .bbl.
Append the content of that file to your tex file and you're in
business. You can even do insert everything into you lyx file as
explained here:http://wiki.lyx.org/Examples/AcmSigplan  (look at the
Including bibliography entries in LyX file section).

Notice, however, that Springer usually accepts submissions as .tex +
.bib files. I am not familiar with Philosophical Studies (in spite of
being a philosopher), but Springer's instructions are usually very
clear. Perhaps they want you to to combine the .tex and .bib file into
a zipped archive?

Cheers,

Stefano





--
Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness/ Professor
*Director*, The laboratory of Visual  Computational Neuroscience
*Director*, Center for Excellence in Computational  Systems Neuroscience
/Friedman Brain Institute/
Departments of Neuroscience, Ophthalmology, Structural  Chemical Biology,
The Mount Sinai School of Medicine
One Gustave Levy Place,
NY, NY, 10029




Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread Liviu Andronic
On Tue, Apr 17, 2012 at 10:42 PM, UD ehud.kap...@gmail.com wrote:
 The problem that Hanson ran into is a common one, which I have commented on
 here
 in the past.  It would be really nice if there was a simple way to automate
 the solution so that new users will
 not need to come  to this list again (some users do not know that it exists)
 to find out
 how to solve this problem (of generating a Latex file that is acceptable to
 journals, with all
 the references included in the .tex file).

Best would be to document it on the wiki, and use appropriate keywords
to make it easily searchable/findeable, and/or point people to it when
they inquire on the list. Unless there is a smart script that could
handle this, I don't think that LyX could adapt itself to the quirks
of all the journals out there.

Cheers
Liviu


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread William Hanson
The solution Richard Heck proposes is one I'd like to follow.  But when I
go to Export I'm asked to choose between four different versions of LaTeX.
Which one should I use?

Bill Hanson

On Tue, Apr 17, 2012 at 3:59 PM, Liviu Andronic landronim...@gmail.comwrote:

 On Tue, Apr 17, 2012 at 10:42 PM, UD ehud.kap...@gmail.com wrote:
  The problem that Hanson ran into is a common one, which I have commented
 on
  here
  in the past.  It would be really nice if there was a simple way to
 automate
  the solution so that new users will
  not need to come  to this list again (some users do not know that it
 exists)
  to find out
  how to solve this problem (of generating a Latex file that is acceptable
 to
  journals, with all
  the references included in the .tex file).
 
 Best would be to document it on the wiki, and use appropriate keywords
 to make it easily searchable/findeable, and/or point people to it when
 they inquire on the list. Unless there is a smart script that could
 handle this, I don't think that LyX could adapt itself to the quirks
 of all the journals out there.

 Cheers
 Liviu



Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread Richard Heck

On 04/17/2012 05:24 PM, William Hanson wrote:
The solution Richard Heck proposes is one I'd like to follow.  But 
when I go to Export I'm asked to choose between four different 
versions of LaTeX.  Which one should I use?



plain, probably, unless you've been using XeTeX or LuaTeX features.

Richard


Bill Hanson

On Tue, Apr 17, 2012 at 3:59 PM, Liviu Andronic 
landronim...@gmail.com mailto:landronim...@gmail.com wrote:


On Tue, Apr 17, 2012 at 10:42 PM, UD ehud.kap...@gmail.com
mailto:ehud.kap...@gmail.com wrote:
 The problem that Hanson ran into is a common one, which I have
commented on
 here
 in the past.  It would be really nice if there was a simple way
to automate
 the solution so that new users will
 not need to come  to this list again (some users do not know
that it exists)
 to find out
 how to solve this problem (of generating a Latex file that is
acceptable to
 journals, with all
 the references included in the .tex file).

Best would be to document it on the wiki, and use appropriate keywords
to make it easily searchable/findeable, and/or point people to it when
they inquire on the list. Unless there is a smart script that could
handle this, I don't think that LyX could adapt itself to the quirks
of all the journals out there.

Cheers
Liviu






Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread stefano franchi
On Tue, Apr 17, 2012 at 2:23 PM, William Hanson whan...@umn.edu wrote:
 Stefano,

 I don't know what you mean when you say I should run latex and then bibtex
 on your
 file.  I've already exported my original LyX file using your
 FileExportLatex(plain) instruction.  So I now have both a .lyx and a
 .tex version of my file.  I am using bibtex, by the way.


I meant you need to run the latex program on the .tex file you
exported from Lyx. How to do that depends (slightly) on which platform
you work on.
But forget about that: I just checked the Springer instructions for
Philosophical studies,  and, as I suspected, they accept multi-file
manuscript zipped into a single archive. So my suggestion is to avoid
the complications of extracting the references and instead pack both
your lyx-exported .tex file and your bibliography (in a bib file) into
a single archive and then upload that.
How to do that, again, depends on your platform. If you are on Windows
there are many utilities that allow you to create zip archives. I
don't use Windows, so I can't be precise, but I vaguely remember a
program called  WinZip that did just that. Windows users on this list
may provide more specific advice.
On lInux, you'd just use the zip command from the command line. Open a
terminal window, move to the directory where your tex and bib files
are:

$cd /my/working/directory

and then issue the zip command:

$zip my_manuscript_archive my_file.tex my_references.bib

that will produce a file called  my_manuscript_archive.zip, which you
can then upload to the Springer site

On the Mac, you can do the same thing, I believe. Mac users may want
to provide more specific advice.

Note that Springer usually requires that your .bib file contains only
the references you use in your manuscript. If you have a  bib file
with other references (as most people do), you should save it as a new
file and then eliminate all the extra references (how to do that
depends on which software you use to manage your references).


 Since you're a philosopher and at Texas AM, you must know Chris Menzel.

I certainly do. We were even in the same dept for a few years.


Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread William Hanson
Thanks Stefano,

I now seem to be tantalizingly close to creating a zip folder (or zip
archive?) to send to Philosophical Studies.  I've created a .bib file that
contains only the references I use in my paper, but this file is inside the
Mendeley Desktop. And I *cannot* move it to any other location.  So in
particular I can't get it into the folder that contains the .tex file of my
manuscript.  If only I could do that, I think I would be able to apply
WinZip to create the zipped entity (file?, folder?, archive?) I need, which
I could then send to Philosophical Studies.

I'm in philosophy at the University of Minnesota in Minneapolis, by the
way.  I've met Chris only once or twice, but we've corresponded.  I admire
his work.

Bill

On Tue, Apr 17, 2012 at 6:01 PM, stefano franchi
stefano.fran...@gmail.comwrote:

 On Tue, Apr 17, 2012 at 2:23 PM, William Hanson whan...@umn.edu wrote:
  Stefano,
 
  I don't know what you mean when you say I should run latex and then
 bibtex
  on your
  file.  I've already exported my original LyX file using your
  FileExportLatex(plain) instruction.  So I now have both a .lyx and
 a
  .tex version of my file.  I am using bibtex, by the way.
 

 I meant you need to run the latex program on the .tex file you
 exported from Lyx. How to do that depends (slightly) on which platform
 you work on.
 But forget about that: I just checked the Springer instructions for
 Philosophical studies,  and, as I suspected, they accept multi-file
 manuscript zipped into a single archive. So my suggestion is to avoid
 the complications of extracting the references and instead pack both
 your lyx-exported .tex file and your bibliography (in a bib file) into
 a single archive and then upload that.
 How to do that, again, depends on your platform. If you are on Windows
 there are many utilities that allow you to create zip archives. I
 don't use Windows, so I can't be precise, but I vaguely remember a
 program called  WinZip that did just that. Windows users on this list
 may provide more specific advice.
 On lInux, you'd just use the zip command from the command line. Open a
 terminal window, move to the directory where your tex and bib files
 are:

 $cd /my/working/directory

 and then issue the zip command:

 $zip my_manuscript_archive my_file.tex my_references.bib

 that will produce a file called  my_manuscript_archive.zip, which you
 can then upload to the Springer site

 On the Mac, you can do the same thing, I believe. Mac users may want
 to provide more specific advice.

 Note that Springer usually requires that your .bib file contains only
 the references you use in your manuscript. If you have a  bib file
 with other references (as most people do), you should save it as a new
 file and then eliminate all the extra references (how to do that
 depends on which software you use to manage your references).


  Since you're a philosopher and at Texas AM, you must know Chris Menzel.

 I certainly do. We were even in the same dept for a few years.


 Cheers,

 Stefano


 --
 __
 Stefano Franchi
 Associate Research Professor
 Department of Hispanic StudiesPh:   +1 (979) 845-2125
 Texas AM University  Fax:  +1 (979) 845-6421
 College Station, Texas, USA

 stef...@tamu.edu
 http://stefano.cleinias.org



Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread stefano franchi
On Tue, Apr 17, 2012 at 8:55 PM, William Hanson whan...@umn.edu wrote:
 Thanks Stefano,

 I now seem to be tantalizingly close to creating a zip folder (or zip
 archive?) to send to Philosophical Studies.  I've created a .bib file that
 contains only the references I use in my paper, but this file is inside the
 Mendeley Desktop. And I cannot move it to any other location.  So in
 particular I can't get it into the folder that contains the .tex file of my
 manuscript.  If only I could do that, I think I would be able to apply
 WinZip to create the zipped entity (file?, folder?, archive?) I need, which
 I could then send to Philosophical Studies.

I have never used Mendeley, but would this link help?

http://libguides.mit.edu/content.php?pid=241351sid=1992274#3


If not, I will have to defer to Mendeley users on the list.


 I'm in philosophy at the University of Minnesota in Minneapolis, by the
 way.  I've met Chris only once or twice, but we've corresponded.  I admire
 his work.


I like Chris's work, too, even though I am in a rather different
sub-discipline (you may say I am a Continental philosopher, admitting
such a label makes any sense.)



Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread William Hanson
I'm trying to submit a manuscript via the Springer web site to one of their
journals (Philosophical Studies).  Although the web site says they accept
many formats, including LaTeX2E and TeX, it won't accept the file that LyX
has produced.  Any ideas?  (I've contacted Springer too but so far have
received no response.)

Bill Hanson


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread stefano franchi
On Tue, Apr 17, 2012 at 10:50 AM, William Hanson whan...@umn.edu wrote:
 I'm trying to submit a manuscript via the Springer web site to one of their
 journals (Philosophical Studies).  Although the web site says they accept
 many formats, including LaTeX2E and TeX, it won't accept the file that LyX
 has produced.  Any ideas?  (I've contacted Springer too but so far have
 received no response.)

Lyx will produce a LaTeX2e file IF you export the file as such:

FileExportLatex(plain)

It will produce a will with extension .tex in the same directory as
the original Lyx file.
Notice that the .lyx file that you open in Lyx is not latex and will
most likely not be accepted by Springer.


Cheers,

Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread William Hanson
Thanks Stefano,

It worked, but I now have another problem.  The Springer web site has
accepted the .tex file that you helped me create, but when I look at the
contents of that file on their web site (in order to give it my Final
Approval) the references do not show up.  (There's no list of references
at the end of my paper, and all the little reference items in the text or
the paper appear as [?], rather than as [7], etc.) I suppose this is
because the references are in a BibTeX Generated Bibliography, as it says
at the end of my .lyx file.  How do I get that to Springer so that the two
files will work together to make the references to appear as they
should?

Bill


On Tue, Apr 17, 2012 at 11:00 AM, stefano franchi stefano.fran...@gmail.com
 wrote:

 On Tue, Apr 17, 2012 at 10:50 AM, William Hanson whan...@umn.edu wrote:
  I'm trying to submit a manuscript via the Springer web site to one of
 their
  journals (Philosophical Studies).  Although the web site says they accept
  many formats, including LaTeX2E and TeX, it won't accept the file that
 LyX
  has produced.  Any ideas?  (I've contacted Springer too but so far have
  received no response.)

 Lyx will produce a LaTeX2e file IF you export the file as such:

 FileExportLatex(plain)

 It will produce a will with extension .tex in the same directory as
 the original Lyx file.
 Notice that the .lyx file that you open in Lyx is not latex and will
 most likely not be accepted by Springer.


 Cheers,

 Stefano



 --
 __
 Stefano Franchi
 Associate Research Professor
 Department of Hispanic StudiesPh:   +1 (979) 845-2125
 Texas AM University  Fax:  +1 (979) 845-6421
 College Station, Texas, USA

 stef...@tamu.edu
 http://stefano.cleinias.org



Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread stefano franchi
On Tue, Apr 17, 2012 at 11:53 AM, William Hanson whan...@umn.edu wrote:
 Thanks Stefano,

 It worked, but I now have another problem.  The Springer web site has
 accepted the .tex file that you helped me create, but when I look at the
 contents of that file on their web site (in order to give it my Final
 Approval) the references do not show up.  (There's no list of references at
 the end of my paper, and all the little reference items in the text or the
 paper appear as [?], rather than as [7], etc.) I suppose this is because the
 references are in a BibTeX Generated Bibliography, as it says at the end
 of my .lyx file.  How do I get that to Springer so that the two files will
 work together to make the references to appear as they should?

Ahh, that's trickier. You need to run latex and then bibtex on your
file (assuming you're using bibtex, instead of its later replacements
like biblatex and stuff). After you've done that, you'll find a file
with extension .bbl.
Append the content of that file to your tex file and you're in
business. You can even do insert everything into you lyx file as
explained here: http://wiki.lyx.org/Examples/AcmSigplan (look at the
Including bibliography entries in LyX file section).

Notice, however, that Springer usually accepts submissions as .tex +
.bib files. I am not familiar with Philosophical Studies (in spite of
being a philosopher), but Springer's instructions are usually very
clear. Perhaps they want you to to combine the .tex and .bib file into
a zipped archive?

Cheers,

Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread UD
The problem that Hanson ran into is a common one, which I have commented 
on here
in the past.  It would be really nice if there was a simple way to 
automate the solution so that new users will
not need to come  to this list again (some users do not know that it 
exists) to find out
how to solve this problem (of generating a Latex file that is acceptable 
to journals, with all

the references included in the .tex file).

Ehud Kaplan

On 04/17/2012 01:10 PM, stefano franchi wrote:

On Tue, Apr 17, 2012 at 11:53 AM, William Hansonwhan...@umn.edu  wrote:

Thanks Stefano,

It worked, but I now have another problem.  The Springer web site has
accepted the .tex file that you helped me create, but when I look at the
contents of that file on their web site (in order to give it my Final
Approval) the references do not show up.  (There's no list of references at
the end of my paper, and all the little reference items in the text or the
paper appear as [?], rather than as [7], etc.) I suppose this is because the
references are in a BibTeX Generated Bibliography, as it says at the end
of my .lyx file.  How do I get that to Springer so that the two files will
work together to make the references to appear as they should?

Ahh, that's trickier. You need to run latex and then bibtex on your
file (assuming you're using bibtex, instead of its later replacements
like biblatex and stuff). After you've done that, you'll find a file
with extension .bbl.
Append the content of that file to your tex file and you're in
business. You can even do insert everything into you lyx file as
explained here: http://wiki.lyx.org/Examples/AcmSigplan (look at the
Including bibliography entries in LyX file section).

Notice, however, that Springer usually accepts submissions as .tex +
.bib files. I am not familiar with Philosophical Studies (in spite of
being a philosopher), but Springer's instructions are usually very
clear. Perhaps they want you to to combine the .tex and .bib file into
a zipped archive?

Cheers,

Stefano





--
Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness/ Professor
*Director*, The laboratory of Visual  Computational Neuroscience
*Director*, Center for Excellence in Computational  Systems Neuroscience
/Friedman Brain Institute/
Departments of Neuroscience, Ophthalmology, Structural  Chemical Biology,
The Mount Sinai School of Medicine
One Gustave Levy Place,
NY, NY, 10029


Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread Richard Heck

On 04/17/2012 04:42 PM, UD wrote:
The problem that Hanson ran into is a common one, which I have 
commented on here
in the past.  It would be really nice if there was a simple way to 
automate the solution so that new users will
not need to come  to this list again (some users do not know that it 
exists) to find out
how to solve this problem (of generating a Latex file that is 
acceptable to journals, with all

the references included in the .tex file).

There's a Python script included with LyX that will do this for you. 
There are some remarks here:

http://www.lyx.org/trac/ticket/4624
about how to set it up as a converter, and also an explanation of why we 
do not set it up by default. We should probably put something in the 
docs about it.


Richard


Ehud Kaplan

On 04/17/2012 01:10 PM, stefano franchi wrote:

On Tue, Apr 17, 2012 at 11:53 AM, William Hansonwhan...@umn.edu  wrote:

Thanks Stefano,

It worked, but I now have another problem.  The Springer web site has
accepted the .tex file that you helped me create, but when I look at the
contents of that file on their web site (in order to give it my Final
Approval) the references do not show up.  (There's no list of references at
the end of my paper, and all the little reference items in the text or the
paper appear as [?], rather than as [7], etc.) I suppose this is because the
references are in a BibTeX Generated Bibliography, as it says at the end
of my .lyx file.  How do I get that to Springer so that the two files will
work together to make the references to appear as they should?

Ahh, that's trickier. You need to run latex and then bibtex on your
file (assuming you're using bibtex, instead of its later replacements
like biblatex and stuff). After you've done that, you'll find a file
with extension .bbl.
Append the content of that file to your tex file and you're in
business. You can even do insert everything into you lyx file as
explained here:http://wiki.lyx.org/Examples/AcmSigplan  (look at the
Including bibliography entries in LyX file section).

Notice, however, that Springer usually accepts submissions as .tex +
.bib files. I am not familiar with Philosophical Studies (in spite of
being a philosopher), but Springer's instructions are usually very
clear. Perhaps they want you to to combine the .tex and .bib file into
a zipped archive?

Cheers,

Stefano





--
Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness/ Professor
*Director*, The laboratory of Visual  Computational Neuroscience
*Director*, Center for Excellence in Computational  Systems Neuroscience
/Friedman Brain Institute/
Departments of Neuroscience, Ophthalmology, Structural  Chemical Biology,
The Mount Sinai School of Medicine
One Gustave Levy Place,
NY, NY, 10029




Re: Will LyX produce a LaTeX2E or TeX file?

2012-04-17 Thread Liviu Andronic
On Tue, Apr 17, 2012 at 10:42 PM, UD ehud.kap...@gmail.com wrote:
 The problem that Hanson ran into is a common one, which I have commented on
 here
 in the past.  It would be really nice if there was a simple way to automate
 the solution so that new users will
 not need to come  to this list again (some users do not know that it exists)
 to find out
 how to solve this problem (of generating a Latex file that is acceptable to
 journals, with all
 the references included in the .tex file).

Best would be to document it on the wiki, and use appropriate keywords
to make it easily searchable/findeable, and/or point people to it when
they inquire on the list. Unless there is a smart script that could
handle this, I don't think that LyX could adapt itself to the quirks
of all the journals out there.

Cheers
Liviu


  1   2   3   4   >