Google Docs to LaTeX
I'm using LyX 1.5.4 on Leopard 10.5.2. I have to work with Google Docs to keep a document reviewable by anyone at anytime. Also it keeps the document in a standard format while being developed. It can then be transformed to PDF, RTF or more for publishing. But no LaTeX support yet. The best project I've found so far in that respect is: http://www.sci.usq.edu.au/research/googledocs.php But it's not a public project. I'm now trying to reproduce a workflow as straight forward as possible to go from this original Google Docs document to a Lyx edited and published one. I'm now playing with converters: GoogleDocs can do RTF or HTML. I'd like to experiment the LyX RTF - LaTeX converter, but I'm getting an error even with a very straight forward RTF doc: 'An error occured whilst running rtf2latex2e 'Untitled.rtf''. I'm trying to use other converters by defining them through Preferences, but it wouldn't let me add one. How come? It sounds that I could have an HTML - LaTeX converter. What's your experience? What works best in terms of converting? -nodje -- View this message in context: http://www.nabble.com/Google-Docs-to-LaTeX-tp16790653p16790653.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Gentoo future
[EMAIL PROTECTED] wrote: After being a user (for at least a year each) of Redhat, Suse, Debian I finally went to Gentoo and intend to stick to it. What I like most: - I had to reinstall only once, when I changed my computer. That's great ! Experience has taught me that, should a new version be issued, the safer and least time consuming way to keep up with other linux is to reinstall. Not on Gentoo! - the other great feature is the abundant, detailed and practical documentation. You're never left on your own. Which is where a problem lies: the doc being so big, most of the time, the best way to find what you're looking for is to ask for a pointer on this list. It sure works, but I think it's about time to launch a help indexing project.What do you think folks? Are you sure you are on the right list? Abdel.
Gentoo future
After being a user (for at least a year each) of Redhat, Suse, Debian I finally went to Gentoo and intend to stick to it. What I like most: - I had to reinstall only once, when I changed my computer. That's great ! Experience has taught me that, should a new version be issued, the safer and least time consuming way to keep up with other linux is to reinstall. Not on Gentoo! - the other great feature is the abundant, detailed and practical documentation. You're never left on your own. Which is where a problem lies: the doc being so big, most of the time, the best way to find what you're looking for is to ask for a pointer on this list. It sure works, but I think it's about time to launch a help indexing project.What do you think folks?
Re: Google Docs to LaTeX
nodje wrote: I'm trying to use other converters by defining them through Preferences, but it wouldn't let me add one. How come? It sounds that I could have an HTML - LaTeX converter. What's your experience? What works best in terms of converting? I would try to export to ODF and then use writer2latex to convert it to LaTeX. You clean the LaTeX with a script to take away all the Wysiwyg cruft and then convert it to LyX. Cheers, Charles
Re: LyX and Scientific Word/Workplace
Thanks for all of the replies. I definitely agree LyX is awesome! But just as I don't want to learn+buy SWP, my colleagues do not have the time to learn LyX. We must use SWP for the master/working copy (not just on this project but on a couple of them). I'll look into why SWP does not like LyX latex output and see if I can't figure something out. As for the question regarding paragraph 13, I have not figured that out yet. I need to investigate whether the error is related to paragraph or line 13. And whether blank lines are considered paragraphs. I'll let you know what I discover. Ken
Address manager for LaTeX, like BibTeX?
Are there any free managers for address files (.adr) like there are for bibtext files (e.g., JabRef)? - David Hewitt Research Fishery Biologist, USGS Klamath Falls Field Station (Oregon, USA) -and- Student, Virginia Institute of Marine Science http://www.vims.edu/fish/students/dhewitt/ -- View this message in context: http://www.nabble.com/Address-manager-for-LaTeX%2C-like-BibTeX--tp16793241p16793241.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Preamble order and LyX layouts
On Apr 19, 2008, at 10:17 PM, rgheck wrote: A. Scottedward Hodel wrote: On Apr 19, 2008, at 8:33 PM, rgheck wrote: A. Scottedward Hodel wrote: I am trying to write a textbook layout file (current version is attached) that will let me set a switch in the preamble of my LyX file so that I can easily generate both a teacher's version (with solutions) and a student version (without homework solutions). What I've attempted to do is to put the command \def\notestype{teacher} in the Document - Settings - LaTeX preamble window of LyX. However, this seems to be loaded after the layout preamble is set. Is there a way for me to have at least a part of the layout preamble processed /after/ the Documents - Settings preamble? If I can do this, then I will be able to work within LyX rather than LaTeX, which I would like to do. At present, no, you can't do that, but I'm not sure why you really need to do so. Can't you just do something like this: \ifequal\notestype in the environments (or commands) themselves? Then it doesn't matter what gets loaded first. (If this isn't clear, post your layout, and we can work on it together. All of us!!) The other possibility is to use branches, which are designed for precisely this sort of use. rh Thanks. I've tried a number of \ifthenelse environment definitions in the LaTeX version, including the use of xcomment, but so far nothing that works cleanly. My current workaround (temporary) is to just edit the layout and then reconfigure LyX when I want to change version. Since I won't be changing edition that often, that's fine for me, but not really appropriate for general use. I think I may be able to isolate the offending commands to fall in the LyX preamble by themselves, but I'll work on that later. I'd have to think about this for a while, but my idea was to define a LaTeX command that either (a) just repeated its argument or (b) basically ate its argument, and then to make the solution environment wrap the command. But I'm not absolutely sure how to do that. Basically, I want \begin{solution}stuff here\end{solution} to turn into something like: \solutioncmd{\par\noindent{\bf Solution}stuff here} and then we have: \newcommand\solutioncmd{% \ifthenelse{\equal{\notestype}{teacher}}% {#1}{}} So either we get \par\noindent{\bf Solution}stuff here or we get nothing. But I'm not sure how to do the environment definition. Probably we need some group business. Uwe, if you're reading this, do you have an idea? (Uwe is our resident expert on the user list.) Richard I may just be being too picky. I was able to \def a LaTeX command with \ifthenelse very similar to what you describe: I just wanted to make in a \newenvironment, and these sort of commands don't seem to mesh well with that macro. My command was \newcommand{\questxsol}[2]{ \ifthenelse{\equal{\notestype}{teacher}}{#2} { \ifthenelse{\equal{\questxenv}{example}} {#2}{#1} } } The variable \notestype determines whether this is the student or teacher version, and the variable \questxenv indicates whether this solution is in a worked example, a homework problem, or an exam question. (I've been using a single LaTeX file that is \input inside a question/example/examQuestion environment so that the questions are modular and formatted according to how they're used.) Suppose I use the \solutioncmd or \questxsol in LyX rather than a \newenvironment. How do I incorporate that command into a LyX paragraph environment, or is that cleanly possible? A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar
Re: Preamble order and LyX layouts
A. Scottedward Hodel wrote: I may just be being too picky. I was able to \def a LaTeX command with \ifthenelse very similar to what you describe: I just wanted to make in a \newenvironment, and these sort of commands don't seem to mesh well with that macro. My command was \newcommand{\questxsol}[2]{ \ifthenelse{\equal{\notestype}{teacher}}{#2} { \ifthenelse{\equal{\questxenv}{example}} {#2}{#1} } } The variable \notestype determines whether this is the student or teacher version, and the variable \questxenv indicates whether this solution is in a worked example, a homework problem, or an exam question. (I've been using a single LaTeX file that is \input inside a question/example/examQuestion environment so that the questions are modular and formatted according to how they're used.) Suppose I use the \solutioncmd or \questxsol in LyX rather than a \newenvironment. How do I incorporate that command into a LyX paragraph environment, or is that cleanly possible? You can define a paragraph to be of command type. Section headers, for example, are like this. This just determines whether LyX outputs: \begin{whatever}...\end{whatever} or instead: \whatever{...} That might not be the cleanest thing in the world, but it might still work. Richard
Re: Preamble order and LyX layouts
On Apr 20, 2008, at 11:20 AM, rgheck wrote: A. Scottedward Hodel wrote: I may just be being too picky. I was able to \def a LaTeX command with \ifthenelse very similar to what you describe: I just wanted to make in a \newenvironment, and these sort of commands don't seem to mesh well with that macro. My command was \newcommand{\questxsol}[2]{ \ifthenelse{\equal{\notestype}{teacher}}{#2} { \ifthenelse{\equal{\questxenv}{example}} {#2}{#1} } } The variable \notestype determines whether this is the student or teacher version, and the variable \questxenv indicates whether this solution is in a worked example, a homework problem, or an exam question. (I've been using a single LaTeX file that is \input inside a question/example/examQuestion environment so that the questions are modular and formatted according to how they're used.) Suppose I use the \solutioncmd or \questxsol in LyX rather than a \newenvironment. How do I incorporate that command into a LyX paragraph environment, or is that cleanly possible? You can define a paragraph to be of command type. Section headers, for example, are like this. This just determines whether LyX outputs: \begin{whatever}...\end{whatever} or instead: \whatever{...} That might not be the cleanest thing in the world, but it might still work. Richard I'll look for examples in the other layouts and give this a try. When I get success (optimism!), I'll post the layout and an example to the list. Thanks! A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar
Re: Preamble order and LyX layouts
On Apr 20, 2008, at 11:30 AM, A. Scottedward Hodel wrote: On Apr 20, 2008, at 11:20 AM, rgheck wrote: You can define a paragraph to be of command type. Section headers, for example, are like this. This just determines whether LyX outputs: \begin{whatever}...\end{whatever} or instead: \whatever{...} That might not be the cleanest thing in the world, but it might still work. Richard I'll look for examples in the other layouts and give this a try. When I get success (optimism!), I'll post the layout and an example to the list. Thanks! Victory! Thanks very much for your suggestions and help! Attached is a sample LyX file (a bit convoluted, but it shows the features) and the layout file. A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar myTextBook.layout Description: Binary data TextbookExample.lyx Description: Binary data
Re: Google Docs to LaTeX
[EMAIL PROTECTED] writes: I would try to export to ODF and then use writer2latex to convert it to LaTeX. You clean the LaTeX with a script to take away all the Wysiwyg cruft and then convert it to LyX. I can't tell from the note whether you are a skillful composer of scripts, as Charles is kindly thinking you must be. If you are not, but have NeoOffice installed, notice that writer2latex is already installed under File -- Export -- FileFormat. I take it this is true of all versions of OpenOffice. The default preferences may not be ideal; they are in writer2latex.xml, which is easy to find and fairly humanly readable - even if it is a script - and can be adjusted according to the principles in the user's manual http://www.hj-gym.dk/~hj/writer2latex/index7.html Since you are writing in google docs, you will have control over how much of a hash the result is. I use NeoOffice to open Word documents, and if I have to print a long student term paper, the temptation to export is overwhelming, of course, if only to save paper and ink. If you delete all of the garbage that appears in the preamble under Document -- Settings, the results are not too bad. (Once someone figures out how to have a handsome Powered by LyX figure printed at the bottom of the last page, or maybe every page, which might be mentioned in the preamble, I'd be bold enough to return the text to the student that way.) It is surprising how rapid the steps are; it was much more complicated when I was first using LyX and LaTeX a year or so ago, and thus converting lots of stuff. If you have to study and alter a document, and thus stare at paragraphs in the LyX user interface, there may be some ugly ERT, especially if the preferences are too kind to what Charles calls the 'wysiwyg cruft'. If you find a solution to the problem with em-dashes that doesn't involve a find-and-replace in the .tex file, tell me.
Two moderncv questions
Hello I have two final problems with moderncv class. 1st. using \cvlistitem for bullets when the text is longer than one line then the second line is not justified as expected (just below the text of the previous line but it is below the bullet). You may see the problem in a pdf lyx file in http://users.hol.gr/~sdn/ 2nd. How can centralize (horizontally) the name (\firstname \familyname)? I know it is possible because I had find a command for that but I cant find it anymore. Thank you in advance for your help sn
Re: Preamble order and LyX layouts
On Apr 20, 2008, at 4:28 PM, A. Scottedward Hodel wrote: Victory! Thanks very much for your suggestions and help! Attached is a sample LyX file (a bit convoluted, but it shows the features) and the layout file. A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar myTextBook.layout TextbookExample.lyx Alas, I spoke too soon. If my solution has more than one paragraph, the Command paragraph type starts a new solution environment, i.e., I get the word Solution at the start of each paragraph. I'll keep plugging at it... A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar myTextBook.layout Description: Binary data TextbookExample.lyx Description: Binary data
english appended to the left side of the running head
I'm rather inexperienced with LaTeX and LyX, trying to use the latter to write a presentation for a class. I'm using the amsart document class, because it makes the handout look the best, but at the top of each page, it prints the title as englishTopological Vector Spaces instead of Topological Vector Spaces. Is there any way I can fix this, or get rid of the header entirely (I don't really need it)? Also, is there a way to remove or lessen the empty space above the title on the first page of the document? I'm having trouble figuring that out. Thanks a lot! -- View this message in context: http://www.nabble.com/%22english%22-appended-to-the-left-side-of-the-running-head-tp16802158p16802158.html Sent from the LyX - Users mailing list archive at Nabble.com.
Google Docs to LaTeX
I'm using LyX 1.5.4 on Leopard 10.5.2. I have to work with Google Docs to keep a document reviewable by anyone at anytime. Also it keeps the document in a standard format while being developed. It can then be transformed to PDF, RTF or more for publishing. But no LaTeX support yet. The best project I've found so far in that respect is: http://www.sci.usq.edu.au/research/googledocs.php But it's not a public project. I'm now trying to reproduce a workflow as straight forward as possible to go from this original Google Docs document to a Lyx edited and published one. I'm now playing with converters: GoogleDocs can do RTF or HTML. I'd like to experiment the LyX RTF - LaTeX converter, but I'm getting an error even with a very straight forward RTF doc: 'An error occured whilst running rtf2latex2e 'Untitled.rtf''. I'm trying to use other converters by defining them through Preferences, but it wouldn't let me add one. How come? It sounds that I could have an HTML - LaTeX converter. What's your experience? What works best in terms of converting? -nodje -- View this message in context: http://www.nabble.com/Google-Docs-to-LaTeX-tp16790653p16790653.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Gentoo future
[EMAIL PROTECTED] wrote: After being a user (for at least a year each) of Redhat, Suse, Debian I finally went to Gentoo and intend to stick to it. What I like most: - I had to reinstall only once, when I changed my computer. That's great ! Experience has taught me that, should a new version be issued, the safer and least time consuming way to keep up with other linux is to reinstall. Not on Gentoo! - the other great feature is the abundant, detailed and practical documentation. You're never left on your own. Which is where a problem lies: the doc being so big, most of the time, the best way to find what you're looking for is to ask for a pointer on this list. It sure works, but I think it's about time to launch a help indexing project.What do you think folks? Are you sure you are on the right list? Abdel.
Gentoo future
After being a user (for at least a year each) of Redhat, Suse, Debian I finally went to Gentoo and intend to stick to it. What I like most: - I had to reinstall only once, when I changed my computer. That's great ! Experience has taught me that, should a new version be issued, the safer and least time consuming way to keep up with other linux is to reinstall. Not on Gentoo! - the other great feature is the abundant, detailed and practical documentation. You're never left on your own. Which is where a problem lies: the doc being so big, most of the time, the best way to find what you're looking for is to ask for a pointer on this list. It sure works, but I think it's about time to launch a help indexing project.What do you think folks?
Re: Google Docs to LaTeX
nodje wrote: I'm trying to use other converters by defining them through Preferences, but it wouldn't let me add one. How come? It sounds that I could have an HTML - LaTeX converter. What's your experience? What works best in terms of converting? I would try to export to ODF and then use writer2latex to convert it to LaTeX. You clean the LaTeX with a script to take away all the Wysiwyg cruft and then convert it to LyX. Cheers, Charles
Re: LyX and Scientific Word/Workplace
Thanks for all of the replies. I definitely agree LyX is awesome! But just as I don't want to learn+buy SWP, my colleagues do not have the time to learn LyX. We must use SWP for the master/working copy (not just on this project but on a couple of them). I'll look into why SWP does not like LyX latex output and see if I can't figure something out. As for the question regarding paragraph 13, I have not figured that out yet. I need to investigate whether the error is related to paragraph or line 13. And whether blank lines are considered paragraphs. I'll let you know what I discover. Ken
Address manager for LaTeX, like BibTeX?
Are there any free managers for address files (.adr) like there are for bibtext files (e.g., JabRef)? - David Hewitt Research Fishery Biologist, USGS Klamath Falls Field Station (Oregon, USA) -and- Student, Virginia Institute of Marine Science http://www.vims.edu/fish/students/dhewitt/ -- View this message in context: http://www.nabble.com/Address-manager-for-LaTeX%2C-like-BibTeX--tp16793241p16793241.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Preamble order and LyX layouts
On Apr 19, 2008, at 10:17 PM, rgheck wrote: A. Scottedward Hodel wrote: On Apr 19, 2008, at 8:33 PM, rgheck wrote: A. Scottedward Hodel wrote: I am trying to write a textbook layout file (current version is attached) that will let me set a switch in the preamble of my LyX file so that I can easily generate both a teacher's version (with solutions) and a student version (without homework solutions). What I've attempted to do is to put the command \def\notestype{teacher} in the Document - Settings - LaTeX preamble window of LyX. However, this seems to be loaded after the layout preamble is set. Is there a way for me to have at least a part of the layout preamble processed /after/ the Documents - Settings preamble? If I can do this, then I will be able to work within LyX rather than LaTeX, which I would like to do. At present, no, you can't do that, but I'm not sure why you really need to do so. Can't you just do something like this: \ifequal\notestype in the environments (or commands) themselves? Then it doesn't matter what gets loaded first. (If this isn't clear, post your layout, and we can work on it together. All of us!!) The other possibility is to use branches, which are designed for precisely this sort of use. rh Thanks. I've tried a number of \ifthenelse environment definitions in the LaTeX version, including the use of xcomment, but so far nothing that works cleanly. My current workaround (temporary) is to just edit the layout and then reconfigure LyX when I want to change version. Since I won't be changing edition that often, that's fine for me, but not really appropriate for general use. I think I may be able to isolate the offending commands to fall in the LyX preamble by themselves, but I'll work on that later. I'd have to think about this for a while, but my idea was to define a LaTeX command that either (a) just repeated its argument or (b) basically ate its argument, and then to make the solution environment wrap the command. But I'm not absolutely sure how to do that. Basically, I want \begin{solution}stuff here\end{solution} to turn into something like: \solutioncmd{\par\noindent{\bf Solution}stuff here} and then we have: \newcommand\solutioncmd{% \ifthenelse{\equal{\notestype}{teacher}}% {#1}{}} So either we get \par\noindent{\bf Solution}stuff here or we get nothing. But I'm not sure how to do the environment definition. Probably we need some group business. Uwe, if you're reading this, do you have an idea? (Uwe is our resident expert on the user list.) Richard I may just be being too picky. I was able to \def a LaTeX command with \ifthenelse very similar to what you describe: I just wanted to make in a \newenvironment, and these sort of commands don't seem to mesh well with that macro. My command was \newcommand{\questxsol}[2]{ \ifthenelse{\equal{\notestype}{teacher}}{#2} { \ifthenelse{\equal{\questxenv}{example}} {#2}{#1} } } The variable \notestype determines whether this is the student or teacher version, and the variable \questxenv indicates whether this solution is in a worked example, a homework problem, or an exam question. (I've been using a single LaTeX file that is \input inside a question/example/examQuestion environment so that the questions are modular and formatted according to how they're used.) Suppose I use the \solutioncmd or \questxsol in LyX rather than a \newenvironment. How do I incorporate that command into a LyX paragraph environment, or is that cleanly possible? A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar
Re: Preamble order and LyX layouts
A. Scottedward Hodel wrote: I may just be being too picky. I was able to \def a LaTeX command with \ifthenelse very similar to what you describe: I just wanted to make in a \newenvironment, and these sort of commands don't seem to mesh well with that macro. My command was \newcommand{\questxsol}[2]{ \ifthenelse{\equal{\notestype}{teacher}}{#2} { \ifthenelse{\equal{\questxenv}{example}} {#2}{#1} } } The variable \notestype determines whether this is the student or teacher version, and the variable \questxenv indicates whether this solution is in a worked example, a homework problem, or an exam question. (I've been using a single LaTeX file that is \input inside a question/example/examQuestion environment so that the questions are modular and formatted according to how they're used.) Suppose I use the \solutioncmd or \questxsol in LyX rather than a \newenvironment. How do I incorporate that command into a LyX paragraph environment, or is that cleanly possible? You can define a paragraph to be of command type. Section headers, for example, are like this. This just determines whether LyX outputs: \begin{whatever}...\end{whatever} or instead: \whatever{...} That might not be the cleanest thing in the world, but it might still work. Richard
Re: Preamble order and LyX layouts
On Apr 20, 2008, at 11:20 AM, rgheck wrote: A. Scottedward Hodel wrote: I may just be being too picky. I was able to \def a LaTeX command with \ifthenelse very similar to what you describe: I just wanted to make in a \newenvironment, and these sort of commands don't seem to mesh well with that macro. My command was \newcommand{\questxsol}[2]{ \ifthenelse{\equal{\notestype}{teacher}}{#2} { \ifthenelse{\equal{\questxenv}{example}} {#2}{#1} } } The variable \notestype determines whether this is the student or teacher version, and the variable \questxenv indicates whether this solution is in a worked example, a homework problem, or an exam question. (I've been using a single LaTeX file that is \input inside a question/example/examQuestion environment so that the questions are modular and formatted according to how they're used.) Suppose I use the \solutioncmd or \questxsol in LyX rather than a \newenvironment. How do I incorporate that command into a LyX paragraph environment, or is that cleanly possible? You can define a paragraph to be of command type. Section headers, for example, are like this. This just determines whether LyX outputs: \begin{whatever}...\end{whatever} or instead: \whatever{...} That might not be the cleanest thing in the world, but it might still work. Richard I'll look for examples in the other layouts and give this a try. When I get success (optimism!), I'll post the layout and an example to the list. Thanks! A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar
Re: Preamble order and LyX layouts
On Apr 20, 2008, at 11:30 AM, A. Scottedward Hodel wrote: On Apr 20, 2008, at 11:20 AM, rgheck wrote: You can define a paragraph to be of command type. Section headers, for example, are like this. This just determines whether LyX outputs: \begin{whatever}...\end{whatever} or instead: \whatever{...} That might not be the cleanest thing in the world, but it might still work. Richard I'll look for examples in the other layouts and give this a try. When I get success (optimism!), I'll post the layout and an example to the list. Thanks! Victory! Thanks very much for your suggestions and help! Attached is a sample LyX file (a bit convoluted, but it shows the features) and the layout file. A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar myTextBook.layout Description: Binary data TextbookExample.lyx Description: Binary data
Re: Google Docs to LaTeX
[EMAIL PROTECTED] writes: I would try to export to ODF and then use writer2latex to convert it to LaTeX. You clean the LaTeX with a script to take away all the Wysiwyg cruft and then convert it to LyX. I can't tell from the note whether you are a skillful composer of scripts, as Charles is kindly thinking you must be. If you are not, but have NeoOffice installed, notice that writer2latex is already installed under File -- Export -- FileFormat. I take it this is true of all versions of OpenOffice. The default preferences may not be ideal; they are in writer2latex.xml, which is easy to find and fairly humanly readable - even if it is a script - and can be adjusted according to the principles in the user's manual http://www.hj-gym.dk/~hj/writer2latex/index7.html Since you are writing in google docs, you will have control over how much of a hash the result is. I use NeoOffice to open Word documents, and if I have to print a long student term paper, the temptation to export is overwhelming, of course, if only to save paper and ink. If you delete all of the garbage that appears in the preamble under Document -- Settings, the results are not too bad. (Once someone figures out how to have a handsome Powered by LyX figure printed at the bottom of the last page, or maybe every page, which might be mentioned in the preamble, I'd be bold enough to return the text to the student that way.) It is surprising how rapid the steps are; it was much more complicated when I was first using LyX and LaTeX a year or so ago, and thus converting lots of stuff. If you have to study and alter a document, and thus stare at paragraphs in the LyX user interface, there may be some ugly ERT, especially if the preferences are too kind to what Charles calls the 'wysiwyg cruft'. If you find a solution to the problem with em-dashes that doesn't involve a find-and-replace in the .tex file, tell me.
Two moderncv questions
Hello I have two final problems with moderncv class. 1st. using \cvlistitem for bullets when the text is longer than one line then the second line is not justified as expected (just below the text of the previous line but it is below the bullet). You may see the problem in a pdf lyx file in http://users.hol.gr/~sdn/ 2nd. How can centralize (horizontally) the name (\firstname \familyname)? I know it is possible because I had find a command for that but I cant find it anymore. Thank you in advance for your help sn
Re: Preamble order and LyX layouts
On Apr 20, 2008, at 4:28 PM, A. Scottedward Hodel wrote: Victory! Thanks very much for your suggestions and help! Attached is a sample LyX file (a bit convoluted, but it shows the features) and the layout file. A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar myTextBook.layout TextbookExample.lyx Alas, I spoke too soon. If my solution has more than one paragraph, the Command paragraph type starts a new solution environment, i.e., I get the word Solution at the start of each paragraph. I'll keep plugging at it... A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar myTextBook.layout Description: Binary data TextbookExample.lyx Description: Binary data
english appended to the left side of the running head
I'm rather inexperienced with LaTeX and LyX, trying to use the latter to write a presentation for a class. I'm using the amsart document class, because it makes the handout look the best, but at the top of each page, it prints the title as englishTopological Vector Spaces instead of Topological Vector Spaces. Is there any way I can fix this, or get rid of the header entirely (I don't really need it)? Also, is there a way to remove or lessen the empty space above the title on the first page of the document? I'm having trouble figuring that out. Thanks a lot! -- View this message in context: http://www.nabble.com/%22english%22-appended-to-the-left-side-of-the-running-head-tp16802158p16802158.html Sent from the LyX - Users mailing list archive at Nabble.com.
Google Docs to LaTeX
I'm using LyX 1.5.4 on Leopard 10.5.2. I have to work with Google Docs to keep a document reviewable by anyone at anytime. Also it keeps the document in a standard format while being developed. It can then be transformed to PDF, RTF or more for publishing. But no LaTeX support yet. The best project I've found so far in that respect is: http://www.sci.usq.edu.au/research/googledocs.php But it's not a public project. I'm now trying to reproduce a workflow as straight forward as possible to go from this original Google Docs document to a Lyx edited and published one. I'm now playing with converters: GoogleDocs can do RTF or HTML. I'd like to experiment the LyX RTF -> LaTeX converter, but I'm getting an error even with a very straight forward RTF doc: 'An error occured whilst running rtf2latex2e 'Untitled.rtf''. I'm trying to use other converters by defining them through Preferences, but it wouldn't let me add one. How come? It sounds that I could have an HTML -> LaTeX converter. What's your experience? What works best in terms of converting? -nodje -- View this message in context: http://www.nabble.com/Google-Docs-to-LaTeX-tp16790653p16790653.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Gentoo future
[EMAIL PROTECTED] wrote: After being a user (for at least a year each) of Redhat, Suse, Debian I finally went to Gentoo and intend to stick to it. What I like most: - I had to reinstall only once, when I changed my computer. That's great ! Experience has taught me that, should a new version be issued, the safer and least time consuming way to keep up with other linux is to reinstall. Not on Gentoo! - the other great feature is the abundant, detailed and practical documentation. You're never left on your own. Which is where a problem lies: the doc being so big, most of the time, the best way to find what you're looking for is to ask for a pointer on this list. It sure works, but I think it's about time to launch a help indexing project.What do you think folks? Are you sure you are on the right list? Abdel.
Gentoo future
After being a user (for at least a year each) of Redhat, Suse, Debian I finally went to Gentoo and intend to stick to it. What I like most: - I had to reinstall only once, when I changed my computer. That's great ! Experience has taught me that, should a new version be issued, the safer and least time consuming way to keep up with other linux is to reinstall. Not on Gentoo! - the other great feature is the abundant, detailed and practical documentation. You're never left on your own. Which is where a problem lies: the doc being so big, most of the time, the best way to find what you're looking for is to ask for a pointer on this list. It sure works, but I think it's about time to launch a help indexing project.What do you think folks?
Re: Google Docs to LaTeX
nodje wrote: > > I'm trying to use other converters by defining them through Preferences, > but it wouldn't let me add one. > How come? It sounds that I could have an HTML -> LaTeX converter. > > What's your experience? What works best in terms of converting? > I would try to export to ODF and then use writer2latex to convert it to LaTeX. You clean the LaTeX with a script to take away all the Wysiwyg cruft and then convert it to LyX. Cheers, Charles
Re: LyX and Scientific Word/Workplace
Thanks for all of the replies. I definitely agree LyX is awesome! But just as I don't want to learn+buy SWP, my colleagues do not have the time to learn LyX. We must use SWP for the master/working copy (not just on this project but on a couple of them). I'll look into why SWP does not like LyX latex output and see if I can't figure something out. As for the question regarding paragraph 13, I have not figured that out yet. I need to investigate whether the error is related to "paragraph" or line 13. And whether blank lines are considered paragraphs. I'll let you know what I discover. Ken
Address manager for LaTeX, like BibTeX?
Are there any free managers for address files (.adr) like there are for bibtext files (e.g., JabRef)? - David Hewitt Research Fishery Biologist, USGS Klamath Falls Field Station (Oregon, USA) -and- Student, Virginia Institute of Marine Science http://www.vims.edu/fish/students/dhewitt/ -- View this message in context: http://www.nabble.com/Address-manager-for-LaTeX%2C-like-BibTeX--tp16793241p16793241.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Preamble order and LyX layouts
On Apr 19, 2008, at 10:17 PM, rgheck wrote: A. Scottedward Hodel wrote: On Apr 19, 2008, at 8:33 PM, rgheck wrote: A. Scottedward Hodel wrote: I am trying to write a textbook layout file (current version is attached) that will let me set a "switch" in the preamble of my LyX file so that I can easily generate both a teacher's version (with solutions) and a student version (without homework solutions). What I've attempted to do is to put the command \def\notestype{teacher} in the Document -> Settings -> LaTeX preamble window of LyX. However, this seems to be loaded after the layout preamble is set. Is there a way for me to have at least a part of the layout preamble processed /after/ the Documents -> Settings preamble? If I can do this, then I will be able to work within LyX rather than LaTeX, which I would like to do. At present, no, you can't do that, but I'm not sure why you really need to do so. Can't you just do something like this: \ifequal\notestype in the environments (or commands) themselves? Then it doesn't matter what gets loaded first. (If this isn't clear, post your layout, and we can work on it together. All of us!!) The other possibility is to use branches, which are designed for precisely this sort of use. rh Thanks. I've tried a number of \ifthenelse environment definitions in the LaTeX version, including the use of xcomment, but so far nothing that works "cleanly." My current workaround (temporary) is to just edit the layout and then reconfigure LyX when I want to change version. Since I won't be changing edition that often, that's fine for me, but not really appropriate for general use. I think I may be able to isolate the "offending" commands to fall in the LyX preamble by themselves, but I'll work on that later. I'd have to think about this for a while, but my idea was to define a LaTeX command that either (a) just repeated its argument or (b) basically ate its argument, and then to make the solution environment wrap the command. But I'm not absolutely sure how to do that. Basically, I want \begin{solution}stuff here\end{solution} to turn into something like: \solutioncmd{\par\noindent{\bf Solution}stuff here} and then we have: \newcommand\solutioncmd{% \ifthenelse{\equal{\notestype}{teacher}}% {#1}{}} So either we get \par\noindent{\bf Solution}stuff here or we get nothing. But I'm not sure how to do the environment definition. Probably we need some "group" business. Uwe, if you're reading this, do you have an idea? (Uwe is our resident expert on the user list.) Richard I may just be being too picky. I was able to \def a LaTeX command with \ifthenelse very similar to what you describe: I just wanted to make in a \newenvironment, and these sort of commands don't seem to mesh well with that macro. My command was \newcommand{\questxsol}[2]{ \ifthenelse{\equal{\notestype}{teacher}}{#2} { \ifthenelse{\equal{\questxenv}{example}} {#2}{#1} } } The variable \notestype determines whether this is the student or teacher version, and the variable \questxenv indicates whether this solution is in a worked example, a homework problem, or an exam question. (I've been using a single LaTeX file that is \input inside a question/example/examQuestion environment so that the questions are modular and formatted according to how they're used.) Suppose I use the \solutioncmd or \questxsol in LyX rather than a \newenvironment. How do I incorporate that command into a LyX paragraph environment, or is that cleanly possible? A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar
Re: Preamble order and LyX layouts
A. Scottedward Hodel wrote: I may just be being too picky. I was able to \def a LaTeX command with \ifthenelse very similar to what you describe: I just wanted to make in a \newenvironment, and these sort of commands don't seem to mesh well with that macro. My command was \newcommand{\questxsol}[2]{ \ifthenelse{\equal{\notestype}{teacher}}{#2} { \ifthenelse{\equal{\questxenv}{example}} {#2}{#1} } } The variable \notestype determines whether this is the student or teacher version, and the variable \questxenv indicates whether this solution is in a worked example, a homework problem, or an exam question. (I've been using a single LaTeX file that is \input inside a question/example/examQuestion environment so that the questions are modular and formatted according to how they're used.) Suppose I use the \solutioncmd or \questxsol in LyX rather than a \newenvironment. How do I incorporate that command into a LyX paragraph environment, or is that cleanly possible? You can define a paragraph to be of "command" type. Section headers, for example, are like this. This just determines whether LyX outputs: \begin{whatever}...\end{whatever} or instead: \whatever{...} That might not be the cleanest thing in the world, but it might still work. Richard
Re: Preamble order and LyX layouts
On Apr 20, 2008, at 11:20 AM, rgheck wrote: A. Scottedward Hodel wrote: I may just be being too picky. I was able to \def a LaTeX command with \ifthenelse very similar to what you describe: I just wanted to make in a \newenvironment, and these sort of commands don't seem to mesh well with that macro. My command was \newcommand{\questxsol}[2]{ \ifthenelse{\equal{\notestype}{teacher}}{#2} { \ifthenelse{\equal{\questxenv}{example}} {#2}{#1} } } The variable \notestype determines whether this is the student or teacher version, and the variable \questxenv indicates whether this solution is in a worked example, a homework problem, or an exam question. (I've been using a single LaTeX file that is \input inside a question/example/examQuestion environment so that the questions are modular and formatted according to how they're used.) Suppose I use the \solutioncmd or \questxsol in LyX rather than a \newenvironment. How do I incorporate that command into a LyX paragraph environment, or is that cleanly possible? You can define a paragraph to be of "command" type. Section headers, for example, are like this. This just determines whether LyX outputs: \begin{whatever}...\end{whatever} or instead: \whatever{...} That might not be the cleanest thing in the world, but it might still work. Richard I'll look for examples in the other layouts and give this a try. When I get success (optimism!), I'll post the layout and an example to the list. Thanks! A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar
Re: Preamble order and LyX layouts
On Apr 20, 2008, at 11:30 AM, A. Scottedward Hodel wrote: On Apr 20, 2008, at 11:20 AM, rgheck wrote: You can define a paragraph to be of "command" type. Section headers, for example, are like this. This just determines whether LyX outputs: \begin{whatever}...\end{whatever} or instead: \whatever{...} That might not be the cleanest thing in the world, but it might still work. Richard I'll look for examples in the other layouts and give this a try. When I get success (optimism!), I'll post the layout and an example to the list. Thanks! Victory! Thanks very much for your suggestions and help! Attached is a sample LyX file (a bit convoluted, but it shows the features) and the layout file. A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar myTextBook.layout Description: Binary data TextbookExample.lyx Description: Binary data
Re: Google Docs to LaTeX
<[EMAIL PROTECTED]> writes: > I would try to export to ODF and then use writer2latex to convert it to > LaTeX. You clean the LaTeX with a script to take away all the Wysiwyg cruft > and then convert it to LyX. I can't tell from the note whether you are a skillful composer of scripts, as Charles is kindly thinking you must be. If you are not, but have NeoOffice installed, notice that writer2latex is already installed under File --> Export --> FileFormat. I take it this is true of all versions of OpenOffice. The default preferences may not be ideal; they are in writer2latex.xml, which is easy to find and fairly humanly readable - even if it is a script - and can be adjusted according to the principles in the user's manual http://www.hj-gym.dk/~hj/writer2latex/index7.html Since you are writing in google docs, you will have control over how much of a hash the result is. I use NeoOffice to open Word documents, and if I have to print a long student term paper, the temptation to export is overwhelming, of course, if only to save paper and ink. If you delete all of the garbage that appears in the preamble under Document --> Settings, the results are not too bad. (Once someone figures out how to have a handsome "Powered by LyX" figure printed at the bottom of the last page, or maybe every page, which might be mentioned in the preamble, I'd be bold enough to return the text to the student that way.) It is surprising how rapid the steps are; it was much more complicated when I was first using LyX and LaTeX a year or so ago, and thus converting lots of stuff. If you have to study and alter a document, and thus stare at paragraphs in the LyX user interface, there may be some ugly ERT, especially if the preferences are too kind to what Charles calls the 'wysiwyg cruft'. If you find a solution to the problem with em-dashes that doesn't involve a find-and-replace in the .tex file, tell me.
Two moderncv questions
Hello I have two final problems with moderncv class. 1st. using \cvlistitem for bullets when the text is longer than one line then the second line is not justified as expected (just below the text of the previous line but it is below the bullet). You may see the problem in a pdf & lyx file in http://users.hol.gr/~sdn/ 2nd. How can centralize (horizontally) the name (\firstname & \familyname)? I know it is possible because I had find a command for that but I cant find it anymore. Thank you in advance for your help sn
Re: Preamble order and LyX layouts
On Apr 20, 2008, at 4:28 PM, A. Scottedward Hodel wrote: Victory! Thanks very much for your suggestions and help! Attached is a sample LyX file (a bit convoluted, but it shows the features) and the layout file. A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar Alas, I spoke too soon. If my solution has more than one paragraph, the Command paragraph type starts a new solution environment, i.e., I get the word "Solution" at the start of each paragraph. I'll keep plugging at it... A. Scottedward Hodel [EMAIL PROTECTED] http://homepage.mac.com/hodelas/tar myTextBook.layout Description: Binary data TextbookExample.lyx Description: Binary data
"english" appended to the left side of the running head
I'm rather inexperienced with LaTeX and LyX, trying to use the latter to write a presentation for a class. I'm using the amsart document class, because it makes the handout look the best, but at the top of each page, it prints the title as "englishTopological Vector Spaces" instead of "Topological Vector Spaces". Is there any way I can fix this, or get rid of the header entirely (I don't really need it)? Also, is there a way to remove or lessen the empty space above the title on the first page of the document? I'm having trouble figuring that out. Thanks a lot! -- View this message in context: http://www.nabble.com/%22english%22-appended-to-the-left-side-of-the-running-head-tp16802158p16802158.html Sent from the LyX - Users mailing list archive at Nabble.com.